Use gcc-generated dependency files if we can (GNU Make and gcc required).
[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 23.1.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='23.1.50'
598 PACKAGE_STRING='emacs 23.1.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 LN_S
698 INSTALL_PROGRAM
699 INSTALL_SCRIPT
700 INSTALL_DATA
701 RANLIB
702 INSTALL_INFO
703 GZIP_PROG
704 MAKEINFO
705 LIBSOUND
706 PKG_CONFIG
707 ALSA_CFLAGS
708 ALSA_LIBS
709 CFLAGS_SOUND
710 SET_MAKE
711 XMKMF
712 HAVE_XSERVER
713 RSVG_CFLAGS
714 RSVG_LIBS
715 GTK_CFLAGS
716 GTK_LIBS
717 DBUS_CFLAGS
718 DBUS_LIBS
719 FONTCONFIG_CFLAGS
720 FONTCONFIG_LIBS
721 XFT_CFLAGS
722 XFT_LIBS
723 LIBOTF_CFLAGS
724 LIBOTF_LIBS
725 M17N_FLT_CFLAGS
726 M17N_FLT_LIBS
727 FREETYPE_CFLAGS
728 FREETYPE_LIBS
729 ALLOCA
730 liblockfile
731 LIBOBJS
732 NEED_SETGID
733 KMEM_GROUP
734 GETLOADAVG_LIBS
735 GETOPT_H
736 GETOPTOBJS
737 version
738 configuration
739 canonical
740 srcdir
741 lispdir
742 locallisppath
743 lisppath
744 x_default_search_path
745 etcdir
746 archlibdir
747 bitmapdir
748 gamedir
749 gameuser
750 c_switch_system
751 c_switch_machine
752 LD_SWITCH_X_SITE
753 LD_SWITCH_X_SITE_AUX
754 C_SWITCH_X_SITE
755 X_TOOLKIT_TYPE
756 machfile
757 opsysfile
758 ns_appdir
759 ns_appbindir
760 ns_appresdir
761 ns_appsrc
762 GNUSTEP_MAKEFILES
763 GNUSTEP_SYSTEM_HEADERS
764 GNUSTEP_SYSTEM_LIBRARIES
765 GNU_OBJC_CFLAGS
766 LIB_SRC_EXTRA_INSTALLABLES
767 OTHER_FILES
768 LTLIBOBJS'
769 ac_subst_files=''
770 ac_user_opts='
771 enable_option_checking
772 with_pop
773 with_kerberos
774 with_kerberos5
775 with_hesiod
776 with_sound
777 with_sync_input
778 with_x_toolkit
779 with_xpm
780 with_jpeg
781 with_tiff
782 with_gif
783 with_png
784 with_rsvg
785 with_xft
786 with_libotf
787 with_m17n_flt
788 with_toolkit_scroll_bars
789 with_xaw3d
790 with_xim
791 with_ns
792 with_gpm
793 with_dbus
794 with_makeinfo
795 with_gtk
796 with_gcc
797 with_pkg_config_prog
798 with_gnustep_conf
799 enable_ns_self_contained
800 enable_asserts
801 enable_maintainer_mode
802 enable_locallisppath
803 enable_checking
804 enable_profiling
805 enable_autodepend
806 enable_largefile
807 with_x
808 '
809 ac_precious_vars='build_alias
810 host_alias
811 target_alias
812 CC
813 CFLAGS
814 LDFLAGS
815 LIBS
816 CPPFLAGS
817 CPP
818 XMKMF'
819
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 ac_unrecognized_opts=
825 ac_unrecognized_sep=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
842
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
868
869 ac_prev=
870 ac_dashdash=
871 for ac_option
872 do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
878 fi
879
880 case $ac_option in
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *) ac_optarg=yes ;;
883 esac
884
885 # Accept the important Cygnus configure options, so we can diagnose typos.
886
887 case $ac_dashdash$ac_option in
888 --)
889 ac_dashdash=yes ;;
890
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
895
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
900
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
907
908 --config-cache | -C)
909 cache_file=config.cache ;;
910
911 -datadir | --datadir | --datadi | --datad)
912 ac_prev=datadir ;;
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
915
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
922
923 -disable-* | --disable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
928 { (exit 1); exit 1; }; }
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=no ;;
939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
949
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
955 { (exit 1); exit 1; }; }
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=\$ac_optarg ;;
966
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
975
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
978 with_gas=yes ;;
979
980 -help | --help | --hel | --he | -h)
981 ac_init_help=long ;;
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
986
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
991
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 ac_prev=htmldir ;;
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 | --ht=*)
996 htmldir=$ac_optarg ;;
997
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1004
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 ac_prev=infodir ;;
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1009
1010 -libdir | --libdir | --libdi | --libd)
1011 ac_prev=libdir ;;
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1014
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1021
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1026
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1033
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 ac_prev=mandir ;;
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1038
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1041 with_fp=no ;;
1042
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1045 no_create=yes ;;
1046
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 no_recursion=yes ;;
1050
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1059
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 ac_prev=prefix ;;
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1064
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1071
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1078
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1095
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 ac_prev=pdfdir ;;
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1100
1101 -psdir | --psdir | --psdi | --psd | --ps)
1102 ac_prev=psdir ;;
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 psdir=$ac_optarg ;;
1105
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 silent=yes ;;
1109
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1115
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1126
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1131
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1136
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1143
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1148
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1151
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1154
1155 -with-* | --with-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1160 { (exit 1); exit 1; }; }
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1164 *"
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=\$ac_optarg ;;
1171
1172 -without-* | --without-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1177 { (exit 1); exit 1; }; }
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=no ;;
1188
1189 --x)
1190 # Obsolete; use --with-x.
1191 with_x=yes ;;
1192
1193 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1194 | --x-incl | --x-inc | --x-in | --x-i)
1195 ac_prev=x_includes ;;
1196 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1197 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1198 x_includes=$ac_optarg ;;
1199
1200 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1201 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1202 ac_prev=x_libraries ;;
1203 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1204 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1205 x_libraries=$ac_optarg ;;
1206
1207 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1208 Try \`$0 --help' for more information." >&2
1209 { (exit 1); exit 1; }; }
1210 ;;
1211
1212 *=*)
1213 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1216 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1217 { (exit 1); exit 1; }; }
1218 eval $ac_envvar=\$ac_optarg
1219 export $ac_envvar ;;
1220
1221 *)
1222 # FIXME: should be removed in autoconf 3.0.
1223 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1224 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1226 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1227 ;;
1228
1229 esac
1230 done
1231
1232 if test -n "$ac_prev"; then
1233 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1234 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1235 { (exit 1); exit 1; }; }
1236 fi
1237
1238 if test -n "$ac_unrecognized_opts"; then
1239 case $enable_option_checking in
1240 no) ;;
1241 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1242 { (exit 1); exit 1; }; } ;;
1243 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1244 esac
1245 fi
1246
1247 # Check all directory arguments for consistency.
1248 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1249 datadir sysconfdir sharedstatedir localstatedir includedir \
1250 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1251 libdir localedir mandir
1252 do
1253 eval ac_val=\$$ac_var
1254 # Remove trailing slashes.
1255 case $ac_val in
1256 */ )
1257 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1258 eval $ac_var=\$ac_val;;
1259 esac
1260 # Be sure to have absolute directory names.
1261 case $ac_val in
1262 [\\/$]* | ?:[\\/]* ) continue;;
1263 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1264 esac
1265 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1266 { (exit 1); exit 1; }; }
1267 done
1268
1269 # There might be people who depend on the old broken behavior: `$host'
1270 # used to hold the argument of --host etc.
1271 # FIXME: To remove some day.
1272 build=$build_alias
1273 host=$host_alias
1274 target=$target_alias
1275
1276 # FIXME: To remove some day.
1277 if test "x$host_alias" != x; then
1278 if test "x$build_alias" = x; then
1279 cross_compiling=maybe
1280 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1281 If a cross compiler is detected then cross compile mode will be used." >&2
1282 elif test "x$build_alias" != "x$host_alias"; then
1283 cross_compiling=yes
1284 fi
1285 fi
1286
1287 ac_tool_prefix=
1288 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289
1290 test "$silent" = yes && exec 6>/dev/null
1291
1292
1293 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294 ac_ls_di=`ls -di .` &&
1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1297 { (exit 1); exit 1; }; }
1298 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1300 { (exit 1); exit 1; }; }
1301
1302
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\).*/{
1326 s//\1/
1327 q
1328 }
1329 s/.*/./; q'`
1330 srcdir=$ac_confdir
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 srcdir=..
1333 fi
1334 else
1335 ac_srcdir_defaulted=no
1336 fi
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1340 { (exit 1); exit 1; }; }
1341 fi
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1345 { (exit 1); exit 1; }; }
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350 fi
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1363
1364 #
1365 # Report the --help message.
1366 #
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371 \`configure' configures emacs 23.1.50 to adapt to many kinds of systems.
1372
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1377
1378 Defaults for the options are specified in brackets.
1379
1380 Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1396
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1401
1402 For better control, use the options below.
1403
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1425
1426 cat <<\_ACEOF
1427
1428 Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432
1433 X features:
1434 --x-includes=DIR X include files are in DIR
1435 --x-libraries=DIR X library files are in DIR
1436
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 _ACEOF
1441 fi
1442
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of emacs 23.1.50:";;
1446 esac
1447 cat <<\_ACEOF
1448
1449 Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --disable-ns-self-contained
1454 disable self contained build under NeXTstep
1455 --enable-asserts compile code with asserts enabled
1456 --enable-maintainer-mode
1457 enable make rules and dependencies not useful (and
1458 sometimes confusing) to the casual installer
1459 --enable-locallisppath=PATH
1460 directories Emacs should search for lisp files
1461 specific to this site
1462 --enable-checking[=LIST]
1463 enable expensive run-time checks. With LIST, enable
1464 only specific categories of checks. Categories are:
1465 all,yes,no. Flags are: stringbytes, stringoverrun,
1466 stringfreelist, xmallocoverrun, conslist
1467 --enable-profiling build emacs with profiling support. This might not
1468 work on all platforms
1469 --enable-autodepend automatically generate dependencies to .h-files.
1470 Requires GNU Make and Gcc. Enabled if GNU Make and
1471 Gcc is found
1472 --disable-largefile omit support for large files
1473
1474 Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --without-pop don't support POP mail retrieval with movemail
1478 --with-kerberos support Kerberos-authenticated POP
1479 --with-kerberos5 support Kerberos version 5 authenticated POP
1480 --with-hesiod support Hesiod to get the POP server host
1481 --without-sound don't compile with sound support
1482 --without-sync-input process async input synchronously
1483 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1484 motif, gtk, no)
1485 --without-xpm don't compile with XPM image support
1486 --without-jpeg don't compile with JPEG image support
1487 --without-tiff don't compile with TIFF image support
1488 --without-gif don't compile with GIF image support
1489 --without-png don't compile with PNG image support
1490 --without-rsvg don't compile with SVG image support
1491 --without-xft don't use XFT for anti aliased fonts
1492 --without-libotf don't use libotf for OpenType font support
1493 --without-m17n-flt don't use m17n-flt for text shaping
1494 --without-toolkit-scroll-bars
1495 don't use Motif or Xaw3d scroll bars
1496 --without-xaw3d don't use Xaw3d
1497 --without-xim don't use X11 XIM
1498 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1499 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1500 console
1501 --without-dbus don't compile with D-Bus support
1502 --without-makeinfo don't require makeinfo for building manuals
1503
1504 --with-pkg-config-prog=PATH
1505 path to pkg-config for finding GTK and librsvg
1506 --with-gnustep-conf=PATH
1507 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1508 or /etc/GNUstep/GNUstep.conf
1509 --with-x use the X Window System
1510
1511 Some influential environment variables:
1512 CC C compiler command
1513 CFLAGS C compiler flags
1514 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1515 nonstandard directory <lib dir>
1516 LIBS libraries to pass to the linker, e.g. -l<library>
1517 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1518 you have headers in a nonstandard directory <include dir>
1519 CPP C preprocessor
1520 XMKMF Path to xmkmf, Makefile generator for X Window System
1521
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1524
1525 _ACEOF
1526 ac_status=$?
1527 fi
1528
1529 if test "$ac_init_help" = "recursive"; then
1530 # If there are subdirs, report their specific --help.
1531 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1532 test -d "$ac_dir" ||
1533 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1534 continue
1535 ac_builddir=.
1536
1537 case "$ac_dir" in
1538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *)
1540 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1541 # A ".." for each directory in $ac_dir_suffix.
1542 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1543 case $ac_top_builddir_sub in
1544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546 esac ;;
1547 esac
1548 ac_abs_top_builddir=$ac_pwd
1549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1550 # for backward compatibility:
1551 ac_top_builddir=$ac_top_build_prefix
1552
1553 case $srcdir in
1554 .) # We are building in place.
1555 ac_srcdir=.
1556 ac_top_srcdir=$ac_top_builddir_sub
1557 ac_abs_top_srcdir=$ac_pwd ;;
1558 [\\/]* | ?:[\\/]* ) # Absolute name.
1559 ac_srcdir=$srcdir$ac_dir_suffix;
1560 ac_top_srcdir=$srcdir
1561 ac_abs_top_srcdir=$srcdir ;;
1562 *) # Relative name.
1563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564 ac_top_srcdir=$ac_top_build_prefix$srcdir
1565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 esac
1567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568
1569 cd "$ac_dir" || { ac_status=$?; continue; }
1570 # Check for guested configure.
1571 if test -f "$ac_srcdir/configure.gnu"; then
1572 echo &&
1573 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1574 elif test -f "$ac_srcdir/configure"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure" --help=recursive
1577 else
1578 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579 fi || ac_status=$?
1580 cd "$ac_pwd" || { ac_status=$?; break; }
1581 done
1582 fi
1583
1584 test -n "$ac_init_help" && exit $ac_status
1585 if $ac_init_version; then
1586 cat <<\_ACEOF
1587 emacs configure 23.1.50
1588 generated by GNU Autoconf 2.62
1589
1590 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1591 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1592 This configure script is free software; the Free Software Foundation
1593 gives unlimited permission to copy, distribute and modify it.
1594 _ACEOF
1595 exit
1596 fi
1597 cat >config.log <<_ACEOF
1598 This file contains any messages produced by compilers while
1599 running configure, to aid debugging if configure makes a mistake.
1600
1601 It was created by emacs $as_me 23.1.50, which was
1602 generated by GNU Autoconf 2.62. Invocation command line was
1603
1604 $ $0 $@
1605
1606 _ACEOF
1607 exec 5>>config.log
1608 {
1609 cat <<_ASUNAME
1610 ## --------- ##
1611 ## Platform. ##
1612 ## --------- ##
1613
1614 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1615 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1616 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1617 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1618 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1619
1620 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1621 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1622
1623 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1624 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1625 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1626 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1627 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1628 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1629 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1630
1631 _ASUNAME
1632
1633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 for as_dir in $PATH
1635 do
1636 IFS=$as_save_IFS
1637 test -z "$as_dir" && as_dir=.
1638 $as_echo "PATH: $as_dir"
1639 done
1640 IFS=$as_save_IFS
1641
1642 } >&5
1643
1644 cat >&5 <<_ACEOF
1645
1646
1647 ## ----------- ##
1648 ## Core tests. ##
1649 ## ----------- ##
1650
1651 _ACEOF
1652
1653
1654 # Keep a trace of the command line.
1655 # Strip out --no-create and --no-recursion so they do not pile up.
1656 # Strip out --silent because we don't want to record it for future runs.
1657 # Also quote any args containing shell meta-characters.
1658 # Make two passes to allow for proper duplicate-argument suppression.
1659 ac_configure_args=
1660 ac_configure_args0=
1661 ac_configure_args1=
1662 ac_must_keep_next=false
1663 for ac_pass in 1 2
1664 do
1665 for ac_arg
1666 do
1667 case $ac_arg in
1668 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1669 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1670 | -silent | --silent | --silen | --sile | --sil)
1671 continue ;;
1672 *\'*)
1673 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1674 esac
1675 case $ac_pass in
1676 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1677 2)
1678 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1679 if test $ac_must_keep_next = true; then
1680 ac_must_keep_next=false # Got value, back to normal.
1681 else
1682 case $ac_arg in
1683 *=* | --config-cache | -C | -disable-* | --disable-* \
1684 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1685 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1686 | -with-* | --with-* | -without-* | --without-* | --x)
1687 case "$ac_configure_args0 " in
1688 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1689 esac
1690 ;;
1691 -* ) ac_must_keep_next=true ;;
1692 esac
1693 fi
1694 ac_configure_args="$ac_configure_args '$ac_arg'"
1695 ;;
1696 esac
1697 done
1698 done
1699 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1700 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1701
1702 # When interrupted or exit'd, cleanup temporary files, and complete
1703 # config.log. We remove comments because anyway the quotes in there
1704 # would cause problems or look ugly.
1705 # WARNING: Use '\'' to represent an apostrophe within the trap.
1706 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1707 trap 'exit_status=$?
1708 # Save into config.log some information that might help in debugging.
1709 {
1710 echo
1711
1712 cat <<\_ASBOX
1713 ## ---------------- ##
1714 ## Cache variables. ##
1715 ## ---------------- ##
1716 _ASBOX
1717 echo
1718 # The following way of writing the cache mishandles newlines in values,
1719 (
1720 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1721 eval ac_val=\$$ac_var
1722 case $ac_val in #(
1723 *${as_nl}*)
1724 case $ac_var in #(
1725 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1726 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1727 esac
1728 case $ac_var in #(
1729 _ | IFS | as_nl) ;; #(
1730 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1731 *) $as_unset $ac_var ;;
1732 esac ;;
1733 esac
1734 done
1735 (set) 2>&1 |
1736 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1737 *${as_nl}ac_space=\ *)
1738 sed -n \
1739 "s/'\''/'\''\\\\'\'''\''/g;
1740 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1741 ;; #(
1742 *)
1743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1744 ;;
1745 esac |
1746 sort
1747 )
1748 echo
1749
1750 cat <<\_ASBOX
1751 ## ----------------- ##
1752 ## Output variables. ##
1753 ## ----------------- ##
1754 _ASBOX
1755 echo
1756 for ac_var in $ac_subst_vars
1757 do
1758 eval ac_val=\$$ac_var
1759 case $ac_val in
1760 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761 esac
1762 $as_echo "$ac_var='\''$ac_val'\''"
1763 done | sort
1764 echo
1765
1766 if test -n "$ac_subst_files"; then
1767 cat <<\_ASBOX
1768 ## ------------------- ##
1769 ## File substitutions. ##
1770 ## ------------------- ##
1771 _ASBOX
1772 echo
1773 for ac_var in $ac_subst_files
1774 do
1775 eval ac_val=\$$ac_var
1776 case $ac_val in
1777 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1778 esac
1779 $as_echo "$ac_var='\''$ac_val'\''"
1780 done | sort
1781 echo
1782 fi
1783
1784 if test -s confdefs.h; then
1785 cat <<\_ASBOX
1786 ## ----------- ##
1787 ## confdefs.h. ##
1788 ## ----------- ##
1789 _ASBOX
1790 echo
1791 cat confdefs.h
1792 echo
1793 fi
1794 test "$ac_signal" != 0 &&
1795 $as_echo "$as_me: caught signal $ac_signal"
1796 $as_echo "$as_me: exit $exit_status"
1797 } >&5
1798 rm -f core *.core core.conftest.* &&
1799 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1800 exit $exit_status
1801 ' 0
1802 for ac_signal in 1 2 13 15; do
1803 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1804 done
1805 ac_signal=0
1806
1807 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1808 rm -f -r conftest* confdefs.h
1809
1810 # Predefined preprocessor variables.
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_NAME "$PACKAGE_NAME"
1814 _ACEOF
1815
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1819 _ACEOF
1820
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1824 _ACEOF
1825
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_STRING "$PACKAGE_STRING"
1829 _ACEOF
1830
1831
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1834 _ACEOF
1835
1836
1837 # Let the site file select an alternate cache file if it wants to.
1838 # Prefer an explicitly selected file to automatically selected ones.
1839 ac_site_file1=NONE
1840 ac_site_file2=NONE
1841 if test -n "$CONFIG_SITE"; then
1842 ac_site_file1=$CONFIG_SITE
1843 elif test "x$prefix" != xNONE; then
1844 ac_site_file1=$prefix/share/config.site
1845 ac_site_file2=$prefix/etc/config.site
1846 else
1847 ac_site_file1=$ac_default_prefix/share/config.site
1848 ac_site_file2=$ac_default_prefix/etc/config.site
1849 fi
1850 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1851 do
1852 test "x$ac_site_file" = xNONE && continue
1853 if test -r "$ac_site_file"; then
1854 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1855 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1856 sed 's/^/| /' "$ac_site_file" >&5
1857 . "$ac_site_file"
1858 fi
1859 done
1860
1861 if test -r "$cache_file"; then
1862 # Some versions of bash will fail to source /dev/null (special
1863 # files actually), so we avoid doing that.
1864 if test -f "$cache_file"; then
1865 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1866 $as_echo "$as_me: loading cache $cache_file" >&6;}
1867 case $cache_file in
1868 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1869 *) . "./$cache_file";;
1870 esac
1871 fi
1872 else
1873 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1874 $as_echo "$as_me: creating cache $cache_file" >&6;}
1875 >$cache_file
1876 fi
1877
1878 ac_header_list="$ac_header_list sys/time.h"
1879 ac_header_list="$ac_header_list unistd.h"
1880 ac_func_list="$ac_func_list alarm"
1881 # Check that the precious variables saved in the cache have kept the same
1882 # value.
1883 ac_cache_corrupted=false
1884 for ac_var in $ac_precious_vars; do
1885 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1886 eval ac_new_set=\$ac_env_${ac_var}_set
1887 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1888 eval ac_new_val=\$ac_env_${ac_var}_value
1889 case $ac_old_set,$ac_new_set in
1890 set,)
1891 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1892 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1893 ac_cache_corrupted=: ;;
1894 ,set)
1895 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1896 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1897 ac_cache_corrupted=: ;;
1898 ,);;
1899 *)
1900 if test "x$ac_old_val" != "x$ac_new_val"; then
1901 # differences in whitespace do not lead to failure.
1902 ac_old_val_w=`echo x $ac_old_val`
1903 ac_new_val_w=`echo x $ac_new_val`
1904 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1905 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1906 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1907 ac_cache_corrupted=:
1908 else
1909 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1910 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1911 eval $ac_var=\$ac_old_val
1912 fi
1913 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1914 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1915 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1916 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1917 fi;;
1918 esac
1919 # Pass precious variables to config.status.
1920 if test "$ac_new_set" = set; then
1921 case $ac_new_val in
1922 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1923 *) ac_arg=$ac_var=$ac_new_val ;;
1924 esac
1925 case " $ac_configure_args " in
1926 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1927 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1928 esac
1929 fi
1930 done
1931 if $ac_cache_corrupted; then
1932 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1933 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1934 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1935 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1936 { (exit 1); exit 1; }; }
1937 fi
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963 ac_ext=c
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1968
1969
1970 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1971
1972
1973
1974 test "$program_prefix" != NONE &&
1975 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1976 # Use a double $ so make ignores it.
1977 test "$program_suffix" != NONE &&
1978 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1979 # Double any \ or $.
1980 # By default was `s,x,x', remove it if useless.
1981 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1982 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1983
1984
1985 lispdir='${datadir}/emacs/${version}/lisp'
1986 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1987 '${datadir}/emacs/site-lisp'
1988 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1989 etcdir='${datadir}/emacs/${version}/etc'
1990 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1991 docdir='${datadir}/emacs/${version}/etc'
1992 gamedir='${localstatedir}/games/emacs'
1993
1994 gameuser=games
1995
1996
1997
1998
1999 # Check whether --with-pop was given.
2000 if test "${with_pop+set}" = set; then
2001 withval=$with_pop;
2002 else
2003 with_pop=yes
2004 fi
2005
2006 if test "$with_pop" = yes; then
2007 cat >>confdefs.h <<\_ACEOF
2008 #define MAIL_USE_POP 1
2009 _ACEOF
2010
2011 fi
2012
2013
2014
2015 # Check whether --with-kerberos was given.
2016 if test "${with_kerberos+set}" = set; then
2017 withval=$with_kerberos;
2018 else
2019 with_kerberos=no
2020 fi
2021
2022 if test "$with_kerberos" != no; then
2023 cat >>confdefs.h <<\_ACEOF
2024 #define KERBEROS 1
2025 _ACEOF
2026
2027 fi
2028
2029
2030
2031 # Check whether --with-kerberos5 was given.
2032 if test "${with_kerberos5+set}" = set; then
2033 withval=$with_kerberos5;
2034 else
2035 with_kerberos5=no
2036 fi
2037
2038 if test "${with_kerberos5}" != no; then
2039 if test "${with_kerberos}" = no; then
2040 with_kerberos=yes
2041 cat >>confdefs.h <<\_ACEOF
2042 #define KERBEROS 1
2043 _ACEOF
2044
2045 fi
2046
2047 cat >>confdefs.h <<\_ACEOF
2048 #define KERBEROS5 1
2049 _ACEOF
2050
2051 fi
2052
2053
2054 # Check whether --with-hesiod was given.
2055 if test "${with_hesiod+set}" = set; then
2056 withval=$with_hesiod;
2057 else
2058 with_hesiod=no
2059 fi
2060
2061 if test "$with_hesiod" != no; then
2062
2063 cat >>confdefs.h <<\_ACEOF
2064 #define HESIOD 1
2065 _ACEOF
2066
2067 fi
2068
2069
2070 # Check whether --with-sound was given.
2071 if test "${with_sound+set}" = set; then
2072 withval=$with_sound;
2073 else
2074 with_sound=yes
2075 fi
2076
2077
2078
2079 # Check whether --with-sync-input was given.
2080 if test "${with_sync_input+set}" = set; then
2081 withval=$with_sync_input;
2082 else
2083 with_sync_input=yes
2084 fi
2085
2086 if test "$with_sync_input" = yes; then
2087
2088 cat >>confdefs.h <<\_ACEOF
2089 #define SYNC_INPUT 1
2090 _ACEOF
2091
2092 fi
2093
2094
2095 # Check whether --with-x-toolkit was given.
2096 if test "${with_x_toolkit+set}" = set; then
2097 withval=$with_x_toolkit; case "${withval}" in
2098 y | ye | yes ) val=gtk ;;
2099 n | no ) val=no ;;
2100 l | lu | luc | luci | lucid ) val=lucid ;;
2101 a | at | ath | athe | athen | athena ) val=athena ;;
2102 m | mo | mot | moti | motif ) val=motif ;;
2103 g | gt | gtk ) val=gtk ;;
2104 * )
2105 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2106 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2107 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2108 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2109 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2110 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2111 { (exit 1); exit 1; }; }
2112 ;;
2113 esac
2114 with_x_toolkit=$val
2115
2116 fi
2117
2118
2119
2120 # Check whether --with-xpm was given.
2121 if test "${with_xpm+set}" = set; then
2122 withval=$with_xpm;
2123 else
2124 with_xpm=yes
2125 fi
2126
2127
2128 # Check whether --with-jpeg was given.
2129 if test "${with_jpeg+set}" = set; then
2130 withval=$with_jpeg;
2131 else
2132 with_jpeg=yes
2133 fi
2134
2135
2136 # Check whether --with-tiff was given.
2137 if test "${with_tiff+set}" = set; then
2138 withval=$with_tiff;
2139 else
2140 with_tiff=yes
2141 fi
2142
2143
2144 # Check whether --with-gif was given.
2145 if test "${with_gif+set}" = set; then
2146 withval=$with_gif;
2147 else
2148 with_gif=yes
2149 fi
2150
2151
2152 # Check whether --with-png was given.
2153 if test "${with_png+set}" = set; then
2154 withval=$with_png;
2155 else
2156 with_png=yes
2157 fi
2158
2159
2160 # Check whether --with-rsvg was given.
2161 if test "${with_rsvg+set}" = set; then
2162 withval=$with_rsvg;
2163 else
2164 with_rsvg=yes
2165 fi
2166
2167
2168
2169 # Check whether --with-xft was given.
2170 if test "${with_xft+set}" = set; then
2171 withval=$with_xft;
2172 else
2173 with_xft=yes
2174 fi
2175
2176
2177 # Check whether --with-libotf was given.
2178 if test "${with_libotf+set}" = set; then
2179 withval=$with_libotf;
2180 else
2181 with_libotf=yes
2182 fi
2183
2184
2185 # Check whether --with-m17n-flt was given.
2186 if test "${with_m17n_flt+set}" = set; then
2187 withval=$with_m17n_flt;
2188 else
2189 with_m17n_flt=yes
2190 fi
2191
2192
2193
2194 # Check whether --with-toolkit-scroll-bars was given.
2195 if test "${with_toolkit_scroll_bars+set}" = set; then
2196 withval=$with_toolkit_scroll_bars;
2197 else
2198 with_toolkit_scroll_bars=yes
2199 fi
2200
2201
2202 # Check whether --with-xaw3d was given.
2203 if test "${with_xaw3d+set}" = set; then
2204 withval=$with_xaw3d;
2205 else
2206 with_xaw3d=yes
2207 fi
2208
2209
2210 # Check whether --with-xim was given.
2211 if test "${with_xim+set}" = set; then
2212 withval=$with_xim;
2213 else
2214 with_xim=yes
2215 fi
2216
2217
2218 # Check whether --with-ns was given.
2219 if test "${with_ns+set}" = set; then
2220 withval=$with_ns;
2221 else
2222 with_ns=no
2223 fi
2224
2225
2226
2227 # Check whether --with-gpm was given.
2228 if test "${with_gpm+set}" = set; then
2229 withval=$with_gpm;
2230 else
2231 with_gpm=yes
2232 fi
2233
2234
2235 # Check whether --with-dbus was given.
2236 if test "${with_dbus+set}" = set; then
2237 withval=$with_dbus;
2238 else
2239 with_dbus=yes
2240 fi
2241
2242
2243 ## For the times when you want to build Emacs but don't have
2244 ## a suitable makeinfo, and can live without the manuals.
2245
2246 # Check whether --with-makeinfo was given.
2247 if test "${with_makeinfo+set}" = set; then
2248 withval=$with_makeinfo;
2249 else
2250 with_makeinfo=yes
2251 fi
2252
2253
2254
2255 # Check whether --with-gtk was given.
2256 if test "${with_gtk+set}" = set; then
2257 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2258 specify a toolkit." >&5
2259 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2260 specify a toolkit." >&2;}
2261 { (exit 1); exit 1; }; }
2262 fi
2263
2264
2265
2266 # Check whether --with-gcc was given.
2267 if test "${with_gcc+set}" = set; then
2268 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2269 variable to specify a compiler." >&5
2270 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2271 variable to specify a compiler." >&2;}
2272 { (exit 1); exit 1; }; }
2273 fi
2274
2275
2276
2277 # Check whether --with-pkg-config-prog was given.
2278 if test "${with_pkg_config_prog+set}" = set; then
2279 withval=$with_pkg_config_prog;
2280 fi
2281
2282 if test "X${with_pkg_config_prog}" != X; then
2283 if test "${with_pkg_config_prog}" != yes; then
2284 PKG_CONFIG="${with_pkg_config_prog}"
2285 fi
2286 fi
2287
2288
2289 # Check whether --with-gnustep-conf was given.
2290 if test "${with_gnustep_conf+set}" = set; then
2291 withval=$with_gnustep_conf;
2292 fi
2293
2294 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2295 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2296 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2297 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2298
2299 # Check whether --enable-ns-self-contained was given.
2300 if test "${enable_ns_self_contained+set}" = set; then
2301 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2302 else
2303 EN_NS_SELF_CONTAINED=yes
2304 fi
2305
2306
2307 # Check whether --enable-asserts was given.
2308 if test "${enable_asserts+set}" = set; then
2309 enableval=$enable_asserts; USE_XASSERTS=$enableval
2310 else
2311 USE_XASSERTS=no
2312 fi
2313
2314
2315 # Check whether --enable-maintainer-mode was given.
2316 if test "${enable_maintainer_mode+set}" = set; then
2317 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2318 else
2319 USE_MAINTAINER_MODE=no
2320 fi
2321
2322 if test $USE_MAINTAINER_MODE = yes; then
2323 MAINT=
2324 else
2325 MAINT=#
2326 fi
2327
2328
2329 # Check whether --enable-locallisppath was given.
2330 if test "${enable_locallisppath+set}" = set; then
2331 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2332 locallisppath=
2333 elif test "${enableval}" != "yes"; then
2334 locallisppath=${enableval}
2335 fi
2336 fi
2337
2338
2339 # Check whether --enable-checking was given.
2340 if test "${enable_checking+set}" = set; then
2341 enableval=$enable_checking; ac_checking_flags="${enableval}"
2342 fi
2343
2344 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2345 for check in $ac_checking_flags
2346 do
2347 case $check in
2348 # these set all the flags to specific states
2349 yes) ac_enable_checking=1 ;;
2350 no) ac_enable_checking= ;
2351 ac_gc_check_stringbytes= ;
2352 ac_gc_check_string_overrun= ;
2353 ac_gc_check_string_free_list= ;
2354 ac_xmalloc_overrun= ;
2355 ac_gc_check_cons_list= ;;
2356 all) ac_enable_checking=1 ;
2357 ac_gc_check_stringbytes=1 ;
2358 ac_gc_check_string_overrun=1 ;
2359 ac_gc_check_string_free_list=1 ;
2360 ac_xmalloc_overrun=1 ;
2361 ac_gc_check_cons_list=1 ;;
2362 # these enable particular checks
2363 stringbytes) ac_gc_check_stringbytes=1 ;;
2364 stringoverrun) ac_gc_check_string_overrun=1 ;;
2365 stringfreelist) ac_gc_check_string_free_list=1 ;;
2366 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2367 conslist) ac_gc_check_cons_list=1 ;;
2368 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2369 $as_echo "$as_me: error: unknown check category $check" >&2;}
2370 { (exit 1); exit 1; }; } ;;
2371 esac
2372 done
2373 IFS="$ac_save_IFS"
2374
2375 if test x$ac_enable_checking != x ; then
2376
2377 cat >>confdefs.h <<\_ACEOF
2378 #define ENABLE_CHECKING 1
2379 _ACEOF
2380
2381 fi
2382 if test x$ac_gc_check_stringbytes != x ; then
2383
2384 cat >>confdefs.h <<\_ACEOF
2385 #define GC_CHECK_STRING_BYTES 1
2386 _ACEOF
2387
2388 fi
2389 if test x$ac_gc_check_stringoverrun != x ; then
2390
2391 cat >>confdefs.h <<\_ACEOF
2392 #define GC_CHECK_STRING_OVERRUN 1
2393 _ACEOF
2394
2395 fi
2396 if test x$ac_gc_check_string_free_list != x ; then
2397
2398 cat >>confdefs.h <<\_ACEOF
2399 #define GC_CHECK_STRING_FREE_LIST 1
2400 _ACEOF
2401
2402 fi
2403 if test x$ac_xmalloc_overrun != x ; then
2404
2405 cat >>confdefs.h <<\_ACEOF
2406 #define XMALLOC_OVERRUN_CHECK 1
2407 _ACEOF
2408
2409 fi
2410 if test x$ac_gc_check_cons_list != x ; then
2411
2412 cat >>confdefs.h <<\_ACEOF
2413 #define GC_CHECK_CONS_LIST 1
2414 _ACEOF
2415
2416 fi
2417
2418 # Check whether --enable-profiling was given.
2419 if test "${enable_profiling+set}" = set; then
2420 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2421 fi
2422
2423 if test x$ac_enable_profiling != x ; then
2424 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2425 PROFILING_LDFLAGS="-pg"
2426 else
2427 PROFILING_CFLAGS=
2428 PROFILING_LDFLAGS=
2429 fi
2430
2431 # Check whether --enable-autodepend was given.
2432 if test "${enable_autodepend+set}" = set; then
2433 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2434 else
2435 ac_enable_autodepend=yes
2436 fi
2437
2438
2439 #### Make srcdir absolute, if it isn't already. It's important to
2440 #### avoid running the path through pwd unnecessarily, since pwd can
2441 #### give you automounter prefixes, which can go away. We do all this
2442 #### so Emacs can find its files when run uninstalled.
2443 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2444 unset CDPATH
2445 case "${srcdir}" in
2446 /* ) ;;
2447 . )
2448 ## We may be able to use the $PWD environment variable to make this
2449 ## absolute. But sometimes PWD is inaccurate.
2450 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2451 ## but that tested only for a well-formed and valid PWD,
2452 ## it did not object when PWD was well-formed and valid but just wrong.
2453 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2454 then
2455 srcdir="$PWD"
2456 else
2457 srcdir="`(cd ${srcdir}; pwd)`"
2458 fi
2459 ;;
2460 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2461 esac
2462
2463 #### Check if the source directory already has a configured system in it.
2464 if test `pwd` != `(cd ${srcdir} && pwd)` \
2465 && test -f "${srcdir}/src/config.h" ; then
2466 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2467 as a build directory right now; it has been configured in its own
2468 right. To configure in another directory as well, you MUST
2469 use GNU make. If you do not have GNU make, then you must
2470 now do \`make distclean' in ${srcdir},
2471 and then run $0 again." >&5
2472 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2473 as a build directory right now; it has been configured in its own
2474 right. To configure in another directory as well, you MUST
2475 use GNU make. If you do not have GNU make, then you must
2476 now do \`make distclean' in ${srcdir},
2477 and then run $0 again." >&2;}
2478 fi
2479
2480 #### Given the configuration name, set machfile and opsysfile to the
2481 #### names of the m/*.h and s/*.h files we should use.
2482
2483 ### Canonicalize the configuration name.
2484
2485 ac_aux_dir=
2486 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2487 if test -f "$ac_dir/install-sh"; then
2488 ac_aux_dir=$ac_dir
2489 ac_install_sh="$ac_aux_dir/install-sh -c"
2490 break
2491 elif test -f "$ac_dir/install.sh"; then
2492 ac_aux_dir=$ac_dir
2493 ac_install_sh="$ac_aux_dir/install.sh -c"
2494 break
2495 elif test -f "$ac_dir/shtool"; then
2496 ac_aux_dir=$ac_dir
2497 ac_install_sh="$ac_aux_dir/shtool install -c"
2498 break
2499 fi
2500 done
2501 if test -z "$ac_aux_dir"; then
2502 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2503 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2504 { (exit 1); exit 1; }; }
2505 fi
2506
2507 # These three variables are undocumented and unsupported,
2508 # and are intended to be withdrawn in a future Autoconf release.
2509 # They can cause serious problems if a builder's source tree is in a directory
2510 # whose full name contains unusual characters.
2511 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2512 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2513 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2514
2515
2516 # Make sure we can run config.sub.
2517 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2518 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2519 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2520 { (exit 1); exit 1; }; }
2521
2522 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2523 $as_echo_n "checking build system type... " >&6; }
2524 if test "${ac_cv_build+set}" = set; then
2525 $as_echo_n "(cached) " >&6
2526 else
2527 ac_build_alias=$build_alias
2528 test "x$ac_build_alias" = x &&
2529 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2530 test "x$ac_build_alias" = x &&
2531 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2532 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2533 { (exit 1); exit 1; }; }
2534 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2535 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2536 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2537 { (exit 1); exit 1; }; }
2538
2539 fi
2540 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2541 $as_echo "$ac_cv_build" >&6; }
2542 case $ac_cv_build in
2543 *-*-*) ;;
2544 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2545 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2546 { (exit 1); exit 1; }; };;
2547 esac
2548 build=$ac_cv_build
2549 ac_save_IFS=$IFS; IFS='-'
2550 set x $ac_cv_build
2551 shift
2552 build_cpu=$1
2553 build_vendor=$2
2554 shift; shift
2555 # Remember, the first character of IFS is used to create $*,
2556 # except with old shells:
2557 build_os=$*
2558 IFS=$ac_save_IFS
2559 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2560
2561
2562 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2563 $as_echo_n "checking host system type... " >&6; }
2564 if test "${ac_cv_host+set}" = set; then
2565 $as_echo_n "(cached) " >&6
2566 else
2567 if test "x$host_alias" = x; then
2568 ac_cv_host=$ac_cv_build
2569 else
2570 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2571 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2572 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2573 { (exit 1); exit 1; }; }
2574 fi
2575
2576 fi
2577 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2578 $as_echo "$ac_cv_host" >&6; }
2579 case $ac_cv_host in
2580 *-*-*) ;;
2581 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2582 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2583 { (exit 1); exit 1; }; };;
2584 esac
2585 host=$ac_cv_host
2586 ac_save_IFS=$IFS; IFS='-'
2587 set x $ac_cv_host
2588 shift
2589 host_cpu=$1
2590 host_vendor=$2
2591 shift; shift
2592 # Remember, the first character of IFS is used to create $*,
2593 # except with old shells:
2594 host_os=$*
2595 IFS=$ac_save_IFS
2596 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2597
2598
2599 canonical=$host
2600 configuration=${host_alias-${build_alias-$host}}
2601
2602
2603
2604 ### If you add support for a new configuration, add code to this
2605 ### switch statement to recognize your configuration name and select
2606 ### the appropriate operating system and machine description files.
2607
2608 ### You would hope that you could choose an m/*.h file pretty much
2609 ### based on the machine portion of the configuration name, and an s-
2610 ### file based on the operating system portion. However, it turns out
2611 ### that each m/*.h file is pretty manufacturer-specific - for
2612 ### example mips.h is MIPS
2613 ### So we basically have to have a special case for each
2614 ### configuration name.
2615 ###
2616 ### As far as handling version numbers on operating systems is
2617 ### concerned, make sure things will fail in a fixable way. If
2618 ### /etc/MACHINES doesn't say anything about version numbers, be
2619 ### prepared to handle anything reasonably. If version numbers
2620 ### matter, be sure /etc/MACHINES says something about it.
2621 ###
2622 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2623 ### "System V Release 4"; he writes, "The old convention encouraged
2624 ### confusion between `system' and `release' levels'."
2625
2626 machine='' opsys='' unported=no
2627 case "${canonical}" in
2628
2629 ## FreeBSD ports
2630 *-*-freebsd* )
2631 opsys=freebsd
2632 case "${canonical}" in
2633 alpha*-*-freebsd*) machine=alpha ;;
2634 arm*-*-freebsd*) machine=arm ;;
2635 ia64-*-freebsd*) machine=ia64 ;;
2636 sparc-*-freebsd*) machine=sparc ;;
2637 sparc64-*-freebsd*) machine=sparc ;;
2638 powerpc-*-freebsd*) machine=macppc ;;
2639 i[3456]86-*-freebsd*) machine=intel386 ;;
2640 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2641 esac
2642 ;;
2643
2644 ## FreeBSD kernel + glibc based userland
2645 *-*-kfreebsd*gnu* )
2646 opsys=gnu-kfreebsd
2647 case "${canonical}" in
2648 alpha*-*-kfreebsd*) machine=alpha ;;
2649 ia64-*-kfreebsd*) machine=ia64 ;;
2650 sparc-*-kfreebsd*) machine=sparc ;;
2651 sparc64-*-kfreebsd*) machine=sparc ;;
2652 powerpc-*-kfreebsd*) machine=macppc ;;
2653 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2654 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2655 esac
2656 ;;
2657
2658 ## NetBSD ports
2659 *-*-netbsd* )
2660 opsys=netbsd
2661 if test -f /usr/lib/crti.o; then
2662
2663 cat >>confdefs.h <<\_ACEOF
2664 #define HAVE_CRTIN /**/
2665 _ACEOF
2666
2667 fi
2668
2669 case "${canonical}" in
2670 alpha*-*-netbsd*) machine=alpha ;;
2671 i[3456]86-*-netbsd*) machine=intel386 ;;
2672 mips-*-netbsd*) machine=mips ;;
2673 mipsel-*-netbsd*) machine=mips ;;
2674 mipseb-*-netbsd*) machine=mips ;;
2675 powerpc-*-netbsd*) machine=macppc ;;
2676 sparc*-*-netbsd*) machine=sparc ;;
2677 vax-*-netbsd*) machine=vax ;;
2678 arm-*-netbsd*) machine=arm ;;
2679 x86_64-*-netbsd*) machine=amdx86-64 ;;
2680 hppa-*-netbsd*) machine=hp800 ;;
2681 m68k-*-netbsd*) machine=m68k ;;
2682 esac
2683 ;;
2684
2685 ## OpenBSD ports
2686 *-*-openbsd* )
2687 opsys=openbsd
2688 case "${canonical}" in
2689 alpha*-*-openbsd*) machine=alpha ;;
2690 arm-*-openbsd*) machine=arm ;;
2691 i386-*-openbsd*) machine=intel386 ;;
2692 powerpc-*-openbsd*) machine=macppc ;;
2693 sparc*-*-openbsd*) machine=sparc ;;
2694 vax-*-openbsd*) machine=vax ;;
2695 x86_64-*-openbsd*) machine=amdx86-64 ;;
2696 hppa-*-openbsd*) machine=hp800 ;;
2697 esac
2698 ;;
2699
2700 ## LynxOS ports
2701 *-*-lynxos* )
2702 opsys=lynxos
2703 case "${canonical}" in
2704 i[3456]86-*-lynxos*) machine=intel386 ;;
2705 powerpc-*-lynxos*) machine=powerpc ;;
2706 esac
2707 ;;
2708
2709 alpha*-*-linux-gnu* )
2710 machine=alpha opsys=gnu-linux
2711 ;;
2712
2713 arm*-*-linux-gnu* )
2714 machine=arm opsys=gnu-linux
2715 ;;
2716
2717 ## Apple Darwin / Mac OS X
2718 *-apple-darwin* )
2719 case "${canonical}" in
2720 i[3456]86-* ) machine=intel386 ;;
2721 powerpc-* ) machine=macppc ;;
2722 x86_64-* ) machine=amdx86-64 ;;
2723 * ) unported=yes ;;
2724 esac
2725 opsys=darwin
2726 # Define CPP as follows to make autoconf work correctly.
2727 CPP="${CC-cc} -E -no-cpp-precomp"
2728 # Use fink packages if available.
2729 if test -d /sw/include && test -d /sw/lib; then
2730 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2731 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2732 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2733 fi
2734 ;;
2735
2736 ## HP 9000 series 700 and 800, running HP/UX
2737 hppa*-hp-hpux10.2* )
2738 machine=hp800 opsys=hpux10-20
2739 ;;
2740 hppa*-hp-hpux1[1-9]* )
2741 machine=hp800 opsys=hpux11
2742 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2743 ;;
2744
2745 hppa*-*-linux-gnu* )
2746 machine=hp800 opsys=gnu-linux
2747 ;;
2748
2749 ## IBM machines
2750 s390-*-linux-gnu* )
2751 machine=ibms390 opsys=gnu-linux
2752 ;;
2753 s390x-*-linux-gnu* )
2754 machine=ibms390x opsys=gnu-linux
2755 ;;
2756 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2757 machine=ibmrs6000 opsys=aix4-2
2758 ;;
2759 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2760 machine=ibmrs6000 opsys=aix4-2
2761 ;;
2762 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2763 machine=ibmrs6000 opsys=aix4-2
2764 ;;
2765 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2766 machine=ibmrs6000 opsys=aix4-2
2767 ;;
2768
2769 ## Macintosh PowerPC
2770 powerpc*-*-linux-gnu* )
2771 machine=macppc opsys=gnu-linux
2772 ;;
2773
2774 ## Silicon Graphics machines
2775 ## Iris 4D
2776 mips-sgi-irix6.5 )
2777 machine=iris4d opsys=irix6-5
2778 # Without defining _LANGUAGE_C, things get masked out in the headers
2779 # so that, for instance, grepping for `free' in stdlib.h fails and
2780 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2781 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2782 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2783 ;;
2784
2785 ## Suns
2786 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2787 machine=sparc opsys=gnu-linux
2788 ;;
2789
2790 *-sun-solaris* \
2791 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2792 | x86_64-*-solaris2* | x86_64-*-sunos5* \
2793 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
2794 case "${canonical}" in
2795 i[3456]86-*-* ) machine=intel386 ;;
2796 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2797 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2798 sparc* ) machine=sparc ;;
2799 * ) unported=yes ;;
2800 esac
2801 case "${canonical}" in
2802 *-sunos5.3* | *-solaris2.3* )
2803 opsys=sol2-3
2804 NON_GNU_CPP=/usr/ccs/lib/cpp
2805 ;;
2806 *-sunos5.4* | *-solaris2.4* )
2807 opsys=sol2-4
2808 NON_GNU_CPP=/usr/ccs/lib/cpp
2809 RANLIB="ar -ts"
2810 ;;
2811 *-sunos5.5* | *-solaris2.5* )
2812 opsys=sol2-5
2813 NON_GNU_CPP=/usr/ccs/lib/cpp
2814 RANLIB="ar -ts"
2815 ;;
2816 *-sunos5.6* | *-solaris2.6* )
2817 opsys=sol2-6
2818 NON_GNU_CPP=/usr/ccs/lib/cpp
2819 RANLIB="ar -ts"
2820 ;;
2821 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2822 opsys=sol2-6
2823 emacs_check_sunpro_c=yes
2824 NON_GNU_CPP=/usr/ccs/lib/cpp
2825 ;;
2826 *-sunos5* | *-solaris* )
2827 opsys=sol2-10
2828 emacs_check_sunpro_c=yes
2829 NON_GNU_CPP=/usr/ccs/lib/cpp
2830 ;;
2831 esac
2832 ## Watch out for a compiler that we know will not work.
2833 case "${canonical}" in
2834 *-solaris* | *-sunos5* )
2835 if [ "x$CC" = x/usr/ucb/cc ]; then
2836 ## /usr/ucb/cc doesn't work;
2837 ## we should find some other compiler that does work.
2838 unset CC
2839 fi
2840 ;;
2841 *) ;;
2842 esac
2843 ;;
2844
2845 ## IA-64
2846 ia64*-*-linux* )
2847 machine=ia64 opsys=gnu-linux
2848 ;;
2849
2850 ## Intel 386 machines where we don't care about the manufacturer
2851 i[3456]86-*-* )
2852 machine=intel386
2853 case "${canonical}" in
2854 *-cygwin ) opsys=cygwin ;;
2855 *-darwin* ) opsys=darwin
2856 CPP="${CC-cc} -E -no-cpp-precomp"
2857 ;;
2858 *-linux-gnu* ) opsys=gnu-linux ;;
2859 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2860 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2861 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2862 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2863 esac
2864 ;;
2865
2866 ## m68k Linux-based GNU system
2867 m68k-*-linux-gnu* )
2868 machine=m68k opsys=gnu-linux
2869 ;;
2870
2871 ## Mips Linux-based GNU system
2872 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2873 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2874 machine=mips opsys=gnu-linux
2875 ;;
2876
2877 ## AMD x86-64 Linux-based GNU system
2878 x86_64-*-linux-gnu* )
2879 machine=amdx86-64 opsys=gnu-linux
2880 ;;
2881
2882 ## Tensilica Xtensa Linux-based GNU system
2883 xtensa*-*-linux-gnu* )
2884 machine=xtensa opsys=gnu-linux
2885 ;;
2886
2887 ## SuperH Linux-based GNU system
2888 sh[34]*-*-linux-gnu* )
2889 machine=sh3 opsys=gnu-linux
2890 ;;
2891
2892 * )
2893 unported=yes
2894 ;;
2895 esac
2896
2897 ### If the code above didn't choose an operating system, just choose
2898 ### an operating system based on the configuration name. You really
2899 ### only want to use this when you have no idea what the right
2900 ### operating system is; if you know what operating systems a machine
2901 ### runs, it's cleaner to make it explicit in the case statement
2902 ### above.
2903 if test x"${opsys}" = x; then
2904 case "${canonical}" in
2905 *-gnu* ) opsys=gnu ;;
2906 *-sysv4.2uw* ) opsys=unixware ;;
2907 *-sysv5uw* ) opsys=unixware ;;
2908 *-sysv5OpenUNIX* ) opsys=unixware ;;
2909 *-sysv4.1* | *-sysvr4.1* )
2910 NON_GNU_CPP=/usr/lib/cpp
2911 opsys=usg5-4 ;;
2912 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2913 if [ x$NON_GNU_CPP = x ]; then
2914 if [ -f /usr/ccs/lib/cpp ]; then
2915 NON_GNU_CPP=/usr/ccs/lib/cpp
2916 else
2917 NON_GNU_CPP=/lib/cpp
2918 fi
2919 fi
2920 opsys=usg5-4-2 ;;
2921 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2922 * )
2923 unported=yes
2924 ;;
2925 esac
2926 fi
2927
2928
2929
2930 if test $unported = yes; then
2931 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2932 Check \`etc/MACHINES' for recognized configuration names." >&5
2933 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2934 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2935 { (exit 1); exit 1; }; }
2936 fi
2937
2938 machfile="m/${machine}.h"
2939 opsysfile="s/${opsys}.h"
2940
2941
2942 #### Choose a compiler.
2943 test -n "$CC" && cc_specified=yes
2944
2945 # Save the value of CFLAGS that the user specified.
2946 SPECIFIED_CFLAGS="$CFLAGS"
2947
2948 ac_ext=c
2949 ac_cpp='$CPP $CPPFLAGS'
2950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2953 if test -n "$ac_tool_prefix"; then
2954 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2955 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2956 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if test "${ac_cv_prog_CC+set}" = set; then
2959 $as_echo_n "(cached) " >&6
2960 else
2961 if test -n "$CC"; then
2962 ac_cv_prog_CC="$CC" # Let the user override the test.
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2966 do
2967 IFS=$as_save_IFS
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2972 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 break 2
2974 fi
2975 done
2976 done
2977 IFS=$as_save_IFS
2978
2979 fi
2980 fi
2981 CC=$ac_cv_prog_CC
2982 if test -n "$CC"; then
2983 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2984 $as_echo "$CC" >&6; }
2985 else
2986 { $as_echo "$as_me:$LINENO: result: no" >&5
2987 $as_echo "no" >&6; }
2988 fi
2989
2990
2991 fi
2992 if test -z "$ac_cv_prog_CC"; then
2993 ac_ct_CC=$CC
2994 # Extract the first word of "gcc", so it can be a program name with args.
2995 set dummy gcc; ac_word=$2
2996 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2999 $as_echo_n "(cached) " >&6
3000 else
3001 if test -n "$ac_ct_CC"; then
3002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011 ac_cv_prog_ac_ct_CC="gcc"
3012 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3014 fi
3015 done
3016 done
3017 IFS=$as_save_IFS
3018
3019 fi
3020 fi
3021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3022 if test -n "$ac_ct_CC"; then
3023 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3024 $as_echo "$ac_ct_CC" >&6; }
3025 else
3026 { $as_echo "$as_me:$LINENO: result: no" >&5
3027 $as_echo "no" >&6; }
3028 fi
3029
3030 if test "x$ac_ct_CC" = x; then
3031 CC=""
3032 else
3033 case $cross_compiling:$ac_tool_warned in
3034 yes:)
3035 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3036 whose name does not start with the host triplet. If you think this
3037 configuration is useful to you, please write to autoconf@gnu.org." >&5
3038 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3039 whose name does not start with the host triplet. If you think this
3040 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3041 ac_tool_warned=yes ;;
3042 esac
3043 CC=$ac_ct_CC
3044 fi
3045 else
3046 CC="$ac_cv_prog_CC"
3047 fi
3048
3049 if test -z "$CC"; then
3050 if test -n "$ac_tool_prefix"; then
3051 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3052 set dummy ${ac_tool_prefix}cc; ac_word=$2
3053 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if test "${ac_cv_prog_CC+set}" = set; then
3056 $as_echo_n "(cached) " >&6
3057 else
3058 if test -n "$CC"; then
3059 ac_cv_prog_CC="$CC" # Let the user override the test.
3060 else
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 for as_dir in $PATH
3063 do
3064 IFS=$as_save_IFS
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068 ac_cv_prog_CC="${ac_tool_prefix}cc"
3069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 break 2
3071 fi
3072 done
3073 done
3074 IFS=$as_save_IFS
3075
3076 fi
3077 fi
3078 CC=$ac_cv_prog_CC
3079 if test -n "$CC"; then
3080 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3081 $as_echo "$CC" >&6; }
3082 else
3083 { $as_echo "$as_me:$LINENO: result: no" >&5
3084 $as_echo "no" >&6; }
3085 fi
3086
3087
3088 fi
3089 fi
3090 if test -z "$CC"; then
3091 # Extract the first word of "cc", so it can be a program name with args.
3092 set dummy cc; ac_word=$2
3093 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if test "${ac_cv_prog_CC+set}" = set; then
3096 $as_echo_n "(cached) " >&6
3097 else
3098 if test -n "$CC"; then
3099 ac_cv_prog_CC="$CC" # Let the user override the test.
3100 else
3101 ac_prog_rejected=no
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3104 do
3105 IFS=$as_save_IFS
3106 test -z "$as_dir" && as_dir=.
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3110 ac_prog_rejected=yes
3111 continue
3112 fi
3113 ac_cv_prog_CC="cc"
3114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 break 2
3116 fi
3117 done
3118 done
3119 IFS=$as_save_IFS
3120
3121 if test $ac_prog_rejected = yes; then
3122 # We found a bogon in the path, so make sure we never use it.
3123 set dummy $ac_cv_prog_CC
3124 shift
3125 if test $# != 0; then
3126 # We chose a different compiler from the bogus one.
3127 # However, it has the same basename, so the bogon will be chosen
3128 # first if we set CC to just the basename; use the full file name.
3129 shift
3130 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3131 fi
3132 fi
3133 fi
3134 fi
3135 CC=$ac_cv_prog_CC
3136 if test -n "$CC"; then
3137 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3138 $as_echo "$CC" >&6; }
3139 else
3140 { $as_echo "$as_me:$LINENO: result: no" >&5
3141 $as_echo "no" >&6; }
3142 fi
3143
3144
3145 fi
3146 if test -z "$CC"; then
3147 if test -n "$ac_tool_prefix"; then
3148 for ac_prog in cl.exe
3149 do
3150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_CC+set}" = set; then
3155 $as_echo_n "(cached) " >&6
3156 else
3157 if test -n "$CC"; then
3158 ac_cv_prog_CC="$CC" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 break 2
3170 fi
3171 done
3172 done
3173 IFS=$as_save_IFS
3174
3175 fi
3176 fi
3177 CC=$ac_cv_prog_CC
3178 if test -n "$CC"; then
3179 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3181 else
3182 { $as_echo "$as_me:$LINENO: result: no" >&5
3183 $as_echo "no" >&6; }
3184 fi
3185
3186
3187 test -n "$CC" && break
3188 done
3189 fi
3190 if test -z "$CC"; then
3191 ac_ct_CC=$CC
3192 for ac_prog in cl.exe
3193 do
3194 # Extract the first word of "$ac_prog", so it can be a program name with args.
3195 set dummy $ac_prog; ac_word=$2
3196 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3199 $as_echo_n "(cached) " >&6
3200 else
3201 if test -n "$ac_ct_CC"; then
3202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3203 else
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3206 do
3207 IFS=$as_save_IFS
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3211 ac_cv_prog_ac_ct_CC="$ac_prog"
3212 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 break 2
3214 fi
3215 done
3216 done
3217 IFS=$as_save_IFS
3218
3219 fi
3220 fi
3221 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3222 if test -n "$ac_ct_CC"; then
3223 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3224 $as_echo "$ac_ct_CC" >&6; }
3225 else
3226 { $as_echo "$as_me:$LINENO: result: no" >&5
3227 $as_echo "no" >&6; }
3228 fi
3229
3230
3231 test -n "$ac_ct_CC" && break
3232 done
3233
3234 if test "x$ac_ct_CC" = x; then
3235 CC=""
3236 else
3237 case $cross_compiling:$ac_tool_warned in
3238 yes:)
3239 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3240 whose name does not start with the host triplet. If you think this
3241 configuration is useful to you, please write to autoconf@gnu.org." >&5
3242 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3243 whose name does not start with the host triplet. If you think this
3244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3245 ac_tool_warned=yes ;;
3246 esac
3247 CC=$ac_ct_CC
3248 fi
3249 fi
3250
3251 fi
3252
3253
3254 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3255 See \`config.log' for more details." >&5
3256 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3257 See \`config.log' for more details." >&2;}
3258 { (exit 1); exit 1; }; }
3259
3260 # Provide some information about the compiler.
3261 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3262 set X $ac_compile
3263 ac_compiler=$2
3264 { (ac_try="$ac_compiler --version >&5"
3265 case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3270 $as_echo "$ac_try_echo") >&5
3271 (eval "$ac_compiler --version >&5") 2>&5
3272 ac_status=$?
3273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }
3275 { (ac_try="$ac_compiler -v >&5"
3276 case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3281 $as_echo "$ac_try_echo") >&5
3282 (eval "$ac_compiler -v >&5") 2>&5
3283 ac_status=$?
3284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }
3286 { (ac_try="$ac_compiler -V >&5"
3287 case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290 esac
3291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3292 $as_echo "$ac_try_echo") >&5
3293 (eval "$ac_compiler -V >&5") 2>&5
3294 ac_status=$?
3295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }
3297
3298 cat >conftest.$ac_ext <<_ACEOF
3299 /* confdefs.h. */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3304
3305 int
3306 main ()
3307 {
3308
3309 ;
3310 return 0;
3311 }
3312 _ACEOF
3313 ac_clean_files_save=$ac_clean_files
3314 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3315 # Try to create an executable without -o first, disregard a.out.
3316 # It will help us diagnose broken compilers, and finding out an intuition
3317 # of exeext.
3318 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3319 $as_echo_n "checking for C compiler default output file name... " >&6; }
3320 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3321
3322 # The possible output files:
3323 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3324
3325 ac_rmfiles=
3326 for ac_file in $ac_files
3327 do
3328 case $ac_file in
3329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3330 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3331 esac
3332 done
3333 rm -f $ac_rmfiles
3334
3335 if { (ac_try="$ac_link_default"
3336 case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3341 $as_echo "$ac_try_echo") >&5
3342 (eval "$ac_link_default") 2>&5
3343 ac_status=$?
3344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; then
3346 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3347 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3348 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3349 # so that the user can short-circuit this test for compilers unknown to
3350 # Autoconf.
3351 for ac_file in $ac_files ''
3352 do
3353 test -f "$ac_file" || continue
3354 case $ac_file in
3355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3356 ;;
3357 [ab].out )
3358 # We found the default executable, but exeext='' is most
3359 # certainly right.
3360 break;;
3361 *.* )
3362 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3363 then :; else
3364 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3365 fi
3366 # We set ac_cv_exeext here because the later test for it is not
3367 # safe: cross compilers may not add the suffix if given an `-o'
3368 # argument, so we may need to know it at that point already.
3369 # Even if this section looks crufty: it has the advantage of
3370 # actually working.
3371 break;;
3372 * )
3373 break;;
3374 esac
3375 done
3376 test "$ac_cv_exeext" = no && ac_cv_exeext=
3377
3378 else
3379 ac_file=''
3380 fi
3381
3382 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3383 $as_echo "$ac_file" >&6; }
3384 if test -z "$ac_file"; then
3385 $as_echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3387
3388 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3389 See \`config.log' for more details." >&5
3390 $as_echo "$as_me: error: C compiler cannot create executables
3391 See \`config.log' for more details." >&2;}
3392 { (exit 77); exit 77; }; }
3393 fi
3394
3395 ac_exeext=$ac_cv_exeext
3396
3397 # Check that the compiler produces executables we can run. If not, either
3398 # the compiler is broken, or we cross compile.
3399 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3400 $as_echo_n "checking whether the C compiler works... " >&6; }
3401 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3402 # If not cross compiling, check that we can run a simple program.
3403 if test "$cross_compiling" != yes; then
3404 if { ac_try='./$ac_file'
3405 { (case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408 esac
3409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3410 $as_echo "$ac_try_echo") >&5
3411 (eval "$ac_try") 2>&5
3412 ac_status=$?
3413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
3415 cross_compiling=no
3416 else
3417 if test "$cross_compiling" = maybe; then
3418 cross_compiling=yes
3419 else
3420 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3421 If you meant to cross compile, use \`--host'.
3422 See \`config.log' for more details." >&5
3423 $as_echo "$as_me: error: cannot run C compiled programs.
3424 If you meant to cross compile, use \`--host'.
3425 See \`config.log' for more details." >&2;}
3426 { (exit 1); exit 1; }; }
3427 fi
3428 fi
3429 fi
3430 { $as_echo "$as_me:$LINENO: result: yes" >&5
3431 $as_echo "yes" >&6; }
3432
3433 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3434 ac_clean_files=$ac_clean_files_save
3435 # Check that the compiler produces executables we can run. If not, either
3436 # the compiler is broken, or we cross compile.
3437 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3438 $as_echo_n "checking whether we are cross compiling... " >&6; }
3439 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3440 $as_echo "$cross_compiling" >&6; }
3441
3442 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3443 $as_echo_n "checking for suffix of executables... " >&6; }
3444 if { (ac_try="$ac_link"
3445 case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448 esac
3449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3450 $as_echo "$ac_try_echo") >&5
3451 (eval "$ac_link") 2>&5
3452 ac_status=$?
3453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; then
3455 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3456 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3457 # work properly (i.e., refer to `conftest.exe'), while it won't with
3458 # `rm'.
3459 for ac_file in conftest.exe conftest conftest.*; do
3460 test -f "$ac_file" || continue
3461 case $ac_file in
3462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3463 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3464 break;;
3465 * ) break;;
3466 esac
3467 done
3468 else
3469 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3470 See \`config.log' for more details." >&5
3471 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3472 See \`config.log' for more details." >&2;}
3473 { (exit 1); exit 1; }; }
3474 fi
3475
3476 rm -f conftest$ac_cv_exeext
3477 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3478 $as_echo "$ac_cv_exeext" >&6; }
3479
3480 rm -f conftest.$ac_ext
3481 EXEEXT=$ac_cv_exeext
3482 ac_exeext=$EXEEXT
3483 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3484 $as_echo_n "checking for suffix of object files... " >&6; }
3485 if test "${ac_cv_objext+set}" = set; then
3486 $as_echo_n "(cached) " >&6
3487 else
3488 cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h. */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3494
3495 int
3496 main ()
3497 {
3498
3499 ;
3500 return 0;
3501 }
3502 _ACEOF
3503 rm -f conftest.o conftest.obj
3504 if { (ac_try="$ac_compile"
3505 case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508 esac
3509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3510 $as_echo "$ac_try_echo") >&5
3511 (eval "$ac_compile") 2>&5
3512 ac_status=$?
3513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; then
3515 for ac_file in conftest.o conftest.obj conftest.*; do
3516 test -f "$ac_file" || continue;
3517 case $ac_file in
3518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3519 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3520 break;;
3521 esac
3522 done
3523 else
3524 $as_echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3526
3527 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3528 See \`config.log' for more details." >&5
3529 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3530 See \`config.log' for more details." >&2;}
3531 { (exit 1); exit 1; }; }
3532 fi
3533
3534 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3535 fi
3536 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3537 $as_echo "$ac_cv_objext" >&6; }
3538 OBJEXT=$ac_cv_objext
3539 ac_objext=$OBJEXT
3540 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3541 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3542 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3543 $as_echo_n "(cached) " >&6
3544 else
3545 cat >conftest.$ac_ext <<_ACEOF
3546 /* confdefs.h. */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3551
3552 int
3553 main ()
3554 {
3555 #ifndef __GNUC__
3556 choke me
3557 #endif
3558
3559 ;
3560 return 0;
3561 }
3562 _ACEOF
3563 rm -f conftest.$ac_objext
3564 if { (ac_try="$ac_compile"
3565 case "(($ac_try" in
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3568 esac
3569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3570 $as_echo "$ac_try_echo") >&5
3571 (eval "$ac_compile") 2>conftest.er1
3572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } && {
3578 test -z "$ac_c_werror_flag" ||
3579 test ! -s conftest.err
3580 } && test -s conftest.$ac_objext; then
3581 ac_compiler_gnu=yes
3582 else
3583 $as_echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3585
3586 ac_compiler_gnu=no
3587 fi
3588
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3591
3592 fi
3593 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3594 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3595 if test $ac_compiler_gnu = yes; then
3596 GCC=yes
3597 else
3598 GCC=
3599 fi
3600 ac_test_CFLAGS=${CFLAGS+set}
3601 ac_save_CFLAGS=$CFLAGS
3602 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3603 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3604 if test "${ac_cv_prog_cc_g+set}" = set; then
3605 $as_echo_n "(cached) " >&6
3606 else
3607 ac_save_c_werror_flag=$ac_c_werror_flag
3608 ac_c_werror_flag=yes
3609 ac_cv_prog_cc_g=no
3610 CFLAGS="-g"
3611 cat >conftest.$ac_ext <<_ACEOF
3612 /* confdefs.h. */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3617
3618 int
3619 main ()
3620 {
3621
3622 ;
3623 return 0;
3624 }
3625 _ACEOF
3626 rm -f conftest.$ac_objext
3627 if { (ac_try="$ac_compile"
3628 case "(($ac_try" in
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3631 esac
3632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3633 $as_echo "$ac_try_echo") >&5
3634 (eval "$ac_compile") 2>conftest.er1
3635 ac_status=$?
3636 grep -v '^ *+' conftest.er1 >conftest.err
3637 rm -f conftest.er1
3638 cat conftest.err >&5
3639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } && {
3641 test -z "$ac_c_werror_flag" ||
3642 test ! -s conftest.err
3643 } && test -s conftest.$ac_objext; then
3644 ac_cv_prog_cc_g=yes
3645 else
3646 $as_echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649 CFLAGS=""
3650 cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h. */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3656
3657 int
3658 main ()
3659 {
3660
3661 ;
3662 return 0;
3663 }
3664 _ACEOF
3665 rm -f conftest.$ac_objext
3666 if { (ac_try="$ac_compile"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3672 $as_echo "$ac_try_echo") >&5
3673 (eval "$ac_compile") 2>conftest.er1
3674 ac_status=$?
3675 grep -v '^ *+' conftest.er1 >conftest.err
3676 rm -f conftest.er1
3677 cat conftest.err >&5
3678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } && {
3680 test -z "$ac_c_werror_flag" ||
3681 test ! -s conftest.err
3682 } && test -s conftest.$ac_objext; then
3683 :
3684 else
3685 $as_echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3687
3688 ac_c_werror_flag=$ac_save_c_werror_flag
3689 CFLAGS="-g"
3690 cat >conftest.$ac_ext <<_ACEOF
3691 /* confdefs.h. */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3696
3697 int
3698 main ()
3699 {
3700
3701 ;
3702 return 0;
3703 }
3704 _ACEOF
3705 rm -f conftest.$ac_objext
3706 if { (ac_try="$ac_compile"
3707 case "(($ac_try" in
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3710 esac
3711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3712 $as_echo "$ac_try_echo") >&5
3713 (eval "$ac_compile") 2>conftest.er1
3714 ac_status=$?
3715 grep -v '^ *+' conftest.er1 >conftest.err
3716 rm -f conftest.er1
3717 cat conftest.err >&5
3718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } && {
3720 test -z "$ac_c_werror_flag" ||
3721 test ! -s conftest.err
3722 } && test -s conftest.$ac_objext; then
3723 ac_cv_prog_cc_g=yes
3724 else
3725 $as_echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3727
3728
3729 fi
3730
3731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732 fi
3733
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 fi
3736
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 ac_c_werror_flag=$ac_save_c_werror_flag
3739 fi
3740 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3741 $as_echo "$ac_cv_prog_cc_g" >&6; }
3742 if test "$ac_test_CFLAGS" = set; then
3743 CFLAGS=$ac_save_CFLAGS
3744 elif test $ac_cv_prog_cc_g = yes; then
3745 if test "$GCC" = yes; then
3746 CFLAGS="-g -O2"
3747 else
3748 CFLAGS="-g"
3749 fi
3750 else
3751 if test "$GCC" = yes; then
3752 CFLAGS="-O2"
3753 else
3754 CFLAGS=
3755 fi
3756 fi
3757 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3758 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3759 if test "${ac_cv_prog_cc_c89+set}" = set; then
3760 $as_echo_n "(cached) " >&6
3761 else
3762 ac_cv_prog_cc_c89=no
3763 ac_save_CC=$CC
3764 cat >conftest.$ac_ext <<_ACEOF
3765 /* confdefs.h. */
3766 _ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3770 #include <stdarg.h>
3771 #include <stdio.h>
3772 #include <sys/types.h>
3773 #include <sys/stat.h>
3774 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3775 struct buf { int x; };
3776 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3777 static char *e (p, i)
3778 char **p;
3779 int i;
3780 {
3781 return p[i];
3782 }
3783 static char *f (char * (*g) (char **, int), char **p, ...)
3784 {
3785 char *s;
3786 va_list v;
3787 va_start (v,p);
3788 s = g (p, va_arg (v,int));
3789 va_end (v);
3790 return s;
3791 }
3792
3793 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3794 function prototypes and stuff, but not '\xHH' hex character constants.
3795 These don't provoke an error unfortunately, instead are silently treated
3796 as 'x'. The following induces an error, until -std is added to get
3797 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3798 array size at least. It's necessary to write '\x00'==0 to get something
3799 that's true only with -std. */
3800 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3801
3802 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3803 inside strings and character constants. */
3804 #define FOO(x) 'x'
3805 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3806
3807 int test (int i, double x);
3808 struct s1 {int (*f) (int a);};
3809 struct s2 {int (*f) (double a);};
3810 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3811 int argc;
3812 char **argv;
3813 int
3814 main ()
3815 {
3816 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3817 ;
3818 return 0;
3819 }
3820 _ACEOF
3821 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3822 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3823 do
3824 CC="$ac_save_CC $ac_arg"
3825 rm -f conftest.$ac_objext
3826 if { (ac_try="$ac_compile"
3827 case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3830 esac
3831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3832 $as_echo "$ac_try_echo") >&5
3833 (eval "$ac_compile") 2>conftest.er1
3834 ac_status=$?
3835 grep -v '^ *+' conftest.er1 >conftest.err
3836 rm -f conftest.er1
3837 cat conftest.err >&5
3838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } && {
3840 test -z "$ac_c_werror_flag" ||
3841 test ! -s conftest.err
3842 } && test -s conftest.$ac_objext; then
3843 ac_cv_prog_cc_c89=$ac_arg
3844 else
3845 $as_echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3847
3848
3849 fi
3850
3851 rm -f core conftest.err conftest.$ac_objext
3852 test "x$ac_cv_prog_cc_c89" != "xno" && break
3853 done
3854 rm -f conftest.$ac_ext
3855 CC=$ac_save_CC
3856
3857 fi
3858 # AC_CACHE_VAL
3859 case "x$ac_cv_prog_cc_c89" in
3860 x)
3861 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3862 $as_echo "none needed" >&6; } ;;
3863 xno)
3864 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3865 $as_echo "unsupported" >&6; } ;;
3866 *)
3867 CC="$CC $ac_cv_prog_cc_c89"
3868 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3869 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3870 esac
3871
3872
3873 ac_ext=c
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878
3879
3880 # On Suns, sometimes $CPP names a directory.
3881 if test -n "$CPP" && test -d "$CPP"; then
3882 CPP=
3883 fi
3884
3885 ## If not using gcc, and on Solaris, and no CPP specified, see if
3886 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3887 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3888 test x"$CPP" = x; then
3889 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3890 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3891
3892 if test "${emacs_cv_sunpro_c+set}" = set; then
3893 $as_echo_n "(cached) " >&6
3894 else
3895 cat >conftest.$ac_ext <<_ACEOF
3896 /* confdefs.h. */
3897 _ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3901
3902 int
3903 main ()
3904 {
3905 #ifndef __SUNPRO_C
3906 fail;
3907 #endif
3908
3909 ;
3910 return 0;
3911 }
3912 _ACEOF
3913 rm -f conftest.$ac_objext conftest$ac_exeext
3914 if { (ac_try="$ac_link"
3915 case "(($ac_try" in
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3918 esac
3919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3920 $as_echo "$ac_try_echo") >&5
3921 (eval "$ac_link") 2>conftest.er1
3922 ac_status=$?
3923 grep -v '^ *+' conftest.er1 >conftest.err
3924 rm -f conftest.er1
3925 cat conftest.err >&5
3926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } && {
3928 test -z "$ac_c_werror_flag" ||
3929 test ! -s conftest.err
3930 } && test -s conftest$ac_exeext && {
3931 test "$cross_compiling" = yes ||
3932 $as_test_x conftest$ac_exeext
3933 }; then
3934 emacs_cv_sunpro_c=yes
3935 else
3936 $as_echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939 emacs_cv_sunpro_c=no
3940 fi
3941
3942 rm -rf conftest.dSYM
3943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3944 conftest$ac_exeext conftest.$ac_ext
3945 fi
3946
3947 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3948 $as_echo "$emacs_cv_sunpro_c" >&6; }
3949
3950 if test x"$emacs_cv_sunpro_c" = xyes; then
3951 NON_GNU_CPP="$CC -E -Xs"
3952 fi
3953 fi
3954
3955 #### Some systems specify a CPP to use unless we are using GCC.
3956 #### Now that we know whether we are using GCC, we can decide whether
3957 #### to use that one.
3958 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3959 then
3960 CPP="$NON_GNU_CPP"
3961 fi
3962
3963 #### Some systems specify a CC to use unless we are using GCC.
3964 #### Now that we know whether we are using GCC, we can decide whether
3965 #### to use that one.
3966 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3967 test x$cc_specified != xyes
3968 then
3969 CC="$NON_GNU_CC"
3970 fi
3971
3972 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3973 then
3974 CC="$CC $GCC_TEST_OPTIONS"
3975 fi
3976
3977 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3978 then
3979 CC="$CC $NON_GCC_TEST_OPTIONS"
3980 fi
3981
3982 ac_ext=c
3983 ac_cpp='$CPP $CPPFLAGS'
3984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3987 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3988 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3989 # On Suns, sometimes $CPP names a directory.
3990 if test -n "$CPP" && test -d "$CPP"; then
3991 CPP=
3992 fi
3993 if test -z "$CPP"; then
3994 if test "${ac_cv_prog_CPP+set}" = set; then
3995 $as_echo_n "(cached) " >&6
3996 else
3997 # Double quotes because CPP needs to be expanded
3998 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3999 do
4000 ac_preproc_ok=false
4001 for ac_c_preproc_warn_flag in '' yes
4002 do
4003 # Use a header file that comes with gcc, so configuring glibc
4004 # with a fresh cross-compiler works.
4005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4006 # <limits.h> exists even on freestanding compilers.
4007 # On the NeXT, cc -E runs the code through the compiler's parser,
4008 # not just through cpp. "Syntax error" is here to catch this case.
4009 cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h. */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4015 #ifdef __STDC__
4016 # include <limits.h>
4017 #else
4018 # include <assert.h>
4019 #endif
4020 Syntax error
4021 _ACEOF
4022 if { (ac_try="$ac_cpp conftest.$ac_ext"
4023 case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026 esac
4027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4028 $as_echo "$ac_try_echo") >&5
4029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } >/dev/null && {
4036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4037 test ! -s conftest.err
4038 }; then
4039 :
4040 else
4041 $as_echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4043
4044 # Broken: fails on valid input.
4045 continue
4046 fi
4047
4048 rm -f conftest.err conftest.$ac_ext
4049
4050 # OK, works on sane cases. Now check whether nonexistent headers
4051 # can be detected and how.
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 #include <ac_nonexistent.h>
4059 _ACEOF
4060 if { (ac_try="$ac_cpp conftest.$ac_ext"
4061 case "(($ac_try" in
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4064 esac
4065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4066 $as_echo "$ac_try_echo") >&5
4067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4068 ac_status=$?
4069 grep -v '^ *+' conftest.er1 >conftest.err
4070 rm -f conftest.er1
4071 cat conftest.err >&5
4072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } >/dev/null && {
4074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4075 test ! -s conftest.err
4076 }; then
4077 # Broken: success on invalid input.
4078 continue
4079 else
4080 $as_echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4082
4083 # Passes both tests.
4084 ac_preproc_ok=:
4085 break
4086 fi
4087
4088 rm -f conftest.err conftest.$ac_ext
4089
4090 done
4091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4092 rm -f conftest.err conftest.$ac_ext
4093 if $ac_preproc_ok; then
4094 break
4095 fi
4096
4097 done
4098 ac_cv_prog_CPP=$CPP
4099
4100 fi
4101 CPP=$ac_cv_prog_CPP
4102 else
4103 ac_cv_prog_CPP=$CPP
4104 fi
4105 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4106 $as_echo "$CPP" >&6; }
4107 ac_preproc_ok=false
4108 for ac_c_preproc_warn_flag in '' yes
4109 do
4110 # Use a header file that comes with gcc, so configuring glibc
4111 # with a fresh cross-compiler works.
4112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4113 # <limits.h> exists even on freestanding compilers.
4114 # On the NeXT, cc -E runs the code through the compiler's parser,
4115 # not just through cpp. "Syntax error" is here to catch this case.
4116 cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h. */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4122 #ifdef __STDC__
4123 # include <limits.h>
4124 #else
4125 # include <assert.h>
4126 #endif
4127 Syntax error
4128 _ACEOF
4129 if { (ac_try="$ac_cpp conftest.$ac_ext"
4130 case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4133 esac
4134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4135 $as_echo "$ac_try_echo") >&5
4136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4137 ac_status=$?
4138 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -f conftest.er1
4140 cat conftest.err >&5
4141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } >/dev/null && {
4143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4144 test ! -s conftest.err
4145 }; then
4146 :
4147 else
4148 $as_echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4150
4151 # Broken: fails on valid input.
4152 continue
4153 fi
4154
4155 rm -f conftest.err conftest.$ac_ext
4156
4157 # OK, works on sane cases. Now check whether nonexistent headers
4158 # can be detected and how.
4159 cat >conftest.$ac_ext <<_ACEOF
4160 /* confdefs.h. */
4161 _ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h. */
4165 #include <ac_nonexistent.h>
4166 _ACEOF
4167 if { (ac_try="$ac_cpp conftest.$ac_ext"
4168 case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171 esac
4172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4173 $as_echo "$ac_try_echo") >&5
4174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4175 ac_status=$?
4176 grep -v '^ *+' conftest.er1 >conftest.err
4177 rm -f conftest.er1
4178 cat conftest.err >&5
4179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } >/dev/null && {
4181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4182 test ! -s conftest.err
4183 }; then
4184 # Broken: success on invalid input.
4185 continue
4186 else
4187 $as_echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4189
4190 # Passes both tests.
4191 ac_preproc_ok=:
4192 break
4193 fi
4194
4195 rm -f conftest.err conftest.$ac_ext
4196
4197 done
4198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4199 rm -f conftest.err conftest.$ac_ext
4200 if $ac_preproc_ok; then
4201 :
4202 else
4203 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4204 See \`config.log' for more details." >&5
4205 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4206 See \`config.log' for more details." >&2;}
4207 { (exit 1); exit 1; }; }
4208 fi
4209
4210 ac_ext=c
4211 ac_cpp='$CPP $CPPFLAGS'
4212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215
4216
4217 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4218 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4219 if test "${ac_cv_path_GREP+set}" = set; then
4220 $as_echo_n "(cached) " >&6
4221 else
4222 if test -z "$GREP"; then
4223 ac_path_GREP_found=false
4224 # Loop through the user's path and test for each of PROGNAME-LIST
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4227 do
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_prog in grep ggrep; do
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4233 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4234 # Check for GNU ac_path_GREP and select it if it is found.
4235 # Check for GNU $ac_path_GREP
4236 case `"$ac_path_GREP" --version 2>&1` in
4237 *GNU*)
4238 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4239 *)
4240 ac_count=0
4241 $as_echo_n 0123456789 >"conftest.in"
4242 while :
4243 do
4244 cat "conftest.in" "conftest.in" >"conftest.tmp"
4245 mv "conftest.tmp" "conftest.in"
4246 cp "conftest.in" "conftest.nl"
4247 $as_echo 'GREP' >> "conftest.nl"
4248 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4250 ac_count=`expr $ac_count + 1`
4251 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4252 # Best one so far, save it but keep looking for a better one
4253 ac_cv_path_GREP="$ac_path_GREP"
4254 ac_path_GREP_max=$ac_count
4255 fi
4256 # 10*(2^10) chars as input seems more than enough
4257 test $ac_count -gt 10 && break
4258 done
4259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4260 esac
4261
4262 $ac_path_GREP_found && break 3
4263 done
4264 done
4265 done
4266 IFS=$as_save_IFS
4267 if test -z "$ac_cv_path_GREP"; then
4268 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4269 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4270 { (exit 1); exit 1; }; }
4271 fi
4272 else
4273 ac_cv_path_GREP=$GREP
4274 fi
4275
4276 fi
4277 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4278 $as_echo "$ac_cv_path_GREP" >&6; }
4279 GREP="$ac_cv_path_GREP"
4280
4281
4282 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4283 $as_echo_n "checking for egrep... " >&6; }
4284 if test "${ac_cv_path_EGREP+set}" = set; then
4285 $as_echo_n "(cached) " >&6
4286 else
4287 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4288 then ac_cv_path_EGREP="$GREP -E"
4289 else
4290 if test -z "$EGREP"; then
4291 ac_path_EGREP_found=false
4292 # Loop through the user's path and test for each of PROGNAME-LIST
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4295 do
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_prog in egrep; do
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4301 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4302 # Check for GNU ac_path_EGREP and select it if it is found.
4303 # Check for GNU $ac_path_EGREP
4304 case `"$ac_path_EGREP" --version 2>&1` in
4305 *GNU*)
4306 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4307 *)
4308 ac_count=0
4309 $as_echo_n 0123456789 >"conftest.in"
4310 while :
4311 do
4312 cat "conftest.in" "conftest.in" >"conftest.tmp"
4313 mv "conftest.tmp" "conftest.in"
4314 cp "conftest.in" "conftest.nl"
4315 $as_echo 'EGREP' >> "conftest.nl"
4316 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4318 ac_count=`expr $ac_count + 1`
4319 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4320 # Best one so far, save it but keep looking for a better one
4321 ac_cv_path_EGREP="$ac_path_EGREP"
4322 ac_path_EGREP_max=$ac_count
4323 fi
4324 # 10*(2^10) chars as input seems more than enough
4325 test $ac_count -gt 10 && break
4326 done
4327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4328 esac
4329
4330 $ac_path_EGREP_found && break 3
4331 done
4332 done
4333 done
4334 IFS=$as_save_IFS
4335 if test -z "$ac_cv_path_EGREP"; then
4336 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4337 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4338 { (exit 1); exit 1; }; }
4339 fi
4340 else
4341 ac_cv_path_EGREP=$EGREP
4342 fi
4343
4344 fi
4345 fi
4346 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4347 $as_echo "$ac_cv_path_EGREP" >&6; }
4348 EGREP="$ac_cv_path_EGREP"
4349
4350
4351 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4352 $as_echo_n "checking for ANSI C header files... " >&6; }
4353 if test "${ac_cv_header_stdc+set}" = set; then
4354 $as_echo_n "(cached) " >&6
4355 else
4356 cat >conftest.$ac_ext <<_ACEOF
4357 /* confdefs.h. */
4358 _ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4362 #include <stdlib.h>
4363 #include <stdarg.h>
4364 #include <string.h>
4365 #include <float.h>
4366
4367 int
4368 main ()
4369 {
4370
4371 ;
4372 return 0;
4373 }
4374 _ACEOF
4375 rm -f conftest.$ac_objext
4376 if { (ac_try="$ac_compile"
4377 case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4380 esac
4381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4382 $as_echo "$ac_try_echo") >&5
4383 (eval "$ac_compile") 2>conftest.er1
4384 ac_status=$?
4385 grep -v '^ *+' conftest.er1 >conftest.err
4386 rm -f conftest.er1
4387 cat conftest.err >&5
4388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } && {
4390 test -z "$ac_c_werror_flag" ||
4391 test ! -s conftest.err
4392 } && test -s conftest.$ac_objext; then
4393 ac_cv_header_stdc=yes
4394 else
4395 $as_echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398 ac_cv_header_stdc=no
4399 fi
4400
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402
4403 if test $ac_cv_header_stdc = yes; then
4404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4405 cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h. */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 #include <string.h>
4412
4413 _ACEOF
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 $EGREP "memchr" >/dev/null 2>&1; then
4416 :
4417 else
4418 ac_cv_header_stdc=no
4419 fi
4420 rm -f conftest*
4421
4422 fi
4423
4424 if test $ac_cv_header_stdc = yes; then
4425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h. */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #include <stdlib.h>
4433
4434 _ACEOF
4435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4436 $EGREP "free" >/dev/null 2>&1; then
4437 :
4438 else
4439 ac_cv_header_stdc=no
4440 fi
4441 rm -f conftest*
4442
4443 fi
4444
4445 if test $ac_cv_header_stdc = yes; then
4446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4447 if test "$cross_compiling" = yes; then
4448 :
4449 else
4450 cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h. */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 #include <ctype.h>
4457 #include <stdlib.h>
4458 #if ((' ' & 0x0FF) == 0x020)
4459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4461 #else
4462 # define ISLOWER(c) \
4463 (('a' <= (c) && (c) <= 'i') \
4464 || ('j' <= (c) && (c) <= 'r') \
4465 || ('s' <= (c) && (c) <= 'z'))
4466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4467 #endif
4468
4469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4470 int
4471 main ()
4472 {
4473 int i;
4474 for (i = 0; i < 256; i++)
4475 if (XOR (islower (i), ISLOWER (i))
4476 || toupper (i) != TOUPPER (i))
4477 return 2;
4478 return 0;
4479 }
4480 _ACEOF
4481 rm -f conftest$ac_exeext
4482 if { (ac_try="$ac_link"
4483 case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486 esac
4487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4488 $as_echo "$ac_try_echo") >&5
4489 (eval "$ac_link") 2>&5
4490 ac_status=$?
4491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4493 { (case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4496 esac
4497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4498 $as_echo "$ac_try_echo") >&5
4499 (eval "$ac_try") 2>&5
4500 ac_status=$?
4501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 :
4504 else
4505 $as_echo "$as_me: program exited with status $ac_status" >&5
4506 $as_echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4508
4509 ( exit $ac_status )
4510 ac_cv_header_stdc=no
4511 fi
4512 rm -rf conftest.dSYM
4513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4514 fi
4515
4516
4517 fi
4518 fi
4519 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4520 $as_echo "$ac_cv_header_stdc" >&6; }
4521 if test $ac_cv_header_stdc = yes; then
4522
4523 cat >>confdefs.h <<\_ACEOF
4524 #define STDC_HEADERS 1
4525 _ACEOF
4526
4527 fi
4528
4529 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4540 inttypes.h stdint.h unistd.h
4541 do
4542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4543 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4544 $as_echo_n "checking for $ac_header... " >&6; }
4545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4546 $as_echo_n "(cached) " >&6
4547 else
4548 cat >conftest.$ac_ext <<_ACEOF
4549 /* confdefs.h. */
4550 _ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4554 $ac_includes_default
4555
4556 #include <$ac_header>
4557 _ACEOF
4558 rm -f conftest.$ac_objext
4559 if { (ac_try="$ac_compile"
4560 case "(($ac_try" in
4561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562 *) ac_try_echo=$ac_try;;
4563 esac
4564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4565 $as_echo "$ac_try_echo") >&5
4566 (eval "$ac_compile") 2>conftest.er1
4567 ac_status=$?
4568 grep -v '^ *+' conftest.er1 >conftest.err
4569 rm -f conftest.er1
4570 cat conftest.err >&5
4571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } && {
4573 test -z "$ac_c_werror_flag" ||
4574 test ! -s conftest.err
4575 } && test -s conftest.$ac_objext; then
4576 eval "$as_ac_Header=yes"
4577 else
4578 $as_echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4580
4581 eval "$as_ac_Header=no"
4582 fi
4583
4584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585 fi
4586 ac_res=`eval 'as_val=${'$as_ac_Header'}
4587 $as_echo "$as_val"'`
4588 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4589 $as_echo "$ac_res" >&6; }
4590 if test `eval 'as_val=${'$as_ac_Header'}
4591 $as_echo "$as_val"'` = yes; then
4592 cat >>confdefs.h <<_ACEOF
4593 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4594 _ACEOF
4595
4596 fi
4597
4598 done
4599
4600
4601
4602 if test "${ac_cv_header_minix_config_h+set}" = set; then
4603 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4604 $as_echo_n "checking for minix/config.h... " >&6; }
4605 if test "${ac_cv_header_minix_config_h+set}" = set; then
4606 $as_echo_n "(cached) " >&6
4607 fi
4608 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4609 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4610 else
4611 # Is the header compilable?
4612 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4613 $as_echo_n "checking minix/config.h usability... " >&6; }
4614 cat >conftest.$ac_ext <<_ACEOF
4615 /* confdefs.h. */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4620 $ac_includes_default
4621 #include <minix/config.h>
4622 _ACEOF
4623 rm -f conftest.$ac_objext
4624 if { (ac_try="$ac_compile"
4625 case "(($ac_try" in
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4628 esac
4629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4630 $as_echo "$ac_try_echo") >&5
4631 (eval "$ac_compile") 2>conftest.er1
4632 ac_status=$?
4633 grep -v '^ *+' conftest.er1 >conftest.err
4634 rm -f conftest.er1
4635 cat conftest.err >&5
4636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } && {
4638 test -z "$ac_c_werror_flag" ||
4639 test ! -s conftest.err
4640 } && test -s conftest.$ac_objext; then
4641 ac_header_compiler=yes
4642 else
4643 $as_echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4645
4646 ac_header_compiler=no
4647 fi
4648
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4651 $as_echo "$ac_header_compiler" >&6; }
4652
4653 # Is the header present?
4654 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4655 $as_echo_n "checking minix/config.h presence... " >&6; }
4656 cat >conftest.$ac_ext <<_ACEOF
4657 /* confdefs.h. */
4658 _ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h. */
4662 #include <minix/config.h>
4663 _ACEOF
4664 if { (ac_try="$ac_cpp conftest.$ac_ext"
4665 case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4668 esac
4669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4670 $as_echo "$ac_try_echo") >&5
4671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4672 ac_status=$?
4673 grep -v '^ *+' conftest.er1 >conftest.err
4674 rm -f conftest.er1
4675 cat conftest.err >&5
4676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } >/dev/null && {
4678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4679 test ! -s conftest.err
4680 }; then
4681 ac_header_preproc=yes
4682 else
4683 $as_echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4685
4686 ac_header_preproc=no
4687 fi
4688
4689 rm -f conftest.err conftest.$ac_ext
4690 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4691 $as_echo "$ac_header_preproc" >&6; }
4692
4693 # So? What about this header?
4694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4695 yes:no: )
4696 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4697 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4698 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4699 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4700 ac_header_preproc=yes
4701 ;;
4702 no:yes:* )
4703 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4704 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4705 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4706 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4707 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4708 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4709 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4710 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4711 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4712 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4713 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4714 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4715
4716 ;;
4717 esac
4718 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4719 $as_echo_n "checking for minix/config.h... " >&6; }
4720 if test "${ac_cv_header_minix_config_h+set}" = set; then
4721 $as_echo_n "(cached) " >&6
4722 else
4723 ac_cv_header_minix_config_h=$ac_header_preproc
4724 fi
4725 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4726 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4727
4728 fi
4729 if test $ac_cv_header_minix_config_h = yes; then
4730 MINIX=yes
4731 else
4732 MINIX=
4733 fi
4734
4735
4736 if test "$MINIX" = yes; then
4737
4738 cat >>confdefs.h <<\_ACEOF
4739 #define _POSIX_SOURCE 1
4740 _ACEOF
4741
4742
4743 cat >>confdefs.h <<\_ACEOF
4744 #define _POSIX_1_SOURCE 2
4745 _ACEOF
4746
4747
4748 cat >>confdefs.h <<\_ACEOF
4749 #define _MINIX 1
4750 _ACEOF
4751
4752 fi
4753
4754
4755
4756 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4757 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4758 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4759 $as_echo_n "(cached) " >&6
4760 else
4761 cat >conftest.$ac_ext <<_ACEOF
4762 /* confdefs.h. */
4763 _ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4767
4768 # define __EXTENSIONS__ 1
4769 $ac_includes_default
4770 int
4771 main ()
4772 {
4773
4774 ;
4775 return 0;
4776 }
4777 _ACEOF
4778 rm -f conftest.$ac_objext
4779 if { (ac_try="$ac_compile"
4780 case "(($ac_try" in
4781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782 *) ac_try_echo=$ac_try;;
4783 esac
4784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4785 $as_echo "$ac_try_echo") >&5
4786 (eval "$ac_compile") 2>conftest.er1
4787 ac_status=$?
4788 grep -v '^ *+' conftest.er1 >conftest.err
4789 rm -f conftest.er1
4790 cat conftest.err >&5
4791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } && {
4793 test -z "$ac_c_werror_flag" ||
4794 test ! -s conftest.err
4795 } && test -s conftest.$ac_objext; then
4796 ac_cv_safe_to_define___extensions__=yes
4797 else
4798 $as_echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4800
4801 ac_cv_safe_to_define___extensions__=no
4802 fi
4803
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 fi
4806 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4807 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4808 test $ac_cv_safe_to_define___extensions__ = yes &&
4809 cat >>confdefs.h <<\_ACEOF
4810 #define __EXTENSIONS__ 1
4811 _ACEOF
4812
4813 cat >>confdefs.h <<\_ACEOF
4814 #define _ALL_SOURCE 1
4815 _ACEOF
4816
4817 cat >>confdefs.h <<\_ACEOF
4818 #define _GNU_SOURCE 1
4819 _ACEOF
4820
4821 cat >>confdefs.h <<\_ACEOF
4822 #define _POSIX_PTHREAD_SEMANTICS 1
4823 _ACEOF
4824
4825 cat >>confdefs.h <<\_ACEOF
4826 #define _TANDEM_SOURCE 1
4827 _ACEOF
4828
4829
4830
4831 ### Use -Wno-pointer-sign if the compiler supports it
4832 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4833 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4834 SAVE_CFLAGS="$CFLAGS"
4835 CFLAGS="$CFLAGS -Wno-pointer-sign"
4836 cat >conftest.$ac_ext <<_ACEOF
4837 /* confdefs.h. */
4838 _ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4842
4843 int
4844 main ()
4845 {
4846
4847 ;
4848 return 0;
4849 }
4850 _ACEOF
4851 rm -f conftest.$ac_objext
4852 if { (ac_try="$ac_compile"
4853 case "(($ac_try" in
4854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855 *) ac_try_echo=$ac_try;;
4856 esac
4857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4858 $as_echo "$ac_try_echo") >&5
4859 (eval "$ac_compile") 2>conftest.er1
4860 ac_status=$?
4861 grep -v '^ *+' conftest.er1 >conftest.err
4862 rm -f conftest.er1
4863 cat conftest.err >&5
4864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } && {
4866 test -z "$ac_c_werror_flag" ||
4867 test ! -s conftest.err
4868 } && test -s conftest.$ac_objext; then
4869 has_option=yes
4870 else
4871 $as_echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4873
4874 has_option=no
4875 fi
4876
4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878 if test $has_option = yes; then
4879 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4880 fi
4881 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4882 $as_echo "$has_option" >&6; }
4883 CFLAGS="$SAVE_CFLAGS"
4884 unset has_option
4885 unset SAVE_CFLAGS
4886
4887 #### Some other nice autoconf tests.
4888
4889 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4890 $as_echo_n "checking whether ln -s works... " >&6; }
4891 LN_S=$as_ln_s
4892 if test "$LN_S" = "ln -s"; then
4893 { $as_echo "$as_me:$LINENO: result: yes" >&5
4894 $as_echo "yes" >&6; }
4895 else
4896 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4897 $as_echo "no, using $LN_S" >&6; }
4898 fi
4899
4900 ac_ext=c
4901 ac_cpp='$CPP $CPPFLAGS'
4902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4905 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4906 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4907 # On Suns, sometimes $CPP names a directory.
4908 if test -n "$CPP" && test -d "$CPP"; then
4909 CPP=
4910 fi
4911 if test -z "$CPP"; then
4912 if test "${ac_cv_prog_CPP+set}" = set; then
4913 $as_echo_n "(cached) " >&6
4914 else
4915 # Double quotes because CPP needs to be expanded
4916 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4917 do
4918 ac_preproc_ok=false
4919 for ac_c_preproc_warn_flag in '' yes
4920 do
4921 # Use a header file that comes with gcc, so configuring glibc
4922 # with a fresh cross-compiler works.
4923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924 # <limits.h> exists even on freestanding compilers.
4925 # On the NeXT, cc -E runs the code through the compiler's parser,
4926 # not just through cpp. "Syntax error" is here to catch this case.
4927 cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h. */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4933 #ifdef __STDC__
4934 # include <limits.h>
4935 #else
4936 # include <assert.h>
4937 #endif
4938 Syntax error
4939 _ACEOF
4940 if { (ac_try="$ac_cpp conftest.$ac_ext"
4941 case "(($ac_try" in
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4944 esac
4945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4946 $as_echo "$ac_try_echo") >&5
4947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4948 ac_status=$?
4949 grep -v '^ *+' conftest.er1 >conftest.err
4950 rm -f conftest.er1
4951 cat conftest.err >&5
4952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } >/dev/null && {
4954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4955 test ! -s conftest.err
4956 }; then
4957 :
4958 else
4959 $as_echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4961
4962 # Broken: fails on valid input.
4963 continue
4964 fi
4965
4966 rm -f conftest.err conftest.$ac_ext
4967
4968 # OK, works on sane cases. Now check whether nonexistent headers
4969 # can be detected and how.
4970 cat >conftest.$ac_ext <<_ACEOF
4971 /* confdefs.h. */
4972 _ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4976 #include <ac_nonexistent.h>
4977 _ACEOF
4978 if { (ac_try="$ac_cpp conftest.$ac_ext"
4979 case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982 esac
4983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4984 $as_echo "$ac_try_echo") >&5
4985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4986 ac_status=$?
4987 grep -v '^ *+' conftest.er1 >conftest.err
4988 rm -f conftest.er1
4989 cat conftest.err >&5
4990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } >/dev/null && {
4992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4993 test ! -s conftest.err
4994 }; then
4995 # Broken: success on invalid input.
4996 continue
4997 else
4998 $as_echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5000
5001 # Passes both tests.
5002 ac_preproc_ok=:
5003 break
5004 fi
5005
5006 rm -f conftest.err conftest.$ac_ext
5007
5008 done
5009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5010 rm -f conftest.err conftest.$ac_ext
5011 if $ac_preproc_ok; then
5012 break
5013 fi
5014
5015 done
5016 ac_cv_prog_CPP=$CPP
5017
5018 fi
5019 CPP=$ac_cv_prog_CPP
5020 else
5021 ac_cv_prog_CPP=$CPP
5022 fi
5023 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5024 $as_echo "$CPP" >&6; }
5025 ac_preproc_ok=false
5026 for ac_c_preproc_warn_flag in '' yes
5027 do
5028 # Use a header file that comes with gcc, so configuring glibc
5029 # with a fresh cross-compiler works.
5030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5031 # <limits.h> exists even on freestanding compilers.
5032 # On the NeXT, cc -E runs the code through the compiler's parser,
5033 # not just through cpp. "Syntax error" is here to catch this case.
5034 cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h. */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5040 #ifdef __STDC__
5041 # include <limits.h>
5042 #else
5043 # include <assert.h>
5044 #endif
5045 Syntax error
5046 _ACEOF
5047 if { (ac_try="$ac_cpp conftest.$ac_ext"
5048 case "(($ac_try" in
5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5051 esac
5052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5053 $as_echo "$ac_try_echo") >&5
5054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5055 ac_status=$?
5056 grep -v '^ *+' conftest.er1 >conftest.err
5057 rm -f conftest.er1
5058 cat conftest.err >&5
5059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } >/dev/null && {
5061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5062 test ! -s conftest.err
5063 }; then
5064 :
5065 else
5066 $as_echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5068
5069 # Broken: fails on valid input.
5070 continue
5071 fi
5072
5073 rm -f conftest.err conftest.$ac_ext
5074
5075 # OK, works on sane cases. Now check whether nonexistent headers
5076 # can be detected and how.
5077 cat >conftest.$ac_ext <<_ACEOF
5078 /* confdefs.h. */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5083 #include <ac_nonexistent.h>
5084 _ACEOF
5085 if { (ac_try="$ac_cpp conftest.$ac_ext"
5086 case "(($ac_try" in
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5089 esac
5090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5091 $as_echo "$ac_try_echo") >&5
5092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5093 ac_status=$?
5094 grep -v '^ *+' conftest.er1 >conftest.err
5095 rm -f conftest.er1
5096 cat conftest.err >&5
5097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } >/dev/null && {
5099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5100 test ! -s conftest.err
5101 }; then
5102 # Broken: success on invalid input.
5103 continue
5104 else
5105 $as_echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.$ac_ext >&5
5107
5108 # Passes both tests.
5109 ac_preproc_ok=:
5110 break
5111 fi
5112
5113 rm -f conftest.err conftest.$ac_ext
5114
5115 done
5116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5117 rm -f conftest.err conftest.$ac_ext
5118 if $ac_preproc_ok; then
5119 :
5120 else
5121 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5122 See \`config.log' for more details." >&5
5123 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5124 See \`config.log' for more details." >&2;}
5125 { (exit 1); exit 1; }; }
5126 fi
5127
5128 ac_ext=c
5129 ac_cpp='$CPP $CPPFLAGS'
5130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5133
5134 # Find a good install program. We prefer a C program (faster),
5135 # so one script is as good as another. But avoid the broken or
5136 # incompatible versions:
5137 # SysV /etc/install, /usr/sbin/install
5138 # SunOS /usr/etc/install
5139 # IRIX /sbin/install
5140 # AIX /bin/install
5141 # AmigaOS /C/install, which installs bootblocks on floppy discs
5142 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5143 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5144 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5145 # OS/2's system install, which has a completely different semantic
5146 # ./install, which can be erroneously created by make from ./install.sh.
5147 # Reject install programs that cannot install multiple files.
5148 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5149 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5150 if test -z "$INSTALL"; then
5151 if test "${ac_cv_path_install+set}" = set; then
5152 $as_echo_n "(cached) " >&6
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 # Account for people who put trailing slashes in PATH elements.
5160 case $as_dir/ in
5161 ./ | .// | /cC/* | \
5162 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5163 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5164 /usr/ucb/* ) ;;
5165 *)
5166 # OSF1 and SCO ODT 3.0 have their own names for install.
5167 # Don't use installbsd from OSF since it installs stuff as root
5168 # by default.
5169 for ac_prog in ginstall scoinst install; do
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5172 if test $ac_prog = install &&
5173 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5174 # AIX install. It has an incompatible calling convention.
5175 :
5176 elif test $ac_prog = install &&
5177 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5178 # program-specific install script used by HP pwplus--don't use.
5179 :
5180 else
5181 rm -rf conftest.one conftest.two conftest.dir
5182 echo one > conftest.one
5183 echo two > conftest.two
5184 mkdir conftest.dir
5185 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5186 test -s conftest.one && test -s conftest.two &&
5187 test -s conftest.dir/conftest.one &&
5188 test -s conftest.dir/conftest.two
5189 then
5190 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5191 break 3
5192 fi
5193 fi
5194 fi
5195 done
5196 done
5197 ;;
5198 esac
5199
5200 done
5201 IFS=$as_save_IFS
5202
5203 rm -rf conftest.one conftest.two conftest.dir
5204
5205 fi
5206 if test "${ac_cv_path_install+set}" = set; then
5207 INSTALL=$ac_cv_path_install
5208 else
5209 # As a last resort, use the slow shell script. Don't cache a
5210 # value for INSTALL within a source directory, because that will
5211 # break other packages using the cache if that directory is
5212 # removed, or if the value is a relative name.
5213 INSTALL=$ac_install_sh
5214 fi
5215 fi
5216 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5217 $as_echo "$INSTALL" >&6; }
5218
5219 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5220 # It thinks the first close brace ends the variable substitution.
5221 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5222
5223 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5224
5225 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5226
5227 if test "x$RANLIB" = x; then
5228 if test -n "$ac_tool_prefix"; then
5229 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5230 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5231 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5232 $as_echo_n "checking for $ac_word... " >&6; }
5233 if test "${ac_cv_prog_RANLIB+set}" = set; then
5234 $as_echo_n "(cached) " >&6
5235 else
5236 if test -n "$RANLIB"; then
5237 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5238 else
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5241 do
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5247 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 break 2
5249 fi
5250 done
5251 done
5252 IFS=$as_save_IFS
5253
5254 fi
5255 fi
5256 RANLIB=$ac_cv_prog_RANLIB
5257 if test -n "$RANLIB"; then
5258 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5259 $as_echo "$RANLIB" >&6; }
5260 else
5261 { $as_echo "$as_me:$LINENO: result: no" >&5
5262 $as_echo "no" >&6; }
5263 fi
5264
5265
5266 fi
5267 if test -z "$ac_cv_prog_RANLIB"; then
5268 ac_ct_RANLIB=$RANLIB
5269 # Extract the first word of "ranlib", so it can be a program name with args.
5270 set dummy ranlib; ac_word=$2
5271 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5272 $as_echo_n "checking for $ac_word... " >&6; }
5273 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5274 $as_echo_n "(cached) " >&6
5275 else
5276 if test -n "$ac_ct_RANLIB"; then
5277 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5278 else
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in $PATH
5281 do
5282 IFS=$as_save_IFS
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5286 ac_cv_prog_ac_ct_RANLIB="ranlib"
5287 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 break 2
5289 fi
5290 done
5291 done
5292 IFS=$as_save_IFS
5293
5294 fi
5295 fi
5296 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5297 if test -n "$ac_ct_RANLIB"; then
5298 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5299 $as_echo "$ac_ct_RANLIB" >&6; }
5300 else
5301 { $as_echo "$as_me:$LINENO: result: no" >&5
5302 $as_echo "no" >&6; }
5303 fi
5304
5305 if test "x$ac_ct_RANLIB" = x; then
5306 RANLIB=":"
5307 else
5308 case $cross_compiling:$ac_tool_warned in
5309 yes:)
5310 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5311 whose name does not start with the host triplet. If you think this
5312 configuration is useful to you, please write to autoconf@gnu.org." >&5
5313 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5314 whose name does not start with the host triplet. If you think this
5315 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5316 ac_tool_warned=yes ;;
5317 esac
5318 RANLIB=$ac_ct_RANLIB
5319 fi
5320 else
5321 RANLIB="$ac_cv_prog_RANLIB"
5322 fi
5323
5324 fi
5325 # Extract the first word of "install-info", so it can be a program name with args.
5326 set dummy install-info; ac_word=$2
5327 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5330 $as_echo_n "(cached) " >&6
5331 else
5332 case $INSTALL_INFO in
5333 [\\/]* | ?:[\\/]*)
5334 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5335 ;;
5336 *)
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5339 do
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5347 fi
5348 done
5349 done
5350 IFS=$as_save_IFS
5351
5352 ;;
5353 esac
5354 fi
5355 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5356 if test -n "$INSTALL_INFO"; then
5357 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5358 $as_echo "$INSTALL_INFO" >&6; }
5359 else
5360 { $as_echo "$as_me:$LINENO: result: no" >&5
5361 $as_echo "no" >&6; }
5362 fi
5363
5364
5365 # Extract the first word of "install-info", so it can be a program name with args.
5366 set dummy install-info; ac_word=$2
5367 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5370 $as_echo_n "(cached) " >&6
5371 else
5372 case $INSTALL_INFO in
5373 [\\/]* | ?:[\\/]*)
5374 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5375 ;;
5376 *)
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in /usr/sbin
5379 do
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5384 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5385 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
5387 fi
5388 done
5389 done
5390 IFS=$as_save_IFS
5391
5392 ;;
5393 esac
5394 fi
5395 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5396 if test -n "$INSTALL_INFO"; then
5397 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5398 $as_echo "$INSTALL_INFO" >&6; }
5399 else
5400 { $as_echo "$as_me:$LINENO: result: no" >&5
5401 $as_echo "no" >&6; }
5402 fi
5403
5404
5405 # Extract the first word of "install-info", so it can be a program name with args.
5406 set dummy install-info; ac_word=$2
5407 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5410 $as_echo_n "(cached) " >&6
5411 else
5412 case $INSTALL_INFO in
5413 [\\/]* | ?:[\\/]*)
5414 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5415 ;;
5416 *)
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in /sbin
5419 do
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5424 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 break 2
5427 fi
5428 done
5429 done
5430 IFS=$as_save_IFS
5431
5432 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5433 ;;
5434 esac
5435 fi
5436 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5437 if test -n "$INSTALL_INFO"; then
5438 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5439 $as_echo "$INSTALL_INFO" >&6; }
5440 else
5441 { $as_echo "$as_me:$LINENO: result: no" >&5
5442 $as_echo "no" >&6; }
5443 fi
5444
5445
5446 # Extract the first word of "gzip", so it can be a program name with args.
5447 set dummy gzip; ac_word=$2
5448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5451 $as_echo_n "(cached) " >&6
5452 else
5453 case $GZIP_PROG in
5454 [\\/]* | ?:[\\/]*)
5455 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5456 ;;
5457 *)
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5460 do
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5466 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5468 fi
5469 done
5470 done
5471 IFS=$as_save_IFS
5472
5473 ;;
5474 esac
5475 fi
5476 GZIP_PROG=$ac_cv_path_GZIP_PROG
5477 if test -n "$GZIP_PROG"; then
5478 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5479 $as_echo "$GZIP_PROG" >&6; }
5480 else
5481 { $as_echo "$as_me:$LINENO: result: no" >&5
5482 $as_echo "no" >&6; }
5483 fi
5484
5485
5486
5487
5488 ## Need makeinfo >= 4.6 (?) to build the manuals.
5489 # Extract the first word of "makeinfo", so it can be a program name with args.
5490 set dummy makeinfo; ac_word=$2
5491 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5492 $as_echo_n "checking for $ac_word... " >&6; }
5493 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5494 $as_echo_n "(cached) " >&6
5495 else
5496 case $MAKEINFO in
5497 [\\/]* | ?:[\\/]*)
5498 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5499 ;;
5500 *)
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5503 do
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5508 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5509 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5511 fi
5512 done
5513 done
5514 IFS=$as_save_IFS
5515
5516 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5517 ;;
5518 esac
5519 fi
5520 MAKEINFO=$ac_cv_path_MAKEINFO
5521 if test -n "$MAKEINFO"; then
5522 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5523 $as_echo "$MAKEINFO" >&6; }
5524 else
5525 { $as_echo "$as_me:$LINENO: result: no" >&5
5526 $as_echo "no" >&6; }
5527 fi
5528
5529
5530 if test "$MAKEINFO" != "no" && \
5531 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
5532 MAKEINFO=no
5533 fi
5534
5535 ## Makeinfo is unusual. For a released Emacs, the manuals are
5536 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5537 ## therefore in the category of "special tools" not normally required, which
5538 ## configure does not have to check for (eg autoconf itself).
5539 ## In a CVS checkout on the other hand, the manuals are not included.
5540 ## So makeinfo is a requirement to build from CVS, and configure
5541 ## should test for it as it does for any other build requirement.
5542 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5543 ## with pre-built manuals, from a CVS checkout.
5544 if test "$MAKEINFO" = "no"; then
5545 if test "x${with_makeinfo}" = "xno"; then
5546 MAKEINFO=off
5547 elif ! test -e $srcdir/info/emacs; then
5548 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5549 source tree does not seem to have pre-built manuals in the \`info' directory.
5550 Either install a suitable version of makeinfo, or re-run configure
5551 with the \`--without-makeinfo' option to build without the manuals. " >&5
5552 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5553 source tree does not seem to have pre-built manuals in the \`info' directory.
5554 Either install a suitable version of makeinfo, or re-run configure
5555 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5556 { (exit 1); exit 1; }; }
5557 fi
5558 fi
5559
5560
5561 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5562 then
5563 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5564 fi
5565
5566 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5567 then
5568 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5569 fi
5570
5571
5572 late_LDFLAGS=$LDFLAGS
5573 if test "$GCC" = yes; then
5574 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5575 else
5576 LDFLAGS="$LDFLAGS -znocombreloc"
5577 fi
5578
5579 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5580 $as_echo_n "checking for -znocombreloc... " >&6; }
5581 cat >conftest.$ac_ext <<_ACEOF
5582 main(){return 0;}
5583 _ACEOF
5584 rm -f conftest.$ac_objext conftest$ac_exeext
5585 if { (ac_try="$ac_link"
5586 case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589 esac
5590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5591 $as_echo "$ac_try_echo") >&5
5592 (eval "$ac_link") 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } && {
5599 test -z "$ac_c_werror_flag" ||
5600 test ! -s conftest.err
5601 } && test -s conftest$ac_exeext && {
5602 test "$cross_compiling" = yes ||
5603 $as_test_x conftest$ac_exeext
5604 }; then
5605 { $as_echo "$as_me:$LINENO: result: yes" >&5
5606 $as_echo "yes" >&6; }
5607 else
5608 $as_echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5610
5611 LDFLAGS=$late_LDFLAGS
5612 { $as_echo "$as_me:$LINENO: result: no" >&5
5613 $as_echo "no" >&6; }
5614 fi
5615
5616 rm -rf conftest.dSYM
5617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5618 conftest$ac_exeext conftest.$ac_ext
5619
5620 #### Extract some information from the operating system and machine files.
5621
5622 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5623 - which libraries the lib-src programs will want, and
5624 - whether the GNU malloc routines are usable..." >&5
5625 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5626 - which libraries the lib-src programs will want, and
5627 - whether the GNU malloc routines are usable..." >&6;}
5628
5629 ### First figure out CFLAGS (which we use for running the compiler here)
5630 ### and REAL_CFLAGS (which we use for real compilation).
5631 ### The two are the same except on a few systems, where they are made
5632 ### different to work around various lossages. For example,
5633 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5634 ### as implying static linking.
5635
5636 ### If the CFLAGS env var is specified, we use that value
5637 ### instead of the default.
5638
5639 ### It's not important that this name contain the PID; you can't run
5640 ### two configures in the same directory and have anything work
5641 ### anyway.
5642 tempcname="conftest.c"
5643
5644 echo '
5645 #include "'${srcdir}'/src/'${opsysfile}'"
5646 #include "'${srcdir}'/src/'${machfile}'"
5647 #ifndef LIBS_MACHINE
5648 #define LIBS_MACHINE
5649 #endif
5650 #ifndef LIBS_SYSTEM
5651 #define LIBS_SYSTEM
5652 #endif
5653 #ifndef C_SWITCH_SYSTEM
5654 #define C_SWITCH_SYSTEM
5655 #endif
5656 #ifndef C_SWITCH_MACHINE
5657 #define C_SWITCH_MACHINE
5658 #endif
5659 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5660 configure___ c_switch_system=C_SWITCH_SYSTEM
5661 configure___ c_switch_machine=C_SWITCH_MACHINE
5662
5663 #ifndef LIB_X11_LIB
5664 #define LIB_X11_LIB -lX11
5665 #endif
5666
5667 #ifndef LIBX11_SYSTEM
5668 #define LIBX11_SYSTEM
5669 #endif
5670 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5671
5672 #ifdef UNEXEC
5673 configure___ unexec=UNEXEC
5674 #else
5675 configure___ unexec=unexec.o
5676 #endif
5677
5678 #ifdef SYSTEM_MALLOC
5679 configure___ system_malloc=yes
5680 #else
5681 configure___ system_malloc=no
5682 #endif
5683
5684 #ifdef USE_MMAP_FOR_BUFFERS
5685 configure___ use_mmap_for_buffers=yes
5686 #else
5687 configure___ use_mmap_for_buffers=no
5688 #endif
5689
5690 #ifndef C_DEBUG_SWITCH
5691 #define C_DEBUG_SWITCH -g
5692 #endif
5693
5694 #ifndef C_OPTIMIZE_SWITCH
5695 #ifdef __GNUC__
5696 #define C_OPTIMIZE_SWITCH -O2
5697 #else
5698 #define C_OPTIMIZE_SWITCH -O
5699 #endif
5700 #endif
5701
5702 #ifndef C_WARNINGS_SWITCH
5703 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5704 #endif
5705
5706 #ifndef LD_SWITCH_MACHINE
5707 #define LD_SWITCH_MACHINE
5708 #endif
5709
5710 #ifndef LD_SWITCH_SYSTEM
5711 #define LD_SWITCH_SYSTEM
5712 #endif
5713
5714 #ifndef LD_SWITCH_X_SITE_AUX
5715 #define LD_SWITCH_X_SITE_AUX
5716 #endif
5717
5718 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5719 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5720
5721 #ifdef THIS_IS_CONFIGURE
5722
5723 /* Get the CFLAGS for tests in configure. */
5724 #ifdef __GNUC__
5725 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5726 #else
5727 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5728 #endif
5729
5730 #else /* not THIS_IS_CONFIGURE */
5731
5732 /* Get the CFLAGS for real compilation. */
5733 #ifdef __GNUC__
5734 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5735 #else
5736 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5737 #endif
5738
5739 #endif /* not THIS_IS_CONFIGURE */
5740 ' > ${tempcname}
5741
5742 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5743
5744 # The value of CPP is a quoted variable reference, so we need to do this
5745 # to get its actual value...
5746 CPP=`eval "echo $CPP"`
5747 eval `${CPP} -Isrc ${tempcname} \
5748 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5749 if test "x$SPECIFIED_CFLAGS" = x; then
5750 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5751 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5752 else
5753 REAL_CFLAGS="$CFLAGS"
5754 fi
5755 rm ${tempcname}
5756
5757 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5758
5759 ### Make sure subsequent tests use flags consistent with the build flags.
5760
5761 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5762 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5763 else
5764 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5765 fi
5766
5767
5768
5769 # Check whether --enable-largefile was given.
5770 if test "${enable_largefile+set}" = set; then
5771 enableval=$enable_largefile;
5772 fi
5773
5774 if test "$enable_largefile" != no; then
5775
5776 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5777 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5778 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5779 $as_echo_n "(cached) " >&6
5780 else
5781 ac_cv_sys_largefile_CC=no
5782 if test "$GCC" != yes; then
5783 ac_save_CC=$CC
5784 while :; do
5785 # IRIX 6.2 and later do not support large files by default,
5786 # so use the C compiler's -n32 option if that helps.
5787 cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h. */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 #include <sys/types.h>
5794 /* Check that off_t can represent 2**63 - 1 correctly.
5795 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5796 since some C++ compilers masquerading as C compilers
5797 incorrectly reject 9223372036854775807. */
5798 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5799 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5800 && LARGE_OFF_T % 2147483647 == 1)
5801 ? 1 : -1];
5802 int
5803 main ()
5804 {
5805
5806 ;
5807 return 0;
5808 }
5809 _ACEOF
5810 rm -f conftest.$ac_objext
5811 if { (ac_try="$ac_compile"
5812 case "(($ac_try" in
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5815 esac
5816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5817 $as_echo "$ac_try_echo") >&5
5818 (eval "$ac_compile") 2>conftest.er1
5819 ac_status=$?
5820 grep -v '^ *+' conftest.er1 >conftest.err
5821 rm -f conftest.er1
5822 cat conftest.err >&5
5823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } && {
5825 test -z "$ac_c_werror_flag" ||
5826 test ! -s conftest.err
5827 } && test -s conftest.$ac_objext; then
5828 break
5829 else
5830 $as_echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5832
5833
5834 fi
5835
5836 rm -f core conftest.err conftest.$ac_objext
5837 CC="$CC -n32"
5838 rm -f conftest.$ac_objext
5839 if { (ac_try="$ac_compile"
5840 case "(($ac_try" in
5841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5843 esac
5844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5845 $as_echo "$ac_try_echo") >&5
5846 (eval "$ac_compile") 2>conftest.er1
5847 ac_status=$?
5848 grep -v '^ *+' conftest.er1 >conftest.err
5849 rm -f conftest.er1
5850 cat conftest.err >&5
5851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } && {
5853 test -z "$ac_c_werror_flag" ||
5854 test ! -s conftest.err
5855 } && test -s conftest.$ac_objext; then
5856 ac_cv_sys_largefile_CC=' -n32'; break
5857 else
5858 $as_echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5860
5861
5862 fi
5863
5864 rm -f core conftest.err conftest.$ac_objext
5865 break
5866 done
5867 CC=$ac_save_CC
5868 rm -f conftest.$ac_ext
5869 fi
5870 fi
5871 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5872 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5873 if test "$ac_cv_sys_largefile_CC" != no; then
5874 CC=$CC$ac_cv_sys_largefile_CC
5875 fi
5876
5877 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5878 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5879 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5880 $as_echo_n "(cached) " >&6
5881 else
5882 while :; do
5883 cat >conftest.$ac_ext <<_ACEOF
5884 /* confdefs.h. */
5885 _ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5889 #include <sys/types.h>
5890 /* Check that off_t can represent 2**63 - 1 correctly.
5891 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5892 since some C++ compilers masquerading as C compilers
5893 incorrectly reject 9223372036854775807. */
5894 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5895 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5896 && LARGE_OFF_T % 2147483647 == 1)
5897 ? 1 : -1];
5898 int
5899 main ()
5900 {
5901
5902 ;
5903 return 0;
5904 }
5905 _ACEOF
5906 rm -f conftest.$ac_objext
5907 if { (ac_try="$ac_compile"
5908 case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911 esac
5912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5913 $as_echo "$ac_try_echo") >&5
5914 (eval "$ac_compile") 2>conftest.er1
5915 ac_status=$?
5916 grep -v '^ *+' conftest.er1 >conftest.err
5917 rm -f conftest.er1
5918 cat conftest.err >&5
5919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } && {
5921 test -z "$ac_c_werror_flag" ||
5922 test ! -s conftest.err
5923 } && test -s conftest.$ac_objext; then
5924 ac_cv_sys_file_offset_bits=no; break
5925 else
5926 $as_echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5928
5929
5930 fi
5931
5932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933 cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h. */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5939 #define _FILE_OFFSET_BITS 64
5940 #include <sys/types.h>
5941 /* Check that off_t can represent 2**63 - 1 correctly.
5942 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5943 since some C++ compilers masquerading as C compilers
5944 incorrectly reject 9223372036854775807. */
5945 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5946 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5947 && LARGE_OFF_T % 2147483647 == 1)
5948 ? 1 : -1];
5949 int
5950 main ()
5951 {
5952
5953 ;
5954 return 0;
5955 }
5956 _ACEOF
5957 rm -f conftest.$ac_objext
5958 if { (ac_try="$ac_compile"
5959 case "(($ac_try" in
5960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961 *) ac_try_echo=$ac_try;;
5962 esac
5963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5964 $as_echo "$ac_try_echo") >&5
5965 (eval "$ac_compile") 2>conftest.er1
5966 ac_status=$?
5967 grep -v '^ *+' conftest.er1 >conftest.err
5968 rm -f conftest.er1
5969 cat conftest.err >&5
5970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } && {
5972 test -z "$ac_c_werror_flag" ||
5973 test ! -s conftest.err
5974 } && test -s conftest.$ac_objext; then
5975 ac_cv_sys_file_offset_bits=64; break
5976 else
5977 $as_echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.$ac_ext >&5
5979
5980
5981 fi
5982
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984 ac_cv_sys_file_offset_bits=unknown
5985 break
5986 done
5987 fi
5988 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5989 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5990 case $ac_cv_sys_file_offset_bits in #(
5991 no | unknown) ;;
5992 *)
5993 cat >>confdefs.h <<_ACEOF
5994 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5995 _ACEOF
5996 ;;
5997 esac
5998 rm -rf conftest*
5999 if test $ac_cv_sys_file_offset_bits = unknown; then
6000 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6001 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6002 if test "${ac_cv_sys_large_files+set}" = set; then
6003 $as_echo_n "(cached) " >&6
6004 else
6005 while :; do
6006 cat >conftest.$ac_ext <<_ACEOF
6007 /* confdefs.h. */
6008 _ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6012 #include <sys/types.h>
6013 /* Check that off_t can represent 2**63 - 1 correctly.
6014 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6015 since some C++ compilers masquerading as C compilers
6016 incorrectly reject 9223372036854775807. */
6017 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6018 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6019 && LARGE_OFF_T % 2147483647 == 1)
6020 ? 1 : -1];
6021 int
6022 main ()
6023 {
6024
6025 ;
6026 return 0;
6027 }
6028 _ACEOF
6029 rm -f conftest.$ac_objext
6030 if { (ac_try="$ac_compile"
6031 case "(($ac_try" in
6032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033 *) ac_try_echo=$ac_try;;
6034 esac
6035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6036 $as_echo "$ac_try_echo") >&5
6037 (eval "$ac_compile") 2>conftest.er1
6038 ac_status=$?
6039 grep -v '^ *+' conftest.er1 >conftest.err
6040 rm -f conftest.er1
6041 cat conftest.err >&5
6042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } && {
6044 test -z "$ac_c_werror_flag" ||
6045 test ! -s conftest.err
6046 } && test -s conftest.$ac_objext; then
6047 ac_cv_sys_large_files=no; break
6048 else
6049 $as_echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6051
6052
6053 fi
6054
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056 cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h. */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 #define _LARGE_FILES 1
6063 #include <sys/types.h>
6064 /* Check that off_t can represent 2**63 - 1 correctly.
6065 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6066 since some C++ compilers masquerading as C compilers
6067 incorrectly reject 9223372036854775807. */
6068 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6069 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6070 && LARGE_OFF_T % 2147483647 == 1)
6071 ? 1 : -1];
6072 int
6073 main ()
6074 {
6075
6076 ;
6077 return 0;
6078 }
6079 _ACEOF
6080 rm -f conftest.$ac_objext
6081 if { (ac_try="$ac_compile"
6082 case "(($ac_try" in
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6085 esac
6086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6087 $as_echo "$ac_try_echo") >&5
6088 (eval "$ac_compile") 2>conftest.er1
6089 ac_status=$?
6090 grep -v '^ *+' conftest.er1 >conftest.err
6091 rm -f conftest.er1
6092 cat conftest.err >&5
6093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } && {
6095 test -z "$ac_c_werror_flag" ||
6096 test ! -s conftest.err
6097 } && test -s conftest.$ac_objext; then
6098 ac_cv_sys_large_files=1; break
6099 else
6100 $as_echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6102
6103
6104 fi
6105
6106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107 ac_cv_sys_large_files=unknown
6108 break
6109 done
6110 fi
6111 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6112 $as_echo "$ac_cv_sys_large_files" >&6; }
6113 case $ac_cv_sys_large_files in #(
6114 no | unknown) ;;
6115 *)
6116 cat >>confdefs.h <<_ACEOF
6117 #define _LARGE_FILES $ac_cv_sys_large_files
6118 _ACEOF
6119 ;;
6120 esac
6121 rm -rf conftest*
6122 fi
6123 fi
6124
6125
6126
6127 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6128 ### be located in either /usr/lib64 or /usr/lib.
6129 ### In some rare cases, /usr/lib64 exists but does not contain the
6130 ### relevant files (bug#1287). Hence test for crtn.o.
6131 case "${canonical}" in
6132 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6133 if test -e /usr/lib64/crtn.o; then
6134
6135 cat >>confdefs.h <<\_ACEOF
6136 #define HAVE_LIB64_DIR 1
6137 _ACEOF
6138
6139 fi
6140 esac
6141
6142
6143
6144
6145 if test "${with_sound}" != "no"; then
6146 # Sound support for GNU/Linux and the free BSDs.
6147
6148
6149
6150 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6151 do
6152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6154 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6155 $as_echo_n "checking for $ac_header... " >&6; }
6156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6157 $as_echo_n "(cached) " >&6
6158 fi
6159 ac_res=`eval 'as_val=${'$as_ac_Header'}
6160 $as_echo "$as_val"'`
6161 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6162 $as_echo "$ac_res" >&6; }
6163 else
6164 # Is the header compilable?
6165 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6166 $as_echo_n "checking $ac_header usability... " >&6; }
6167 cat >conftest.$ac_ext <<_ACEOF
6168 /* confdefs.h. */
6169 _ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6173 $ac_includes_default
6174 #include <$ac_header>
6175 _ACEOF
6176 rm -f conftest.$ac_objext
6177 if { (ac_try="$ac_compile"
6178 case "(($ac_try" in
6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180 *) ac_try_echo=$ac_try;;
6181 esac
6182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6183 $as_echo "$ac_try_echo") >&5
6184 (eval "$ac_compile") 2>conftest.er1
6185 ac_status=$?
6186 grep -v '^ *+' conftest.er1 >conftest.err
6187 rm -f conftest.er1
6188 cat conftest.err >&5
6189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } && {
6191 test -z "$ac_c_werror_flag" ||
6192 test ! -s conftest.err
6193 } && test -s conftest.$ac_objext; then
6194 ac_header_compiler=yes
6195 else
6196 $as_echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6198
6199 ac_header_compiler=no
6200 fi
6201
6202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6203 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6204 $as_echo "$ac_header_compiler" >&6; }
6205
6206 # Is the header present?
6207 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6208 $as_echo_n "checking $ac_header presence... " >&6; }
6209 cat >conftest.$ac_ext <<_ACEOF
6210 /* confdefs.h. */
6211 _ACEOF
6212 cat confdefs.h >>conftest.$ac_ext
6213 cat >>conftest.$ac_ext <<_ACEOF
6214 /* end confdefs.h. */
6215 #include <$ac_header>
6216 _ACEOF
6217 if { (ac_try="$ac_cpp conftest.$ac_ext"
6218 case "(($ac_try" in
6219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220 *) ac_try_echo=$ac_try;;
6221 esac
6222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6223 $as_echo "$ac_try_echo") >&5
6224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6225 ac_status=$?
6226 grep -v '^ *+' conftest.er1 >conftest.err
6227 rm -f conftest.er1
6228 cat conftest.err >&5
6229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } >/dev/null && {
6231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6232 test ! -s conftest.err
6233 }; then
6234 ac_header_preproc=yes
6235 else
6236 $as_echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6238
6239 ac_header_preproc=no
6240 fi
6241
6242 rm -f conftest.err conftest.$ac_ext
6243 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6244 $as_echo "$ac_header_preproc" >&6; }
6245
6246 # So? What about this header?
6247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6248 yes:no: )
6249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6250 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6252 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6253 ac_header_preproc=yes
6254 ;;
6255 no:yes:* )
6256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6257 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6259 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6261 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6263 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6265 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6267 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6268
6269 ;;
6270 esac
6271 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6272 $as_echo_n "checking for $ac_header... " >&6; }
6273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6274 $as_echo_n "(cached) " >&6
6275 else
6276 eval "$as_ac_Header=\$ac_header_preproc"
6277 fi
6278 ac_res=`eval 'as_val=${'$as_ac_Header'}
6279 $as_echo "$as_val"'`
6280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6281 $as_echo "$ac_res" >&6; }
6282
6283 fi
6284 if test `eval 'as_val=${'$as_ac_Header'}
6285 $as_echo "$as_val"'` = yes; then
6286 cat >>confdefs.h <<_ACEOF
6287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6288 _ACEOF
6289
6290 fi
6291
6292 done
6293
6294 # Emulation library used on NetBSD.
6295 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6296 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6297 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6298 $as_echo_n "(cached) " >&6
6299 else
6300 ac_check_lib_save_LIBS=$LIBS
6301 LIBS="-lossaudio $LIBS"
6302 cat >conftest.$ac_ext <<_ACEOF
6303 /* confdefs.h. */
6304 _ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6308
6309 /* Override any GCC internal prototype to avoid an error.
6310 Use char because int might match the return type of a GCC
6311 builtin and then its argument prototype would still apply. */
6312 #ifdef __cplusplus
6313 extern "C"
6314 #endif
6315 char _oss_ioctl ();
6316 int
6317 main ()
6318 {
6319 return _oss_ioctl ();
6320 ;
6321 return 0;
6322 }
6323 _ACEOF
6324 rm -f conftest.$ac_objext conftest$ac_exeext
6325 if { (ac_try="$ac_link"
6326 case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329 esac
6330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6331 $as_echo "$ac_try_echo") >&5
6332 (eval "$ac_link") 2>conftest.er1
6333 ac_status=$?
6334 grep -v '^ *+' conftest.er1 >conftest.err
6335 rm -f conftest.er1
6336 cat conftest.err >&5
6337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } && {
6339 test -z "$ac_c_werror_flag" ||
6340 test ! -s conftest.err
6341 } && test -s conftest$ac_exeext && {
6342 test "$cross_compiling" = yes ||
6343 $as_test_x conftest$ac_exeext
6344 }; then
6345 ac_cv_lib_ossaudio__oss_ioctl=yes
6346 else
6347 $as_echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6349
6350 ac_cv_lib_ossaudio__oss_ioctl=no
6351 fi
6352
6353 rm -rf conftest.dSYM
6354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6355 conftest$ac_exeext conftest.$ac_ext
6356 LIBS=$ac_check_lib_save_LIBS
6357 fi
6358 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6359 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6360 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6361 LIBSOUND=-lossaudio
6362 else
6363 LIBSOUND=
6364 fi
6365
6366
6367
6368 ALSA_REQUIRED=1.0.0
6369 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6370
6371 succeeded=no
6372
6373 # Extract the first word of "pkg-config", so it can be a program name with args.
6374 set dummy pkg-config; ac_word=$2
6375 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6376 $as_echo_n "checking for $ac_word... " >&6; }
6377 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6378 $as_echo_n "(cached) " >&6
6379 else
6380 case $PKG_CONFIG in
6381 [\\/]* | ?:[\\/]*)
6382 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6383 ;;
6384 *)
6385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 for as_dir in $PATH
6387 do
6388 IFS=$as_save_IFS
6389 test -z "$as_dir" && as_dir=.
6390 for ac_exec_ext in '' $ac_executable_extensions; do
6391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6392 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6393 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6394 break 2
6395 fi
6396 done
6397 done
6398 IFS=$as_save_IFS
6399
6400 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6401 ;;
6402 esac
6403 fi
6404 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6405 if test -n "$PKG_CONFIG"; then
6406 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6407 $as_echo "$PKG_CONFIG" >&6; }
6408 else
6409 { $as_echo "$as_me:$LINENO: result: no" >&5
6410 $as_echo "no" >&6; }
6411 fi
6412
6413
6414
6415 if test "$PKG_CONFIG" = "no" ; then
6416 HAVE_ALSA=no
6417 else
6418 PKG_CONFIG_MIN_VERSION=0.9.0
6419 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6420 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6421 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6422
6423 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6424 { $as_echo "$as_me:$LINENO: result: yes" >&5
6425 $as_echo "yes" >&6; }
6426 succeeded=yes
6427
6428 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6429 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6430 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6431 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6432 $as_echo "$ALSA_CFLAGS" >&6; }
6433
6434 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6435 $as_echo_n "checking ALSA_LIBS... " >&6; }
6436 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6437 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6438 $as_echo "$ALSA_LIBS" >&6; }
6439 else
6440 { $as_echo "$as_me:$LINENO: result: no" >&5
6441 $as_echo "no" >&6; }
6442 ALSA_CFLAGS=""
6443 ALSA_LIBS=""
6444 ## If we have a custom action on failure, don't print errors, but
6445 ## do set a variable so people can do so.
6446 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6447
6448 fi
6449
6450
6451
6452 else
6453 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6454 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6455 fi
6456 fi
6457
6458 if test $succeeded = yes; then
6459 HAVE_ALSA=yes
6460 else
6461 HAVE_ALSA=no
6462 fi
6463
6464 if test $HAVE_ALSA = yes; then
6465 SAVE_CFLAGS="$CFLAGS"
6466 SAVE_LDFLAGS="$LDFLAGS"
6467 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6468 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6469 cat >conftest.$ac_ext <<_ACEOF
6470 /* confdefs.h. */
6471 _ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6475 #include <asoundlib.h>
6476 int
6477 main ()
6478 {
6479 snd_lib_error_set_handler (0);
6480 ;
6481 return 0;
6482 }
6483 _ACEOF
6484 rm -f conftest.$ac_objext
6485 if { (ac_try="$ac_compile"
6486 case "(($ac_try" in
6487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488 *) ac_try_echo=$ac_try;;
6489 esac
6490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6491 $as_echo "$ac_try_echo") >&5
6492 (eval "$ac_compile") 2>conftest.er1
6493 ac_status=$?
6494 grep -v '^ *+' conftest.er1 >conftest.err
6495 rm -f conftest.er1
6496 cat conftest.err >&5
6497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } && {
6499 test -z "$ac_c_werror_flag" ||
6500 test ! -s conftest.err
6501 } && test -s conftest.$ac_objext; then
6502 emacs_alsa_normal=yes
6503 else
6504 $as_echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6506
6507 emacs_alsa_normal=no
6508 fi
6509
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511 if test "$emacs_alsa_normal" != yes; then
6512 cat >conftest.$ac_ext <<_ACEOF
6513 /* confdefs.h. */
6514 _ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h. */
6518 #include <alsa/asoundlib.h>
6519 int
6520 main ()
6521 {
6522 snd_lib_error_set_handler (0);
6523 ;
6524 return 0;
6525 }
6526 _ACEOF
6527 rm -f conftest.$ac_objext
6528 if { (ac_try="$ac_compile"
6529 case "(($ac_try" in
6530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531 *) ac_try_echo=$ac_try;;
6532 esac
6533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6534 $as_echo "$ac_try_echo") >&5
6535 (eval "$ac_compile") 2>conftest.er1
6536 ac_status=$?
6537 grep -v '^ *+' conftest.er1 >conftest.err
6538 rm -f conftest.er1
6539 cat conftest.err >&5
6540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } && {
6542 test -z "$ac_c_werror_flag" ||
6543 test ! -s conftest.err
6544 } && test -s conftest.$ac_objext; then
6545 emacs_alsa_subdir=yes
6546 else
6547 $as_echo "$as_me: failed program was:" >&5
6548 sed 's/^/| /' conftest.$ac_ext >&5
6549
6550 emacs_alsa_subdir=no
6551 fi
6552
6553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 if test "$emacs_alsa_subdir" != yes; then
6555 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6556 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6557 { (exit 1); exit 1; }; }
6558 fi
6559 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6560 fi
6561
6562 CFLAGS="$SAVE_CFLAGS"
6563 LDFLAGS="$SAVE_LDFLAGS"
6564 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6565 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6566
6567 cat >>confdefs.h <<\_ACEOF
6568 #define HAVE_ALSA 1
6569 _ACEOF
6570
6571 fi
6572
6573 fi
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6601 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6602 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6603 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6604 sys/utsname.h pwd.h
6605 do
6606 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6608 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6609 $as_echo_n "checking for $ac_header... " >&6; }
6610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6611 $as_echo_n "(cached) " >&6
6612 fi
6613 ac_res=`eval 'as_val=${'$as_ac_Header'}
6614 $as_echo "$as_val"'`
6615 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6616 $as_echo "$ac_res" >&6; }
6617 else
6618 # Is the header compilable?
6619 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6620 $as_echo_n "checking $ac_header usability... " >&6; }
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 $ac_includes_default
6628 #include <$ac_header>
6629 _ACEOF
6630 rm -f conftest.$ac_objext
6631 if { (ac_try="$ac_compile"
6632 case "(($ac_try" in
6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6635 esac
6636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6637 $as_echo "$ac_try_echo") >&5
6638 (eval "$ac_compile") 2>conftest.er1
6639 ac_status=$?
6640 grep -v '^ *+' conftest.er1 >conftest.err
6641 rm -f conftest.er1
6642 cat conftest.err >&5
6643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } && {
6645 test -z "$ac_c_werror_flag" ||
6646 test ! -s conftest.err
6647 } && test -s conftest.$ac_objext; then
6648 ac_header_compiler=yes
6649 else
6650 $as_echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6652
6653 ac_header_compiler=no
6654 fi
6655
6656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6658 $as_echo "$ac_header_compiler" >&6; }
6659
6660 # Is the header present?
6661 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6662 $as_echo_n "checking $ac_header presence... " >&6; }
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 #include <$ac_header>
6670 _ACEOF
6671 if { (ac_try="$ac_cpp conftest.$ac_ext"
6672 case "(($ac_try" in
6673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6674 *) ac_try_echo=$ac_try;;
6675 esac
6676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6677 $as_echo "$ac_try_echo") >&5
6678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6679 ac_status=$?
6680 grep -v '^ *+' conftest.er1 >conftest.err
6681 rm -f conftest.er1
6682 cat conftest.err >&5
6683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } >/dev/null && {
6685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6686 test ! -s conftest.err
6687 }; then
6688 ac_header_preproc=yes
6689 else
6690 $as_echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.$ac_ext >&5
6692
6693 ac_header_preproc=no
6694 fi
6695
6696 rm -f conftest.err conftest.$ac_ext
6697 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6698 $as_echo "$ac_header_preproc" >&6; }
6699
6700 # So? What about this header?
6701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6702 yes:no: )
6703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6704 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6706 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6707 ac_header_preproc=yes
6708 ;;
6709 no:yes:* )
6710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6711 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6713 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6715 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6717 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6719 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6721 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6722
6723 ;;
6724 esac
6725 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6726 $as_echo_n "checking for $ac_header... " >&6; }
6727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6728 $as_echo_n "(cached) " >&6
6729 else
6730 eval "$as_ac_Header=\$ac_header_preproc"
6731 fi
6732 ac_res=`eval 'as_val=${'$as_ac_Header'}
6733 $as_echo "$as_val"'`
6734 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6735 $as_echo "$ac_res" >&6; }
6736
6737 fi
6738 if test `eval 'as_val=${'$as_ac_Header'}
6739 $as_echo "$as_val"'` = yes; then
6740 cat >>confdefs.h <<_ACEOF
6741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6742 _ACEOF
6743
6744 fi
6745
6746 done
6747
6748
6749 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6750 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6751 cat >conftest.$ac_ext <<_ACEOF
6752 /* confdefs.h. */
6753 _ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6757 #include <sys/personality.h>
6758 int
6759 main ()
6760 {
6761 personality (PER_LINUX32)
6762 ;
6763 return 0;
6764 }
6765 _ACEOF
6766 rm -f conftest.$ac_objext
6767 if { (ac_try="$ac_compile"
6768 case "(($ac_try" in
6769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6770 *) ac_try_echo=$ac_try;;
6771 esac
6772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6773 $as_echo "$ac_try_echo") >&5
6774 (eval "$ac_compile") 2>conftest.er1
6775 ac_status=$?
6776 grep -v '^ *+' conftest.er1 >conftest.err
6777 rm -f conftest.er1
6778 cat conftest.err >&5
6779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } && {
6781 test -z "$ac_c_werror_flag" ||
6782 test ! -s conftest.err
6783 } && test -s conftest.$ac_objext; then
6784 emacs_cv_personality_linux32=yes
6785 else
6786 $as_echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6788
6789 emacs_cv_personality_linux32=no
6790 fi
6791
6792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6794 $as_echo "$emacs_cv_personality_linux32" >&6; }
6795
6796 if test $emacs_cv_personality_linux32 = yes; then
6797
6798 cat >>confdefs.h <<\_ACEOF
6799 #define HAVE_PERSONALITY_LINUX32 1
6800 _ACEOF
6801
6802 fi
6803
6804
6805 for ac_header in term.h
6806 do
6807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6808 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6809 $as_echo_n "checking for $ac_header... " >&6; }
6810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6811 $as_echo_n "(cached) " >&6
6812 else
6813 cat >conftest.$ac_ext <<_ACEOF
6814 /* confdefs.h. */
6815 _ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h. */
6819 #include <$ac_header>
6820 _ACEOF
6821 if { (ac_try="$ac_cpp conftest.$ac_ext"
6822 case "(($ac_try" in
6823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6824 *) ac_try_echo=$ac_try;;
6825 esac
6826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6827 $as_echo "$ac_try_echo") >&5
6828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6829 ac_status=$?
6830 grep -v '^ *+' conftest.er1 >conftest.err
6831 rm -f conftest.er1
6832 cat conftest.err >&5
6833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); } >/dev/null && {
6835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6836 test ! -s conftest.err
6837 }; then
6838 eval "$as_ac_Header=yes"
6839 else
6840 $as_echo "$as_me: failed program was:" >&5
6841 sed 's/^/| /' conftest.$ac_ext >&5
6842
6843 eval "$as_ac_Header=no"
6844 fi
6845
6846 rm -f conftest.err conftest.$ac_ext
6847 fi
6848 ac_res=`eval 'as_val=${'$as_ac_Header'}
6849 $as_echo "$as_val"'`
6850 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6851 $as_echo "$ac_res" >&6; }
6852 if test `eval 'as_val=${'$as_ac_Header'}
6853 $as_echo "$as_val"'` = yes; then
6854 cat >>confdefs.h <<_ACEOF
6855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6856 _ACEOF
6857
6858 fi
6859
6860 done
6861
6862 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6863 $as_echo_n "checking for ANSI C header files... " >&6; }
6864 if test "${ac_cv_header_stdc+set}" = set; then
6865 $as_echo_n "(cached) " >&6
6866 else
6867 cat >conftest.$ac_ext <<_ACEOF
6868 /* confdefs.h. */
6869 _ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 #include <stdlib.h>
6874 #include <stdarg.h>
6875 #include <string.h>
6876 #include <float.h>
6877
6878 int
6879 main ()
6880 {
6881
6882 ;
6883 return 0;
6884 }
6885 _ACEOF
6886 rm -f conftest.$ac_objext
6887 if { (ac_try="$ac_compile"
6888 case "(($ac_try" in
6889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6890 *) ac_try_echo=$ac_try;;
6891 esac
6892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6893 $as_echo "$ac_try_echo") >&5
6894 (eval "$ac_compile") 2>conftest.er1
6895 ac_status=$?
6896 grep -v '^ *+' conftest.er1 >conftest.err
6897 rm -f conftest.er1
6898 cat conftest.err >&5
6899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } && {
6901 test -z "$ac_c_werror_flag" ||
6902 test ! -s conftest.err
6903 } && test -s conftest.$ac_objext; then
6904 ac_cv_header_stdc=yes
6905 else
6906 $as_echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6908
6909 ac_cv_header_stdc=no
6910 fi
6911
6912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6913
6914 if test $ac_cv_header_stdc = yes; then
6915 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6916 cat >conftest.$ac_ext <<_ACEOF
6917 /* confdefs.h. */
6918 _ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6922 #include <string.h>
6923
6924 _ACEOF
6925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6926 $EGREP "memchr" >/dev/null 2>&1; then
6927 :
6928 else
6929 ac_cv_header_stdc=no
6930 fi
6931 rm -f conftest*
6932
6933 fi
6934
6935 if test $ac_cv_header_stdc = yes; then
6936 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6937 cat >conftest.$ac_ext <<_ACEOF
6938 /* confdefs.h. */
6939 _ACEOF
6940 cat confdefs.h >>conftest.$ac_ext
6941 cat >>conftest.$ac_ext <<_ACEOF
6942 /* end confdefs.h. */
6943 #include <stdlib.h>
6944
6945 _ACEOF
6946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6947 $EGREP "free" >/dev/null 2>&1; then
6948 :
6949 else
6950 ac_cv_header_stdc=no
6951 fi
6952 rm -f conftest*
6953
6954 fi
6955
6956 if test $ac_cv_header_stdc = yes; then
6957 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6958 if test "$cross_compiling" = yes; then
6959 :
6960 else
6961 cat >conftest.$ac_ext <<_ACEOF
6962 /* confdefs.h. */
6963 _ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h. */
6967 #include <ctype.h>
6968 #include <stdlib.h>
6969 #if ((' ' & 0x0FF) == 0x020)
6970 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6971 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6972 #else
6973 # define ISLOWER(c) \
6974 (('a' <= (c) && (c) <= 'i') \
6975 || ('j' <= (c) && (c) <= 'r') \
6976 || ('s' <= (c) && (c) <= 'z'))
6977 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6978 #endif
6979
6980 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6981 int
6982 main ()
6983 {
6984 int i;
6985 for (i = 0; i < 256; i++)
6986 if (XOR (islower (i), ISLOWER (i))
6987 || toupper (i) != TOUPPER (i))
6988 return 2;
6989 return 0;
6990 }
6991 _ACEOF
6992 rm -f conftest$ac_exeext
6993 if { (ac_try="$ac_link"
6994 case "(($ac_try" in
6995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6996 *) ac_try_echo=$ac_try;;
6997 esac
6998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6999 $as_echo "$ac_try_echo") >&5
7000 (eval "$ac_link") 2>&5
7001 ac_status=$?
7002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7004 { (case "(($ac_try" in
7005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7006 *) ac_try_echo=$ac_try;;
7007 esac
7008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7009 $as_echo "$ac_try_echo") >&5
7010 (eval "$ac_try") 2>&5
7011 ac_status=$?
7012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; }; then
7014 :
7015 else
7016 $as_echo "$as_me: program exited with status $ac_status" >&5
7017 $as_echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7019
7020 ( exit $ac_status )
7021 ac_cv_header_stdc=no
7022 fi
7023 rm -rf conftest.dSYM
7024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7025 fi
7026
7027
7028 fi
7029 fi
7030 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7031 $as_echo "$ac_cv_header_stdc" >&6; }
7032 if test $ac_cv_header_stdc = yes; then
7033
7034 cat >>confdefs.h <<\_ACEOF
7035 #define STDC_HEADERS 1
7036 _ACEOF
7037
7038 fi
7039
7040 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7041 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7042 if test "${ac_cv_header_time+set}" = set; then
7043 $as_echo_n "(cached) " >&6
7044 else
7045 cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h. */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 #include <sys/types.h>
7052 #include <sys/time.h>
7053 #include <time.h>
7054
7055 int
7056 main ()
7057 {
7058 if ((struct tm *) 0)
7059 return 0;
7060 ;
7061 return 0;
7062 }
7063 _ACEOF
7064 rm -f conftest.$ac_objext
7065 if { (ac_try="$ac_compile"
7066 case "(($ac_try" in
7067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068 *) ac_try_echo=$ac_try;;
7069 esac
7070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7071 $as_echo "$ac_try_echo") >&5
7072 (eval "$ac_compile") 2>conftest.er1
7073 ac_status=$?
7074 grep -v '^ *+' conftest.er1 >conftest.err
7075 rm -f conftest.er1
7076 cat conftest.err >&5
7077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } && {
7079 test -z "$ac_c_werror_flag" ||
7080 test ! -s conftest.err
7081 } && test -s conftest.$ac_objext; then
7082 ac_cv_header_time=yes
7083 else
7084 $as_echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7086
7087 ac_cv_header_time=no
7088 fi
7089
7090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091 fi
7092 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7093 $as_echo "$ac_cv_header_time" >&6; }
7094 if test $ac_cv_header_time = yes; then
7095
7096 cat >>confdefs.h <<\_ACEOF
7097 #define TIME_WITH_SYS_TIME 1
7098 _ACEOF
7099
7100 fi
7101
7102 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7103 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7104 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7105 $as_echo_n "(cached) " >&6
7106 else
7107 cat >conftest.$ac_ext <<_ACEOF
7108 /* confdefs.h. */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7113 $ac_includes_default
7114 int
7115 main ()
7116 {
7117 #ifndef sys_siglist
7118 (void) sys_siglist;
7119 #endif
7120
7121 ;
7122 return 0;
7123 }
7124 _ACEOF
7125 rm -f conftest.$ac_objext
7126 if { (ac_try="$ac_compile"
7127 case "(($ac_try" in
7128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7129 *) ac_try_echo=$ac_try;;
7130 esac
7131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7132 $as_echo "$ac_try_echo") >&5
7133 (eval "$ac_compile") 2>conftest.er1
7134 ac_status=$?
7135 grep -v '^ *+' conftest.er1 >conftest.err
7136 rm -f conftest.er1
7137 cat conftest.err >&5
7138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); } && {
7140 test -z "$ac_c_werror_flag" ||
7141 test ! -s conftest.err
7142 } && test -s conftest.$ac_objext; then
7143 ac_cv_have_decl_sys_siglist=yes
7144 else
7145 $as_echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7147
7148 ac_cv_have_decl_sys_siglist=no
7149 fi
7150
7151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152 fi
7153 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7154 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7155 if test $ac_cv_have_decl_sys_siglist = yes; then
7156
7157 cat >>confdefs.h <<_ACEOF
7158 #define HAVE_DECL_SYS_SIGLIST 1
7159 _ACEOF
7160
7161
7162 else
7163 cat >>confdefs.h <<_ACEOF
7164 #define HAVE_DECL_SYS_SIGLIST 0
7165 _ACEOF
7166
7167
7168 fi
7169
7170
7171 if test $ac_cv_have_decl_sys_siglist != yes; then
7172 # For Tru64, at least:
7173 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7174 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7175 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7176 $as_echo_n "(cached) " >&6
7177 else
7178 cat >conftest.$ac_ext <<_ACEOF
7179 /* confdefs.h. */
7180 _ACEOF
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h. */
7184 $ac_includes_default
7185 int
7186 main ()
7187 {
7188 #ifndef __sys_siglist
7189 (void) __sys_siglist;
7190 #endif
7191
7192 ;
7193 return 0;
7194 }
7195 _ACEOF
7196 rm -f conftest.$ac_objext
7197 if { (ac_try="$ac_compile"
7198 case "(($ac_try" in
7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7201 esac
7202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7203 $as_echo "$ac_try_echo") >&5
7204 (eval "$ac_compile") 2>conftest.er1
7205 ac_status=$?
7206 grep -v '^ *+' conftest.er1 >conftest.err
7207 rm -f conftest.er1
7208 cat conftest.err >&5
7209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } && {
7211 test -z "$ac_c_werror_flag" ||
7212 test ! -s conftest.err
7213 } && test -s conftest.$ac_objext; then
7214 ac_cv_have_decl___sys_siglist=yes
7215 else
7216 $as_echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.$ac_ext >&5
7218
7219 ac_cv_have_decl___sys_siglist=no
7220 fi
7221
7222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223 fi
7224 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7225 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7226 if test $ac_cv_have_decl___sys_siglist = yes; then
7227
7228 cat >>confdefs.h <<_ACEOF
7229 #define HAVE_DECL___SYS_SIGLIST 1
7230 _ACEOF
7231
7232
7233 else
7234 cat >>confdefs.h <<_ACEOF
7235 #define HAVE_DECL___SYS_SIGLIST 0
7236 _ACEOF
7237
7238
7239 fi
7240
7241
7242 if test $ac_cv_have_decl___sys_siglist = yes; then
7243
7244 cat >>confdefs.h <<\_ACEOF
7245 #define sys_siglist __sys_siglist
7246 _ACEOF
7247
7248 fi
7249 fi
7250 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7251 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7252 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7253 $as_echo_n "(cached) " >&6
7254 else
7255 cat >conftest.$ac_ext <<_ACEOF
7256 /* confdefs.h. */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7261 #include <sys/types.h>
7262 #include <sys/wait.h>
7263 #ifndef WEXITSTATUS
7264 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7265 #endif
7266 #ifndef WIFEXITED
7267 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7268 #endif
7269
7270 int
7271 main ()
7272 {
7273 int s;
7274 wait (&s);
7275 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7276 ;
7277 return 0;
7278 }
7279 _ACEOF
7280 rm -f conftest.$ac_objext
7281 if { (ac_try="$ac_compile"
7282 case "(($ac_try" in
7283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284 *) ac_try_echo=$ac_try;;
7285 esac
7286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7287 $as_echo "$ac_try_echo") >&5
7288 (eval "$ac_compile") 2>conftest.er1
7289 ac_status=$?
7290 grep -v '^ *+' conftest.er1 >conftest.err
7291 rm -f conftest.er1
7292 cat conftest.err >&5
7293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } && {
7295 test -z "$ac_c_werror_flag" ||
7296 test ! -s conftest.err
7297 } && test -s conftest.$ac_objext; then
7298 ac_cv_header_sys_wait_h=yes
7299 else
7300 $as_echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7302
7303 ac_cv_header_sys_wait_h=no
7304 fi
7305
7306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307 fi
7308 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7309 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7310 if test $ac_cv_header_sys_wait_h = yes; then
7311
7312 cat >>confdefs.h <<\_ACEOF
7313 #define HAVE_SYS_WAIT_H 1
7314 _ACEOF
7315
7316 fi
7317
7318
7319 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7320 $as_echo_n "checking for struct utimbuf... " >&6; }
7321 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7322 $as_echo_n "(cached) " >&6
7323 else
7324 cat >conftest.$ac_ext <<_ACEOF
7325 /* confdefs.h. */
7326 _ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7330 #ifdef TIME_WITH_SYS_TIME
7331 #include <sys/time.h>
7332 #include <time.h>
7333 #else
7334 #ifdef HAVE_SYS_TIME_H
7335 #include <sys/time.h>
7336 #else
7337 #include <time.h>
7338 #endif
7339 #endif
7340 #ifdef HAVE_UTIME_H
7341 #include <utime.h>
7342 #endif
7343 int
7344 main ()
7345 {
7346 static struct utimbuf x; x.actime = x.modtime;
7347 ;
7348 return 0;
7349 }
7350 _ACEOF
7351 rm -f conftest.$ac_objext
7352 if { (ac_try="$ac_compile"
7353 case "(($ac_try" in
7354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7355 *) ac_try_echo=$ac_try;;
7356 esac
7357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7358 $as_echo "$ac_try_echo") >&5
7359 (eval "$ac_compile") 2>conftest.er1
7360 ac_status=$?
7361 grep -v '^ *+' conftest.er1 >conftest.err
7362 rm -f conftest.er1
7363 cat conftest.err >&5
7364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && {
7366 test -z "$ac_c_werror_flag" ||
7367 test ! -s conftest.err
7368 } && test -s conftest.$ac_objext; then
7369 emacs_cv_struct_utimbuf=yes
7370 else
7371 $as_echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7373
7374 emacs_cv_struct_utimbuf=no
7375 fi
7376
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378 fi
7379 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7380 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7381 if test $emacs_cv_struct_utimbuf = yes; then
7382
7383 cat >>confdefs.h <<\_ACEOF
7384 #define HAVE_STRUCT_UTIMBUF 1
7385 _ACEOF
7386
7387 fi
7388
7389 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7390 $as_echo_n "checking return type of signal handlers... " >&6; }
7391 if test "${ac_cv_type_signal+set}" = set; then
7392 $as_echo_n "(cached) " >&6
7393 else
7394 cat >conftest.$ac_ext <<_ACEOF
7395 /* confdefs.h. */
7396 _ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7400 #include <sys/types.h>
7401 #include <signal.h>
7402
7403 int
7404 main ()
7405 {
7406 return *(signal (0, 0)) (0) == 1;
7407 ;
7408 return 0;
7409 }
7410 _ACEOF
7411 rm -f conftest.$ac_objext
7412 if { (ac_try="$ac_compile"
7413 case "(($ac_try" in
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7416 esac
7417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7418 $as_echo "$ac_try_echo") >&5
7419 (eval "$ac_compile") 2>conftest.er1
7420 ac_status=$?
7421 grep -v '^ *+' conftest.er1 >conftest.err
7422 rm -f conftest.er1
7423 cat conftest.err >&5
7424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } && {
7426 test -z "$ac_c_werror_flag" ||
7427 test ! -s conftest.err
7428 } && test -s conftest.$ac_objext; then
7429 ac_cv_type_signal=int
7430 else
7431 $as_echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7433
7434 ac_cv_type_signal=void
7435 fi
7436
7437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7438 fi
7439 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7440 $as_echo "$ac_cv_type_signal" >&6; }
7441
7442 cat >>confdefs.h <<_ACEOF
7443 #define RETSIGTYPE $ac_cv_type_signal
7444 _ACEOF
7445
7446
7447
7448 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7449 $as_echo_n "checking for speed_t... " >&6; }
7450 if test "${emacs_cv_speed_t+set}" = set; then
7451 $as_echo_n "(cached) " >&6
7452 else
7453 cat >conftest.$ac_ext <<_ACEOF
7454 /* confdefs.h. */
7455 _ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h. */
7459 #include <termios.h>
7460 int
7461 main ()
7462 {
7463 speed_t x = 1;
7464 ;
7465 return 0;
7466 }
7467 _ACEOF
7468 rm -f conftest.$ac_objext
7469 if { (ac_try="$ac_compile"
7470 case "(($ac_try" in
7471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472 *) ac_try_echo=$ac_try;;
7473 esac
7474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7475 $as_echo "$ac_try_echo") >&5
7476 (eval "$ac_compile") 2>conftest.er1
7477 ac_status=$?
7478 grep -v '^ *+' conftest.er1 >conftest.err
7479 rm -f conftest.er1
7480 cat conftest.err >&5
7481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } && {
7483 test -z "$ac_c_werror_flag" ||
7484 test ! -s conftest.err
7485 } && test -s conftest.$ac_objext; then
7486 emacs_cv_speed_t=yes
7487 else
7488 $as_echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7490
7491 emacs_cv_speed_t=no
7492 fi
7493
7494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495 fi
7496 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7497 $as_echo "$emacs_cv_speed_t" >&6; }
7498 if test $emacs_cv_speed_t = yes; then
7499
7500 cat >>confdefs.h <<\_ACEOF
7501 #define HAVE_SPEED_T 1
7502 _ACEOF
7503
7504 fi
7505
7506 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7507 $as_echo_n "checking for struct timeval... " >&6; }
7508 if test "${emacs_cv_struct_timeval+set}" = set; then
7509 $as_echo_n "(cached) " >&6
7510 else
7511 cat >conftest.$ac_ext <<_ACEOF
7512 /* confdefs.h. */
7513 _ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7517 #ifdef TIME_WITH_SYS_TIME
7518 #include <sys/time.h>
7519 #include <time.h>
7520 #else
7521 #ifdef HAVE_SYS_TIME_H
7522 #include <sys/time.h>
7523 #else
7524 #include <time.h>
7525 #endif
7526 #endif
7527 int
7528 main ()
7529 {
7530 static struct timeval x; x.tv_sec = x.tv_usec;
7531 ;
7532 return 0;
7533 }
7534 _ACEOF
7535 rm -f conftest.$ac_objext
7536 if { (ac_try="$ac_compile"
7537 case "(($ac_try" in
7538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7540 esac
7541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7542 $as_echo "$ac_try_echo") >&5
7543 (eval "$ac_compile") 2>conftest.er1
7544 ac_status=$?
7545 grep -v '^ *+' conftest.er1 >conftest.err
7546 rm -f conftest.er1
7547 cat conftest.err >&5
7548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } && {
7550 test -z "$ac_c_werror_flag" ||
7551 test ! -s conftest.err
7552 } && test -s conftest.$ac_objext; then
7553 emacs_cv_struct_timeval=yes
7554 else
7555 $as_echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7557
7558 emacs_cv_struct_timeval=no
7559 fi
7560
7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562 fi
7563 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7564 $as_echo "$emacs_cv_struct_timeval" >&6; }
7565 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7566 if test $emacs_cv_struct_timeval = yes; then
7567
7568 cat >>confdefs.h <<\_ACEOF
7569 #define HAVE_TIMEVAL 1
7570 _ACEOF
7571
7572 fi
7573
7574 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7575 $as_echo_n "checking for struct exception... " >&6; }
7576 if test "${emacs_cv_struct_exception+set}" = set; then
7577 $as_echo_n "(cached) " >&6
7578 else
7579 cat >conftest.$ac_ext <<_ACEOF
7580 /* confdefs.h. */
7581 _ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7585 #include <math.h>
7586 int
7587 main ()
7588 {
7589 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7590 ;
7591 return 0;
7592 }
7593 _ACEOF
7594 rm -f conftest.$ac_objext
7595 if { (ac_try="$ac_compile"
7596 case "(($ac_try" in
7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598 *) ac_try_echo=$ac_try;;
7599 esac
7600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7601 $as_echo "$ac_try_echo") >&5
7602 (eval "$ac_compile") 2>conftest.er1
7603 ac_status=$?
7604 grep -v '^ *+' conftest.er1 >conftest.err
7605 rm -f conftest.er1
7606 cat conftest.err >&5
7607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } && {
7609 test -z "$ac_c_werror_flag" ||
7610 test ! -s conftest.err
7611 } && test -s conftest.$ac_objext; then
7612 emacs_cv_struct_exception=yes
7613 else
7614 $as_echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.$ac_ext >&5
7616
7617 emacs_cv_struct_exception=no
7618 fi
7619
7620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7621 fi
7622 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7623 $as_echo "$emacs_cv_struct_exception" >&6; }
7624 HAVE_EXCEPTION=$emacs_cv_struct_exception
7625 if test $emacs_cv_struct_exception != yes; then
7626
7627 cat >>confdefs.h <<\_ACEOF
7628 #define NO_MATHERR 1
7629 _ACEOF
7630
7631 fi
7632
7633
7634 for ac_header in sys/socket.h
7635 do
7636 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7638 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7639 $as_echo_n "checking for $ac_header... " >&6; }
7640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7641 $as_echo_n "(cached) " >&6
7642 fi
7643 ac_res=`eval 'as_val=${'$as_ac_Header'}
7644 $as_echo "$as_val"'`
7645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7646 $as_echo "$ac_res" >&6; }
7647 else
7648 # Is the header compilable?
7649 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7650 $as_echo_n "checking $ac_header usability... " >&6; }
7651 cat >conftest.$ac_ext <<_ACEOF
7652 /* confdefs.h. */
7653 _ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7657 $ac_includes_default
7658 #include <$ac_header>
7659 _ACEOF
7660 rm -f conftest.$ac_objext
7661 if { (ac_try="$ac_compile"
7662 case "(($ac_try" in
7663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664 *) ac_try_echo=$ac_try;;
7665 esac
7666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7667 $as_echo "$ac_try_echo") >&5
7668 (eval "$ac_compile") 2>conftest.er1
7669 ac_status=$?
7670 grep -v '^ *+' conftest.er1 >conftest.err
7671 rm -f conftest.er1
7672 cat conftest.err >&5
7673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); } && {
7675 test -z "$ac_c_werror_flag" ||
7676 test ! -s conftest.err
7677 } && test -s conftest.$ac_objext; then
7678 ac_header_compiler=yes
7679 else
7680 $as_echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7682
7683 ac_header_compiler=no
7684 fi
7685
7686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7687 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7688 $as_echo "$ac_header_compiler" >&6; }
7689
7690 # Is the header present?
7691 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7692 $as_echo_n "checking $ac_header presence... " >&6; }
7693 cat >conftest.$ac_ext <<_ACEOF
7694 /* confdefs.h. */
7695 _ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h. */
7699 #include <$ac_header>
7700 _ACEOF
7701 if { (ac_try="$ac_cpp conftest.$ac_ext"
7702 case "(($ac_try" in
7703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7704 *) ac_try_echo=$ac_try;;
7705 esac
7706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7707 $as_echo "$ac_try_echo") >&5
7708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7709 ac_status=$?
7710 grep -v '^ *+' conftest.er1 >conftest.err
7711 rm -f conftest.er1
7712 cat conftest.err >&5
7713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } >/dev/null && {
7715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7716 test ! -s conftest.err
7717 }; then
7718 ac_header_preproc=yes
7719 else
7720 $as_echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7722
7723 ac_header_preproc=no
7724 fi
7725
7726 rm -f conftest.err conftest.$ac_ext
7727 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7728 $as_echo "$ac_header_preproc" >&6; }
7729
7730 # So? What about this header?
7731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7732 yes:no: )
7733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7734 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7736 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7737 ac_header_preproc=yes
7738 ;;
7739 no:yes:* )
7740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7741 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7743 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7745 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7747 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7749 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7751 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7752
7753 ;;
7754 esac
7755 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7756 $as_echo_n "checking for $ac_header... " >&6; }
7757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7758 $as_echo_n "(cached) " >&6
7759 else
7760 eval "$as_ac_Header=\$ac_header_preproc"
7761 fi
7762 ac_res=`eval 'as_val=${'$as_ac_Header'}
7763 $as_echo "$as_val"'`
7764 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7765 $as_echo "$ac_res" >&6; }
7766
7767 fi
7768 if test `eval 'as_val=${'$as_ac_Header'}
7769 $as_echo "$as_val"'` = yes; then
7770 cat >>confdefs.h <<_ACEOF
7771 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7772 _ACEOF
7773
7774 fi
7775
7776 done
7777
7778
7779 for ac_header in net/if.h
7780 do
7781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7782 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7783 $as_echo_n "checking for $ac_header... " >&6; }
7784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7785 $as_echo_n "(cached) " >&6
7786 else
7787 cat >conftest.$ac_ext <<_ACEOF
7788 /* confdefs.h. */
7789 _ACEOF
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h. */
7793 $ac_includes_default
7794 #if HAVE_SYS_SOCKET_H
7795 #include <sys/socket.h>
7796 #endif
7797
7798 #include <$ac_header>
7799 _ACEOF
7800 rm -f conftest.$ac_objext
7801 if { (ac_try="$ac_compile"
7802 case "(($ac_try" in
7803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804 *) ac_try_echo=$ac_try;;
7805 esac
7806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7807 $as_echo "$ac_try_echo") >&5
7808 (eval "$ac_compile") 2>conftest.er1
7809 ac_status=$?
7810 grep -v '^ *+' conftest.er1 >conftest.err
7811 rm -f conftest.er1
7812 cat conftest.err >&5
7813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } && {
7815 test -z "$ac_c_werror_flag" ||
7816 test ! -s conftest.err
7817 } && test -s conftest.$ac_objext; then
7818 eval "$as_ac_Header=yes"
7819 else
7820 $as_echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7822
7823 eval "$as_ac_Header=no"
7824 fi
7825
7826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827 fi
7828 ac_res=`eval 'as_val=${'$as_ac_Header'}
7829 $as_echo "$as_val"'`
7830 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7831 $as_echo "$ac_res" >&6; }
7832 if test `eval 'as_val=${'$as_ac_Header'}
7833 $as_echo "$as_val"'` = yes; then
7834 cat >>confdefs.h <<_ACEOF
7835 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7836 _ACEOF
7837
7838 fi
7839
7840 done
7841
7842
7843 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7844 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7845 if test "${ac_cv_struct_tm+set}" = set; then
7846 $as_echo_n "(cached) " >&6
7847 else
7848 cat >conftest.$ac_ext <<_ACEOF
7849 /* confdefs.h. */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 #include <sys/types.h>
7855 #include <time.h>
7856
7857 int
7858 main ()
7859 {
7860 struct tm tm;
7861 int *p = &tm.tm_sec;
7862 return !p;
7863 ;
7864 return 0;
7865 }
7866 _ACEOF
7867 rm -f conftest.$ac_objext
7868 if { (ac_try="$ac_compile"
7869 case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7872 esac
7873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7874 $as_echo "$ac_try_echo") >&5
7875 (eval "$ac_compile") 2>conftest.er1
7876 ac_status=$?
7877 grep -v '^ *+' conftest.er1 >conftest.err
7878 rm -f conftest.er1
7879 cat conftest.err >&5
7880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } && {
7882 test -z "$ac_c_werror_flag" ||
7883 test ! -s conftest.err
7884 } && test -s conftest.$ac_objext; then
7885 ac_cv_struct_tm=time.h
7886 else
7887 $as_echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7889
7890 ac_cv_struct_tm=sys/time.h
7891 fi
7892
7893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 fi
7895 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7896 $as_echo "$ac_cv_struct_tm" >&6; }
7897 if test $ac_cv_struct_tm = sys/time.h; then
7898
7899 cat >>confdefs.h <<\_ACEOF
7900 #define TM_IN_SYS_TIME 1
7901 _ACEOF
7902
7903 fi
7904
7905 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7906 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7907 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7908 $as_echo_n "(cached) " >&6
7909 else
7910 cat >conftest.$ac_ext <<_ACEOF
7911 /* confdefs.h. */
7912 _ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h. */
7916 #include <sys/types.h>
7917 #include <$ac_cv_struct_tm>
7918
7919
7920 int
7921 main ()
7922 {
7923 static struct tm ac_aggr;
7924 if (ac_aggr.tm_zone)
7925 return 0;
7926 ;
7927 return 0;
7928 }
7929 _ACEOF
7930 rm -f conftest.$ac_objext
7931 if { (ac_try="$ac_compile"
7932 case "(($ac_try" in
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7935 esac
7936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7937 $as_echo "$ac_try_echo") >&5
7938 (eval "$ac_compile") 2>conftest.er1
7939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest.$ac_objext; then
7948 ac_cv_member_struct_tm_tm_zone=yes
7949 else
7950 $as_echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7952
7953 cat >conftest.$ac_ext <<_ACEOF
7954 /* confdefs.h. */
7955 _ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h. */
7959 #include <sys/types.h>
7960 #include <$ac_cv_struct_tm>
7961
7962
7963 int
7964 main ()
7965 {
7966 static struct tm ac_aggr;
7967 if (sizeof ac_aggr.tm_zone)
7968 return 0;
7969 ;
7970 return 0;
7971 }
7972 _ACEOF
7973 rm -f conftest.$ac_objext
7974 if { (ac_try="$ac_compile"
7975 case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7978 esac
7979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7980 $as_echo "$ac_try_echo") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7982 ac_status=$?
7983 grep -v '^ *+' conftest.er1 >conftest.err
7984 rm -f conftest.er1
7985 cat conftest.err >&5
7986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest.$ac_objext; then
7991 ac_cv_member_struct_tm_tm_zone=yes
7992 else
7993 $as_echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7995
7996 ac_cv_member_struct_tm_tm_zone=no
7997 fi
7998
7999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000 fi
8001
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003 fi
8004 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8005 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8006 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8007
8008 cat >>confdefs.h <<_ACEOF
8009 #define HAVE_STRUCT_TM_TM_ZONE 1
8010 _ACEOF
8011
8012
8013 fi
8014
8015 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8016
8017 cat >>confdefs.h <<\_ACEOF
8018 #define HAVE_TM_ZONE 1
8019 _ACEOF
8020
8021 else
8022 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8023 $as_echo_n "checking whether tzname is declared... " >&6; }
8024 if test "${ac_cv_have_decl_tzname+set}" = set; then
8025 $as_echo_n "(cached) " >&6
8026 else
8027 cat >conftest.$ac_ext <<_ACEOF
8028 /* confdefs.h. */
8029 _ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h. */
8033 #include <time.h>
8034
8035 int
8036 main ()
8037 {
8038 #ifndef tzname
8039 (void) tzname;
8040 #endif
8041
8042 ;
8043 return 0;
8044 }
8045 _ACEOF
8046 rm -f conftest.$ac_objext
8047 if { (ac_try="$ac_compile"
8048 case "(($ac_try" in
8049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8050 *) ac_try_echo=$ac_try;;
8051 esac
8052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8053 $as_echo "$ac_try_echo") >&5
8054 (eval "$ac_compile") 2>conftest.er1
8055 ac_status=$?
8056 grep -v '^ *+' conftest.er1 >conftest.err
8057 rm -f conftest.er1
8058 cat conftest.err >&5
8059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } && {
8061 test -z "$ac_c_werror_flag" ||
8062 test ! -s conftest.err
8063 } && test -s conftest.$ac_objext; then
8064 ac_cv_have_decl_tzname=yes
8065 else
8066 $as_echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8068
8069 ac_cv_have_decl_tzname=no
8070 fi
8071
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073 fi
8074 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8075 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8076 if test $ac_cv_have_decl_tzname = yes; then
8077
8078 cat >>confdefs.h <<_ACEOF
8079 #define HAVE_DECL_TZNAME 1
8080 _ACEOF
8081
8082
8083 else
8084 cat >>confdefs.h <<_ACEOF
8085 #define HAVE_DECL_TZNAME 0
8086 _ACEOF
8087
8088
8089 fi
8090
8091
8092 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8093 $as_echo_n "checking for tzname... " >&6; }
8094 if test "${ac_cv_var_tzname+set}" = set; then
8095 $as_echo_n "(cached) " >&6
8096 else
8097 cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h. */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 #include <time.h>
8104 #if !HAVE_DECL_TZNAME
8105 extern char *tzname[];
8106 #endif
8107
8108 int
8109 main ()
8110 {
8111 return tzname[0][0];
8112 ;
8113 return 0;
8114 }
8115 _ACEOF
8116 rm -f conftest.$ac_objext conftest$ac_exeext
8117 if { (ac_try="$ac_link"
8118 case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8121 esac
8122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8123 $as_echo "$ac_try_echo") >&5
8124 (eval "$ac_link") 2>conftest.er1
8125 ac_status=$?
8126 grep -v '^ *+' conftest.er1 >conftest.err
8127 rm -f conftest.er1
8128 cat conftest.err >&5
8129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } && {
8131 test -z "$ac_c_werror_flag" ||
8132 test ! -s conftest.err
8133 } && test -s conftest$ac_exeext && {
8134 test "$cross_compiling" = yes ||
8135 $as_test_x conftest$ac_exeext
8136 }; then
8137 ac_cv_var_tzname=yes
8138 else
8139 $as_echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8141
8142 ac_cv_var_tzname=no
8143 fi
8144
8145 rm -rf conftest.dSYM
8146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8147 conftest$ac_exeext conftest.$ac_ext
8148 fi
8149 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8150 $as_echo "$ac_cv_var_tzname" >&6; }
8151 if test $ac_cv_var_tzname = yes; then
8152
8153 cat >>confdefs.h <<\_ACEOF
8154 #define HAVE_TZNAME 1
8155 _ACEOF
8156
8157 fi
8158 fi
8159
8160 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8161 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8162 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8163 $as_echo_n "(cached) " >&6
8164 else
8165 cat >conftest.$ac_ext <<_ACEOF
8166 /* confdefs.h. */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8171 #include <time.h>
8172
8173 int
8174 main ()
8175 {
8176 static struct tm ac_aggr;
8177 if (ac_aggr.tm_gmtoff)
8178 return 0;
8179 ;
8180 return 0;
8181 }
8182 _ACEOF
8183 rm -f conftest.$ac_objext
8184 if { (ac_try="$ac_compile"
8185 case "(($ac_try" in
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8188 esac
8189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8190 $as_echo "$ac_try_echo") >&5
8191 (eval "$ac_compile") 2>conftest.er1
8192 ac_status=$?
8193 grep -v '^ *+' conftest.er1 >conftest.err
8194 rm -f conftest.er1
8195 cat conftest.err >&5
8196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } && {
8198 test -z "$ac_c_werror_flag" ||
8199 test ! -s conftest.err
8200 } && test -s conftest.$ac_objext; then
8201 ac_cv_member_struct_tm_tm_gmtoff=yes
8202 else
8203 $as_echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8205
8206 cat >conftest.$ac_ext <<_ACEOF
8207 /* confdefs.h. */
8208 _ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8212 #include <time.h>
8213
8214 int
8215 main ()
8216 {
8217 static struct tm ac_aggr;
8218 if (sizeof ac_aggr.tm_gmtoff)
8219 return 0;
8220 ;
8221 return 0;
8222 }
8223 _ACEOF
8224 rm -f conftest.$ac_objext
8225 if { (ac_try="$ac_compile"
8226 case "(($ac_try" in
8227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8228 *) ac_try_echo=$ac_try;;
8229 esac
8230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8231 $as_echo "$ac_try_echo") >&5
8232 (eval "$ac_compile") 2>conftest.er1
8233 ac_status=$?
8234 grep -v '^ *+' conftest.er1 >conftest.err
8235 rm -f conftest.er1
8236 cat conftest.err >&5
8237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } && {
8239 test -z "$ac_c_werror_flag" ||
8240 test ! -s conftest.err
8241 } && test -s conftest.$ac_objext; then
8242 ac_cv_member_struct_tm_tm_gmtoff=yes
8243 else
8244 $as_echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8246
8247 ac_cv_member_struct_tm_tm_gmtoff=no
8248 fi
8249
8250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8251 fi
8252
8253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8254 fi
8255 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8256 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8257 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8258
8259 cat >>confdefs.h <<\_ACEOF
8260 #define HAVE_TM_GMTOFF 1
8261 _ACEOF
8262
8263 fi
8264
8265 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8266 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8267 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8268 $as_echo_n "(cached) " >&6
8269 else
8270 cat >conftest.$ac_ext <<_ACEOF
8271 /* confdefs.h. */
8272 _ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 $ac_includes_default
8277 #if HAVE_SYS_SOCKET_H
8278 #include <sys/socket.h>
8279 #endif
8280 #if HAVE_NET_IF_H
8281 #include <net/if.h>
8282 #endif
8283
8284 int
8285 main ()
8286 {
8287 static struct ifreq ac_aggr;
8288 if (ac_aggr.ifr_flags)
8289 return 0;
8290 ;
8291 return 0;
8292 }
8293 _ACEOF
8294 rm -f conftest.$ac_objext
8295 if { (ac_try="$ac_compile"
8296 case "(($ac_try" in
8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8299 esac
8300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8301 $as_echo "$ac_try_echo") >&5
8302 (eval "$ac_compile") 2>conftest.er1
8303 ac_status=$?
8304 grep -v '^ *+' conftest.er1 >conftest.err
8305 rm -f conftest.er1
8306 cat conftest.err >&5
8307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } && {
8309 test -z "$ac_c_werror_flag" ||
8310 test ! -s conftest.err
8311 } && test -s conftest.$ac_objext; then
8312 ac_cv_member_struct_ifreq_ifr_flags=yes
8313 else
8314 $as_echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8316
8317 cat >conftest.$ac_ext <<_ACEOF
8318 /* confdefs.h. */
8319 _ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8323 $ac_includes_default
8324 #if HAVE_SYS_SOCKET_H
8325 #include <sys/socket.h>
8326 #endif
8327 #if HAVE_NET_IF_H
8328 #include <net/if.h>
8329 #endif
8330
8331 int
8332 main ()
8333 {
8334 static struct ifreq ac_aggr;
8335 if (sizeof ac_aggr.ifr_flags)
8336 return 0;
8337 ;
8338 return 0;
8339 }
8340 _ACEOF
8341 rm -f conftest.$ac_objext
8342 if { (ac_try="$ac_compile"
8343 case "(($ac_try" in
8344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345 *) ac_try_echo=$ac_try;;
8346 esac
8347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8348 $as_echo "$ac_try_echo") >&5
8349 (eval "$ac_compile") 2>conftest.er1
8350 ac_status=$?
8351 grep -v '^ *+' conftest.er1 >conftest.err
8352 rm -f conftest.er1
8353 cat conftest.err >&5
8354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } && {
8356 test -z "$ac_c_werror_flag" ||
8357 test ! -s conftest.err
8358 } && test -s conftest.$ac_objext; then
8359 ac_cv_member_struct_ifreq_ifr_flags=yes
8360 else
8361 $as_echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8363
8364 ac_cv_member_struct_ifreq_ifr_flags=no
8365 fi
8366
8367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368 fi
8369
8370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8371 fi
8372 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8373 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8374 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8375
8376 cat >>confdefs.h <<_ACEOF
8377 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8378 _ACEOF
8379
8380
8381 fi
8382 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8383 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8384 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8385 $as_echo_n "(cached) " >&6
8386 else
8387 cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h. */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 $ac_includes_default
8394 #if HAVE_SYS_SOCKET_H
8395 #include <sys/socket.h>
8396 #endif
8397 #if HAVE_NET_IF_H
8398 #include <net/if.h>
8399 #endif
8400
8401 int
8402 main ()
8403 {
8404 static struct ifreq ac_aggr;
8405 if (ac_aggr.ifr_hwaddr)
8406 return 0;
8407 ;
8408 return 0;
8409 }
8410 _ACEOF
8411 rm -f conftest.$ac_objext
8412 if { (ac_try="$ac_compile"
8413 case "(($ac_try" in
8414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8416 esac
8417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8418 $as_echo "$ac_try_echo") >&5
8419 (eval "$ac_compile") 2>conftest.er1
8420 ac_status=$?
8421 grep -v '^ *+' conftest.er1 >conftest.err
8422 rm -f conftest.er1
8423 cat conftest.err >&5
8424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } && {
8426 test -z "$ac_c_werror_flag" ||
8427 test ! -s conftest.err
8428 } && test -s conftest.$ac_objext; then
8429 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8430 else
8431 $as_echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.$ac_ext >&5
8433
8434 cat >conftest.$ac_ext <<_ACEOF
8435 /* confdefs.h. */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 $ac_includes_default
8441 #if HAVE_SYS_SOCKET_H
8442 #include <sys/socket.h>
8443 #endif
8444 #if HAVE_NET_IF_H
8445 #include <net/if.h>
8446 #endif
8447
8448 int
8449 main ()
8450 {
8451 static struct ifreq ac_aggr;
8452 if (sizeof ac_aggr.ifr_hwaddr)
8453 return 0;
8454 ;
8455 return 0;
8456 }
8457 _ACEOF
8458 rm -f conftest.$ac_objext
8459 if { (ac_try="$ac_compile"
8460 case "(($ac_try" in
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8463 esac
8464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8465 $as_echo "$ac_try_echo") >&5
8466 (eval "$ac_compile") 2>conftest.er1
8467 ac_status=$?
8468 grep -v '^ *+' conftest.er1 >conftest.err
8469 rm -f conftest.er1
8470 cat conftest.err >&5
8471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } && {
8473 test -z "$ac_c_werror_flag" ||
8474 test ! -s conftest.err
8475 } && test -s conftest.$ac_objext; then
8476 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8477 else
8478 $as_echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8480
8481 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8482 fi
8483
8484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8485 fi
8486
8487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488 fi
8489 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8490 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8491 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8492
8493 cat >>confdefs.h <<_ACEOF
8494 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8495 _ACEOF
8496
8497
8498 fi
8499 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8500 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8501 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8502 $as_echo_n "(cached) " >&6
8503 else
8504 cat >conftest.$ac_ext <<_ACEOF
8505 /* confdefs.h. */
8506 _ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h. */
8510 $ac_includes_default
8511 #if HAVE_SYS_SOCKET_H
8512 #include <sys/socket.h>
8513 #endif
8514 #if HAVE_NET_IF_H
8515 #include <net/if.h>
8516 #endif
8517
8518 int
8519 main ()
8520 {
8521 static struct ifreq ac_aggr;
8522 if (ac_aggr.ifr_netmask)
8523 return 0;
8524 ;
8525 return 0;
8526 }
8527 _ACEOF
8528 rm -f conftest.$ac_objext
8529 if { (ac_try="$ac_compile"
8530 case "(($ac_try" in
8531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532 *) ac_try_echo=$ac_try;;
8533 esac
8534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8535 $as_echo "$ac_try_echo") >&5
8536 (eval "$ac_compile") 2>conftest.er1
8537 ac_status=$?
8538 grep -v '^ *+' conftest.er1 >conftest.err
8539 rm -f conftest.er1
8540 cat conftest.err >&5
8541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } && {
8543 test -z "$ac_c_werror_flag" ||
8544 test ! -s conftest.err
8545 } && test -s conftest.$ac_objext; then
8546 ac_cv_member_struct_ifreq_ifr_netmask=yes
8547 else
8548 $as_echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8550
8551 cat >conftest.$ac_ext <<_ACEOF
8552 /* confdefs.h. */
8553 _ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8557 $ac_includes_default
8558 #if HAVE_SYS_SOCKET_H
8559 #include <sys/socket.h>
8560 #endif
8561 #if HAVE_NET_IF_H
8562 #include <net/if.h>
8563 #endif
8564
8565 int
8566 main ()
8567 {
8568 static struct ifreq ac_aggr;
8569 if (sizeof ac_aggr.ifr_netmask)
8570 return 0;
8571 ;
8572 return 0;
8573 }
8574 _ACEOF
8575 rm -f conftest.$ac_objext
8576 if { (ac_try="$ac_compile"
8577 case "(($ac_try" in
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8580 esac
8581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8582 $as_echo "$ac_try_echo") >&5
8583 (eval "$ac_compile") 2>conftest.er1
8584 ac_status=$?
8585 grep -v '^ *+' conftest.er1 >conftest.err
8586 rm -f conftest.er1
8587 cat conftest.err >&5
8588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } && {
8590 test -z "$ac_c_werror_flag" ||
8591 test ! -s conftest.err
8592 } && test -s conftest.$ac_objext; then
8593 ac_cv_member_struct_ifreq_ifr_netmask=yes
8594 else
8595 $as_echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8597
8598 ac_cv_member_struct_ifreq_ifr_netmask=no
8599 fi
8600
8601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8602 fi
8603
8604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8605 fi
8606 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8607 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8608 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8609
8610 cat >>confdefs.h <<_ACEOF
8611 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8612 _ACEOF
8613
8614
8615 fi
8616 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8617 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8618 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8619 $as_echo_n "(cached) " >&6
8620 else
8621 cat >conftest.$ac_ext <<_ACEOF
8622 /* confdefs.h. */
8623 _ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8627 $ac_includes_default
8628 #if HAVE_SYS_SOCKET_H
8629 #include <sys/socket.h>
8630 #endif
8631 #if HAVE_NET_IF_H
8632 #include <net/if.h>
8633 #endif
8634
8635 int
8636 main ()
8637 {
8638 static struct ifreq ac_aggr;
8639 if (ac_aggr.ifr_broadaddr)
8640 return 0;
8641 ;
8642 return 0;
8643 }
8644 _ACEOF
8645 rm -f conftest.$ac_objext
8646 if { (ac_try="$ac_compile"
8647 case "(($ac_try" in
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8650 esac
8651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8652 $as_echo "$ac_try_echo") >&5
8653 (eval "$ac_compile") 2>conftest.er1
8654 ac_status=$?
8655 grep -v '^ *+' conftest.er1 >conftest.err
8656 rm -f conftest.er1
8657 cat conftest.err >&5
8658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } && {
8660 test -z "$ac_c_werror_flag" ||
8661 test ! -s conftest.err
8662 } && test -s conftest.$ac_objext; then
8663 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8664 else
8665 $as_echo "$as_me: failed program was:" >&5
8666 sed 's/^/| /' conftest.$ac_ext >&5
8667
8668 cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h. */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 $ac_includes_default
8675 #if HAVE_SYS_SOCKET_H
8676 #include <sys/socket.h>
8677 #endif
8678 #if HAVE_NET_IF_H
8679 #include <net/if.h>
8680 #endif
8681
8682 int
8683 main ()
8684 {
8685 static struct ifreq ac_aggr;
8686 if (sizeof ac_aggr.ifr_broadaddr)
8687 return 0;
8688 ;
8689 return 0;
8690 }
8691 _ACEOF
8692 rm -f conftest.$ac_objext
8693 if { (ac_try="$ac_compile"
8694 case "(($ac_try" in
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8697 esac
8698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8699 $as_echo "$ac_try_echo") >&5
8700 (eval "$ac_compile") 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest.$ac_objext; then
8710 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8711 else
8712 $as_echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8714
8715 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8716 fi
8717
8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8719 fi
8720
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 fi
8723 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8724 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8725 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8726
8727 cat >>confdefs.h <<_ACEOF
8728 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8729 _ACEOF
8730
8731
8732 fi
8733 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8734 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8735 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8736 $as_echo_n "(cached) " >&6
8737 else
8738 cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h. */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8744 $ac_includes_default
8745 #if HAVE_SYS_SOCKET_H
8746 #include <sys/socket.h>
8747 #endif
8748 #if HAVE_NET_IF_H
8749 #include <net/if.h>
8750 #endif
8751
8752 int
8753 main ()
8754 {
8755 static struct ifreq ac_aggr;
8756 if (ac_aggr.ifr_addr)
8757 return 0;
8758 ;
8759 return 0;
8760 }
8761 _ACEOF
8762 rm -f conftest.$ac_objext
8763 if { (ac_try="$ac_compile"
8764 case "(($ac_try" in
8765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8767 esac
8768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8769 $as_echo "$ac_try_echo") >&5
8770 (eval "$ac_compile") 2>conftest.er1
8771 ac_status=$?
8772 grep -v '^ *+' conftest.er1 >conftest.err
8773 rm -f conftest.er1
8774 cat conftest.err >&5
8775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } && {
8777 test -z "$ac_c_werror_flag" ||
8778 test ! -s conftest.err
8779 } && test -s conftest.$ac_objext; then
8780 ac_cv_member_struct_ifreq_ifr_addr=yes
8781 else
8782 $as_echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8784
8785 cat >conftest.$ac_ext <<_ACEOF
8786 /* confdefs.h. */
8787 _ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h. */
8791 $ac_includes_default
8792 #if HAVE_SYS_SOCKET_H
8793 #include <sys/socket.h>
8794 #endif
8795 #if HAVE_NET_IF_H
8796 #include <net/if.h>
8797 #endif
8798
8799 int
8800 main ()
8801 {
8802 static struct ifreq ac_aggr;
8803 if (sizeof ac_aggr.ifr_addr)
8804 return 0;
8805 ;
8806 return 0;
8807 }
8808 _ACEOF
8809 rm -f conftest.$ac_objext
8810 if { (ac_try="$ac_compile"
8811 case "(($ac_try" in
8812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813 *) ac_try_echo=$ac_try;;
8814 esac
8815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8816 $as_echo "$ac_try_echo") >&5
8817 (eval "$ac_compile") 2>conftest.er1
8818 ac_status=$?
8819 grep -v '^ *+' conftest.er1 >conftest.err
8820 rm -f conftest.er1
8821 cat conftest.err >&5
8822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } && {
8824 test -z "$ac_c_werror_flag" ||
8825 test ! -s conftest.err
8826 } && test -s conftest.$ac_objext; then
8827 ac_cv_member_struct_ifreq_ifr_addr=yes
8828 else
8829 $as_echo "$as_me: failed program was:" >&5
8830 sed 's/^/| /' conftest.$ac_ext >&5
8831
8832 ac_cv_member_struct_ifreq_ifr_addr=no
8833 fi
8834
8835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8836 fi
8837
8838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8839 fi
8840 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8841 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8842 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8843
8844 cat >>confdefs.h <<_ACEOF
8845 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8846 _ACEOF
8847
8848
8849 fi
8850
8851
8852
8853 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8854 $as_echo_n "checking for function prototypes... " >&6; }
8855 if test "$ac_cv_prog_cc_c89" != no; then
8856 { $as_echo "$as_me:$LINENO: result: yes" >&5
8857 $as_echo "yes" >&6; }
8858
8859 cat >>confdefs.h <<\_ACEOF
8860 #define PROTOTYPES 1
8861 _ACEOF
8862
8863
8864 cat >>confdefs.h <<\_ACEOF
8865 #define __PROTOTYPES 1
8866 _ACEOF
8867
8868 else
8869 { $as_echo "$as_me:$LINENO: result: no" >&5
8870 $as_echo "no" >&6; }
8871 fi
8872
8873 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8874 $as_echo_n "checking for working volatile... " >&6; }
8875 if test "${ac_cv_c_volatile+set}" = set; then
8876 $as_echo_n "(cached) " >&6
8877 else
8878 cat >conftest.$ac_ext <<_ACEOF
8879 /* confdefs.h. */
8880 _ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8884
8885 int
8886 main ()
8887 {
8888
8889 volatile int x;
8890 int * volatile y = (int *) 0;
8891 return !x && !y;
8892 ;
8893 return 0;
8894 }
8895 _ACEOF
8896 rm -f conftest.$ac_objext
8897 if { (ac_try="$ac_compile"
8898 case "(($ac_try" in
8899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900 *) ac_try_echo=$ac_try;;
8901 esac
8902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8903 $as_echo "$ac_try_echo") >&5
8904 (eval "$ac_compile") 2>conftest.er1
8905 ac_status=$?
8906 grep -v '^ *+' conftest.er1 >conftest.err
8907 rm -f conftest.er1
8908 cat conftest.err >&5
8909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } && {
8911 test -z "$ac_c_werror_flag" ||
8912 test ! -s conftest.err
8913 } && test -s conftest.$ac_objext; then
8914 ac_cv_c_volatile=yes
8915 else
8916 $as_echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8918
8919 ac_cv_c_volatile=no
8920 fi
8921
8922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8923 fi
8924 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8925 $as_echo "$ac_cv_c_volatile" >&6; }
8926 if test $ac_cv_c_volatile = no; then
8927
8928 cat >>confdefs.h <<\_ACEOF
8929 #define volatile /**/
8930 _ACEOF
8931
8932 fi
8933
8934 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8935 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8936 if test "${ac_cv_c_const+set}" = set; then
8937 $as_echo_n "(cached) " >&6
8938 else
8939 cat >conftest.$ac_ext <<_ACEOF
8940 /* confdefs.h. */
8941 _ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8945
8946 int
8947 main ()
8948 {
8949 /* FIXME: Include the comments suggested by Paul. */
8950 #ifndef __cplusplus
8951 /* Ultrix mips cc rejects this. */
8952 typedef int charset[2];
8953 const charset cs;
8954 /* SunOS 4.1.1 cc rejects this. */
8955 char const *const *pcpcc;
8956 char **ppc;
8957 /* NEC SVR4.0.2 mips cc rejects this. */
8958 struct point {int x, y;};
8959 static struct point const zero = {0,0};
8960 /* AIX XL C 1.02.0.0 rejects this.
8961 It does not let you subtract one const X* pointer from another in
8962 an arm of an if-expression whose if-part is not a constant
8963 expression */
8964 const char *g = "string";
8965 pcpcc = &g + (g ? g-g : 0);
8966 /* HPUX 7.0 cc rejects these. */
8967 ++pcpcc;
8968 ppc = (char**) pcpcc;
8969 pcpcc = (char const *const *) ppc;
8970 { /* SCO 3.2v4 cc rejects this. */
8971 char *t;
8972 char const *s = 0 ? (char *) 0 : (char const *) 0;
8973
8974 *t++ = 0;
8975 if (s) return 0;
8976 }
8977 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8978 int x[] = {25, 17};
8979 const int *foo = &x[0];
8980 ++foo;
8981 }
8982 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8983 typedef const int *iptr;
8984 iptr p = 0;
8985 ++p;
8986 }
8987 { /* AIX XL C 1.02.0.0 rejects this saying
8988 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8989 struct s { int j; const int *ap[3]; };
8990 struct s *b; b->j = 5;
8991 }
8992 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8993 const int foo = 10;
8994 if (!foo) return 0;
8995 }
8996 return !cs[0] && !zero.x;
8997 #endif
8998
8999 ;
9000 return 0;
9001 }
9002 _ACEOF
9003 rm -f conftest.$ac_objext
9004 if { (ac_try="$ac_compile"
9005 case "(($ac_try" in
9006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9007 *) ac_try_echo=$ac_try;;
9008 esac
9009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9010 $as_echo "$ac_try_echo") >&5
9011 (eval "$ac_compile") 2>conftest.er1
9012 ac_status=$?
9013 grep -v '^ *+' conftest.er1 >conftest.err
9014 rm -f conftest.er1
9015 cat conftest.err >&5
9016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } && {
9018 test -z "$ac_c_werror_flag" ||
9019 test ! -s conftest.err
9020 } && test -s conftest.$ac_objext; then
9021 ac_cv_c_const=yes
9022 else
9023 $as_echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.$ac_ext >&5
9025
9026 ac_cv_c_const=no
9027 fi
9028
9029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9030 fi
9031 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9032 $as_echo "$ac_cv_c_const" >&6; }
9033 if test $ac_cv_c_const = no; then
9034
9035 cat >>confdefs.h <<\_ACEOF
9036 #define const /**/
9037 _ACEOF
9038
9039 fi
9040
9041 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9042 $as_echo_n "checking for void * support... " >&6; }
9043 if test "${emacs_cv_void_star+set}" = set; then
9044 $as_echo_n "(cached) " >&6
9045 else
9046 cat >conftest.$ac_ext <<_ACEOF
9047 /* confdefs.h. */
9048 _ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9052
9053 int
9054 main ()
9055 {
9056 void * foo;
9057 ;
9058 return 0;
9059 }
9060 _ACEOF
9061 rm -f conftest.$ac_objext
9062 if { (ac_try="$ac_compile"
9063 case "(($ac_try" in
9064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9065 *) ac_try_echo=$ac_try;;
9066 esac
9067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9068 $as_echo "$ac_try_echo") >&5
9069 (eval "$ac_compile") 2>conftest.er1
9070 ac_status=$?
9071 grep -v '^ *+' conftest.er1 >conftest.err
9072 rm -f conftest.er1
9073 cat conftest.err >&5
9074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } && {
9076 test -z "$ac_c_werror_flag" ||
9077 test ! -s conftest.err
9078 } && test -s conftest.$ac_objext; then
9079 emacs_cv_void_star=yes
9080 else
9081 $as_echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9083
9084 emacs_cv_void_star=no
9085 fi
9086
9087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9088 fi
9089 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9090 $as_echo "$emacs_cv_void_star" >&6; }
9091 if test $emacs_cv_void_star = yes; then
9092 cat >>confdefs.h <<\_ACEOF
9093 #define POINTER_TYPE void
9094 _ACEOF
9095
9096 else
9097 cat >>confdefs.h <<\_ACEOF
9098 #define POINTER_TYPE char
9099 _ACEOF
9100
9101 fi
9102
9103
9104
9105
9106
9107 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9108 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9109 set x ${MAKE-make}
9110 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9111 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9112 $as_echo_n "(cached) " >&6
9113 else
9114 cat >conftest.make <<\_ACEOF
9115 SHELL = /bin/sh
9116 all:
9117 @echo '@@@%%%=$(MAKE)=@@@%%%'
9118 _ACEOF
9119 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9120 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9121 *@@@%%%=?*=@@@%%%*)
9122 eval ac_cv_prog_make_${ac_make}_set=yes;;
9123 *)
9124 eval ac_cv_prog_make_${ac_make}_set=no;;
9125 esac
9126 rm -f conftest.make
9127 fi
9128 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9129 { $as_echo "$as_me:$LINENO: result: yes" >&5
9130 $as_echo "yes" >&6; }
9131 SET_MAKE=
9132 else
9133 { $as_echo "$as_me:$LINENO: result: no" >&5
9134 $as_echo "no" >&6; }
9135 SET_MAKE="MAKE=${MAKE-make}"
9136 fi
9137
9138
9139 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9140 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9141 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9142 HAVE_GNU_MAKE=no
9143 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9144 if test "x$testval" != x; then
9145 HAVE_GNU_MAKE=yes
9146 else
9147 ac_enable_autodepend=no
9148 fi
9149 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9150 $as_echo "$HAVE_GNU_MAKE" >&6; }
9151 if test $HAVE_GNU_MAKE = yes; then
9152 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9153 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9154 SAVE_CFLAGS="$CFLAGS"
9155 CFLAGS="$CFLAGS -MMD -MF deps.d"
9156 cat >conftest.$ac_ext <<_ACEOF
9157 /* confdefs.h. */
9158 _ACEOF
9159 cat confdefs.h >>conftest.$ac_ext
9160 cat >>conftest.$ac_ext <<_ACEOF
9161 /* end confdefs.h. */
9162
9163 int
9164 main ()
9165 {
9166
9167 ;
9168 return 0;
9169 }
9170 _ACEOF
9171 rm -f conftest.$ac_objext
9172 if { (ac_try="$ac_compile"
9173 case "(($ac_try" in
9174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9175 *) ac_try_echo=$ac_try;;
9176 esac
9177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9178 $as_echo "$ac_try_echo") >&5
9179 (eval "$ac_compile") 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } && {
9186 test -z "$ac_c_werror_flag" ||
9187 test ! -s conftest.err
9188 } && test -s conftest.$ac_objext; then
9189 :
9190 else
9191 $as_echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9193
9194 ac_enable_autodepend=no
9195 fi
9196
9197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9198 CFLAGS="$SAVE_CFLAGS"
9199 test -f deps.d || ac_enable_autodepend=no
9200 rm -rf deps.d
9201 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9202 $as_echo "$ac_enable_autodepend" >&6; }
9203 fi
9204 if test $ac_enable_autodepend = yes; then
9205
9206 cat >>confdefs.h <<\_ACEOF
9207 #define AUTO_DEPEND 1
9208 _ACEOF
9209
9210 fi
9211 fi
9212
9213 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9214 $as_echo_n "checking for long file names... " >&6; }
9215 if test "${ac_cv_sys_long_file_names+set}" = set; then
9216 $as_echo_n "(cached) " >&6
9217 else
9218 ac_cv_sys_long_file_names=yes
9219 # Test for long file names in all the places we know might matter:
9220 # . the current directory, where building will happen
9221 # $prefix/lib where we will be installing things
9222 # $exec_prefix/lib likewise
9223 # $TMPDIR if set, where it might want to write temporary files
9224 # /tmp where it might want to write temporary files
9225 # /var/tmp likewise
9226 # /usr/tmp likewise
9227 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9228 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9229 # in the usual case where exec_prefix is '${prefix}'.
9230 case $ac_dir in #(
9231 . | /* | ?:[\\/]*) ;; #(
9232 *) continue;;
9233 esac
9234 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9235 ac_xdir=$ac_dir/cf$$
9236 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9237 ac_tf1=$ac_xdir/conftest9012345
9238 ac_tf2=$ac_xdir/conftest9012346
9239 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9240 ac_cv_sys_long_file_names=no
9241 rm -f -r "$ac_xdir" 2>/dev/null
9242 test $ac_cv_sys_long_file_names = no && break
9243 done
9244 fi
9245 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9246 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9247 if test $ac_cv_sys_long_file_names = yes; then
9248
9249 cat >>confdefs.h <<\_ACEOF
9250 #define HAVE_LONG_FILE_NAMES 1
9251 _ACEOF
9252
9253 fi
9254
9255
9256 #### Choose a window system.
9257
9258 { $as_echo "$as_me:$LINENO: checking for X" >&5
9259 $as_echo_n "checking for X... " >&6; }
9260
9261
9262 # Check whether --with-x was given.
9263 if test "${with_x+set}" = set; then
9264 withval=$with_x;
9265 fi
9266
9267 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9268 if test "x$with_x" = xno; then
9269 # The user explicitly disabled X.
9270 have_x=disabled
9271 else
9272 case $x_includes,$x_libraries in #(
9273 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9274 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9275 { (exit 1); exit 1; }; };; #(
9276 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9277 $as_echo_n "(cached) " >&6
9278 else
9279 # One or both of the vars are not set, and there is no cached value.
9280 ac_x_includes=no ac_x_libraries=no
9281 rm -f -r conftest.dir
9282 if mkdir conftest.dir; then
9283 cd conftest.dir
9284 cat >Imakefile <<'_ACEOF'
9285 incroot:
9286 @echo incroot='${INCROOT}'
9287 usrlibdir:
9288 @echo usrlibdir='${USRLIBDIR}'
9289 libdir:
9290 @echo libdir='${LIBDIR}'
9291 _ACEOF
9292 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9293 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9294 for ac_var in incroot usrlibdir libdir; do
9295 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9296 done
9297 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9298 for ac_extension in a so sl dylib la dll; do
9299 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9300 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9301 ac_im_usrlibdir=$ac_im_libdir; break
9302 fi
9303 done
9304 # Screen out bogus values from the imake configuration. They are
9305 # bogus both because they are the default anyway, and because
9306 # using them would break gcc on systems where it needs fixed includes.
9307 case $ac_im_incroot in
9308 /usr/include) ac_x_includes= ;;
9309 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9310 esac
9311 case $ac_im_usrlibdir in
9312 /usr/lib | /lib) ;;
9313 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9314 esac
9315 fi
9316 cd ..
9317 rm -f -r conftest.dir
9318 fi
9319
9320 # Standard set of common directories for X headers.
9321 # Check X11 before X11Rn because it is often a symlink to the current release.
9322 ac_x_header_dirs='
9323 /usr/X11/include
9324 /usr/X11R6/include
9325 /usr/X11R5/include
9326 /usr/X11R4/include
9327
9328 /usr/include/X11
9329 /usr/include/X11R6
9330 /usr/include/X11R5
9331 /usr/include/X11R4
9332
9333 /usr/local/X11/include
9334 /usr/local/X11R6/include
9335 /usr/local/X11R5/include
9336 /usr/local/X11R4/include
9337
9338 /usr/local/include/X11
9339 /usr/local/include/X11R6
9340 /usr/local/include/X11R5
9341 /usr/local/include/X11R4
9342
9343 /usr/X386/include
9344 /usr/x386/include
9345 /usr/XFree86/include/X11
9346
9347 /usr/include
9348 /usr/local/include
9349 /usr/unsupported/include
9350 /usr/athena/include
9351 /usr/local/x11r5/include
9352 /usr/lpp/Xamples/include
9353
9354 /usr/openwin/include
9355 /usr/openwin/share/include'
9356
9357 if test "$ac_x_includes" = no; then
9358 # Guess where to find include files, by looking for Xlib.h.
9359 # First, try using that file with no special directory specified.
9360 cat >conftest.$ac_ext <<_ACEOF
9361 /* confdefs.h. */
9362 _ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9366 #include <X11/Xlib.h>
9367 _ACEOF
9368 if { (ac_try="$ac_cpp conftest.$ac_ext"
9369 case "(($ac_try" in
9370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9371 *) ac_try_echo=$ac_try;;
9372 esac
9373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9374 $as_echo "$ac_try_echo") >&5
9375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9376 ac_status=$?
9377 grep -v '^ *+' conftest.er1 >conftest.err
9378 rm -f conftest.er1
9379 cat conftest.err >&5
9380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); } >/dev/null && {
9382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9383 test ! -s conftest.err
9384 }; then
9385 # We can compile using X headers with no special include directory.
9386 ac_x_includes=
9387 else
9388 $as_echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9390
9391 for ac_dir in $ac_x_header_dirs; do
9392 if test -r "$ac_dir/X11/Xlib.h"; then
9393 ac_x_includes=$ac_dir
9394 break
9395 fi
9396 done
9397 fi
9398
9399 rm -f conftest.err conftest.$ac_ext
9400 fi # $ac_x_includes = no
9401
9402 if test "$ac_x_libraries" = no; then
9403 # Check for the libraries.
9404 # See if we find them without any special options.
9405 # Don't add to $LIBS permanently.
9406 ac_save_LIBS=$LIBS
9407 LIBS="-lX11 $LIBS"
9408 cat >conftest.$ac_ext <<_ACEOF
9409 /* confdefs.h. */
9410 _ACEOF
9411 cat confdefs.h >>conftest.$ac_ext
9412 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h. */
9414 #include <X11/Xlib.h>
9415 int
9416 main ()
9417 {
9418 XrmInitialize ()
9419 ;
9420 return 0;
9421 }
9422 _ACEOF
9423 rm -f conftest.$ac_objext conftest$ac_exeext
9424 if { (ac_try="$ac_link"
9425 case "(($ac_try" in
9426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9427 *) ac_try_echo=$ac_try;;
9428 esac
9429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9430 $as_echo "$ac_try_echo") >&5
9431 (eval "$ac_link") 2>conftest.er1
9432 ac_status=$?
9433 grep -v '^ *+' conftest.er1 >conftest.err
9434 rm -f conftest.er1
9435 cat conftest.err >&5
9436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } && {
9438 test -z "$ac_c_werror_flag" ||
9439 test ! -s conftest.err
9440 } && test -s conftest$ac_exeext && {
9441 test "$cross_compiling" = yes ||
9442 $as_test_x conftest$ac_exeext
9443 }; then
9444 LIBS=$ac_save_LIBS
9445 # We can link X programs with no special library path.
9446 ac_x_libraries=
9447 else
9448 $as_echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9450
9451 LIBS=$ac_save_LIBS
9452 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9453 do
9454 # Don't even attempt the hair of trying to link an X program!
9455 for ac_extension in a so sl dylib la dll; do
9456 if test -r "$ac_dir/libX11.$ac_extension"; then
9457 ac_x_libraries=$ac_dir
9458 break 2
9459 fi
9460 done
9461 done
9462 fi
9463
9464 rm -rf conftest.dSYM
9465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9466 conftest$ac_exeext conftest.$ac_ext
9467 fi # $ac_x_libraries = no
9468
9469 case $ac_x_includes,$ac_x_libraries in #(
9470 no,* | *,no | *\'*)
9471 # Didn't find X, or a directory has "'" in its name.
9472 ac_cv_have_x="have_x=no";; #(
9473 *)
9474 # Record where we found X for the cache.
9475 ac_cv_have_x="have_x=yes\
9476 ac_x_includes='$ac_x_includes'\
9477 ac_x_libraries='$ac_x_libraries'"
9478 esac
9479 fi
9480 ;; #(
9481 *) have_x=yes;;
9482 esac
9483 eval "$ac_cv_have_x"
9484 fi # $with_x != no
9485
9486 if test "$have_x" != yes; then
9487 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9488 $as_echo "$have_x" >&6; }
9489 no_x=yes
9490 else
9491 # If each of the values was on the command line, it overrides each guess.
9492 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9493 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9494 # Update the cache value to reflect the command line values.
9495 ac_cv_have_x="have_x=yes\
9496 ac_x_includes='$x_includes'\
9497 ac_x_libraries='$x_libraries'"
9498 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9499 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9500 fi
9501
9502 if test "$no_x" = yes; then
9503 window_system=none
9504 else
9505 window_system=x11
9506 fi
9507
9508 ## Workaround for bug in autoconf <= 2.62.
9509 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9510 ## No need to do anything special for these standard directories.
9511 ## This is an experiment, take it out if it causes problems.
9512 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9513
9514 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9515
9516 fi
9517
9518 if test "${x_libraries}" != NONE; then
9519 if test -n "${x_libraries}"; then
9520 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9521 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9522 fi
9523 x_default_search_path=""
9524 x_search_path=${x_libraries}
9525 if test -z "${x_search_path}"; then
9526 x_search_path=/usr/lib
9527 fi
9528 for x_library in `echo ${x_search_path}: | \
9529 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9530 x_search_path="\
9531 ${x_library}/X11/%L/%T/%N%C%S:\
9532 ${x_library}/X11/%l/%T/%N%C%S:\
9533 ${x_library}/X11/%T/%N%C%S:\
9534 ${x_library}/X11/%L/%T/%N%S:\
9535 ${x_library}/X11/%l/%T/%N%S:\
9536 ${x_library}/X11/%T/%N%S"
9537 if test x"${x_default_search_path}" = x; then
9538 x_default_search_path=${x_search_path}
9539 else
9540 x_default_search_path="${x_search_path}:${x_default_search_path}"
9541 fi
9542 done
9543 fi
9544 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9545 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9546 fi
9547
9548 if test x"${x_includes}" = x; then
9549 bitmapdir=/usr/include/X11/bitmaps
9550 else
9551 # accumulate include directories that have X11 bitmap subdirectories
9552 bmd_acc="dummyval"
9553 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9554 if test -d "${bmd}/X11/bitmaps"; then
9555 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9556 fi
9557 if test -d "${bmd}/bitmaps"; then
9558 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9559 fi
9560 done
9561 if test ${bmd_acc} != "dummyval"; then
9562 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9563 fi
9564 fi
9565
9566 HAVE_NS=no
9567 NS_IMPL_COCOA=no
9568 NS_IMPL_GNUSTEP=no
9569 tmp_CPPFLAGS="$CPPFLAGS"
9570 tmp_CFLAGS="$CFLAGS"
9571 CPPFLAGS="$CPPFLAGS -x objective-c"
9572 CFLAGS="$CFLAGS -x objective-c"
9573 if test "${with_ns}" != no; then
9574 if test "${opsys}" = darwin; then
9575 NS_IMPL_COCOA=yes
9576 ns_appdir=`pwd`/nextstep/Emacs.app
9577 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9578 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9579 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9580 elif test -f $GNUSTEP_CONFIG_FILE; then
9581 NS_IMPL_GNUSTEP=yes
9582 ns_appdir=`pwd`/nextstep/Emacs.app
9583 ns_appbindir=`pwd`/nextstep/Emacs.app
9584 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9585 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9586 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9587 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9588 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9589 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9590 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9591 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9592 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9593 fi
9594 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9595 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9596 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9597 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9598 $as_echo_n "(cached) " >&6
9599 fi
9600 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9601 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9602 else
9603 # Is the header compilable?
9604 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9605 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9606 cat >conftest.$ac_ext <<_ACEOF
9607 /* confdefs.h. */
9608 _ACEOF
9609 cat confdefs.h >>conftest.$ac_ext
9610 cat >>conftest.$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9612 $ac_includes_default
9613 #include <AppKit/AppKit.h>
9614 _ACEOF
9615 rm -f conftest.$ac_objext
9616 if { (ac_try="$ac_compile"
9617 case "(($ac_try" in
9618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9619 *) ac_try_echo=$ac_try;;
9620 esac
9621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9622 $as_echo "$ac_try_echo") >&5
9623 (eval "$ac_compile") 2>conftest.er1
9624 ac_status=$?
9625 grep -v '^ *+' conftest.er1 >conftest.err
9626 rm -f conftest.er1
9627 cat conftest.err >&5
9628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } && {
9630 test -z "$ac_c_werror_flag" ||
9631 test ! -s conftest.err
9632 } && test -s conftest.$ac_objext; then
9633 ac_header_compiler=yes
9634 else
9635 $as_echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9637
9638 ac_header_compiler=no
9639 fi
9640
9641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9642 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9643 $as_echo "$ac_header_compiler" >&6; }
9644
9645 # Is the header present?
9646 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9647 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9648 cat >conftest.$ac_ext <<_ACEOF
9649 /* confdefs.h. */
9650 _ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 #include <AppKit/AppKit.h>
9655 _ACEOF
9656 if { (ac_try="$ac_cpp conftest.$ac_ext"
9657 case "(($ac_try" in
9658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659 *) ac_try_echo=$ac_try;;
9660 esac
9661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9662 $as_echo "$ac_try_echo") >&5
9663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9664 ac_status=$?
9665 grep -v '^ *+' conftest.er1 >conftest.err
9666 rm -f conftest.er1
9667 cat conftest.err >&5
9668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } >/dev/null && {
9670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9671 test ! -s conftest.err
9672 }; then
9673 ac_header_preproc=yes
9674 else
9675 $as_echo "$as_me: failed program was:" >&5
9676 sed 's/^/| /' conftest.$ac_ext >&5
9677
9678 ac_header_preproc=no
9679 fi
9680
9681 rm -f conftest.err conftest.$ac_ext
9682 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9683 $as_echo "$ac_header_preproc" >&6; }
9684
9685 # So? What about this header?
9686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9687 yes:no: )
9688 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9689 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9690 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9691 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9692 ac_header_preproc=yes
9693 ;;
9694 no:yes:* )
9695 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9696 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9697 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9698 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9699 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9700 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9701 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9702 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9703 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9704 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9705 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9706 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9707
9708 ;;
9709 esac
9710 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9711 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9712 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9713 $as_echo_n "(cached) " >&6
9714 else
9715 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9716 fi
9717 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9718 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9719
9720 fi
9721 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9722 HAVE_NS=yes
9723 else
9724 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9725 files are missing or cannot be compiled." >&5
9726 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9727 files are missing or cannot be compiled." >&2;}
9728 { (exit 1); exit 1; }; }
9729 fi
9730
9731
9732 NS_HAVE_NSINTEGER=yes
9733 cat >conftest.$ac_ext <<_ACEOF
9734 /* confdefs.h. */
9735 _ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h. */
9739 #include <Foundation/NSObjCRuntime.h>
9740 int
9741 main ()
9742 {
9743 NSInteger i;
9744 ;
9745 return 0;
9746 }
9747 _ACEOF
9748 rm -f conftest.$ac_objext
9749 if { (ac_try="$ac_compile"
9750 case "(($ac_try" in
9751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9753 esac
9754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9755 $as_echo "$ac_try_echo") >&5
9756 (eval "$ac_compile") 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } && {
9763 test -z "$ac_c_werror_flag" ||
9764 test ! -s conftest.err
9765 } && test -s conftest.$ac_objext; then
9766 ns_have_nsinteger=yes
9767 else
9768 $as_echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9770
9771 ns_have_nsinteger=no
9772 fi
9773
9774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9775 if test $ns_have_nsinteger = no; then
9776 NS_HAVE_NSINTEGER=no
9777 fi
9778 fi
9779 if test "${HAVE_NS}" = yes; then
9780 window_system=nextstep
9781 with_xft=no
9782 # set up packaging dirs
9783 exec_prefix=${ns_appbindir}
9784 libexecdir=${ns_appbindir}/libexec
9785 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9786 prefix=${ns_appresdir}
9787 fi
9788 fi
9789 CFLAGS="$tmp_CFLAGS"
9790 CPPFLAGS="$tmp_CPPFLAGS"
9791
9792 case "${window_system}" in
9793 x11 )
9794 HAVE_X_WINDOWS=yes
9795 HAVE_X11=yes
9796 case "${with_x_toolkit}" in
9797 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9798 motif ) USE_X_TOOLKIT=MOTIF ;;
9799 gtk ) with_gtk=yes
9800 USE_X_TOOLKIT=none ;;
9801 no ) USE_X_TOOLKIT=none ;;
9802 * ) USE_X_TOOLKIT=maybe ;;
9803 esac
9804 ;;
9805 nextstep | none )
9806 HAVE_X_WINDOWS=no
9807 HAVE_X11=no
9808 USE_X_TOOLKIT=none
9809 ;;
9810 esac
9811
9812 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9813 # Extract the first word of "X", so it can be a program name with args.
9814 set dummy X; ac_word=$2
9815 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9816 $as_echo_n "checking for $ac_word... " >&6; }
9817 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9818 $as_echo_n "(cached) " >&6
9819 else
9820 if test -n "$HAVE_XSERVER"; then
9821 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9822 else
9823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824 for as_dir in $PATH
9825 do
9826 IFS=$as_save_IFS
9827 test -z "$as_dir" && as_dir=.
9828 for ac_exec_ext in '' $ac_executable_extensions; do
9829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9830 ac_cv_prog_HAVE_XSERVER="true"
9831 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9832 break 2
9833 fi
9834 done
9835 done
9836 IFS=$as_save_IFS
9837
9838 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9839 fi
9840 fi
9841 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9842 if test -n "$HAVE_XSERVER"; then
9843 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9844 $as_echo "$HAVE_XSERVER" >&6; }
9845 else
9846 { $as_echo "$as_me:$LINENO: result: no" >&5
9847 $as_echo "no" >&6; }
9848 fi
9849
9850
9851 if test "$HAVE_XSERVER" = true ||
9852 test -n "$DISPLAY" ||
9853 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9854 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9855 were found. You should install the relevant development files for X
9856 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9857 sure you have development files for image handling, i.e.
9858 tiff, gif, jpeg, png and xpm.
9859 If you are sure you want Emacs compiled without X window support, pass
9860 --without-x
9861 to configure." >&5
9862 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9863 were found. You should install the relevant development files for X
9864 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9865 sure you have development files for image handling, i.e.
9866 tiff, gif, jpeg, png and xpm.
9867 If you are sure you want Emacs compiled without X window support, pass
9868 --without-x
9869 to configure." >&2;}
9870 { (exit 1); exit 1; }; }
9871 fi
9872 fi
9873
9874 ### If we're using X11, we should use the X menu package.
9875 HAVE_MENUS=no
9876 case ${HAVE_X11} in
9877 yes ) HAVE_MENUS=yes ;;
9878 esac
9879
9880 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9881 # Assume not, until told otherwise.
9882 GNU_MALLOC=yes
9883 doug_lea_malloc=yes
9884 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9885 $as_echo_n "checking for malloc_get_state... " >&6; }
9886 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9887 $as_echo_n "(cached) " >&6
9888 else
9889 cat >conftest.$ac_ext <<_ACEOF
9890 /* confdefs.h. */
9891 _ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h. */
9895 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9897 #define malloc_get_state innocuous_malloc_get_state
9898
9899 /* System header to define __stub macros and hopefully few prototypes,
9900 which can conflict with char malloc_get_state (); below.
9901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9902 <limits.h> exists even on freestanding compilers. */
9903
9904 #ifdef __STDC__
9905 # include <limits.h>
9906 #else
9907 # include <assert.h>
9908 #endif
9909
9910 #undef malloc_get_state
9911
9912 /* Override any GCC internal prototype to avoid an error.
9913 Use char because int might match the return type of a GCC
9914 builtin and then its argument prototype would still apply. */
9915 #ifdef __cplusplus
9916 extern "C"
9917 #endif
9918 char malloc_get_state ();
9919 /* The GNU C library defines this for functions which it implements
9920 to always fail with ENOSYS. Some functions are actually named
9921 something starting with __ and the normal name is an alias. */
9922 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9923 choke me
9924 #endif
9925
9926 int
9927 main ()
9928 {
9929 return malloc_get_state ();
9930 ;
9931 return 0;
9932 }
9933 _ACEOF
9934 rm -f conftest.$ac_objext conftest$ac_exeext
9935 if { (ac_try="$ac_link"
9936 case "(($ac_try" in
9937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9938 *) ac_try_echo=$ac_try;;
9939 esac
9940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9941 $as_echo "$ac_try_echo") >&5
9942 (eval "$ac_link") 2>conftest.er1
9943 ac_status=$?
9944 grep -v '^ *+' conftest.er1 >conftest.err
9945 rm -f conftest.er1
9946 cat conftest.err >&5
9947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } && {
9949 test -z "$ac_c_werror_flag" ||
9950 test ! -s conftest.err
9951 } && test -s conftest$ac_exeext && {
9952 test "$cross_compiling" = yes ||
9953 $as_test_x conftest$ac_exeext
9954 }; then
9955 ac_cv_func_malloc_get_state=yes
9956 else
9957 $as_echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9959
9960 ac_cv_func_malloc_get_state=no
9961 fi
9962
9963 rm -rf conftest.dSYM
9964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9965 conftest$ac_exeext conftest.$ac_ext
9966 fi
9967 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9968 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
9969 if test $ac_cv_func_malloc_get_state = yes; then
9970 :
9971 else
9972 doug_lea_malloc=no
9973 fi
9974
9975 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9976 $as_echo_n "checking for malloc_set_state... " >&6; }
9977 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9978 $as_echo_n "(cached) " >&6
9979 else
9980 cat >conftest.$ac_ext <<_ACEOF
9981 /* confdefs.h. */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9988 #define malloc_set_state innocuous_malloc_set_state
9989
9990 /* System header to define __stub macros and hopefully few prototypes,
9991 which can conflict with char malloc_set_state (); below.
9992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9993 <limits.h> exists even on freestanding compilers. */
9994
9995 #ifdef __STDC__
9996 # include <limits.h>
9997 #else
9998 # include <assert.h>
9999 #endif
10000
10001 #undef malloc_set_state
10002
10003 /* Override any GCC internal prototype to avoid an error.
10004 Use char because int might match the return type of a GCC
10005 builtin and then its argument prototype would still apply. */
10006 #ifdef __cplusplus
10007 extern "C"
10008 #endif
10009 char malloc_set_state ();
10010 /* The GNU C library defines this for functions which it implements
10011 to always fail with ENOSYS. Some functions are actually named
10012 something starting with __ and the normal name is an alias. */
10013 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10014 choke me
10015 #endif
10016
10017 int
10018 main ()
10019 {
10020 return malloc_set_state ();
10021 ;
10022 return 0;
10023 }
10024 _ACEOF
10025 rm -f conftest.$ac_objext conftest$ac_exeext
10026 if { (ac_try="$ac_link"
10027 case "(($ac_try" in
10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10030 esac
10031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10032 $as_echo "$ac_try_echo") >&5
10033 (eval "$ac_link") 2>conftest.er1
10034 ac_status=$?
10035 grep -v '^ *+' conftest.er1 >conftest.err
10036 rm -f conftest.er1
10037 cat conftest.err >&5
10038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } && {
10040 test -z "$ac_c_werror_flag" ||
10041 test ! -s conftest.err
10042 } && test -s conftest$ac_exeext && {
10043 test "$cross_compiling" = yes ||
10044 $as_test_x conftest$ac_exeext
10045 }; then
10046 ac_cv_func_malloc_set_state=yes
10047 else
10048 $as_echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10050
10051 ac_cv_func_malloc_set_state=no
10052 fi
10053
10054 rm -rf conftest.dSYM
10055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10056 conftest$ac_exeext conftest.$ac_ext
10057 fi
10058 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10059 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10060 if test $ac_cv_func_malloc_set_state = yes; then
10061 :
10062 else
10063 doug_lea_malloc=no
10064 fi
10065
10066 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10067 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10068 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10069 $as_echo_n "(cached) " >&6
10070 else
10071 cat >conftest.$ac_ext <<_ACEOF
10072 /* confdefs.h. */
10073 _ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h. */
10077 extern void (* __after_morecore_hook)();
10078 int
10079 main ()
10080 {
10081 __after_morecore_hook = 0
10082 ;
10083 return 0;
10084 }
10085 _ACEOF
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (ac_try="$ac_link"
10088 case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10091 esac
10092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10093 $as_echo "$ac_try_echo") >&5
10094 (eval "$ac_link") 2>conftest.er1
10095 ac_status=$?
10096 grep -v '^ *+' conftest.er1 >conftest.err
10097 rm -f conftest.er1
10098 cat conftest.err >&5
10099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } && {
10101 test -z "$ac_c_werror_flag" ||
10102 test ! -s conftest.err
10103 } && test -s conftest$ac_exeext && {
10104 test "$cross_compiling" = yes ||
10105 $as_test_x conftest$ac_exeext
10106 }; then
10107 emacs_cv_var___after_morecore_hook=yes
10108 else
10109 $as_echo "$as_me: failed program was:" >&5
10110 sed 's/^/| /' conftest.$ac_ext >&5
10111
10112 emacs_cv_var___after_morecore_hook=no
10113 fi
10114
10115 rm -rf conftest.dSYM
10116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10117 conftest$ac_exeext conftest.$ac_ext
10118 fi
10119 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10120 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10121 if test $emacs_cv_var___after_morecore_hook = no; then
10122 doug_lea_malloc=no
10123 fi
10124 if test "${system_malloc}" = "yes"; then
10125 GNU_MALLOC=no
10126 GNU_MALLOC_reason="
10127 (The GNU allocators don't work with this system configuration.)"
10128 fi
10129 if test "$doug_lea_malloc" = "yes" ; then
10130 if test "$GNU_MALLOC" = yes ; then
10131 GNU_MALLOC_reason="
10132 (Using Doug Lea's new malloc from the GNU C Library.)"
10133 fi
10134
10135 cat >>confdefs.h <<\_ACEOF
10136 #define DOUG_LEA_MALLOC 1
10137 _ACEOF
10138
10139 fi
10140
10141 if test x"${REL_ALLOC}" = x; then
10142 REL_ALLOC=${GNU_MALLOC}
10143 fi
10144
10145
10146
10147
10148 for ac_header in stdlib.h unistd.h
10149 do
10150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10152 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10153 $as_echo_n "checking for $ac_header... " >&6; }
10154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10155 $as_echo_n "(cached) " >&6
10156 fi
10157 ac_res=`eval 'as_val=${'$as_ac_Header'}
10158 $as_echo "$as_val"'`
10159 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10160 $as_echo "$ac_res" >&6; }
10161 else
10162 # Is the header compilable?
10163 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10164 $as_echo_n "checking $ac_header usability... " >&6; }
10165 cat >conftest.$ac_ext <<_ACEOF
10166 /* confdefs.h. */
10167 _ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h. */
10171 $ac_includes_default
10172 #include <$ac_header>
10173 _ACEOF
10174 rm -f conftest.$ac_objext
10175 if { (ac_try="$ac_compile"
10176 case "(($ac_try" in
10177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10178 *) ac_try_echo=$ac_try;;
10179 esac
10180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10181 $as_echo "$ac_try_echo") >&5
10182 (eval "$ac_compile") 2>conftest.er1
10183 ac_status=$?
10184 grep -v '^ *+' conftest.er1 >conftest.err
10185 rm -f conftest.er1
10186 cat conftest.err >&5
10187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); } && {
10189 test -z "$ac_c_werror_flag" ||
10190 test ! -s conftest.err
10191 } && test -s conftest.$ac_objext; then
10192 ac_header_compiler=yes
10193 else
10194 $as_echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10196
10197 ac_header_compiler=no
10198 fi
10199
10200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10201 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10202 $as_echo "$ac_header_compiler" >&6; }
10203
10204 # Is the header present?
10205 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10206 $as_echo_n "checking $ac_header presence... " >&6; }
10207 cat >conftest.$ac_ext <<_ACEOF
10208 /* confdefs.h. */
10209 _ACEOF
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h. */
10213 #include <$ac_header>
10214 _ACEOF
10215 if { (ac_try="$ac_cpp conftest.$ac_ext"
10216 case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10219 esac
10220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10221 $as_echo "$ac_try_echo") >&5
10222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10223 ac_status=$?
10224 grep -v '^ *+' conftest.er1 >conftest.err
10225 rm -f conftest.er1
10226 cat conftest.err >&5
10227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); } >/dev/null && {
10229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10230 test ! -s conftest.err
10231 }; then
10232 ac_header_preproc=yes
10233 else
10234 $as_echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10236
10237 ac_header_preproc=no
10238 fi
10239
10240 rm -f conftest.err conftest.$ac_ext
10241 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10242 $as_echo "$ac_header_preproc" >&6; }
10243
10244 # So? What about this header?
10245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10246 yes:no: )
10247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10248 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10250 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10251 ac_header_preproc=yes
10252 ;;
10253 no:yes:* )
10254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10255 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10257 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10259 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10261 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10263 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10265 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10266
10267 ;;
10268 esac
10269 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10270 $as_echo_n "checking for $ac_header... " >&6; }
10271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10272 $as_echo_n "(cached) " >&6
10273 else
10274 eval "$as_ac_Header=\$ac_header_preproc"
10275 fi
10276 ac_res=`eval 'as_val=${'$as_ac_Header'}
10277 $as_echo "$as_val"'`
10278 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10279 $as_echo "$ac_res" >&6; }
10280
10281 fi
10282 if test `eval 'as_val=${'$as_ac_Header'}
10283 $as_echo "$as_val"'` = yes; then
10284 cat >>confdefs.h <<_ACEOF
10285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10286 _ACEOF
10287
10288 fi
10289
10290 done
10291
10292
10293 for ac_func in getpagesize
10294 do
10295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10296 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10297 $as_echo_n "checking for $ac_func... " >&6; }
10298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10299 $as_echo_n "(cached) " >&6
10300 else
10301 cat >conftest.$ac_ext <<_ACEOF
10302 /* confdefs.h. */
10303 _ACEOF
10304 cat confdefs.h >>conftest.$ac_ext
10305 cat >>conftest.$ac_ext <<_ACEOF
10306 /* end confdefs.h. */
10307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10309 #define $ac_func innocuous_$ac_func
10310
10311 /* System header to define __stub macros and hopefully few prototypes,
10312 which can conflict with char $ac_func (); below.
10313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10314 <limits.h> exists even on freestanding compilers. */
10315
10316 #ifdef __STDC__
10317 # include <limits.h>
10318 #else
10319 # include <assert.h>
10320 #endif
10321
10322 #undef $ac_func
10323
10324 /* Override any GCC internal prototype to avoid an error.
10325 Use char because int might match the return type of a GCC
10326 builtin and then its argument prototype would still apply. */
10327 #ifdef __cplusplus
10328 extern "C"
10329 #endif
10330 char $ac_func ();
10331 /* The GNU C library defines this for functions which it implements
10332 to always fail with ENOSYS. Some functions are actually named
10333 something starting with __ and the normal name is an alias. */
10334 #if defined __stub_$ac_func || defined __stub___$ac_func
10335 choke me
10336 #endif
10337
10338 int
10339 main ()
10340 {
10341 return $ac_func ();
10342 ;
10343 return 0;
10344 }
10345 _ACEOF
10346 rm -f conftest.$ac_objext conftest$ac_exeext
10347 if { (ac_try="$ac_link"
10348 case "(($ac_try" in
10349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10350 *) ac_try_echo=$ac_try;;
10351 esac
10352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10353 $as_echo "$ac_try_echo") >&5
10354 (eval "$ac_link") 2>conftest.er1
10355 ac_status=$?
10356 grep -v '^ *+' conftest.er1 >conftest.err
10357 rm -f conftest.er1
10358 cat conftest.err >&5
10359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } && {
10361 test -z "$ac_c_werror_flag" ||
10362 test ! -s conftest.err
10363 } && test -s conftest$ac_exeext && {
10364 test "$cross_compiling" = yes ||
10365 $as_test_x conftest$ac_exeext
10366 }; then
10367 eval "$as_ac_var=yes"
10368 else
10369 $as_echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10371
10372 eval "$as_ac_var=no"
10373 fi
10374
10375 rm -rf conftest.dSYM
10376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10377 conftest$ac_exeext conftest.$ac_ext
10378 fi
10379 ac_res=`eval 'as_val=${'$as_ac_var'}
10380 $as_echo "$as_val"'`
10381 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10382 $as_echo "$ac_res" >&6; }
10383 if test `eval 'as_val=${'$as_ac_var'}
10384 $as_echo "$as_val"'` = yes; then
10385 cat >>confdefs.h <<_ACEOF
10386 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10387 _ACEOF
10388
10389 fi
10390 done
10391
10392 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10393 $as_echo_n "checking for working mmap... " >&6; }
10394 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10395 $as_echo_n "(cached) " >&6
10396 else
10397 if test "$cross_compiling" = yes; then
10398 ac_cv_func_mmap_fixed_mapped=no
10399 else
10400 cat >conftest.$ac_ext <<_ACEOF
10401 /* confdefs.h. */
10402 _ACEOF
10403 cat confdefs.h >>conftest.$ac_ext
10404 cat >>conftest.$ac_ext <<_ACEOF
10405 /* end confdefs.h. */
10406 $ac_includes_default
10407 /* malloc might have been renamed as rpl_malloc. */
10408 #undef malloc
10409
10410 /* Thanks to Mike Haertel and Jim Avera for this test.
10411 Here is a matrix of mmap possibilities:
10412 mmap private not fixed
10413 mmap private fixed at somewhere currently unmapped
10414 mmap private fixed at somewhere already mapped
10415 mmap shared not fixed
10416 mmap shared fixed at somewhere currently unmapped
10417 mmap shared fixed at somewhere already mapped
10418 For private mappings, we should verify that changes cannot be read()
10419 back from the file, nor mmap's back from the file at a different
10420 address. (There have been systems where private was not correctly
10421 implemented like the infamous i386 svr4.0, and systems where the
10422 VM page cache was not coherent with the file system buffer cache
10423 like early versions of FreeBSD and possibly contemporary NetBSD.)
10424 For shared mappings, we should conversely verify that changes get
10425 propagated back to all the places they're supposed to be.
10426
10427 Grep wants private fixed already mapped.
10428 The main things grep needs to know about mmap are:
10429 * does it exist and is it safe to write into the mmap'd area
10430 * how to use it (BSD variants) */
10431
10432 #include <fcntl.h>
10433 #include <sys/mman.h>
10434
10435 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10436 char *malloc ();
10437 #endif
10438
10439 /* This mess was copied from the GNU getpagesize.h. */
10440 #ifndef HAVE_GETPAGESIZE
10441 /* Assume that all systems that can run configure have sys/param.h. */
10442 # ifndef HAVE_SYS_PARAM_H
10443 # define HAVE_SYS_PARAM_H 1
10444 # endif
10445
10446 # ifdef _SC_PAGESIZE
10447 # define getpagesize() sysconf(_SC_PAGESIZE)
10448 # else /* no _SC_PAGESIZE */
10449 # ifdef HAVE_SYS_PARAM_H
10450 # include <sys/param.h>
10451 # ifdef EXEC_PAGESIZE
10452 # define getpagesize() EXEC_PAGESIZE
10453 # else /* no EXEC_PAGESIZE */
10454 # ifdef NBPG
10455 # define getpagesize() NBPG * CLSIZE
10456 # ifndef CLSIZE
10457 # define CLSIZE 1
10458 # endif /* no CLSIZE */
10459 # else /* no NBPG */
10460 # ifdef NBPC
10461 # define getpagesize() NBPC
10462 # else /* no NBPC */
10463 # ifdef PAGESIZE
10464 # define getpagesize() PAGESIZE
10465 # endif /* PAGESIZE */
10466 # endif /* no NBPC */
10467 # endif /* no NBPG */
10468 # endif /* no EXEC_PAGESIZE */
10469 # else /* no HAVE_SYS_PARAM_H */
10470 # define getpagesize() 8192 /* punt totally */
10471 # endif /* no HAVE_SYS_PARAM_H */
10472 # endif /* no _SC_PAGESIZE */
10473
10474 #endif /* no HAVE_GETPAGESIZE */
10475
10476 int
10477 main ()
10478 {
10479 char *data, *data2, *data3;
10480 int i, pagesize;
10481 int fd;
10482
10483 pagesize = getpagesize ();
10484
10485 /* First, make a file with some known garbage in it. */
10486 data = (char *) malloc (pagesize);
10487 if (!data)
10488 return 1;
10489 for (i = 0; i < pagesize; ++i)
10490 *(data + i) = rand ();
10491 umask (0);
10492 fd = creat ("conftest.mmap", 0600);
10493 if (fd < 0)
10494 return 1;
10495 if (write (fd, data, pagesize) != pagesize)
10496 return 1;
10497 close (fd);
10498
10499 /* Next, try to mmap the file at a fixed address which already has
10500 something else allocated at it. If we can, also make sure that
10501 we see the same garbage. */
10502 fd = open ("conftest.mmap", O_RDWR);
10503 if (fd < 0)
10504 return 1;
10505 data2 = (char *) malloc (2 * pagesize);
10506 if (!data2)
10507 return 1;
10508 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10509 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10510 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10511 return 1;
10512 for (i = 0; i < pagesize; ++i)
10513 if (*(data + i) != *(data2 + i))
10514 return 1;
10515
10516 /* Finally, make sure that changes to the mapped area do not
10517 percolate back to the file as seen by read(). (This is a bug on
10518 some variants of i386 svr4.0.) */
10519 for (i = 0; i < pagesize; ++i)
10520 *(data2 + i) = *(data2 + i) + 1;
10521 data3 = (char *) malloc (pagesize);
10522 if (!data3)
10523 return 1;
10524 if (read (fd, data3, pagesize) != pagesize)
10525 return 1;
10526 for (i = 0; i < pagesize; ++i)
10527 if (*(data + i) != *(data3 + i))
10528 return 1;
10529 close (fd);
10530 return 0;
10531 }
10532 _ACEOF
10533 rm -f conftest$ac_exeext
10534 if { (ac_try="$ac_link"
10535 case "(($ac_try" in
10536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537 *) ac_try_echo=$ac_try;;
10538 esac
10539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10540 $as_echo "$ac_try_echo") >&5
10541 (eval "$ac_link") 2>&5
10542 ac_status=$?
10543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10545 { (case "(($ac_try" in
10546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10548 esac
10549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10550 $as_echo "$ac_try_echo") >&5
10551 (eval "$ac_try") 2>&5
10552 ac_status=$?
10553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; }; then
10555 ac_cv_func_mmap_fixed_mapped=yes
10556 else
10557 $as_echo "$as_me: program exited with status $ac_status" >&5
10558 $as_echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10560
10561 ( exit $ac_status )
10562 ac_cv_func_mmap_fixed_mapped=no
10563 fi
10564 rm -rf conftest.dSYM
10565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10566 fi
10567
10568
10569 fi
10570 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10571 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10572 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10573
10574 cat >>confdefs.h <<\_ACEOF
10575 #define HAVE_MMAP 1
10576 _ACEOF
10577
10578 fi
10579 rm -f conftest.mmap
10580
10581 if test $use_mmap_for_buffers = yes; then
10582 REL_ALLOC=no
10583 fi
10584
10585 LIBS="$libsrc_libs $LIBS"
10586
10587
10588 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10589 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10590 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10591 $as_echo_n "(cached) " >&6
10592 else
10593 ac_check_lib_save_LIBS=$LIBS
10594 LIBS="-ldnet $LIBS"
10595 cat >conftest.$ac_ext <<_ACEOF
10596 /* confdefs.h. */
10597 _ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10601
10602 /* Override any GCC internal prototype to avoid an error.
10603 Use char because int might match the return type of a GCC
10604 builtin and then its argument prototype would still apply. */
10605 #ifdef __cplusplus
10606 extern "C"
10607 #endif
10608 char dnet_ntoa ();
10609 int
10610 main ()
10611 {
10612 return dnet_ntoa ();
10613 ;
10614 return 0;
10615 }
10616 _ACEOF
10617 rm -f conftest.$ac_objext conftest$ac_exeext
10618 if { (ac_try="$ac_link"
10619 case "(($ac_try" in
10620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10621 *) ac_try_echo=$ac_try;;
10622 esac
10623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10624 $as_echo "$ac_try_echo") >&5
10625 (eval "$ac_link") 2>conftest.er1
10626 ac_status=$?
10627 grep -v '^ *+' conftest.er1 >conftest.err
10628 rm -f conftest.er1
10629 cat conftest.err >&5
10630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } && {
10632 test -z "$ac_c_werror_flag" ||
10633 test ! -s conftest.err
10634 } && test -s conftest$ac_exeext && {
10635 test "$cross_compiling" = yes ||
10636 $as_test_x conftest$ac_exeext
10637 }; then
10638 ac_cv_lib_dnet_dnet_ntoa=yes
10639 else
10640 $as_echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10642
10643 ac_cv_lib_dnet_dnet_ntoa=no
10644 fi
10645
10646 rm -rf conftest.dSYM
10647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10648 conftest$ac_exeext conftest.$ac_ext
10649 LIBS=$ac_check_lib_save_LIBS
10650 fi
10651 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10652 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10653 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10654 cat >>confdefs.h <<_ACEOF
10655 #define HAVE_LIBDNET 1
10656 _ACEOF
10657
10658 LIBS="-ldnet $LIBS"
10659
10660 fi
10661
10662
10663 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10664 $as_echo_n "checking for main in -lXbsd... " >&6; }
10665 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10666 $as_echo_n "(cached) " >&6
10667 else
10668 ac_check_lib_save_LIBS=$LIBS
10669 LIBS="-lXbsd $LIBS"
10670 cat >conftest.$ac_ext <<_ACEOF
10671 /* confdefs.h. */
10672 _ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h. */
10676
10677
10678 int
10679 main ()
10680 {
10681 return main ();
10682 ;
10683 return 0;
10684 }
10685 _ACEOF
10686 rm -f conftest.$ac_objext conftest$ac_exeext
10687 if { (ac_try="$ac_link"
10688 case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10691 esac
10692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10693 $as_echo "$ac_try_echo") >&5
10694 (eval "$ac_link") 2>conftest.er1
10695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
10699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } && {
10701 test -z "$ac_c_werror_flag" ||
10702 test ! -s conftest.err
10703 } && test -s conftest$ac_exeext && {
10704 test "$cross_compiling" = yes ||
10705 $as_test_x conftest$ac_exeext
10706 }; then
10707 ac_cv_lib_Xbsd_main=yes
10708 else
10709 $as_echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10711
10712 ac_cv_lib_Xbsd_main=no
10713 fi
10714
10715 rm -rf conftest.dSYM
10716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10717 conftest$ac_exeext conftest.$ac_ext
10718 LIBS=$ac_check_lib_save_LIBS
10719 fi
10720 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10721 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10722 if test $ac_cv_lib_Xbsd_main = yes; then
10723 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10724 fi
10725
10726
10727
10728 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10729 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10730 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10731 $as_echo_n "(cached) " >&6
10732 else
10733 ac_check_lib_save_LIBS=$LIBS
10734 LIBS="-lpthreads $LIBS"
10735 cat >conftest.$ac_ext <<_ACEOF
10736 /* confdefs.h. */
10737 _ACEOF
10738 cat confdefs.h >>conftest.$ac_ext
10739 cat >>conftest.$ac_ext <<_ACEOF
10740 /* end confdefs.h. */
10741
10742 /* Override any GCC internal prototype to avoid an error.
10743 Use char because int might match the return type of a GCC
10744 builtin and then its argument prototype would still apply. */
10745 #ifdef __cplusplus
10746 extern "C"
10747 #endif
10748 char cma_open ();
10749 int
10750 main ()
10751 {
10752 return cma_open ();
10753 ;
10754 return 0;
10755 }
10756 _ACEOF
10757 rm -f conftest.$ac_objext conftest$ac_exeext
10758 if { (ac_try="$ac_link"
10759 case "(($ac_try" in
10760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761 *) ac_try_echo=$ac_try;;
10762 esac
10763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10764 $as_echo "$ac_try_echo") >&5
10765 (eval "$ac_link") 2>conftest.er1
10766 ac_status=$?
10767 grep -v '^ *+' conftest.er1 >conftest.err
10768 rm -f conftest.er1
10769 cat conftest.err >&5
10770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } && {
10772 test -z "$ac_c_werror_flag" ||
10773 test ! -s conftest.err
10774 } && test -s conftest$ac_exeext && {
10775 test "$cross_compiling" = yes ||
10776 $as_test_x conftest$ac_exeext
10777 }; then
10778 ac_cv_lib_pthreads_cma_open=yes
10779 else
10780 $as_echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10782
10783 ac_cv_lib_pthreads_cma_open=no
10784 fi
10785
10786 rm -rf conftest.dSYM
10787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10788 conftest$ac_exeext conftest.$ac_ext
10789 LIBS=$ac_check_lib_save_LIBS
10790 fi
10791 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10792 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10793 if test $ac_cv_lib_pthreads_cma_open = yes; then
10794 cat >>confdefs.h <<_ACEOF
10795 #define HAVE_LIBPTHREADS 1
10796 _ACEOF
10797
10798 LIBS="-lpthreads $LIBS"
10799
10800 fi
10801
10802
10803
10804 case ${host_os} in
10805 aix*)
10806 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10807 $as_echo_n "checking for -bbigtoc option... " >&6; }
10808 if test "${gdb_cv_bigtoc+set}" = set; then
10809 $as_echo_n "(cached) " >&6
10810 else
10811
10812 case $GCC in
10813 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10814 *) gdb_cv_bigtoc=-bbigtoc ;;
10815 esac
10816
10817 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10818 cat >conftest.$ac_ext <<_ACEOF
10819 /* confdefs.h. */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10824
10825 int
10826 main ()
10827 {
10828 int i;
10829 ;
10830 return 0;
10831 }
10832 _ACEOF
10833 rm -f conftest.$ac_objext conftest$ac_exeext
10834 if { (ac_try="$ac_link"
10835 case "(($ac_try" in
10836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837 *) ac_try_echo=$ac_try;;
10838 esac
10839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10840 $as_echo "$ac_try_echo") >&5
10841 (eval "$ac_link") 2>conftest.er1
10842 ac_status=$?
10843 grep -v '^ *+' conftest.er1 >conftest.err
10844 rm -f conftest.er1
10845 cat conftest.err >&5
10846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } && {
10848 test -z "$ac_c_werror_flag" ||
10849 test ! -s conftest.err
10850 } && test -s conftest$ac_exeext && {
10851 test "$cross_compiling" = yes ||
10852 $as_test_x conftest$ac_exeext
10853 }; then
10854 :
10855 else
10856 $as_echo "$as_me: failed program was:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10858
10859 gdb_cv_bigtoc=
10860 fi
10861
10862 rm -rf conftest.dSYM
10863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10864 conftest$ac_exeext conftest.$ac_ext
10865
10866 fi
10867 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10868 $as_echo "$gdb_cv_bigtoc" >&6; }
10869 ;;
10870 esac
10871
10872 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10873 # used for the tests that follow. We set them back to REAL_CFLAGS and
10874 # REAL_CPPFLAGS later on.
10875
10876 REAL_CPPFLAGS="$CPPFLAGS"
10877
10878 if test "${HAVE_X11}" = "yes"; then
10879 DEFS="$C_SWITCH_X_SITE $DEFS"
10880 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10881 LIBS="$LIBX $LIBS"
10882 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10883 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10884
10885 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10886 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10887 # but it's more convenient here to set LD_RUN_PATH
10888 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10889 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10890 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10891 export LD_RUN_PATH
10892 fi
10893
10894 if test "${opsys}" = "gnu-linux"; then
10895 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10896 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10897 cat >conftest.$ac_ext <<_ACEOF
10898 /* confdefs.h. */
10899 _ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h. */
10903
10904 int
10905 main ()
10906 {
10907 XOpenDisplay ("foo");
10908 ;
10909 return 0;
10910 }
10911 _ACEOF
10912 rm -f conftest.$ac_objext conftest$ac_exeext
10913 if { (ac_try="$ac_link"
10914 case "(($ac_try" in
10915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10916 *) ac_try_echo=$ac_try;;
10917 esac
10918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10919 $as_echo "$ac_try_echo") >&5
10920 (eval "$ac_link") 2>conftest.er1
10921 ac_status=$?
10922 grep -v '^ *+' conftest.er1 >conftest.err
10923 rm -f conftest.er1
10924 cat conftest.err >&5
10925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } && {
10927 test -z "$ac_c_werror_flag" ||
10928 test ! -s conftest.err
10929 } && test -s conftest$ac_exeext && {
10930 test "$cross_compiling" = yes ||
10931 $as_test_x conftest$ac_exeext
10932 }; then
10933 xlinux_first_failure=no
10934 else
10935 $as_echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10937
10938 xlinux_first_failure=yes
10939 fi
10940
10941 rm -rf conftest.dSYM
10942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10943 conftest$ac_exeext conftest.$ac_ext
10944 if test "${xlinux_first_failure}" = "yes"; then
10945 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10946 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10947 OLD_CPPFLAGS="$CPPFLAGS"
10948 OLD_LIBS="$LIBS"
10949 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10950 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10951 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10952 LIBS="$LIBS -b i486-linuxaout"
10953 cat >conftest.$ac_ext <<_ACEOF
10954 /* confdefs.h. */
10955 _ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10959
10960 int
10961 main ()
10962 {
10963 XOpenDisplay ("foo");
10964 ;
10965 return 0;
10966 }
10967 _ACEOF
10968 rm -f conftest.$ac_objext conftest$ac_exeext
10969 if { (ac_try="$ac_link"
10970 case "(($ac_try" in
10971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972 *) ac_try_echo=$ac_try;;
10973 esac
10974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10975 $as_echo "$ac_try_echo") >&5
10976 (eval "$ac_link") 2>conftest.er1
10977 ac_status=$?
10978 grep -v '^ *+' conftest.er1 >conftest.err
10979 rm -f conftest.er1
10980 cat conftest.err >&5
10981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } && {
10983 test -z "$ac_c_werror_flag" ||
10984 test ! -s conftest.err
10985 } && test -s conftest$ac_exeext && {
10986 test "$cross_compiling" = yes ||
10987 $as_test_x conftest$ac_exeext
10988 }; then
10989 xlinux_second_failure=no
10990 else
10991 $as_echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10993
10994 xlinux_second_failure=yes
10995 fi
10996
10997 rm -rf conftest.dSYM
10998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10999 conftest$ac_exeext conftest.$ac_ext
11000 if test "${xlinux_second_failure}" = "yes"; then
11001 # If we get the same failure with -b, there is no use adding -b.
11002 # So take it out. This plays safe.
11003 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11004 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11005 CPPFLAGS="$OLD_CPPFLAGS"
11006 LIBS="$OLD_LIBS"
11007 { $as_echo "$as_me:$LINENO: result: no" >&5
11008 $as_echo "no" >&6; }
11009 else
11010 { $as_echo "$as_me:$LINENO: result: yes" >&5
11011 $as_echo "yes" >&6; }
11012 fi
11013 else
11014 { $as_echo "$as_me:$LINENO: result: no" >&5
11015 $as_echo "no" >&6; }
11016 fi
11017 fi
11018
11019 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11020 # header files included from there.
11021 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11022 $as_echo_n "checking for Xkb... " >&6; }
11023 cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h. */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 #include <X11/Xlib.h>
11030 #include <X11/XKBlib.h>
11031 int
11032 main ()
11033 {
11034 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11035 ;
11036 return 0;
11037 }
11038 _ACEOF
11039 rm -f conftest.$ac_objext conftest$ac_exeext
11040 if { (ac_try="$ac_link"
11041 case "(($ac_try" in
11042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043 *) ac_try_echo=$ac_try;;
11044 esac
11045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11046 $as_echo "$ac_try_echo") >&5
11047 (eval "$ac_link") 2>conftest.er1
11048 ac_status=$?
11049 grep -v '^ *+' conftest.er1 >conftest.err
11050 rm -f conftest.er1
11051 cat conftest.err >&5
11052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } && {
11054 test -z "$ac_c_werror_flag" ||
11055 test ! -s conftest.err
11056 } && test -s conftest$ac_exeext && {
11057 test "$cross_compiling" = yes ||
11058 $as_test_x conftest$ac_exeext
11059 }; then
11060 emacs_xkb=yes
11061 else
11062 $as_echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11064
11065 emacs_xkb=no
11066 fi
11067
11068 rm -rf conftest.dSYM
11069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11070 conftest$ac_exeext conftest.$ac_ext
11071 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11072 $as_echo "$emacs_xkb" >&6; }
11073 if test $emacs_xkb = yes; then
11074
11075 cat >>confdefs.h <<\_ACEOF
11076 #define HAVE_XKBGETKEYBOARD 1
11077 _ACEOF
11078
11079 fi
11080
11081
11082
11083
11084
11085 for ac_func in XrmSetDatabase XScreenResourceString \
11086 XScreenNumberOfScreen XSetWMProtocols
11087 do
11088 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11089 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11090 $as_echo_n "checking for $ac_func... " >&6; }
11091 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11092 $as_echo_n "(cached) " >&6
11093 else
11094 cat >conftest.$ac_ext <<_ACEOF
11095 /* confdefs.h. */
11096 _ACEOF
11097 cat confdefs.h >>conftest.$ac_ext
11098 cat >>conftest.$ac_ext <<_ACEOF
11099 /* end confdefs.h. */
11100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11102 #define $ac_func innocuous_$ac_func
11103
11104 /* System header to define __stub macros and hopefully few prototypes,
11105 which can conflict with char $ac_func (); below.
11106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11107 <limits.h> exists even on freestanding compilers. */
11108
11109 #ifdef __STDC__
11110 # include <limits.h>
11111 #else
11112 # include <assert.h>
11113 #endif
11114
11115 #undef $ac_func
11116
11117 /* Override any GCC internal prototype to avoid an error.
11118 Use char because int might match the return type of a GCC
11119 builtin and then its argument prototype would still apply. */
11120 #ifdef __cplusplus
11121 extern "C"
11122 #endif
11123 char $ac_func ();
11124 /* The GNU C library defines this for functions which it implements
11125 to always fail with ENOSYS. Some functions are actually named
11126 something starting with __ and the normal name is an alias. */
11127 #if defined __stub_$ac_func || defined __stub___$ac_func
11128 choke me
11129 #endif
11130
11131 int
11132 main ()
11133 {
11134 return $ac_func ();
11135 ;
11136 return 0;
11137 }
11138 _ACEOF
11139 rm -f conftest.$ac_objext conftest$ac_exeext
11140 if { (ac_try="$ac_link"
11141 case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144 esac
11145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11146 $as_echo "$ac_try_echo") >&5
11147 (eval "$ac_link") 2>conftest.er1
11148 ac_status=$?
11149 grep -v '^ *+' conftest.er1 >conftest.err
11150 rm -f conftest.er1
11151 cat conftest.err >&5
11152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } && {
11154 test -z "$ac_c_werror_flag" ||
11155 test ! -s conftest.err
11156 } && test -s conftest$ac_exeext && {
11157 test "$cross_compiling" = yes ||
11158 $as_test_x conftest$ac_exeext
11159 }; then
11160 eval "$as_ac_var=yes"
11161 else
11162 $as_echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11164
11165 eval "$as_ac_var=no"
11166 fi
11167
11168 rm -rf conftest.dSYM
11169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11170 conftest$ac_exeext conftest.$ac_ext
11171 fi
11172 ac_res=`eval 'as_val=${'$as_ac_var'}
11173 $as_echo "$as_val"'`
11174 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11175 $as_echo "$ac_res" >&6; }
11176 if test `eval 'as_val=${'$as_ac_var'}
11177 $as_echo "$as_val"'` = yes; then
11178 cat >>confdefs.h <<_ACEOF
11179 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11180 _ACEOF
11181
11182 fi
11183 done
11184
11185 fi
11186
11187 if test "${window_system}" = "x11"; then
11188 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11189 $as_echo_n "checking X11 version 6... " >&6; }
11190 if test "${emacs_cv_x11_version_6+set}" = set; then
11191 $as_echo_n "(cached) " >&6
11192 else
11193 cat >conftest.$ac_ext <<_ACEOF
11194 /* confdefs.h. */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199 #include <X11/Xlib.h>
11200 int
11201 main ()
11202 {
11203 #if XlibSpecificationRelease < 6
11204 fail;
11205 #endif
11206
11207 ;
11208 return 0;
11209 }
11210 _ACEOF
11211 rm -f conftest.$ac_objext conftest$ac_exeext
11212 if { (ac_try="$ac_link"
11213 case "(($ac_try" in
11214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11215 *) ac_try_echo=$ac_try;;
11216 esac
11217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11218 $as_echo "$ac_try_echo") >&5
11219 (eval "$ac_link") 2>conftest.er1
11220 ac_status=$?
11221 grep -v '^ *+' conftest.er1 >conftest.err
11222 rm -f conftest.er1
11223 cat conftest.err >&5
11224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } && {
11226 test -z "$ac_c_werror_flag" ||
11227 test ! -s conftest.err
11228 } && test -s conftest$ac_exeext && {
11229 test "$cross_compiling" = yes ||
11230 $as_test_x conftest$ac_exeext
11231 }; then
11232 emacs_cv_x11_version_6=yes
11233 else
11234 $as_echo "$as_me: failed program was:" >&5
11235 sed 's/^/| /' conftest.$ac_ext >&5
11236
11237 emacs_cv_x11_version_6=no
11238 fi
11239
11240 rm -rf conftest.dSYM
11241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11242 conftest$ac_exeext conftest.$ac_ext
11243 fi
11244
11245 if test $emacs_cv_x11_version_6 = yes; then
11246 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11247 $as_echo "6 or newer" >&6; }
11248
11249 cat >>confdefs.h <<\_ACEOF
11250 #define HAVE_X11R6 1
11251 _ACEOF
11252
11253 else
11254 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11255 $as_echo "before 6" >&6; }
11256 fi
11257 fi
11258
11259
11260 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11261 HAVE_RSVG=no
11262 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11263 if test "${with_rsvg}" != "no"; then
11264 RSVG_REQUIRED=2.11.0
11265 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11266
11267
11268 succeeded=no
11269
11270 # Extract the first word of "pkg-config", so it can be a program name with args.
11271 set dummy pkg-config; ac_word=$2
11272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11273 $as_echo_n "checking for $ac_word... " >&6; }
11274 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11275 $as_echo_n "(cached) " >&6
11276 else
11277 case $PKG_CONFIG in
11278 [\\/]* | ?:[\\/]*)
11279 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11280 ;;
11281 *)
11282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283 for as_dir in $PATH
11284 do
11285 IFS=$as_save_IFS
11286 test -z "$as_dir" && as_dir=.
11287 for ac_exec_ext in '' $ac_executable_extensions; do
11288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11289 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11290 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11291 break 2
11292 fi
11293 done
11294 done
11295 IFS=$as_save_IFS
11296
11297 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11298 ;;
11299 esac
11300 fi
11301 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11302 if test -n "$PKG_CONFIG"; then
11303 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11304 $as_echo "$PKG_CONFIG" >&6; }
11305 else
11306 { $as_echo "$as_me:$LINENO: result: no" >&5
11307 $as_echo "no" >&6; }
11308 fi
11309
11310
11311
11312 if test "$PKG_CONFIG" = "no" ; then
11313 :
11314 else
11315 PKG_CONFIG_MIN_VERSION=0.9.0
11316 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11317 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11318 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11319
11320 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11321 { $as_echo "$as_me:$LINENO: result: yes" >&5
11322 $as_echo "yes" >&6; }
11323 succeeded=yes
11324
11325 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11326 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11327 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11328 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11329 $as_echo "$RSVG_CFLAGS" >&6; }
11330
11331 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11332 $as_echo_n "checking RSVG_LIBS... " >&6; }
11333 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11334 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11335 $as_echo "$RSVG_LIBS" >&6; }
11336 else
11337 { $as_echo "$as_me:$LINENO: result: no" >&5
11338 $as_echo "no" >&6; }
11339 RSVG_CFLAGS=""
11340 RSVG_LIBS=""
11341 ## If we have a custom action on failure, don't print errors, but
11342 ## do set a variable so people can do so.
11343 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11344
11345 fi
11346
11347
11348
11349 else
11350 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11351 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11352 fi
11353 fi
11354
11355 if test $succeeded = yes; then
11356 :
11357 else
11358 :
11359 fi
11360
11361
11362
11363
11364 if test ".${RSVG_CFLAGS}" != "."; then
11365 HAVE_RSVG=yes
11366
11367 cat >>confdefs.h <<\_ACEOF
11368 #define HAVE_RSVG 1
11369 _ACEOF
11370
11371 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11372 LIBS="$RSVG_LIBS $LIBS"
11373 fi
11374 fi
11375 fi
11376
11377
11378 HAVE_GTK=no
11379 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11380 GLIB_REQUIRED=2.6
11381 GTK_REQUIRED=2.6
11382 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11383
11384
11385 succeeded=no
11386
11387 # Extract the first word of "pkg-config", so it can be a program name with args.
11388 set dummy pkg-config; ac_word=$2
11389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11390 $as_echo_n "checking for $ac_word... " >&6; }
11391 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11392 $as_echo_n "(cached) " >&6
11393 else
11394 case $PKG_CONFIG in
11395 [\\/]* | ?:[\\/]*)
11396 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11397 ;;
11398 *)
11399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400 for as_dir in $PATH
11401 do
11402 IFS=$as_save_IFS
11403 test -z "$as_dir" && as_dir=.
11404 for ac_exec_ext in '' $ac_executable_extensions; do
11405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11406 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11408 break 2
11409 fi
11410 done
11411 done
11412 IFS=$as_save_IFS
11413
11414 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11415 ;;
11416 esac
11417 fi
11418 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11419 if test -n "$PKG_CONFIG"; then
11420 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11421 $as_echo "$PKG_CONFIG" >&6; }
11422 else
11423 { $as_echo "$as_me:$LINENO: result: no" >&5
11424 $as_echo "no" >&6; }
11425 fi
11426
11427
11428
11429 if test "$PKG_CONFIG" = "no" ; then
11430 pkg_check_gtk=no
11431 else
11432 PKG_CONFIG_MIN_VERSION=0.9.0
11433 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11434 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11435 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11436
11437 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11438 { $as_echo "$as_me:$LINENO: result: yes" >&5
11439 $as_echo "yes" >&6; }
11440 succeeded=yes
11441
11442 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11443 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11444 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11445 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11446 $as_echo "$GTK_CFLAGS" >&6; }
11447
11448 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11449 $as_echo_n "checking GTK_LIBS... " >&6; }
11450 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11451 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11452 $as_echo "$GTK_LIBS" >&6; }
11453 else
11454 { $as_echo "$as_me:$LINENO: result: no" >&5
11455 $as_echo "no" >&6; }
11456 GTK_CFLAGS=""
11457 GTK_LIBS=""
11458 ## If we have a custom action on failure, don't print errors, but
11459 ## do set a variable so people can do so.
11460 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11461
11462 fi
11463
11464
11465
11466 else
11467 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11468 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11469 fi
11470 fi
11471
11472 if test $succeeded = yes; then
11473 pkg_check_gtk=yes
11474 else
11475 pkg_check_gtk=no
11476 fi
11477
11478 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11479 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11480 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11481 { (exit 1); exit 1; }; }
11482 fi
11483 fi
11484
11485
11486 if test x"$pkg_check_gtk" = xyes; then
11487
11488
11489
11490 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11491 CFLAGS="$CFLAGS $GTK_CFLAGS"
11492 LIBS="$GTK_LIBS $LIBS"
11493 GTK_COMPILES=no
11494
11495 for ac_func in gtk_main
11496 do
11497 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11498 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11499 $as_echo_n "checking for $ac_func... " >&6; }
11500 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11501 $as_echo_n "(cached) " >&6
11502 else
11503 cat >conftest.$ac_ext <<_ACEOF
11504 /* confdefs.h. */
11505 _ACEOF
11506 cat confdefs.h >>conftest.$ac_ext
11507 cat >>conftest.$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11511 #define $ac_func innocuous_$ac_func
11512
11513 /* System header to define __stub macros and hopefully few prototypes,
11514 which can conflict with char $ac_func (); below.
11515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11516 <limits.h> exists even on freestanding compilers. */
11517
11518 #ifdef __STDC__
11519 # include <limits.h>
11520 #else
11521 # include <assert.h>
11522 #endif
11523
11524 #undef $ac_func
11525
11526 /* Override any GCC internal prototype to avoid an error.
11527 Use char because int might match the return type of a GCC
11528 builtin and then its argument prototype would still apply. */
11529 #ifdef __cplusplus
11530 extern "C"
11531 #endif
11532 char $ac_func ();
11533 /* The GNU C library defines this for functions which it implements
11534 to always fail with ENOSYS. Some functions are actually named
11535 something starting with __ and the normal name is an alias. */
11536 #if defined __stub_$ac_func || defined __stub___$ac_func
11537 choke me
11538 #endif
11539
11540 int
11541 main ()
11542 {
11543 return $ac_func ();
11544 ;
11545 return 0;
11546 }
11547 _ACEOF
11548 rm -f conftest.$ac_objext conftest$ac_exeext
11549 if { (ac_try="$ac_link"
11550 case "(($ac_try" in
11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11553 esac
11554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11555 $as_echo "$ac_try_echo") >&5
11556 (eval "$ac_link") 2>conftest.er1
11557 ac_status=$?
11558 grep -v '^ *+' conftest.er1 >conftest.err
11559 rm -f conftest.er1
11560 cat conftest.err >&5
11561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } && {
11563 test -z "$ac_c_werror_flag" ||
11564 test ! -s conftest.err
11565 } && test -s conftest$ac_exeext && {
11566 test "$cross_compiling" = yes ||
11567 $as_test_x conftest$ac_exeext
11568 }; then
11569 eval "$as_ac_var=yes"
11570 else
11571 $as_echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11573
11574 eval "$as_ac_var=no"
11575 fi
11576
11577 rm -rf conftest.dSYM
11578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11579 conftest$ac_exeext conftest.$ac_ext
11580 fi
11581 ac_res=`eval 'as_val=${'$as_ac_var'}
11582 $as_echo "$as_val"'`
11583 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11584 $as_echo "$ac_res" >&6; }
11585 if test `eval 'as_val=${'$as_ac_var'}
11586 $as_echo "$as_val"'` = yes; then
11587 cat >>confdefs.h <<_ACEOF
11588 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11589 _ACEOF
11590 GTK_COMPILES=yes
11591 fi
11592 done
11593
11594 if test "${GTK_COMPILES}" != "yes"; then
11595 if test "$USE_X_TOOLKIT" != "maybe"; then
11596 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11597 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11598 { (exit 1); exit 1; }; };
11599 fi
11600 else
11601 HAVE_GTK=yes
11602
11603 cat >>confdefs.h <<\_ACEOF
11604 #define USE_GTK 1
11605 _ACEOF
11606
11607 USE_X_TOOLKIT=none
11608 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11609 :
11610 else
11611 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11612 closing open displays. This is no problem if you just use
11613 one display, but if you use more than one and close one of them
11614 Emacs may crash." >&5
11615 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11616 closing open displays. This is no problem if you just use
11617 one display, but if you use more than one and close one of them
11618 Emacs may crash." >&2;}
11619 sleep 3
11620 fi
11621 fi
11622
11623 fi
11624
11625
11626 if test "${HAVE_GTK}" = "yes"; then
11627
11628 if test "$with_toolkit_scroll_bars" != no; then
11629 with_toolkit_scroll_bars=yes
11630 fi
11631
11632 HAVE_GTK_MULTIDISPLAY=no
11633
11634 for ac_func in gdk_display_open
11635 do
11636 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11637 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11638 $as_echo_n "checking for $ac_func... " >&6; }
11639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11640 $as_echo_n "(cached) " >&6
11641 else
11642 cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h. */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11650 #define $ac_func innocuous_$ac_func
11651
11652 /* System header to define __stub macros and hopefully few prototypes,
11653 which can conflict with char $ac_func (); below.
11654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11655 <limits.h> exists even on freestanding compilers. */
11656
11657 #ifdef __STDC__
11658 # include <limits.h>
11659 #else
11660 # include <assert.h>
11661 #endif
11662
11663 #undef $ac_func
11664
11665 /* Override any GCC internal prototype to avoid an error.
11666 Use char because int might match the return type of a GCC
11667 builtin and then its argument prototype would still apply. */
11668 #ifdef __cplusplus
11669 extern "C"
11670 #endif
11671 char $ac_func ();
11672 /* The GNU C library defines this for functions which it implements
11673 to always fail with ENOSYS. Some functions are actually named
11674 something starting with __ and the normal name is an alias. */
11675 #if defined __stub_$ac_func || defined __stub___$ac_func
11676 choke me
11677 #endif
11678
11679 int
11680 main ()
11681 {
11682 return $ac_func ();
11683 ;
11684 return 0;
11685 }
11686 _ACEOF
11687 rm -f conftest.$ac_objext conftest$ac_exeext
11688 if { (ac_try="$ac_link"
11689 case "(($ac_try" in
11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691 *) ac_try_echo=$ac_try;;
11692 esac
11693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11694 $as_echo "$ac_try_echo") >&5
11695 (eval "$ac_link") 2>conftest.er1
11696 ac_status=$?
11697 grep -v '^ *+' conftest.er1 >conftest.err
11698 rm -f conftest.er1
11699 cat conftest.err >&5
11700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } && {
11702 test -z "$ac_c_werror_flag" ||
11703 test ! -s conftest.err
11704 } && test -s conftest$ac_exeext && {
11705 test "$cross_compiling" = yes ||
11706 $as_test_x conftest$ac_exeext
11707 }; then
11708 eval "$as_ac_var=yes"
11709 else
11710 $as_echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11712
11713 eval "$as_ac_var=no"
11714 fi
11715
11716 rm -rf conftest.dSYM
11717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11718 conftest$ac_exeext conftest.$ac_ext
11719 fi
11720 ac_res=`eval 'as_val=${'$as_ac_var'}
11721 $as_echo "$as_val"'`
11722 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11723 $as_echo "$ac_res" >&6; }
11724 if test `eval 'as_val=${'$as_ac_var'}
11725 $as_echo "$as_val"'` = yes; then
11726 cat >>confdefs.h <<_ACEOF
11727 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11728 _ACEOF
11729 HAVE_GTK_MULTIDISPLAY=yes
11730 fi
11731 done
11732
11733 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11734
11735 cat >>confdefs.h <<\_ACEOF
11736 #define HAVE_GTK_MULTIDISPLAY 1
11737 _ACEOF
11738
11739 fi
11740
11741 HAVE_GTK_FILE_SELECTION=no
11742 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11743 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11744 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11745 $as_echo_n "(cached) " >&6
11746 else
11747 cat >conftest.$ac_ext <<_ACEOF
11748 /* confdefs.h. */
11749 _ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h. */
11753 $ac_includes_default
11754 #include <gtk/gtk.h>
11755
11756 int
11757 main ()
11758 {
11759 #ifndef GTK_TYPE_FILE_SELECTION
11760 (void) GTK_TYPE_FILE_SELECTION;
11761 #endif
11762
11763 ;
11764 return 0;
11765 }
11766 _ACEOF
11767 rm -f conftest.$ac_objext
11768 if { (ac_try="$ac_compile"
11769 case "(($ac_try" in
11770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771 *) ac_try_echo=$ac_try;;
11772 esac
11773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11774 $as_echo "$ac_try_echo") >&5
11775 (eval "$ac_compile") 2>conftest.er1
11776 ac_status=$?
11777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
11780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } && {
11782 test -z "$ac_c_werror_flag" ||
11783 test ! -s conftest.err
11784 } && test -s conftest.$ac_objext; then
11785 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11786 else
11787 $as_echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11789
11790 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11791 fi
11792
11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11794 fi
11795 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11796 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11797 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11798 HAVE_GTK_FILE_SELECTION=yes
11799 else
11800 HAVE_GTK_FILE_SELECTION=no
11801 fi
11802
11803 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11804
11805 for ac_func in gtk_file_selection_new
11806 do
11807 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11808 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11809 $as_echo_n "checking for $ac_func... " >&6; }
11810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11811 $as_echo_n "(cached) " >&6
11812 else
11813 cat >conftest.$ac_ext <<_ACEOF
11814 /* confdefs.h. */
11815 _ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11821 #define $ac_func innocuous_$ac_func
11822
11823 /* System header to define __stub macros and hopefully few prototypes,
11824 which can conflict with char $ac_func (); below.
11825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11826 <limits.h> exists even on freestanding compilers. */
11827
11828 #ifdef __STDC__
11829 # include <limits.h>
11830 #else
11831 # include <assert.h>
11832 #endif
11833
11834 #undef $ac_func
11835
11836 /* Override any GCC internal prototype to avoid an error.
11837 Use char because int might match the return type of a GCC
11838 builtin and then its argument prototype would still apply. */
11839 #ifdef __cplusplus
11840 extern "C"
11841 #endif
11842 char $ac_func ();
11843 /* The GNU C library defines this for functions which it implements
11844 to always fail with ENOSYS. Some functions are actually named
11845 something starting with __ and the normal name is an alias. */
11846 #if defined __stub_$ac_func || defined __stub___$ac_func
11847 choke me
11848 #endif
11849
11850 int
11851 main ()
11852 {
11853 return $ac_func ();
11854 ;
11855 return 0;
11856 }
11857 _ACEOF
11858 rm -f conftest.$ac_objext conftest$ac_exeext
11859 if { (ac_try="$ac_link"
11860 case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11863 esac
11864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11865 $as_echo "$ac_try_echo") >&5
11866 (eval "$ac_link") 2>conftest.er1
11867 ac_status=$?
11868 grep -v '^ *+' conftest.er1 >conftest.err
11869 rm -f conftest.er1
11870 cat conftest.err >&5
11871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } && {
11873 test -z "$ac_c_werror_flag" ||
11874 test ! -s conftest.err
11875 } && test -s conftest$ac_exeext && {
11876 test "$cross_compiling" = yes ||
11877 $as_test_x conftest$ac_exeext
11878 }; then
11879 eval "$as_ac_var=yes"
11880 else
11881 $as_echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11883
11884 eval "$as_ac_var=no"
11885 fi
11886
11887 rm -rf conftest.dSYM
11888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11889 conftest$ac_exeext conftest.$ac_ext
11890 fi
11891 ac_res=`eval 'as_val=${'$as_ac_var'}
11892 $as_echo "$as_val"'`
11893 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11894 $as_echo "$ac_res" >&6; }
11895 if test `eval 'as_val=${'$as_ac_var'}
11896 $as_echo "$as_val"'` = yes; then
11897 cat >>confdefs.h <<_ACEOF
11898 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11899 _ACEOF
11900 HAVE_GTK_FILE_SELECTION=yes
11901 else
11902 HAVE_GTK_FILE_SELECTION=no
11903 fi
11904 done
11905
11906 fi
11907
11908 HAVE_GTK_FILE_CHOOSER=no
11909 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
11910 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
11911 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11912 $as_echo_n "(cached) " >&6
11913 else
11914 cat >conftest.$ac_ext <<_ACEOF
11915 /* confdefs.h. */
11916 _ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h. */
11920 $ac_includes_default
11921 #include <gtk/gtk.h>
11922
11923 int
11924 main ()
11925 {
11926 #ifndef GTK_TYPE_FILE_CHOOSER
11927 (void) GTK_TYPE_FILE_CHOOSER;
11928 #endif
11929
11930 ;
11931 return 0;
11932 }
11933 _ACEOF
11934 rm -f conftest.$ac_objext
11935 if { (ac_try="$ac_compile"
11936 case "(($ac_try" in
11937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938 *) ac_try_echo=$ac_try;;
11939 esac
11940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11941 $as_echo "$ac_try_echo") >&5
11942 (eval "$ac_compile") 2>conftest.er1
11943 ac_status=$?
11944 grep -v '^ *+' conftest.er1 >conftest.err
11945 rm -f conftest.er1
11946 cat conftest.err >&5
11947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); } && {
11949 test -z "$ac_c_werror_flag" ||
11950 test ! -s conftest.err
11951 } && test -s conftest.$ac_objext; then
11952 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
11953 else
11954 $as_echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11956
11957 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
11958 fi
11959
11960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961 fi
11962 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
11963 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
11964 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
11965 HAVE_GTK_FILE_CHOOSER=yes
11966 else
11967 HAVE_GTK_FILE_CHOOSER=no
11968 fi
11969
11970 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11971
11972 for ac_func in gtk_file_chooser_dialog_new
11973 do
11974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11975 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11976 $as_echo_n "checking for $ac_func... " >&6; }
11977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11978 $as_echo_n "(cached) " >&6
11979 else
11980 cat >conftest.$ac_ext <<_ACEOF
11981 /* confdefs.h. */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11988 #define $ac_func innocuous_$ac_func
11989
11990 /* System header to define __stub macros and hopefully few prototypes,
11991 which can conflict with char $ac_func (); below.
11992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11993 <limits.h> exists even on freestanding compilers. */
11994
11995 #ifdef __STDC__
11996 # include <limits.h>
11997 #else
11998 # include <assert.h>
11999 #endif
12000
12001 #undef $ac_func
12002
12003 /* Override any GCC internal prototype to avoid an error.
12004 Use char because int might match the return type of a GCC
12005 builtin and then its argument prototype would still apply. */
12006 #ifdef __cplusplus
12007 extern "C"
12008 #endif
12009 char $ac_func ();
12010 /* The GNU C library defines this for functions which it implements
12011 to always fail with ENOSYS. Some functions are actually named
12012 something starting with __ and the normal name is an alias. */
12013 #if defined __stub_$ac_func || defined __stub___$ac_func
12014 choke me
12015 #endif
12016
12017 int
12018 main ()
12019 {
12020 return $ac_func ();
12021 ;
12022 return 0;
12023 }
12024 _ACEOF
12025 rm -f conftest.$ac_objext conftest$ac_exeext
12026 if { (ac_try="$ac_link"
12027 case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12030 esac
12031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12032 $as_echo "$ac_try_echo") >&5
12033 (eval "$ac_link") 2>conftest.er1
12034 ac_status=$?
12035 grep -v '^ *+' conftest.er1 >conftest.err
12036 rm -f conftest.er1
12037 cat conftest.err >&5
12038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } && {
12040 test -z "$ac_c_werror_flag" ||
12041 test ! -s conftest.err
12042 } && test -s conftest$ac_exeext && {
12043 test "$cross_compiling" = yes ||
12044 $as_test_x conftest$ac_exeext
12045 }; then
12046 eval "$as_ac_var=yes"
12047 else
12048 $as_echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12050
12051 eval "$as_ac_var=no"
12052 fi
12053
12054 rm -rf conftest.dSYM
12055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12056 conftest$ac_exeext conftest.$ac_ext
12057 fi
12058 ac_res=`eval 'as_val=${'$as_ac_var'}
12059 $as_echo "$as_val"'`
12060 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12061 $as_echo "$ac_res" >&6; }
12062 if test `eval 'as_val=${'$as_ac_var'}
12063 $as_echo "$as_val"'` = yes; then
12064 cat >>confdefs.h <<_ACEOF
12065 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12066 _ACEOF
12067 HAVE_GTK_FILE_CHOOSER=yes
12068 else
12069 HAVE_GTK_FILE_CHOOSER=no
12070 fi
12071 done
12072
12073 fi
12074
12075 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12076 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12077
12078 cat >>confdefs.h <<\_ACEOF
12079 #define HAVE_GTK_FILE_BOTH 1
12080 _ACEOF
12081
12082 fi
12083
12084 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12085 HAVE_GTK_AND_PTHREAD=no
12086
12087 for ac_header in pthread.h
12088 do
12089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12091 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12092 $as_echo_n "checking for $ac_header... " >&6; }
12093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12094 $as_echo_n "(cached) " >&6
12095 fi
12096 ac_res=`eval 'as_val=${'$as_ac_Header'}
12097 $as_echo "$as_val"'`
12098 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12099 $as_echo "$ac_res" >&6; }
12100 else
12101 # Is the header compilable?
12102 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12103 $as_echo_n "checking $ac_header usability... " >&6; }
12104 cat >conftest.$ac_ext <<_ACEOF
12105 /* confdefs.h. */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12110 $ac_includes_default
12111 #include <$ac_header>
12112 _ACEOF
12113 rm -f conftest.$ac_objext
12114 if { (ac_try="$ac_compile"
12115 case "(($ac_try" in
12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12118 esac
12119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12120 $as_echo "$ac_try_echo") >&5
12121 (eval "$ac_compile") 2>conftest.er1
12122 ac_status=$?
12123 grep -v '^ *+' conftest.er1 >conftest.err
12124 rm -f conftest.er1
12125 cat conftest.err >&5
12126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } && {
12128 test -z "$ac_c_werror_flag" ||
12129 test ! -s conftest.err
12130 } && test -s conftest.$ac_objext; then
12131 ac_header_compiler=yes
12132 else
12133 $as_echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.$ac_ext >&5
12135
12136 ac_header_compiler=no
12137 fi
12138
12139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12141 $as_echo "$ac_header_compiler" >&6; }
12142
12143 # Is the header present?
12144 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12145 $as_echo_n "checking $ac_header presence... " >&6; }
12146 cat >conftest.$ac_ext <<_ACEOF
12147 /* confdefs.h. */
12148 _ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 #include <$ac_header>
12153 _ACEOF
12154 if { (ac_try="$ac_cpp conftest.$ac_ext"
12155 case "(($ac_try" in
12156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12157 *) ac_try_echo=$ac_try;;
12158 esac
12159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12160 $as_echo "$ac_try_echo") >&5
12161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12162 ac_status=$?
12163 grep -v '^ *+' conftest.er1 >conftest.err
12164 rm -f conftest.er1
12165 cat conftest.err >&5
12166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } >/dev/null && {
12168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12169 test ! -s conftest.err
12170 }; then
12171 ac_header_preproc=yes
12172 else
12173 $as_echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.$ac_ext >&5
12175
12176 ac_header_preproc=no
12177 fi
12178
12179 rm -f conftest.err conftest.$ac_ext
12180 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12181 $as_echo "$ac_header_preproc" >&6; }
12182
12183 # So? What about this header?
12184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12185 yes:no: )
12186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12187 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12189 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12190 ac_header_preproc=yes
12191 ;;
12192 no:yes:* )
12193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12194 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12196 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12198 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12200 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12202 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12204 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12205
12206 ;;
12207 esac
12208 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12209 $as_echo_n "checking for $ac_header... " >&6; }
12210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12211 $as_echo_n "(cached) " >&6
12212 else
12213 eval "$as_ac_Header=\$ac_header_preproc"
12214 fi
12215 ac_res=`eval 'as_val=${'$as_ac_Header'}
12216 $as_echo "$as_val"'`
12217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12218 $as_echo "$ac_res" >&6; }
12219
12220 fi
12221 if test `eval 'as_val=${'$as_ac_Header'}
12222 $as_echo "$as_val"'` = yes; then
12223 cat >>confdefs.h <<_ACEOF
12224 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12225 _ACEOF
12226
12227 fi
12228
12229 done
12230
12231 if test "$ac_cv_header_pthread_h"; then
12232 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12233 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12234 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12235 $as_echo_n "(cached) " >&6
12236 else
12237 ac_check_lib_save_LIBS=$LIBS
12238 LIBS="-lpthread $LIBS"
12239 cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h. */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245
12246 /* Override any GCC internal prototype to avoid an error.
12247 Use char because int might match the return type of a GCC
12248 builtin and then its argument prototype would still apply. */
12249 #ifdef __cplusplus
12250 extern "C"
12251 #endif
12252 char pthread_self ();
12253 int
12254 main ()
12255 {
12256 return pthread_self ();
12257 ;
12258 return 0;
12259 }
12260 _ACEOF
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (ac_try="$ac_link"
12263 case "(($ac_try" in
12264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12266 esac
12267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12268 $as_echo "$ac_try_echo") >&5
12269 (eval "$ac_link") 2>conftest.er1
12270 ac_status=$?
12271 grep -v '^ *+' conftest.er1 >conftest.err
12272 rm -f conftest.er1
12273 cat conftest.err >&5
12274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } && {
12276 test -z "$ac_c_werror_flag" ||
12277 test ! -s conftest.err
12278 } && test -s conftest$ac_exeext && {
12279 test "$cross_compiling" = yes ||
12280 $as_test_x conftest$ac_exeext
12281 }; then
12282 ac_cv_lib_pthread_pthread_self=yes
12283 else
12284 $as_echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12286
12287 ac_cv_lib_pthread_pthread_self=no
12288 fi
12289
12290 rm -rf conftest.dSYM
12291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12292 conftest$ac_exeext conftest.$ac_ext
12293 LIBS=$ac_check_lib_save_LIBS
12294 fi
12295 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12296 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12297 if test $ac_cv_lib_pthread_pthread_self = yes; then
12298 HAVE_GTK_AND_PTHREAD=yes
12299 fi
12300
12301 fi
12302 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12303 case "${canonical}" in
12304 *-hpux*) ;;
12305 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12306 esac
12307
12308 cat >>confdefs.h <<\_ACEOF
12309 #define HAVE_GTK_AND_PTHREAD 1
12310 _ACEOF
12311
12312 fi
12313 fi
12314 fi
12315
12316 HAVE_DBUS=no
12317 if test "${with_dbus}" = "yes"; then
12318
12319 succeeded=no
12320
12321 # Extract the first word of "pkg-config", so it can be a program name with args.
12322 set dummy pkg-config; ac_word=$2
12323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12324 $as_echo_n "checking for $ac_word... " >&6; }
12325 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12326 $as_echo_n "(cached) " >&6
12327 else
12328 case $PKG_CONFIG in
12329 [\\/]* | ?:[\\/]*)
12330 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12331 ;;
12332 *)
12333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12334 for as_dir in $PATH
12335 do
12336 IFS=$as_save_IFS
12337 test -z "$as_dir" && as_dir=.
12338 for ac_exec_ext in '' $ac_executable_extensions; do
12339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12340 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12342 break 2
12343 fi
12344 done
12345 done
12346 IFS=$as_save_IFS
12347
12348 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12349 ;;
12350 esac
12351 fi
12352 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12353 if test -n "$PKG_CONFIG"; then
12354 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12355 $as_echo "$PKG_CONFIG" >&6; }
12356 else
12357 { $as_echo "$as_me:$LINENO: result: no" >&5
12358 $as_echo "no" >&6; }
12359 fi
12360
12361
12362
12363 if test "$PKG_CONFIG" = "no" ; then
12364 HAVE_DBUS=no
12365 else
12366 PKG_CONFIG_MIN_VERSION=0.9.0
12367 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12368 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12369 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12370
12371 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12372 { $as_echo "$as_me:$LINENO: result: yes" >&5
12373 $as_echo "yes" >&6; }
12374 succeeded=yes
12375
12376 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12377 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12378 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12379 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12380 $as_echo "$DBUS_CFLAGS" >&6; }
12381
12382 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12383 $as_echo_n "checking DBUS_LIBS... " >&6; }
12384 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12385 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12386 $as_echo "$DBUS_LIBS" >&6; }
12387 else
12388 { $as_echo "$as_me:$LINENO: result: no" >&5
12389 $as_echo "no" >&6; }
12390 DBUS_CFLAGS=""
12391 DBUS_LIBS=""
12392 ## If we have a custom action on failure, don't print errors, but
12393 ## do set a variable so people can do so.
12394 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12395
12396 fi
12397
12398
12399
12400 else
12401 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12402 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12403 fi
12404 fi
12405
12406 if test $succeeded = yes; then
12407 HAVE_DBUS=yes
12408 else
12409 HAVE_DBUS=no
12410 fi
12411
12412 if test "$HAVE_DBUS" = yes; then
12413 LIBS="$LIBS $DBUS_LIBS"
12414
12415 cat >>confdefs.h <<\_ACEOF
12416 #define HAVE_DBUS 1
12417 _ACEOF
12418
12419
12420 for ac_func in dbus_watch_get_unix_fd
12421 do
12422 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12423 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12424 $as_echo_n "checking for $ac_func... " >&6; }
12425 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12426 $as_echo_n "(cached) " >&6
12427 else
12428 cat >conftest.$ac_ext <<_ACEOF
12429 /* confdefs.h. */
12430 _ACEOF
12431 cat confdefs.h >>conftest.$ac_ext
12432 cat >>conftest.$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12436 #define $ac_func innocuous_$ac_func
12437
12438 /* System header to define __stub macros and hopefully few prototypes,
12439 which can conflict with char $ac_func (); below.
12440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12441 <limits.h> exists even on freestanding compilers. */
12442
12443 #ifdef __STDC__
12444 # include <limits.h>
12445 #else
12446 # include <assert.h>
12447 #endif
12448
12449 #undef $ac_func
12450
12451 /* Override any GCC internal prototype to avoid an error.
12452 Use char because int might match the return type of a GCC
12453 builtin and then its argument prototype would still apply. */
12454 #ifdef __cplusplus
12455 extern "C"
12456 #endif
12457 char $ac_func ();
12458 /* The GNU C library defines this for functions which it implements
12459 to always fail with ENOSYS. Some functions are actually named
12460 something starting with __ and the normal name is an alias. */
12461 #if defined __stub_$ac_func || defined __stub___$ac_func
12462 choke me
12463 #endif
12464
12465 int
12466 main ()
12467 {
12468 return $ac_func ();
12469 ;
12470 return 0;
12471 }
12472 _ACEOF
12473 rm -f conftest.$ac_objext conftest$ac_exeext
12474 if { (ac_try="$ac_link"
12475 case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12478 esac
12479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12480 $as_echo "$ac_try_echo") >&5
12481 (eval "$ac_link") 2>conftest.er1
12482 ac_status=$?
12483 grep -v '^ *+' conftest.er1 >conftest.err
12484 rm -f conftest.er1
12485 cat conftest.err >&5
12486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } && {
12488 test -z "$ac_c_werror_flag" ||
12489 test ! -s conftest.err
12490 } && test -s conftest$ac_exeext && {
12491 test "$cross_compiling" = yes ||
12492 $as_test_x conftest$ac_exeext
12493 }; then
12494 eval "$as_ac_var=yes"
12495 else
12496 $as_echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12498
12499 eval "$as_ac_var=no"
12500 fi
12501
12502 rm -rf conftest.dSYM
12503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12504 conftest$ac_exeext conftest.$ac_ext
12505 fi
12506 ac_res=`eval 'as_val=${'$as_ac_var'}
12507 $as_echo "$as_val"'`
12508 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12509 $as_echo "$ac_res" >&6; }
12510 if test `eval 'as_val=${'$as_ac_var'}
12511 $as_echo "$as_val"'` = yes; then
12512 cat >>confdefs.h <<_ACEOF
12513 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12514 _ACEOF
12515
12516 fi
12517 done
12518
12519 fi
12520 fi
12521
12522 HAVE_XAW3D=no
12523 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12524 if test "$with_xaw3d" != no; then
12525 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12526 $as_echo_n "checking for xaw3d... " >&6; }
12527 if test "${emacs_cv_xaw3d+set}" = set; then
12528 $as_echo_n "(cached) " >&6
12529 else
12530 cat >conftest.$ac_ext <<_ACEOF
12531 /* confdefs.h. */
12532 _ACEOF
12533 cat confdefs.h >>conftest.$ac_ext
12534 cat >>conftest.$ac_ext <<_ACEOF
12535 /* end confdefs.h. */
12536
12537 #include <X11/Intrinsic.h>
12538 #include <X11/Xaw3d/Simple.h>
12539 int
12540 main ()
12541 {
12542
12543 ;
12544 return 0;
12545 }
12546 _ACEOF
12547 rm -f conftest.$ac_objext conftest$ac_exeext
12548 if { (ac_try="$ac_link"
12549 case "(($ac_try" in
12550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551 *) ac_try_echo=$ac_try;;
12552 esac
12553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12554 $as_echo "$ac_try_echo") >&5
12555 (eval "$ac_link") 2>conftest.er1
12556 ac_status=$?
12557 grep -v '^ *+' conftest.er1 >conftest.err
12558 rm -f conftest.er1
12559 cat conftest.err >&5
12560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); } && {
12562 test -z "$ac_c_werror_flag" ||
12563 test ! -s conftest.err
12564 } && test -s conftest$ac_exeext && {
12565 test "$cross_compiling" = yes ||
12566 $as_test_x conftest$ac_exeext
12567 }; then
12568 emacs_cv_xaw3d=yes
12569 else
12570 $as_echo "$as_me: failed program was:" >&5
12571 sed 's/^/| /' conftest.$ac_ext >&5
12572
12573 emacs_cv_xaw3d=no
12574 fi
12575
12576 rm -rf conftest.dSYM
12577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12578 conftest$ac_exeext conftest.$ac_ext
12579 fi
12580
12581 else
12582 emacs_cv_xaw3d=no
12583 fi
12584 if test $emacs_cv_xaw3d = yes; then
12585 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12586 $as_echo "yes; using Lucid toolkit" >&6; }
12587 USE_X_TOOLKIT=LUCID
12588 HAVE_XAW3D=yes
12589
12590 cat >>confdefs.h <<\_ACEOF
12591 #define HAVE_XAW3D 1
12592 _ACEOF
12593
12594 else
12595 { $as_echo "$as_me:$LINENO: result: no" >&5
12596 $as_echo "no" >&6; }
12597 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12598 $as_echo_n "checking for libXaw... " >&6; }
12599 if test "${emacs_cv_xaw+set}" = set; then
12600 $as_echo_n "(cached) " >&6
12601 else
12602 cat >conftest.$ac_ext <<_ACEOF
12603 /* confdefs.h. */
12604 _ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h. */
12608
12609 #include <X11/Intrinsic.h>
12610 #include <X11/Xaw/Simple.h>
12611 int
12612 main ()
12613 {
12614
12615 ;
12616 return 0;
12617 }
12618 _ACEOF
12619 rm -f conftest.$ac_objext conftest$ac_exeext
12620 if { (ac_try="$ac_link"
12621 case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12624 esac
12625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12626 $as_echo "$ac_try_echo") >&5
12627 (eval "$ac_link") 2>conftest.er1
12628 ac_status=$?
12629 grep -v '^ *+' conftest.er1 >conftest.err
12630 rm -f conftest.er1
12631 cat conftest.err >&5
12632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } && {
12634 test -z "$ac_c_werror_flag" ||
12635 test ! -s conftest.err
12636 } && test -s conftest$ac_exeext && {
12637 test "$cross_compiling" = yes ||
12638 $as_test_x conftest$ac_exeext
12639 }; then
12640 emacs_cv_xaw=yes
12641 else
12642 $as_echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12644
12645 emacs_cv_xaw=no
12646 fi
12647
12648 rm -rf conftest.dSYM
12649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12650 conftest$ac_exeext conftest.$ac_ext
12651 fi
12652
12653 if test $emacs_cv_xaw = yes; then
12654 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12655 $as_echo "yes; using Lucid toolkit" >&6; }
12656 USE_X_TOOLKIT=LUCID
12657 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12658 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12659 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12660 { (exit 1); exit 1; }; }
12661 else
12662 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12663 $as_echo "no; do not use toolkit by default" >&6; }
12664 USE_X_TOOLKIT=none
12665 fi
12666 fi
12667 fi
12668
12669 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12670
12671 if test "${USE_X_TOOLKIT}" != "none"; then
12672 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12673 $as_echo_n "checking X11 toolkit version... " >&6; }
12674 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12675 $as_echo_n "(cached) " >&6
12676 else
12677 cat >conftest.$ac_ext <<_ACEOF
12678 /* confdefs.h. */
12679 _ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12683 #include <X11/Intrinsic.h>
12684 int
12685 main ()
12686 {
12687 #if XtSpecificationRelease < 6
12688 fail;
12689 #endif
12690
12691 ;
12692 return 0;
12693 }
12694 _ACEOF
12695 rm -f conftest.$ac_objext conftest$ac_exeext
12696 if { (ac_try="$ac_link"
12697 case "(($ac_try" in
12698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699 *) ac_try_echo=$ac_try;;
12700 esac
12701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12702 $as_echo "$ac_try_echo") >&5
12703 (eval "$ac_link") 2>conftest.er1
12704 ac_status=$?
12705 grep -v '^ *+' conftest.er1 >conftest.err
12706 rm -f conftest.er1
12707 cat conftest.err >&5
12708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } && {
12710 test -z "$ac_c_werror_flag" ||
12711 test ! -s conftest.err
12712 } && test -s conftest$ac_exeext && {
12713 test "$cross_compiling" = yes ||
12714 $as_test_x conftest$ac_exeext
12715 }; then
12716 emacs_cv_x11_toolkit_version_6=yes
12717 else
12718 $as_echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12720
12721 emacs_cv_x11_toolkit_version_6=no
12722 fi
12723
12724 rm -rf conftest.dSYM
12725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12726 conftest$ac_exeext conftest.$ac_ext
12727 fi
12728
12729 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12730 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12731 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
12732 $as_echo "6 or newer" >&6; }
12733
12734 cat >>confdefs.h <<\_ACEOF
12735 #define HAVE_X11XTR6 1
12736 _ACEOF
12737
12738 else
12739 { $as_echo "$as_me:$LINENO: result: before 6" >&5
12740 $as_echo "before 6" >&6; }
12741 fi
12742
12743 OLDLIBS="$LIBS"
12744 if test x$HAVE_X11XTR6 = xyes; then
12745 LIBS="-lXt -lSM -lICE $LIBS"
12746 else
12747 LIBS="-lXt $LIBS"
12748 fi
12749
12750 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12751 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12752 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12753 $as_echo_n "(cached) " >&6
12754 else
12755 ac_check_lib_save_LIBS=$LIBS
12756 LIBS="-lXmu $LIBS"
12757 cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h. */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12763
12764 /* Override any GCC internal prototype to avoid an error.
12765 Use char because int might match the return type of a GCC
12766 builtin and then its argument prototype would still apply. */
12767 #ifdef __cplusplus
12768 extern "C"
12769 #endif
12770 char XmuConvertStandardSelection ();
12771 int
12772 main ()
12773 {
12774 return XmuConvertStandardSelection ();
12775 ;
12776 return 0;
12777 }
12778 _ACEOF
12779 rm -f conftest.$ac_objext conftest$ac_exeext
12780 if { (ac_try="$ac_link"
12781 case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12784 esac
12785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12786 $as_echo "$ac_try_echo") >&5
12787 (eval "$ac_link") 2>conftest.er1
12788 ac_status=$?
12789 grep -v '^ *+' conftest.er1 >conftest.err
12790 rm -f conftest.er1
12791 cat conftest.err >&5
12792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } && {
12794 test -z "$ac_c_werror_flag" ||
12795 test ! -s conftest.err
12796 } && test -s conftest$ac_exeext && {
12797 test "$cross_compiling" = yes ||
12798 $as_test_x conftest$ac_exeext
12799 }; then
12800 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12801 else
12802 $as_echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12804
12805 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12806 fi
12807
12808 rm -rf conftest.dSYM
12809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12810 conftest$ac_exeext conftest.$ac_ext
12811 LIBS=$ac_check_lib_save_LIBS
12812 fi
12813 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12814 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12815 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12816 cat >>confdefs.h <<_ACEOF
12817 #define HAVE_LIBXMU 1
12818 _ACEOF
12819
12820 LIBS="-lXmu $LIBS"
12821
12822 fi
12823
12824 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12825 fi
12826
12827 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12828 if test "${HAVE_X11}" = "yes"; then
12829 if test "${USE_X_TOOLKIT}" != "none"; then
12830
12831 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12832 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12833 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12834 $as_echo_n "(cached) " >&6
12835 else
12836 ac_check_lib_save_LIBS=$LIBS
12837 LIBS="-lXext $LIBS"
12838 cat >conftest.$ac_ext <<_ACEOF
12839 /* confdefs.h. */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12844
12845 /* Override any GCC internal prototype to avoid an error.
12846 Use char because int might match the return type of a GCC
12847 builtin and then its argument prototype would still apply. */
12848 #ifdef __cplusplus
12849 extern "C"
12850 #endif
12851 char XShapeQueryExtension ();
12852 int
12853 main ()
12854 {
12855 return XShapeQueryExtension ();
12856 ;
12857 return 0;
12858 }
12859 _ACEOF
12860 rm -f conftest.$ac_objext conftest$ac_exeext
12861 if { (ac_try="$ac_link"
12862 case "(($ac_try" in
12863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12864 *) ac_try_echo=$ac_try;;
12865 esac
12866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12867 $as_echo "$ac_try_echo") >&5
12868 (eval "$ac_link") 2>conftest.er1
12869 ac_status=$?
12870 grep -v '^ *+' conftest.er1 >conftest.err
12871 rm -f conftest.er1
12872 cat conftest.err >&5
12873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); } && {
12875 test -z "$ac_c_werror_flag" ||
12876 test ! -s conftest.err
12877 } && test -s conftest$ac_exeext && {
12878 test "$cross_compiling" = yes ||
12879 $as_test_x conftest$ac_exeext
12880 }; then
12881 ac_cv_lib_Xext_XShapeQueryExtension=yes
12882 else
12883 $as_echo "$as_me: failed program was:" >&5
12884 sed 's/^/| /' conftest.$ac_ext >&5
12885
12886 ac_cv_lib_Xext_XShapeQueryExtension=no
12887 fi
12888
12889 rm -rf conftest.dSYM
12890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12891 conftest$ac_exeext conftest.$ac_ext
12892 LIBS=$ac_check_lib_save_LIBS
12893 fi
12894 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12895 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12896 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12897 cat >>confdefs.h <<_ACEOF
12898 #define HAVE_LIBXEXT 1
12899 _ACEOF
12900
12901 LIBS="-lXext $LIBS"
12902
12903 fi
12904
12905 fi
12906 fi
12907
12908 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12909 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12910 $as_echo_n "checking for Motif version 2.1... " >&6; }
12911 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12912 $as_echo_n "(cached) " >&6
12913 else
12914 cat >conftest.$ac_ext <<_ACEOF
12915 /* confdefs.h. */
12916 _ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12920 #include <Xm/Xm.h>
12921 int
12922 main ()
12923 {
12924 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12925 int x = 5;
12926 #else
12927 Motif version prior to 2.1.
12928 #endif
12929 ;
12930 return 0;
12931 }
12932 _ACEOF
12933 rm -f conftest.$ac_objext
12934 if { (ac_try="$ac_compile"
12935 case "(($ac_try" in
12936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937 *) ac_try_echo=$ac_try;;
12938 esac
12939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12940 $as_echo "$ac_try_echo") >&5
12941 (eval "$ac_compile") 2>conftest.er1
12942 ac_status=$?
12943 grep -v '^ *+' conftest.er1 >conftest.err
12944 rm -f conftest.er1
12945 cat conftest.err >&5
12946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } && {
12948 test -z "$ac_c_werror_flag" ||
12949 test ! -s conftest.err
12950 } && test -s conftest.$ac_objext; then
12951 emacs_cv_motif_version_2_1=yes
12952 else
12953 $as_echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12955
12956 emacs_cv_motif_version_2_1=no
12957 fi
12958
12959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12960 fi
12961 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12962 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12963 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12964 if test $emacs_cv_motif_version_2_1 = yes; then
12965 HAVE_LIBXP=no
12966
12967 cat >>confdefs.h <<\_ACEOF
12968 #define HAVE_MOTIF_2_1 1
12969 _ACEOF
12970
12971 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12972 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12973 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12974 $as_echo_n "(cached) " >&6
12975 else
12976 ac_check_lib_save_LIBS=$LIBS
12977 LIBS="-lXp $LIBS"
12978 cat >conftest.$ac_ext <<_ACEOF
12979 /* confdefs.h. */
12980 _ACEOF
12981 cat confdefs.h >>conftest.$ac_ext
12982 cat >>conftest.$ac_ext <<_ACEOF
12983 /* end confdefs.h. */
12984
12985 /* Override any GCC internal prototype to avoid an error.
12986 Use char because int might match the return type of a GCC
12987 builtin and then its argument prototype would still apply. */
12988 #ifdef __cplusplus
12989 extern "C"
12990 #endif
12991 char XpCreateContext ();
12992 int
12993 main ()
12994 {
12995 return XpCreateContext ();
12996 ;
12997 return 0;
12998 }
12999 _ACEOF
13000 rm -f conftest.$ac_objext conftest$ac_exeext
13001 if { (ac_try="$ac_link"
13002 case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13005 esac
13006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13007 $as_echo "$ac_try_echo") >&5
13008 (eval "$ac_link") 2>conftest.er1
13009 ac_status=$?
13010 grep -v '^ *+' conftest.er1 >conftest.err
13011 rm -f conftest.er1
13012 cat conftest.err >&5
13013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } && {
13015 test -z "$ac_c_werror_flag" ||
13016 test ! -s conftest.err
13017 } && test -s conftest$ac_exeext && {
13018 test "$cross_compiling" = yes ||
13019 $as_test_x conftest$ac_exeext
13020 }; then
13021 ac_cv_lib_Xp_XpCreateContext=yes
13022 else
13023 $as_echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13025
13026 ac_cv_lib_Xp_XpCreateContext=no
13027 fi
13028
13029 rm -rf conftest.dSYM
13030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13031 conftest$ac_exeext conftest.$ac_ext
13032 LIBS=$ac_check_lib_save_LIBS
13033 fi
13034 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13035 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13036 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13037 HAVE_LIBXP=yes
13038 fi
13039
13040 if test ${HAVE_LIBXP} = yes; then
13041
13042 cat >>confdefs.h <<\_ACEOF
13043 #define HAVE_LIBXP 1
13044 _ACEOF
13045
13046 fi
13047 else
13048 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13049 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13050 if test "${emacs_cv_lesstif+set}" = set; then
13051 $as_echo_n "(cached) " >&6
13052 else
13053 # We put this in CFLAGS temporarily to precede other -I options
13054 # that might be in CFLAGS temporarily.
13055 # We put this in CPPFLAGS where it precedes the other -I options.
13056 OLD_CPPFLAGS=$CPPFLAGS
13057 OLD_CFLAGS=$CFLAGS
13058 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13059 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13060 cat >conftest.$ac_ext <<_ACEOF
13061 /* confdefs.h. */
13062 _ACEOF
13063 cat confdefs.h >>conftest.$ac_ext
13064 cat >>conftest.$ac_ext <<_ACEOF
13065 /* end confdefs.h. */
13066 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13067 int
13068 main ()
13069 {
13070 int x = 5;
13071 ;
13072 return 0;
13073 }
13074 _ACEOF
13075 rm -f conftest.$ac_objext
13076 if { (ac_try="$ac_compile"
13077 case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13080 esac
13081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13082 $as_echo "$ac_try_echo") >&5
13083 (eval "$ac_compile") 2>conftest.er1
13084 ac_status=$?
13085 grep -v '^ *+' conftest.er1 >conftest.err
13086 rm -f conftest.er1
13087 cat conftest.err >&5
13088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } && {
13090 test -z "$ac_c_werror_flag" ||
13091 test ! -s conftest.err
13092 } && test -s conftest.$ac_objext; then
13093 emacs_cv_lesstif=yes
13094 else
13095 $as_echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.$ac_ext >&5
13097
13098 emacs_cv_lesstif=no
13099 fi
13100
13101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13102 fi
13103 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13104 $as_echo "$emacs_cv_lesstif" >&6; }
13105 if test $emacs_cv_lesstif = yes; then
13106 # Make sure this -I option remains in CPPFLAGS after it is set
13107 # back to REAL_CPPFLAGS.
13108 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13109 # have those other -I options anyway. Ultimately, having this
13110 # directory ultimately in CPPFLAGS will be enough.
13111 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13112 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13113 else
13114 CFLAGS=$OLD_CFLAGS
13115 CPPFLAGS=$OLD_CPPFLAGS
13116 fi
13117 fi
13118 fi
13119
13120
13121
13122 USE_TOOLKIT_SCROLL_BARS=no
13123 if test "${with_toolkit_scroll_bars}" != "no"; then
13124 if test "${USE_X_TOOLKIT}" != "none"; then
13125 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13126 cat >>confdefs.h <<\_ACEOF
13127 #define USE_TOOLKIT_SCROLL_BARS 1
13128 _ACEOF
13129
13130 HAVE_XAW3D=no
13131 USE_TOOLKIT_SCROLL_BARS=yes
13132 elif test "${HAVE_XAW3D}" = "yes"; then
13133 cat >>confdefs.h <<\_ACEOF
13134 #define USE_TOOLKIT_SCROLL_BARS 1
13135 _ACEOF
13136
13137 USE_TOOLKIT_SCROLL_BARS=yes
13138 fi
13139 elif test "${HAVE_GTK}" = "yes"; then
13140 cat >>confdefs.h <<\_ACEOF
13141 #define USE_TOOLKIT_SCROLL_BARS 1
13142 _ACEOF
13143
13144 USE_TOOLKIT_SCROLL_BARS=yes
13145 elif test "${HAVE_NS}" = "yes"; then
13146 cat >>confdefs.h <<\_ACEOF
13147 #define USE_TOOLKIT_SCROLL_BARS 1
13148 _ACEOF
13149
13150 USE_TOOLKIT_SCROLL_BARS=yes
13151 fi
13152 fi
13153
13154 cat >conftest.$ac_ext <<_ACEOF
13155 /* confdefs.h. */
13156 _ACEOF
13157 cat confdefs.h >>conftest.$ac_ext
13158 cat >>conftest.$ac_ext <<_ACEOF
13159 /* end confdefs.h. */
13160
13161 #include <X11/Xlib.h>
13162 #include <X11/Xresource.h>
13163 int
13164 main ()
13165 {
13166 XIMProc callback;
13167 ;
13168 return 0;
13169 }
13170 _ACEOF
13171 rm -f conftest.$ac_objext
13172 if { (ac_try="$ac_compile"
13173 case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13176 esac
13177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13178 $as_echo "$ac_try_echo") >&5
13179 (eval "$ac_compile") 2>conftest.er1
13180 ac_status=$?
13181 grep -v '^ *+' conftest.er1 >conftest.err
13182 rm -f conftest.er1
13183 cat conftest.err >&5
13184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } && {
13186 test -z "$ac_c_werror_flag" ||
13187 test ! -s conftest.err
13188 } && test -s conftest.$ac_objext; then
13189 HAVE_XIM=yes
13190
13191 cat >>confdefs.h <<\_ACEOF
13192 #define HAVE_XIM 1
13193 _ACEOF
13194
13195 else
13196 $as_echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13198
13199 HAVE_XIM=no
13200 fi
13201
13202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13203
13204
13205 if test "${with_xim}" != "no"; then
13206
13207 cat >>confdefs.h <<\_ACEOF
13208 #define USE_XIM 1
13209 _ACEOF
13210
13211 fi
13212
13213
13214 if test "${HAVE_XIM}" != "no"; then
13215 late_CFLAGS=$CFLAGS
13216 if test "$GCC" = yes; then
13217 CFLAGS="$CFLAGS --pedantic-errors"
13218 fi
13219 cat >conftest.$ac_ext <<_ACEOF
13220 /* confdefs.h. */
13221 _ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13225
13226 #include <X11/Xlib.h>
13227 #include <X11/Xresource.h>
13228 int
13229 main ()
13230 {
13231 Display *display;
13232 XrmDatabase db;
13233 char *res_name;
13234 char *res_class;
13235 XIMProc callback;
13236 XPointer *client_data;
13237 #ifndef __GNUC__
13238 /* If we're not using GCC, it's probably not XFree86, and this is
13239 probably right, but we can't use something like --pedantic-errors. */
13240 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13241 char*, XIMProc, XPointer*);
13242 #endif
13243 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13244 client_data);
13245 ;
13246 return 0;
13247 }
13248 _ACEOF
13249 rm -f conftest.$ac_objext
13250 if { (ac_try="$ac_compile"
13251 case "(($ac_try" in
13252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13253 *) ac_try_echo=$ac_try;;
13254 esac
13255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13256 $as_echo "$ac_try_echo") >&5
13257 (eval "$ac_compile") 2>conftest.er1
13258 ac_status=$?
13259 grep -v '^ *+' conftest.er1 >conftest.err
13260 rm -f conftest.er1
13261 cat conftest.err >&5
13262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } && {
13264 test -z "$ac_c_werror_flag" ||
13265 test ! -s conftest.err
13266 } && test -s conftest.$ac_objext; then
13267 emacs_cv_arg6_star=yes
13268 else
13269 $as_echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13271
13272
13273 fi
13274
13275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13276
13277 if test "$emacs_cv_arg6_star" = yes; then
13278 cat >>confdefs.h <<\_ACEOF
13279 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13280 _ACEOF
13281
13282 else
13283 cat >>confdefs.h <<\_ACEOF
13284 #define XRegisterIMInstantiateCallback_arg6 XPointer
13285 _ACEOF
13286
13287 fi
13288 CFLAGS=$late_CFLAGS
13289 fi
13290
13291 ### Start of font-backend (under any platform) section.
13292 # (nothing here yet -- this is a placeholder)
13293 ### End of font-backend (under any platform) section.
13294
13295 ### Start of font-backend (under X11) section.
13296 if test "${HAVE_X11}" = "yes"; then
13297
13298 succeeded=no
13299
13300 # Extract the first word of "pkg-config", so it can be a program name with args.
13301 set dummy pkg-config; ac_word=$2
13302 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13303 $as_echo_n "checking for $ac_word... " >&6; }
13304 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13305 $as_echo_n "(cached) " >&6
13306 else
13307 case $PKG_CONFIG in
13308 [\\/]* | ?:[\\/]*)
13309 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13310 ;;
13311 *)
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13314 do
13315 IFS=$as_save_IFS
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13319 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 break 2
13322 fi
13323 done
13324 done
13325 IFS=$as_save_IFS
13326
13327 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13328 ;;
13329 esac
13330 fi
13331 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13332 if test -n "$PKG_CONFIG"; then
13333 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13334 $as_echo "$PKG_CONFIG" >&6; }
13335 else
13336 { $as_echo "$as_me:$LINENO: result: no" >&5
13337 $as_echo "no" >&6; }
13338 fi
13339
13340
13341
13342 if test "$PKG_CONFIG" = "no" ; then
13343 HAVE_FC=no
13344 else
13345 PKG_CONFIG_MIN_VERSION=0.9.0
13346 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13347 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13348 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13349
13350 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13351 { $as_echo "$as_me:$LINENO: result: yes" >&5
13352 $as_echo "yes" >&6; }
13353 succeeded=yes
13354
13355 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13356 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13357 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13358 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13359 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13360
13361 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13362 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13363 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13364 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13365 $as_echo "$FONTCONFIG_LIBS" >&6; }
13366 else
13367 { $as_echo "$as_me:$LINENO: result: no" >&5
13368 $as_echo "no" >&6; }
13369 FONTCONFIG_CFLAGS=""
13370 FONTCONFIG_LIBS=""
13371 ## If we have a custom action on failure, don't print errors, but
13372 ## do set a variable so people can do so.
13373 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13374
13375 fi
13376
13377
13378
13379 else
13380 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13381 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13382 fi
13383 fi
13384
13385 if test $succeeded = yes; then
13386 HAVE_FC=yes
13387 else
13388 HAVE_FC=no
13389 fi
13390
13391
13392 ## Use -lXft if available, unless `--with-xft=no'.
13393 HAVE_XFT=maybe
13394 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13395 with_xft="no";
13396 fi
13397 if test "x${with_xft}" != "xno"; then
13398
13399
13400 succeeded=no
13401
13402 # Extract the first word of "pkg-config", so it can be a program name with args.
13403 set dummy pkg-config; ac_word=$2
13404 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13405 $as_echo_n "checking for $ac_word... " >&6; }
13406 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13407 $as_echo_n "(cached) " >&6
13408 else
13409 case $PKG_CONFIG in
13410 [\\/]* | ?:[\\/]*)
13411 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13412 ;;
13413 *)
13414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13415 for as_dir in $PATH
13416 do
13417 IFS=$as_save_IFS
13418 test -z "$as_dir" && as_dir=.
13419 for ac_exec_ext in '' $ac_executable_extensions; do
13420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13421 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13423 break 2
13424 fi
13425 done
13426 done
13427 IFS=$as_save_IFS
13428
13429 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13430 ;;
13431 esac
13432 fi
13433 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13434 if test -n "$PKG_CONFIG"; then
13435 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13436 $as_echo "$PKG_CONFIG" >&6; }
13437 else
13438 { $as_echo "$as_me:$LINENO: result: no" >&5
13439 $as_echo "no" >&6; }
13440 fi
13441
13442
13443
13444 if test "$PKG_CONFIG" = "no" ; then
13445 HAVE_XFT=no
13446 else
13447 PKG_CONFIG_MIN_VERSION=0.9.0
13448 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13449 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13450 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13451
13452 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13453 { $as_echo "$as_me:$LINENO: result: yes" >&5
13454 $as_echo "yes" >&6; }
13455 succeeded=yes
13456
13457 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13458 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13459 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13460 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13461 $as_echo "$XFT_CFLAGS" >&6; }
13462
13463 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13464 $as_echo_n "checking XFT_LIBS... " >&6; }
13465 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13466 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13467 $as_echo "$XFT_LIBS" >&6; }
13468 else
13469 { $as_echo "$as_me:$LINENO: result: no" >&5
13470 $as_echo "no" >&6; }
13471 XFT_CFLAGS=""
13472 XFT_LIBS=""
13473 ## If we have a custom action on failure, don't print errors, but
13474 ## do set a variable so people can do so.
13475 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13476
13477 fi
13478
13479
13480
13481 else
13482 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13483 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13484 fi
13485 fi
13486
13487 if test $succeeded = yes; then
13488 :
13489 else
13490 HAVE_XFT=no
13491 fi
13492
13493 if test "$HAVE_XFT" != no; then
13494 OLD_CPPFLAGS="$CPPFLAGS"
13495 OLD_CFLAGS="$CFLAGS"
13496 OLD_LIBS="$LIBS"
13497 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13498 CFLAGS="$CFLAGS $XFT_CFLAGS"
13499 LIBS="$XFT_LIBS $LIBS"
13500 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13501 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13502 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13503 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13504 $as_echo_n "(cached) " >&6
13505 fi
13506 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13507 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13508 else
13509 # Is the header compilable?
13510 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13511 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13512 cat >conftest.$ac_ext <<_ACEOF
13513 /* confdefs.h. */
13514 _ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h. */
13518 $ac_includes_default
13519 #include <X11/Xft/Xft.h>
13520 _ACEOF
13521 rm -f conftest.$ac_objext
13522 if { (ac_try="$ac_compile"
13523 case "(($ac_try" in
13524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13525 *) ac_try_echo=$ac_try;;
13526 esac
13527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13528 $as_echo "$ac_try_echo") >&5
13529 (eval "$ac_compile") 2>conftest.er1
13530 ac_status=$?
13531 grep -v '^ *+' conftest.er1 >conftest.err
13532 rm -f conftest.er1
13533 cat conftest.err >&5
13534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } && {
13536 test -z "$ac_c_werror_flag" ||
13537 test ! -s conftest.err
13538 } && test -s conftest.$ac_objext; then
13539 ac_header_compiler=yes
13540 else
13541 $as_echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.$ac_ext >&5
13543
13544 ac_header_compiler=no
13545 fi
13546
13547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13548 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13549 $as_echo "$ac_header_compiler" >&6; }
13550
13551 # Is the header present?
13552 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13553 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h. */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 #include <X11/Xft/Xft.h>
13561 _ACEOF
13562 if { (ac_try="$ac_cpp conftest.$ac_ext"
13563 case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13566 esac
13567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13568 $as_echo "$ac_try_echo") >&5
13569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13570 ac_status=$?
13571 grep -v '^ *+' conftest.er1 >conftest.err
13572 rm -f conftest.er1
13573 cat conftest.err >&5
13574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } >/dev/null && {
13576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13577 test ! -s conftest.err
13578 }; then
13579 ac_header_preproc=yes
13580 else
13581 $as_echo "$as_me: failed program was:" >&5
13582 sed 's/^/| /' conftest.$ac_ext >&5
13583
13584 ac_header_preproc=no
13585 fi
13586
13587 rm -f conftest.err conftest.$ac_ext
13588 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13589 $as_echo "$ac_header_preproc" >&6; }
13590
13591 # So? What about this header?
13592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13593 yes:no: )
13594 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13595 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13596 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13597 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13598 ac_header_preproc=yes
13599 ;;
13600 no:yes:* )
13601 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13602 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13603 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13604 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13605 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13606 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13607 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13608 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13609 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13610 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13611 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13612 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13613
13614 ;;
13615 esac
13616 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13617 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13618 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13619 $as_echo_n "(cached) " >&6
13620 else
13621 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13622 fi
13623 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13624 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13625
13626 fi
13627 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13628 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13629 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13630 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13631 $as_echo_n "(cached) " >&6
13632 else
13633 ac_check_lib_save_LIBS=$LIBS
13634 LIBS="-lXft $XFT_LIBS $LIBS"
13635 cat >conftest.$ac_ext <<_ACEOF
13636 /* confdefs.h. */
13637 _ACEOF
13638 cat confdefs.h >>conftest.$ac_ext
13639 cat >>conftest.$ac_ext <<_ACEOF
13640 /* end confdefs.h. */
13641
13642 /* Override any GCC internal prototype to avoid an error.
13643 Use char because int might match the return type of a GCC
13644 builtin and then its argument prototype would still apply. */
13645 #ifdef __cplusplus
13646 extern "C"
13647 #endif
13648 char XftFontOpen ();
13649 int
13650 main ()
13651 {
13652 return XftFontOpen ();
13653 ;
13654 return 0;
13655 }
13656 _ACEOF
13657 rm -f conftest.$ac_objext conftest$ac_exeext
13658 if { (ac_try="$ac_link"
13659 case "(($ac_try" in
13660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13661 *) ac_try_echo=$ac_try;;
13662 esac
13663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13664 $as_echo "$ac_try_echo") >&5
13665 (eval "$ac_link") 2>conftest.er1
13666 ac_status=$?
13667 grep -v '^ *+' conftest.er1 >conftest.err
13668 rm -f conftest.er1
13669 cat conftest.err >&5
13670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); } && {
13672 test -z "$ac_c_werror_flag" ||
13673 test ! -s conftest.err
13674 } && test -s conftest$ac_exeext && {
13675 test "$cross_compiling" = yes ||
13676 $as_test_x conftest$ac_exeext
13677 }; then
13678 ac_cv_lib_Xft_XftFontOpen=yes
13679 else
13680 $as_echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13682
13683 ac_cv_lib_Xft_XftFontOpen=no
13684 fi
13685
13686 rm -rf conftest.dSYM
13687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13688 conftest$ac_exeext conftest.$ac_ext
13689 LIBS=$ac_check_lib_save_LIBS
13690 fi
13691 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13692 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13693 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13694 HAVE_XFT=yes
13695 fi
13696
13697 fi
13698
13699
13700
13701 if test "${HAVE_XFT}" = "yes"; then
13702
13703 cat >>confdefs.h <<\_ACEOF
13704 #define HAVE_XFT 1
13705 _ACEOF
13706
13707
13708 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13709 else
13710 CPPFLAGS="$OLD_CPPFLAGS"
13711 CFLAGS="$OLD_CFLAGS"
13712 LIBS="$OLD_LIBS"
13713 fi # "${HAVE_XFT}" = "yes"
13714 fi # "$HAVE_XFT" != no
13715 fi # "x${with_xft}" != "xno"
13716
13717 if test "$HAVE_XFT" != "yes"; then
13718 HAVE_XFT=no
13719 fi
13720
13721
13722 HAVE_FREETYPE=no
13723 ## We used to allow building with FreeType and without Xft.
13724 ## However, the ftx font backend driver is not in good shape.
13725 if test "${HAVE_XFT}" = "yes"; then
13726 HAVE_FREETYPE=yes
13727 FONTCONFIG_CFLAGS=
13728 FONTCONFIG_LIBS=
13729 fi
13730
13731 HAVE_LIBOTF=no
13732 if test "${HAVE_FREETYPE}" = "yes"; then
13733
13734 cat >>confdefs.h <<\_ACEOF
13735 #define HAVE_FREETYPE 1
13736 _ACEOF
13737
13738 if test "${with_libotf}" != "no"; then
13739
13740 succeeded=no
13741
13742 # Extract the first word of "pkg-config", so it can be a program name with args.
13743 set dummy pkg-config; ac_word=$2
13744 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13745 $as_echo_n "checking for $ac_word... " >&6; }
13746 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13747 $as_echo_n "(cached) " >&6
13748 else
13749 case $PKG_CONFIG in
13750 [\\/]* | ?:[\\/]*)
13751 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13752 ;;
13753 *)
13754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13755 for as_dir in $PATH
13756 do
13757 IFS=$as_save_IFS
13758 test -z "$as_dir" && as_dir=.
13759 for ac_exec_ext in '' $ac_executable_extensions; do
13760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13761 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13762 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13763 break 2
13764 fi
13765 done
13766 done
13767 IFS=$as_save_IFS
13768
13769 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13770 ;;
13771 esac
13772 fi
13773 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13774 if test -n "$PKG_CONFIG"; then
13775 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13776 $as_echo "$PKG_CONFIG" >&6; }
13777 else
13778 { $as_echo "$as_me:$LINENO: result: no" >&5
13779 $as_echo "no" >&6; }
13780 fi
13781
13782
13783
13784 if test "$PKG_CONFIG" = "no" ; then
13785 HAVE_LIBOTF=no
13786 else
13787 PKG_CONFIG_MIN_VERSION=0.9.0
13788 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13789 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
13790 $as_echo_n "checking for libotf... " >&6; }
13791
13792 if $PKG_CONFIG --exists "libotf" 2>&5; then
13793 { $as_echo "$as_me:$LINENO: result: yes" >&5
13794 $as_echo "yes" >&6; }
13795 succeeded=yes
13796
13797 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13798 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
13799 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13800 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13801 $as_echo "$LIBOTF_CFLAGS" >&6; }
13802
13803 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13804 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
13805 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13806 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13807 $as_echo "$LIBOTF_LIBS" >&6; }
13808 else
13809 { $as_echo "$as_me:$LINENO: result: no" >&5
13810 $as_echo "no" >&6; }
13811 LIBOTF_CFLAGS=""
13812 LIBOTF_LIBS=""
13813 ## If we have a custom action on failure, don't print errors, but
13814 ## do set a variable so people can do so.
13815 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13816
13817 fi
13818
13819
13820
13821 else
13822 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13823 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13824 fi
13825 fi
13826
13827 if test $succeeded = yes; then
13828 HAVE_LIBOTF=yes
13829 else
13830 HAVE_LIBOTF=no
13831 fi
13832
13833 if test "$HAVE_LIBOTF" = "yes"; then
13834
13835 cat >>confdefs.h <<\_ACEOF
13836 #define HAVE_LIBOTF 1
13837 _ACEOF
13838
13839 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
13840 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13841 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13842 $as_echo_n "(cached) " >&6
13843 else
13844 ac_check_lib_save_LIBS=$LIBS
13845 LIBS="-lotf $LIBS"
13846 cat >conftest.$ac_ext <<_ACEOF
13847 /* confdefs.h. */
13848 _ACEOF
13849 cat confdefs.h >>conftest.$ac_ext
13850 cat >>conftest.$ac_ext <<_ACEOF
13851 /* end confdefs.h. */
13852
13853 /* Override any GCC internal prototype to avoid an error.
13854 Use char because int might match the return type of a GCC
13855 builtin and then its argument prototype would still apply. */
13856 #ifdef __cplusplus
13857 extern "C"
13858 #endif
13859 char OTF_get_variation_glyphs ();
13860 int
13861 main ()
13862 {
13863 return OTF_get_variation_glyphs ();
13864 ;
13865 return 0;
13866 }
13867 _ACEOF
13868 rm -f conftest.$ac_objext conftest$ac_exeext
13869 if { (ac_try="$ac_link"
13870 case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13873 esac
13874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13875 $as_echo "$ac_try_echo") >&5
13876 (eval "$ac_link") 2>conftest.er1
13877 ac_status=$?
13878 grep -v '^ *+' conftest.er1 >conftest.err
13879 rm -f conftest.er1
13880 cat conftest.err >&5
13881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); } && {
13883 test -z "$ac_c_werror_flag" ||
13884 test ! -s conftest.err
13885 } && test -s conftest$ac_exeext && {
13886 test "$cross_compiling" = yes ||
13887 $as_test_x conftest$ac_exeext
13888 }; then
13889 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13890 else
13891 $as_echo "$as_me: failed program was:" >&5
13892 sed 's/^/| /' conftest.$ac_ext >&5
13893
13894 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13895 fi
13896
13897 rm -rf conftest.dSYM
13898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13899 conftest$ac_exeext conftest.$ac_ext
13900 LIBS=$ac_check_lib_save_LIBS
13901 fi
13902 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13903 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13904 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13905 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13906 else
13907 HAVE_OTF_GET_VARIATION_GLYPHS=no
13908 fi
13909
13910 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13911
13912 cat >>confdefs.h <<\_ACEOF
13913 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13914 _ACEOF
13915
13916 fi
13917 fi
13918 fi
13919 fi
13920
13921 HAVE_M17N_FLT=no
13922 if test "${HAVE_LIBOTF}" = yes; then
13923 if test "${with_m17n_flt}" != "no"; then
13924
13925 succeeded=no
13926
13927 # Extract the first word of "pkg-config", so it can be a program name with args.
13928 set dummy pkg-config; ac_word=$2
13929 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13930 $as_echo_n "checking for $ac_word... " >&6; }
13931 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13932 $as_echo_n "(cached) " >&6
13933 else
13934 case $PKG_CONFIG in
13935 [\\/]* | ?:[\\/]*)
13936 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13937 ;;
13938 *)
13939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13940 for as_dir in $PATH
13941 do
13942 IFS=$as_save_IFS
13943 test -z "$as_dir" && as_dir=.
13944 for ac_exec_ext in '' $ac_executable_extensions; do
13945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13946 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13947 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13948 break 2
13949 fi
13950 done
13951 done
13952 IFS=$as_save_IFS
13953
13954 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13955 ;;
13956 esac
13957 fi
13958 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13959 if test -n "$PKG_CONFIG"; then
13960 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13961 $as_echo "$PKG_CONFIG" >&6; }
13962 else
13963 { $as_echo "$as_me:$LINENO: result: no" >&5
13964 $as_echo "no" >&6; }
13965 fi
13966
13967
13968
13969 if test "$PKG_CONFIG" = "no" ; then
13970 HAVE_M17N_FLT=no
13971 else
13972 PKG_CONFIG_MIN_VERSION=0.9.0
13973 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13974 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
13975 $as_echo_n "checking for m17n-flt... " >&6; }
13976
13977 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13978 { $as_echo "$as_me:$LINENO: result: yes" >&5
13979 $as_echo "yes" >&6; }
13980 succeeded=yes
13981
13982 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13983 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
13984 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13985 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13986 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13987
13988 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13989 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
13990 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13991 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13992 $as_echo "$M17N_FLT_LIBS" >&6; }
13993 else
13994 { $as_echo "$as_me:$LINENO: result: no" >&5
13995 $as_echo "no" >&6; }
13996 M17N_FLT_CFLAGS=""
13997 M17N_FLT_LIBS=""
13998 ## If we have a custom action on failure, don't print errors, but
13999 ## do set a variable so people can do so.
14000 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14001
14002 fi
14003
14004
14005
14006 else
14007 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14008 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14009 fi
14010 fi
14011
14012 if test $succeeded = yes; then
14013 HAVE_M17N_FLT=yes
14014 else
14015 HAVE_M17N_FLT=no
14016 fi
14017
14018 if test "$HAVE_M17N_FLT" = "yes"; then
14019
14020 cat >>confdefs.h <<\_ACEOF
14021 #define HAVE_M17N_FLT 1
14022 _ACEOF
14023
14024 fi
14025 fi
14026 fi
14027 else
14028 HAVE_XFT=no
14029 HAVE_FREETYPE=no
14030 HAVE_LIBOTF=no
14031 HAVE_M17N_FLT=no
14032 fi
14033 ### End of font-backend (under X11) section.
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044 ### Use -lXpm if available, unless `--with-xpm=no'.
14045 HAVE_XPM=no
14046 if test "${HAVE_X11}" = "yes"; then
14047 if test "${with_xpm}" != "no"; then
14048 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14049 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14050 $as_echo_n "checking for X11/xpm.h... " >&6; }
14051 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14052 $as_echo_n "(cached) " >&6
14053 fi
14054 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14055 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14056 else
14057 # Is the header compilable?
14058 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14059 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14060 cat >conftest.$ac_ext <<_ACEOF
14061 /* confdefs.h. */
14062 _ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14066 $ac_includes_default
14067 #include <X11/xpm.h>
14068 _ACEOF
14069 rm -f conftest.$ac_objext
14070 if { (ac_try="$ac_compile"
14071 case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14074 esac
14075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14076 $as_echo "$ac_try_echo") >&5
14077 (eval "$ac_compile") 2>conftest.er1
14078 ac_status=$?
14079 grep -v '^ *+' conftest.er1 >conftest.err
14080 rm -f conftest.er1
14081 cat conftest.err >&5
14082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } && {
14084 test -z "$ac_c_werror_flag" ||
14085 test ! -s conftest.err
14086 } && test -s conftest.$ac_objext; then
14087 ac_header_compiler=yes
14088 else
14089 $as_echo "$as_me: failed program was:" >&5
14090 sed 's/^/| /' conftest.$ac_ext >&5
14091
14092 ac_header_compiler=no
14093 fi
14094
14095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14096 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14097 $as_echo "$ac_header_compiler" >&6; }
14098
14099 # Is the header present?
14100 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14101 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14102 cat >conftest.$ac_ext <<_ACEOF
14103 /* confdefs.h. */
14104 _ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14108 #include <X11/xpm.h>
14109 _ACEOF
14110 if { (ac_try="$ac_cpp conftest.$ac_ext"
14111 case "(($ac_try" in
14112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113 *) ac_try_echo=$ac_try;;
14114 esac
14115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14116 $as_echo "$ac_try_echo") >&5
14117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14118 ac_status=$?
14119 grep -v '^ *+' conftest.er1 >conftest.err
14120 rm -f conftest.er1
14121 cat conftest.err >&5
14122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } >/dev/null && {
14124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14125 test ! -s conftest.err
14126 }; then
14127 ac_header_preproc=yes
14128 else
14129 $as_echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14131
14132 ac_header_preproc=no
14133 fi
14134
14135 rm -f conftest.err conftest.$ac_ext
14136 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14137 $as_echo "$ac_header_preproc" >&6; }
14138
14139 # So? What about this header?
14140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14141 yes:no: )
14142 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14143 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14144 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14145 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14146 ac_header_preproc=yes
14147 ;;
14148 no:yes:* )
14149 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14150 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14151 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14152 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14153 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14154 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14155 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14156 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14157 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14158 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14159 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14160 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14161
14162 ;;
14163 esac
14164 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14165 $as_echo_n "checking for X11/xpm.h... " >&6; }
14166 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14167 $as_echo_n "(cached) " >&6
14168 else
14169 ac_cv_header_X11_xpm_h=$ac_header_preproc
14170 fi
14171 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14172 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14173
14174 fi
14175 if test $ac_cv_header_X11_xpm_h = yes; then
14176 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14177 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14178 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14179 $as_echo_n "(cached) " >&6
14180 else
14181 ac_check_lib_save_LIBS=$LIBS
14182 LIBS="-lXpm -lX11 $LIBS"
14183 cat >conftest.$ac_ext <<_ACEOF
14184 /* confdefs.h. */
14185 _ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14189
14190 /* Override any GCC internal prototype to avoid an error.
14191 Use char because int might match the return type of a GCC
14192 builtin and then its argument prototype would still apply. */
14193 #ifdef __cplusplus
14194 extern "C"
14195 #endif
14196 char XpmReadFileToPixmap ();
14197 int
14198 main ()
14199 {
14200 return XpmReadFileToPixmap ();
14201 ;
14202 return 0;
14203 }
14204 _ACEOF
14205 rm -f conftest.$ac_objext conftest$ac_exeext
14206 if { (ac_try="$ac_link"
14207 case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14210 esac
14211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14212 $as_echo "$ac_try_echo") >&5
14213 (eval "$ac_link") 2>conftest.er1
14214 ac_status=$?
14215 grep -v '^ *+' conftest.er1 >conftest.err
14216 rm -f conftest.er1
14217 cat conftest.err >&5
14218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } && {
14220 test -z "$ac_c_werror_flag" ||
14221 test ! -s conftest.err
14222 } && test -s conftest$ac_exeext && {
14223 test "$cross_compiling" = yes ||
14224 $as_test_x conftest$ac_exeext
14225 }; then
14226 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14227 else
14228 $as_echo "$as_me: failed program was:" >&5
14229 sed 's/^/| /' conftest.$ac_ext >&5
14230
14231 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14232 fi
14233
14234 rm -rf conftest.dSYM
14235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14236 conftest$ac_exeext conftest.$ac_ext
14237 LIBS=$ac_check_lib_save_LIBS
14238 fi
14239 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14240 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14241 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14242 HAVE_XPM=yes
14243 fi
14244
14245 fi
14246
14247
14248 if test "${HAVE_XPM}" = "yes"; then
14249 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14250 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14251 cat >conftest.$ac_ext <<_ACEOF
14252 /* confdefs.h. */
14253 _ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h. */
14257 #include "X11/xpm.h"
14258 #ifndef XpmReturnAllocPixels
14259 no_return_alloc_pixels
14260 #endif
14261
14262 _ACEOF
14263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14264 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14265 HAVE_XPM=no
14266 else
14267 HAVE_XPM=yes
14268 fi
14269 rm -f conftest*
14270
14271
14272 if test "${HAVE_XPM}" = "yes"; then
14273 { $as_echo "$as_me:$LINENO: result: yes" >&5
14274 $as_echo "yes" >&6; }
14275 else
14276 { $as_echo "$as_me:$LINENO: result: no" >&5
14277 $as_echo "no" >&6; }
14278 fi
14279 fi
14280 fi
14281
14282 if test "${HAVE_XPM}" = "yes"; then
14283
14284 cat >>confdefs.h <<\_ACEOF
14285 #define HAVE_XPM 1
14286 _ACEOF
14287
14288 fi
14289 fi
14290
14291 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14292 HAVE_JPEG=no
14293 if test "${HAVE_X11}" = "yes"; then
14294 if test "${with_jpeg}" != "no"; then
14295 if test "${ac_cv_header_jerror_h+set}" = set; then
14296 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14297 $as_echo_n "checking for jerror.h... " >&6; }
14298 if test "${ac_cv_header_jerror_h+set}" = set; then
14299 $as_echo_n "(cached) " >&6
14300 fi
14301 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14302 $as_echo "$ac_cv_header_jerror_h" >&6; }
14303 else
14304 # Is the header compilable?
14305 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14306 $as_echo_n "checking jerror.h usability... " >&6; }
14307 cat >conftest.$ac_ext <<_ACEOF
14308 /* confdefs.h. */
14309 _ACEOF
14310 cat confdefs.h >>conftest.$ac_ext
14311 cat >>conftest.$ac_ext <<_ACEOF
14312 /* end confdefs.h. */
14313 $ac_includes_default
14314 #include <jerror.h>
14315 _ACEOF
14316 rm -f conftest.$ac_objext
14317 if { (ac_try="$ac_compile"
14318 case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14321 esac
14322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14323 $as_echo "$ac_try_echo") >&5
14324 (eval "$ac_compile") 2>conftest.er1
14325 ac_status=$?
14326 grep -v '^ *+' conftest.er1 >conftest.err
14327 rm -f conftest.er1
14328 cat conftest.err >&5
14329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } && {
14331 test -z "$ac_c_werror_flag" ||
14332 test ! -s conftest.err
14333 } && test -s conftest.$ac_objext; then
14334 ac_header_compiler=yes
14335 else
14336 $as_echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14338
14339 ac_header_compiler=no
14340 fi
14341
14342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14343 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14344 $as_echo "$ac_header_compiler" >&6; }
14345
14346 # Is the header present?
14347 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14348 $as_echo_n "checking jerror.h presence... " >&6; }
14349 cat >conftest.$ac_ext <<_ACEOF
14350 /* confdefs.h. */
14351 _ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h. */
14355 #include <jerror.h>
14356 _ACEOF
14357 if { (ac_try="$ac_cpp conftest.$ac_ext"
14358 case "(($ac_try" in
14359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14360 *) ac_try_echo=$ac_try;;
14361 esac
14362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14363 $as_echo "$ac_try_echo") >&5
14364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14365 ac_status=$?
14366 grep -v '^ *+' conftest.er1 >conftest.err
14367 rm -f conftest.er1
14368 cat conftest.err >&5
14369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } >/dev/null && {
14371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14372 test ! -s conftest.err
14373 }; then
14374 ac_header_preproc=yes
14375 else
14376 $as_echo "$as_me: failed program was:" >&5
14377 sed 's/^/| /' conftest.$ac_ext >&5
14378
14379 ac_header_preproc=no
14380 fi
14381
14382 rm -f conftest.err conftest.$ac_ext
14383 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14384 $as_echo "$ac_header_preproc" >&6; }
14385
14386 # So? What about this header?
14387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14388 yes:no: )
14389 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14390 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14391 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14392 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14393 ac_header_preproc=yes
14394 ;;
14395 no:yes:* )
14396 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14397 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14398 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14399 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14400 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14401 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14402 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14403 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14404 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14405 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14406 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14407 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14408
14409 ;;
14410 esac
14411 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14412 $as_echo_n "checking for jerror.h... " >&6; }
14413 if test "${ac_cv_header_jerror_h+set}" = set; then
14414 $as_echo_n "(cached) " >&6
14415 else
14416 ac_cv_header_jerror_h=$ac_header_preproc
14417 fi
14418 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14419 $as_echo "$ac_cv_header_jerror_h" >&6; }
14420
14421 fi
14422 if test $ac_cv_header_jerror_h = yes; then
14423 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14424 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14425 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14426 $as_echo_n "(cached) " >&6
14427 else
14428 ac_check_lib_save_LIBS=$LIBS
14429 LIBS="-ljpeg $LIBS"
14430 cat >conftest.$ac_ext <<_ACEOF
14431 /* confdefs.h. */
14432 _ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h. */
14436
14437 /* Override any GCC internal prototype to avoid an error.
14438 Use char because int might match the return type of a GCC
14439 builtin and then its argument prototype would still apply. */
14440 #ifdef __cplusplus
14441 extern "C"
14442 #endif
14443 char jpeg_destroy_compress ();
14444 int
14445 main ()
14446 {
14447 return jpeg_destroy_compress ();
14448 ;
14449 return 0;
14450 }
14451 _ACEOF
14452 rm -f conftest.$ac_objext conftest$ac_exeext
14453 if { (ac_try="$ac_link"
14454 case "(($ac_try" in
14455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14456 *) ac_try_echo=$ac_try;;
14457 esac
14458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14459 $as_echo "$ac_try_echo") >&5
14460 (eval "$ac_link") 2>conftest.er1
14461 ac_status=$?
14462 grep -v '^ *+' conftest.er1 >conftest.err
14463 rm -f conftest.er1
14464 cat conftest.err >&5
14465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && {
14467 test -z "$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14469 } && test -s conftest$ac_exeext && {
14470 test "$cross_compiling" = yes ||
14471 $as_test_x conftest$ac_exeext
14472 }; then
14473 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14474 else
14475 $as_echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14477
14478 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14479 fi
14480
14481 rm -rf conftest.dSYM
14482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14483 conftest$ac_exeext conftest.$ac_ext
14484 LIBS=$ac_check_lib_save_LIBS
14485 fi
14486 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14487 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14488 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14489 HAVE_JPEG=yes
14490 fi
14491
14492 fi
14493
14494
14495 fi
14496
14497
14498 if test "${HAVE_JPEG}" = "yes"; then
14499 cat >>confdefs.h <<\_ACEOF
14500 #define HAVE_JPEG 1
14501 _ACEOF
14502
14503 cat >conftest.$ac_ext <<_ACEOF
14504 /* confdefs.h. */
14505 _ACEOF
14506 cat confdefs.h >>conftest.$ac_ext
14507 cat >>conftest.$ac_ext <<_ACEOF
14508 /* end confdefs.h. */
14509 #include <jpeglib.h>
14510 version=JPEG_LIB_VERSION
14511
14512 _ACEOF
14513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14514 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14515 cat >>confdefs.h <<\_ACEOF
14516 #define HAVE_JPEG 1
14517 _ACEOF
14518
14519 else
14520 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14521 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14522 HAVE_JPEG=no
14523 fi
14524 rm -f conftest*
14525
14526 fi
14527 fi
14528
14529 ### Use -lpng if available, unless `--with-png=no'.
14530 HAVE_PNG=no
14531 if test "${HAVE_X11}" = "yes"; then
14532 if test "${with_png}" != "no"; then
14533 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14534 # in /usr/include/libpng.
14535
14536
14537 for ac_header in png.h libpng/png.h
14538 do
14539 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14541 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14542 $as_echo_n "checking for $ac_header... " >&6; }
14543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14544 $as_echo_n "(cached) " >&6
14545 fi
14546 ac_res=`eval 'as_val=${'$as_ac_Header'}
14547 $as_echo "$as_val"'`
14548 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14549 $as_echo "$ac_res" >&6; }
14550 else
14551 # Is the header compilable?
14552 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14553 $as_echo_n "checking $ac_header usability... " >&6; }
14554 cat >conftest.$ac_ext <<_ACEOF
14555 /* confdefs.h. */
14556 _ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h. */
14560 $ac_includes_default
14561 #include <$ac_header>
14562 _ACEOF
14563 rm -f conftest.$ac_objext
14564 if { (ac_try="$ac_compile"
14565 case "(($ac_try" in
14566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14567 *) ac_try_echo=$ac_try;;
14568 esac
14569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14570 $as_echo "$ac_try_echo") >&5
14571 (eval "$ac_compile") 2>conftest.er1
14572 ac_status=$?
14573 grep -v '^ *+' conftest.er1 >conftest.err
14574 rm -f conftest.er1
14575 cat conftest.err >&5
14576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } && {
14578 test -z "$ac_c_werror_flag" ||
14579 test ! -s conftest.err
14580 } && test -s conftest.$ac_objext; then
14581 ac_header_compiler=yes
14582 else
14583 $as_echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14585
14586 ac_header_compiler=no
14587 fi
14588
14589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14590 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14591 $as_echo "$ac_header_compiler" >&6; }
14592
14593 # Is the header present?
14594 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14595 $as_echo_n "checking $ac_header presence... " >&6; }
14596 cat >conftest.$ac_ext <<_ACEOF
14597 /* confdefs.h. */
14598 _ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14602 #include <$ac_header>
14603 _ACEOF
14604 if { (ac_try="$ac_cpp conftest.$ac_ext"
14605 case "(($ac_try" in
14606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607 *) ac_try_echo=$ac_try;;
14608 esac
14609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14610 $as_echo "$ac_try_echo") >&5
14611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14612 ac_status=$?
14613 grep -v '^ *+' conftest.er1 >conftest.err
14614 rm -f conftest.er1
14615 cat conftest.err >&5
14616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } >/dev/null && {
14618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14619 test ! -s conftest.err
14620 }; then
14621 ac_header_preproc=yes
14622 else
14623 $as_echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14625
14626 ac_header_preproc=no
14627 fi
14628
14629 rm -f conftest.err conftest.$ac_ext
14630 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14631 $as_echo "$ac_header_preproc" >&6; }
14632
14633 # So? What about this header?
14634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14635 yes:no: )
14636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14637 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14639 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14640 ac_header_preproc=yes
14641 ;;
14642 no:yes:* )
14643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14644 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14646 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14648 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14650 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14652 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14654 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14655
14656 ;;
14657 esac
14658 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14659 $as_echo_n "checking for $ac_header... " >&6; }
14660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14661 $as_echo_n "(cached) " >&6
14662 else
14663 eval "$as_ac_Header=\$ac_header_preproc"
14664 fi
14665 ac_res=`eval 'as_val=${'$as_ac_Header'}
14666 $as_echo "$as_val"'`
14667 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14668 $as_echo "$ac_res" >&6; }
14669
14670 fi
14671 if test `eval 'as_val=${'$as_ac_Header'}
14672 $as_echo "$as_val"'` = yes; then
14673 cat >>confdefs.h <<_ACEOF
14674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14675 _ACEOF
14676
14677 fi
14678
14679 done
14680
14681 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14682 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14683 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
14684 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14685 $as_echo_n "(cached) " >&6
14686 else
14687 ac_check_lib_save_LIBS=$LIBS
14688 LIBS="-lpng -lz -lm $LIBS"
14689 cat >conftest.$ac_ext <<_ACEOF
14690 /* confdefs.h. */
14691 _ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14695
14696 /* Override any GCC internal prototype to avoid an error.
14697 Use char because int might match the return type of a GCC
14698 builtin and then its argument prototype would still apply. */
14699 #ifdef __cplusplus
14700 extern "C"
14701 #endif
14702 char png_get_channels ();
14703 int
14704 main ()
14705 {
14706 return png_get_channels ();
14707 ;
14708 return 0;
14709 }
14710 _ACEOF
14711 rm -f conftest.$ac_objext conftest$ac_exeext
14712 if { (ac_try="$ac_link"
14713 case "(($ac_try" in
14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715 *) ac_try_echo=$ac_try;;
14716 esac
14717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14718 $as_echo "$ac_try_echo") >&5
14719 (eval "$ac_link") 2>conftest.er1
14720 ac_status=$?
14721 grep -v '^ *+' conftest.er1 >conftest.err
14722 rm -f conftest.er1
14723 cat conftest.err >&5
14724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } && {
14726 test -z "$ac_c_werror_flag" ||
14727 test ! -s conftest.err
14728 } && test -s conftest$ac_exeext && {
14729 test "$cross_compiling" = yes ||
14730 $as_test_x conftest$ac_exeext
14731 }; then
14732 ac_cv_lib_png_png_get_channels=yes
14733 else
14734 $as_echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14736
14737 ac_cv_lib_png_png_get_channels=no
14738 fi
14739
14740 rm -rf conftest.dSYM
14741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14742 conftest$ac_exeext conftest.$ac_ext
14743 LIBS=$ac_check_lib_save_LIBS
14744 fi
14745 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14746 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14747 if test $ac_cv_lib_png_png_get_channels = yes; then
14748 HAVE_PNG=yes
14749 fi
14750
14751 fi
14752 fi
14753
14754 if test "${HAVE_PNG}" = "yes"; then
14755
14756 cat >>confdefs.h <<\_ACEOF
14757 #define HAVE_PNG 1
14758 _ACEOF
14759
14760 fi
14761 fi
14762
14763 ### Use -ltiff if available, unless `--with-tiff=no'.
14764 HAVE_TIFF=no
14765 if test "${HAVE_X11}" = "yes"; then
14766 if test "${with_tiff}" != "no"; then
14767 if test "${ac_cv_header_tiffio_h+set}" = set; then
14768 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14769 $as_echo_n "checking for tiffio.h... " >&6; }
14770 if test "${ac_cv_header_tiffio_h+set}" = set; then
14771 $as_echo_n "(cached) " >&6
14772 fi
14773 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14774 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14775 else
14776 # Is the header compilable?
14777 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14778 $as_echo_n "checking tiffio.h usability... " >&6; }
14779 cat >conftest.$ac_ext <<_ACEOF
14780 /* confdefs.h. */
14781 _ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14785 $ac_includes_default
14786 #include <tiffio.h>
14787 _ACEOF
14788 rm -f conftest.$ac_objext
14789 if { (ac_try="$ac_compile"
14790 case "(($ac_try" in
14791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14792 *) ac_try_echo=$ac_try;;
14793 esac
14794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14795 $as_echo "$ac_try_echo") >&5
14796 (eval "$ac_compile") 2>conftest.er1
14797 ac_status=$?
14798 grep -v '^ *+' conftest.er1 >conftest.err
14799 rm -f conftest.er1
14800 cat conftest.err >&5
14801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } && {
14803 test -z "$ac_c_werror_flag" ||
14804 test ! -s conftest.err
14805 } && test -s conftest.$ac_objext; then
14806 ac_header_compiler=yes
14807 else
14808 $as_echo "$as_me: failed program was:" >&5
14809 sed 's/^/| /' conftest.$ac_ext >&5
14810
14811 ac_header_compiler=no
14812 fi
14813
14814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14815 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14816 $as_echo "$ac_header_compiler" >&6; }
14817
14818 # Is the header present?
14819 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14820 $as_echo_n "checking tiffio.h presence... " >&6; }
14821 cat >conftest.$ac_ext <<_ACEOF
14822 /* confdefs.h. */
14823 _ACEOF
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h. */
14827 #include <tiffio.h>
14828 _ACEOF
14829 if { (ac_try="$ac_cpp conftest.$ac_ext"
14830 case "(($ac_try" in
14831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14833 esac
14834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14835 $as_echo "$ac_try_echo") >&5
14836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14837 ac_status=$?
14838 grep -v '^ *+' conftest.er1 >conftest.err
14839 rm -f conftest.er1
14840 cat conftest.err >&5
14841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } >/dev/null && {
14843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14844 test ! -s conftest.err
14845 }; then
14846 ac_header_preproc=yes
14847 else
14848 $as_echo "$as_me: failed program was:" >&5
14849 sed 's/^/| /' conftest.$ac_ext >&5
14850
14851 ac_header_preproc=no
14852 fi
14853
14854 rm -f conftest.err conftest.$ac_ext
14855 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14856 $as_echo "$ac_header_preproc" >&6; }
14857
14858 # So? What about this header?
14859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14860 yes:no: )
14861 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14862 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14863 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14864 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14865 ac_header_preproc=yes
14866 ;;
14867 no:yes:* )
14868 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14869 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14870 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14871 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14872 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14873 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14874 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14875 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14876 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14877 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14878 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14879 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14880
14881 ;;
14882 esac
14883 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14884 $as_echo_n "checking for tiffio.h... " >&6; }
14885 if test "${ac_cv_header_tiffio_h+set}" = set; then
14886 $as_echo_n "(cached) " >&6
14887 else
14888 ac_cv_header_tiffio_h=$ac_header_preproc
14889 fi
14890 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14891 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14892
14893 fi
14894 if test $ac_cv_header_tiffio_h = yes; then
14895 tifflibs="-lz -lm"
14896 # At least one tiff package requires the jpeg library.
14897 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14898 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14899 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
14900 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14901 $as_echo_n "(cached) " >&6
14902 else
14903 ac_check_lib_save_LIBS=$LIBS
14904 LIBS="-ltiff $tifflibs $LIBS"
14905 cat >conftest.$ac_ext <<_ACEOF
14906 /* confdefs.h. */
14907 _ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h. */
14911
14912 /* Override any GCC internal prototype to avoid an error.
14913 Use char because int might match the return type of a GCC
14914 builtin and then its argument prototype would still apply. */
14915 #ifdef __cplusplus
14916 extern "C"
14917 #endif
14918 char TIFFGetVersion ();
14919 int
14920 main ()
14921 {
14922 return TIFFGetVersion ();
14923 ;
14924 return 0;
14925 }
14926 _ACEOF
14927 rm -f conftest.$ac_objext conftest$ac_exeext
14928 if { (ac_try="$ac_link"
14929 case "(($ac_try" in
14930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931 *) ac_try_echo=$ac_try;;
14932 esac
14933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14934 $as_echo "$ac_try_echo") >&5
14935 (eval "$ac_link") 2>conftest.er1
14936 ac_status=$?
14937 grep -v '^ *+' conftest.er1 >conftest.err
14938 rm -f conftest.er1
14939 cat conftest.err >&5
14940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } && {
14942 test -z "$ac_c_werror_flag" ||
14943 test ! -s conftest.err
14944 } && test -s conftest$ac_exeext && {
14945 test "$cross_compiling" = yes ||
14946 $as_test_x conftest$ac_exeext
14947 }; then
14948 ac_cv_lib_tiff_TIFFGetVersion=yes
14949 else
14950 $as_echo "$as_me: failed program was:" >&5
14951 sed 's/^/| /' conftest.$ac_ext >&5
14952
14953 ac_cv_lib_tiff_TIFFGetVersion=no
14954 fi
14955
14956 rm -rf conftest.dSYM
14957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14958 conftest$ac_exeext conftest.$ac_ext
14959 LIBS=$ac_check_lib_save_LIBS
14960 fi
14961 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14962 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14963 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14964 HAVE_TIFF=yes
14965 fi
14966
14967 fi
14968
14969
14970 fi
14971
14972 if test "${HAVE_TIFF}" = "yes"; then
14973
14974 cat >>confdefs.h <<\_ACEOF
14975 #define HAVE_TIFF 1
14976 _ACEOF
14977
14978 fi
14979 fi
14980
14981 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14982 HAVE_GIF=no
14983 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14984 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14985 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14986 $as_echo_n "checking for gif_lib.h... " >&6; }
14987 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14988 $as_echo_n "(cached) " >&6
14989 fi
14990 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14991 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14992 else
14993 # Is the header compilable?
14994 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14995 $as_echo_n "checking gif_lib.h usability... " >&6; }
14996 cat >conftest.$ac_ext <<_ACEOF
14997 /* confdefs.h. */
14998 _ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15002 $ac_includes_default
15003 #include <gif_lib.h>
15004 _ACEOF
15005 rm -f conftest.$ac_objext
15006 if { (ac_try="$ac_compile"
15007 case "(($ac_try" in
15008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15010 esac
15011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15012 $as_echo "$ac_try_echo") >&5
15013 (eval "$ac_compile") 2>conftest.er1
15014 ac_status=$?
15015 grep -v '^ *+' conftest.er1 >conftest.err
15016 rm -f conftest.er1
15017 cat conftest.err >&5
15018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } && {
15020 test -z "$ac_c_werror_flag" ||
15021 test ! -s conftest.err
15022 } && test -s conftest.$ac_objext; then
15023 ac_header_compiler=yes
15024 else
15025 $as_echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15027
15028 ac_header_compiler=no
15029 fi
15030
15031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15032 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15033 $as_echo "$ac_header_compiler" >&6; }
15034
15035 # Is the header present?
15036 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15037 $as_echo_n "checking gif_lib.h presence... " >&6; }
15038 cat >conftest.$ac_ext <<_ACEOF
15039 /* confdefs.h. */
15040 _ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h. */
15044 #include <gif_lib.h>
15045 _ACEOF
15046 if { (ac_try="$ac_cpp conftest.$ac_ext"
15047 case "(($ac_try" in
15048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049 *) ac_try_echo=$ac_try;;
15050 esac
15051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15052 $as_echo "$ac_try_echo") >&5
15053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15054 ac_status=$?
15055 grep -v '^ *+' conftest.er1 >conftest.err
15056 rm -f conftest.er1
15057 cat conftest.err >&5
15058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); } >/dev/null && {
15060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15061 test ! -s conftest.err
15062 }; then
15063 ac_header_preproc=yes
15064 else
15065 $as_echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15067
15068 ac_header_preproc=no
15069 fi
15070
15071 rm -f conftest.err conftest.$ac_ext
15072 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15073 $as_echo "$ac_header_preproc" >&6; }
15074
15075 # So? What about this header?
15076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15077 yes:no: )
15078 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15079 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15080 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15081 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15082 ac_header_preproc=yes
15083 ;;
15084 no:yes:* )
15085 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15086 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15087 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15088 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15089 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15090 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15091 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15092 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15093 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15094 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15095 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15096 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15097
15098 ;;
15099 esac
15100 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15101 $as_echo_n "checking for gif_lib.h... " >&6; }
15102 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15103 $as_echo_n "(cached) " >&6
15104 else
15105 ac_cv_header_gif_lib_h=$ac_header_preproc
15106 fi
15107 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15108 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15109
15110 fi
15111 if test $ac_cv_header_gif_lib_h = yes; then
15112 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15113 # Earlier versions can crash Emacs.
15114 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15115 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15116 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15117 $as_echo_n "(cached) " >&6
15118 else
15119 ac_check_lib_save_LIBS=$LIBS
15120 LIBS="-lgif $LIBS"
15121 cat >conftest.$ac_ext <<_ACEOF
15122 /* confdefs.h. */
15123 _ACEOF
15124 cat confdefs.h >>conftest.$ac_ext
15125 cat >>conftest.$ac_ext <<_ACEOF
15126 /* end confdefs.h. */
15127
15128 /* Override any GCC internal prototype to avoid an error.
15129 Use char because int might match the return type of a GCC
15130 builtin and then its argument prototype would still apply. */
15131 #ifdef __cplusplus
15132 extern "C"
15133 #endif
15134 char EGifPutExtensionLast ();
15135 int
15136 main ()
15137 {
15138 return EGifPutExtensionLast ();
15139 ;
15140 return 0;
15141 }
15142 _ACEOF
15143 rm -f conftest.$ac_objext conftest$ac_exeext
15144 if { (ac_try="$ac_link"
15145 case "(($ac_try" in
15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15148 esac
15149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15150 $as_echo "$ac_try_echo") >&5
15151 (eval "$ac_link") 2>conftest.er1
15152 ac_status=$?
15153 grep -v '^ *+' conftest.er1 >conftest.err
15154 rm -f conftest.er1
15155 cat conftest.err >&5
15156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } && {
15158 test -z "$ac_c_werror_flag" ||
15159 test ! -s conftest.err
15160 } && test -s conftest$ac_exeext && {
15161 test "$cross_compiling" = yes ||
15162 $as_test_x conftest$ac_exeext
15163 }; then
15164 ac_cv_lib_gif_EGifPutExtensionLast=yes
15165 else
15166 $as_echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15168
15169 ac_cv_lib_gif_EGifPutExtensionLast=no
15170 fi
15171
15172 rm -rf conftest.dSYM
15173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15174 conftest$ac_exeext conftest.$ac_ext
15175 LIBS=$ac_check_lib_save_LIBS
15176 fi
15177 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15178 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15179 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15180 HAVE_GIF=yes
15181 else
15182 try_libungif=yes
15183 fi
15184
15185 fi
15186
15187
15188
15189 if test "$HAVE_GIF" = yes; then
15190 ac_gif_lib_name="-lgif"
15191 fi
15192
15193 # If gif_lib.h but no libgif, try libungif.
15194 if test x"$try_libungif" = xyes; then
15195 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15196 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15197 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15198 $as_echo_n "(cached) " >&6
15199 else
15200 ac_check_lib_save_LIBS=$LIBS
15201 LIBS="-lungif $LIBS"
15202 cat >conftest.$ac_ext <<_ACEOF
15203 /* confdefs.h. */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15208
15209 /* Override any GCC internal prototype to avoid an error.
15210 Use char because int might match the return type of a GCC
15211 builtin and then its argument prototype would still apply. */
15212 #ifdef __cplusplus
15213 extern "C"
15214 #endif
15215 char EGifPutExtensionLast ();
15216 int
15217 main ()
15218 {
15219 return EGifPutExtensionLast ();
15220 ;
15221 return 0;
15222 }
15223 _ACEOF
15224 rm -f conftest.$ac_objext conftest$ac_exeext
15225 if { (ac_try="$ac_link"
15226 case "(($ac_try" in
15227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228 *) ac_try_echo=$ac_try;;
15229 esac
15230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15231 $as_echo "$ac_try_echo") >&5
15232 (eval "$ac_link") 2>conftest.er1
15233 ac_status=$?
15234 grep -v '^ *+' conftest.er1 >conftest.err
15235 rm -f conftest.er1
15236 cat conftest.err >&5
15237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } && {
15239 test -z "$ac_c_werror_flag" ||
15240 test ! -s conftest.err
15241 } && test -s conftest$ac_exeext && {
15242 test "$cross_compiling" = yes ||
15243 $as_test_x conftest$ac_exeext
15244 }; then
15245 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15246 else
15247 $as_echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.$ac_ext >&5
15249
15250 ac_cv_lib_ungif_EGifPutExtensionLast=no
15251 fi
15252
15253 rm -rf conftest.dSYM
15254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15255 conftest$ac_exeext conftest.$ac_ext
15256 LIBS=$ac_check_lib_save_LIBS
15257 fi
15258 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15259 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15260 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15261 HAVE_GIF=yes
15262 fi
15263
15264
15265 if test "$HAVE_GIF" = yes; then
15266
15267 cat >>confdefs.h <<\_ACEOF
15268 #define LIBGIF -lungif
15269 _ACEOF
15270
15271 ac_gif_lib_name="-lungif"
15272 fi
15273 fi
15274
15275 if test "${HAVE_GIF}" = "yes"; then
15276
15277 cat >>confdefs.h <<\_ACEOF
15278 #define HAVE_GIF 1
15279 _ACEOF
15280
15281 fi
15282 fi
15283
15284 if test "${HAVE_X11}" = "yes"; then
15285 MISSING=""
15286 WITH_NO=""
15287 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15288 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15289 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15290 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15291 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15292 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15293 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15294 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15295 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15296 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15297
15298 if test "X${MISSING}" != X; then
15299 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15300 $MISSING
15301 Maybe some development libraries/packages are missing?
15302 If you don't want to link with them give
15303 $WITH_NO
15304 as options to configure" >&5
15305 $as_echo "$as_me: error: The following required libraries were not found:
15306 $MISSING
15307 Maybe some development libraries/packages are missing?
15308 If you don't want to link with them give
15309 $WITH_NO
15310 as options to configure" >&2;}
15311 { (exit 1); exit 1; }; }
15312 fi
15313 fi
15314
15315 ### Use -lgpm if available, unless `--with-gpm=no'.
15316 HAVE_GPM=no
15317 if test "${with_gpm}" != "no"; then
15318 if test "${ac_cv_header_gpm_h+set}" = set; then
15319 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15320 $as_echo_n "checking for gpm.h... " >&6; }
15321 if test "${ac_cv_header_gpm_h+set}" = set; then
15322 $as_echo_n "(cached) " >&6
15323 fi
15324 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15325 $as_echo "$ac_cv_header_gpm_h" >&6; }
15326 else
15327 # Is the header compilable?
15328 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15329 $as_echo_n "checking gpm.h usability... " >&6; }
15330 cat >conftest.$ac_ext <<_ACEOF
15331 /* confdefs.h. */
15332 _ACEOF
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h. */
15336 $ac_includes_default
15337 #include <gpm.h>
15338 _ACEOF
15339 rm -f conftest.$ac_objext
15340 if { (ac_try="$ac_compile"
15341 case "(($ac_try" in
15342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15343 *) ac_try_echo=$ac_try;;
15344 esac
15345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15346 $as_echo "$ac_try_echo") >&5
15347 (eval "$ac_compile") 2>conftest.er1
15348 ac_status=$?
15349 grep -v '^ *+' conftest.er1 >conftest.err
15350 rm -f conftest.er1
15351 cat conftest.err >&5
15352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); } && {
15354 test -z "$ac_c_werror_flag" ||
15355 test ! -s conftest.err
15356 } && test -s conftest.$ac_objext; then
15357 ac_header_compiler=yes
15358 else
15359 $as_echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.$ac_ext >&5
15361
15362 ac_header_compiler=no
15363 fi
15364
15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15367 $as_echo "$ac_header_compiler" >&6; }
15368
15369 # Is the header present?
15370 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15371 $as_echo_n "checking gpm.h presence... " >&6; }
15372 cat >conftest.$ac_ext <<_ACEOF
15373 /* confdefs.h. */
15374 _ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h. */
15378 #include <gpm.h>
15379 _ACEOF
15380 if { (ac_try="$ac_cpp conftest.$ac_ext"
15381 case "(($ac_try" in
15382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15383 *) ac_try_echo=$ac_try;;
15384 esac
15385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15386 $as_echo "$ac_try_echo") >&5
15387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15388 ac_status=$?
15389 grep -v '^ *+' conftest.er1 >conftest.err
15390 rm -f conftest.er1
15391 cat conftest.err >&5
15392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } >/dev/null && {
15394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15395 test ! -s conftest.err
15396 }; then
15397 ac_header_preproc=yes
15398 else
15399 $as_echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.$ac_ext >&5
15401
15402 ac_header_preproc=no
15403 fi
15404
15405 rm -f conftest.err conftest.$ac_ext
15406 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15407 $as_echo "$ac_header_preproc" >&6; }
15408
15409 # So? What about this header?
15410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15411 yes:no: )
15412 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15413 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15414 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15415 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15416 ac_header_preproc=yes
15417 ;;
15418 no:yes:* )
15419 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15420 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15421 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15422 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15423 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15424 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15425 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15426 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15427 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15428 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15429 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15430 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15431
15432 ;;
15433 esac
15434 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15435 $as_echo_n "checking for gpm.h... " >&6; }
15436 if test "${ac_cv_header_gpm_h+set}" = set; then
15437 $as_echo_n "(cached) " >&6
15438 else
15439 ac_cv_header_gpm_h=$ac_header_preproc
15440 fi
15441 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15442 $as_echo "$ac_cv_header_gpm_h" >&6; }
15443
15444 fi
15445 if test $ac_cv_header_gpm_h = yes; then
15446 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15447 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15448 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15449 $as_echo_n "(cached) " >&6
15450 else
15451 ac_check_lib_save_LIBS=$LIBS
15452 LIBS="-lgpm $LIBS"
15453 cat >conftest.$ac_ext <<_ACEOF
15454 /* confdefs.h. */
15455 _ACEOF
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h. */
15459
15460 /* Override any GCC internal prototype to avoid an error.
15461 Use char because int might match the return type of a GCC
15462 builtin and then its argument prototype would still apply. */
15463 #ifdef __cplusplus
15464 extern "C"
15465 #endif
15466 char Gpm_Open ();
15467 int
15468 main ()
15469 {
15470 return Gpm_Open ();
15471 ;
15472 return 0;
15473 }
15474 _ACEOF
15475 rm -f conftest.$ac_objext conftest$ac_exeext
15476 if { (ac_try="$ac_link"
15477 case "(($ac_try" in
15478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15479 *) ac_try_echo=$ac_try;;
15480 esac
15481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15482 $as_echo "$ac_try_echo") >&5
15483 (eval "$ac_link") 2>conftest.er1
15484 ac_status=$?
15485 grep -v '^ *+' conftest.er1 >conftest.err
15486 rm -f conftest.er1
15487 cat conftest.err >&5
15488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } && {
15490 test -z "$ac_c_werror_flag" ||
15491 test ! -s conftest.err
15492 } && test -s conftest$ac_exeext && {
15493 test "$cross_compiling" = yes ||
15494 $as_test_x conftest$ac_exeext
15495 }; then
15496 ac_cv_lib_gpm_Gpm_Open=yes
15497 else
15498 $as_echo "$as_me: failed program was:" >&5
15499 sed 's/^/| /' conftest.$ac_ext >&5
15500
15501 ac_cv_lib_gpm_Gpm_Open=no
15502 fi
15503
15504 rm -rf conftest.dSYM
15505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15506 conftest$ac_exeext conftest.$ac_ext
15507 LIBS=$ac_check_lib_save_LIBS
15508 fi
15509 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15510 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15511 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15512 HAVE_GPM=yes
15513 fi
15514
15515 fi
15516
15517
15518 fi
15519
15520 if test "${HAVE_GPM}" = "yes"; then
15521
15522 cat >>confdefs.h <<\_ACEOF
15523 #define HAVE_GPM 1
15524 _ACEOF
15525
15526 fi
15527
15528 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15529 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15530 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15531 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15532 $as_echo_n "(cached) " >&6
15533 fi
15534 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15535 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15536 else
15537 # Is the header compilable?
15538 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15539 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15540 cat >conftest.$ac_ext <<_ACEOF
15541 /* confdefs.h. */
15542 _ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h. */
15546 $ac_includes_default
15547 #include <malloc/malloc.h>
15548 _ACEOF
15549 rm -f conftest.$ac_objext
15550 if { (ac_try="$ac_compile"
15551 case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15554 esac
15555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15556 $as_echo "$ac_try_echo") >&5
15557 (eval "$ac_compile") 2>conftest.er1
15558 ac_status=$?
15559 grep -v '^ *+' conftest.er1 >conftest.err
15560 rm -f conftest.er1
15561 cat conftest.err >&5
15562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } && {
15564 test -z "$ac_c_werror_flag" ||
15565 test ! -s conftest.err
15566 } && test -s conftest.$ac_objext; then
15567 ac_header_compiler=yes
15568 else
15569 $as_echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.$ac_ext >&5
15571
15572 ac_header_compiler=no
15573 fi
15574
15575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15576 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15577 $as_echo "$ac_header_compiler" >&6; }
15578
15579 # Is the header present?
15580 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15581 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15582 cat >conftest.$ac_ext <<_ACEOF
15583 /* confdefs.h. */
15584 _ACEOF
15585 cat confdefs.h >>conftest.$ac_ext
15586 cat >>conftest.$ac_ext <<_ACEOF
15587 /* end confdefs.h. */
15588 #include <malloc/malloc.h>
15589 _ACEOF
15590 if { (ac_try="$ac_cpp conftest.$ac_ext"
15591 case "(($ac_try" in
15592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593 *) ac_try_echo=$ac_try;;
15594 esac
15595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15596 $as_echo "$ac_try_echo") >&5
15597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15598 ac_status=$?
15599 grep -v '^ *+' conftest.er1 >conftest.err
15600 rm -f conftest.er1
15601 cat conftest.err >&5
15602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } >/dev/null && {
15604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15605 test ! -s conftest.err
15606 }; then
15607 ac_header_preproc=yes
15608 else
15609 $as_echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15611
15612 ac_header_preproc=no
15613 fi
15614
15615 rm -f conftest.err conftest.$ac_ext
15616 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15617 $as_echo "$ac_header_preproc" >&6; }
15618
15619 # So? What about this header?
15620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15621 yes:no: )
15622 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15623 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15624 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15625 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15626 ac_header_preproc=yes
15627 ;;
15628 no:yes:* )
15629 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15630 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15631 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15632 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15633 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15634 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15635 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15636 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15637 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15638 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15639 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15640 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15641
15642 ;;
15643 esac
15644 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15645 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15646 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15647 $as_echo_n "(cached) " >&6
15648 else
15649 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15650 fi
15651 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15652 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15653
15654 fi
15655 if test $ac_cv_header_malloc_malloc_h = yes; then
15656
15657 cat >>confdefs.h <<\_ACEOF
15658 #define HAVE_MALLOC_MALLOC_H 1
15659 _ACEOF
15660
15661 fi
15662
15663
15664
15665 ### Use NeXTstep API to implement GUI.
15666 if test "${HAVE_NS}" = "yes"; then
15667
15668 cat >>confdefs.h <<\_ACEOF
15669 #define HAVE_NS 1
15670 _ACEOF
15671
15672 if test "${NS_IMPL_COCOA}" = "yes"; then
15673
15674 cat >>confdefs.h <<\_ACEOF
15675 #define NS_IMPL_COCOA 1
15676 _ACEOF
15677
15678 GNU_OBJC_CFLAGS=
15679 fi
15680 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15681
15682 cat >>confdefs.h <<\_ACEOF
15683 #define NS_IMPL_GNUSTEP 1
15684 _ACEOF
15685
15686 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15687 fi
15688 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15689
15690 cat >>confdefs.h <<\_ACEOF
15691 #define NS_HAVE_NSINTEGER 1
15692 _ACEOF
15693
15694 fi
15695 # We also have mouse menus.
15696 HAVE_MENUS=yes
15697 OTHER_FILES=ns-app
15698 fi
15699
15700
15701 ### Use session management (-lSM -lICE) if available
15702 HAVE_X_SM=no
15703 if test "${HAVE_X11}" = "yes"; then
15704 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15705 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15706 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15707 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15708 $as_echo_n "(cached) " >&6
15709 fi
15710 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15711 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15712 else
15713 # Is the header compilable?
15714 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15715 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
15716 cat >conftest.$ac_ext <<_ACEOF
15717 /* confdefs.h. */
15718 _ACEOF
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h. */
15722 $ac_includes_default
15723 #include <X11/SM/SMlib.h>
15724 _ACEOF
15725 rm -f conftest.$ac_objext
15726 if { (ac_try="$ac_compile"
15727 case "(($ac_try" in
15728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729 *) ac_try_echo=$ac_try;;
15730 esac
15731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15732 $as_echo "$ac_try_echo") >&5
15733 (eval "$ac_compile") 2>conftest.er1
15734 ac_status=$?
15735 grep -v '^ *+' conftest.er1 >conftest.err
15736 rm -f conftest.er1
15737 cat conftest.err >&5
15738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } && {
15740 test -z "$ac_c_werror_flag" ||
15741 test ! -s conftest.err
15742 } && test -s conftest.$ac_objext; then
15743 ac_header_compiler=yes
15744 else
15745 $as_echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15747
15748 ac_header_compiler=no
15749 fi
15750
15751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15752 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15753 $as_echo "$ac_header_compiler" >&6; }
15754
15755 # Is the header present?
15756 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15757 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
15758 cat >conftest.$ac_ext <<_ACEOF
15759 /* confdefs.h. */
15760 _ACEOF
15761 cat confdefs.h >>conftest.$ac_ext
15762 cat >>conftest.$ac_ext <<_ACEOF
15763 /* end confdefs.h. */
15764 #include <X11/SM/SMlib.h>
15765 _ACEOF
15766 if { (ac_try="$ac_cpp conftest.$ac_ext"
15767 case "(($ac_try" in
15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15770 esac
15771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15772 $as_echo "$ac_try_echo") >&5
15773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15774 ac_status=$?
15775 grep -v '^ *+' conftest.er1 >conftest.err
15776 rm -f conftest.er1
15777 cat conftest.err >&5
15778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } >/dev/null && {
15780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15781 test ! -s conftest.err
15782 }; then
15783 ac_header_preproc=yes
15784 else
15785 $as_echo "$as_me: failed program was:" >&5
15786 sed 's/^/| /' conftest.$ac_ext >&5
15787
15788 ac_header_preproc=no
15789 fi
15790
15791 rm -f conftest.err conftest.$ac_ext
15792 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15793 $as_echo "$ac_header_preproc" >&6; }
15794
15795 # So? What about this header?
15796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15797 yes:no: )
15798 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15799 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15800 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15801 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15802 ac_header_preproc=yes
15803 ;;
15804 no:yes:* )
15805 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15806 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15807 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15808 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15809 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15810 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15811 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15812 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15813 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15814 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15815 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15816 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15817
15818 ;;
15819 esac
15820 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15821 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15822 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15823 $as_echo_n "(cached) " >&6
15824 else
15825 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15826 fi
15827 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15828 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15829
15830 fi
15831 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15832 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15833 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
15834 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15835 $as_echo_n "(cached) " >&6
15836 else
15837 ac_check_lib_save_LIBS=$LIBS
15838 LIBS="-lSM -lICE $LIBS"
15839 cat >conftest.$ac_ext <<_ACEOF
15840 /* confdefs.h. */
15841 _ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15845
15846 /* Override any GCC internal prototype to avoid an error.
15847 Use char because int might match the return type of a GCC
15848 builtin and then its argument prototype would still apply. */
15849 #ifdef __cplusplus
15850 extern "C"
15851 #endif
15852 char SmcOpenConnection ();
15853 int
15854 main ()
15855 {
15856 return SmcOpenConnection ();
15857 ;
15858 return 0;
15859 }
15860 _ACEOF
15861 rm -f conftest.$ac_objext conftest$ac_exeext
15862 if { (ac_try="$ac_link"
15863 case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15866 esac
15867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15868 $as_echo "$ac_try_echo") >&5
15869 (eval "$ac_link") 2>conftest.er1
15870 ac_status=$?
15871 grep -v '^ *+' conftest.er1 >conftest.err
15872 rm -f conftest.er1
15873 cat conftest.err >&5
15874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } && {
15876 test -z "$ac_c_werror_flag" ||
15877 test ! -s conftest.err
15878 } && test -s conftest$ac_exeext && {
15879 test "$cross_compiling" = yes ||
15880 $as_test_x conftest$ac_exeext
15881 }; then
15882 ac_cv_lib_SM_SmcOpenConnection=yes
15883 else
15884 $as_echo "$as_me: failed program was:" >&5
15885 sed 's/^/| /' conftest.$ac_ext >&5
15886
15887 ac_cv_lib_SM_SmcOpenConnection=no
15888 fi
15889
15890 rm -rf conftest.dSYM
15891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15892 conftest$ac_exeext conftest.$ac_ext
15893 LIBS=$ac_check_lib_save_LIBS
15894 fi
15895 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15896 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15897 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15898 HAVE_X_SM=yes
15899 fi
15900
15901 fi
15902
15903
15904
15905 if test "${HAVE_X_SM}" = "yes"; then
15906
15907 cat >>confdefs.h <<\_ACEOF
15908 #define HAVE_X_SM 1
15909 _ACEOF
15910
15911 case "$LIBS" in
15912 *-lSM*) ;;
15913 *) LIBS="-lSM -lICE $LIBS" ;;
15914 esac
15915 fi
15916 fi
15917
15918 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15919 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15920 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
15921 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15922 $as_echo_n "(cached) " >&6
15923 else
15924 cat >conftest.$ac_ext <<_ACEOF
15925 /* confdefs.h. */
15926 _ACEOF
15927 cat confdefs.h >>conftest.$ac_ext
15928 cat >>conftest.$ac_ext <<_ACEOF
15929 /* end confdefs.h. */
15930 #include <netdb.h>
15931 int
15932 main ()
15933 {
15934 return h_errno;
15935 ;
15936 return 0;
15937 }
15938 _ACEOF
15939 rm -f conftest.$ac_objext conftest$ac_exeext
15940 if { (ac_try="$ac_link"
15941 case "(($ac_try" in
15942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15943 *) ac_try_echo=$ac_try;;
15944 esac
15945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15946 $as_echo "$ac_try_echo") >&5
15947 (eval "$ac_link") 2>conftest.er1
15948 ac_status=$?
15949 grep -v '^ *+' conftest.er1 >conftest.err
15950 rm -f conftest.er1
15951 cat conftest.err >&5
15952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } && {
15954 test -z "$ac_c_werror_flag" ||
15955 test ! -s conftest.err
15956 } && test -s conftest$ac_exeext && {
15957 test "$cross_compiling" = yes ||
15958 $as_test_x conftest$ac_exeext
15959 }; then
15960 emacs_cv_netdb_declares_h_errno=yes
15961 else
15962 $as_echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15964
15965 emacs_cv_netdb_declares_h_errno=no
15966 fi
15967
15968 rm -rf conftest.dSYM
15969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15970 conftest$ac_exeext conftest.$ac_ext
15971 fi
15972 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15973 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
15974 if test $emacs_cv_netdb_declares_h_errno = yes; then
15975
15976 cat >>confdefs.h <<\_ACEOF
15977 #define HAVE_H_ERRNO 1
15978 _ACEOF
15979
15980 fi
15981
15982 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15983 # for constant arguments. Useless!
15984 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
15985 $as_echo_n "checking for working alloca.h... " >&6; }
15986 if test "${ac_cv_working_alloca_h+set}" = set; then
15987 $as_echo_n "(cached) " >&6
15988 else
15989 cat >conftest.$ac_ext <<_ACEOF
15990 /* confdefs.h. */
15991 _ACEOF
15992 cat confdefs.h >>conftest.$ac_ext
15993 cat >>conftest.$ac_ext <<_ACEOF
15994 /* end confdefs.h. */
15995 #include <alloca.h>
15996 int
15997 main ()
15998 {
15999 char *p = (char *) alloca (2 * sizeof (int));
16000 if (p) return 0;
16001 ;
16002 return 0;
16003 }
16004 _ACEOF
16005 rm -f conftest.$ac_objext conftest$ac_exeext
16006 if { (ac_try="$ac_link"
16007 case "(($ac_try" in
16008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009 *) ac_try_echo=$ac_try;;
16010 esac
16011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16012 $as_echo "$ac_try_echo") >&5
16013 (eval "$ac_link") 2>conftest.er1
16014 ac_status=$?
16015 grep -v '^ *+' conftest.er1 >conftest.err
16016 rm -f conftest.er1
16017 cat conftest.err >&5
16018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } && {
16020 test -z "$ac_c_werror_flag" ||
16021 test ! -s conftest.err
16022 } && test -s conftest$ac_exeext && {
16023 test "$cross_compiling" = yes ||
16024 $as_test_x conftest$ac_exeext
16025 }; then
16026 ac_cv_working_alloca_h=yes
16027 else
16028 $as_echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16030
16031 ac_cv_working_alloca_h=no
16032 fi
16033
16034 rm -rf conftest.dSYM
16035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16036 conftest$ac_exeext conftest.$ac_ext
16037 fi
16038 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16039 $as_echo "$ac_cv_working_alloca_h" >&6; }
16040 if test $ac_cv_working_alloca_h = yes; then
16041
16042 cat >>confdefs.h <<\_ACEOF
16043 #define HAVE_ALLOCA_H 1
16044 _ACEOF
16045
16046 fi
16047
16048 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16049 $as_echo_n "checking for alloca... " >&6; }
16050 if test "${ac_cv_func_alloca_works+set}" = set; then
16051 $as_echo_n "(cached) " >&6
16052 else
16053 cat >conftest.$ac_ext <<_ACEOF
16054 /* confdefs.h. */
16055 _ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16059 #ifdef __GNUC__
16060 # define alloca __builtin_alloca
16061 #else
16062 # ifdef _MSC_VER
16063 # include <malloc.h>
16064 # define alloca _alloca
16065 # else
16066 # ifdef HAVE_ALLOCA_H
16067 # include <alloca.h>
16068 # else
16069 # ifdef _AIX
16070 #pragma alloca
16071 # else
16072 # ifndef alloca /* predefined by HP cc +Olibcalls */
16073 char *alloca ();
16074 # endif
16075 # endif
16076 # endif
16077 # endif
16078 #endif
16079
16080 int
16081 main ()
16082 {
16083 char *p = (char *) alloca (1);
16084 if (p) return 0;
16085 ;
16086 return 0;
16087 }
16088 _ACEOF
16089 rm -f conftest.$ac_objext conftest$ac_exeext
16090 if { (ac_try="$ac_link"
16091 case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16094 esac
16095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16096 $as_echo "$ac_try_echo") >&5
16097 (eval "$ac_link") 2>conftest.er1
16098 ac_status=$?
16099 grep -v '^ *+' conftest.er1 >conftest.err
16100 rm -f conftest.er1
16101 cat conftest.err >&5
16102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } && {
16104 test -z "$ac_c_werror_flag" ||
16105 test ! -s conftest.err
16106 } && test -s conftest$ac_exeext && {
16107 test "$cross_compiling" = yes ||
16108 $as_test_x conftest$ac_exeext
16109 }; then
16110 ac_cv_func_alloca_works=yes
16111 else
16112 $as_echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16114
16115 ac_cv_func_alloca_works=no
16116 fi
16117
16118 rm -rf conftest.dSYM
16119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16120 conftest$ac_exeext conftest.$ac_ext
16121 fi
16122 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16123 $as_echo "$ac_cv_func_alloca_works" >&6; }
16124
16125 if test $ac_cv_func_alloca_works = yes; then
16126
16127 cat >>confdefs.h <<\_ACEOF
16128 #define HAVE_ALLOCA 1
16129 _ACEOF
16130
16131 else
16132 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16133 # that cause trouble. Some versions do not even contain alloca or
16134 # contain a buggy version. If you still want to use their alloca,
16135 # use ar to extract alloca.o from them instead of compiling alloca.c.
16136
16137 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16138
16139 cat >>confdefs.h <<\_ACEOF
16140 #define C_ALLOCA 1
16141 _ACEOF
16142
16143
16144 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16145 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16146 if test "${ac_cv_os_cray+set}" = set; then
16147 $as_echo_n "(cached) " >&6
16148 else
16149 cat >conftest.$ac_ext <<_ACEOF
16150 /* confdefs.h. */
16151 _ACEOF
16152 cat confdefs.h >>conftest.$ac_ext
16153 cat >>conftest.$ac_ext <<_ACEOF
16154 /* end confdefs.h. */
16155 #if defined CRAY && ! defined CRAY2
16156 webecray
16157 #else
16158 wenotbecray
16159 #endif
16160
16161 _ACEOF
16162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16163 $EGREP "webecray" >/dev/null 2>&1; then
16164 ac_cv_os_cray=yes
16165 else
16166 ac_cv_os_cray=no
16167 fi
16168 rm -f conftest*
16169
16170 fi
16171 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16172 $as_echo "$ac_cv_os_cray" >&6; }
16173 if test $ac_cv_os_cray = yes; then
16174 for ac_func in _getb67 GETB67 getb67; do
16175 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16176 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16177 $as_echo_n "checking for $ac_func... " >&6; }
16178 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16179 $as_echo_n "(cached) " >&6
16180 else
16181 cat >conftest.$ac_ext <<_ACEOF
16182 /* confdefs.h. */
16183 _ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h. */
16187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16189 #define $ac_func innocuous_$ac_func
16190
16191 /* System header to define __stub macros and hopefully few prototypes,
16192 which can conflict with char $ac_func (); below.
16193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16194 <limits.h> exists even on freestanding compilers. */
16195
16196 #ifdef __STDC__
16197 # include <limits.h>
16198 #else
16199 # include <assert.h>
16200 #endif
16201
16202 #undef $ac_func
16203
16204 /* Override any GCC internal prototype to avoid an error.
16205 Use char because int might match the return type of a GCC
16206 builtin and then its argument prototype would still apply. */
16207 #ifdef __cplusplus
16208 extern "C"
16209 #endif
16210 char $ac_func ();
16211 /* The GNU C library defines this for functions which it implements
16212 to always fail with ENOSYS. Some functions are actually named
16213 something starting with __ and the normal name is an alias. */
16214 #if defined __stub_$ac_func || defined __stub___$ac_func
16215 choke me
16216 #endif
16217
16218 int
16219 main ()
16220 {
16221 return $ac_func ();
16222 ;
16223 return 0;
16224 }
16225 _ACEOF
16226 rm -f conftest.$ac_objext conftest$ac_exeext
16227 if { (ac_try="$ac_link"
16228 case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16231 esac
16232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16233 $as_echo "$ac_try_echo") >&5
16234 (eval "$ac_link") 2>conftest.er1
16235 ac_status=$?
16236 grep -v '^ *+' conftest.er1 >conftest.err
16237 rm -f conftest.er1
16238 cat conftest.err >&5
16239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } && {
16241 test -z "$ac_c_werror_flag" ||
16242 test ! -s conftest.err
16243 } && test -s conftest$ac_exeext && {
16244 test "$cross_compiling" = yes ||
16245 $as_test_x conftest$ac_exeext
16246 }; then
16247 eval "$as_ac_var=yes"
16248 else
16249 $as_echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16251
16252 eval "$as_ac_var=no"
16253 fi
16254
16255 rm -rf conftest.dSYM
16256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16257 conftest$ac_exeext conftest.$ac_ext
16258 fi
16259 ac_res=`eval 'as_val=${'$as_ac_var'}
16260 $as_echo "$as_val"'`
16261 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16262 $as_echo "$ac_res" >&6; }
16263 if test `eval 'as_val=${'$as_ac_var'}
16264 $as_echo "$as_val"'` = yes; then
16265
16266 cat >>confdefs.h <<_ACEOF
16267 #define CRAY_STACKSEG_END $ac_func
16268 _ACEOF
16269
16270 break
16271 fi
16272
16273 done
16274 fi
16275
16276 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16277 $as_echo_n "checking stack direction for C alloca... " >&6; }
16278 if test "${ac_cv_c_stack_direction+set}" = set; then
16279 $as_echo_n "(cached) " >&6
16280 else
16281 if test "$cross_compiling" = yes; then
16282 ac_cv_c_stack_direction=0
16283 else
16284 cat >conftest.$ac_ext <<_ACEOF
16285 /* confdefs.h. */
16286 _ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16290 $ac_includes_default
16291 int
16292 find_stack_direction ()
16293 {
16294 static char *addr = 0;
16295 auto char dummy;
16296 if (addr == 0)
16297 {
16298 addr = &dummy;
16299 return find_stack_direction ();
16300 }
16301 else
16302 return (&dummy > addr) ? 1 : -1;
16303 }
16304
16305 int
16306 main ()
16307 {
16308 return find_stack_direction () < 0;
16309 }
16310 _ACEOF
16311 rm -f conftest$ac_exeext
16312 if { (ac_try="$ac_link"
16313 case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16316 esac
16317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16318 $as_echo "$ac_try_echo") >&5
16319 (eval "$ac_link") 2>&5
16320 ac_status=$?
16321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16323 { (case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16326 esac
16327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16328 $as_echo "$ac_try_echo") >&5
16329 (eval "$ac_try") 2>&5
16330 ac_status=$?
16331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); }; }; then
16333 ac_cv_c_stack_direction=1
16334 else
16335 $as_echo "$as_me: program exited with status $ac_status" >&5
16336 $as_echo "$as_me: failed program was:" >&5
16337 sed 's/^/| /' conftest.$ac_ext >&5
16338
16339 ( exit $ac_status )
16340 ac_cv_c_stack_direction=-1
16341 fi
16342 rm -rf conftest.dSYM
16343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16344 fi
16345
16346
16347 fi
16348 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16349 $as_echo "$ac_cv_c_stack_direction" >&6; }
16350
16351 cat >>confdefs.h <<_ACEOF
16352 #define STACK_DIRECTION $ac_cv_c_stack_direction
16353 _ACEOF
16354
16355
16356 fi
16357
16358
16359 if test x"$ac_cv_func_alloca_works" != xyes; then
16360 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16361 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16362 { (exit 1); exit 1; }; }
16363 fi
16364
16365 # fmod, logb, and frexp are found in -lm on most systems.
16366 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16367
16368 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16369 $as_echo_n "checking for sqrt in -lm... " >&6; }
16370 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16371 $as_echo_n "(cached) " >&6
16372 else
16373 ac_check_lib_save_LIBS=$LIBS
16374 LIBS="-lm $LIBS"
16375 cat >conftest.$ac_ext <<_ACEOF
16376 /* confdefs.h. */
16377 _ACEOF
16378 cat confdefs.h >>conftest.$ac_ext
16379 cat >>conftest.$ac_ext <<_ACEOF
16380 /* end confdefs.h. */
16381
16382 /* Override any GCC internal prototype to avoid an error.
16383 Use char because int might match the return type of a GCC
16384 builtin and then its argument prototype would still apply. */
16385 #ifdef __cplusplus
16386 extern "C"
16387 #endif
16388 char sqrt ();
16389 int
16390 main ()
16391 {
16392 return sqrt ();
16393 ;
16394 return 0;
16395 }
16396 _ACEOF
16397 rm -f conftest.$ac_objext conftest$ac_exeext
16398 if { (ac_try="$ac_link"
16399 case "(($ac_try" in
16400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16401 *) ac_try_echo=$ac_try;;
16402 esac
16403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16404 $as_echo "$ac_try_echo") >&5
16405 (eval "$ac_link") 2>conftest.er1
16406 ac_status=$?
16407 grep -v '^ *+' conftest.er1 >conftest.err
16408 rm -f conftest.er1
16409 cat conftest.err >&5
16410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } && {
16412 test -z "$ac_c_werror_flag" ||
16413 test ! -s conftest.err
16414 } && test -s conftest$ac_exeext && {
16415 test "$cross_compiling" = yes ||
16416 $as_test_x conftest$ac_exeext
16417 }; then
16418 ac_cv_lib_m_sqrt=yes
16419 else
16420 $as_echo "$as_me: failed program was:" >&5
16421 sed 's/^/| /' conftest.$ac_ext >&5
16422
16423 ac_cv_lib_m_sqrt=no
16424 fi
16425
16426 rm -rf conftest.dSYM
16427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16428 conftest$ac_exeext conftest.$ac_ext
16429 LIBS=$ac_check_lib_save_LIBS
16430 fi
16431 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16432 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16433 if test $ac_cv_lib_m_sqrt = yes; then
16434 cat >>confdefs.h <<_ACEOF
16435 #define HAVE_LIBM 1
16436 _ACEOF
16437
16438 LIBS="-lm $LIBS"
16439
16440 fi
16441
16442
16443 # Check for mail-locking functions in a "mail" library. Probably this should
16444 # have the same check as for liblockfile below.
16445
16446 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16447 $as_echo_n "checking for maillock in -lmail... " >&6; }
16448 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16449 $as_echo_n "(cached) " >&6
16450 else
16451 ac_check_lib_save_LIBS=$LIBS
16452 LIBS="-lmail $LIBS"
16453 cat >conftest.$ac_ext <<_ACEOF
16454 /* confdefs.h. */
16455 _ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h. */
16459
16460 /* Override any GCC internal prototype to avoid an error.
16461 Use char because int might match the return type of a GCC
16462 builtin and then its argument prototype would still apply. */
16463 #ifdef __cplusplus
16464 extern "C"
16465 #endif
16466 char maillock ();
16467 int
16468 main ()
16469 {
16470 return maillock ();
16471 ;
16472 return 0;
16473 }
16474 _ACEOF
16475 rm -f conftest.$ac_objext conftest$ac_exeext
16476 if { (ac_try="$ac_link"
16477 case "(($ac_try" in
16478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16479 *) ac_try_echo=$ac_try;;
16480 esac
16481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16482 $as_echo "$ac_try_echo") >&5
16483 (eval "$ac_link") 2>conftest.er1
16484 ac_status=$?
16485 grep -v '^ *+' conftest.er1 >conftest.err
16486 rm -f conftest.er1
16487 cat conftest.err >&5
16488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); } && {
16490 test -z "$ac_c_werror_flag" ||
16491 test ! -s conftest.err
16492 } && test -s conftest$ac_exeext && {
16493 test "$cross_compiling" = yes ||
16494 $as_test_x conftest$ac_exeext
16495 }; then
16496 ac_cv_lib_mail_maillock=yes
16497 else
16498 $as_echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16500
16501 ac_cv_lib_mail_maillock=no
16502 fi
16503
16504 rm -rf conftest.dSYM
16505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16506 conftest$ac_exeext conftest.$ac_ext
16507 LIBS=$ac_check_lib_save_LIBS
16508 fi
16509 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16510 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16511 if test $ac_cv_lib_mail_maillock = yes; then
16512 cat >>confdefs.h <<_ACEOF
16513 #define HAVE_LIBMAIL 1
16514 _ACEOF
16515
16516 LIBS="-lmail $LIBS"
16517
16518 fi
16519
16520
16521 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16522 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16523 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16524 $as_echo_n "(cached) " >&6
16525 else
16526 ac_check_lib_save_LIBS=$LIBS
16527 LIBS="-llockfile $LIBS"
16528 cat >conftest.$ac_ext <<_ACEOF
16529 /* confdefs.h. */
16530 _ACEOF
16531 cat confdefs.h >>conftest.$ac_ext
16532 cat >>conftest.$ac_ext <<_ACEOF
16533 /* end confdefs.h. */
16534
16535 /* Override any GCC internal prototype to avoid an error.
16536 Use char because int might match the return type of a GCC
16537 builtin and then its argument prototype would still apply. */
16538 #ifdef __cplusplus
16539 extern "C"
16540 #endif
16541 char maillock ();
16542 int
16543 main ()
16544 {
16545 return maillock ();
16546 ;
16547 return 0;
16548 }
16549 _ACEOF
16550 rm -f conftest.$ac_objext conftest$ac_exeext
16551 if { (ac_try="$ac_link"
16552 case "(($ac_try" in
16553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554 *) ac_try_echo=$ac_try;;
16555 esac
16556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16557 $as_echo "$ac_try_echo") >&5
16558 (eval "$ac_link") 2>conftest.er1
16559 ac_status=$?
16560 grep -v '^ *+' conftest.er1 >conftest.err
16561 rm -f conftest.er1
16562 cat conftest.err >&5
16563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } && {
16565 test -z "$ac_c_werror_flag" ||
16566 test ! -s conftest.err
16567 } && test -s conftest$ac_exeext && {
16568 test "$cross_compiling" = yes ||
16569 $as_test_x conftest$ac_exeext
16570 }; then
16571 ac_cv_lib_lockfile_maillock=yes
16572 else
16573 $as_echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16575
16576 ac_cv_lib_lockfile_maillock=no
16577 fi
16578
16579 rm -rf conftest.dSYM
16580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16581 conftest$ac_exeext conftest.$ac_ext
16582 LIBS=$ac_check_lib_save_LIBS
16583 fi
16584 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16585 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16586 if test $ac_cv_lib_lockfile_maillock = yes; then
16587 cat >>confdefs.h <<_ACEOF
16588 #define HAVE_LIBLOCKFILE 1
16589 _ACEOF
16590
16591 LIBS="-llockfile $LIBS"
16592
16593 fi
16594
16595 # If we have the shared liblockfile, assume we must use it for mail
16596 # locking (e.g. Debian). If we couldn't link against liblockfile
16597 # (no liblockfile.a installed), ensure that we don't need to.
16598 if test "$ac_cv_lib_lockfile_maillock" = no; then
16599 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16600 set dummy liblockfile.so; ac_word=$2
16601 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16602 $as_echo_n "checking for $ac_word... " >&6; }
16603 if test "${ac_cv_prog_liblockfile+set}" = set; then
16604 $as_echo_n "(cached) " >&6
16605 else
16606 if test -n "$liblockfile"; then
16607 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16608 else
16609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16610 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16611 for as_dir in $as_dummy
16612 do
16613 IFS=$as_save_IFS
16614 test -z "$as_dir" && as_dir=.
16615 for ac_exec_ext in '' $ac_executable_extensions; do
16616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16617 ac_cv_prog_liblockfile="yes"
16618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16619 break 2
16620 fi
16621 done
16622 done
16623 IFS=$as_save_IFS
16624
16625 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16626 fi
16627 fi
16628 liblockfile=$ac_cv_prog_liblockfile
16629 if test -n "$liblockfile"; then
16630 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
16631 $as_echo "$liblockfile" >&6; }
16632 else
16633 { $as_echo "$as_me:$LINENO: result: no" >&5
16634 $as_echo "no" >&6; }
16635 fi
16636
16637
16638 if test $ac_cv_prog_liblockfile = yes; then
16639 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16640 This probably means that movemail could lose mail.
16641 There may be a \`development' package to install containing liblockfile." >&5
16642 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
16643 This probably means that movemail could lose mail.
16644 There may be a \`development' package to install containing liblockfile." >&2;}
16645 { (exit 1); exit 1; }; }
16646 else :
16647 fi
16648 fi
16649
16650 for ac_func in touchlock
16651 do
16652 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16653 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16654 $as_echo_n "checking for $ac_func... " >&6; }
16655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16656 $as_echo_n "(cached) " >&6
16657 else
16658 cat >conftest.$ac_ext <<_ACEOF
16659 /* confdefs.h. */
16660 _ACEOF
16661 cat confdefs.h >>conftest.$ac_ext
16662 cat >>conftest.$ac_ext <<_ACEOF
16663 /* end confdefs.h. */
16664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16666 #define $ac_func innocuous_$ac_func
16667
16668 /* System header to define __stub macros and hopefully few prototypes,
16669 which can conflict with char $ac_func (); below.
16670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16671 <limits.h> exists even on freestanding compilers. */
16672
16673 #ifdef __STDC__
16674 # include <limits.h>
16675 #else
16676 # include <assert.h>
16677 #endif
16678
16679 #undef $ac_func
16680
16681 /* Override any GCC internal prototype to avoid an error.
16682 Use char because int might match the return type of a GCC
16683 builtin and then its argument prototype would still apply. */
16684 #ifdef __cplusplus
16685 extern "C"
16686 #endif
16687 char $ac_func ();
16688 /* The GNU C library defines this for functions which it implements
16689 to always fail with ENOSYS. Some functions are actually named
16690 something starting with __ and the normal name is an alias. */
16691 #if defined __stub_$ac_func || defined __stub___$ac_func
16692 choke me
16693 #endif
16694
16695 int
16696 main ()
16697 {
16698 return $ac_func ();
16699 ;
16700 return 0;
16701 }
16702 _ACEOF
16703 rm -f conftest.$ac_objext conftest$ac_exeext
16704 if { (ac_try="$ac_link"
16705 case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16708 esac
16709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16710 $as_echo "$ac_try_echo") >&5
16711 (eval "$ac_link") 2>conftest.er1
16712 ac_status=$?
16713 grep -v '^ *+' conftest.er1 >conftest.err
16714 rm -f conftest.er1
16715 cat conftest.err >&5
16716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); } && {
16718 test -z "$ac_c_werror_flag" ||
16719 test ! -s conftest.err
16720 } && test -s conftest$ac_exeext && {
16721 test "$cross_compiling" = yes ||
16722 $as_test_x conftest$ac_exeext
16723 }; then
16724 eval "$as_ac_var=yes"
16725 else
16726 $as_echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16728
16729 eval "$as_ac_var=no"
16730 fi
16731
16732 rm -rf conftest.dSYM
16733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16734 conftest$ac_exeext conftest.$ac_ext
16735 fi
16736 ac_res=`eval 'as_val=${'$as_ac_var'}
16737 $as_echo "$as_val"'`
16738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16739 $as_echo "$ac_res" >&6; }
16740 if test `eval 'as_val=${'$as_ac_var'}
16741 $as_echo "$as_val"'` = yes; then
16742 cat >>confdefs.h <<_ACEOF
16743 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16744 _ACEOF
16745
16746 fi
16747 done
16748
16749
16750 for ac_header in maillock.h
16751 do
16752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16754 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16755 $as_echo_n "checking for $ac_header... " >&6; }
16756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16757 $as_echo_n "(cached) " >&6
16758 fi
16759 ac_res=`eval 'as_val=${'$as_ac_Header'}
16760 $as_echo "$as_val"'`
16761 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16762 $as_echo "$ac_res" >&6; }
16763 else
16764 # Is the header compilable?
16765 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16766 $as_echo_n "checking $ac_header usability... " >&6; }
16767 cat >conftest.$ac_ext <<_ACEOF
16768 /* confdefs.h. */
16769 _ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h. */
16773 $ac_includes_default
16774 #include <$ac_header>
16775 _ACEOF
16776 rm -f conftest.$ac_objext
16777 if { (ac_try="$ac_compile"
16778 case "(($ac_try" in
16779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780 *) ac_try_echo=$ac_try;;
16781 esac
16782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16783 $as_echo "$ac_try_echo") >&5
16784 (eval "$ac_compile") 2>conftest.er1
16785 ac_status=$?
16786 grep -v '^ *+' conftest.er1 >conftest.err
16787 rm -f conftest.er1
16788 cat conftest.err >&5
16789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } && {
16791 test -z "$ac_c_werror_flag" ||
16792 test ! -s conftest.err
16793 } && test -s conftest.$ac_objext; then
16794 ac_header_compiler=yes
16795 else
16796 $as_echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16798
16799 ac_header_compiler=no
16800 fi
16801
16802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16803 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16804 $as_echo "$ac_header_compiler" >&6; }
16805
16806 # Is the header present?
16807 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16808 $as_echo_n "checking $ac_header presence... " >&6; }
16809 cat >conftest.$ac_ext <<_ACEOF
16810 /* confdefs.h. */
16811 _ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16815 #include <$ac_header>
16816 _ACEOF
16817 if { (ac_try="$ac_cpp conftest.$ac_ext"
16818 case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16821 esac
16822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16823 $as_echo "$ac_try_echo") >&5
16824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16825 ac_status=$?
16826 grep -v '^ *+' conftest.er1 >conftest.err
16827 rm -f conftest.er1
16828 cat conftest.err >&5
16829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); } >/dev/null && {
16831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16832 test ! -s conftest.err
16833 }; then
16834 ac_header_preproc=yes
16835 else
16836 $as_echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16838
16839 ac_header_preproc=no
16840 fi
16841
16842 rm -f conftest.err conftest.$ac_ext
16843 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16844 $as_echo "$ac_header_preproc" >&6; }
16845
16846 # So? What about this header?
16847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16848 yes:no: )
16849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16850 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16852 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16853 ac_header_preproc=yes
16854 ;;
16855 no:yes:* )
16856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16857 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16859 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16861 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16863 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16867 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16868
16869 ;;
16870 esac
16871 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16872 $as_echo_n "checking for $ac_header... " >&6; }
16873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16874 $as_echo_n "(cached) " >&6
16875 else
16876 eval "$as_ac_Header=\$ac_header_preproc"
16877 fi
16878 ac_res=`eval 'as_val=${'$as_ac_Header'}
16879 $as_echo "$as_val"'`
16880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16881 $as_echo "$ac_res" >&6; }
16882
16883 fi
16884 if test `eval 'as_val=${'$as_ac_Header'}
16885 $as_echo "$as_val"'` = yes; then
16886 cat >>confdefs.h <<_ACEOF
16887 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16888 _ACEOF
16889
16890 fi
16891
16892 done
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966 for ac_func in gethostname getdomainname dup2 \
16967 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16968 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16969 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16970 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16971 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16972 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16973 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16974 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16975 cfmakeraw cfsetspeed
16976 do
16977 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16978 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16979 $as_echo_n "checking for $ac_func... " >&6; }
16980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16981 $as_echo_n "(cached) " >&6
16982 else
16983 cat >conftest.$ac_ext <<_ACEOF
16984 /* confdefs.h. */
16985 _ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16991 #define $ac_func innocuous_$ac_func
16992
16993 /* System header to define __stub macros and hopefully few prototypes,
16994 which can conflict with char $ac_func (); below.
16995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16996 <limits.h> exists even on freestanding compilers. */
16997
16998 #ifdef __STDC__
16999 # include <limits.h>
17000 #else
17001 # include <assert.h>
17002 #endif
17003
17004 #undef $ac_func
17005
17006 /* Override any GCC internal prototype to avoid an error.
17007 Use char because int might match the return type of a GCC
17008 builtin and then its argument prototype would still apply. */
17009 #ifdef __cplusplus
17010 extern "C"
17011 #endif
17012 char $ac_func ();
17013 /* The GNU C library defines this for functions which it implements
17014 to always fail with ENOSYS. Some functions are actually named
17015 something starting with __ and the normal name is an alias. */
17016 #if defined __stub_$ac_func || defined __stub___$ac_func
17017 choke me
17018 #endif
17019
17020 int
17021 main ()
17022 {
17023 return $ac_func ();
17024 ;
17025 return 0;
17026 }
17027 _ACEOF
17028 rm -f conftest.$ac_objext conftest$ac_exeext
17029 if { (ac_try="$ac_link"
17030 case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17033 esac
17034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17035 $as_echo "$ac_try_echo") >&5
17036 (eval "$ac_link") 2>conftest.er1
17037 ac_status=$?
17038 grep -v '^ *+' conftest.er1 >conftest.err
17039 rm -f conftest.er1
17040 cat conftest.err >&5
17041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); } && {
17043 test -z "$ac_c_werror_flag" ||
17044 test ! -s conftest.err
17045 } && test -s conftest$ac_exeext && {
17046 test "$cross_compiling" = yes ||
17047 $as_test_x conftest$ac_exeext
17048 }; then
17049 eval "$as_ac_var=yes"
17050 else
17051 $as_echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17053
17054 eval "$as_ac_var=no"
17055 fi
17056
17057 rm -rf conftest.dSYM
17058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17059 conftest$ac_exeext conftest.$ac_ext
17060 fi
17061 ac_res=`eval 'as_val=${'$as_ac_var'}
17062 $as_echo "$as_val"'`
17063 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17064 $as_echo "$ac_res" >&6; }
17065 if test `eval 'as_val=${'$as_ac_var'}
17066 $as_echo "$as_val"'` = yes; then
17067 cat >>confdefs.h <<_ACEOF
17068 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17069 _ACEOF
17070
17071 fi
17072 done
17073
17074
17075
17076 for ac_header in sys/un.h
17077 do
17078 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17080 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17081 $as_echo_n "checking for $ac_header... " >&6; }
17082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17083 $as_echo_n "(cached) " >&6
17084 fi
17085 ac_res=`eval 'as_val=${'$as_ac_Header'}
17086 $as_echo "$as_val"'`
17087 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17088 $as_echo "$ac_res" >&6; }
17089 else
17090 # Is the header compilable?
17091 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17092 $as_echo_n "checking $ac_header usability... " >&6; }
17093 cat >conftest.$ac_ext <<_ACEOF
17094 /* confdefs.h. */
17095 _ACEOF
17096 cat confdefs.h >>conftest.$ac_ext
17097 cat >>conftest.$ac_ext <<_ACEOF
17098 /* end confdefs.h. */
17099 $ac_includes_default
17100 #include <$ac_header>
17101 _ACEOF
17102 rm -f conftest.$ac_objext
17103 if { (ac_try="$ac_compile"
17104 case "(($ac_try" in
17105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106 *) ac_try_echo=$ac_try;;
17107 esac
17108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17109 $as_echo "$ac_try_echo") >&5
17110 (eval "$ac_compile") 2>conftest.er1
17111 ac_status=$?
17112 grep -v '^ *+' conftest.er1 >conftest.err
17113 rm -f conftest.er1
17114 cat conftest.err >&5
17115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); } && {
17117 test -z "$ac_c_werror_flag" ||
17118 test ! -s conftest.err
17119 } && test -s conftest.$ac_objext; then
17120 ac_header_compiler=yes
17121 else
17122 $as_echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17124
17125 ac_header_compiler=no
17126 fi
17127
17128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17129 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17130 $as_echo "$ac_header_compiler" >&6; }
17131
17132 # Is the header present?
17133 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17134 $as_echo_n "checking $ac_header presence... " >&6; }
17135 cat >conftest.$ac_ext <<_ACEOF
17136 /* confdefs.h. */
17137 _ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h. */
17141 #include <$ac_header>
17142 _ACEOF
17143 if { (ac_try="$ac_cpp conftest.$ac_ext"
17144 case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17147 esac
17148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17149 $as_echo "$ac_try_echo") >&5
17150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17151 ac_status=$?
17152 grep -v '^ *+' conftest.er1 >conftest.err
17153 rm -f conftest.er1
17154 cat conftest.err >&5
17155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); } >/dev/null && {
17157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17158 test ! -s conftest.err
17159 }; then
17160 ac_header_preproc=yes
17161 else
17162 $as_echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17164
17165 ac_header_preproc=no
17166 fi
17167
17168 rm -f conftest.err conftest.$ac_ext
17169 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17170 $as_echo "$ac_header_preproc" >&6; }
17171
17172 # So? What about this header?
17173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17174 yes:no: )
17175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17176 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17178 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17179 ac_header_preproc=yes
17180 ;;
17181 no:yes:* )
17182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17183 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17185 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17187 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17189 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17191 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17193 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17194
17195 ;;
17196 esac
17197 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17198 $as_echo_n "checking for $ac_header... " >&6; }
17199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17200 $as_echo_n "(cached) " >&6
17201 else
17202 eval "$as_ac_Header=\$ac_header_preproc"
17203 fi
17204 ac_res=`eval 'as_val=${'$as_ac_Header'}
17205 $as_echo "$as_val"'`
17206 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17207 $as_echo "$ac_res" >&6; }
17208
17209 fi
17210 if test `eval 'as_val=${'$as_ac_Header'}
17211 $as_echo "$as_val"'` = yes; then
17212 cat >>confdefs.h <<_ACEOF
17213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17214 _ACEOF
17215
17216 fi
17217
17218 done
17219
17220
17221
17222
17223
17224
17225 for ac_header in $ac_header_list
17226 do
17227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17229 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17230 $as_echo_n "checking for $ac_header... " >&6; }
17231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17232 $as_echo_n "(cached) " >&6
17233 fi
17234 ac_res=`eval 'as_val=${'$as_ac_Header'}
17235 $as_echo "$as_val"'`
17236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17237 $as_echo "$ac_res" >&6; }
17238 else
17239 # Is the header compilable?
17240 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17241 $as_echo_n "checking $ac_header usability... " >&6; }
17242 cat >conftest.$ac_ext <<_ACEOF
17243 /* confdefs.h. */
17244 _ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h. */
17248 $ac_includes_default
17249 #include <$ac_header>
17250 _ACEOF
17251 rm -f conftest.$ac_objext
17252 if { (ac_try="$ac_compile"
17253 case "(($ac_try" in
17254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17256 esac
17257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17258 $as_echo "$ac_try_echo") >&5
17259 (eval "$ac_compile") 2>conftest.er1
17260 ac_status=$?
17261 grep -v '^ *+' conftest.er1 >conftest.err
17262 rm -f conftest.er1
17263 cat conftest.err >&5
17264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } && {
17266 test -z "$ac_c_werror_flag" ||
17267 test ! -s conftest.err
17268 } && test -s conftest.$ac_objext; then
17269 ac_header_compiler=yes
17270 else
17271 $as_echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17273
17274 ac_header_compiler=no
17275 fi
17276
17277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17278 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17279 $as_echo "$ac_header_compiler" >&6; }
17280
17281 # Is the header present?
17282 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17283 $as_echo_n "checking $ac_header presence... " >&6; }
17284 cat >conftest.$ac_ext <<_ACEOF
17285 /* confdefs.h. */
17286 _ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h. */
17290 #include <$ac_header>
17291 _ACEOF
17292 if { (ac_try="$ac_cpp conftest.$ac_ext"
17293 case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17296 esac
17297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17298 $as_echo "$ac_try_echo") >&5
17299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17300 ac_status=$?
17301 grep -v '^ *+' conftest.er1 >conftest.err
17302 rm -f conftest.er1
17303 cat conftest.err >&5
17304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } >/dev/null && {
17306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17307 test ! -s conftest.err
17308 }; then
17309 ac_header_preproc=yes
17310 else
17311 $as_echo "$as_me: failed program was:" >&5
17312 sed 's/^/| /' conftest.$ac_ext >&5
17313
17314 ac_header_preproc=no
17315 fi
17316
17317 rm -f conftest.err conftest.$ac_ext
17318 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17319 $as_echo "$ac_header_preproc" >&6; }
17320
17321 # So? What about this header?
17322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17323 yes:no: )
17324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17325 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17327 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17328 ac_header_preproc=yes
17329 ;;
17330 no:yes:* )
17331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17332 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17334 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17336 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17338 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17340 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17342 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17343
17344 ;;
17345 esac
17346 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17347 $as_echo_n "checking for $ac_header... " >&6; }
17348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17349 $as_echo_n "(cached) " >&6
17350 else
17351 eval "$as_ac_Header=\$ac_header_preproc"
17352 fi
17353 ac_res=`eval 'as_val=${'$as_ac_Header'}
17354 $as_echo "$as_val"'`
17355 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17356 $as_echo "$ac_res" >&6; }
17357
17358 fi
17359 if test `eval 'as_val=${'$as_ac_Header'}
17360 $as_echo "$as_val"'` = yes; then
17361 cat >>confdefs.h <<_ACEOF
17362 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17363 _ACEOF
17364
17365 fi
17366
17367 done
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377 for ac_func in $ac_func_list
17378 do
17379 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17380 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17381 $as_echo_n "checking for $ac_func... " >&6; }
17382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17383 $as_echo_n "(cached) " >&6
17384 else
17385 cat >conftest.$ac_ext <<_ACEOF
17386 /* confdefs.h. */
17387 _ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17393 #define $ac_func innocuous_$ac_func
17394
17395 /* System header to define __stub macros and hopefully few prototypes,
17396 which can conflict with char $ac_func (); below.
17397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17398 <limits.h> exists even on freestanding compilers. */
17399
17400 #ifdef __STDC__
17401 # include <limits.h>
17402 #else
17403 # include <assert.h>
17404 #endif
17405
17406 #undef $ac_func
17407
17408 /* Override any GCC internal prototype to avoid an error.
17409 Use char because int might match the return type of a GCC
17410 builtin and then its argument prototype would still apply. */
17411 #ifdef __cplusplus
17412 extern "C"
17413 #endif
17414 char $ac_func ();
17415 /* The GNU C library defines this for functions which it implements
17416 to always fail with ENOSYS. Some functions are actually named
17417 something starting with __ and the normal name is an alias. */
17418 #if defined __stub_$ac_func || defined __stub___$ac_func
17419 choke me
17420 #endif
17421
17422 int
17423 main ()
17424 {
17425 return $ac_func ();
17426 ;
17427 return 0;
17428 }
17429 _ACEOF
17430 rm -f conftest.$ac_objext conftest$ac_exeext
17431 if { (ac_try="$ac_link"
17432 case "(($ac_try" in
17433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434 *) ac_try_echo=$ac_try;;
17435 esac
17436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17437 $as_echo "$ac_try_echo") >&5
17438 (eval "$ac_link") 2>conftest.er1
17439 ac_status=$?
17440 grep -v '^ *+' conftest.er1 >conftest.err
17441 rm -f conftest.er1
17442 cat conftest.err >&5
17443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); } && {
17445 test -z "$ac_c_werror_flag" ||
17446 test ! -s conftest.err
17447 } && test -s conftest$ac_exeext && {
17448 test "$cross_compiling" = yes ||
17449 $as_test_x conftest$ac_exeext
17450 }; then
17451 eval "$as_ac_var=yes"
17452 else
17453 $as_echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17455
17456 eval "$as_ac_var=no"
17457 fi
17458
17459 rm -rf conftest.dSYM
17460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17461 conftest$ac_exeext conftest.$ac_ext
17462 fi
17463 ac_res=`eval 'as_val=${'$as_ac_var'}
17464 $as_echo "$as_val"'`
17465 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17466 $as_echo "$ac_res" >&6; }
17467 if test `eval 'as_val=${'$as_ac_var'}
17468 $as_echo "$as_val"'` = yes; then
17469 cat >>confdefs.h <<_ACEOF
17470 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17471 _ACEOF
17472
17473 fi
17474 done
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17493 $as_echo_n "checking for working mktime... " >&6; }
17494 if test "${ac_cv_func_working_mktime+set}" = set; then
17495 $as_echo_n "(cached) " >&6
17496 else
17497 if test "$cross_compiling" = yes; then
17498 ac_cv_func_working_mktime=no
17499 else
17500 cat >conftest.$ac_ext <<_ACEOF
17501 /* confdefs.h. */
17502 _ACEOF
17503 cat confdefs.h >>conftest.$ac_ext
17504 cat >>conftest.$ac_ext <<_ACEOF
17505 /* end confdefs.h. */
17506 /* Test program from Paul Eggert and Tony Leneis. */
17507 #ifdef TIME_WITH_SYS_TIME
17508 # include <sys/time.h>
17509 # include <time.h>
17510 #else
17511 # ifdef HAVE_SYS_TIME_H
17512 # include <sys/time.h>
17513 # else
17514 # include <time.h>
17515 # endif
17516 #endif
17517
17518 #include <limits.h>
17519 #include <stdlib.h>
17520
17521 #ifdef HAVE_UNISTD_H
17522 # include <unistd.h>
17523 #endif
17524
17525 #ifndef HAVE_ALARM
17526 # define alarm(X) /* empty */
17527 #endif
17528
17529 /* Work around redefinition to rpl_putenv by other config tests. */
17530 #undef putenv
17531
17532 static time_t time_t_max;
17533 static time_t time_t_min;
17534
17535 /* Values we'll use to set the TZ environment variable. */
17536 static char *tz_strings[] = {
17537 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17538 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17539 };
17540 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17541
17542 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17543 Based on a problem report from Andreas Jaeger. */
17544 static int
17545 spring_forward_gap ()
17546 {
17547 /* glibc (up to about 1998-10-07) failed this test. */
17548 struct tm tm;
17549
17550 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17551 instead of "TZ=America/Vancouver" in order to detect the bug even
17552 on systems that don't support the Olson extension, or don't have the
17553 full zoneinfo tables installed. */
17554 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17555
17556 tm.tm_year = 98;
17557 tm.tm_mon = 3;
17558 tm.tm_mday = 5;
17559 tm.tm_hour = 2;
17560 tm.tm_min = 0;
17561 tm.tm_sec = 0;
17562 tm.tm_isdst = -1;
17563 return mktime (&tm) != (time_t) -1;
17564 }
17565
17566 static int
17567 mktime_test1 (now)
17568 time_t now;
17569 {
17570 struct tm *lt;
17571 return ! (lt = localtime (&now)) || mktime (lt) == now;
17572 }
17573
17574 static int
17575 mktime_test (now)
17576 time_t now;
17577 {
17578 return (mktime_test1 (now)
17579 && mktime_test1 ((time_t) (time_t_max - now))
17580 && mktime_test1 ((time_t) (time_t_min + now)));
17581 }
17582
17583 static int
17584 irix_6_4_bug ()
17585 {
17586 /* Based on code from Ariel Faigon. */
17587 struct tm tm;
17588 tm.tm_year = 96;
17589 tm.tm_mon = 3;
17590 tm.tm_mday = 0;
17591 tm.tm_hour = 0;
17592 tm.tm_min = 0;
17593 tm.tm_sec = 0;
17594 tm.tm_isdst = -1;
17595 mktime (&tm);
17596 return tm.tm_mon == 2 && tm.tm_mday == 31;
17597 }
17598
17599 static int
17600 bigtime_test (j)
17601 int j;
17602 {
17603 struct tm tm;
17604 time_t now;
17605 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17606 now = mktime (&tm);
17607 if (now != (time_t) -1)
17608 {
17609 struct tm *lt = localtime (&now);
17610 if (! (lt
17611 && lt->tm_year == tm.tm_year
17612 && lt->tm_mon == tm.tm_mon
17613 && lt->tm_mday == tm.tm_mday
17614 && lt->tm_hour == tm.tm_hour
17615 && lt->tm_min == tm.tm_min
17616 && lt->tm_sec == tm.tm_sec
17617 && lt->tm_yday == tm.tm_yday
17618 && lt->tm_wday == tm.tm_wday
17619 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17620 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17621 return 0;
17622 }
17623 return 1;
17624 }
17625
17626 static int
17627 year_2050_test ()
17628 {
17629 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17630 ignoring leap seconds. */
17631 unsigned long int answer = 2527315200UL;
17632
17633 struct tm tm;
17634 time_t t;
17635 tm.tm_year = 2050 - 1900;
17636 tm.tm_mon = 2 - 1;
17637 tm.tm_mday = 1;
17638 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17639 tm.tm_isdst = -1;
17640
17641 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17642 instead of "TZ=America/Vancouver" in order to detect the bug even
17643 on systems that don't support the Olson extension, or don't have the
17644 full zoneinfo tables installed. */
17645 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17646
17647 t = mktime (&tm);
17648
17649 /* Check that the result is either a failure, or close enough
17650 to the correct answer that we can assume the discrepancy is
17651 due to leap seconds. */
17652 return (t == (time_t) -1
17653 || (0 < t && answer - 120 <= t && t <= answer + 120));
17654 }
17655
17656 int
17657 main ()
17658 {
17659 time_t t, delta;
17660 int i, j;
17661
17662 /* This test makes some buggy mktime implementations loop.
17663 Give up after 60 seconds; a mktime slower than that
17664 isn't worth using anyway. */
17665 alarm (60);
17666
17667 for (;;)
17668 {
17669 t = (time_t_max << 1) + 1;
17670 if (t <= time_t_max)
17671 break;
17672 time_t_max = t;
17673 }
17674 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17675
17676 delta = time_t_max / 997; /* a suitable prime number */
17677 for (i = 0; i < N_STRINGS; i++)
17678 {
17679 if (tz_strings[i])
17680 putenv (tz_strings[i]);
17681
17682 for (t = 0; t <= time_t_max - delta; t += delta)
17683 if (! mktime_test (t))
17684 return 1;
17685 if (! (mktime_test ((time_t) 1)
17686 && mktime_test ((time_t) (60 * 60))
17687 && mktime_test ((time_t) (60 * 60 * 24))))
17688 return 1;
17689
17690 for (j = 1; ; j <<= 1)
17691 if (! bigtime_test (j))
17692 return 1;
17693 else if (INT_MAX / 2 < j)
17694 break;
17695 if (! bigtime_test (INT_MAX))
17696 return 1;
17697 }
17698 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17699 }
17700 _ACEOF
17701 rm -f conftest$ac_exeext
17702 if { (ac_try="$ac_link"
17703 case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17706 esac
17707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17708 $as_echo "$ac_try_echo") >&5
17709 (eval "$ac_link") 2>&5
17710 ac_status=$?
17711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17713 { (case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716 esac
17717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17718 $as_echo "$ac_try_echo") >&5
17719 (eval "$ac_try") 2>&5
17720 ac_status=$?
17721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; }; then
17723 ac_cv_func_working_mktime=yes
17724 else
17725 $as_echo "$as_me: program exited with status $ac_status" >&5
17726 $as_echo "$as_me: failed program was:" >&5
17727 sed 's/^/| /' conftest.$ac_ext >&5
17728
17729 ( exit $ac_status )
17730 ac_cv_func_working_mktime=no
17731 fi
17732 rm -rf conftest.dSYM
17733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17734 fi
17735
17736
17737 fi
17738 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17739 $as_echo "$ac_cv_func_working_mktime" >&6; }
17740 if test $ac_cv_func_working_mktime = no; then
17741 case " $LIBOBJS " in
17742 *" mktime.$ac_objext "* ) ;;
17743 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17744 ;;
17745 esac
17746
17747 fi
17748
17749 if test "$ac_cv_func_working_mktime" = no; then
17750
17751 cat >>confdefs.h <<\_ACEOF
17752 #define BROKEN_MKTIME 1
17753 _ACEOF
17754
17755 fi
17756
17757 ac_have_func=no # yes means we've found a way to get the load average.
17758
17759 # Make sure getloadavg.c is where it belongs, at configure-time.
17760 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17761 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17762 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17763 { (exit 1); exit 1; }; }
17764
17765 ac_save_LIBS=$LIBS
17766
17767 # Check for getloadavg, but be sure not to touch the cache variable.
17768 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
17769 $as_echo_n "checking for getloadavg... " >&6; }
17770 if test "${ac_cv_func_getloadavg+set}" = set; then
17771 $as_echo_n "(cached) " >&6
17772 else
17773 cat >conftest.$ac_ext <<_ACEOF
17774 /* confdefs.h. */
17775 _ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h. */
17779 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17781 #define getloadavg innocuous_getloadavg
17782
17783 /* System header to define __stub macros and hopefully few prototypes,
17784 which can conflict with char getloadavg (); below.
17785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17786 <limits.h> exists even on freestanding compilers. */
17787
17788 #ifdef __STDC__
17789 # include <limits.h>
17790 #else
17791 # include <assert.h>
17792 #endif
17793
17794 #undef getloadavg
17795
17796 /* Override any GCC internal prototype to avoid an error.
17797 Use char because int might match the return type of a GCC
17798 builtin and then its argument prototype would still apply. */
17799 #ifdef __cplusplus
17800 extern "C"
17801 #endif
17802 char getloadavg ();
17803 /* The GNU C library defines this for functions which it implements
17804 to always fail with ENOSYS. Some functions are actually named
17805 something starting with __ and the normal name is an alias. */
17806 #if defined __stub_getloadavg || defined __stub___getloadavg
17807 choke me
17808 #endif
17809
17810 int
17811 main ()
17812 {
17813 return getloadavg ();
17814 ;
17815 return 0;
17816 }
17817 _ACEOF
17818 rm -f conftest.$ac_objext conftest$ac_exeext
17819 if { (ac_try="$ac_link"
17820 case "(($ac_try" in
17821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822 *) ac_try_echo=$ac_try;;
17823 esac
17824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17825 $as_echo "$ac_try_echo") >&5
17826 (eval "$ac_link") 2>conftest.er1
17827 ac_status=$?
17828 grep -v '^ *+' conftest.er1 >conftest.err
17829 rm -f conftest.er1
17830 cat conftest.err >&5
17831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); } && {
17833 test -z "$ac_c_werror_flag" ||
17834 test ! -s conftest.err
17835 } && test -s conftest$ac_exeext && {
17836 test "$cross_compiling" = yes ||
17837 $as_test_x conftest$ac_exeext
17838 }; then
17839 ac_cv_func_getloadavg=yes
17840 else
17841 $as_echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17843
17844 ac_cv_func_getloadavg=no
17845 fi
17846
17847 rm -rf conftest.dSYM
17848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17849 conftest$ac_exeext conftest.$ac_ext
17850 fi
17851 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17852 $as_echo "$ac_cv_func_getloadavg" >&6; }
17853 if test $ac_cv_func_getloadavg = yes; then
17854 exit 0
17855 else
17856 exit 1
17857 fi
17858 ) && ac_have_func=yes
17859
17860 # On HPUX9, an unprivileged user can get load averages through this function.
17861
17862 for ac_func in pstat_getdynamic
17863 do
17864 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17865 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17866 $as_echo_n "checking for $ac_func... " >&6; }
17867 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17868 $as_echo_n "(cached) " >&6
17869 else
17870 cat >conftest.$ac_ext <<_ACEOF
17871 /* confdefs.h. */
17872 _ACEOF
17873 cat confdefs.h >>conftest.$ac_ext
17874 cat >>conftest.$ac_ext <<_ACEOF
17875 /* end confdefs.h. */
17876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17878 #define $ac_func innocuous_$ac_func
17879
17880 /* System header to define __stub macros and hopefully few prototypes,
17881 which can conflict with char $ac_func (); below.
17882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17883 <limits.h> exists even on freestanding compilers. */
17884
17885 #ifdef __STDC__
17886 # include <limits.h>
17887 #else
17888 # include <assert.h>
17889 #endif
17890
17891 #undef $ac_func
17892
17893 /* Override any GCC internal prototype to avoid an error.
17894 Use char because int might match the return type of a GCC
17895 builtin and then its argument prototype would still apply. */
17896 #ifdef __cplusplus
17897 extern "C"
17898 #endif
17899 char $ac_func ();
17900 /* The GNU C library defines this for functions which it implements
17901 to always fail with ENOSYS. Some functions are actually named
17902 something starting with __ and the normal name is an alias. */
17903 #if defined __stub_$ac_func || defined __stub___$ac_func
17904 choke me
17905 #endif
17906
17907 int
17908 main ()
17909 {
17910 return $ac_func ();
17911 ;
17912 return 0;
17913 }
17914 _ACEOF
17915 rm -f conftest.$ac_objext conftest$ac_exeext
17916 if { (ac_try="$ac_link"
17917 case "(($ac_try" in
17918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919 *) ac_try_echo=$ac_try;;
17920 esac
17921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17922 $as_echo "$ac_try_echo") >&5
17923 (eval "$ac_link") 2>conftest.er1
17924 ac_status=$?
17925 grep -v '^ *+' conftest.er1 >conftest.err
17926 rm -f conftest.er1
17927 cat conftest.err >&5
17928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); } && {
17930 test -z "$ac_c_werror_flag" ||
17931 test ! -s conftest.err
17932 } && test -s conftest$ac_exeext && {
17933 test "$cross_compiling" = yes ||
17934 $as_test_x conftest$ac_exeext
17935 }; then
17936 eval "$as_ac_var=yes"
17937 else
17938 $as_echo "$as_me: failed program was:" >&5
17939 sed 's/^/| /' conftest.$ac_ext >&5
17940
17941 eval "$as_ac_var=no"
17942 fi
17943
17944 rm -rf conftest.dSYM
17945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17946 conftest$ac_exeext conftest.$ac_ext
17947 fi
17948 ac_res=`eval 'as_val=${'$as_ac_var'}
17949 $as_echo "$as_val"'`
17950 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17951 $as_echo "$ac_res" >&6; }
17952 if test `eval 'as_val=${'$as_ac_var'}
17953 $as_echo "$as_val"'` = yes; then
17954 cat >>confdefs.h <<_ACEOF
17955 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17956 _ACEOF
17957
17958 fi
17959 done
17960
17961
17962 # Solaris has libkstat which does not require root.
17963
17964 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17965 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
17966 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17967 $as_echo_n "(cached) " >&6
17968 else
17969 ac_check_lib_save_LIBS=$LIBS
17970 LIBS="-lkstat $LIBS"
17971 cat >conftest.$ac_ext <<_ACEOF
17972 /* confdefs.h. */
17973 _ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17977
17978 /* Override any GCC internal prototype to avoid an error.
17979 Use char because int might match the return type of a GCC
17980 builtin and then its argument prototype would still apply. */
17981 #ifdef __cplusplus
17982 extern "C"
17983 #endif
17984 char kstat_open ();
17985 int
17986 main ()
17987 {
17988 return kstat_open ();
17989 ;
17990 return 0;
17991 }
17992 _ACEOF
17993 rm -f conftest.$ac_objext conftest$ac_exeext
17994 if { (ac_try="$ac_link"
17995 case "(($ac_try" in
17996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997 *) ac_try_echo=$ac_try;;
17998 esac
17999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18000 $as_echo "$ac_try_echo") >&5
18001 (eval "$ac_link") 2>conftest.er1
18002 ac_status=$?
18003 grep -v '^ *+' conftest.er1 >conftest.err
18004 rm -f conftest.er1
18005 cat conftest.err >&5
18006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); } && {
18008 test -z "$ac_c_werror_flag" ||
18009 test ! -s conftest.err
18010 } && test -s conftest$ac_exeext && {
18011 test "$cross_compiling" = yes ||
18012 $as_test_x conftest$ac_exeext
18013 }; then
18014 ac_cv_lib_kstat_kstat_open=yes
18015 else
18016 $as_echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18018
18019 ac_cv_lib_kstat_kstat_open=no
18020 fi
18021
18022 rm -rf conftest.dSYM
18023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18024 conftest$ac_exeext conftest.$ac_ext
18025 LIBS=$ac_check_lib_save_LIBS
18026 fi
18027 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18028 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18029 if test $ac_cv_lib_kstat_kstat_open = yes; then
18030 cat >>confdefs.h <<_ACEOF
18031 #define HAVE_LIBKSTAT 1
18032 _ACEOF
18033
18034 LIBS="-lkstat $LIBS"
18035
18036 fi
18037
18038 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18039
18040 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18041 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18042 # to get the right answer into the cache.
18043 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18044 if test $ac_have_func = no; then
18045 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18046 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18047 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18048 $as_echo_n "(cached) " >&6
18049 else
18050 ac_check_lib_save_LIBS=$LIBS
18051 LIBS="-lelf $LIBS"
18052 cat >conftest.$ac_ext <<_ACEOF
18053 /* confdefs.h. */
18054 _ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18058
18059 /* Override any GCC internal prototype to avoid an error.
18060 Use char because int might match the return type of a GCC
18061 builtin and then its argument prototype would still apply. */
18062 #ifdef __cplusplus
18063 extern "C"
18064 #endif
18065 char elf_begin ();
18066 int
18067 main ()
18068 {
18069 return elf_begin ();
18070 ;
18071 return 0;
18072 }
18073 _ACEOF
18074 rm -f conftest.$ac_objext conftest$ac_exeext
18075 if { (ac_try="$ac_link"
18076 case "(($ac_try" in
18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18079 esac
18080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18081 $as_echo "$ac_try_echo") >&5
18082 (eval "$ac_link") 2>conftest.er1
18083 ac_status=$?
18084 grep -v '^ *+' conftest.er1 >conftest.err
18085 rm -f conftest.er1
18086 cat conftest.err >&5
18087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); } && {
18089 test -z "$ac_c_werror_flag" ||
18090 test ! -s conftest.err
18091 } && test -s conftest$ac_exeext && {
18092 test "$cross_compiling" = yes ||
18093 $as_test_x conftest$ac_exeext
18094 }; then
18095 ac_cv_lib_elf_elf_begin=yes
18096 else
18097 $as_echo "$as_me: failed program was:" >&5
18098 sed 's/^/| /' conftest.$ac_ext >&5
18099
18100 ac_cv_lib_elf_elf_begin=no
18101 fi
18102
18103 rm -rf conftest.dSYM
18104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18105 conftest$ac_exeext conftest.$ac_ext
18106 LIBS=$ac_check_lib_save_LIBS
18107 fi
18108 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18109 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18110 if test $ac_cv_lib_elf_elf_begin = yes; then
18111 LIBS="-lelf $LIBS"
18112 fi
18113
18114 fi
18115 if test $ac_have_func = no; then
18116 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18117 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18118 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18119 $as_echo_n "(cached) " >&6
18120 else
18121 ac_check_lib_save_LIBS=$LIBS
18122 LIBS="-lkvm $LIBS"
18123 cat >conftest.$ac_ext <<_ACEOF
18124 /* confdefs.h. */
18125 _ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h. */
18129
18130 /* Override any GCC internal prototype to avoid an error.
18131 Use char because int might match the return type of a GCC
18132 builtin and then its argument prototype would still apply. */
18133 #ifdef __cplusplus
18134 extern "C"
18135 #endif
18136 char kvm_open ();
18137 int
18138 main ()
18139 {
18140 return kvm_open ();
18141 ;
18142 return 0;
18143 }
18144 _ACEOF
18145 rm -f conftest.$ac_objext conftest$ac_exeext
18146 if { (ac_try="$ac_link"
18147 case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18150 esac
18151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18152 $as_echo "$ac_try_echo") >&5
18153 (eval "$ac_link") 2>conftest.er1
18154 ac_status=$?
18155 grep -v '^ *+' conftest.er1 >conftest.err
18156 rm -f conftest.er1
18157 cat conftest.err >&5
18158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } && {
18160 test -z "$ac_c_werror_flag" ||
18161 test ! -s conftest.err
18162 } && test -s conftest$ac_exeext && {
18163 test "$cross_compiling" = yes ||
18164 $as_test_x conftest$ac_exeext
18165 }; then
18166 ac_cv_lib_kvm_kvm_open=yes
18167 else
18168 $as_echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18170
18171 ac_cv_lib_kvm_kvm_open=no
18172 fi
18173
18174 rm -rf conftest.dSYM
18175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18176 conftest$ac_exeext conftest.$ac_ext
18177 LIBS=$ac_check_lib_save_LIBS
18178 fi
18179 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18180 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18181 if test $ac_cv_lib_kvm_kvm_open = yes; then
18182 LIBS="-lkvm $LIBS"
18183 fi
18184
18185 # Check for the 4.4BSD definition of getloadavg.
18186 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18187 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18188 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18189 $as_echo_n "(cached) " >&6
18190 else
18191 ac_check_lib_save_LIBS=$LIBS
18192 LIBS="-lutil $LIBS"
18193 cat >conftest.$ac_ext <<_ACEOF
18194 /* confdefs.h. */
18195 _ACEOF
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18199
18200 /* Override any GCC internal prototype to avoid an error.
18201 Use char because int might match the return type of a GCC
18202 builtin and then its argument prototype would still apply. */
18203 #ifdef __cplusplus
18204 extern "C"
18205 #endif
18206 char getloadavg ();
18207 int
18208 main ()
18209 {
18210 return getloadavg ();
18211 ;
18212 return 0;
18213 }
18214 _ACEOF
18215 rm -f conftest.$ac_objext conftest$ac_exeext
18216 if { (ac_try="$ac_link"
18217 case "(($ac_try" in
18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219 *) ac_try_echo=$ac_try;;
18220 esac
18221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18222 $as_echo "$ac_try_echo") >&5
18223 (eval "$ac_link") 2>conftest.er1
18224 ac_status=$?
18225 grep -v '^ *+' conftest.er1 >conftest.err
18226 rm -f conftest.er1
18227 cat conftest.err >&5
18228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); } && {
18230 test -z "$ac_c_werror_flag" ||
18231 test ! -s conftest.err
18232 } && test -s conftest$ac_exeext && {
18233 test "$cross_compiling" = yes ||
18234 $as_test_x conftest$ac_exeext
18235 }; then
18236 ac_cv_lib_util_getloadavg=yes
18237 else
18238 $as_echo "$as_me: failed program was:" >&5
18239 sed 's/^/| /' conftest.$ac_ext >&5
18240
18241 ac_cv_lib_util_getloadavg=no
18242 fi
18243
18244 rm -rf conftest.dSYM
18245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18246 conftest$ac_exeext conftest.$ac_ext
18247 LIBS=$ac_check_lib_save_LIBS
18248 fi
18249 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18250 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18251 if test $ac_cv_lib_util_getloadavg = yes; then
18252 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18253 fi
18254
18255 fi
18256
18257 if test $ac_have_func = no; then
18258 # There is a commonly available library for RS/6000 AIX.
18259 # Since it is not a standard part of AIX, it might be installed locally.
18260 ac_getloadavg_LIBS=$LIBS
18261 LIBS="-L/usr/local/lib $LIBS"
18262 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18263 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18264 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18265 $as_echo_n "(cached) " >&6
18266 else
18267 ac_check_lib_save_LIBS=$LIBS
18268 LIBS="-lgetloadavg $LIBS"
18269 cat >conftest.$ac_ext <<_ACEOF
18270 /* confdefs.h. */
18271 _ACEOF
18272 cat confdefs.h >>conftest.$ac_ext
18273 cat >>conftest.$ac_ext <<_ACEOF
18274 /* end confdefs.h. */
18275
18276 /* Override any GCC internal prototype to avoid an error.
18277 Use char because int might match the return type of a GCC
18278 builtin and then its argument prototype would still apply. */
18279 #ifdef __cplusplus
18280 extern "C"
18281 #endif
18282 char getloadavg ();
18283 int
18284 main ()
18285 {
18286 return getloadavg ();
18287 ;
18288 return 0;
18289 }
18290 _ACEOF
18291 rm -f conftest.$ac_objext conftest$ac_exeext
18292 if { (ac_try="$ac_link"
18293 case "(($ac_try" in
18294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295 *) ac_try_echo=$ac_try;;
18296 esac
18297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18298 $as_echo "$ac_try_echo") >&5
18299 (eval "$ac_link") 2>conftest.er1
18300 ac_status=$?
18301 grep -v '^ *+' conftest.er1 >conftest.err
18302 rm -f conftest.er1
18303 cat conftest.err >&5
18304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); } && {
18306 test -z "$ac_c_werror_flag" ||
18307 test ! -s conftest.err
18308 } && test -s conftest$ac_exeext && {
18309 test "$cross_compiling" = yes ||
18310 $as_test_x conftest$ac_exeext
18311 }; then
18312 ac_cv_lib_getloadavg_getloadavg=yes
18313 else
18314 $as_echo "$as_me: failed program was:" >&5
18315 sed 's/^/| /' conftest.$ac_ext >&5
18316
18317 ac_cv_lib_getloadavg_getloadavg=no
18318 fi
18319
18320 rm -rf conftest.dSYM
18321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18322 conftest$ac_exeext conftest.$ac_ext
18323 LIBS=$ac_check_lib_save_LIBS
18324 fi
18325 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18326 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18327 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18328 LIBS="-lgetloadavg $LIBS"
18329 else
18330 LIBS=$ac_getloadavg_LIBS
18331 fi
18332
18333 fi
18334
18335 # Make sure it is really in the library, if we think we found it,
18336 # otherwise set up the replacement function.
18337
18338 for ac_func in getloadavg
18339 do
18340 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18341 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18342 $as_echo_n "checking for $ac_func... " >&6; }
18343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18344 $as_echo_n "(cached) " >&6
18345 else
18346 cat >conftest.$ac_ext <<_ACEOF
18347 /* confdefs.h. */
18348 _ACEOF
18349 cat confdefs.h >>conftest.$ac_ext
18350 cat >>conftest.$ac_ext <<_ACEOF
18351 /* end confdefs.h. */
18352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18354 #define $ac_func innocuous_$ac_func
18355
18356 /* System header to define __stub macros and hopefully few prototypes,
18357 which can conflict with char $ac_func (); below.
18358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18359 <limits.h> exists even on freestanding compilers. */
18360
18361 #ifdef __STDC__
18362 # include <limits.h>
18363 #else
18364 # include <assert.h>
18365 #endif
18366
18367 #undef $ac_func
18368
18369 /* Override any GCC internal prototype to avoid an error.
18370 Use char because int might match the return type of a GCC
18371 builtin and then its argument prototype would still apply. */
18372 #ifdef __cplusplus
18373 extern "C"
18374 #endif
18375 char $ac_func ();
18376 /* The GNU C library defines this for functions which it implements
18377 to always fail with ENOSYS. Some functions are actually named
18378 something starting with __ and the normal name is an alias. */
18379 #if defined __stub_$ac_func || defined __stub___$ac_func
18380 choke me
18381 #endif
18382
18383 int
18384 main ()
18385 {
18386 return $ac_func ();
18387 ;
18388 return 0;
18389 }
18390 _ACEOF
18391 rm -f conftest.$ac_objext conftest$ac_exeext
18392 if { (ac_try="$ac_link"
18393 case "(($ac_try" in
18394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395 *) ac_try_echo=$ac_try;;
18396 esac
18397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18398 $as_echo "$ac_try_echo") >&5
18399 (eval "$ac_link") 2>conftest.er1
18400 ac_status=$?
18401 grep -v '^ *+' conftest.er1 >conftest.err
18402 rm -f conftest.er1
18403 cat conftest.err >&5
18404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); } && {
18406 test -z "$ac_c_werror_flag" ||
18407 test ! -s conftest.err
18408 } && test -s conftest$ac_exeext && {
18409 test "$cross_compiling" = yes ||
18410 $as_test_x conftest$ac_exeext
18411 }; then
18412 eval "$as_ac_var=yes"
18413 else
18414 $as_echo "$as_me: failed program was:" >&5
18415 sed 's/^/| /' conftest.$ac_ext >&5
18416
18417 eval "$as_ac_var=no"
18418 fi
18419
18420 rm -rf conftest.dSYM
18421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18422 conftest$ac_exeext conftest.$ac_ext
18423 fi
18424 ac_res=`eval 'as_val=${'$as_ac_var'}
18425 $as_echo "$as_val"'`
18426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18427 $as_echo "$ac_res" >&6; }
18428 if test `eval 'as_val=${'$as_ac_var'}
18429 $as_echo "$as_val"'` = yes; then
18430 cat >>confdefs.h <<_ACEOF
18431 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18432 _ACEOF
18433
18434 else
18435 case " $LIBOBJS " in
18436 *" getloadavg.$ac_objext "* ) ;;
18437 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18438 ;;
18439 esac
18440
18441
18442 cat >>confdefs.h <<\_ACEOF
18443 #define C_GETLOADAVG 1
18444 _ACEOF
18445
18446 # Figure out what our getloadavg.c needs.
18447 ac_have_func=no
18448 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18449 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18450 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18451 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18452 $as_echo_n "(cached) " >&6
18453 fi
18454 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18455 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18456 else
18457 # Is the header compilable?
18458 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18459 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18460 cat >conftest.$ac_ext <<_ACEOF
18461 /* confdefs.h. */
18462 _ACEOF
18463 cat confdefs.h >>conftest.$ac_ext
18464 cat >>conftest.$ac_ext <<_ACEOF
18465 /* end confdefs.h. */
18466 $ac_includes_default
18467 #include <sys/dg_sys_info.h>
18468 _ACEOF
18469 rm -f conftest.$ac_objext
18470 if { (ac_try="$ac_compile"
18471 case "(($ac_try" in
18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473 *) ac_try_echo=$ac_try;;
18474 esac
18475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18476 $as_echo "$ac_try_echo") >&5
18477 (eval "$ac_compile") 2>conftest.er1
18478 ac_status=$?
18479 grep -v '^ *+' conftest.er1 >conftest.err
18480 rm -f conftest.er1
18481 cat conftest.err >&5
18482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); } && {
18484 test -z "$ac_c_werror_flag" ||
18485 test ! -s conftest.err
18486 } && test -s conftest.$ac_objext; then
18487 ac_header_compiler=yes
18488 else
18489 $as_echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.$ac_ext >&5
18491
18492 ac_header_compiler=no
18493 fi
18494
18495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18496 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18497 $as_echo "$ac_header_compiler" >&6; }
18498
18499 # Is the header present?
18500 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18501 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18502 cat >conftest.$ac_ext <<_ACEOF
18503 /* confdefs.h. */
18504 _ACEOF
18505 cat confdefs.h >>conftest.$ac_ext
18506 cat >>conftest.$ac_ext <<_ACEOF
18507 /* end confdefs.h. */
18508 #include <sys/dg_sys_info.h>
18509 _ACEOF
18510 if { (ac_try="$ac_cpp conftest.$ac_ext"
18511 case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18514 esac
18515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18516 $as_echo "$ac_try_echo") >&5
18517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18518 ac_status=$?
18519 grep -v '^ *+' conftest.er1 >conftest.err
18520 rm -f conftest.er1
18521 cat conftest.err >&5
18522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); } >/dev/null && {
18524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18525 test ! -s conftest.err
18526 }; then
18527 ac_header_preproc=yes
18528 else
18529 $as_echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18531
18532 ac_header_preproc=no
18533 fi
18534
18535 rm -f conftest.err conftest.$ac_ext
18536 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18537 $as_echo "$ac_header_preproc" >&6; }
18538
18539 # So? What about this header?
18540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18541 yes:no: )
18542 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18543 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18544 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18545 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18546 ac_header_preproc=yes
18547 ;;
18548 no:yes:* )
18549 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18550 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18551 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18552 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18553 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18554 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18555 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18556 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18557 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18558 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18559 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18560 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18561
18562 ;;
18563 esac
18564 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18565 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18566 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18567 $as_echo_n "(cached) " >&6
18568 else
18569 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18570 fi
18571 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18572 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18573
18574 fi
18575 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18576 ac_have_func=yes
18577
18578 cat >>confdefs.h <<\_ACEOF
18579 #define DGUX 1
18580 _ACEOF
18581
18582
18583 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18584 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18585 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18586 $as_echo_n "(cached) " >&6
18587 else
18588 ac_check_lib_save_LIBS=$LIBS
18589 LIBS="-ldgc $LIBS"
18590 cat >conftest.$ac_ext <<_ACEOF
18591 /* confdefs.h. */
18592 _ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18596
18597 /* Override any GCC internal prototype to avoid an error.
18598 Use char because int might match the return type of a GCC
18599 builtin and then its argument prototype would still apply. */
18600 #ifdef __cplusplus
18601 extern "C"
18602 #endif
18603 char dg_sys_info ();
18604 int
18605 main ()
18606 {
18607 return dg_sys_info ();
18608 ;
18609 return 0;
18610 }
18611 _ACEOF
18612 rm -f conftest.$ac_objext conftest$ac_exeext
18613 if { (ac_try="$ac_link"
18614 case "(($ac_try" in
18615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616 *) ac_try_echo=$ac_try;;
18617 esac
18618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18619 $as_echo "$ac_try_echo") >&5
18620 (eval "$ac_link") 2>conftest.er1
18621 ac_status=$?
18622 grep -v '^ *+' conftest.er1 >conftest.err
18623 rm -f conftest.er1
18624 cat conftest.err >&5
18625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } && {
18627 test -z "$ac_c_werror_flag" ||
18628 test ! -s conftest.err
18629 } && test -s conftest$ac_exeext && {
18630 test "$cross_compiling" = yes ||
18631 $as_test_x conftest$ac_exeext
18632 }; then
18633 ac_cv_lib_dgc_dg_sys_info=yes
18634 else
18635 $as_echo "$as_me: failed program was:" >&5
18636 sed 's/^/| /' conftest.$ac_ext >&5
18637
18638 ac_cv_lib_dgc_dg_sys_info=no
18639 fi
18640
18641 rm -rf conftest.dSYM
18642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18643 conftest$ac_exeext conftest.$ac_ext
18644 LIBS=$ac_check_lib_save_LIBS
18645 fi
18646 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18647 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18648 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18649 cat >>confdefs.h <<_ACEOF
18650 #define HAVE_LIBDGC 1
18651 _ACEOF
18652
18653 LIBS="-ldgc $LIBS"
18654
18655 fi
18656
18657 fi
18658
18659
18660
18661 if test "${ac_cv_header_locale_h+set}" = set; then
18662 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18663 $as_echo_n "checking for locale.h... " >&6; }
18664 if test "${ac_cv_header_locale_h+set}" = set; then
18665 $as_echo_n "(cached) " >&6
18666 fi
18667 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18668 $as_echo "$ac_cv_header_locale_h" >&6; }
18669 else
18670 # Is the header compilable?
18671 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
18672 $as_echo_n "checking locale.h usability... " >&6; }
18673 cat >conftest.$ac_ext <<_ACEOF
18674 /* confdefs.h. */
18675 _ACEOF
18676 cat confdefs.h >>conftest.$ac_ext
18677 cat >>conftest.$ac_ext <<_ACEOF
18678 /* end confdefs.h. */
18679 $ac_includes_default
18680 #include <locale.h>
18681 _ACEOF
18682 rm -f conftest.$ac_objext
18683 if { (ac_try="$ac_compile"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18687 esac
18688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18689 $as_echo "$ac_try_echo") >&5
18690 (eval "$ac_compile") 2>conftest.er1
18691 ac_status=$?
18692 grep -v '^ *+' conftest.er1 >conftest.err
18693 rm -f conftest.er1
18694 cat conftest.err >&5
18695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } && {
18697 test -z "$ac_c_werror_flag" ||
18698 test ! -s conftest.err
18699 } && test -s conftest.$ac_objext; then
18700 ac_header_compiler=yes
18701 else
18702 $as_echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18704
18705 ac_header_compiler=no
18706 fi
18707
18708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18709 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18710 $as_echo "$ac_header_compiler" >&6; }
18711
18712 # Is the header present?
18713 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
18714 $as_echo_n "checking locale.h presence... " >&6; }
18715 cat >conftest.$ac_ext <<_ACEOF
18716 /* confdefs.h. */
18717 _ACEOF
18718 cat confdefs.h >>conftest.$ac_ext
18719 cat >>conftest.$ac_ext <<_ACEOF
18720 /* end confdefs.h. */
18721 #include <locale.h>
18722 _ACEOF
18723 if { (ac_try="$ac_cpp conftest.$ac_ext"
18724 case "(($ac_try" in
18725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726 *) ac_try_echo=$ac_try;;
18727 esac
18728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18729 $as_echo "$ac_try_echo") >&5
18730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18731 ac_status=$?
18732 grep -v '^ *+' conftest.er1 >conftest.err
18733 rm -f conftest.er1
18734 cat conftest.err >&5
18735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); } >/dev/null && {
18737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18738 test ! -s conftest.err
18739 }; then
18740 ac_header_preproc=yes
18741 else
18742 $as_echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18744
18745 ac_header_preproc=no
18746 fi
18747
18748 rm -f conftest.err conftest.$ac_ext
18749 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18750 $as_echo "$ac_header_preproc" >&6; }
18751
18752 # So? What about this header?
18753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18754 yes:no: )
18755 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18756 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18757 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18758 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18759 ac_header_preproc=yes
18760 ;;
18761 no:yes:* )
18762 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18763 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18764 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18765 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18766 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18767 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18768 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18769 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18770 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18771 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18772 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18773 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18774
18775 ;;
18776 esac
18777 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18778 $as_echo_n "checking for locale.h... " >&6; }
18779 if test "${ac_cv_header_locale_h+set}" = set; then
18780 $as_echo_n "(cached) " >&6
18781 else
18782 ac_cv_header_locale_h=$ac_header_preproc
18783 fi
18784 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18785 $as_echo "$ac_cv_header_locale_h" >&6; }
18786
18787 fi
18788
18789
18790
18791 for ac_func in setlocale
18792 do
18793 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18794 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18795 $as_echo_n "checking for $ac_func... " >&6; }
18796 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18797 $as_echo_n "(cached) " >&6
18798 else
18799 cat >conftest.$ac_ext <<_ACEOF
18800 /* confdefs.h. */
18801 _ACEOF
18802 cat confdefs.h >>conftest.$ac_ext
18803 cat >>conftest.$ac_ext <<_ACEOF
18804 /* end confdefs.h. */
18805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18807 #define $ac_func innocuous_$ac_func
18808
18809 /* System header to define __stub macros and hopefully few prototypes,
18810 which can conflict with char $ac_func (); below.
18811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18812 <limits.h> exists even on freestanding compilers. */
18813
18814 #ifdef __STDC__
18815 # include <limits.h>
18816 #else
18817 # include <assert.h>
18818 #endif
18819
18820 #undef $ac_func
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 $ac_func ();
18829 /* The GNU C library defines this for functions which it implements
18830 to always fail with ENOSYS. Some functions are actually named
18831 something starting with __ and the normal name is an alias. */
18832 #if defined __stub_$ac_func || defined __stub___$ac_func
18833 choke me
18834 #endif
18835
18836 int
18837 main ()
18838 {
18839 return $ac_func ();
18840 ;
18841 return 0;
18842 }
18843 _ACEOF
18844 rm -f conftest.$ac_objext conftest$ac_exeext
18845 if { (ac_try="$ac_link"
18846 case "(($ac_try" in
18847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848 *) ac_try_echo=$ac_try;;
18849 esac
18850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18851 $as_echo "$ac_try_echo") >&5
18852 (eval "$ac_link") 2>conftest.er1
18853 ac_status=$?
18854 grep -v '^ *+' conftest.er1 >conftest.err
18855 rm -f conftest.er1
18856 cat conftest.err >&5
18857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); } && {
18859 test -z "$ac_c_werror_flag" ||
18860 test ! -s conftest.err
18861 } && test -s conftest$ac_exeext && {
18862 test "$cross_compiling" = yes ||
18863 $as_test_x conftest$ac_exeext
18864 }; then
18865 eval "$as_ac_var=yes"
18866 else
18867 $as_echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18869
18870 eval "$as_ac_var=no"
18871 fi
18872
18873 rm -rf conftest.dSYM
18874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18875 conftest$ac_exeext conftest.$ac_ext
18876 fi
18877 ac_res=`eval 'as_val=${'$as_ac_var'}
18878 $as_echo "$as_val"'`
18879 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18880 $as_echo "$ac_res" >&6; }
18881 if test `eval 'as_val=${'$as_ac_var'}
18882 $as_echo "$as_val"'` = yes; then
18883 cat >>confdefs.h <<_ACEOF
18884 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18885 _ACEOF
18886
18887 fi
18888 done
18889
18890
18891 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18892 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18893 # Irix 4.0.5F has the header but not the library.
18894 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18895 ac_have_func=yes
18896
18897 cat >>confdefs.h <<\_ACEOF
18898 #define SVR4 1
18899 _ACEOF
18900
18901 fi
18902
18903 if test $ac_have_func = no; then
18904 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18905 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18906 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18907 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18908 $as_echo_n "(cached) " >&6
18909 fi
18910 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18911 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18912 else
18913 # Is the header compilable?
18914 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18915 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
18916 cat >conftest.$ac_ext <<_ACEOF
18917 /* confdefs.h. */
18918 _ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18922 $ac_includes_default
18923 #include <inq_stats/cpustats.h>
18924 _ACEOF
18925 rm -f conftest.$ac_objext
18926 if { (ac_try="$ac_compile"
18927 case "(($ac_try" in
18928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18929 *) ac_try_echo=$ac_try;;
18930 esac
18931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18932 $as_echo "$ac_try_echo") >&5
18933 (eval "$ac_compile") 2>conftest.er1
18934 ac_status=$?
18935 grep -v '^ *+' conftest.er1 >conftest.err
18936 rm -f conftest.er1
18937 cat conftest.err >&5
18938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } && {
18940 test -z "$ac_c_werror_flag" ||
18941 test ! -s conftest.err
18942 } && test -s conftest.$ac_objext; then
18943 ac_header_compiler=yes
18944 else
18945 $as_echo "$as_me: failed program was:" >&5
18946 sed 's/^/| /' conftest.$ac_ext >&5
18947
18948 ac_header_compiler=no
18949 fi
18950
18951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18952 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18953 $as_echo "$ac_header_compiler" >&6; }
18954
18955 # Is the header present?
18956 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18957 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
18958 cat >conftest.$ac_ext <<_ACEOF
18959 /* confdefs.h. */
18960 _ACEOF
18961 cat confdefs.h >>conftest.$ac_ext
18962 cat >>conftest.$ac_ext <<_ACEOF
18963 /* end confdefs.h. */
18964 #include <inq_stats/cpustats.h>
18965 _ACEOF
18966 if { (ac_try="$ac_cpp conftest.$ac_ext"
18967 case "(($ac_try" in
18968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18969 *) ac_try_echo=$ac_try;;
18970 esac
18971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18972 $as_echo "$ac_try_echo") >&5
18973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18974 ac_status=$?
18975 grep -v '^ *+' conftest.er1 >conftest.err
18976 rm -f conftest.er1
18977 cat conftest.err >&5
18978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); } >/dev/null && {
18980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18981 test ! -s conftest.err
18982 }; then
18983 ac_header_preproc=yes
18984 else
18985 $as_echo "$as_me: failed program was:" >&5
18986 sed 's/^/| /' conftest.$ac_ext >&5
18987
18988 ac_header_preproc=no
18989 fi
18990
18991 rm -f conftest.err conftest.$ac_ext
18992 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18993 $as_echo "$ac_header_preproc" >&6; }
18994
18995 # So? What about this header?
18996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18997 yes:no: )
18998 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18999 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19000 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19001 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19002 ac_header_preproc=yes
19003 ;;
19004 no:yes:* )
19005 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19006 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19007 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19008 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19009 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19010 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19011 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19012 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19013 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19014 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19015 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19016 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19017
19018 ;;
19019 esac
19020 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19021 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19022 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19023 $as_echo_n "(cached) " >&6
19024 else
19025 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19026 fi
19027 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19028 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19029
19030 fi
19031 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19032 ac_have_func=yes
19033
19034 cat >>confdefs.h <<\_ACEOF
19035 #define UMAX 1
19036 _ACEOF
19037
19038
19039 cat >>confdefs.h <<\_ACEOF
19040 #define UMAX4_3 1
19041 _ACEOF
19042
19043 fi
19044
19045
19046 fi
19047
19048 if test $ac_have_func = no; then
19049 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19050 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19051 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19052 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19053 $as_echo_n "(cached) " >&6
19054 fi
19055 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19056 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19057 else
19058 # Is the header compilable?
19059 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19060 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19061 cat >conftest.$ac_ext <<_ACEOF
19062 /* confdefs.h. */
19063 _ACEOF
19064 cat confdefs.h >>conftest.$ac_ext
19065 cat >>conftest.$ac_ext <<_ACEOF
19066 /* end confdefs.h. */
19067 $ac_includes_default
19068 #include <sys/cpustats.h>
19069 _ACEOF
19070 rm -f conftest.$ac_objext
19071 if { (ac_try="$ac_compile"
19072 case "(($ac_try" in
19073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19074 *) ac_try_echo=$ac_try;;
19075 esac
19076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19077 $as_echo "$ac_try_echo") >&5
19078 (eval "$ac_compile") 2>conftest.er1
19079 ac_status=$?
19080 grep -v '^ *+' conftest.er1 >conftest.err
19081 rm -f conftest.er1
19082 cat conftest.err >&5
19083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); } && {
19085 test -z "$ac_c_werror_flag" ||
19086 test ! -s conftest.err
19087 } && test -s conftest.$ac_objext; then
19088 ac_header_compiler=yes
19089 else
19090 $as_echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19092
19093 ac_header_compiler=no
19094 fi
19095
19096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19097 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19098 $as_echo "$ac_header_compiler" >&6; }
19099
19100 # Is the header present?
19101 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19102 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19103 cat >conftest.$ac_ext <<_ACEOF
19104 /* confdefs.h. */
19105 _ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h. */
19109 #include <sys/cpustats.h>
19110 _ACEOF
19111 if { (ac_try="$ac_cpp conftest.$ac_ext"
19112 case "(($ac_try" in
19113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19114 *) ac_try_echo=$ac_try;;
19115 esac
19116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19117 $as_echo "$ac_try_echo") >&5
19118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19119 ac_status=$?
19120 grep -v '^ *+' conftest.er1 >conftest.err
19121 rm -f conftest.er1
19122 cat conftest.err >&5
19123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); } >/dev/null && {
19125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19126 test ! -s conftest.err
19127 }; then
19128 ac_header_preproc=yes
19129 else
19130 $as_echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19132
19133 ac_header_preproc=no
19134 fi
19135
19136 rm -f conftest.err conftest.$ac_ext
19137 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19138 $as_echo "$ac_header_preproc" >&6; }
19139
19140 # So? What about this header?
19141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19142 yes:no: )
19143 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19144 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19145 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19146 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19147 ac_header_preproc=yes
19148 ;;
19149 no:yes:* )
19150 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19151 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19152 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19153 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19154 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19155 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19156 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19157 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19158 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19159 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19160 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19161 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19162
19163 ;;
19164 esac
19165 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19166 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19167 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19168 $as_echo_n "(cached) " >&6
19169 else
19170 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19171 fi
19172 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19173 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19174
19175 fi
19176 if test $ac_cv_header_sys_cpustats_h = yes; then
19177 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19178 #define UMAX 1
19179 _ACEOF
19180
19181 fi
19182
19183
19184 fi
19185
19186 if test $ac_have_func = no; then
19187
19188 for ac_header in mach/mach.h
19189 do
19190 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19192 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19193 $as_echo_n "checking for $ac_header... " >&6; }
19194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19195 $as_echo_n "(cached) " >&6
19196 fi
19197 ac_res=`eval 'as_val=${'$as_ac_Header'}
19198 $as_echo "$as_val"'`
19199 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19200 $as_echo "$ac_res" >&6; }
19201 else
19202 # Is the header compilable?
19203 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19204 $as_echo_n "checking $ac_header usability... " >&6; }
19205 cat >conftest.$ac_ext <<_ACEOF
19206 /* confdefs.h. */
19207 _ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h. */
19211 $ac_includes_default
19212 #include <$ac_header>
19213 _ACEOF
19214 rm -f conftest.$ac_objext
19215 if { (ac_try="$ac_compile"
19216 case "(($ac_try" in
19217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218 *) ac_try_echo=$ac_try;;
19219 esac
19220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19221 $as_echo "$ac_try_echo") >&5
19222 (eval "$ac_compile") 2>conftest.er1
19223 ac_status=$?
19224 grep -v '^ *+' conftest.er1 >conftest.err
19225 rm -f conftest.er1
19226 cat conftest.err >&5
19227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } && {
19229 test -z "$ac_c_werror_flag" ||
19230 test ! -s conftest.err
19231 } && test -s conftest.$ac_objext; then
19232 ac_header_compiler=yes
19233 else
19234 $as_echo "$as_me: failed program was:" >&5
19235 sed 's/^/| /' conftest.$ac_ext >&5
19236
19237 ac_header_compiler=no
19238 fi
19239
19240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19241 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19242 $as_echo "$ac_header_compiler" >&6; }
19243
19244 # Is the header present?
19245 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19246 $as_echo_n "checking $ac_header presence... " >&6; }
19247 cat >conftest.$ac_ext <<_ACEOF
19248 /* confdefs.h. */
19249 _ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h. */
19253 #include <$ac_header>
19254 _ACEOF
19255 if { (ac_try="$ac_cpp conftest.$ac_ext"
19256 case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19259 esac
19260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19261 $as_echo "$ac_try_echo") >&5
19262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19263 ac_status=$?
19264 grep -v '^ *+' conftest.er1 >conftest.err
19265 rm -f conftest.er1
19266 cat conftest.err >&5
19267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } >/dev/null && {
19269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19270 test ! -s conftest.err
19271 }; then
19272 ac_header_preproc=yes
19273 else
19274 $as_echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19276
19277 ac_header_preproc=no
19278 fi
19279
19280 rm -f conftest.err conftest.$ac_ext
19281 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19282 $as_echo "$ac_header_preproc" >&6; }
19283
19284 # So? What about this header?
19285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19286 yes:no: )
19287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19288 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19290 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19291 ac_header_preproc=yes
19292 ;;
19293 no:yes:* )
19294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19295 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19297 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19299 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19301 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19303 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19305 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19306
19307 ;;
19308 esac
19309 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19310 $as_echo_n "checking for $ac_header... " >&6; }
19311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19312 $as_echo_n "(cached) " >&6
19313 else
19314 eval "$as_ac_Header=\$ac_header_preproc"
19315 fi
19316 ac_res=`eval 'as_val=${'$as_ac_Header'}
19317 $as_echo "$as_val"'`
19318 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19319 $as_echo "$ac_res" >&6; }
19320
19321 fi
19322 if test `eval 'as_val=${'$as_ac_Header'}
19323 $as_echo "$as_val"'` = yes; then
19324 cat >>confdefs.h <<_ACEOF
19325 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19326 _ACEOF
19327
19328 fi
19329
19330 done
19331
19332 fi
19333
19334
19335 for ac_header in nlist.h
19336 do
19337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19339 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19340 $as_echo_n "checking for $ac_header... " >&6; }
19341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19342 $as_echo_n "(cached) " >&6
19343 fi
19344 ac_res=`eval 'as_val=${'$as_ac_Header'}
19345 $as_echo "$as_val"'`
19346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19347 $as_echo "$ac_res" >&6; }
19348 else
19349 # Is the header compilable?
19350 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19351 $as_echo_n "checking $ac_header usability... " >&6; }
19352 cat >conftest.$ac_ext <<_ACEOF
19353 /* confdefs.h. */
19354 _ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h. */
19358 $ac_includes_default
19359 #include <$ac_header>
19360 _ACEOF
19361 rm -f conftest.$ac_objext
19362 if { (ac_try="$ac_compile"
19363 case "(($ac_try" in
19364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365 *) ac_try_echo=$ac_try;;
19366 esac
19367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19368 $as_echo "$ac_try_echo") >&5
19369 (eval "$ac_compile") 2>conftest.er1
19370 ac_status=$?
19371 grep -v '^ *+' conftest.er1 >conftest.err
19372 rm -f conftest.er1
19373 cat conftest.err >&5
19374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } && {
19376 test -z "$ac_c_werror_flag" ||
19377 test ! -s conftest.err
19378 } && test -s conftest.$ac_objext; then
19379 ac_header_compiler=yes
19380 else
19381 $as_echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19383
19384 ac_header_compiler=no
19385 fi
19386
19387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19388 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19389 $as_echo "$ac_header_compiler" >&6; }
19390
19391 # Is the header present?
19392 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19393 $as_echo_n "checking $ac_header presence... " >&6; }
19394 cat >conftest.$ac_ext <<_ACEOF
19395 /* confdefs.h. */
19396 _ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19400 #include <$ac_header>
19401 _ACEOF
19402 if { (ac_try="$ac_cpp conftest.$ac_ext"
19403 case "(($ac_try" in
19404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19405 *) ac_try_echo=$ac_try;;
19406 esac
19407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19408 $as_echo "$ac_try_echo") >&5
19409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19410 ac_status=$?
19411 grep -v '^ *+' conftest.er1 >conftest.err
19412 rm -f conftest.er1
19413 cat conftest.err >&5
19414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); } >/dev/null && {
19416 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19417 test ! -s conftest.err
19418 }; then
19419 ac_header_preproc=yes
19420 else
19421 $as_echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19423
19424 ac_header_preproc=no
19425 fi
19426
19427 rm -f conftest.err conftest.$ac_ext
19428 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19429 $as_echo "$ac_header_preproc" >&6; }
19430
19431 # So? What about this header?
19432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19433 yes:no: )
19434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19435 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19437 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19438 ac_header_preproc=yes
19439 ;;
19440 no:yes:* )
19441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19442 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19444 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19446 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19448 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19450 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19452 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19453
19454 ;;
19455 esac
19456 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19457 $as_echo_n "checking for $ac_header... " >&6; }
19458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19459 $as_echo_n "(cached) " >&6
19460 else
19461 eval "$as_ac_Header=\$ac_header_preproc"
19462 fi
19463 ac_res=`eval 'as_val=${'$as_ac_Header'}
19464 $as_echo "$as_val"'`
19465 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19466 $as_echo "$ac_res" >&6; }
19467
19468 fi
19469 if test `eval 'as_val=${'$as_ac_Header'}
19470 $as_echo "$as_val"'` = yes; then
19471 cat >>confdefs.h <<_ACEOF
19472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19473 _ACEOF
19474 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19475 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19476 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19477 $as_echo_n "(cached) " >&6
19478 else
19479 cat >conftest.$ac_ext <<_ACEOF
19480 /* confdefs.h. */
19481 _ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19485 #include <nlist.h>
19486
19487 int
19488 main ()
19489 {
19490 static struct nlist ac_aggr;
19491 if (ac_aggr.n_un.n_name)
19492 return 0;
19493 ;
19494 return 0;
19495 }
19496 _ACEOF
19497 rm -f conftest.$ac_objext
19498 if { (ac_try="$ac_compile"
19499 case "(($ac_try" in
19500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501 *) ac_try_echo=$ac_try;;
19502 esac
19503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19504 $as_echo "$ac_try_echo") >&5
19505 (eval "$ac_compile") 2>conftest.er1
19506 ac_status=$?
19507 grep -v '^ *+' conftest.er1 >conftest.err
19508 rm -f conftest.er1
19509 cat conftest.err >&5
19510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } && {
19512 test -z "$ac_c_werror_flag" ||
19513 test ! -s conftest.err
19514 } && test -s conftest.$ac_objext; then
19515 ac_cv_member_struct_nlist_n_un_n_name=yes
19516 else
19517 $as_echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.$ac_ext >&5
19519
19520 cat >conftest.$ac_ext <<_ACEOF
19521 /* confdefs.h. */
19522 _ACEOF
19523 cat confdefs.h >>conftest.$ac_ext
19524 cat >>conftest.$ac_ext <<_ACEOF
19525 /* end confdefs.h. */
19526 #include <nlist.h>
19527
19528 int
19529 main ()
19530 {
19531 static struct nlist ac_aggr;
19532 if (sizeof ac_aggr.n_un.n_name)
19533 return 0;
19534 ;
19535 return 0;
19536 }
19537 _ACEOF
19538 rm -f conftest.$ac_objext
19539 if { (ac_try="$ac_compile"
19540 case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19543 esac
19544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19545 $as_echo "$ac_try_echo") >&5
19546 (eval "$ac_compile") 2>conftest.er1
19547 ac_status=$?
19548 grep -v '^ *+' conftest.er1 >conftest.err
19549 rm -f conftest.er1
19550 cat conftest.err >&5
19551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } && {
19553 test -z "$ac_c_werror_flag" ||
19554 test ! -s conftest.err
19555 } && test -s conftest.$ac_objext; then
19556 ac_cv_member_struct_nlist_n_un_n_name=yes
19557 else
19558 $as_echo "$as_me: failed program was:" >&5
19559 sed 's/^/| /' conftest.$ac_ext >&5
19560
19561 ac_cv_member_struct_nlist_n_un_n_name=no
19562 fi
19563
19564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19565 fi
19566
19567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19568 fi
19569 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19570 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19571 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19572
19573 cat >>confdefs.h <<_ACEOF
19574 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19575 _ACEOF
19576
19577
19578 cat >>confdefs.h <<\_ACEOF
19579 #define NLIST_NAME_UNION 1
19580 _ACEOF
19581
19582 fi
19583
19584
19585 fi
19586
19587 done
19588
19589 fi
19590 done
19591
19592
19593 # Some definitions of getloadavg require that the program be installed setgid.
19594 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19595 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19596 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19597 $as_echo_n "(cached) " >&6
19598 else
19599 cat >conftest.$ac_ext <<_ACEOF
19600 /* confdefs.h. */
19601 _ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19605 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19606 #ifdef LDAV_PRIVILEGED
19607 Yowza Am I SETGID yet
19608 #endif
19609 _ACEOF
19610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19611 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19612 ac_cv_func_getloadavg_setgid=yes
19613 else
19614 ac_cv_func_getloadavg_setgid=no
19615 fi
19616 rm -f conftest*
19617
19618 fi
19619 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19620 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19621 if test $ac_cv_func_getloadavg_setgid = yes; then
19622 NEED_SETGID=true
19623
19624 cat >>confdefs.h <<\_ACEOF
19625 #define GETLOADAVG_PRIVILEGED 1
19626 _ACEOF
19627
19628 else
19629 NEED_SETGID=false
19630 fi
19631
19632 if test $ac_cv_func_getloadavg_setgid = yes; then
19633 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19634 $as_echo_n "checking group of /dev/kmem... " >&6; }
19635 if test "${ac_cv_group_kmem+set}" = set; then
19636 $as_echo_n "(cached) " >&6
19637 else
19638 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19639 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19640 # If we got an error (system does not support symlinks), try without -L.
19641 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19642 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19643 | sed -ne 's/[ ][ ]*/ /g;
19644 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19645 / /s/.* //;p;'`
19646
19647 fi
19648 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19649 $as_echo "$ac_cv_group_kmem" >&6; }
19650 KMEM_GROUP=$ac_cv_group_kmem
19651 fi
19652 if test "x$ac_save_LIBS" = x; then
19653 GETLOADAVG_LIBS=$LIBS
19654 else
19655 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
19656 fi
19657 LIBS=$ac_save_LIBS
19658
19659
19660
19661 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19662 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19663 if test "${ac_cv_sys_largefile_source+set}" = set; then
19664 $as_echo_n "(cached) " >&6
19665 else
19666 while :; do
19667 cat >conftest.$ac_ext <<_ACEOF
19668 /* confdefs.h. */
19669 _ACEOF
19670 cat confdefs.h >>conftest.$ac_ext
19671 cat >>conftest.$ac_ext <<_ACEOF
19672 /* end confdefs.h. */
19673 #include <sys/types.h> /* for off_t */
19674 #include <stdio.h>
19675 int
19676 main ()
19677 {
19678 int (*fp) (FILE *, off_t, int) = fseeko;
19679 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19680 ;
19681 return 0;
19682 }
19683 _ACEOF
19684 rm -f conftest.$ac_objext conftest$ac_exeext
19685 if { (ac_try="$ac_link"
19686 case "(($ac_try" in
19687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688 *) ac_try_echo=$ac_try;;
19689 esac
19690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19691 $as_echo "$ac_try_echo") >&5
19692 (eval "$ac_link") 2>conftest.er1
19693 ac_status=$?
19694 grep -v '^ *+' conftest.er1 >conftest.err
19695 rm -f conftest.er1
19696 cat conftest.err >&5
19697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } && {
19699 test -z "$ac_c_werror_flag" ||
19700 test ! -s conftest.err
19701 } && test -s conftest$ac_exeext && {
19702 test "$cross_compiling" = yes ||
19703 $as_test_x conftest$ac_exeext
19704 }; then
19705 ac_cv_sys_largefile_source=no; break
19706 else
19707 $as_echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19709
19710
19711 fi
19712
19713 rm -rf conftest.dSYM
19714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19715 conftest$ac_exeext conftest.$ac_ext
19716 cat >conftest.$ac_ext <<_ACEOF
19717 /* confdefs.h. */
19718 _ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h. */
19722 #define _LARGEFILE_SOURCE 1
19723 #include <sys/types.h> /* for off_t */
19724 #include <stdio.h>
19725 int
19726 main ()
19727 {
19728 int (*fp) (FILE *, off_t, int) = fseeko;
19729 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19730 ;
19731 return 0;
19732 }
19733 _ACEOF
19734 rm -f conftest.$ac_objext conftest$ac_exeext
19735 if { (ac_try="$ac_link"
19736 case "(($ac_try" in
19737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738 *) ac_try_echo=$ac_try;;
19739 esac
19740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19741 $as_echo "$ac_try_echo") >&5
19742 (eval "$ac_link") 2>conftest.er1
19743 ac_status=$?
19744 grep -v '^ *+' conftest.er1 >conftest.err
19745 rm -f conftest.er1
19746 cat conftest.err >&5
19747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } && {
19749 test -z "$ac_c_werror_flag" ||
19750 test ! -s conftest.err
19751 } && test -s conftest$ac_exeext && {
19752 test "$cross_compiling" = yes ||
19753 $as_test_x conftest$ac_exeext
19754 }; then
19755 ac_cv_sys_largefile_source=1; break
19756 else
19757 $as_echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19759
19760
19761 fi
19762
19763 rm -rf conftest.dSYM
19764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19765 conftest$ac_exeext conftest.$ac_ext
19766 ac_cv_sys_largefile_source=unknown
19767 break
19768 done
19769 fi
19770 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19771 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19772 case $ac_cv_sys_largefile_source in #(
19773 no | unknown) ;;
19774 *)
19775 cat >>confdefs.h <<_ACEOF
19776 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19777 _ACEOF
19778 ;;
19779 esac
19780 rm -rf conftest*
19781
19782 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19783 # in glibc 2.1.3, but that breaks too many other things.
19784 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19785 if test $ac_cv_sys_largefile_source != unknown; then
19786
19787 cat >>confdefs.h <<\_ACEOF
19788 #define HAVE_FSEEKO 1
19789 _ACEOF
19790
19791 fi
19792
19793
19794 # Configure getopt.
19795 # getopt.m4 serial 10
19796
19797 # The getopt module assume you want GNU getopt, with getopt_long etc,
19798 # rather than vanilla POSIX getopt. This means your your code should
19799 # always include <getopt.h> for the getopt prototypes.
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811 # Prerequisites of lib/getopt*.
19812
19813
19814
19815
19816 GETOPT_H=
19817
19818 for ac_header in getopt.h
19819 do
19820 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19822 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19823 $as_echo_n "checking for $ac_header... " >&6; }
19824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19825 $as_echo_n "(cached) " >&6
19826 fi
19827 ac_res=`eval 'as_val=${'$as_ac_Header'}
19828 $as_echo "$as_val"'`
19829 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19830 $as_echo "$ac_res" >&6; }
19831 else
19832 # Is the header compilable?
19833 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19834 $as_echo_n "checking $ac_header usability... " >&6; }
19835 cat >conftest.$ac_ext <<_ACEOF
19836 /* confdefs.h. */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19841 $ac_includes_default
19842 #include <$ac_header>
19843 _ACEOF
19844 rm -f conftest.$ac_objext
19845 if { (ac_try="$ac_compile"
19846 case "(($ac_try" in
19847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19848 *) ac_try_echo=$ac_try;;
19849 esac
19850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19851 $as_echo "$ac_try_echo") >&5
19852 (eval "$ac_compile") 2>conftest.er1
19853 ac_status=$?
19854 grep -v '^ *+' conftest.er1 >conftest.err
19855 rm -f conftest.er1
19856 cat conftest.err >&5
19857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } && {
19859 test -z "$ac_c_werror_flag" ||
19860 test ! -s conftest.err
19861 } && test -s conftest.$ac_objext; then
19862 ac_header_compiler=yes
19863 else
19864 $as_echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19866
19867 ac_header_compiler=no
19868 fi
19869
19870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19871 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19872 $as_echo "$ac_header_compiler" >&6; }
19873
19874 # Is the header present?
19875 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19876 $as_echo_n "checking $ac_header presence... " >&6; }
19877 cat >conftest.$ac_ext <<_ACEOF
19878 /* confdefs.h. */
19879 _ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h. */
19883 #include <$ac_header>
19884 _ACEOF
19885 if { (ac_try="$ac_cpp conftest.$ac_ext"
19886 case "(($ac_try" in
19887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19888 *) ac_try_echo=$ac_try;;
19889 esac
19890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19891 $as_echo "$ac_try_echo") >&5
19892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19893 ac_status=$?
19894 grep -v '^ *+' conftest.er1 >conftest.err
19895 rm -f conftest.er1
19896 cat conftest.err >&5
19897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); } >/dev/null && {
19899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19900 test ! -s conftest.err
19901 }; then
19902 ac_header_preproc=yes
19903 else
19904 $as_echo "$as_me: failed program was:" >&5
19905 sed 's/^/| /' conftest.$ac_ext >&5
19906
19907 ac_header_preproc=no
19908 fi
19909
19910 rm -f conftest.err conftest.$ac_ext
19911 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19912 $as_echo "$ac_header_preproc" >&6; }
19913
19914 # So? What about this header?
19915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19916 yes:no: )
19917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19918 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19919 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19920 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19921 ac_header_preproc=yes
19922 ;;
19923 no:yes:* )
19924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19925 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19927 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19929 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19931 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19933 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19935 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19936
19937 ;;
19938 esac
19939 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19940 $as_echo_n "checking for $ac_header... " >&6; }
19941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19942 $as_echo_n "(cached) " >&6
19943 else
19944 eval "$as_ac_Header=\$ac_header_preproc"
19945 fi
19946 ac_res=`eval 'as_val=${'$as_ac_Header'}
19947 $as_echo "$as_val"'`
19948 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19949 $as_echo "$ac_res" >&6; }
19950
19951 fi
19952 if test `eval 'as_val=${'$as_ac_Header'}
19953 $as_echo "$as_val"'` = yes; then
19954 cat >>confdefs.h <<_ACEOF
19955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19956 _ACEOF
19957
19958 else
19959 GETOPT_H=getopt.h
19960 fi
19961
19962 done
19963
19964 if test -z "$GETOPT_H"; then
19965
19966 for ac_func in getopt_long_only
19967 do
19968 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19969 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19970 $as_echo_n "checking for $ac_func... " >&6; }
19971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19972 $as_echo_n "(cached) " >&6
19973 else
19974 cat >conftest.$ac_ext <<_ACEOF
19975 /* confdefs.h. */
19976 _ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h. */
19980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19982 #define $ac_func innocuous_$ac_func
19983
19984 /* System header to define __stub macros and hopefully few prototypes,
19985 which can conflict with char $ac_func (); below.
19986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19987 <limits.h> exists even on freestanding compilers. */
19988
19989 #ifdef __STDC__
19990 # include <limits.h>
19991 #else
19992 # include <assert.h>
19993 #endif
19994
19995 #undef $ac_func
19996
19997 /* Override any GCC internal prototype to avoid an error.
19998 Use char because int might match the return type of a GCC
19999 builtin and then its argument prototype would still apply. */
20000 #ifdef __cplusplus
20001 extern "C"
20002 #endif
20003 char $ac_func ();
20004 /* The GNU C library defines this for functions which it implements
20005 to always fail with ENOSYS. Some functions are actually named
20006 something starting with __ and the normal name is an alias. */
20007 #if defined __stub_$ac_func || defined __stub___$ac_func
20008 choke me
20009 #endif
20010
20011 int
20012 main ()
20013 {
20014 return $ac_func ();
20015 ;
20016 return 0;
20017 }
20018 _ACEOF
20019 rm -f conftest.$ac_objext conftest$ac_exeext
20020 if { (ac_try="$ac_link"
20021 case "(($ac_try" in
20022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20023 *) ac_try_echo=$ac_try;;
20024 esac
20025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20026 $as_echo "$ac_try_echo") >&5
20027 (eval "$ac_link") 2>conftest.er1
20028 ac_status=$?
20029 grep -v '^ *+' conftest.er1 >conftest.err
20030 rm -f conftest.er1
20031 cat conftest.err >&5
20032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); } && {
20034 test -z "$ac_c_werror_flag" ||
20035 test ! -s conftest.err
20036 } && test -s conftest$ac_exeext && {
20037 test "$cross_compiling" = yes ||
20038 $as_test_x conftest$ac_exeext
20039 }; then
20040 eval "$as_ac_var=yes"
20041 else
20042 $as_echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20044
20045 eval "$as_ac_var=no"
20046 fi
20047
20048 rm -rf conftest.dSYM
20049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20050 conftest$ac_exeext conftest.$ac_ext
20051 fi
20052 ac_res=`eval 'as_val=${'$as_ac_var'}
20053 $as_echo "$as_val"'`
20054 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20055 $as_echo "$ac_res" >&6; }
20056 if test `eval 'as_val=${'$as_ac_var'}
20057 $as_echo "$as_val"'` = yes; then
20058 cat >>confdefs.h <<_ACEOF
20059 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20060 _ACEOF
20061
20062 else
20063 GETOPT_H=getopt.h
20064 fi
20065 done
20066
20067 fi
20068
20069 if test -z "$GETOPT_H"; then
20070 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20071 $as_echo_n "checking whether optreset is declared... " >&6; }
20072 if test "${ac_cv_have_decl_optreset+set}" = set; then
20073 $as_echo_n "(cached) " >&6
20074 else
20075 cat >conftest.$ac_ext <<_ACEOF
20076 /* confdefs.h. */
20077 _ACEOF
20078 cat confdefs.h >>conftest.$ac_ext
20079 cat >>conftest.$ac_ext <<_ACEOF
20080 /* end confdefs.h. */
20081 #include <getopt.h>
20082
20083 int
20084 main ()
20085 {
20086 #ifndef optreset
20087 (void) optreset;
20088 #endif
20089
20090 ;
20091 return 0;
20092 }
20093 _ACEOF
20094 rm -f conftest.$ac_objext
20095 if { (ac_try="$ac_compile"
20096 case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20099 esac
20100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20101 $as_echo "$ac_try_echo") >&5
20102 (eval "$ac_compile") 2>conftest.er1
20103 ac_status=$?
20104 grep -v '^ *+' conftest.er1 >conftest.err
20105 rm -f conftest.er1
20106 cat conftest.err >&5
20107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); } && {
20109 test -z "$ac_c_werror_flag" ||
20110 test ! -s conftest.err
20111 } && test -s conftest.$ac_objext; then
20112 ac_cv_have_decl_optreset=yes
20113 else
20114 $as_echo "$as_me: failed program was:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20116
20117 ac_cv_have_decl_optreset=no
20118 fi
20119
20120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20121 fi
20122 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20123 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20124 if test $ac_cv_have_decl_optreset = yes; then
20125 GETOPT_H=getopt.h
20126 fi
20127
20128 fi
20129
20130 if test -z "$GETOPT_H"; then
20131 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20132 $as_echo_n "checking for working GNU getopt function... " >&6; }
20133 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20134 $as_echo_n "(cached) " >&6
20135 else
20136 if test "$cross_compiling" = yes; then
20137 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20138 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20139 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20140 $as_echo_n "(cached) " >&6
20141 else
20142 cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h. */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 #include <getopt.h>
20149
20150 int
20151 main ()
20152 {
20153 #ifndef getopt_clip
20154 (void) getopt_clip;
20155 #endif
20156
20157 ;
20158 return 0;
20159 }
20160 _ACEOF
20161 rm -f conftest.$ac_objext
20162 if { (ac_try="$ac_compile"
20163 case "(($ac_try" in
20164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165 *) ac_try_echo=$ac_try;;
20166 esac
20167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20168 $as_echo "$ac_try_echo") >&5
20169 (eval "$ac_compile") 2>conftest.er1
20170 ac_status=$?
20171 grep -v '^ *+' conftest.er1 >conftest.err
20172 rm -f conftest.er1
20173 cat conftest.err >&5
20174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } && {
20176 test -z "$ac_c_werror_flag" ||
20177 test ! -s conftest.err
20178 } && test -s conftest.$ac_objext; then
20179 ac_cv_have_decl_getopt_clip=yes
20180 else
20181 $as_echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20183
20184 ac_cv_have_decl_getopt_clip=no
20185 fi
20186
20187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20188 fi
20189 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20190 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20191 if test $ac_cv_have_decl_getopt_clip = yes; then
20192 gl_cv_func_gnu_getopt=no
20193 else
20194 gl_cv_func_gnu_getopt=yes
20195 fi
20196
20197 else
20198 cat >conftest.$ac_ext <<_ACEOF
20199 /* confdefs.h. */
20200 _ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h. */
20204 #include <getopt.h>
20205 int
20206 main ()
20207 {
20208
20209 char *myargv[3];
20210 myargv[0] = "conftest";
20211 myargv[1] = "-+";
20212 myargv[2] = 0;
20213 return getopt (2, myargv, "+a") != '?';
20214
20215 ;
20216 return 0;
20217 }
20218 _ACEOF
20219 rm -f conftest$ac_exeext
20220 if { (ac_try="$ac_link"
20221 case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20224 esac
20225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20226 $as_echo "$ac_try_echo") >&5
20227 (eval "$ac_link") 2>&5
20228 ac_status=$?
20229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20231 { (case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20234 esac
20235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20236 $as_echo "$ac_try_echo") >&5
20237 (eval "$ac_try") 2>&5
20238 ac_status=$?
20239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; }; then
20241 gl_cv_func_gnu_getopt=yes
20242 else
20243 $as_echo "$as_me: program exited with status $ac_status" >&5
20244 $as_echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20246
20247 ( exit $ac_status )
20248 gl_cv_func_gnu_getopt=no
20249 fi
20250 rm -rf conftest.dSYM
20251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20252 fi
20253
20254
20255 fi
20256 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20257 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20258 if test "$gl_cv_func_gnu_getopt" = "no"; then
20259 GETOPT_H=getopt.h
20260 fi
20261 fi
20262
20263
20264
20265 if test -n "$GETOPT_H"; then
20266
20267
20268 GETOPT_H=getopt.h
20269
20270 cat >>confdefs.h <<\_ACEOF
20271 #define __GETOPT_PREFIX rpl_
20272 _ACEOF
20273
20274
20275
20276 :
20277 GETOPTOBJS='getopt.o getopt1.o'
20278
20279 fi
20280
20281
20282
20283
20284 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20285 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20286 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20287 $as_echo_n "(cached) " >&6
20288 else
20289 # Use it with a single arg.
20290 cat >conftest.$ac_ext <<_ACEOF
20291 /* confdefs.h. */
20292 _ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h. */
20296 $ac_includes_default
20297 int
20298 main ()
20299 {
20300 getpgrp (0);
20301 ;
20302 return 0;
20303 }
20304 _ACEOF
20305 rm -f conftest.$ac_objext
20306 if { (ac_try="$ac_compile"
20307 case "(($ac_try" in
20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20310 esac
20311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20312 $as_echo "$ac_try_echo") >&5
20313 (eval "$ac_compile") 2>conftest.er1
20314 ac_status=$?
20315 grep -v '^ *+' conftest.er1 >conftest.err
20316 rm -f conftest.er1
20317 cat conftest.err >&5
20318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); } && {
20320 test -z "$ac_c_werror_flag" ||
20321 test ! -s conftest.err
20322 } && test -s conftest.$ac_objext; then
20323 ac_cv_func_getpgrp_void=no
20324 else
20325 $as_echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20327
20328 ac_cv_func_getpgrp_void=yes
20329 fi
20330
20331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20332
20333 fi
20334 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20335 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20336 if test $ac_cv_func_getpgrp_void = yes; then
20337
20338 cat >>confdefs.h <<\_ACEOF
20339 #define GETPGRP_VOID 1
20340 _ACEOF
20341
20342 fi
20343
20344
20345
20346 for ac_func in strftime
20347 do
20348 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20349 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20350 $as_echo_n "checking for $ac_func... " >&6; }
20351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20352 $as_echo_n "(cached) " >&6
20353 else
20354 cat >conftest.$ac_ext <<_ACEOF
20355 /* confdefs.h. */
20356 _ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h. */
20360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20362 #define $ac_func innocuous_$ac_func
20363
20364 /* System header to define __stub macros and hopefully few prototypes,
20365 which can conflict with char $ac_func (); below.
20366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20367 <limits.h> exists even on freestanding compilers. */
20368
20369 #ifdef __STDC__
20370 # include <limits.h>
20371 #else
20372 # include <assert.h>
20373 #endif
20374
20375 #undef $ac_func
20376
20377 /* Override any GCC internal prototype to avoid an error.
20378 Use char because int might match the return type of a GCC
20379 builtin and then its argument prototype would still apply. */
20380 #ifdef __cplusplus
20381 extern "C"
20382 #endif
20383 char $ac_func ();
20384 /* The GNU C library defines this for functions which it implements
20385 to always fail with ENOSYS. Some functions are actually named
20386 something starting with __ and the normal name is an alias. */
20387 #if defined __stub_$ac_func || defined __stub___$ac_func
20388 choke me
20389 #endif
20390
20391 int
20392 main ()
20393 {
20394 return $ac_func ();
20395 ;
20396 return 0;
20397 }
20398 _ACEOF
20399 rm -f conftest.$ac_objext conftest$ac_exeext
20400 if { (ac_try="$ac_link"
20401 case "(($ac_try" in
20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403 *) ac_try_echo=$ac_try;;
20404 esac
20405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20406 $as_echo "$ac_try_echo") >&5
20407 (eval "$ac_link") 2>conftest.er1
20408 ac_status=$?
20409 grep -v '^ *+' conftest.er1 >conftest.err
20410 rm -f conftest.er1
20411 cat conftest.err >&5
20412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); } && {
20414 test -z "$ac_c_werror_flag" ||
20415 test ! -s conftest.err
20416 } && test -s conftest$ac_exeext && {
20417 test "$cross_compiling" = yes ||
20418 $as_test_x conftest$ac_exeext
20419 }; then
20420 eval "$as_ac_var=yes"
20421 else
20422 $as_echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.$ac_ext >&5
20424
20425 eval "$as_ac_var=no"
20426 fi
20427
20428 rm -rf conftest.dSYM
20429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20430 conftest$ac_exeext conftest.$ac_ext
20431 fi
20432 ac_res=`eval 'as_val=${'$as_ac_var'}
20433 $as_echo "$as_val"'`
20434 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20435 $as_echo "$ac_res" >&6; }
20436 if test `eval 'as_val=${'$as_ac_var'}
20437 $as_echo "$as_val"'` = yes; then
20438 cat >>confdefs.h <<_ACEOF
20439 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20440 _ACEOF
20441
20442 else
20443 # strftime is in -lintl on SCO UNIX.
20444 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20445 $as_echo_n "checking for strftime in -lintl... " >&6; }
20446 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20447 $as_echo_n "(cached) " >&6
20448 else
20449 ac_check_lib_save_LIBS=$LIBS
20450 LIBS="-lintl $LIBS"
20451 cat >conftest.$ac_ext <<_ACEOF
20452 /* confdefs.h. */
20453 _ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20457
20458 /* Override any GCC internal prototype to avoid an error.
20459 Use char because int might match the return type of a GCC
20460 builtin and then its argument prototype would still apply. */
20461 #ifdef __cplusplus
20462 extern "C"
20463 #endif
20464 char strftime ();
20465 int
20466 main ()
20467 {
20468 return strftime ();
20469 ;
20470 return 0;
20471 }
20472 _ACEOF
20473 rm -f conftest.$ac_objext conftest$ac_exeext
20474 if { (ac_try="$ac_link"
20475 case "(($ac_try" in
20476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477 *) ac_try_echo=$ac_try;;
20478 esac
20479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20480 $as_echo "$ac_try_echo") >&5
20481 (eval "$ac_link") 2>conftest.er1
20482 ac_status=$?
20483 grep -v '^ *+' conftest.er1 >conftest.err
20484 rm -f conftest.er1
20485 cat conftest.err >&5
20486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); } && {
20488 test -z "$ac_c_werror_flag" ||
20489 test ! -s conftest.err
20490 } && test -s conftest$ac_exeext && {
20491 test "$cross_compiling" = yes ||
20492 $as_test_x conftest$ac_exeext
20493 }; then
20494 ac_cv_lib_intl_strftime=yes
20495 else
20496 $as_echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20498
20499 ac_cv_lib_intl_strftime=no
20500 fi
20501
20502 rm -rf conftest.dSYM
20503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20504 conftest$ac_exeext conftest.$ac_ext
20505 LIBS=$ac_check_lib_save_LIBS
20506 fi
20507 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20508 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20509 if test $ac_cv_lib_intl_strftime = yes; then
20510 cat >>confdefs.h <<\_ACEOF
20511 #define HAVE_STRFTIME 1
20512 _ACEOF
20513
20514 LIBS="-lintl $LIBS"
20515 fi
20516
20517 fi
20518 done
20519
20520
20521 # UNIX98 PTYs.
20522
20523 for ac_func in grantpt
20524 do
20525 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20526 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20527 $as_echo_n "checking for $ac_func... " >&6; }
20528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20529 $as_echo_n "(cached) " >&6
20530 else
20531 cat >conftest.$ac_ext <<_ACEOF
20532 /* confdefs.h. */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20539 #define $ac_func innocuous_$ac_func
20540
20541 /* System header to define __stub macros and hopefully few prototypes,
20542 which can conflict with char $ac_func (); below.
20543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20544 <limits.h> exists even on freestanding compilers. */
20545
20546 #ifdef __STDC__
20547 # include <limits.h>
20548 #else
20549 # include <assert.h>
20550 #endif
20551
20552 #undef $ac_func
20553
20554 /* Override any GCC internal prototype to avoid an error.
20555 Use char because int might match the return type of a GCC
20556 builtin and then its argument prototype would still apply. */
20557 #ifdef __cplusplus
20558 extern "C"
20559 #endif
20560 char $ac_func ();
20561 /* The GNU C library defines this for functions which it implements
20562 to always fail with ENOSYS. Some functions are actually named
20563 something starting with __ and the normal name is an alias. */
20564 #if defined __stub_$ac_func || defined __stub___$ac_func
20565 choke me
20566 #endif
20567
20568 int
20569 main ()
20570 {
20571 return $ac_func ();
20572 ;
20573 return 0;
20574 }
20575 _ACEOF
20576 rm -f conftest.$ac_objext conftest$ac_exeext
20577 if { (ac_try="$ac_link"
20578 case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20581 esac
20582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20583 $as_echo "$ac_try_echo") >&5
20584 (eval "$ac_link") 2>conftest.er1
20585 ac_status=$?
20586 grep -v '^ *+' conftest.er1 >conftest.err
20587 rm -f conftest.er1
20588 cat conftest.err >&5
20589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); } && {
20591 test -z "$ac_c_werror_flag" ||
20592 test ! -s conftest.err
20593 } && test -s conftest$ac_exeext && {
20594 test "$cross_compiling" = yes ||
20595 $as_test_x conftest$ac_exeext
20596 }; then
20597 eval "$as_ac_var=yes"
20598 else
20599 $as_echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.$ac_ext >&5
20601
20602 eval "$as_ac_var=no"
20603 fi
20604
20605 rm -rf conftest.dSYM
20606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20607 conftest$ac_exeext conftest.$ac_ext
20608 fi
20609 ac_res=`eval 'as_val=${'$as_ac_var'}
20610 $as_echo "$as_val"'`
20611 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20612 $as_echo "$ac_res" >&6; }
20613 if test `eval 'as_val=${'$as_ac_var'}
20614 $as_echo "$as_val"'` = yes; then
20615 cat >>confdefs.h <<_ACEOF
20616 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20617 _ACEOF
20618
20619 fi
20620 done
20621
20622
20623 # PTY-related GNU extensions.
20624
20625 for ac_func in getpt
20626 do
20627 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20628 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20629 $as_echo_n "checking for $ac_func... " >&6; }
20630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20631 $as_echo_n "(cached) " >&6
20632 else
20633 cat >conftest.$ac_ext <<_ACEOF
20634 /* confdefs.h. */
20635 _ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h. */
20639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20641 #define $ac_func innocuous_$ac_func
20642
20643 /* System header to define __stub macros and hopefully few prototypes,
20644 which can conflict with char $ac_func (); below.
20645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20646 <limits.h> exists even on freestanding compilers. */
20647
20648 #ifdef __STDC__
20649 # include <limits.h>
20650 #else
20651 # include <assert.h>
20652 #endif
20653
20654 #undef $ac_func
20655
20656 /* Override any GCC internal prototype to avoid an error.
20657 Use char because int might match the return type of a GCC
20658 builtin and then its argument prototype would still apply. */
20659 #ifdef __cplusplus
20660 extern "C"
20661 #endif
20662 char $ac_func ();
20663 /* The GNU C library defines this for functions which it implements
20664 to always fail with ENOSYS. Some functions are actually named
20665 something starting with __ and the normal name is an alias. */
20666 #if defined __stub_$ac_func || defined __stub___$ac_func
20667 choke me
20668 #endif
20669
20670 int
20671 main ()
20672 {
20673 return $ac_func ();
20674 ;
20675 return 0;
20676 }
20677 _ACEOF
20678 rm -f conftest.$ac_objext conftest$ac_exeext
20679 if { (ac_try="$ac_link"
20680 case "(($ac_try" in
20681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20682 *) ac_try_echo=$ac_try;;
20683 esac
20684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20685 $as_echo "$ac_try_echo") >&5
20686 (eval "$ac_link") 2>conftest.er1
20687 ac_status=$?
20688 grep -v '^ *+' conftest.er1 >conftest.err
20689 rm -f conftest.er1
20690 cat conftest.err >&5
20691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); } && {
20693 test -z "$ac_c_werror_flag" ||
20694 test ! -s conftest.err
20695 } && test -s conftest$ac_exeext && {
20696 test "$cross_compiling" = yes ||
20697 $as_test_x conftest$ac_exeext
20698 }; then
20699 eval "$as_ac_var=yes"
20700 else
20701 $as_echo "$as_me: failed program was:" >&5
20702 sed 's/^/| /' conftest.$ac_ext >&5
20703
20704 eval "$as_ac_var=no"
20705 fi
20706
20707 rm -rf conftest.dSYM
20708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20709 conftest$ac_exeext conftest.$ac_ext
20710 fi
20711 ac_res=`eval 'as_val=${'$as_ac_var'}
20712 $as_echo "$as_val"'`
20713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20714 $as_echo "$ac_res" >&6; }
20715 if test `eval 'as_val=${'$as_ac_var'}
20716 $as_echo "$as_val"'` = yes; then
20717 cat >>confdefs.h <<_ACEOF
20718 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20719 _ACEOF
20720
20721 fi
20722 done
20723
20724
20725 # Check this now, so that we will NOT find the above functions in ncurses.
20726 # That is because we have not set up to link ncurses in lib-src.
20727 # It's better to believe a function is not available
20728 # than to expect to find it in ncurses.
20729
20730 { $as_echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20731 $as_echo_n "checking for tparm in -lncurses... " >&6; }
20732 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20733 $as_echo_n "(cached) " >&6
20734 else
20735 ac_check_lib_save_LIBS=$LIBS
20736 LIBS="-lncurses $LIBS"
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
20744 /* Override any GCC internal prototype to avoid an error.
20745 Use char because int might match the return type of a GCC
20746 builtin and then its argument prototype would still apply. */
20747 #ifdef __cplusplus
20748 extern "C"
20749 #endif
20750 char tparm ();
20751 int
20752 main ()
20753 {
20754 return tparm ();
20755 ;
20756 return 0;
20757 }
20758 _ACEOF
20759 rm -f conftest.$ac_objext conftest$ac_exeext
20760 if { (ac_try="$ac_link"
20761 case "(($ac_try" in
20762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763 *) ac_try_echo=$ac_try;;
20764 esac
20765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20766 $as_echo "$ac_try_echo") >&5
20767 (eval "$ac_link") 2>conftest.er1
20768 ac_status=$?
20769 grep -v '^ *+' conftest.er1 >conftest.err
20770 rm -f conftest.er1
20771 cat conftest.err >&5
20772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } && {
20774 test -z "$ac_c_werror_flag" ||
20775 test ! -s conftest.err
20776 } && test -s conftest$ac_exeext && {
20777 test "$cross_compiling" = yes ||
20778 $as_test_x conftest$ac_exeext
20779 }; then
20780 ac_cv_lib_ncurses_tparm=yes
20781 else
20782 $as_echo "$as_me: failed program was:" >&5
20783 sed 's/^/| /' conftest.$ac_ext >&5
20784
20785 ac_cv_lib_ncurses_tparm=no
20786 fi
20787
20788 rm -rf conftest.dSYM
20789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20790 conftest$ac_exeext conftest.$ac_ext
20791 LIBS=$ac_check_lib_save_LIBS
20792 fi
20793 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20794 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
20795 if test $ac_cv_lib_ncurses_tparm = yes; then
20796 cat >>confdefs.h <<_ACEOF
20797 #define HAVE_LIBNCURSES 1
20798 _ACEOF
20799
20800 LIBS="-lncurses $LIBS"
20801
20802 fi
20803
20804
20805 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20806
20807 resolv=no
20808 cat >conftest.$ac_ext <<_ACEOF
20809 /* confdefs.h. */
20810 _ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h. */
20814 #include <netinet/in.h>
20815 #include <arpa/nameser.h>
20816 #include <resolv.h>
20817 int
20818 main ()
20819 {
20820 return res_init();
20821 ;
20822 return 0;
20823 }
20824 _ACEOF
20825 rm -f conftest.$ac_objext conftest$ac_exeext
20826 if { (ac_try="$ac_link"
20827 case "(($ac_try" in
20828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20829 *) ac_try_echo=$ac_try;;
20830 esac
20831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20832 $as_echo "$ac_try_echo") >&5
20833 (eval "$ac_link") 2>conftest.er1
20834 ac_status=$?
20835 grep -v '^ *+' conftest.er1 >conftest.err
20836 rm -f conftest.er1
20837 cat conftest.err >&5
20838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } && {
20840 test -z "$ac_c_werror_flag" ||
20841 test ! -s conftest.err
20842 } && test -s conftest$ac_exeext && {
20843 test "$cross_compiling" = yes ||
20844 $as_test_x conftest$ac_exeext
20845 }; then
20846 have_res_init=yes
20847 else
20848 $as_echo "$as_me: failed program was:" >&5
20849 sed 's/^/| /' conftest.$ac_ext >&5
20850
20851 have_res_init=no
20852 fi
20853
20854 rm -rf conftest.dSYM
20855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20856 conftest$ac_exeext conftest.$ac_ext
20857 if test "$have_res_init" = no; then
20858 OLIBS="$LIBS"
20859 LIBS="$LIBS -lresolv"
20860 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20861 $as_echo_n "checking for res_init with -lresolv... " >&6; }
20862 cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h. */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 #include <netinet/in.h>
20869 #include <arpa/nameser.h>
20870 #include <resolv.h>
20871 int
20872 main ()
20873 {
20874 return res_init();
20875 ;
20876 return 0;
20877 }
20878 _ACEOF
20879 rm -f conftest.$ac_objext conftest$ac_exeext
20880 if { (ac_try="$ac_link"
20881 case "(($ac_try" in
20882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883 *) ac_try_echo=$ac_try;;
20884 esac
20885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20886 $as_echo "$ac_try_echo") >&5
20887 (eval "$ac_link") 2>conftest.er1
20888 ac_status=$?
20889 grep -v '^ *+' conftest.er1 >conftest.err
20890 rm -f conftest.er1
20891 cat conftest.err >&5
20892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); } && {
20894 test -z "$ac_c_werror_flag" ||
20895 test ! -s conftest.err
20896 } && test -s conftest$ac_exeext && {
20897 test "$cross_compiling" = yes ||
20898 $as_test_x conftest$ac_exeext
20899 }; then
20900 have_res_init=yes
20901 else
20902 $as_echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20904
20905 have_res_init=no
20906 fi
20907
20908 rm -rf conftest.dSYM
20909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20910 conftest$ac_exeext conftest.$ac_ext
20911 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
20912 $as_echo "$have_res_init" >&6; }
20913 if test "$have_res_init" = yes ; then
20914 resolv=yes
20915 fi
20916 LIBS="$OLIBS"
20917 fi
20918
20919 if test "$have_res_init" = yes; then
20920
20921 cat >>confdefs.h <<\_ACEOF
20922 #define HAVE_RES_INIT 1
20923 _ACEOF
20924
20925 fi
20926
20927 # Do we need the Hesiod library to provide the support routines?
20928 if test "$with_hesiod" != no ; then
20929 # Don't set $LIBS here -- see comments above.
20930 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
20931 $as_echo_n "checking for res_send... " >&6; }
20932 if test "${ac_cv_func_res_send+set}" = set; then
20933 $as_echo_n "(cached) " >&6
20934 else
20935 cat >conftest.$ac_ext <<_ACEOF
20936 /* confdefs.h. */
20937 _ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h. */
20941 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20943 #define res_send innocuous_res_send
20944
20945 /* System header to define __stub macros and hopefully few prototypes,
20946 which can conflict with char res_send (); below.
20947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20948 <limits.h> exists even on freestanding compilers. */
20949
20950 #ifdef __STDC__
20951 # include <limits.h>
20952 #else
20953 # include <assert.h>
20954 #endif
20955
20956 #undef res_send
20957
20958 /* Override any GCC internal prototype to avoid an error.
20959 Use char because int might match the return type of a GCC
20960 builtin and then its argument prototype would still apply. */
20961 #ifdef __cplusplus
20962 extern "C"
20963 #endif
20964 char res_send ();
20965 /* The GNU C library defines this for functions which it implements
20966 to always fail with ENOSYS. Some functions are actually named
20967 something starting with __ and the normal name is an alias. */
20968 #if defined __stub_res_send || defined __stub___res_send
20969 choke me
20970 #endif
20971
20972 int
20973 main ()
20974 {
20975 return res_send ();
20976 ;
20977 return 0;
20978 }
20979 _ACEOF
20980 rm -f conftest.$ac_objext conftest$ac_exeext
20981 if { (ac_try="$ac_link"
20982 case "(($ac_try" in
20983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984 *) ac_try_echo=$ac_try;;
20985 esac
20986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20987 $as_echo "$ac_try_echo") >&5
20988 (eval "$ac_link") 2>conftest.er1
20989 ac_status=$?
20990 grep -v '^ *+' conftest.er1 >conftest.err
20991 rm -f conftest.er1
20992 cat conftest.err >&5
20993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); } && {
20995 test -z "$ac_c_werror_flag" ||
20996 test ! -s conftest.err
20997 } && test -s conftest$ac_exeext && {
20998 test "$cross_compiling" = yes ||
20999 $as_test_x conftest$ac_exeext
21000 }; then
21001 ac_cv_func_res_send=yes
21002 else
21003 $as_echo "$as_me: failed program was:" >&5
21004 sed 's/^/| /' conftest.$ac_ext >&5
21005
21006 ac_cv_func_res_send=no
21007 fi
21008
21009 rm -rf conftest.dSYM
21010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21011 conftest$ac_exeext conftest.$ac_ext
21012 fi
21013 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21014 $as_echo "$ac_cv_func_res_send" >&6; }
21015 if test $ac_cv_func_res_send = yes; then
21016 :
21017 else
21018 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21019 $as_echo_n "checking for __res_send... " >&6; }
21020 if test "${ac_cv_func___res_send+set}" = set; then
21021 $as_echo_n "(cached) " >&6
21022 else
21023 cat >conftest.$ac_ext <<_ACEOF
21024 /* confdefs.h. */
21025 _ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h. */
21029 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21031 #define __res_send innocuous___res_send
21032
21033 /* System header to define __stub macros and hopefully few prototypes,
21034 which can conflict with char __res_send (); below.
21035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21036 <limits.h> exists even on freestanding compilers. */
21037
21038 #ifdef __STDC__
21039 # include <limits.h>
21040 #else
21041 # include <assert.h>
21042 #endif
21043
21044 #undef __res_send
21045
21046 /* Override any GCC internal prototype to avoid an error.
21047 Use char because int might match the return type of a GCC
21048 builtin and then its argument prototype would still apply. */
21049 #ifdef __cplusplus
21050 extern "C"
21051 #endif
21052 char __res_send ();
21053 /* The GNU C library defines this for functions which it implements
21054 to always fail with ENOSYS. Some functions are actually named
21055 something starting with __ and the normal name is an alias. */
21056 #if defined __stub___res_send || defined __stub_____res_send
21057 choke me
21058 #endif
21059
21060 int
21061 main ()
21062 {
21063 return __res_send ();
21064 ;
21065 return 0;
21066 }
21067 _ACEOF
21068 rm -f conftest.$ac_objext conftest$ac_exeext
21069 if { (ac_try="$ac_link"
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_link") 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_exeext && {
21086 test "$cross_compiling" = yes ||
21087 $as_test_x conftest$ac_exeext
21088 }; then
21089 ac_cv_func___res_send=yes
21090 else
21091 $as_echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21093
21094 ac_cv_func___res_send=no
21095 fi
21096
21097 rm -rf conftest.dSYM
21098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21099 conftest$ac_exeext conftest.$ac_ext
21100 fi
21101 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21102 $as_echo "$ac_cv_func___res_send" >&6; }
21103 if test $ac_cv_func___res_send = yes; then
21104 :
21105 else
21106 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21107 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21108 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21109 $as_echo_n "(cached) " >&6
21110 else
21111 ac_check_lib_save_LIBS=$LIBS
21112 LIBS="-lresolv $LIBS"
21113 cat >conftest.$ac_ext <<_ACEOF
21114 /* confdefs.h. */
21115 _ACEOF
21116 cat confdefs.h >>conftest.$ac_ext
21117 cat >>conftest.$ac_ext <<_ACEOF
21118 /* end confdefs.h. */
21119
21120 /* Override any GCC internal prototype to avoid an error.
21121 Use char because int might match the return type of a GCC
21122 builtin and then its argument prototype would still apply. */
21123 #ifdef __cplusplus
21124 extern "C"
21125 #endif
21126 char res_send ();
21127 int
21128 main ()
21129 {
21130 return res_send ();
21131 ;
21132 return 0;
21133 }
21134 _ACEOF
21135 rm -f conftest.$ac_objext conftest$ac_exeext
21136 if { (ac_try="$ac_link"
21137 case "(($ac_try" in
21138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139 *) ac_try_echo=$ac_try;;
21140 esac
21141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21142 $as_echo "$ac_try_echo") >&5
21143 (eval "$ac_link") 2>conftest.er1
21144 ac_status=$?
21145 grep -v '^ *+' conftest.er1 >conftest.err
21146 rm -f conftest.er1
21147 cat conftest.err >&5
21148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); } && {
21150 test -z "$ac_c_werror_flag" ||
21151 test ! -s conftest.err
21152 } && test -s conftest$ac_exeext && {
21153 test "$cross_compiling" = yes ||
21154 $as_test_x conftest$ac_exeext
21155 }; then
21156 ac_cv_lib_resolv_res_send=yes
21157 else
21158 $as_echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21160
21161 ac_cv_lib_resolv_res_send=no
21162 fi
21163
21164 rm -rf conftest.dSYM
21165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21166 conftest$ac_exeext conftest.$ac_ext
21167 LIBS=$ac_check_lib_save_LIBS
21168 fi
21169 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21170 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21171 if test $ac_cv_lib_resolv_res_send = yes; then
21172 resolv=yes
21173 else
21174 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21175 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21176 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21177 $as_echo_n "(cached) " >&6
21178 else
21179 ac_check_lib_save_LIBS=$LIBS
21180 LIBS="-lresolv $LIBS"
21181 cat >conftest.$ac_ext <<_ACEOF
21182 /* confdefs.h. */
21183 _ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187
21188 /* Override any GCC internal prototype to avoid an error.
21189 Use char because int might match the return type of a GCC
21190 builtin and then its argument prototype would still apply. */
21191 #ifdef __cplusplus
21192 extern "C"
21193 #endif
21194 char __res_send ();
21195 int
21196 main ()
21197 {
21198 return __res_send ();
21199 ;
21200 return 0;
21201 }
21202 _ACEOF
21203 rm -f conftest.$ac_objext conftest$ac_exeext
21204 if { (ac_try="$ac_link"
21205 case "(($ac_try" in
21206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21207 *) ac_try_echo=$ac_try;;
21208 esac
21209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21210 $as_echo "$ac_try_echo") >&5
21211 (eval "$ac_link") 2>conftest.er1
21212 ac_status=$?
21213 grep -v '^ *+' conftest.er1 >conftest.err
21214 rm -f conftest.er1
21215 cat conftest.err >&5
21216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); } && {
21218 test -z "$ac_c_werror_flag" ||
21219 test ! -s conftest.err
21220 } && test -s conftest$ac_exeext && {
21221 test "$cross_compiling" = yes ||
21222 $as_test_x conftest$ac_exeext
21223 }; then
21224 ac_cv_lib_resolv___res_send=yes
21225 else
21226 $as_echo "$as_me: failed program was:" >&5
21227 sed 's/^/| /' conftest.$ac_ext >&5
21228
21229 ac_cv_lib_resolv___res_send=no
21230 fi
21231
21232 rm -rf conftest.dSYM
21233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21234 conftest$ac_exeext conftest.$ac_ext
21235 LIBS=$ac_check_lib_save_LIBS
21236 fi
21237 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21238 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21239 if test $ac_cv_lib_resolv___res_send = yes; then
21240 resolv=yes
21241 fi
21242
21243 fi
21244
21245 fi
21246
21247 fi
21248
21249 if test "$resolv" = yes ; then
21250 RESOLVLIB=-lresolv
21251 else
21252 RESOLVLIB=
21253 fi
21254 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21255 $as_echo_n "checking for hes_getmailhost... " >&6; }
21256 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21257 $as_echo_n "(cached) " >&6
21258 else
21259 cat >conftest.$ac_ext <<_ACEOF
21260 /* confdefs.h. */
21261 _ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h. */
21265 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21267 #define hes_getmailhost innocuous_hes_getmailhost
21268
21269 /* System header to define __stub macros and hopefully few prototypes,
21270 which can conflict with char hes_getmailhost (); below.
21271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21272 <limits.h> exists even on freestanding compilers. */
21273
21274 #ifdef __STDC__
21275 # include <limits.h>
21276 #else
21277 # include <assert.h>
21278 #endif
21279
21280 #undef hes_getmailhost
21281
21282 /* Override any GCC internal prototype to avoid an error.
21283 Use char because int might match the return type of a GCC
21284 builtin and then its argument prototype would still apply. */
21285 #ifdef __cplusplus
21286 extern "C"
21287 #endif
21288 char hes_getmailhost ();
21289 /* The GNU C library defines this for functions which it implements
21290 to always fail with ENOSYS. Some functions are actually named
21291 something starting with __ and the normal name is an alias. */
21292 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21293 choke me
21294 #endif
21295
21296 int
21297 main ()
21298 {
21299 return hes_getmailhost ();
21300 ;
21301 return 0;
21302 }
21303 _ACEOF
21304 rm -f conftest.$ac_objext conftest$ac_exeext
21305 if { (ac_try="$ac_link"
21306 case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21309 esac
21310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21311 $as_echo "$ac_try_echo") >&5
21312 (eval "$ac_link") 2>conftest.er1
21313 ac_status=$?
21314 grep -v '^ *+' conftest.er1 >conftest.err
21315 rm -f conftest.er1
21316 cat conftest.err >&5
21317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } && {
21319 test -z "$ac_c_werror_flag" ||
21320 test ! -s conftest.err
21321 } && test -s conftest$ac_exeext && {
21322 test "$cross_compiling" = yes ||
21323 $as_test_x conftest$ac_exeext
21324 }; then
21325 ac_cv_func_hes_getmailhost=yes
21326 else
21327 $as_echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21329
21330 ac_cv_func_hes_getmailhost=no
21331 fi
21332
21333 rm -rf conftest.dSYM
21334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21335 conftest$ac_exeext conftest.$ac_ext
21336 fi
21337 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21338 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21339 if test $ac_cv_func_hes_getmailhost = yes; then
21340 :
21341 else
21342 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21343 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21344 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21345 $as_echo_n "(cached) " >&6
21346 else
21347 ac_check_lib_save_LIBS=$LIBS
21348 LIBS="-lhesiod $RESOLVLIB $LIBS"
21349 cat >conftest.$ac_ext <<_ACEOF
21350 /* confdefs.h. */
21351 _ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h. */
21355
21356 /* Override any GCC internal prototype to avoid an error.
21357 Use char because int might match the return type of a GCC
21358 builtin and then its argument prototype would still apply. */
21359 #ifdef __cplusplus
21360 extern "C"
21361 #endif
21362 char hes_getmailhost ();
21363 int
21364 main ()
21365 {
21366 return hes_getmailhost ();
21367 ;
21368 return 0;
21369 }
21370 _ACEOF
21371 rm -f conftest.$ac_objext conftest$ac_exeext
21372 if { (ac_try="$ac_link"
21373 case "(($ac_try" in
21374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21375 *) ac_try_echo=$ac_try;;
21376 esac
21377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21378 $as_echo "$ac_try_echo") >&5
21379 (eval "$ac_link") 2>conftest.er1
21380 ac_status=$?
21381 grep -v '^ *+' conftest.er1 >conftest.err
21382 rm -f conftest.er1
21383 cat conftest.err >&5
21384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } && {
21386 test -z "$ac_c_werror_flag" ||
21387 test ! -s conftest.err
21388 } && test -s conftest$ac_exeext && {
21389 test "$cross_compiling" = yes ||
21390 $as_test_x conftest$ac_exeext
21391 }; then
21392 ac_cv_lib_hesiod_hes_getmailhost=yes
21393 else
21394 $as_echo "$as_me: failed program was:" >&5
21395 sed 's/^/| /' conftest.$ac_ext >&5
21396
21397 ac_cv_lib_hesiod_hes_getmailhost=no
21398 fi
21399
21400 rm -rf conftest.dSYM
21401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21402 conftest$ac_exeext conftest.$ac_ext
21403 LIBS=$ac_check_lib_save_LIBS
21404 fi
21405 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21406 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21407 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21408
21409 cat >>confdefs.h <<\_ACEOF
21410 #define HAVE_LIBHESIOD 1
21411 _ACEOF
21412
21413 else
21414 :
21415 fi
21416
21417 fi
21418
21419 fi
21420
21421 # Do we need libresolv (due to res_init or Hesiod)?
21422 if test "$resolv" = yes ; then
21423
21424 cat >>confdefs.h <<\_ACEOF
21425 #define HAVE_LIBRESOLV 1
21426 _ACEOF
21427
21428 fi
21429
21430 # These tell us which Kerberos-related libraries to use.
21431 if test "${with_kerberos}" != no; then
21432
21433 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21434 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21435 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21436 $as_echo_n "(cached) " >&6
21437 else
21438 ac_check_lib_save_LIBS=$LIBS
21439 LIBS="-lcom_err $LIBS"
21440 cat >conftest.$ac_ext <<_ACEOF
21441 /* confdefs.h. */
21442 _ACEOF
21443 cat confdefs.h >>conftest.$ac_ext
21444 cat >>conftest.$ac_ext <<_ACEOF
21445 /* end confdefs.h. */
21446
21447 /* Override any GCC internal prototype to avoid an error.
21448 Use char because int might match the return type of a GCC
21449 builtin and then its argument prototype would still apply. */
21450 #ifdef __cplusplus
21451 extern "C"
21452 #endif
21453 char com_err ();
21454 int
21455 main ()
21456 {
21457 return com_err ();
21458 ;
21459 return 0;
21460 }
21461 _ACEOF
21462 rm -f conftest.$ac_objext conftest$ac_exeext
21463 if { (ac_try="$ac_link"
21464 case "(($ac_try" in
21465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21466 *) ac_try_echo=$ac_try;;
21467 esac
21468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21469 $as_echo "$ac_try_echo") >&5
21470 (eval "$ac_link") 2>conftest.er1
21471 ac_status=$?
21472 grep -v '^ *+' conftest.er1 >conftest.err
21473 rm -f conftest.er1
21474 cat conftest.err >&5
21475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); } && {
21477 test -z "$ac_c_werror_flag" ||
21478 test ! -s conftest.err
21479 } && test -s conftest$ac_exeext && {
21480 test "$cross_compiling" = yes ||
21481 $as_test_x conftest$ac_exeext
21482 }; then
21483 ac_cv_lib_com_err_com_err=yes
21484 else
21485 $as_echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.$ac_ext >&5
21487
21488 ac_cv_lib_com_err_com_err=no
21489 fi
21490
21491 rm -rf conftest.dSYM
21492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21493 conftest$ac_exeext conftest.$ac_ext
21494 LIBS=$ac_check_lib_save_LIBS
21495 fi
21496 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21497 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21498 if test $ac_cv_lib_com_err_com_err = yes; then
21499 cat >>confdefs.h <<_ACEOF
21500 #define HAVE_LIBCOM_ERR 1
21501 _ACEOF
21502
21503 LIBS="-lcom_err $LIBS"
21504
21505 fi
21506
21507
21508 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21509 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21510 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21511 $as_echo_n "(cached) " >&6
21512 else
21513 ac_check_lib_save_LIBS=$LIBS
21514 LIBS="-lk5crypto $LIBS"
21515 cat >conftest.$ac_ext <<_ACEOF
21516 /* confdefs.h. */
21517 _ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h. */
21521
21522 /* Override any GCC internal prototype to avoid an error.
21523 Use char because int might match the return type of a GCC
21524 builtin and then its argument prototype would still apply. */
21525 #ifdef __cplusplus
21526 extern "C"
21527 #endif
21528 char mit_des_cbc_encrypt ();
21529 int
21530 main ()
21531 {
21532 return mit_des_cbc_encrypt ();
21533 ;
21534 return 0;
21535 }
21536 _ACEOF
21537 rm -f conftest.$ac_objext conftest$ac_exeext
21538 if { (ac_try="$ac_link"
21539 case "(($ac_try" in
21540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21541 *) ac_try_echo=$ac_try;;
21542 esac
21543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21544 $as_echo "$ac_try_echo") >&5
21545 (eval "$ac_link") 2>conftest.er1
21546 ac_status=$?
21547 grep -v '^ *+' conftest.er1 >conftest.err
21548 rm -f conftest.er1
21549 cat conftest.err >&5
21550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); } && {
21552 test -z "$ac_c_werror_flag" ||
21553 test ! -s conftest.err
21554 } && test -s conftest$ac_exeext && {
21555 test "$cross_compiling" = yes ||
21556 $as_test_x conftest$ac_exeext
21557 }; then
21558 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21559 else
21560 $as_echo "$as_me: failed program was:" >&5
21561 sed 's/^/| /' conftest.$ac_ext >&5
21562
21563 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21564 fi
21565
21566 rm -rf conftest.dSYM
21567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21568 conftest$ac_exeext conftest.$ac_ext
21569 LIBS=$ac_check_lib_save_LIBS
21570 fi
21571 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21572 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21573 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21574 cat >>confdefs.h <<_ACEOF
21575 #define HAVE_LIBK5CRYPTO 1
21576 _ACEOF
21577
21578 LIBS="-lk5crypto $LIBS"
21579
21580 fi
21581
21582
21583 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21584 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21585 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21586 $as_echo_n "(cached) " >&6
21587 else
21588 ac_check_lib_save_LIBS=$LIBS
21589 LIBS="-lcrypto $LIBS"
21590 cat >conftest.$ac_ext <<_ACEOF
21591 /* confdefs.h. */
21592 _ACEOF
21593 cat confdefs.h >>conftest.$ac_ext
21594 cat >>conftest.$ac_ext <<_ACEOF
21595 /* end confdefs.h. */
21596
21597 /* Override any GCC internal prototype to avoid an error.
21598 Use char because int might match the return type of a GCC
21599 builtin and then its argument prototype would still apply. */
21600 #ifdef __cplusplus
21601 extern "C"
21602 #endif
21603 char mit_des_cbc_encrypt ();
21604 int
21605 main ()
21606 {
21607 return mit_des_cbc_encrypt ();
21608 ;
21609 return 0;
21610 }
21611 _ACEOF
21612 rm -f conftest.$ac_objext conftest$ac_exeext
21613 if { (ac_try="$ac_link"
21614 case "(($ac_try" in
21615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616 *) ac_try_echo=$ac_try;;
21617 esac
21618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21619 $as_echo "$ac_try_echo") >&5
21620 (eval "$ac_link") 2>conftest.er1
21621 ac_status=$?
21622 grep -v '^ *+' conftest.er1 >conftest.err
21623 rm -f conftest.er1
21624 cat conftest.err >&5
21625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); } && {
21627 test -z "$ac_c_werror_flag" ||
21628 test ! -s conftest.err
21629 } && test -s conftest$ac_exeext && {
21630 test "$cross_compiling" = yes ||
21631 $as_test_x conftest$ac_exeext
21632 }; then
21633 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21634 else
21635 $as_echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21637
21638 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21639 fi
21640
21641 rm -rf conftest.dSYM
21642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21643 conftest$ac_exeext conftest.$ac_ext
21644 LIBS=$ac_check_lib_save_LIBS
21645 fi
21646 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21647 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21648 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21649 cat >>confdefs.h <<_ACEOF
21650 #define HAVE_LIBCRYPTO 1
21651 _ACEOF
21652
21653 LIBS="-lcrypto $LIBS"
21654
21655 fi
21656
21657
21658 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
21659 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21660 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21661 $as_echo_n "(cached) " >&6
21662 else
21663 ac_check_lib_save_LIBS=$LIBS
21664 LIBS="-lkrb5 $LIBS"
21665 cat >conftest.$ac_ext <<_ACEOF
21666 /* confdefs.h. */
21667 _ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h. */
21671
21672 /* Override any GCC internal prototype to avoid an error.
21673 Use char because int might match the return type of a GCC
21674 builtin and then its argument prototype would still apply. */
21675 #ifdef __cplusplus
21676 extern "C"
21677 #endif
21678 char krb5_init_context ();
21679 int
21680 main ()
21681 {
21682 return krb5_init_context ();
21683 ;
21684 return 0;
21685 }
21686 _ACEOF
21687 rm -f conftest.$ac_objext conftest$ac_exeext
21688 if { (ac_try="$ac_link"
21689 case "(($ac_try" in
21690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21691 *) ac_try_echo=$ac_try;;
21692 esac
21693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21694 $as_echo "$ac_try_echo") >&5
21695 (eval "$ac_link") 2>conftest.er1
21696 ac_status=$?
21697 grep -v '^ *+' conftest.er1 >conftest.err
21698 rm -f conftest.er1
21699 cat conftest.err >&5
21700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); } && {
21702 test -z "$ac_c_werror_flag" ||
21703 test ! -s conftest.err
21704 } && test -s conftest$ac_exeext && {
21705 test "$cross_compiling" = yes ||
21706 $as_test_x conftest$ac_exeext
21707 }; then
21708 ac_cv_lib_krb5_krb5_init_context=yes
21709 else
21710 $as_echo "$as_me: failed program was:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21712
21713 ac_cv_lib_krb5_krb5_init_context=no
21714 fi
21715
21716 rm -rf conftest.dSYM
21717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21718 conftest$ac_exeext conftest.$ac_ext
21719 LIBS=$ac_check_lib_save_LIBS
21720 fi
21721 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21722 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21723 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21724 cat >>confdefs.h <<_ACEOF
21725 #define HAVE_LIBKRB5 1
21726 _ACEOF
21727
21728 LIBS="-lkrb5 $LIBS"
21729
21730 fi
21731
21732 if test "${with_kerberos5}" = no; then
21733
21734 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
21735 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21736 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21737 $as_echo_n "(cached) " >&6
21738 else
21739 ac_check_lib_save_LIBS=$LIBS
21740 LIBS="-ldes425 $LIBS"
21741 cat >conftest.$ac_ext <<_ACEOF
21742 /* confdefs.h. */
21743 _ACEOF
21744 cat confdefs.h >>conftest.$ac_ext
21745 cat >>conftest.$ac_ext <<_ACEOF
21746 /* end confdefs.h. */
21747
21748 /* Override any GCC internal prototype to avoid an error.
21749 Use char because int might match the return type of a GCC
21750 builtin and then its argument prototype would still apply. */
21751 #ifdef __cplusplus
21752 extern "C"
21753 #endif
21754 char des_cbc_encrypt ();
21755 int
21756 main ()
21757 {
21758 return des_cbc_encrypt ();
21759 ;
21760 return 0;
21761 }
21762 _ACEOF
21763 rm -f conftest.$ac_objext conftest$ac_exeext
21764 if { (ac_try="$ac_link"
21765 case "(($ac_try" in
21766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21767 *) ac_try_echo=$ac_try;;
21768 esac
21769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21770 $as_echo "$ac_try_echo") >&5
21771 (eval "$ac_link") 2>conftest.er1
21772 ac_status=$?
21773 grep -v '^ *+' conftest.er1 >conftest.err
21774 rm -f conftest.er1
21775 cat conftest.err >&5
21776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); } && {
21778 test -z "$ac_c_werror_flag" ||
21779 test ! -s conftest.err
21780 } && test -s conftest$ac_exeext && {
21781 test "$cross_compiling" = yes ||
21782 $as_test_x conftest$ac_exeext
21783 }; then
21784 ac_cv_lib_des425_des_cbc_encrypt=yes
21785 else
21786 $as_echo "$as_me: failed program was:" >&5
21787 sed 's/^/| /' conftest.$ac_ext >&5
21788
21789 ac_cv_lib_des425_des_cbc_encrypt=no
21790 fi
21791
21792 rm -rf conftest.dSYM
21793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21794 conftest$ac_exeext conftest.$ac_ext
21795 LIBS=$ac_check_lib_save_LIBS
21796 fi
21797 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21798 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21799 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21800 cat >>confdefs.h <<_ACEOF
21801 #define HAVE_LIBDES425 1
21802 _ACEOF
21803
21804 LIBS="-ldes425 $LIBS"
21805
21806 else
21807
21808 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21809 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21810 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21811 $as_echo_n "(cached) " >&6
21812 else
21813 ac_check_lib_save_LIBS=$LIBS
21814 LIBS="-ldes $LIBS"
21815 cat >conftest.$ac_ext <<_ACEOF
21816 /* confdefs.h. */
21817 _ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h. */
21821
21822 /* Override any GCC internal prototype to avoid an error.
21823 Use char because int might match the return type of a GCC
21824 builtin and then its argument prototype would still apply. */
21825 #ifdef __cplusplus
21826 extern "C"
21827 #endif
21828 char des_cbc_encrypt ();
21829 int
21830 main ()
21831 {
21832 return des_cbc_encrypt ();
21833 ;
21834 return 0;
21835 }
21836 _ACEOF
21837 rm -f conftest.$ac_objext conftest$ac_exeext
21838 if { (ac_try="$ac_link"
21839 case "(($ac_try" in
21840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21841 *) ac_try_echo=$ac_try;;
21842 esac
21843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21844 $as_echo "$ac_try_echo") >&5
21845 (eval "$ac_link") 2>conftest.er1
21846 ac_status=$?
21847 grep -v '^ *+' conftest.er1 >conftest.err
21848 rm -f conftest.er1
21849 cat conftest.err >&5
21850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); } && {
21852 test -z "$ac_c_werror_flag" ||
21853 test ! -s conftest.err
21854 } && test -s conftest$ac_exeext && {
21855 test "$cross_compiling" = yes ||
21856 $as_test_x conftest$ac_exeext
21857 }; then
21858 ac_cv_lib_des_des_cbc_encrypt=yes
21859 else
21860 $as_echo "$as_me: failed program was:" >&5
21861 sed 's/^/| /' conftest.$ac_ext >&5
21862
21863 ac_cv_lib_des_des_cbc_encrypt=no
21864 fi
21865
21866 rm -rf conftest.dSYM
21867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21868 conftest$ac_exeext conftest.$ac_ext
21869 LIBS=$ac_check_lib_save_LIBS
21870 fi
21871 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21872 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21873 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21874 cat >>confdefs.h <<_ACEOF
21875 #define HAVE_LIBDES 1
21876 _ACEOF
21877
21878 LIBS="-ldes $LIBS"
21879
21880 fi
21881
21882 fi
21883
21884
21885 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21886 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21887 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21888 $as_echo_n "(cached) " >&6
21889 else
21890 ac_check_lib_save_LIBS=$LIBS
21891 LIBS="-lkrb4 $LIBS"
21892 cat >conftest.$ac_ext <<_ACEOF
21893 /* confdefs.h. */
21894 _ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h. */
21898
21899 /* Override any GCC internal prototype to avoid an error.
21900 Use char because int might match the return type of a GCC
21901 builtin and then its argument prototype would still apply. */
21902 #ifdef __cplusplus
21903 extern "C"
21904 #endif
21905 char krb_get_cred ();
21906 int
21907 main ()
21908 {
21909 return krb_get_cred ();
21910 ;
21911 return 0;
21912 }
21913 _ACEOF
21914 rm -f conftest.$ac_objext conftest$ac_exeext
21915 if { (ac_try="$ac_link"
21916 case "(($ac_try" in
21917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21918 *) ac_try_echo=$ac_try;;
21919 esac
21920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21921 $as_echo "$ac_try_echo") >&5
21922 (eval "$ac_link") 2>conftest.er1
21923 ac_status=$?
21924 grep -v '^ *+' conftest.er1 >conftest.err
21925 rm -f conftest.er1
21926 cat conftest.err >&5
21927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); } && {
21929 test -z "$ac_c_werror_flag" ||
21930 test ! -s conftest.err
21931 } && test -s conftest$ac_exeext && {
21932 test "$cross_compiling" = yes ||
21933 $as_test_x conftest$ac_exeext
21934 }; then
21935 ac_cv_lib_krb4_krb_get_cred=yes
21936 else
21937 $as_echo "$as_me: failed program was:" >&5
21938 sed 's/^/| /' conftest.$ac_ext >&5
21939
21940 ac_cv_lib_krb4_krb_get_cred=no
21941 fi
21942
21943 rm -rf conftest.dSYM
21944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21945 conftest$ac_exeext conftest.$ac_ext
21946 LIBS=$ac_check_lib_save_LIBS
21947 fi
21948 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21949 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21950 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21951 cat >>confdefs.h <<_ACEOF
21952 #define HAVE_LIBKRB4 1
21953 _ACEOF
21954
21955 LIBS="-lkrb4 $LIBS"
21956
21957 else
21958
21959 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21960 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21961 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21962 $as_echo_n "(cached) " >&6
21963 else
21964 ac_check_lib_save_LIBS=$LIBS
21965 LIBS="-lkrb $LIBS"
21966 cat >conftest.$ac_ext <<_ACEOF
21967 /* confdefs.h. */
21968 _ACEOF
21969 cat confdefs.h >>conftest.$ac_ext
21970 cat >>conftest.$ac_ext <<_ACEOF
21971 /* end confdefs.h. */
21972
21973 /* Override any GCC internal prototype to avoid an error.
21974 Use char because int might match the return type of a GCC
21975 builtin and then its argument prototype would still apply. */
21976 #ifdef __cplusplus
21977 extern "C"
21978 #endif
21979 char krb_get_cred ();
21980 int
21981 main ()
21982 {
21983 return krb_get_cred ();
21984 ;
21985 return 0;
21986 }
21987 _ACEOF
21988 rm -f conftest.$ac_objext conftest$ac_exeext
21989 if { (ac_try="$ac_link"
21990 case "(($ac_try" in
21991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21992 *) ac_try_echo=$ac_try;;
21993 esac
21994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21995 $as_echo "$ac_try_echo") >&5
21996 (eval "$ac_link") 2>conftest.er1
21997 ac_status=$?
21998 grep -v '^ *+' conftest.er1 >conftest.err
21999 rm -f conftest.er1
22000 cat conftest.err >&5
22001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); } && {
22003 test -z "$ac_c_werror_flag" ||
22004 test ! -s conftest.err
22005 } && test -s conftest$ac_exeext && {
22006 test "$cross_compiling" = yes ||
22007 $as_test_x conftest$ac_exeext
22008 }; then
22009 ac_cv_lib_krb_krb_get_cred=yes
22010 else
22011 $as_echo "$as_me: failed program was:" >&5
22012 sed 's/^/| /' conftest.$ac_ext >&5
22013
22014 ac_cv_lib_krb_krb_get_cred=no
22015 fi
22016
22017 rm -rf conftest.dSYM
22018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22019 conftest$ac_exeext conftest.$ac_ext
22020 LIBS=$ac_check_lib_save_LIBS
22021 fi
22022 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22023 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22024 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22025 cat >>confdefs.h <<_ACEOF
22026 #define HAVE_LIBKRB 1
22027 _ACEOF
22028
22029 LIBS="-lkrb $LIBS"
22030
22031 fi
22032
22033 fi
22034
22035 fi
22036
22037 if test "${with_kerberos5}" != no; then
22038
22039 for ac_header in krb5.h
22040 do
22041 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22043 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22044 $as_echo_n "checking for $ac_header... " >&6; }
22045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22046 $as_echo_n "(cached) " >&6
22047 fi
22048 ac_res=`eval 'as_val=${'$as_ac_Header'}
22049 $as_echo "$as_val"'`
22050 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22051 $as_echo "$ac_res" >&6; }
22052 else
22053 # Is the header compilable?
22054 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22055 $as_echo_n "checking $ac_header usability... " >&6; }
22056 cat >conftest.$ac_ext <<_ACEOF
22057 /* confdefs.h. */
22058 _ACEOF
22059 cat confdefs.h >>conftest.$ac_ext
22060 cat >>conftest.$ac_ext <<_ACEOF
22061 /* end confdefs.h. */
22062 $ac_includes_default
22063 #include <$ac_header>
22064 _ACEOF
22065 rm -f conftest.$ac_objext
22066 if { (ac_try="$ac_compile"
22067 case "(($ac_try" in
22068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22069 *) ac_try_echo=$ac_try;;
22070 esac
22071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22072 $as_echo "$ac_try_echo") >&5
22073 (eval "$ac_compile") 2>conftest.er1
22074 ac_status=$?
22075 grep -v '^ *+' conftest.er1 >conftest.err
22076 rm -f conftest.er1
22077 cat conftest.err >&5
22078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); } && {
22080 test -z "$ac_c_werror_flag" ||
22081 test ! -s conftest.err
22082 } && test -s conftest.$ac_objext; then
22083 ac_header_compiler=yes
22084 else
22085 $as_echo "$as_me: failed program was:" >&5
22086 sed 's/^/| /' conftest.$ac_ext >&5
22087
22088 ac_header_compiler=no
22089 fi
22090
22091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22092 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22093 $as_echo "$ac_header_compiler" >&6; }
22094
22095 # Is the header present?
22096 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22097 $as_echo_n "checking $ac_header presence... " >&6; }
22098 cat >conftest.$ac_ext <<_ACEOF
22099 /* confdefs.h. */
22100 _ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h. */
22104 #include <$ac_header>
22105 _ACEOF
22106 if { (ac_try="$ac_cpp conftest.$ac_ext"
22107 case "(($ac_try" in
22108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109 *) ac_try_echo=$ac_try;;
22110 esac
22111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22112 $as_echo "$ac_try_echo") >&5
22113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22114 ac_status=$?
22115 grep -v '^ *+' conftest.er1 >conftest.err
22116 rm -f conftest.er1
22117 cat conftest.err >&5
22118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); } >/dev/null && {
22120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22121 test ! -s conftest.err
22122 }; then
22123 ac_header_preproc=yes
22124 else
22125 $as_echo "$as_me: failed program was:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22127
22128 ac_header_preproc=no
22129 fi
22130
22131 rm -f conftest.err conftest.$ac_ext
22132 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22133 $as_echo "$ac_header_preproc" >&6; }
22134
22135 # So? What about this header?
22136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22137 yes:no: )
22138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22139 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22141 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22142 ac_header_preproc=yes
22143 ;;
22144 no:yes:* )
22145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22146 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22148 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22150 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22152 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22154 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22156 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22157
22158 ;;
22159 esac
22160 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22161 $as_echo_n "checking for $ac_header... " >&6; }
22162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22163 $as_echo_n "(cached) " >&6
22164 else
22165 eval "$as_ac_Header=\$ac_header_preproc"
22166 fi
22167 ac_res=`eval 'as_val=${'$as_ac_Header'}
22168 $as_echo "$as_val"'`
22169 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22170 $as_echo "$ac_res" >&6; }
22171
22172 fi
22173 if test `eval 'as_val=${'$as_ac_Header'}
22174 $as_echo "$as_val"'` = yes; then
22175 cat >>confdefs.h <<_ACEOF
22176 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22177 _ACEOF
22178 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22179 $as_echo_n "checking for krb5_error.text... " >&6; }
22180 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22181 $as_echo_n "(cached) " >&6
22182 else
22183 cat >conftest.$ac_ext <<_ACEOF
22184 /* confdefs.h. */
22185 _ACEOF
22186 cat confdefs.h >>conftest.$ac_ext
22187 cat >>conftest.$ac_ext <<_ACEOF
22188 /* end confdefs.h. */
22189 #include <krb5.h>
22190
22191 int
22192 main ()
22193 {
22194 static krb5_error ac_aggr;
22195 if (ac_aggr.text)
22196 return 0;
22197 ;
22198 return 0;
22199 }
22200 _ACEOF
22201 rm -f conftest.$ac_objext
22202 if { (ac_try="$ac_compile"
22203 case "(($ac_try" in
22204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22205 *) ac_try_echo=$ac_try;;
22206 esac
22207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22208 $as_echo "$ac_try_echo") >&5
22209 (eval "$ac_compile") 2>conftest.er1
22210 ac_status=$?
22211 grep -v '^ *+' conftest.er1 >conftest.err
22212 rm -f conftest.er1
22213 cat conftest.err >&5
22214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); } && {
22216 test -z "$ac_c_werror_flag" ||
22217 test ! -s conftest.err
22218 } && test -s conftest.$ac_objext; then
22219 ac_cv_member_krb5_error_text=yes
22220 else
22221 $as_echo "$as_me: failed program was:" >&5
22222 sed 's/^/| /' conftest.$ac_ext >&5
22223
22224 cat >conftest.$ac_ext <<_ACEOF
22225 /* confdefs.h. */
22226 _ACEOF
22227 cat confdefs.h >>conftest.$ac_ext
22228 cat >>conftest.$ac_ext <<_ACEOF
22229 /* end confdefs.h. */
22230 #include <krb5.h>
22231
22232 int
22233 main ()
22234 {
22235 static krb5_error ac_aggr;
22236 if (sizeof ac_aggr.text)
22237 return 0;
22238 ;
22239 return 0;
22240 }
22241 _ACEOF
22242 rm -f conftest.$ac_objext
22243 if { (ac_try="$ac_compile"
22244 case "(($ac_try" in
22245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22246 *) ac_try_echo=$ac_try;;
22247 esac
22248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22249 $as_echo "$ac_try_echo") >&5
22250 (eval "$ac_compile") 2>conftest.er1
22251 ac_status=$?
22252 grep -v '^ *+' conftest.er1 >conftest.err
22253 rm -f conftest.er1
22254 cat conftest.err >&5
22255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } && {
22257 test -z "$ac_c_werror_flag" ||
22258 test ! -s conftest.err
22259 } && test -s conftest.$ac_objext; then
22260 ac_cv_member_krb5_error_text=yes
22261 else
22262 $as_echo "$as_me: failed program was:" >&5
22263 sed 's/^/| /' conftest.$ac_ext >&5
22264
22265 ac_cv_member_krb5_error_text=no
22266 fi
22267
22268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22269 fi
22270
22271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22272 fi
22273 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22274 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22275 if test $ac_cv_member_krb5_error_text = yes; then
22276
22277 cat >>confdefs.h <<_ACEOF
22278 #define HAVE_KRB5_ERROR_TEXT 1
22279 _ACEOF
22280
22281
22282 fi
22283 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22284 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22285 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22286 $as_echo_n "(cached) " >&6
22287 else
22288 cat >conftest.$ac_ext <<_ACEOF
22289 /* confdefs.h. */
22290 _ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h. */
22294 #include <krb5.h>
22295
22296 int
22297 main ()
22298 {
22299 static krb5_error ac_aggr;
22300 if (ac_aggr.e_text)
22301 return 0;
22302 ;
22303 return 0;
22304 }
22305 _ACEOF
22306 rm -f conftest.$ac_objext
22307 if { (ac_try="$ac_compile"
22308 case "(($ac_try" in
22309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22310 *) ac_try_echo=$ac_try;;
22311 esac
22312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22313 $as_echo "$ac_try_echo") >&5
22314 (eval "$ac_compile") 2>conftest.er1
22315 ac_status=$?
22316 grep -v '^ *+' conftest.er1 >conftest.err
22317 rm -f conftest.er1
22318 cat conftest.err >&5
22319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); } && {
22321 test -z "$ac_c_werror_flag" ||
22322 test ! -s conftest.err
22323 } && test -s conftest.$ac_objext; then
22324 ac_cv_member_krb5_error_e_text=yes
22325 else
22326 $as_echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22328
22329 cat >conftest.$ac_ext <<_ACEOF
22330 /* confdefs.h. */
22331 _ACEOF
22332 cat confdefs.h >>conftest.$ac_ext
22333 cat >>conftest.$ac_ext <<_ACEOF
22334 /* end confdefs.h. */
22335 #include <krb5.h>
22336
22337 int
22338 main ()
22339 {
22340 static krb5_error ac_aggr;
22341 if (sizeof ac_aggr.e_text)
22342 return 0;
22343 ;
22344 return 0;
22345 }
22346 _ACEOF
22347 rm -f conftest.$ac_objext
22348 if { (ac_try="$ac_compile"
22349 case "(($ac_try" in
22350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22351 *) ac_try_echo=$ac_try;;
22352 esac
22353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22354 $as_echo "$ac_try_echo") >&5
22355 (eval "$ac_compile") 2>conftest.er1
22356 ac_status=$?
22357 grep -v '^ *+' conftest.er1 >conftest.err
22358 rm -f conftest.er1
22359 cat conftest.err >&5
22360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); } && {
22362 test -z "$ac_c_werror_flag" ||
22363 test ! -s conftest.err
22364 } && test -s conftest.$ac_objext; then
22365 ac_cv_member_krb5_error_e_text=yes
22366 else
22367 $as_echo "$as_me: failed program was:" >&5
22368 sed 's/^/| /' conftest.$ac_ext >&5
22369
22370 ac_cv_member_krb5_error_e_text=no
22371 fi
22372
22373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22374 fi
22375
22376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22377 fi
22378 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22379 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22380 if test $ac_cv_member_krb5_error_e_text = yes; then
22381
22382 cat >>confdefs.h <<_ACEOF
22383 #define HAVE_KRB5_ERROR_E_TEXT 1
22384 _ACEOF
22385
22386
22387 fi
22388
22389 fi
22390
22391 done
22392
22393 else
22394
22395 for ac_header in des.h
22396 do
22397 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22399 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22400 $as_echo_n "checking for $ac_header... " >&6; }
22401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22402 $as_echo_n "(cached) " >&6
22403 fi
22404 ac_res=`eval 'as_val=${'$as_ac_Header'}
22405 $as_echo "$as_val"'`
22406 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22407 $as_echo "$ac_res" >&6; }
22408 else
22409 # Is the header compilable?
22410 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22411 $as_echo_n "checking $ac_header usability... " >&6; }
22412 cat >conftest.$ac_ext <<_ACEOF
22413 /* confdefs.h. */
22414 _ACEOF
22415 cat confdefs.h >>conftest.$ac_ext
22416 cat >>conftest.$ac_ext <<_ACEOF
22417 /* end confdefs.h. */
22418 $ac_includes_default
22419 #include <$ac_header>
22420 _ACEOF
22421 rm -f conftest.$ac_objext
22422 if { (ac_try="$ac_compile"
22423 case "(($ac_try" in
22424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22425 *) ac_try_echo=$ac_try;;
22426 esac
22427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22428 $as_echo "$ac_try_echo") >&5
22429 (eval "$ac_compile") 2>conftest.er1
22430 ac_status=$?
22431 grep -v '^ *+' conftest.er1 >conftest.err
22432 rm -f conftest.er1
22433 cat conftest.err >&5
22434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); } && {
22436 test -z "$ac_c_werror_flag" ||
22437 test ! -s conftest.err
22438 } && test -s conftest.$ac_objext; then
22439 ac_header_compiler=yes
22440 else
22441 $as_echo "$as_me: failed program was:" >&5
22442 sed 's/^/| /' conftest.$ac_ext >&5
22443
22444 ac_header_compiler=no
22445 fi
22446
22447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22448 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22449 $as_echo "$ac_header_compiler" >&6; }
22450
22451 # Is the header present?
22452 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22453 $as_echo_n "checking $ac_header presence... " >&6; }
22454 cat >conftest.$ac_ext <<_ACEOF
22455 /* confdefs.h. */
22456 _ACEOF
22457 cat confdefs.h >>conftest.$ac_ext
22458 cat >>conftest.$ac_ext <<_ACEOF
22459 /* end confdefs.h. */
22460 #include <$ac_header>
22461 _ACEOF
22462 if { (ac_try="$ac_cpp conftest.$ac_ext"
22463 case "(($ac_try" in
22464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22465 *) ac_try_echo=$ac_try;;
22466 esac
22467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22468 $as_echo "$ac_try_echo") >&5
22469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22470 ac_status=$?
22471 grep -v '^ *+' conftest.er1 >conftest.err
22472 rm -f conftest.er1
22473 cat conftest.err >&5
22474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); } >/dev/null && {
22476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22477 test ! -s conftest.err
22478 }; then
22479 ac_header_preproc=yes
22480 else
22481 $as_echo "$as_me: failed program was:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22483
22484 ac_header_preproc=no
22485 fi
22486
22487 rm -f conftest.err conftest.$ac_ext
22488 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22489 $as_echo "$ac_header_preproc" >&6; }
22490
22491 # So? What about this header?
22492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22493 yes:no: )
22494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22495 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22497 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22498 ac_header_preproc=yes
22499 ;;
22500 no:yes:* )
22501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22502 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22504 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22506 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22507 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22508 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22509 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22510 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22511 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22512 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22513
22514 ;;
22515 esac
22516 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22517 $as_echo_n "checking for $ac_header... " >&6; }
22518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22519 $as_echo_n "(cached) " >&6
22520 else
22521 eval "$as_ac_Header=\$ac_header_preproc"
22522 fi
22523 ac_res=`eval 'as_val=${'$as_ac_Header'}
22524 $as_echo "$as_val"'`
22525 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22526 $as_echo "$ac_res" >&6; }
22527
22528 fi
22529 if test `eval 'as_val=${'$as_ac_Header'}
22530 $as_echo "$as_val"'` = yes; then
22531 cat >>confdefs.h <<_ACEOF
22532 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22533 _ACEOF
22534
22535 else
22536
22537 for ac_header in kerberosIV/des.h
22538 do
22539 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22541 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22542 $as_echo_n "checking for $ac_header... " >&6; }
22543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22544 $as_echo_n "(cached) " >&6
22545 fi
22546 ac_res=`eval 'as_val=${'$as_ac_Header'}
22547 $as_echo "$as_val"'`
22548 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22549 $as_echo "$ac_res" >&6; }
22550 else
22551 # Is the header compilable?
22552 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22553 $as_echo_n "checking $ac_header usability... " >&6; }
22554 cat >conftest.$ac_ext <<_ACEOF
22555 /* confdefs.h. */
22556 _ACEOF
22557 cat confdefs.h >>conftest.$ac_ext
22558 cat >>conftest.$ac_ext <<_ACEOF
22559 /* end confdefs.h. */
22560 $ac_includes_default
22561 #include <$ac_header>
22562 _ACEOF
22563 rm -f conftest.$ac_objext
22564 if { (ac_try="$ac_compile"
22565 case "(($ac_try" in
22566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567 *) ac_try_echo=$ac_try;;
22568 esac
22569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22570 $as_echo "$ac_try_echo") >&5
22571 (eval "$ac_compile") 2>conftest.er1
22572 ac_status=$?
22573 grep -v '^ *+' conftest.er1 >conftest.err
22574 rm -f conftest.er1
22575 cat conftest.err >&5
22576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } && {
22578 test -z "$ac_c_werror_flag" ||
22579 test ! -s conftest.err
22580 } && test -s conftest.$ac_objext; then
22581 ac_header_compiler=yes
22582 else
22583 $as_echo "$as_me: failed program was:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22585
22586 ac_header_compiler=no
22587 fi
22588
22589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22590 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22591 $as_echo "$ac_header_compiler" >&6; }
22592
22593 # Is the header present?
22594 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22595 $as_echo_n "checking $ac_header presence... " >&6; }
22596 cat >conftest.$ac_ext <<_ACEOF
22597 /* confdefs.h. */
22598 _ACEOF
22599 cat confdefs.h >>conftest.$ac_ext
22600 cat >>conftest.$ac_ext <<_ACEOF
22601 /* end confdefs.h. */
22602 #include <$ac_header>
22603 _ACEOF
22604 if { (ac_try="$ac_cpp conftest.$ac_ext"
22605 case "(($ac_try" in
22606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22607 *) ac_try_echo=$ac_try;;
22608 esac
22609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22610 $as_echo "$ac_try_echo") >&5
22611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22612 ac_status=$?
22613 grep -v '^ *+' conftest.er1 >conftest.err
22614 rm -f conftest.er1
22615 cat conftest.err >&5
22616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); } >/dev/null && {
22618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22619 test ! -s conftest.err
22620 }; then
22621 ac_header_preproc=yes
22622 else
22623 $as_echo "$as_me: failed program was:" >&5
22624 sed 's/^/| /' conftest.$ac_ext >&5
22625
22626 ac_header_preproc=no
22627 fi
22628
22629 rm -f conftest.err conftest.$ac_ext
22630 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22631 $as_echo "$ac_header_preproc" >&6; }
22632
22633 # So? What about this header?
22634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22635 yes:no: )
22636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22637 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22639 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22640 ac_header_preproc=yes
22641 ;;
22642 no:yes:* )
22643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22644 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22646 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22648 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22650 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22652 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22654 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22655
22656 ;;
22657 esac
22658 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22659 $as_echo_n "checking for $ac_header... " >&6; }
22660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22661 $as_echo_n "(cached) " >&6
22662 else
22663 eval "$as_ac_Header=\$ac_header_preproc"
22664 fi
22665 ac_res=`eval 'as_val=${'$as_ac_Header'}
22666 $as_echo "$as_val"'`
22667 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22668 $as_echo "$ac_res" >&6; }
22669
22670 fi
22671 if test `eval 'as_val=${'$as_ac_Header'}
22672 $as_echo "$as_val"'` = yes; then
22673 cat >>confdefs.h <<_ACEOF
22674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22675 _ACEOF
22676
22677 else
22678
22679 for ac_header in kerberos/des.h
22680 do
22681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22683 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22684 $as_echo_n "checking for $ac_header... " >&6; }
22685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22686 $as_echo_n "(cached) " >&6
22687 fi
22688 ac_res=`eval 'as_val=${'$as_ac_Header'}
22689 $as_echo "$as_val"'`
22690 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22691 $as_echo "$ac_res" >&6; }
22692 else
22693 # Is the header compilable?
22694 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22695 $as_echo_n "checking $ac_header usability... " >&6; }
22696 cat >conftest.$ac_ext <<_ACEOF
22697 /* confdefs.h. */
22698 _ACEOF
22699 cat confdefs.h >>conftest.$ac_ext
22700 cat >>conftest.$ac_ext <<_ACEOF
22701 /* end confdefs.h. */
22702 $ac_includes_default
22703 #include <$ac_header>
22704 _ACEOF
22705 rm -f conftest.$ac_objext
22706 if { (ac_try="$ac_compile"
22707 case "(($ac_try" in
22708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22709 *) ac_try_echo=$ac_try;;
22710 esac
22711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22712 $as_echo "$ac_try_echo") >&5
22713 (eval "$ac_compile") 2>conftest.er1
22714 ac_status=$?
22715 grep -v '^ *+' conftest.er1 >conftest.err
22716 rm -f conftest.er1
22717 cat conftest.err >&5
22718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); } && {
22720 test -z "$ac_c_werror_flag" ||
22721 test ! -s conftest.err
22722 } && test -s conftest.$ac_objext; then
22723 ac_header_compiler=yes
22724 else
22725 $as_echo "$as_me: failed program was:" >&5
22726 sed 's/^/| /' conftest.$ac_ext >&5
22727
22728 ac_header_compiler=no
22729 fi
22730
22731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22732 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22733 $as_echo "$ac_header_compiler" >&6; }
22734
22735 # Is the header present?
22736 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22737 $as_echo_n "checking $ac_header presence... " >&6; }
22738 cat >conftest.$ac_ext <<_ACEOF
22739 /* confdefs.h. */
22740 _ACEOF
22741 cat confdefs.h >>conftest.$ac_ext
22742 cat >>conftest.$ac_ext <<_ACEOF
22743 /* end confdefs.h. */
22744 #include <$ac_header>
22745 _ACEOF
22746 if { (ac_try="$ac_cpp conftest.$ac_ext"
22747 case "(($ac_try" in
22748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22749 *) ac_try_echo=$ac_try;;
22750 esac
22751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22752 $as_echo "$ac_try_echo") >&5
22753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22754 ac_status=$?
22755 grep -v '^ *+' conftest.er1 >conftest.err
22756 rm -f conftest.er1
22757 cat conftest.err >&5
22758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); } >/dev/null && {
22760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22761 test ! -s conftest.err
22762 }; then
22763 ac_header_preproc=yes
22764 else
22765 $as_echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22767
22768 ac_header_preproc=no
22769 fi
22770
22771 rm -f conftest.err conftest.$ac_ext
22772 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22773 $as_echo "$ac_header_preproc" >&6; }
22774
22775 # So? What about this header?
22776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22777 yes:no: )
22778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22779 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22781 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22782 ac_header_preproc=yes
22783 ;;
22784 no:yes:* )
22785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22786 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22788 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22790 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22792 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22794 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22796 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22797
22798 ;;
22799 esac
22800 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22801 $as_echo_n "checking for $ac_header... " >&6; }
22802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22803 $as_echo_n "(cached) " >&6
22804 else
22805 eval "$as_ac_Header=\$ac_header_preproc"
22806 fi
22807 ac_res=`eval 'as_val=${'$as_ac_Header'}
22808 $as_echo "$as_val"'`
22809 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22810 $as_echo "$ac_res" >&6; }
22811
22812 fi
22813 if test `eval 'as_val=${'$as_ac_Header'}
22814 $as_echo "$as_val"'` = yes; then
22815 cat >>confdefs.h <<_ACEOF
22816 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22817 _ACEOF
22818
22819 fi
22820
22821 done
22822
22823 fi
22824
22825 done
22826
22827 fi
22828
22829 done
22830
22831
22832 for ac_header in krb.h
22833 do
22834 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22836 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22837 $as_echo_n "checking for $ac_header... " >&6; }
22838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22839 $as_echo_n "(cached) " >&6
22840 fi
22841 ac_res=`eval 'as_val=${'$as_ac_Header'}
22842 $as_echo "$as_val"'`
22843 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22844 $as_echo "$ac_res" >&6; }
22845 else
22846 # Is the header compilable?
22847 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22848 $as_echo_n "checking $ac_header usability... " >&6; }
22849 cat >conftest.$ac_ext <<_ACEOF
22850 /* confdefs.h. */
22851 _ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h. */
22855 $ac_includes_default
22856 #include <$ac_header>
22857 _ACEOF
22858 rm -f conftest.$ac_objext
22859 if { (ac_try="$ac_compile"
22860 case "(($ac_try" in
22861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22862 *) ac_try_echo=$ac_try;;
22863 esac
22864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22865 $as_echo "$ac_try_echo") >&5
22866 (eval "$ac_compile") 2>conftest.er1
22867 ac_status=$?
22868 grep -v '^ *+' conftest.er1 >conftest.err
22869 rm -f conftest.er1
22870 cat conftest.err >&5
22871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872 (exit $ac_status); } && {
22873 test -z "$ac_c_werror_flag" ||
22874 test ! -s conftest.err
22875 } && test -s conftest.$ac_objext; then
22876 ac_header_compiler=yes
22877 else
22878 $as_echo "$as_me: failed program was:" >&5
22879 sed 's/^/| /' conftest.$ac_ext >&5
22880
22881 ac_header_compiler=no
22882 fi
22883
22884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22885 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22886 $as_echo "$ac_header_compiler" >&6; }
22887
22888 # Is the header present?
22889 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22890 $as_echo_n "checking $ac_header presence... " >&6; }
22891 cat >conftest.$ac_ext <<_ACEOF
22892 /* confdefs.h. */
22893 _ACEOF
22894 cat confdefs.h >>conftest.$ac_ext
22895 cat >>conftest.$ac_ext <<_ACEOF
22896 /* end confdefs.h. */
22897 #include <$ac_header>
22898 _ACEOF
22899 if { (ac_try="$ac_cpp conftest.$ac_ext"
22900 case "(($ac_try" in
22901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22902 *) ac_try_echo=$ac_try;;
22903 esac
22904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22905 $as_echo "$ac_try_echo") >&5
22906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22907 ac_status=$?
22908 grep -v '^ *+' conftest.er1 >conftest.err
22909 rm -f conftest.er1
22910 cat conftest.err >&5
22911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); } >/dev/null && {
22913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22914 test ! -s conftest.err
22915 }; then
22916 ac_header_preproc=yes
22917 else
22918 $as_echo "$as_me: failed program was:" >&5
22919 sed 's/^/| /' conftest.$ac_ext >&5
22920
22921 ac_header_preproc=no
22922 fi
22923
22924 rm -f conftest.err conftest.$ac_ext
22925 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22926 $as_echo "$ac_header_preproc" >&6; }
22927
22928 # So? What about this header?
22929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22930 yes:no: )
22931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22932 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22934 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22935 ac_header_preproc=yes
22936 ;;
22937 no:yes:* )
22938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22939 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22941 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22943 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22945 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22947 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22949 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22950
22951 ;;
22952 esac
22953 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22954 $as_echo_n "checking for $ac_header... " >&6; }
22955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22956 $as_echo_n "(cached) " >&6
22957 else
22958 eval "$as_ac_Header=\$ac_header_preproc"
22959 fi
22960 ac_res=`eval 'as_val=${'$as_ac_Header'}
22961 $as_echo "$as_val"'`
22962 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22963 $as_echo "$ac_res" >&6; }
22964
22965 fi
22966 if test `eval 'as_val=${'$as_ac_Header'}
22967 $as_echo "$as_val"'` = yes; then
22968 cat >>confdefs.h <<_ACEOF
22969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22970 _ACEOF
22971
22972 else
22973
22974 for ac_header in kerberosIV/krb.h
22975 do
22976 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22978 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22979 $as_echo_n "checking for $ac_header... " >&6; }
22980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22981 $as_echo_n "(cached) " >&6
22982 fi
22983 ac_res=`eval 'as_val=${'$as_ac_Header'}
22984 $as_echo "$as_val"'`
22985 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22986 $as_echo "$ac_res" >&6; }
22987 else
22988 # Is the header compilable?
22989 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22990 $as_echo_n "checking $ac_header usability... " >&6; }
22991 cat >conftest.$ac_ext <<_ACEOF
22992 /* confdefs.h. */
22993 _ACEOF
22994 cat confdefs.h >>conftest.$ac_ext
22995 cat >>conftest.$ac_ext <<_ACEOF
22996 /* end confdefs.h. */
22997 $ac_includes_default
22998 #include <$ac_header>
22999 _ACEOF
23000 rm -f conftest.$ac_objext
23001 if { (ac_try="$ac_compile"
23002 case "(($ac_try" in
23003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23004 *) ac_try_echo=$ac_try;;
23005 esac
23006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23007 $as_echo "$ac_try_echo") >&5
23008 (eval "$ac_compile") 2>conftest.er1
23009 ac_status=$?
23010 grep -v '^ *+' conftest.er1 >conftest.err
23011 rm -f conftest.er1
23012 cat conftest.err >&5
23013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); } && {
23015 test -z "$ac_c_werror_flag" ||
23016 test ! -s conftest.err
23017 } && test -s conftest.$ac_objext; then
23018 ac_header_compiler=yes
23019 else
23020 $as_echo "$as_me: failed program was:" >&5
23021 sed 's/^/| /' conftest.$ac_ext >&5
23022
23023 ac_header_compiler=no
23024 fi
23025
23026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23027 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23028 $as_echo "$ac_header_compiler" >&6; }
23029
23030 # Is the header present?
23031 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23032 $as_echo_n "checking $ac_header presence... " >&6; }
23033 cat >conftest.$ac_ext <<_ACEOF
23034 /* confdefs.h. */
23035 _ACEOF
23036 cat confdefs.h >>conftest.$ac_ext
23037 cat >>conftest.$ac_ext <<_ACEOF
23038 /* end confdefs.h. */
23039 #include <$ac_header>
23040 _ACEOF
23041 if { (ac_try="$ac_cpp conftest.$ac_ext"
23042 case "(($ac_try" in
23043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23044 *) ac_try_echo=$ac_try;;
23045 esac
23046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23047 $as_echo "$ac_try_echo") >&5
23048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23049 ac_status=$?
23050 grep -v '^ *+' conftest.er1 >conftest.err
23051 rm -f conftest.er1
23052 cat conftest.err >&5
23053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); } >/dev/null && {
23055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23056 test ! -s conftest.err
23057 }; then
23058 ac_header_preproc=yes
23059 else
23060 $as_echo "$as_me: failed program was:" >&5
23061 sed 's/^/| /' conftest.$ac_ext >&5
23062
23063 ac_header_preproc=no
23064 fi
23065
23066 rm -f conftest.err conftest.$ac_ext
23067 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23068 $as_echo "$ac_header_preproc" >&6; }
23069
23070 # So? What about this header?
23071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23072 yes:no: )
23073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23074 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23076 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23077 ac_header_preproc=yes
23078 ;;
23079 no:yes:* )
23080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23081 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23083 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23085 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23087 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23089 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23091 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23092
23093 ;;
23094 esac
23095 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23096 $as_echo_n "checking for $ac_header... " >&6; }
23097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23098 $as_echo_n "(cached) " >&6
23099 else
23100 eval "$as_ac_Header=\$ac_header_preproc"
23101 fi
23102 ac_res=`eval 'as_val=${'$as_ac_Header'}
23103 $as_echo "$as_val"'`
23104 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23105 $as_echo "$ac_res" >&6; }
23106
23107 fi
23108 if test `eval 'as_val=${'$as_ac_Header'}
23109 $as_echo "$as_val"'` = yes; then
23110 cat >>confdefs.h <<_ACEOF
23111 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23112 _ACEOF
23113
23114 else
23115
23116 for ac_header in kerberos/krb.h
23117 do
23118 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23120 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23121 $as_echo_n "checking for $ac_header... " >&6; }
23122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23123 $as_echo_n "(cached) " >&6
23124 fi
23125 ac_res=`eval 'as_val=${'$as_ac_Header'}
23126 $as_echo "$as_val"'`
23127 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23128 $as_echo "$ac_res" >&6; }
23129 else
23130 # Is the header compilable?
23131 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23132 $as_echo_n "checking $ac_header usability... " >&6; }
23133 cat >conftest.$ac_ext <<_ACEOF
23134 /* confdefs.h. */
23135 _ACEOF
23136 cat confdefs.h >>conftest.$ac_ext
23137 cat >>conftest.$ac_ext <<_ACEOF
23138 /* end confdefs.h. */
23139 $ac_includes_default
23140 #include <$ac_header>
23141 _ACEOF
23142 rm -f conftest.$ac_objext
23143 if { (ac_try="$ac_compile"
23144 case "(($ac_try" in
23145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23146 *) ac_try_echo=$ac_try;;
23147 esac
23148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23149 $as_echo "$ac_try_echo") >&5
23150 (eval "$ac_compile") 2>conftest.er1
23151 ac_status=$?
23152 grep -v '^ *+' conftest.er1 >conftest.err
23153 rm -f conftest.er1
23154 cat conftest.err >&5
23155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } && {
23157 test -z "$ac_c_werror_flag" ||
23158 test ! -s conftest.err
23159 } && test -s conftest.$ac_objext; then
23160 ac_header_compiler=yes
23161 else
23162 $as_echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23164
23165 ac_header_compiler=no
23166 fi
23167
23168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23169 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23170 $as_echo "$ac_header_compiler" >&6; }
23171
23172 # Is the header present?
23173 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23174 $as_echo_n "checking $ac_header presence... " >&6; }
23175 cat >conftest.$ac_ext <<_ACEOF
23176 /* confdefs.h. */
23177 _ACEOF
23178 cat confdefs.h >>conftest.$ac_ext
23179 cat >>conftest.$ac_ext <<_ACEOF
23180 /* end confdefs.h. */
23181 #include <$ac_header>
23182 _ACEOF
23183 if { (ac_try="$ac_cpp conftest.$ac_ext"
23184 case "(($ac_try" in
23185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23186 *) ac_try_echo=$ac_try;;
23187 esac
23188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23189 $as_echo "$ac_try_echo") >&5
23190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23191 ac_status=$?
23192 grep -v '^ *+' conftest.er1 >conftest.err
23193 rm -f conftest.er1
23194 cat conftest.err >&5
23195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196 (exit $ac_status); } >/dev/null && {
23197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23198 test ! -s conftest.err
23199 }; then
23200 ac_header_preproc=yes
23201 else
23202 $as_echo "$as_me: failed program was:" >&5
23203 sed 's/^/| /' conftest.$ac_ext >&5
23204
23205 ac_header_preproc=no
23206 fi
23207
23208 rm -f conftest.err conftest.$ac_ext
23209 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23210 $as_echo "$ac_header_preproc" >&6; }
23211
23212 # So? What about this header?
23213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23214 yes:no: )
23215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23216 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23218 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23219 ac_header_preproc=yes
23220 ;;
23221 no:yes:* )
23222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23223 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23225 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23227 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23229 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23231 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23233 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23234
23235 ;;
23236 esac
23237 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23238 $as_echo_n "checking for $ac_header... " >&6; }
23239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23240 $as_echo_n "(cached) " >&6
23241 else
23242 eval "$as_ac_Header=\$ac_header_preproc"
23243 fi
23244 ac_res=`eval 'as_val=${'$as_ac_Header'}
23245 $as_echo "$as_val"'`
23246 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23247 $as_echo "$ac_res" >&6; }
23248
23249 fi
23250 if test `eval 'as_val=${'$as_ac_Header'}
23251 $as_echo "$as_val"'` = yes; then
23252 cat >>confdefs.h <<_ACEOF
23253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23254 _ACEOF
23255
23256 fi
23257
23258 done
23259
23260 fi
23261
23262 done
23263
23264 fi
23265
23266 done
23267
23268 fi
23269
23270 for ac_header in com_err.h
23271 do
23272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23274 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23275 $as_echo_n "checking for $ac_header... " >&6; }
23276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23277 $as_echo_n "(cached) " >&6
23278 fi
23279 ac_res=`eval 'as_val=${'$as_ac_Header'}
23280 $as_echo "$as_val"'`
23281 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23282 $as_echo "$ac_res" >&6; }
23283 else
23284 # Is the header compilable?
23285 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23286 $as_echo_n "checking $ac_header usability... " >&6; }
23287 cat >conftest.$ac_ext <<_ACEOF
23288 /* confdefs.h. */
23289 _ACEOF
23290 cat confdefs.h >>conftest.$ac_ext
23291 cat >>conftest.$ac_ext <<_ACEOF
23292 /* end confdefs.h. */
23293 $ac_includes_default
23294 #include <$ac_header>
23295 _ACEOF
23296 rm -f conftest.$ac_objext
23297 if { (ac_try="$ac_compile"
23298 case "(($ac_try" in
23299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23300 *) ac_try_echo=$ac_try;;
23301 esac
23302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23303 $as_echo "$ac_try_echo") >&5
23304 (eval "$ac_compile") 2>conftest.er1
23305 ac_status=$?
23306 grep -v '^ *+' conftest.er1 >conftest.err
23307 rm -f conftest.er1
23308 cat conftest.err >&5
23309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310 (exit $ac_status); } && {
23311 test -z "$ac_c_werror_flag" ||
23312 test ! -s conftest.err
23313 } && test -s conftest.$ac_objext; then
23314 ac_header_compiler=yes
23315 else
23316 $as_echo "$as_me: failed program was:" >&5
23317 sed 's/^/| /' conftest.$ac_ext >&5
23318
23319 ac_header_compiler=no
23320 fi
23321
23322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23323 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23324 $as_echo "$ac_header_compiler" >&6; }
23325
23326 # Is the header present?
23327 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23328 $as_echo_n "checking $ac_header presence... " >&6; }
23329 cat >conftest.$ac_ext <<_ACEOF
23330 /* confdefs.h. */
23331 _ACEOF
23332 cat confdefs.h >>conftest.$ac_ext
23333 cat >>conftest.$ac_ext <<_ACEOF
23334 /* end confdefs.h. */
23335 #include <$ac_header>
23336 _ACEOF
23337 if { (ac_try="$ac_cpp conftest.$ac_ext"
23338 case "(($ac_try" in
23339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23340 *) ac_try_echo=$ac_try;;
23341 esac
23342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23343 $as_echo "$ac_try_echo") >&5
23344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23345 ac_status=$?
23346 grep -v '^ *+' conftest.er1 >conftest.err
23347 rm -f conftest.er1
23348 cat conftest.err >&5
23349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } >/dev/null && {
23351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23352 test ! -s conftest.err
23353 }; then
23354 ac_header_preproc=yes
23355 else
23356 $as_echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23358
23359 ac_header_preproc=no
23360 fi
23361
23362 rm -f conftest.err conftest.$ac_ext
23363 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23364 $as_echo "$ac_header_preproc" >&6; }
23365
23366 # So? What about this header?
23367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23368 yes:no: )
23369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23370 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23372 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23373 ac_header_preproc=yes
23374 ;;
23375 no:yes:* )
23376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23377 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23379 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23381 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23383 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23385 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23387 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23388
23389 ;;
23390 esac
23391 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23392 $as_echo_n "checking for $ac_header... " >&6; }
23393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23394 $as_echo_n "(cached) " >&6
23395 else
23396 eval "$as_ac_Header=\$ac_header_preproc"
23397 fi
23398 ac_res=`eval 'as_val=${'$as_ac_Header'}
23399 $as_echo "$as_val"'`
23400 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23401 $as_echo "$ac_res" >&6; }
23402
23403 fi
23404 if test `eval 'as_val=${'$as_ac_Header'}
23405 $as_echo "$as_val"'` = yes; then
23406 cat >>confdefs.h <<_ACEOF
23407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23408 _ACEOF
23409
23410 fi
23411
23412 done
23413
23414 fi
23415
23416 # Solaris requires -lintl if you want strerror (which calls dgettext)
23417 # to return localized messages.
23418
23419 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23420 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23421 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23422 $as_echo_n "(cached) " >&6
23423 else
23424 ac_check_lib_save_LIBS=$LIBS
23425 LIBS="-lintl $LIBS"
23426 cat >conftest.$ac_ext <<_ACEOF
23427 /* confdefs.h. */
23428 _ACEOF
23429 cat confdefs.h >>conftest.$ac_ext
23430 cat >>conftest.$ac_ext <<_ACEOF
23431 /* end confdefs.h. */
23432
23433 /* Override any GCC internal prototype to avoid an error.
23434 Use char because int might match the return type of a GCC
23435 builtin and then its argument prototype would still apply. */
23436 #ifdef __cplusplus
23437 extern "C"
23438 #endif
23439 char dgettext ();
23440 int
23441 main ()
23442 {
23443 return dgettext ();
23444 ;
23445 return 0;
23446 }
23447 _ACEOF
23448 rm -f conftest.$ac_objext conftest$ac_exeext
23449 if { (ac_try="$ac_link"
23450 case "(($ac_try" in
23451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23452 *) ac_try_echo=$ac_try;;
23453 esac
23454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23455 $as_echo "$ac_try_echo") >&5
23456 (eval "$ac_link") 2>conftest.er1
23457 ac_status=$?
23458 grep -v '^ *+' conftest.er1 >conftest.err
23459 rm -f conftest.er1
23460 cat conftest.err >&5
23461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); } && {
23463 test -z "$ac_c_werror_flag" ||
23464 test ! -s conftest.err
23465 } && test -s conftest$ac_exeext && {
23466 test "$cross_compiling" = yes ||
23467 $as_test_x conftest$ac_exeext
23468 }; then
23469 ac_cv_lib_intl_dgettext=yes
23470 else
23471 $as_echo "$as_me: failed program was:" >&5
23472 sed 's/^/| /' conftest.$ac_ext >&5
23473
23474 ac_cv_lib_intl_dgettext=no
23475 fi
23476
23477 rm -rf conftest.dSYM
23478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23479 conftest$ac_exeext conftest.$ac_ext
23480 LIBS=$ac_check_lib_save_LIBS
23481 fi
23482 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23483 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23484 if test $ac_cv_lib_intl_dgettext = yes; then
23485 cat >>confdefs.h <<_ACEOF
23486 #define HAVE_LIBINTL 1
23487 _ACEOF
23488
23489 LIBS="-lintl $LIBS"
23490
23491 fi
23492
23493
23494 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23495 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23496 if test "${emacs_cv_localtime_cache+set}" = set; then
23497 $as_echo_n "(cached) " >&6
23498 else
23499 if test x$ac_cv_func_tzset = xyes; then
23500 if test "$cross_compiling" = yes; then
23501 # If we have tzset, assume the worst when cross-compiling.
23502 emacs_cv_localtime_cache=yes
23503 else
23504 cat >conftest.$ac_ext <<_ACEOF
23505 /* confdefs.h. */
23506 _ACEOF
23507 cat confdefs.h >>conftest.$ac_ext
23508 cat >>conftest.$ac_ext <<_ACEOF
23509 /* end confdefs.h. */
23510 #include <time.h>
23511 extern char **environ;
23512 unset_TZ ()
23513 {
23514 char **from, **to;
23515 for (to = from = environ; (*to = *from); from++)
23516 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23517 to++;
23518 }
23519 char TZ_GMT0[] = "TZ=GMT0";
23520 char TZ_PST8[] = "TZ=PST8";
23521 main()
23522 {
23523 time_t now = time ((time_t *) 0);
23524 int hour_GMT0, hour_unset;
23525 if (putenv (TZ_GMT0) != 0)
23526 exit (1);
23527 hour_GMT0 = localtime (&now)->tm_hour;
23528 unset_TZ ();
23529 hour_unset = localtime (&now)->tm_hour;
23530 if (putenv (TZ_PST8) != 0)
23531 exit (1);
23532 if (localtime (&now)->tm_hour == hour_GMT0)
23533 exit (1);
23534 unset_TZ ();
23535 if (localtime (&now)->tm_hour != hour_unset)
23536 exit (1);
23537 exit (0);
23538 }
23539 _ACEOF
23540 rm -f conftest$ac_exeext
23541 if { (ac_try="$ac_link"
23542 case "(($ac_try" in
23543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23544 *) ac_try_echo=$ac_try;;
23545 esac
23546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23547 $as_echo "$ac_try_echo") >&5
23548 (eval "$ac_link") 2>&5
23549 ac_status=$?
23550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23552 { (case "(($ac_try" in
23553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23554 *) ac_try_echo=$ac_try;;
23555 esac
23556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23557 $as_echo "$ac_try_echo") >&5
23558 (eval "$ac_try") 2>&5
23559 ac_status=$?
23560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); }; }; then
23562 emacs_cv_localtime_cache=no
23563 else
23564 $as_echo "$as_me: program exited with status $ac_status" >&5
23565 $as_echo "$as_me: failed program was:" >&5
23566 sed 's/^/| /' conftest.$ac_ext >&5
23567
23568 ( exit $ac_status )
23569 emacs_cv_localtime_cache=yes
23570 fi
23571 rm -rf conftest.dSYM
23572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23573 fi
23574
23575
23576 else
23577 # If we lack tzset, report that localtime does not cache TZ,
23578 # since we can't invalidate the cache if we don't have tzset.
23579 emacs_cv_localtime_cache=no
23580 fi
23581 fi
23582 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23583 $as_echo "$emacs_cv_localtime_cache" >&6; }
23584 if test $emacs_cv_localtime_cache = yes; then
23585
23586 cat >>confdefs.h <<\_ACEOF
23587 #define LOCALTIME_CACHE 1
23588 _ACEOF
23589
23590 fi
23591
23592 if test "x$HAVE_TIMEVAL" = xyes; then
23593
23594 for ac_func in gettimeofday
23595 do
23596 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23597 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23598 $as_echo_n "checking for $ac_func... " >&6; }
23599 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23600 $as_echo_n "(cached) " >&6
23601 else
23602 cat >conftest.$ac_ext <<_ACEOF
23603 /* confdefs.h. */
23604 _ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h. */
23608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23610 #define $ac_func innocuous_$ac_func
23611
23612 /* System header to define __stub macros and hopefully few prototypes,
23613 which can conflict with char $ac_func (); below.
23614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23615 <limits.h> exists even on freestanding compilers. */
23616
23617 #ifdef __STDC__
23618 # include <limits.h>
23619 #else
23620 # include <assert.h>
23621 #endif
23622
23623 #undef $ac_func
23624
23625 /* Override any GCC internal prototype to avoid an error.
23626 Use char because int might match the return type of a GCC
23627 builtin and then its argument prototype would still apply. */
23628 #ifdef __cplusplus
23629 extern "C"
23630 #endif
23631 char $ac_func ();
23632 /* The GNU C library defines this for functions which it implements
23633 to always fail with ENOSYS. Some functions are actually named
23634 something starting with __ and the normal name is an alias. */
23635 #if defined __stub_$ac_func || defined __stub___$ac_func
23636 choke me
23637 #endif
23638
23639 int
23640 main ()
23641 {
23642 return $ac_func ();
23643 ;
23644 return 0;
23645 }
23646 _ACEOF
23647 rm -f conftest.$ac_objext conftest$ac_exeext
23648 if { (ac_try="$ac_link"
23649 case "(($ac_try" in
23650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23651 *) ac_try_echo=$ac_try;;
23652 esac
23653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23654 $as_echo "$ac_try_echo") >&5
23655 (eval "$ac_link") 2>conftest.er1
23656 ac_status=$?
23657 grep -v '^ *+' conftest.er1 >conftest.err
23658 rm -f conftest.er1
23659 cat conftest.err >&5
23660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); } && {
23662 test -z "$ac_c_werror_flag" ||
23663 test ! -s conftest.err
23664 } && test -s conftest$ac_exeext && {
23665 test "$cross_compiling" = yes ||
23666 $as_test_x conftest$ac_exeext
23667 }; then
23668 eval "$as_ac_var=yes"
23669 else
23670 $as_echo "$as_me: failed program was:" >&5
23671 sed 's/^/| /' conftest.$ac_ext >&5
23672
23673 eval "$as_ac_var=no"
23674 fi
23675
23676 rm -rf conftest.dSYM
23677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23678 conftest$ac_exeext conftest.$ac_ext
23679 fi
23680 ac_res=`eval 'as_val=${'$as_ac_var'}
23681 $as_echo "$as_val"'`
23682 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23683 $as_echo "$ac_res" >&6; }
23684 if test `eval 'as_val=${'$as_ac_var'}
23685 $as_echo "$as_val"'` = yes; then
23686 cat >>confdefs.h <<_ACEOF
23687 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23688 _ACEOF
23689
23690 fi
23691 done
23692
23693 if test $ac_cv_func_gettimeofday = yes; then
23694 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
23695 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23696 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23697 $as_echo_n "(cached) " >&6
23698 else
23699 cat >conftest.$ac_ext <<_ACEOF
23700 /* confdefs.h. */
23701 _ACEOF
23702 cat confdefs.h >>conftest.$ac_ext
23703 cat >>conftest.$ac_ext <<_ACEOF
23704 /* end confdefs.h. */
23705
23706 #ifdef TIME_WITH_SYS_TIME
23707 #include <sys/time.h>
23708 #include <time.h>
23709 #else
23710 #ifdef HAVE_SYS_TIME_H
23711 #include <sys/time.h>
23712 #else
23713 #include <time.h>
23714 #endif
23715 #endif
23716 int
23717 main ()
23718 {
23719 struct timeval time;
23720 gettimeofday (&time, 0);
23721 ;
23722 return 0;
23723 }
23724 _ACEOF
23725 rm -f conftest.$ac_objext
23726 if { (ac_try="$ac_compile"
23727 case "(($ac_try" in
23728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23729 *) ac_try_echo=$ac_try;;
23730 esac
23731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23732 $as_echo "$ac_try_echo") >&5
23733 (eval "$ac_compile") 2>conftest.er1
23734 ac_status=$?
23735 grep -v '^ *+' conftest.er1 >conftest.err
23736 rm -f conftest.er1
23737 cat conftest.err >&5
23738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); } && {
23740 test -z "$ac_c_werror_flag" ||
23741 test ! -s conftest.err
23742 } && test -s conftest.$ac_objext; then
23743 emacs_cv_gettimeofday_two_arguments=yes
23744 else
23745 $as_echo "$as_me: failed program was:" >&5
23746 sed 's/^/| /' conftest.$ac_ext >&5
23747
23748 emacs_cv_gettimeofday_two_arguments=no
23749 fi
23750
23751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23752 fi
23753 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
23754 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23755 if test $emacs_cv_gettimeofday_two_arguments = no; then
23756
23757 cat >>confdefs.h <<\_ACEOF
23758 #define GETTIMEOFDAY_ONE_ARGUMENT 1
23759 _ACEOF
23760
23761 fi
23762 fi
23763 fi
23764
23765 ok_so_far=yes
23766 { $as_echo "$as_me:$LINENO: checking for socket" >&5
23767 $as_echo_n "checking for socket... " >&6; }
23768 if test "${ac_cv_func_socket+set}" = set; then
23769 $as_echo_n "(cached) " >&6
23770 else
23771 cat >conftest.$ac_ext <<_ACEOF
23772 /* confdefs.h. */
23773 _ACEOF
23774 cat confdefs.h >>conftest.$ac_ext
23775 cat >>conftest.$ac_ext <<_ACEOF
23776 /* end confdefs.h. */
23777 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23779 #define socket innocuous_socket
23780
23781 /* System header to define __stub macros and hopefully few prototypes,
23782 which can conflict with char socket (); below.
23783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23784 <limits.h> exists even on freestanding compilers. */
23785
23786 #ifdef __STDC__
23787 # include <limits.h>
23788 #else
23789 # include <assert.h>
23790 #endif
23791
23792 #undef socket
23793
23794 /* Override any GCC internal prototype to avoid an error.
23795 Use char because int might match the return type of a GCC
23796 builtin and then its argument prototype would still apply. */
23797 #ifdef __cplusplus
23798 extern "C"
23799 #endif
23800 char socket ();
23801 /* The GNU C library defines this for functions which it implements
23802 to always fail with ENOSYS. Some functions are actually named
23803 something starting with __ and the normal name is an alias. */
23804 #if defined __stub_socket || defined __stub___socket
23805 choke me
23806 #endif
23807
23808 int
23809 main ()
23810 {
23811 return socket ();
23812 ;
23813 return 0;
23814 }
23815 _ACEOF
23816 rm -f conftest.$ac_objext conftest$ac_exeext
23817 if { (ac_try="$ac_link"
23818 case "(($ac_try" in
23819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23820 *) ac_try_echo=$ac_try;;
23821 esac
23822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23823 $as_echo "$ac_try_echo") >&5
23824 (eval "$ac_link") 2>conftest.er1
23825 ac_status=$?
23826 grep -v '^ *+' conftest.er1 >conftest.err
23827 rm -f conftest.er1
23828 cat conftest.err >&5
23829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); } && {
23831 test -z "$ac_c_werror_flag" ||
23832 test ! -s conftest.err
23833 } && test -s conftest$ac_exeext && {
23834 test "$cross_compiling" = yes ||
23835 $as_test_x conftest$ac_exeext
23836 }; then
23837 ac_cv_func_socket=yes
23838 else
23839 $as_echo "$as_me: failed program was:" >&5
23840 sed 's/^/| /' conftest.$ac_ext >&5
23841
23842 ac_cv_func_socket=no
23843 fi
23844
23845 rm -rf conftest.dSYM
23846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23847 conftest$ac_exeext conftest.$ac_ext
23848 fi
23849 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23850 $as_echo "$ac_cv_func_socket" >&6; }
23851 if test $ac_cv_func_socket = yes; then
23852 :
23853 else
23854 ok_so_far=no
23855 fi
23856
23857 if test $ok_so_far = yes; then
23858 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23859 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23860 $as_echo_n "checking for netinet/in.h... " >&6; }
23861 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23862 $as_echo_n "(cached) " >&6
23863 fi
23864 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23865 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23866 else
23867 # Is the header compilable?
23868 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
23869 $as_echo_n "checking netinet/in.h usability... " >&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 $ac_includes_default
23877 #include <netinet/in.h>
23878 _ACEOF
23879 rm -f conftest.$ac_objext
23880 if { (ac_try="$ac_compile"
23881 case "(($ac_try" in
23882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23883 *) ac_try_echo=$ac_try;;
23884 esac
23885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23886 $as_echo "$ac_try_echo") >&5
23887 (eval "$ac_compile") 2>conftest.er1
23888 ac_status=$?
23889 grep -v '^ *+' conftest.er1 >conftest.err
23890 rm -f conftest.er1
23891 cat conftest.err >&5
23892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893 (exit $ac_status); } && {
23894 test -z "$ac_c_werror_flag" ||
23895 test ! -s conftest.err
23896 } && test -s conftest.$ac_objext; then
23897 ac_header_compiler=yes
23898 else
23899 $as_echo "$as_me: failed program was:" >&5
23900 sed 's/^/| /' conftest.$ac_ext >&5
23901
23902 ac_header_compiler=no
23903 fi
23904
23905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23906 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23907 $as_echo "$ac_header_compiler" >&6; }
23908
23909 # Is the header present?
23910 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
23911 $as_echo_n "checking netinet/in.h presence... " >&6; }
23912 cat >conftest.$ac_ext <<_ACEOF
23913 /* confdefs.h. */
23914 _ACEOF
23915 cat confdefs.h >>conftest.$ac_ext
23916 cat >>conftest.$ac_ext <<_ACEOF
23917 /* end confdefs.h. */
23918 #include <netinet/in.h>
23919 _ACEOF
23920 if { (ac_try="$ac_cpp conftest.$ac_ext"
23921 case "(($ac_try" in
23922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23923 *) ac_try_echo=$ac_try;;
23924 esac
23925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23926 $as_echo "$ac_try_echo") >&5
23927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23928 ac_status=$?
23929 grep -v '^ *+' conftest.er1 >conftest.err
23930 rm -f conftest.er1
23931 cat conftest.err >&5
23932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23933 (exit $ac_status); } >/dev/null && {
23934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23935 test ! -s conftest.err
23936 }; then
23937 ac_header_preproc=yes
23938 else
23939 $as_echo "$as_me: failed program was:" >&5
23940 sed 's/^/| /' conftest.$ac_ext >&5
23941
23942 ac_header_preproc=no
23943 fi
23944
23945 rm -f conftest.err conftest.$ac_ext
23946 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23947 $as_echo "$ac_header_preproc" >&6; }
23948
23949 # So? What about this header?
23950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23951 yes:no: )
23952 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
23953 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23954 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
23955 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
23956 ac_header_preproc=yes
23957 ;;
23958 no:yes:* )
23959 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
23960 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
23961 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
23962 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
23963 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
23964 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
23965 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
23966 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
23967 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
23968 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
23969 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
23970 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
23971
23972 ;;
23973 esac
23974 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23975 $as_echo_n "checking for netinet/in.h... " >&6; }
23976 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23977 $as_echo_n "(cached) " >&6
23978 else
23979 ac_cv_header_netinet_in_h=$ac_header_preproc
23980 fi
23981 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23982 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23983
23984 fi
23985 if test $ac_cv_header_netinet_in_h = yes; then
23986 :
23987 else
23988 ok_so_far=no
23989 fi
23990
23991
23992 fi
23993 if test $ok_so_far = yes; then
23994 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23995 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23996 $as_echo_n "checking for arpa/inet.h... " >&6; }
23997 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23998 $as_echo_n "(cached) " >&6
23999 fi
24000 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24001 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24002 else
24003 # Is the header compilable?
24004 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24005 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24006 cat >conftest.$ac_ext <<_ACEOF
24007 /* confdefs.h. */
24008 _ACEOF
24009 cat confdefs.h >>conftest.$ac_ext
24010 cat >>conftest.$ac_ext <<_ACEOF
24011 /* end confdefs.h. */
24012 $ac_includes_default
24013 #include <arpa/inet.h>
24014 _ACEOF
24015 rm -f conftest.$ac_objext
24016 if { (ac_try="$ac_compile"
24017 case "(($ac_try" in
24018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24019 *) ac_try_echo=$ac_try;;
24020 esac
24021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24022 $as_echo "$ac_try_echo") >&5
24023 (eval "$ac_compile") 2>conftest.er1
24024 ac_status=$?
24025 grep -v '^ *+' conftest.er1 >conftest.err
24026 rm -f conftest.er1
24027 cat conftest.err >&5
24028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029 (exit $ac_status); } && {
24030 test -z "$ac_c_werror_flag" ||
24031 test ! -s conftest.err
24032 } && test -s conftest.$ac_objext; then
24033 ac_header_compiler=yes
24034 else
24035 $as_echo "$as_me: failed program was:" >&5
24036 sed 's/^/| /' conftest.$ac_ext >&5
24037
24038 ac_header_compiler=no
24039 fi
24040
24041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24042 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24043 $as_echo "$ac_header_compiler" >&6; }
24044
24045 # Is the header present?
24046 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24047 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24048 cat >conftest.$ac_ext <<_ACEOF
24049 /* confdefs.h. */
24050 _ACEOF
24051 cat confdefs.h >>conftest.$ac_ext
24052 cat >>conftest.$ac_ext <<_ACEOF
24053 /* end confdefs.h. */
24054 #include <arpa/inet.h>
24055 _ACEOF
24056 if { (ac_try="$ac_cpp conftest.$ac_ext"
24057 case "(($ac_try" in
24058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24059 *) ac_try_echo=$ac_try;;
24060 esac
24061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24062 $as_echo "$ac_try_echo") >&5
24063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24064 ac_status=$?
24065 grep -v '^ *+' conftest.er1 >conftest.err
24066 rm -f conftest.er1
24067 cat conftest.err >&5
24068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069 (exit $ac_status); } >/dev/null && {
24070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24071 test ! -s conftest.err
24072 }; then
24073 ac_header_preproc=yes
24074 else
24075 $as_echo "$as_me: failed program was:" >&5
24076 sed 's/^/| /' conftest.$ac_ext >&5
24077
24078 ac_header_preproc=no
24079 fi
24080
24081 rm -f conftest.err conftest.$ac_ext
24082 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24083 $as_echo "$ac_header_preproc" >&6; }
24084
24085 # So? What about this header?
24086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24087 yes:no: )
24088 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24089 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24090 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24091 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24092 ac_header_preproc=yes
24093 ;;
24094 no:yes:* )
24095 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24096 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24097 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24098 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24099 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24100 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24101 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24102 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24103 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24104 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24105 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24106 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24107
24108 ;;
24109 esac
24110 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24111 $as_echo_n "checking for arpa/inet.h... " >&6; }
24112 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24113 $as_echo_n "(cached) " >&6
24114 else
24115 ac_cv_header_arpa_inet_h=$ac_header_preproc
24116 fi
24117 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24118 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24119
24120 fi
24121 if test $ac_cv_header_arpa_inet_h = yes; then
24122 :
24123 else
24124 ok_so_far=no
24125 fi
24126
24127
24128 fi
24129 if test $ok_so_far = yes; then
24130
24131 cat >>confdefs.h <<\_ACEOF
24132 #define HAVE_INET_SOCKETS 1
24133 _ACEOF
24134
24135 fi
24136
24137
24138 for ac_header in sys/ioctl.h
24139 do
24140 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24142 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24143 $as_echo_n "checking for $ac_header... " >&6; }
24144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24145 $as_echo_n "(cached) " >&6
24146 fi
24147 ac_res=`eval 'as_val=${'$as_ac_Header'}
24148 $as_echo "$as_val"'`
24149 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24150 $as_echo "$ac_res" >&6; }
24151 else
24152 # Is the header compilable?
24153 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24154 $as_echo_n "checking $ac_header usability... " >&6; }
24155 cat >conftest.$ac_ext <<_ACEOF
24156 /* confdefs.h. */
24157 _ACEOF
24158 cat confdefs.h >>conftest.$ac_ext
24159 cat >>conftest.$ac_ext <<_ACEOF
24160 /* end confdefs.h. */
24161 $ac_includes_default
24162 #include <$ac_header>
24163 _ACEOF
24164 rm -f conftest.$ac_objext
24165 if { (ac_try="$ac_compile"
24166 case "(($ac_try" in
24167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24168 *) ac_try_echo=$ac_try;;
24169 esac
24170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24171 $as_echo "$ac_try_echo") >&5
24172 (eval "$ac_compile") 2>conftest.er1
24173 ac_status=$?
24174 grep -v '^ *+' conftest.er1 >conftest.err
24175 rm -f conftest.er1
24176 cat conftest.err >&5
24177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24178 (exit $ac_status); } && {
24179 test -z "$ac_c_werror_flag" ||
24180 test ! -s conftest.err
24181 } && test -s conftest.$ac_objext; then
24182 ac_header_compiler=yes
24183 else
24184 $as_echo "$as_me: failed program was:" >&5
24185 sed 's/^/| /' conftest.$ac_ext >&5
24186
24187 ac_header_compiler=no
24188 fi
24189
24190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24191 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24192 $as_echo "$ac_header_compiler" >&6; }
24193
24194 # Is the header present?
24195 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24196 $as_echo_n "checking $ac_header presence... " >&6; }
24197 cat >conftest.$ac_ext <<_ACEOF
24198 /* confdefs.h. */
24199 _ACEOF
24200 cat confdefs.h >>conftest.$ac_ext
24201 cat >>conftest.$ac_ext <<_ACEOF
24202 /* end confdefs.h. */
24203 #include <$ac_header>
24204 _ACEOF
24205 if { (ac_try="$ac_cpp conftest.$ac_ext"
24206 case "(($ac_try" in
24207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24208 *) ac_try_echo=$ac_try;;
24209 esac
24210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24211 $as_echo "$ac_try_echo") >&5
24212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24213 ac_status=$?
24214 grep -v '^ *+' conftest.er1 >conftest.err
24215 rm -f conftest.er1
24216 cat conftest.err >&5
24217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24218 (exit $ac_status); } >/dev/null && {
24219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24220 test ! -s conftest.err
24221 }; then
24222 ac_header_preproc=yes
24223 else
24224 $as_echo "$as_me: failed program was:" >&5
24225 sed 's/^/| /' conftest.$ac_ext >&5
24226
24227 ac_header_preproc=no
24228 fi
24229
24230 rm -f conftest.err conftest.$ac_ext
24231 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24232 $as_echo "$ac_header_preproc" >&6; }
24233
24234 # So? What about this header?
24235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24236 yes:no: )
24237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24238 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24240 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24241 ac_header_preproc=yes
24242 ;;
24243 no:yes:* )
24244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24245 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24247 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24249 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24251 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24253 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24255 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24256
24257 ;;
24258 esac
24259 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24260 $as_echo_n "checking for $ac_header... " >&6; }
24261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24262 $as_echo_n "(cached) " >&6
24263 else
24264 eval "$as_ac_Header=\$ac_header_preproc"
24265 fi
24266 ac_res=`eval 'as_val=${'$as_ac_Header'}
24267 $as_echo "$as_val"'`
24268 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24269 $as_echo "$ac_res" >&6; }
24270
24271 fi
24272 if test `eval 'as_val=${'$as_ac_Header'}
24273 $as_echo "$as_val"'` = yes; then
24274 cat >>confdefs.h <<_ACEOF
24275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24276 _ACEOF
24277
24278 fi
24279
24280 done
24281
24282
24283 if test -f /usr/lpp/X11/bin/smt.exp; then
24284
24285 cat >>confdefs.h <<\_ACEOF
24286 #define HAVE_AIX_SMT_EXP 1
24287 _ACEOF
24288
24289 fi
24290
24291 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24292 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24293 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24294 { $as_echo "$as_me:$LINENO: result: yes" >&5
24295 $as_echo "yes" >&6; }
24296
24297 cat >>confdefs.h <<\_ACEOF
24298 #define HAVE_DEV_PTMX 1
24299 _ACEOF
24300
24301 else
24302 { $as_echo "$as_me:$LINENO: result: no" >&5
24303 $as_echo "no" >&6; }
24304 fi
24305
24306 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24307 $as_echo_n "checking for pid_t... " >&6; }
24308 if test "${ac_cv_type_pid_t+set}" = set; then
24309 $as_echo_n "(cached) " >&6
24310 else
24311 ac_cv_type_pid_t=no
24312 cat >conftest.$ac_ext <<_ACEOF
24313 /* confdefs.h. */
24314 _ACEOF
24315 cat confdefs.h >>conftest.$ac_ext
24316 cat >>conftest.$ac_ext <<_ACEOF
24317 /* end confdefs.h. */
24318 $ac_includes_default
24319 int
24320 main ()
24321 {
24322 if (sizeof (pid_t))
24323 return 0;
24324 ;
24325 return 0;
24326 }
24327 _ACEOF
24328 rm -f conftest.$ac_objext
24329 if { (ac_try="$ac_compile"
24330 case "(($ac_try" in
24331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24332 *) ac_try_echo=$ac_try;;
24333 esac
24334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24335 $as_echo "$ac_try_echo") >&5
24336 (eval "$ac_compile") 2>conftest.er1
24337 ac_status=$?
24338 grep -v '^ *+' conftest.er1 >conftest.err
24339 rm -f conftest.er1
24340 cat conftest.err >&5
24341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); } && {
24343 test -z "$ac_c_werror_flag" ||
24344 test ! -s conftest.err
24345 } && test -s conftest.$ac_objext; then
24346 cat >conftest.$ac_ext <<_ACEOF
24347 /* confdefs.h. */
24348 _ACEOF
24349 cat confdefs.h >>conftest.$ac_ext
24350 cat >>conftest.$ac_ext <<_ACEOF
24351 /* end confdefs.h. */
24352 $ac_includes_default
24353 int
24354 main ()
24355 {
24356 if (sizeof ((pid_t)))
24357 return 0;
24358 ;
24359 return 0;
24360 }
24361 _ACEOF
24362 rm -f conftest.$ac_objext
24363 if { (ac_try="$ac_compile"
24364 case "(($ac_try" in
24365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24366 *) ac_try_echo=$ac_try;;
24367 esac
24368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24369 $as_echo "$ac_try_echo") >&5
24370 (eval "$ac_compile") 2>conftest.er1
24371 ac_status=$?
24372 grep -v '^ *+' conftest.er1 >conftest.err
24373 rm -f conftest.er1
24374 cat conftest.err >&5
24375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); } && {
24377 test -z "$ac_c_werror_flag" ||
24378 test ! -s conftest.err
24379 } && test -s conftest.$ac_objext; then
24380 :
24381 else
24382 $as_echo "$as_me: failed program was:" >&5
24383 sed 's/^/| /' conftest.$ac_ext >&5
24384
24385 ac_cv_type_pid_t=yes
24386 fi
24387
24388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24389 else
24390 $as_echo "$as_me: failed program was:" >&5
24391 sed 's/^/| /' conftest.$ac_ext >&5
24392
24393
24394 fi
24395
24396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24397 fi
24398 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24399 $as_echo "$ac_cv_type_pid_t" >&6; }
24400 if test $ac_cv_type_pid_t = yes; then
24401 :
24402 else
24403
24404 cat >>confdefs.h <<_ACEOF
24405 #define pid_t int
24406 _ACEOF
24407
24408 fi
24409
24410
24411 for ac_header in vfork.h
24412 do
24413 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24415 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24416 $as_echo_n "checking for $ac_header... " >&6; }
24417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24418 $as_echo_n "(cached) " >&6
24419 fi
24420 ac_res=`eval 'as_val=${'$as_ac_Header'}
24421 $as_echo "$as_val"'`
24422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24423 $as_echo "$ac_res" >&6; }
24424 else
24425 # Is the header compilable?
24426 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24427 $as_echo_n "checking $ac_header usability... " >&6; }
24428 cat >conftest.$ac_ext <<_ACEOF
24429 /* confdefs.h. */
24430 _ACEOF
24431 cat confdefs.h >>conftest.$ac_ext
24432 cat >>conftest.$ac_ext <<_ACEOF
24433 /* end confdefs.h. */
24434 $ac_includes_default
24435 #include <$ac_header>
24436 _ACEOF
24437 rm -f conftest.$ac_objext
24438 if { (ac_try="$ac_compile"
24439 case "(($ac_try" in
24440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24441 *) ac_try_echo=$ac_try;;
24442 esac
24443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24444 $as_echo "$ac_try_echo") >&5
24445 (eval "$ac_compile") 2>conftest.er1
24446 ac_status=$?
24447 grep -v '^ *+' conftest.er1 >conftest.err
24448 rm -f conftest.er1
24449 cat conftest.err >&5
24450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451 (exit $ac_status); } && {
24452 test -z "$ac_c_werror_flag" ||
24453 test ! -s conftest.err
24454 } && test -s conftest.$ac_objext; then
24455 ac_header_compiler=yes
24456 else
24457 $as_echo "$as_me: failed program was:" >&5
24458 sed 's/^/| /' conftest.$ac_ext >&5
24459
24460 ac_header_compiler=no
24461 fi
24462
24463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24464 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24465 $as_echo "$ac_header_compiler" >&6; }
24466
24467 # Is the header present?
24468 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24469 $as_echo_n "checking $ac_header presence... " >&6; }
24470 cat >conftest.$ac_ext <<_ACEOF
24471 /* confdefs.h. */
24472 _ACEOF
24473 cat confdefs.h >>conftest.$ac_ext
24474 cat >>conftest.$ac_ext <<_ACEOF
24475 /* end confdefs.h. */
24476 #include <$ac_header>
24477 _ACEOF
24478 if { (ac_try="$ac_cpp conftest.$ac_ext"
24479 case "(($ac_try" in
24480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24481 *) ac_try_echo=$ac_try;;
24482 esac
24483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24484 $as_echo "$ac_try_echo") >&5
24485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24486 ac_status=$?
24487 grep -v '^ *+' conftest.er1 >conftest.err
24488 rm -f conftest.er1
24489 cat conftest.err >&5
24490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491 (exit $ac_status); } >/dev/null && {
24492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24493 test ! -s conftest.err
24494 }; then
24495 ac_header_preproc=yes
24496 else
24497 $as_echo "$as_me: failed program was:" >&5
24498 sed 's/^/| /' conftest.$ac_ext >&5
24499
24500 ac_header_preproc=no
24501 fi
24502
24503 rm -f conftest.err conftest.$ac_ext
24504 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24505 $as_echo "$ac_header_preproc" >&6; }
24506
24507 # So? What about this header?
24508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24509 yes:no: )
24510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24511 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24512 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24513 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24514 ac_header_preproc=yes
24515 ;;
24516 no:yes:* )
24517 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24518 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24520 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24522 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24524 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24526 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24528 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24529
24530 ;;
24531 esac
24532 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24533 $as_echo_n "checking for $ac_header... " >&6; }
24534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24535 $as_echo_n "(cached) " >&6
24536 else
24537 eval "$as_ac_Header=\$ac_header_preproc"
24538 fi
24539 ac_res=`eval 'as_val=${'$as_ac_Header'}
24540 $as_echo "$as_val"'`
24541 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24542 $as_echo "$ac_res" >&6; }
24543
24544 fi
24545 if test `eval 'as_val=${'$as_ac_Header'}
24546 $as_echo "$as_val"'` = yes; then
24547 cat >>confdefs.h <<_ACEOF
24548 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24549 _ACEOF
24550
24551 fi
24552
24553 done
24554
24555
24556
24557 for ac_func in fork vfork
24558 do
24559 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24560 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24561 $as_echo_n "checking for $ac_func... " >&6; }
24562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24563 $as_echo_n "(cached) " >&6
24564 else
24565 cat >conftest.$ac_ext <<_ACEOF
24566 /* confdefs.h. */
24567 _ACEOF
24568 cat confdefs.h >>conftest.$ac_ext
24569 cat >>conftest.$ac_ext <<_ACEOF
24570 /* end confdefs.h. */
24571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24573 #define $ac_func innocuous_$ac_func
24574
24575 /* System header to define __stub macros and hopefully few prototypes,
24576 which can conflict with char $ac_func (); below.
24577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24578 <limits.h> exists even on freestanding compilers. */
24579
24580 #ifdef __STDC__
24581 # include <limits.h>
24582 #else
24583 # include <assert.h>
24584 #endif
24585
24586 #undef $ac_func
24587
24588 /* Override any GCC internal prototype to avoid an error.
24589 Use char because int might match the return type of a GCC
24590 builtin and then its argument prototype would still apply. */
24591 #ifdef __cplusplus
24592 extern "C"
24593 #endif
24594 char $ac_func ();
24595 /* The GNU C library defines this for functions which it implements
24596 to always fail with ENOSYS. Some functions are actually named
24597 something starting with __ and the normal name is an alias. */
24598 #if defined __stub_$ac_func || defined __stub___$ac_func
24599 choke me
24600 #endif
24601
24602 int
24603 main ()
24604 {
24605 return $ac_func ();
24606 ;
24607 return 0;
24608 }
24609 _ACEOF
24610 rm -f conftest.$ac_objext conftest$ac_exeext
24611 if { (ac_try="$ac_link"
24612 case "(($ac_try" in
24613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24614 *) ac_try_echo=$ac_try;;
24615 esac
24616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24617 $as_echo "$ac_try_echo") >&5
24618 (eval "$ac_link") 2>conftest.er1
24619 ac_status=$?
24620 grep -v '^ *+' conftest.er1 >conftest.err
24621 rm -f conftest.er1
24622 cat conftest.err >&5
24623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624 (exit $ac_status); } && {
24625 test -z "$ac_c_werror_flag" ||
24626 test ! -s conftest.err
24627 } && test -s conftest$ac_exeext && {
24628 test "$cross_compiling" = yes ||
24629 $as_test_x conftest$ac_exeext
24630 }; then
24631 eval "$as_ac_var=yes"
24632 else
24633 $as_echo "$as_me: failed program was:" >&5
24634 sed 's/^/| /' conftest.$ac_ext >&5
24635
24636 eval "$as_ac_var=no"
24637 fi
24638
24639 rm -rf conftest.dSYM
24640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24641 conftest$ac_exeext conftest.$ac_ext
24642 fi
24643 ac_res=`eval 'as_val=${'$as_ac_var'}
24644 $as_echo "$as_val"'`
24645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24646 $as_echo "$ac_res" >&6; }
24647 if test `eval 'as_val=${'$as_ac_var'}
24648 $as_echo "$as_val"'` = yes; then
24649 cat >>confdefs.h <<_ACEOF
24650 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24651 _ACEOF
24652
24653 fi
24654 done
24655
24656 if test "x$ac_cv_func_fork" = xyes; then
24657 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
24658 $as_echo_n "checking for working fork... " >&6; }
24659 if test "${ac_cv_func_fork_works+set}" = set; then
24660 $as_echo_n "(cached) " >&6
24661 else
24662 if test "$cross_compiling" = yes; then
24663 ac_cv_func_fork_works=cross
24664 else
24665 cat >conftest.$ac_ext <<_ACEOF
24666 /* confdefs.h. */
24667 _ACEOF
24668 cat confdefs.h >>conftest.$ac_ext
24669 cat >>conftest.$ac_ext <<_ACEOF
24670 /* end confdefs.h. */
24671 $ac_includes_default
24672 int
24673 main ()
24674 {
24675
24676 /* By Ruediger Kuhlmann. */
24677 return fork () < 0;
24678
24679 ;
24680 return 0;
24681 }
24682 _ACEOF
24683 rm -f conftest$ac_exeext
24684 if { (ac_try="$ac_link"
24685 case "(($ac_try" in
24686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24687 *) ac_try_echo=$ac_try;;
24688 esac
24689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24690 $as_echo "$ac_try_echo") >&5
24691 (eval "$ac_link") 2>&5
24692 ac_status=$?
24693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24695 { (case "(($ac_try" in
24696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24697 *) ac_try_echo=$ac_try;;
24698 esac
24699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24700 $as_echo "$ac_try_echo") >&5
24701 (eval "$ac_try") 2>&5
24702 ac_status=$?
24703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704 (exit $ac_status); }; }; then
24705 ac_cv_func_fork_works=yes
24706 else
24707 $as_echo "$as_me: program exited with status $ac_status" >&5
24708 $as_echo "$as_me: failed program was:" >&5
24709 sed 's/^/| /' conftest.$ac_ext >&5
24710
24711 ( exit $ac_status )
24712 ac_cv_func_fork_works=no
24713 fi
24714 rm -rf conftest.dSYM
24715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24716 fi
24717
24718
24719 fi
24720 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24721 $as_echo "$ac_cv_func_fork_works" >&6; }
24722
24723 else
24724 ac_cv_func_fork_works=$ac_cv_func_fork
24725 fi
24726 if test "x$ac_cv_func_fork_works" = xcross; then
24727 case $host in
24728 *-*-amigaos* | *-*-msdosdjgpp*)
24729 # Override, as these systems have only a dummy fork() stub
24730 ac_cv_func_fork_works=no
24731 ;;
24732 *)
24733 ac_cv_func_fork_works=yes
24734 ;;
24735 esac
24736 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24737 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24738 fi
24739 ac_cv_func_vfork_works=$ac_cv_func_vfork
24740 if test "x$ac_cv_func_vfork" = xyes; then
24741 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
24742 $as_echo_n "checking for working vfork... " >&6; }
24743 if test "${ac_cv_func_vfork_works+set}" = set; then
24744 $as_echo_n "(cached) " >&6
24745 else
24746 if test "$cross_compiling" = yes; then
24747 ac_cv_func_vfork_works=cross
24748 else
24749 cat >conftest.$ac_ext <<_ACEOF
24750 /* confdefs.h. */
24751 _ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h. */
24755 /* Thanks to Paul Eggert for this test. */
24756 $ac_includes_default
24757 #include <sys/wait.h>
24758 #ifdef HAVE_VFORK_H
24759 # include <vfork.h>
24760 #endif
24761 /* On some sparc systems, changes by the child to local and incoming
24762 argument registers are propagated back to the parent. The compiler
24763 is told about this with #include <vfork.h>, but some compilers
24764 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24765 static variable whose address is put into a register that is
24766 clobbered by the vfork. */
24767 static void
24768 #ifdef __cplusplus
24769 sparc_address_test (int arg)
24770 # else
24771 sparc_address_test (arg) int arg;
24772 #endif
24773 {
24774 static pid_t child;
24775 if (!child) {
24776 child = vfork ();
24777 if (child < 0) {
24778 perror ("vfork");
24779 _exit(2);
24780 }
24781 if (!child) {
24782 arg = getpid();
24783 write(-1, "", 0);
24784 _exit (arg);
24785 }
24786 }
24787 }
24788
24789 int
24790 main ()
24791 {
24792 pid_t parent = getpid ();
24793 pid_t child;
24794
24795 sparc_address_test (0);
24796
24797 child = vfork ();
24798
24799 if (child == 0) {
24800 /* Here is another test for sparc vfork register problems. This
24801 test uses lots of local variables, at least as many local
24802 variables as main has allocated so far including compiler
24803 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24804 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24805 reuse the register of parent for one of the local variables,
24806 since it will think that parent can't possibly be used any more
24807 in this routine. Assigning to the local variable will thus
24808 munge parent in the parent process. */
24809 pid_t
24810 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24811 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24812 /* Convince the compiler that p..p7 are live; otherwise, it might
24813 use the same hardware register for all 8 local variables. */
24814 if (p != p1 || p != p2 || p != p3 || p != p4
24815 || p != p5 || p != p6 || p != p7)
24816 _exit(1);
24817
24818 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24819 from child file descriptors. If the child closes a descriptor
24820 before it execs or exits, this munges the parent's descriptor
24821 as well. Test for this by closing stdout in the child. */
24822 _exit(close(fileno(stdout)) != 0);
24823 } else {
24824 int status;
24825 struct stat st;
24826
24827 while (wait(&status) != child)
24828 ;
24829 return (
24830 /* Was there some problem with vforking? */
24831 child < 0
24832
24833 /* Did the child fail? (This shouldn't happen.) */
24834 || status
24835
24836 /* Did the vfork/compiler bug occur? */
24837 || parent != getpid()
24838
24839 /* Did the file descriptor bug occur? */
24840 || fstat(fileno(stdout), &st) != 0
24841 );
24842 }
24843 }
24844 _ACEOF
24845 rm -f conftest$ac_exeext
24846 if { (ac_try="$ac_link"
24847 case "(($ac_try" in
24848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24849 *) ac_try_echo=$ac_try;;
24850 esac
24851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24852 $as_echo "$ac_try_echo") >&5
24853 (eval "$ac_link") 2>&5
24854 ac_status=$?
24855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24857 { (case "(($ac_try" in
24858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24859 *) ac_try_echo=$ac_try;;
24860 esac
24861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24862 $as_echo "$ac_try_echo") >&5
24863 (eval "$ac_try") 2>&5
24864 ac_status=$?
24865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); }; }; then
24867 ac_cv_func_vfork_works=yes
24868 else
24869 $as_echo "$as_me: program exited with status $ac_status" >&5
24870 $as_echo "$as_me: failed program was:" >&5
24871 sed 's/^/| /' conftest.$ac_ext >&5
24872
24873 ( exit $ac_status )
24874 ac_cv_func_vfork_works=no
24875 fi
24876 rm -rf conftest.dSYM
24877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24878 fi
24879
24880
24881 fi
24882 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24883 $as_echo "$ac_cv_func_vfork_works" >&6; }
24884
24885 fi;
24886 if test "x$ac_cv_func_fork_works" = xcross; then
24887 ac_cv_func_vfork_works=$ac_cv_func_vfork
24888 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24889 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24890 fi
24891
24892 if test "x$ac_cv_func_vfork_works" = xyes; then
24893
24894 cat >>confdefs.h <<\_ACEOF
24895 #define HAVE_WORKING_VFORK 1
24896 _ACEOF
24897
24898 else
24899
24900 cat >>confdefs.h <<\_ACEOF
24901 #define vfork fork
24902 _ACEOF
24903
24904 fi
24905 if test "x$ac_cv_func_fork_works" = xyes; then
24906
24907 cat >>confdefs.h <<\_ACEOF
24908 #define HAVE_WORKING_FORK 1
24909 _ACEOF
24910
24911 fi
24912
24913
24914 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
24915 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
24916 if test "${emacs_cv_langinfo_codeset+set}" = set; then
24917 $as_echo_n "(cached) " >&6
24918 else
24919 cat >conftest.$ac_ext <<_ACEOF
24920 /* confdefs.h. */
24921 _ACEOF
24922 cat confdefs.h >>conftest.$ac_ext
24923 cat >>conftest.$ac_ext <<_ACEOF
24924 /* end confdefs.h. */
24925 #include <langinfo.h>
24926 int
24927 main ()
24928 {
24929 char* cs = nl_langinfo(CODESET);
24930 ;
24931 return 0;
24932 }
24933 _ACEOF
24934 rm -f conftest.$ac_objext conftest$ac_exeext
24935 if { (ac_try="$ac_link"
24936 case "(($ac_try" in
24937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938 *) ac_try_echo=$ac_try;;
24939 esac
24940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24941 $as_echo "$ac_try_echo") >&5
24942 (eval "$ac_link") 2>conftest.er1
24943 ac_status=$?
24944 grep -v '^ *+' conftest.er1 >conftest.err
24945 rm -f conftest.er1
24946 cat conftest.err >&5
24947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948 (exit $ac_status); } && {
24949 test -z "$ac_c_werror_flag" ||
24950 test ! -s conftest.err
24951 } && test -s conftest$ac_exeext && {
24952 test "$cross_compiling" = yes ||
24953 $as_test_x conftest$ac_exeext
24954 }; then
24955 emacs_cv_langinfo_codeset=yes
24956 else
24957 $as_echo "$as_me: failed program was:" >&5
24958 sed 's/^/| /' conftest.$ac_ext >&5
24959
24960 emacs_cv_langinfo_codeset=no
24961 fi
24962
24963 rm -rf conftest.dSYM
24964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24965 conftest$ac_exeext conftest.$ac_ext
24966
24967 fi
24968 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
24969 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
24970 if test $emacs_cv_langinfo_codeset = yes; then
24971
24972 cat >>confdefs.h <<\_ACEOF
24973 #define HAVE_LANGINFO_CODESET 1
24974 _ACEOF
24975
24976 fi
24977
24978 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
24979 $as_echo_n "checking for size_t... " >&6; }
24980 if test "${ac_cv_type_size_t+set}" = set; then
24981 $as_echo_n "(cached) " >&6
24982 else
24983 ac_cv_type_size_t=no
24984 cat >conftest.$ac_ext <<_ACEOF
24985 /* confdefs.h. */
24986 _ACEOF
24987 cat confdefs.h >>conftest.$ac_ext
24988 cat >>conftest.$ac_ext <<_ACEOF
24989 /* end confdefs.h. */
24990 $ac_includes_default
24991 int
24992 main ()
24993 {
24994 if (sizeof (size_t))
24995 return 0;
24996 ;
24997 return 0;
24998 }
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 cat >conftest.$ac_ext <<_ACEOF
25019 /* confdefs.h. */
25020 _ACEOF
25021 cat confdefs.h >>conftest.$ac_ext
25022 cat >>conftest.$ac_ext <<_ACEOF
25023 /* end confdefs.h. */
25024 $ac_includes_default
25025 int
25026 main ()
25027 {
25028 if (sizeof ((size_t)))
25029 return 0;
25030 ;
25031 return 0;
25032 }
25033 _ACEOF
25034 rm -f conftest.$ac_objext
25035 if { (ac_try="$ac_compile"
25036 case "(($ac_try" in
25037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25038 *) ac_try_echo=$ac_try;;
25039 esac
25040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25041 $as_echo "$ac_try_echo") >&5
25042 (eval "$ac_compile") 2>conftest.er1
25043 ac_status=$?
25044 grep -v '^ *+' conftest.er1 >conftest.err
25045 rm -f conftest.er1
25046 cat conftest.err >&5
25047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048 (exit $ac_status); } && {
25049 test -z "$ac_c_werror_flag" ||
25050 test ! -s conftest.err
25051 } && test -s conftest.$ac_objext; then
25052 :
25053 else
25054 $as_echo "$as_me: failed program was:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25056
25057 ac_cv_type_size_t=yes
25058 fi
25059
25060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25061 else
25062 $as_echo "$as_me: failed program was:" >&5
25063 sed 's/^/| /' conftest.$ac_ext >&5
25064
25065
25066 fi
25067
25068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25069 fi
25070 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25071 $as_echo "$ac_cv_type_size_t" >&6; }
25072 if test $ac_cv_type_size_t = yes; then
25073
25074 cat >>confdefs.h <<_ACEOF
25075 #define HAVE_SIZE_T 1
25076 _ACEOF
25077
25078
25079 fi
25080
25081
25082 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25083 $as_echo_n "checking for mbstate_t... " >&6; }
25084 if test "${ac_cv_type_mbstate_t+set}" = set; then
25085 $as_echo_n "(cached) " >&6
25086 else
25087 cat >conftest.$ac_ext <<_ACEOF
25088 /* confdefs.h. */
25089 _ACEOF
25090 cat confdefs.h >>conftest.$ac_ext
25091 cat >>conftest.$ac_ext <<_ACEOF
25092 /* end confdefs.h. */
25093 $ac_includes_default
25094 # include <wchar.h>
25095 int
25096 main ()
25097 {
25098 mbstate_t x; return sizeof x;
25099 ;
25100 return 0;
25101 }
25102 _ACEOF
25103 rm -f conftest.$ac_objext
25104 if { (ac_try="$ac_compile"
25105 case "(($ac_try" in
25106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25107 *) ac_try_echo=$ac_try;;
25108 esac
25109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25110 $as_echo "$ac_try_echo") >&5
25111 (eval "$ac_compile") 2>conftest.er1
25112 ac_status=$?
25113 grep -v '^ *+' conftest.er1 >conftest.err
25114 rm -f conftest.er1
25115 cat conftest.err >&5
25116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117 (exit $ac_status); } && {
25118 test -z "$ac_c_werror_flag" ||
25119 test ! -s conftest.err
25120 } && test -s conftest.$ac_objext; then
25121 ac_cv_type_mbstate_t=yes
25122 else
25123 $as_echo "$as_me: failed program was:" >&5
25124 sed 's/^/| /' conftest.$ac_ext >&5
25125
25126 ac_cv_type_mbstate_t=no
25127 fi
25128
25129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25130 fi
25131 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25132 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25133 if test $ac_cv_type_mbstate_t = yes; then
25134
25135 cat >>confdefs.h <<\_ACEOF
25136 #define HAVE_MBSTATE_T 1
25137 _ACEOF
25138
25139 else
25140
25141 cat >>confdefs.h <<\_ACEOF
25142 #define mbstate_t int
25143 _ACEOF
25144
25145 fi
25146
25147 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25148 $as_echo_n "checking for C restrict keyword... " >&6; }
25149 if test "${emacs_cv_c_restrict+set}" = set; then
25150 $as_echo_n "(cached) " >&6
25151 else
25152 cat >conftest.$ac_ext <<_ACEOF
25153 /* confdefs.h. */
25154 _ACEOF
25155 cat confdefs.h >>conftest.$ac_ext
25156 cat >>conftest.$ac_ext <<_ACEOF
25157 /* end confdefs.h. */
25158 void fred (int *restrict x);
25159 int
25160 main ()
25161 {
25162
25163 ;
25164 return 0;
25165 }
25166 _ACEOF
25167 rm -f conftest.$ac_objext
25168 if { (ac_try="$ac_compile"
25169 case "(($ac_try" in
25170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171 *) ac_try_echo=$ac_try;;
25172 esac
25173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25174 $as_echo "$ac_try_echo") >&5
25175 (eval "$ac_compile") 2>conftest.er1
25176 ac_status=$?
25177 grep -v '^ *+' conftest.er1 >conftest.err
25178 rm -f conftest.er1
25179 cat conftest.err >&5
25180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); } && {
25182 test -z "$ac_c_werror_flag" ||
25183 test ! -s conftest.err
25184 } && test -s conftest.$ac_objext; then
25185 emacs_cv_c_restrict=yes
25186 else
25187 $as_echo "$as_me: failed program was:" >&5
25188 sed 's/^/| /' conftest.$ac_ext >&5
25189
25190 cat >conftest.$ac_ext <<_ACEOF
25191 /* confdefs.h. */
25192 _ACEOF
25193 cat confdefs.h >>conftest.$ac_ext
25194 cat >>conftest.$ac_ext <<_ACEOF
25195 /* end confdefs.h. */
25196 void fred (int *__restrict x);
25197 int
25198 main ()
25199 {
25200
25201 ;
25202 return 0;
25203 }
25204 _ACEOF
25205 rm -f conftest.$ac_objext
25206 if { (ac_try="$ac_compile"
25207 case "(($ac_try" in
25208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25209 *) ac_try_echo=$ac_try;;
25210 esac
25211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25212 $as_echo "$ac_try_echo") >&5
25213 (eval "$ac_compile") 2>conftest.er1
25214 ac_status=$?
25215 grep -v '^ *+' conftest.er1 >conftest.err
25216 rm -f conftest.er1
25217 cat conftest.err >&5
25218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); } && {
25220 test -z "$ac_c_werror_flag" ||
25221 test ! -s conftest.err
25222 } && test -s conftest.$ac_objext; then
25223 emacs_cv_c_restrict=__restrict
25224 else
25225 $as_echo "$as_me: failed program was:" >&5
25226 sed 's/^/| /' conftest.$ac_ext >&5
25227
25228 emacs_cv_c_restrict=no
25229 fi
25230
25231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25232 fi
25233
25234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25235 fi
25236 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25237 $as_echo "$emacs_cv_c_restrict" >&6; }
25238 case "$emacs_cv_c_restrict" in
25239 yes) emacs_restrict=restrict;;
25240 no) emacs_restrict="";;
25241 *) emacs_restrict="$emacs_cv_c_restrict";;
25242 esac
25243 if test "$emacs_restrict" != __restrict; then
25244
25245 cat >>confdefs.h <<_ACEOF
25246 #define __restrict $emacs_restrict
25247 _ACEOF
25248
25249 fi
25250
25251 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25252 $as_echo_n "checking for C restricted array declarations... " >&6; }
25253 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25254 $as_echo_n "(cached) " >&6
25255 else
25256 cat >conftest.$ac_ext <<_ACEOF
25257 /* confdefs.h. */
25258 _ACEOF
25259 cat confdefs.h >>conftest.$ac_ext
25260 cat >>conftest.$ac_ext <<_ACEOF
25261 /* end confdefs.h. */
25262 void fred (int x[__restrict]);
25263 int
25264 main ()
25265 {
25266
25267 ;
25268 return 0;
25269 }
25270 _ACEOF
25271 rm -f conftest.$ac_objext
25272 if { (ac_try="$ac_compile"
25273 case "(($ac_try" in
25274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25275 *) ac_try_echo=$ac_try;;
25276 esac
25277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25278 $as_echo "$ac_try_echo") >&5
25279 (eval "$ac_compile") 2>conftest.er1
25280 ac_status=$?
25281 grep -v '^ *+' conftest.er1 >conftest.err
25282 rm -f conftest.er1
25283 cat conftest.err >&5
25284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); } && {
25286 test -z "$ac_c_werror_flag" ||
25287 test ! -s conftest.err
25288 } && test -s conftest.$ac_objext; then
25289 emacs_cv_c_restrict_arr=yes
25290 else
25291 $as_echo "$as_me: failed program was:" >&5
25292 sed 's/^/| /' conftest.$ac_ext >&5
25293
25294 emacs_cv_c_restrict_arr=no
25295 fi
25296
25297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25298 fi
25299 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25300 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25301 if test "$emacs_cv_c_restrict_arr" = yes; then
25302
25303 cat >>confdefs.h <<\_ACEOF
25304 #define __restrict_arr __restrict
25305 _ACEOF
25306
25307 fi
25308
25309
25310
25311 # Set up the CFLAGS for real compilation, so we can substitute it.
25312 CFLAGS="$REAL_CFLAGS"
25313 CPPFLAGS="$REAL_CPPFLAGS"
25314
25315 #### Find out which version of Emacs this is.
25316 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25317 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25318 if test x"${version}" = x; then
25319 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25320 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25321 { (exit 1); exit 1; }; }
25322 fi
25323 if test x"${version}" != x"$PACKAGE_VERSION"; then
25324 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25325 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25326 fi
25327
25328 ### Specify what sort of things we'll be editing into Makefile and config.h.
25329 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25330
25331
25332
25333
25334
25335
25336
25337
25338
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348
25349
25350
25351
25352
25353
25354
25355
25356
25357
25358
25359
25360
25361
25362
25363
25364
25365
25366
25367
25368
25369
25370
25371
25372
25373
25374 cat >>confdefs.h <<_ACEOF
25375 #define EMACS_CONFIGURATION "${canonical}"
25376 _ACEOF
25377
25378
25379 cat >>confdefs.h <<_ACEOF
25380 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25381 _ACEOF
25382
25383
25384 cat >>confdefs.h <<_ACEOF
25385 #define config_machfile "${machfile}"
25386 _ACEOF
25387
25388
25389 cat >>confdefs.h <<_ACEOF
25390 #define config_opsysfile "${opsysfile}"
25391 _ACEOF
25392
25393
25394 cat >>confdefs.h <<_ACEOF
25395 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25396 _ACEOF
25397
25398
25399 cat >>confdefs.h <<_ACEOF
25400 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25401 _ACEOF
25402
25403
25404 cat >>confdefs.h <<_ACEOF
25405 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25406 _ACEOF
25407
25408
25409 cat >>confdefs.h <<_ACEOF
25410 #define UNEXEC_SRC ${UNEXEC_SRC}
25411 _ACEOF
25412
25413
25414 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25415
25416 cat >>confdefs.h <<\_ACEOF
25417 #define HAVE_X_WINDOWS 1
25418 _ACEOF
25419
25420 fi
25421 if test "${USE_X_TOOLKIT}" != "none" ; then
25422
25423 cat >>confdefs.h <<\_ACEOF
25424 #define USE_X_TOOLKIT 1
25425 _ACEOF
25426
25427 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25428
25429 cat >>confdefs.h <<\_ACEOF
25430 #define USE_LUCID 1
25431 _ACEOF
25432
25433 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25434
25435 cat >>confdefs.h <<\_ACEOF
25436 #define USE_MOTIF 1
25437 _ACEOF
25438
25439 fi
25440 fi
25441 if test "${HAVE_X11}" = "yes" ; then
25442
25443 cat >>confdefs.h <<\_ACEOF
25444 #define HAVE_X11 1
25445 _ACEOF
25446
25447 fi
25448 if test "${HAVE_MENUS}" = "yes" ; then
25449
25450 cat >>confdefs.h <<\_ACEOF
25451 #define HAVE_MENUS 1
25452 _ACEOF
25453
25454 fi
25455 if test "${GNU_MALLOC}" = "yes" ; then
25456
25457 cat >>confdefs.h <<\_ACEOF
25458 #define GNU_MALLOC 1
25459 _ACEOF
25460
25461 fi
25462 if test "${REL_ALLOC}" = "yes" ; then
25463
25464 cat >>confdefs.h <<\_ACEOF
25465 #define REL_ALLOC 1
25466 _ACEOF
25467
25468 fi
25469
25470
25471
25472
25473
25474
25475 #### Report on what we decided to do.
25476 #### Report GTK as a toolkit, even if it doesn't use Xt.
25477 #### It makes printing result more understandable as using GTK sets
25478 #### toolkit_scroll_bars to yes by default.
25479 if test "${HAVE_GTK}" = "yes"; then
25480 USE_X_TOOLKIT=GTK
25481 fi
25482
25483 echo "
25484 Configured for \`${canonical}'.
25485
25486 Where should the build process find the source code? ${srcdir}
25487 What operating system and machine description files should Emacs use?
25488 \`${opsysfile}' and \`${machfile}'
25489 What compiler should emacs be built with? ${CC} ${CFLAGS}
25490 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25491 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25492 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25493 What window system should Emacs use? ${window_system}
25494 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25495
25496 if test -n "${x_includes}"; then
25497 echo " Where do we find X Windows header files? ${x_includes}"
25498 else
25499 echo " Where do we find X Windows header files? Standard dirs"
25500 fi
25501 if test -n "${x_libraries}"; then
25502 echo " Where do we find X Windows libraries? ${x_libraries}"
25503 else
25504 echo " Where do we find X Windows libraries? Standard dirs"
25505 fi
25506
25507 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25508 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25509 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25510 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25511 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
25512 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25513 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25514 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25515 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25516
25517 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25518 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25519 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25520 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25521
25522 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25523 echo
25524
25525 if test $USE_XASSERTS = yes; then
25526 echo " Compiling with asserts turned on."
25527 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
25528 fi
25529
25530 echo
25531
25532 if test "$USE_X_TOOLKIT" = GTK; then
25533 case "$canonical" in
25534 *cygwin*)
25535 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
25536 will probably get a crash on startup. If this happens, please use another
25537 toolkit for Emacs. See etc/PROBLEMS for more information."
25538 ;;
25539 esac
25540 fi
25541
25542 if test "$HAVE_NS" = "yes"; then
25543 echo
25544 echo "You must run \"make install\" in order to test the built application.
25545 The installed application will go to nextstep/Emacs.app and can be
25546 run or moved from there."
25547 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25548 echo "The application will be fully self-contained."
25549 else
25550 echo "The lisp resources for the application will be installed under ${prefix}.
25551 You may need to run \"make install\" with sudo. The application will fail
25552 to run if these resources are not installed."
25553 fi
25554 echo
25555 fi
25556
25557 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25558 echo "D-Bus integration has been tested for GNU/Linux only."
25559 echo
25560 fi
25561
25562
25563 # Remove any trailing slashes in these variables.
25564 test "${prefix}" != NONE &&
25565 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25566 test "${exec_prefix}" != NONE &&
25567 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25568
25569 # Now get this: Some word that is part of the ${srcdir} directory name
25570 # or the ${configuration} value might, just might, happen to be an
25571 # identifier like `sun4' or `i386' or something, and be predefined by
25572 # the C preprocessor to some helpful value like 1, or maybe the empty
25573 # string. Needless to say consequent macro substitutions are less
25574 # than conducive to the makefile finding the correct directory.
25575 cpp_undefs="`echo $srcdir $configuration $canonical |
25576 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25577 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25578
25579 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25580 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25581 ## from Makefile.c can correctly provide the arg `-traditional' to the
25582 ## C preprocessor.
25583
25584 cat >conftest.$ac_ext <<_ACEOF
25585 /* confdefs.h. */
25586 _ACEOF
25587 cat confdefs.h >>conftest.$ac_ext
25588 cat >>conftest.$ac_ext <<_ACEOF
25589 /* end confdefs.h. */
25590 yes..yes
25591 _ACEOF
25592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25593 $EGREP "yes..yes" >/dev/null 2>&1; then
25594 CPP_NEED_TRADITIONAL=no
25595 else
25596 CPP_NEED_TRADITIONAL=yes
25597 fi
25598 rm -f conftest*
25599
25600
25601 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in 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"
25602
25603 ac_config_commands="$ac_config_commands default"
25604
25605 cat >confcache <<\_ACEOF
25606 # This file is a shell script that caches the results of configure
25607 # tests run on this system so they can be shared between configure
25608 # scripts and configure runs, see configure's option --config-cache.
25609 # It is not useful on other systems. If it contains results you don't
25610 # want to keep, you may remove or edit it.
25611 #
25612 # config.status only pays attention to the cache file if you give it
25613 # the --recheck option to rerun configure.
25614 #
25615 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25616 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25617 # following values.
25618
25619 _ACEOF
25620
25621 # The following way of writing the cache mishandles newlines in values,
25622 # but we know of no workaround that is simple, portable, and efficient.
25623 # So, we kill variables containing newlines.
25624 # Ultrix sh set writes to stderr and can't be redirected directly,
25625 # and sets the high bit in the cache file unless we assign to the vars.
25626 (
25627 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25628 eval ac_val=\$$ac_var
25629 case $ac_val in #(
25630 *${as_nl}*)
25631 case $ac_var in #(
25632 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25633 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25634 esac
25635 case $ac_var in #(
25636 _ | IFS | as_nl) ;; #(
25637 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25638 *) $as_unset $ac_var ;;
25639 esac ;;
25640 esac
25641 done
25642
25643 (set) 2>&1 |
25644 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25645 *${as_nl}ac_space=\ *)
25646 # `set' does not quote correctly, so add quotes (double-quote
25647 # substitution turns \\\\ into \\, and sed turns \\ into \).
25648 sed -n \
25649 "s/'/'\\\\''/g;
25650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25651 ;; #(
25652 *)
25653 # `set' quotes correctly as required by POSIX, so do not add quotes.
25654 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25655 ;;
25656 esac |
25657 sort
25658 ) |
25659 sed '
25660 /^ac_cv_env_/b end
25661 t clear
25662 :clear
25663 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25664 t end
25665 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25666 :end' >>confcache
25667 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25668 if test -w "$cache_file"; then
25669 test "x$cache_file" != "x/dev/null" &&
25670 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25671 $as_echo "$as_me: updating cache $cache_file" >&6;}
25672 cat confcache >$cache_file
25673 else
25674 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25675 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25676 fi
25677 fi
25678 rm -f confcache
25679
25680 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25681 # Let make expand exec_prefix.
25682 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25683
25684 DEFS=-DHAVE_CONFIG_H
25685
25686 ac_libobjs=
25687 ac_ltlibobjs=
25688 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25689 # 1. Remove the extension, and $U if already installed.
25690 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25691 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25692 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25693 # will be set to the directory where LIBOBJS objects are built.
25694 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25695 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25696 done
25697 LIBOBJS=$ac_libobjs
25698
25699 LTLIBOBJS=$ac_ltlibobjs
25700
25701
25702
25703 : ${CONFIG_STATUS=./config.status}
25704 ac_write_fail=0
25705 ac_clean_files_save=$ac_clean_files
25706 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25707 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25708 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25709 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25710 #! $SHELL
25711 # Generated by $as_me.
25712 # Run this file to recreate the current configuration.
25713 # Compiler output produced by configure, useful for debugging
25714 # configure, is in config.log if it exists.
25715
25716 debug=false
25717 ac_cs_recheck=false
25718 ac_cs_silent=false
25719 SHELL=\${CONFIG_SHELL-$SHELL}
25720 _ACEOF
25721
25722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25723 ## --------------------- ##
25724 ## M4sh Initialization. ##
25725 ## --------------------- ##
25726
25727 # Be more Bourne compatible
25728 DUALCASE=1; export DUALCASE # for MKS sh
25729 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25730 emulate sh
25731 NULLCMD=:
25732 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25733 # is contrary to our usage. Disable this feature.
25734 alias -g '${1+"$@"}'='"$@"'
25735 setopt NO_GLOB_SUBST
25736 else
25737 case `(set -o) 2>/dev/null` in
25738 *posix*) set -o posix ;;
25739 esac
25740
25741 fi
25742
25743
25744
25745
25746 # PATH needs CR
25747 # Avoid depending upon Character Ranges.
25748 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25749 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25750 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25751 as_cr_digits='0123456789'
25752 as_cr_alnum=$as_cr_Letters$as_cr_digits
25753
25754 as_nl='
25755 '
25756 export as_nl
25757 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25758 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25759 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25760 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25761 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25762 as_echo='printf %s\n'
25763 as_echo_n='printf %s'
25764 else
25765 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25766 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25767 as_echo_n='/usr/ucb/echo -n'
25768 else
25769 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25770 as_echo_n_body='eval
25771 arg=$1;
25772 case $arg in
25773 *"$as_nl"*)
25774 expr "X$arg" : "X\\(.*\\)$as_nl";
25775 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25776 esac;
25777 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25778 '
25779 export as_echo_n_body
25780 as_echo_n='sh -c $as_echo_n_body as_echo'
25781 fi
25782 export as_echo_body
25783 as_echo='sh -c $as_echo_body as_echo'
25784 fi
25785
25786 # The user is always right.
25787 if test "${PATH_SEPARATOR+set}" != set; then
25788 PATH_SEPARATOR=:
25789 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25790 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25791 PATH_SEPARATOR=';'
25792 }
25793 fi
25794
25795 # Support unset when possible.
25796 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25797 as_unset=unset
25798 else
25799 as_unset=false
25800 fi
25801
25802
25803 # IFS
25804 # We need space, tab and new line, in precisely that order. Quoting is
25805 # there to prevent editors from complaining about space-tab.
25806 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25807 # splitting by setting IFS to empty value.)
25808 IFS=" "" $as_nl"
25809
25810 # Find who we are. Look in the path if we contain no directory separator.
25811 case $0 in
25812 *[\\/]* ) as_myself=$0 ;;
25813 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25814 for as_dir in $PATH
25815 do
25816 IFS=$as_save_IFS
25817 test -z "$as_dir" && as_dir=.
25818 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25819 done
25820 IFS=$as_save_IFS
25821
25822 ;;
25823 esac
25824 # We did not find ourselves, most probably we were run as `sh COMMAND'
25825 # in which case we are not to be found in the path.
25826 if test "x$as_myself" = x; then
25827 as_myself=$0
25828 fi
25829 if test ! -f "$as_myself"; then
25830 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25831 { (exit 1); exit 1; }
25832 fi
25833
25834 # Work around bugs in pre-3.0 UWIN ksh.
25835 for as_var in ENV MAIL MAILPATH
25836 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25837 done
25838 PS1='$ '
25839 PS2='> '
25840 PS4='+ '
25841
25842 # NLS nuisances.
25843 LC_ALL=C
25844 export LC_ALL
25845 LANGUAGE=C
25846 export LANGUAGE
25847
25848 # Required to use basename.
25849 if expr a : '\(a\)' >/dev/null 2>&1 &&
25850 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25851 as_expr=expr
25852 else
25853 as_expr=false
25854 fi
25855
25856 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25857 as_basename=basename
25858 else
25859 as_basename=false
25860 fi
25861
25862
25863 # Name of the executable.
25864 as_me=`$as_basename -- "$0" ||
25865 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25866 X"$0" : 'X\(//\)$' \| \
25867 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25868 $as_echo X/"$0" |
25869 sed '/^.*\/\([^/][^/]*\)\/*$/{
25870 s//\1/
25871 q
25872 }
25873 /^X\/\(\/\/\)$/{
25874 s//\1/
25875 q
25876 }
25877 /^X\/\(\/\).*/{
25878 s//\1/
25879 q
25880 }
25881 s/.*/./; q'`
25882
25883 # CDPATH.
25884 $as_unset CDPATH
25885
25886
25887
25888 as_lineno_1=$LINENO
25889 as_lineno_2=$LINENO
25890 test "x$as_lineno_1" != "x$as_lineno_2" &&
25891 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25892
25893 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25894 # uniformly replaced by the line number. The first 'sed' inserts a
25895 # line-number line after each line using $LINENO; the second 'sed'
25896 # does the real work. The second script uses 'N' to pair each
25897 # line-number line with the line containing $LINENO, and appends
25898 # trailing '-' during substitution so that $LINENO is not a special
25899 # case at line end.
25900 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25901 # scripts with optimization help from Paolo Bonzini. Blame Lee
25902 # E. McMahon (1931-1989) for sed's syntax. :-)
25903 sed -n '
25904 p
25905 /[$]LINENO/=
25906 ' <$as_myself |
25907 sed '
25908 s/[$]LINENO.*/&-/
25909 t lineno
25910 b
25911 :lineno
25912 N
25913 :loop
25914 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25915 t loop
25916 s/-\n.*//
25917 ' >$as_me.lineno &&
25918 chmod +x "$as_me.lineno" ||
25919 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25920 { (exit 1); exit 1; }; }
25921
25922 # Don't try to exec as it changes $[0], causing all sort of problems
25923 # (the dirname of $[0] is not the place where we might find the
25924 # original and so on. Autoconf is especially sensitive to this).
25925 . "./$as_me.lineno"
25926 # Exit status is that of the last command.
25927 exit
25928 }
25929
25930
25931 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25932 as_dirname=dirname
25933 else
25934 as_dirname=false
25935 fi
25936
25937 ECHO_C= ECHO_N= ECHO_T=
25938 case `echo -n x` in
25939 -n*)
25940 case `echo 'x\c'` in
25941 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25942 *) ECHO_C='\c';;
25943 esac;;
25944 *)
25945 ECHO_N='-n';;
25946 esac
25947 if expr a : '\(a\)' >/dev/null 2>&1 &&
25948 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25949 as_expr=expr
25950 else
25951 as_expr=false
25952 fi
25953
25954 rm -f conf$$ conf$$.exe conf$$.file
25955 if test -d conf$$.dir; then
25956 rm -f conf$$.dir/conf$$.file
25957 else
25958 rm -f conf$$.dir
25959 mkdir conf$$.dir 2>/dev/null
25960 fi
25961 if (echo >conf$$.file) 2>/dev/null; then
25962 if ln -s conf$$.file conf$$ 2>/dev/null; then
25963 as_ln_s='ln -s'
25964 # ... but there are two gotchas:
25965 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25966 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25967 # In both cases, we have to default to `cp -p'.
25968 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25969 as_ln_s='cp -p'
25970 elif ln conf$$.file conf$$ 2>/dev/null; then
25971 as_ln_s=ln
25972 else
25973 as_ln_s='cp -p'
25974 fi
25975 else
25976 as_ln_s='cp -p'
25977 fi
25978 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25979 rmdir conf$$.dir 2>/dev/null
25980
25981 if mkdir -p . 2>/dev/null; then
25982 as_mkdir_p=:
25983 else
25984 test -d ./-p && rmdir ./-p
25985 as_mkdir_p=false
25986 fi
25987
25988 if test -x / >/dev/null 2>&1; then
25989 as_test_x='test -x'
25990 else
25991 if ls -dL / >/dev/null 2>&1; then
25992 as_ls_L_option=L
25993 else
25994 as_ls_L_option=
25995 fi
25996 as_test_x='
25997 eval sh -c '\''
25998 if test -d "$1"; then
25999 test -d "$1/.";
26000 else
26001 case $1 in
26002 -*)set "./$1";;
26003 esac;
26004 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26005 ???[sx]*):;;*)false;;esac;fi
26006 '\'' sh
26007 '
26008 fi
26009 as_executable_p=$as_test_x
26010
26011 # Sed expression to map a string onto a valid CPP name.
26012 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26013
26014 # Sed expression to map a string onto a valid variable name.
26015 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26016
26017
26018 exec 6>&1
26019
26020 # Save the log message, to keep $[0] and so on meaningful, and to
26021 # report actual input values of CONFIG_FILES etc. instead of their
26022 # values after options handling.
26023 ac_log="
26024 This file was extended by emacs $as_me 23.1.50, which was
26025 generated by GNU Autoconf 2.62. Invocation command line was
26026
26027 CONFIG_FILES = $CONFIG_FILES
26028 CONFIG_HEADERS = $CONFIG_HEADERS
26029 CONFIG_LINKS = $CONFIG_LINKS
26030 CONFIG_COMMANDS = $CONFIG_COMMANDS
26031 $ $0 $@
26032
26033 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26034 "
26035
26036 _ACEOF
26037
26038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26039 # Files that config.status was made for.
26040 config_files="$ac_config_files"
26041 config_headers="$ac_config_headers"
26042 config_commands="$ac_config_commands"
26043
26044 _ACEOF
26045
26046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26047 ac_cs_usage="\
26048 \`$as_me' instantiates files from templates according to the
26049 current configuration.
26050
26051 Usage: $0 [OPTIONS] [FILE]...
26052
26053 -h, --help print this help, then exit
26054 -V, --version print version number and configuration settings, then exit
26055 -q, --quiet do not print progress messages
26056 -d, --debug don't remove temporary files
26057 --recheck update $as_me by reconfiguring in the same conditions
26058 --file=FILE[:TEMPLATE]
26059 instantiate the configuration file FILE
26060 --header=FILE[:TEMPLATE]
26061 instantiate the configuration header FILE
26062
26063 Configuration files:
26064 $config_files
26065
26066 Configuration headers:
26067 $config_headers
26068
26069 Configuration commands:
26070 $config_commands
26071
26072 Report bugs to <bug-autoconf@gnu.org>."
26073
26074 _ACEOF
26075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26076 ac_cs_version="\\
26077 emacs config.status 23.1.50
26078 configured by $0, generated by GNU Autoconf 2.62,
26079 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26080
26081 Copyright (C) 2008 Free Software Foundation, Inc.
26082 This config.status script is free software; the Free Software Foundation
26083 gives unlimited permission to copy, distribute and modify it."
26084
26085 ac_pwd='$ac_pwd'
26086 srcdir='$srcdir'
26087 INSTALL='$INSTALL'
26088 test -n "\$AWK" || AWK=awk
26089 _ACEOF
26090
26091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26092 # The default lists apply if the user does not specify any file.
26093 ac_need_defaults=:
26094 while test $# != 0
26095 do
26096 case $1 in
26097 --*=*)
26098 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26099 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26100 ac_shift=:
26101 ;;
26102 *)
26103 ac_option=$1
26104 ac_optarg=$2
26105 ac_shift=shift
26106 ;;
26107 esac
26108
26109 case $ac_option in
26110 # Handling of the options.
26111 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26112 ac_cs_recheck=: ;;
26113 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26114 $as_echo "$ac_cs_version"; exit ;;
26115 --debug | --debu | --deb | --de | --d | -d )
26116 debug=: ;;
26117 --file | --fil | --fi | --f )
26118 $ac_shift
26119 case $ac_optarg in
26120 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26121 esac
26122 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26123 ac_need_defaults=false;;
26124 --header | --heade | --head | --hea )
26125 $ac_shift
26126 case $ac_optarg in
26127 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26128 esac
26129 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26130 ac_need_defaults=false;;
26131 --he | --h)
26132 # Conflict between --help and --header
26133 { $as_echo "$as_me: error: ambiguous option: $1
26134 Try \`$0 --help' for more information." >&2
26135 { (exit 1); exit 1; }; };;
26136 --help | --hel | -h )
26137 $as_echo "$ac_cs_usage"; exit ;;
26138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26139 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26140 ac_cs_silent=: ;;
26141
26142 # This is an error.
26143 -*) { $as_echo "$as_me: error: unrecognized option: $1
26144 Try \`$0 --help' for more information." >&2
26145 { (exit 1); exit 1; }; } ;;
26146
26147 *) ac_config_targets="$ac_config_targets $1"
26148 ac_need_defaults=false ;;
26149
26150 esac
26151 shift
26152 done
26153
26154 ac_configure_extra_args=
26155
26156 if $ac_cs_silent; then
26157 exec 6>/dev/null
26158 ac_configure_extra_args="$ac_configure_extra_args --silent"
26159 fi
26160
26161 _ACEOF
26162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26163 if \$ac_cs_recheck; then
26164 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26165 shift
26166 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26167 CONFIG_SHELL='$SHELL'
26168 export CONFIG_SHELL
26169 exec "\$@"
26170 fi
26171
26172 _ACEOF
26173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26174 exec 5>>config.log
26175 {
26176 echo
26177 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26178 ## Running $as_me. ##
26179 _ASBOX
26180 $as_echo "$ac_log"
26181 } >&5
26182
26183 _ACEOF
26184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26185 #
26186 # INIT-COMMANDS
26187 #
26188 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26189
26190 _ACEOF
26191
26192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26193
26194 # Handling of arguments.
26195 for ac_config_target in $ac_config_targets
26196 do
26197 case $ac_config_target in
26198 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26199 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26200 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26201 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26202 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26203 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26204 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26205 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26206 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26207 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26208 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26209 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26210 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26211
26212 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26213 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26214 { (exit 1); exit 1; }; };;
26215 esac
26216 done
26217
26218
26219 # If the user did not use the arguments to specify the items to instantiate,
26220 # then the envvar interface is used. Set only those that are not.
26221 # We use the long form for the default assignment because of an extremely
26222 # bizarre bug on SunOS 4.1.3.
26223 if $ac_need_defaults; then
26224 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26225 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26226 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26227 fi
26228
26229 # Have a temporary directory for convenience. Make it in the build tree
26230 # simply because there is no reason against having it here, and in addition,
26231 # creating and moving files from /tmp can sometimes cause problems.
26232 # Hook for its removal unless debugging.
26233 # Note that there is a small window in which the directory will not be cleaned:
26234 # after its creation but before its name has been assigned to `$tmp'.
26235 $debug ||
26236 {
26237 tmp=
26238 trap 'exit_status=$?
26239 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26240 ' 0
26241 trap '{ (exit 1); exit 1; }' 1 2 13 15
26242 }
26243 # Create a (secure) tmp directory for tmp files.
26244
26245 {
26246 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26247 test -n "$tmp" && test -d "$tmp"
26248 } ||
26249 {
26250 tmp=./conf$$-$RANDOM
26251 (umask 077 && mkdir "$tmp")
26252 } ||
26253 {
26254 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26255 { (exit 1); exit 1; }
26256 }
26257
26258 # Set up the scripts for CONFIG_FILES section.
26259 # No need to generate them if there are no CONFIG_FILES.
26260 # This happens for instance with `./config.status config.h'.
26261 if test -n "$CONFIG_FILES"; then
26262
26263
26264 ac_cr=' '
26265 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26266 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26267 ac_cs_awk_cr='\\r'
26268 else
26269 ac_cs_awk_cr=$ac_cr
26270 fi
26271
26272 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26273 _ACEOF
26274
26275
26276 {
26277 echo "cat >conf$$subs.awk <<_ACEOF" &&
26278 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26279 echo "_ACEOF"
26280 } >conf$$subs.sh ||
26281 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26282 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26283 { (exit 1); exit 1; }; }
26284 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26285 ac_delim='%!_!# '
26286 for ac_last_try in false false false false false :; do
26287 . ./conf$$subs.sh ||
26288 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26289 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26290 { (exit 1); exit 1; }; }
26291
26292 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26293 break
26294 elif $ac_last_try; then
26295 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26296 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26297 { (exit 1); exit 1; }; }
26298 else
26299 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26300 fi
26301 done
26302 rm -f conf$$subs.sh
26303
26304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26305 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26306 _ACEOF
26307 sed -n '
26308 h
26309 s/^/S["/; s/!.*/"]=/
26310 p
26311 g
26312 s/^[^!]*!//
26313 :repl
26314 t repl
26315 s/'"$ac_delim"'$//
26316 t delim
26317 :nl
26318 h
26319 s/\(.\{148\}\).*/\1/
26320 t more1
26321 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26322 p
26323 n
26324 b repl
26325 :more1
26326 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26327 p
26328 g
26329 s/.\{148\}//
26330 t nl
26331 :delim
26332 h
26333 s/\(.\{148\}\).*/\1/
26334 t more2
26335 s/["\\]/\\&/g; s/^/"/; s/$/"/
26336 p
26337 b
26338 :more2
26339 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26340 p
26341 g
26342 s/.\{148\}//
26343 t delim
26344 ' <conf$$subs.awk | sed '
26345 /^[^""]/{
26346 N
26347 s/\n//
26348 }
26349 ' >>$CONFIG_STATUS || ac_write_fail=1
26350 rm -f conf$$subs.awk
26351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26352 _ACAWK
26353 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26354 for (key in S) S_is_set[key] = 1
26355 FS = "\a"
26356
26357 }
26358 {
26359 line = $ 0
26360 nfields = split(line, field, "@")
26361 substed = 0
26362 len = length(field[1])
26363 for (i = 2; i < nfields; i++) {
26364 key = field[i]
26365 keylen = length(key)
26366 if (S_is_set[key]) {
26367 value = S[key]
26368 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26369 len += length(value) + length(field[++i])
26370 substed = 1
26371 } else
26372 len += 1 + keylen
26373 }
26374
26375 print line
26376 }
26377
26378 _ACAWK
26379 _ACEOF
26380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26381 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26382 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26383 else
26384 cat
26385 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26386 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26387 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26388 { (exit 1); exit 1; }; }
26389 _ACEOF
26390
26391 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26392 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26393 # trailing colons and then remove the whole line if VPATH becomes empty
26394 # (actually we leave an empty line to preserve line numbers).
26395 if test "x$srcdir" = x.; then
26396 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26397 s/:*\$(srcdir):*/:/
26398 s/:*\${srcdir}:*/:/
26399 s/:*@srcdir@:*/:/
26400 s/^\([^=]*=[ ]*\):*/\1/
26401 s/:*$//
26402 s/^[^=]*=[ ]*$//
26403 }'
26404 fi
26405
26406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26407 fi # test -n "$CONFIG_FILES"
26408
26409 # Set up the scripts for CONFIG_HEADERS section.
26410 # No need to generate them if there are no CONFIG_HEADERS.
26411 # This happens for instance with `./config.status Makefile'.
26412 if test -n "$CONFIG_HEADERS"; then
26413 cat >"$tmp/defines.awk" <<\_ACAWK ||
26414 BEGIN {
26415 _ACEOF
26416
26417 # Transform confdefs.h into an awk script `defines.awk', embedded as
26418 # here-document in config.status, that substitutes the proper values into
26419 # config.h.in to produce config.h.
26420
26421 # Create a delimiter string that does not exist in confdefs.h, to ease
26422 # handling of long lines.
26423 ac_delim='%!_!# '
26424 for ac_last_try in false false :; do
26425 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26426 if test -z "$ac_t"; then
26427 break
26428 elif $ac_last_try; then
26429 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26430 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26431 { (exit 1); exit 1; }; }
26432 else
26433 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26434 fi
26435 done
26436
26437 # For the awk script, D is an array of macro values keyed by name,
26438 # likewise P contains macro parameters if any. Preserve backslash
26439 # newline sequences.
26440
26441 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26442 sed -n '
26443 s/.\{148\}/&'"$ac_delim"'/g
26444 t rset
26445 :rset
26446 s/^[ ]*#[ ]*define[ ][ ]*/ /
26447 t def
26448 d
26449 :def
26450 s/\\$//
26451 t bsnl
26452 s/["\\]/\\&/g
26453 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26454 D["\1"]=" \3"/p
26455 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26456 d
26457 :bsnl
26458 s/["\\]/\\&/g
26459 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26460 D["\1"]=" \3\\\\\\n"\\/p
26461 t cont
26462 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26463 t cont
26464 d
26465 :cont
26466 n
26467 s/.\{148\}/&'"$ac_delim"'/g
26468 t clear
26469 :clear
26470 s/\\$//
26471 t bsnlc
26472 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26473 d
26474 :bsnlc
26475 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26476 b cont
26477 ' <confdefs.h | sed '
26478 s/'"$ac_delim"'/"\\\
26479 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26480
26481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26482 for (key in D) D_is_set[key] = 1
26483 FS = "\a"
26484 }
26485 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26486 line = \$ 0
26487 split(line, arg, " ")
26488 if (arg[1] == "#") {
26489 defundef = arg[2]
26490 mac1 = arg[3]
26491 } else {
26492 defundef = substr(arg[1], 2)
26493 mac1 = arg[2]
26494 }
26495 split(mac1, mac2, "(") #)
26496 macro = mac2[1]
26497 if (D_is_set[macro]) {
26498 # Preserve the white space surrounding the "#".
26499 prefix = substr(line, 1, index(line, defundef) - 1)
26500 print prefix "define", macro P[macro] D[macro]
26501 next
26502 } else {
26503 # Replace #undef with comments. This is necessary, for example,
26504 # in the case of _POSIX_SOURCE, which is predefined and required
26505 # on some systems where configure will not decide to define it.
26506 if (defundef == "undef") {
26507 print "/*", line, "*/"
26508 next
26509 }
26510 }
26511 }
26512 { print }
26513 _ACAWK
26514 _ACEOF
26515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26516 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26517 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26518 { (exit 1); exit 1; }; }
26519 fi # test -n "$CONFIG_HEADERS"
26520
26521
26522 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26523 shift
26524 for ac_tag
26525 do
26526 case $ac_tag in
26527 :[FHLC]) ac_mode=$ac_tag; continue;;
26528 esac
26529 case $ac_mode$ac_tag in
26530 :[FHL]*:*);;
26531 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26532 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26533 { (exit 1); exit 1; }; };;
26534 :[FH]-) ac_tag=-:-;;
26535 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26536 esac
26537 ac_save_IFS=$IFS
26538 IFS=:
26539 set x $ac_tag
26540 IFS=$ac_save_IFS
26541 shift
26542 ac_file=$1
26543 shift
26544
26545 case $ac_mode in
26546 :L) ac_source=$1;;
26547 :[FH])
26548 ac_file_inputs=
26549 for ac_f
26550 do
26551 case $ac_f in
26552 -) ac_f="$tmp/stdin";;
26553 *) # Look for the file first in the build tree, then in the source tree
26554 # (if the path is not absolute). The absolute path cannot be DOS-style,
26555 # because $ac_f cannot contain `:'.
26556 test -f "$ac_f" ||
26557 case $ac_f in
26558 [\\/$]*) false;;
26559 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26560 esac ||
26561 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26562 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26563 { (exit 1); exit 1; }; };;
26564 esac
26565 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26566 ac_file_inputs="$ac_file_inputs '$ac_f'"
26567 done
26568
26569 # Let's still pretend it is `configure' which instantiates (i.e., don't
26570 # use $as_me), people would be surprised to read:
26571 # /* config.h. Generated by config.status. */
26572 configure_input='Generated from '`
26573 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26574 `' by configure.'
26575 if test x"$ac_file" != x-; then
26576 configure_input="$ac_file. $configure_input"
26577 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26578 $as_echo "$as_me: creating $ac_file" >&6;}
26579 fi
26580 # Neutralize special characters interpreted by sed in replacement strings.
26581 case $configure_input in #(
26582 *\&* | *\|* | *\\* )
26583 ac_sed_conf_input=`$as_echo "$configure_input" |
26584 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26585 *) ac_sed_conf_input=$configure_input;;
26586 esac
26587
26588 case $ac_tag in
26589 *:-:* | *:-) cat >"$tmp/stdin" \
26590 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26591 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26592 { (exit 1); exit 1; }; } ;;
26593 esac
26594 ;;
26595 esac
26596
26597 ac_dir=`$as_dirname -- "$ac_file" ||
26598 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26599 X"$ac_file" : 'X\(//\)[^/]' \| \
26600 X"$ac_file" : 'X\(//\)$' \| \
26601 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26602 $as_echo X"$ac_file" |
26603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26604 s//\1/
26605 q
26606 }
26607 /^X\(\/\/\)[^/].*/{
26608 s//\1/
26609 q
26610 }
26611 /^X\(\/\/\)$/{
26612 s//\1/
26613 q
26614 }
26615 /^X\(\/\).*/{
26616 s//\1/
26617 q
26618 }
26619 s/.*/./; q'`
26620 { as_dir="$ac_dir"
26621 case $as_dir in #(
26622 -*) as_dir=./$as_dir;;
26623 esac
26624 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26625 as_dirs=
26626 while :; do
26627 case $as_dir in #(
26628 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26629 *) as_qdir=$as_dir;;
26630 esac
26631 as_dirs="'$as_qdir' $as_dirs"
26632 as_dir=`$as_dirname -- "$as_dir" ||
26633 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26634 X"$as_dir" : 'X\(//\)[^/]' \| \
26635 X"$as_dir" : 'X\(//\)$' \| \
26636 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26637 $as_echo X"$as_dir" |
26638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26639 s//\1/
26640 q
26641 }
26642 /^X\(\/\/\)[^/].*/{
26643 s//\1/
26644 q
26645 }
26646 /^X\(\/\/\)$/{
26647 s//\1/
26648 q
26649 }
26650 /^X\(\/\).*/{
26651 s//\1/
26652 q
26653 }
26654 s/.*/./; q'`
26655 test -d "$as_dir" && break
26656 done
26657 test -z "$as_dirs" || eval "mkdir $as_dirs"
26658 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26659 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26660 { (exit 1); exit 1; }; }; }
26661 ac_builddir=.
26662
26663 case "$ac_dir" in
26664 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26665 *)
26666 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26667 # A ".." for each directory in $ac_dir_suffix.
26668 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26669 case $ac_top_builddir_sub in
26670 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26671 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26672 esac ;;
26673 esac
26674 ac_abs_top_builddir=$ac_pwd
26675 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26676 # for backward compatibility:
26677 ac_top_builddir=$ac_top_build_prefix
26678
26679 case $srcdir in
26680 .) # We are building in place.
26681 ac_srcdir=.
26682 ac_top_srcdir=$ac_top_builddir_sub
26683 ac_abs_top_srcdir=$ac_pwd ;;
26684 [\\/]* | ?:[\\/]* ) # Absolute name.
26685 ac_srcdir=$srcdir$ac_dir_suffix;
26686 ac_top_srcdir=$srcdir
26687 ac_abs_top_srcdir=$srcdir ;;
26688 *) # Relative name.
26689 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26690 ac_top_srcdir=$ac_top_build_prefix$srcdir
26691 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26692 esac
26693 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26694
26695
26696 case $ac_mode in
26697 :F)
26698 #
26699 # CONFIG_FILE
26700 #
26701
26702 case $INSTALL in
26703 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26704 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26705 esac
26706 _ACEOF
26707
26708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26709 # If the template does not know about datarootdir, expand it.
26710 # FIXME: This hack should be removed a few years after 2.60.
26711 ac_datarootdir_hack=; ac_datarootdir_seen=
26712
26713 ac_sed_dataroot='
26714 /datarootdir/ {
26715 p
26716 q
26717 }
26718 /@datadir@/p
26719 /@docdir@/p
26720 /@infodir@/p
26721 /@localedir@/p
26722 /@mandir@/p
26723 '
26724 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26725 *datarootdir*) ac_datarootdir_seen=yes;;
26726 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26727 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26728 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26729 _ACEOF
26730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26731 ac_datarootdir_hack='
26732 s&@datadir@&$datadir&g
26733 s&@docdir@&$docdir&g
26734 s&@infodir@&$infodir&g
26735 s&@localedir@&$localedir&g
26736 s&@mandir@&$mandir&g
26737 s&\\\${datarootdir}&$datarootdir&g' ;;
26738 esac
26739 _ACEOF
26740
26741 # Neutralize VPATH when `$srcdir' = `.'.
26742 # Shell code in configure.ac might set extrasub.
26743 # FIXME: do we really want to maintain this feature?
26744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26745 ac_sed_extra="$ac_vpsub
26746 $extrasub
26747 _ACEOF
26748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26749 :t
26750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26751 s|@configure_input@|$ac_sed_conf_input|;t t
26752 s&@top_builddir@&$ac_top_builddir_sub&;t t
26753 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26754 s&@srcdir@&$ac_srcdir&;t t
26755 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26756 s&@top_srcdir@&$ac_top_srcdir&;t t
26757 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26758 s&@builddir@&$ac_builddir&;t t
26759 s&@abs_builddir@&$ac_abs_builddir&;t t
26760 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26761 s&@INSTALL@&$ac_INSTALL&;t t
26762 $ac_datarootdir_hack
26763 "
26764 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26765 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26766 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26767 { (exit 1); exit 1; }; }
26768
26769 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26770 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26771 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26772 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26773 which seems to be undefined. Please make sure it is defined." >&5
26774 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26775 which seems to be undefined. Please make sure it is defined." >&2;}
26776
26777 rm -f "$tmp/stdin"
26778 case $ac_file in
26779 -) cat "$tmp/out" && rm -f "$tmp/out";;
26780 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26781 esac \
26782 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26783 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26784 { (exit 1); exit 1; }; }
26785 ;;
26786 :H)
26787 #
26788 # CONFIG_HEADER
26789 #
26790 if test x"$ac_file" != x-; then
26791 {
26792 $as_echo "/* $configure_input */" \
26793 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26794 } >"$tmp/config.h" \
26795 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26796 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26797 { (exit 1); exit 1; }; }
26798 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26799 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26800 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26801 else
26802 rm -f "$ac_file"
26803 mv "$tmp/config.h" "$ac_file" \
26804 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26805 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26806 { (exit 1); exit 1; }; }
26807 fi
26808 else
26809 $as_echo "/* $configure_input */" \
26810 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26811 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26812 $as_echo "$as_me: error: could not create -" >&2;}
26813 { (exit 1); exit 1; }; }
26814 fi
26815 ;;
26816
26817 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26818 $as_echo "$as_me: executing $ac_file commands" >&6;}
26819 ;;
26820 esac
26821
26822
26823 case $ac_file$ac_mode in
26824 "default":C)
26825
26826 ### Make the necessary directories, if they don't exist.
26827 for dir in etc lisp ; do
26828 test -d ${dir} || mkdir ${dir}
26829 done
26830
26831 # Build src/Makefile from ${srcdir}/src/Makefile.c
26832 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
26833 # This must be done after src/config.h is built, since we rely on that file.
26834
26835 echo creating src/epaths.h
26836 ${MAKE-make} epaths-force
26837
26838 # As of 2000-11-19, newest development versions of GNU cpp preprocess
26839 # `..' to `. .' unless invoked with -traditional
26840
26841 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
26842 CPPFLAGS="$CPPFLAGS -traditional"
26843 fi
26844
26845 echo creating lib-src/Makefile
26846 ( cd lib-src
26847 rm -f junk.c junk1.c junk2.c
26848 sed -e '/start of cpp stuff/q' \
26849 < Makefile.c > junk1.c
26850 sed -e '1,/start of cpp stuff/d'\
26851 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26852 < Makefile.c > junk.c
26853 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
26854 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26855 cat junk1.c junk2.c > Makefile.new
26856 rm -f junk.c junk1.c junk2.c
26857 chmod 444 Makefile.new
26858 mv -f Makefile.new Makefile
26859 )
26860
26861 echo creating src/Makefile
26862 ( cd src
26863 rm -f junk.c junk1.c junk2.c
26864 sed -e '/start of cpp stuff/q' \
26865 < Makefile.c > junk1.c
26866 sed -e '1,/start of cpp stuff/d'\
26867 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26868 < Makefile.c > junk.c
26869 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
26870 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26871 cat junk1.c junk2.c > Makefile.new
26872 rm -f junk.c junk1.c junk2.c
26873 chmod 444 Makefile.new
26874 mv -f Makefile.new Makefile
26875 )
26876
26877 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
26878 echo creating src/.gdbinit
26879 echo source $srcdir/src/.gdbinit > src/.gdbinit
26880 fi
26881
26882 ;;
26883
26884 esac
26885 done # for ac_tag
26886
26887
26888 { (exit 0); exit 0; }
26889 _ACEOF
26890 chmod +x $CONFIG_STATUS
26891 ac_clean_files=$ac_clean_files_save
26892
26893 test $ac_write_fail = 0 ||
26894 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26895 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26896 { (exit 1); exit 1; }; }
26897
26898
26899 # configure is writing to config.log, and then calls config.status.
26900 # config.status does its own redirection, appending to config.log.
26901 # Unfortunately, on DOS this fails, as config.log is still kept open
26902 # by configure, so config.status won't be able to write to it; its
26903 # output is simply discarded. So we exec the FD to /dev/null,
26904 # effectively closing config.log, so it can be properly (re)opened and
26905 # appended to by config.status. When coming back to configure, we
26906 # need to make the FD available again.
26907 if test "$no_create" != yes; then
26908 ac_cs_success=:
26909 ac_config_status_args=
26910 test "$silent" = yes &&
26911 ac_config_status_args="$ac_config_status_args --quiet"
26912 exec 5>/dev/null
26913 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26914 exec 5>>config.log
26915 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26916 # would make configure fail if this is the last instruction.
26917 $ac_cs_success || { (exit 1); exit 1; }
26918 fi
26919 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26920 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
26921 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
26922 fi
26923
26924