(Fxw_color_values): Return 3-element list. Doc fix.
[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 LTLIBOBJS'
768 ac_subst_files=''
769 ac_user_opts='
770 enable_option_checking
771 with_pop
772 with_kerberos
773 with_kerberos5
774 with_hesiod
775 with_sound
776 with_sync_input
777 with_x_toolkit
778 with_xpm
779 with_jpeg
780 with_tiff
781 with_gif
782 with_png
783 with_rsvg
784 with_xft
785 with_libotf
786 with_m17n_flt
787 with_toolkit_scroll_bars
788 with_xaw3d
789 with_xim
790 with_ns
791 with_gpm
792 with_dbus
793 with_makeinfo
794 with_gtk
795 with_gcc
796 with_pkg_config_prog
797 with_gnustep_conf
798 enable_ns_self_contained
799 enable_asserts
800 enable_maintainer_mode
801 enable_locallisppath
802 enable_checking
803 enable_profiling
804 enable_largefile
805 with_x
806 '
807 ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 CC
811 CFLAGS
812 LDFLAGS
813 LIBS
814 CPPFLAGS
815 CPP
816 XMKMF'
817
818
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 ac_unrecognized_opts=
823 ac_unrecognized_sep=
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
840
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
866
867 ac_prev=
868 ac_dashdash=
869 for ac_option
870 do
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
874 ac_prev=
875 continue
876 fi
877
878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
893
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
908
909 -datadir | --datadir | --datadi | --datad)
910 ac_prev=datadir ;;
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
913
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
921 -disable-* | --disable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
926 { (exit 1); exit 1; }; }
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=no ;;
937
938 -docdir | --docdir | --docdi | --doc | --do)
939 ac_prev=docdir ;;
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 docdir=$ac_optarg ;;
942
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 ac_prev=dvidir ;;
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 dvidir=$ac_optarg ;;
947
948 -enable-* | --enable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
953 { (exit 1); exit 1; }; }
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=\$ac_optarg ;;
964
965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967 | --exec | --exe | --ex)
968 ac_prev=exec_prefix ;;
969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971 | --exec=* | --exe=* | --ex=*)
972 exec_prefix=$ac_optarg ;;
973
974 -gas | --gas | --ga | --g)
975 # Obsolete; use --with-gas.
976 with_gas=yes ;;
977
978 -help | --help | --hel | --he | -h)
979 ac_init_help=long ;;
980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 ac_init_help=recursive ;;
982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983 ac_init_help=short ;;
984
985 -host | --host | --hos | --ho)
986 ac_prev=host_alias ;;
987 -host=* | --host=* | --hos=* | --ho=*)
988 host_alias=$ac_optarg ;;
989
990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 ac_prev=htmldir ;;
992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 | --ht=*)
994 htmldir=$ac_optarg ;;
995
996 -includedir | --includedir | --includedi | --included | --include \
997 | --includ | --inclu | --incl | --inc)
998 ac_prev=includedir ;;
999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000 | --includ=* | --inclu=* | --incl=* | --inc=*)
1001 includedir=$ac_optarg ;;
1002
1003 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 ac_prev=infodir ;;
1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006 infodir=$ac_optarg ;;
1007
1008 -libdir | --libdir | --libdi | --libd)
1009 ac_prev=libdir ;;
1010 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011 libdir=$ac_optarg ;;
1012
1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014 | --libexe | --libex | --libe)
1015 ac_prev=libexecdir ;;
1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017 | --libexe=* | --libex=* | --libe=*)
1018 libexecdir=$ac_optarg ;;
1019
1020 -localedir | --localedir | --localedi | --localed | --locale)
1021 ac_prev=localedir ;;
1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023 localedir=$ac_optarg ;;
1024
1025 -localstatedir | --localstatedir | --localstatedi | --localstated \
1026 | --localstate | --localstat | --localsta | --localst | --locals)
1027 ac_prev=localstatedir ;;
1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030 localstatedir=$ac_optarg ;;
1031
1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 ac_prev=mandir ;;
1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035 mandir=$ac_optarg ;;
1036
1037 -nfp | --nfp | --nf)
1038 # Obsolete; use --without-fp.
1039 with_fp=no ;;
1040
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 | --no-cr | --no-c | -n)
1043 no_create=yes ;;
1044
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 no_recursion=yes ;;
1048
1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051 | --oldin | --oldi | --old | --ol | --o)
1052 ac_prev=oldincludedir ;;
1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056 oldincludedir=$ac_optarg ;;
1057
1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 ac_prev=prefix ;;
1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061 prefix=$ac_optarg ;;
1062
1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064 | --program-pre | --program-pr | --program-p)
1065 ac_prev=program_prefix ;;
1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068 program_prefix=$ac_optarg ;;
1069
1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071 | --program-suf | --program-su | --program-s)
1072 ac_prev=program_suffix ;;
1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075 program_suffix=$ac_optarg ;;
1076
1077 -program-transform-name | --program-transform-name \
1078 | --program-transform-nam | --program-transform-na \
1079 | --program-transform-n | --program-transform- \
1080 | --program-transform | --program-transfor \
1081 | --program-transfo | --program-transf \
1082 | --program-trans | --program-tran \
1083 | --progr-tra | --program-tr | --program-t)
1084 ac_prev=program_transform_name ;;
1085 -program-transform-name=* | --program-transform-name=* \
1086 | --program-transform-nam=* | --program-transform-na=* \
1087 | --program-transform-n=* | --program-transform-=* \
1088 | --program-transform=* | --program-transfor=* \
1089 | --program-transfo=* | --program-transf=* \
1090 | --program-trans=* | --program-tran=* \
1091 | --progr-tra=* | --program-tr=* | --program-t=*)
1092 program_transform_name=$ac_optarg ;;
1093
1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 ac_prev=pdfdir ;;
1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097 pdfdir=$ac_optarg ;;
1098
1099 -psdir | --psdir | --psdi | --psd | --ps)
1100 ac_prev=psdir ;;
1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102 psdir=$ac_optarg ;;
1103
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1106 silent=yes ;;
1107
1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 ac_prev=sbindir ;;
1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 | --sbi=* | --sb=*)
1112 sbindir=$ac_optarg ;;
1113
1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116 | --sharedst | --shareds | --shared | --share | --shar \
1117 | --sha | --sh)
1118 ac_prev=sharedstatedir ;;
1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 | --sha=* | --sh=*)
1123 sharedstatedir=$ac_optarg ;;
1124
1125 -site | --site | --sit)
1126 ac_prev=site ;;
1127 -site=* | --site=* | --sit=*)
1128 site=$ac_optarg ;;
1129
1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 ac_prev=srcdir ;;
1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133 srcdir=$ac_optarg ;;
1134
1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136 | --syscon | --sysco | --sysc | --sys | --sy)
1137 ac_prev=sysconfdir ;;
1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140 sysconfdir=$ac_optarg ;;
1141
1142 -target | --target | --targe | --targ | --tar | --ta | --t)
1143 ac_prev=target_alias ;;
1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145 target_alias=$ac_optarg ;;
1146
1147 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148 verbose=yes ;;
1149
1150 -version | --version | --versio | --versi | --vers | -V)
1151 ac_init_version=: ;;
1152
1153 -with-* | --with-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1158 { (exit 1); exit 1; }; }
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=\$ac_optarg ;;
1169
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1175 { (exit 1); exit 1; }; }
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1186
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1190
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1197
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1204
1205 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1206 Try \`$0 --help' for more information." >&2
1207 { (exit 1); exit 1; }; }
1208 ;;
1209
1210 *=*)
1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1214 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1215 { (exit 1); exit 1; }; }
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1218
1219 *)
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1225 ;;
1226
1227 esac
1228 done
1229
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1233 { (exit 1); exit 1; }; }
1234 fi
1235
1236 if test -n "$ac_unrecognized_opts"; then
1237 case $enable_option_checking in
1238 no) ;;
1239 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1240 { (exit 1); exit 1; }; } ;;
1241 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1242 esac
1243 fi
1244
1245 # Check all directory arguments for consistency.
1246 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1247 datadir sysconfdir sharedstatedir localstatedir includedir \
1248 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1249 libdir localedir mandir
1250 do
1251 eval ac_val=\$$ac_var
1252 # Remove trailing slashes.
1253 case $ac_val in
1254 */ )
1255 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1256 eval $ac_var=\$ac_val;;
1257 esac
1258 # Be sure to have absolute directory names.
1259 case $ac_val in
1260 [\\/$]* | ?:[\\/]* ) continue;;
1261 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1262 esac
1263 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1264 { (exit 1); exit 1; }; }
1265 done
1266
1267 # There might be people who depend on the old broken behavior: `$host'
1268 # used to hold the argument of --host etc.
1269 # FIXME: To remove some day.
1270 build=$build_alias
1271 host=$host_alias
1272 target=$target_alias
1273
1274 # FIXME: To remove some day.
1275 if test "x$host_alias" != x; then
1276 if test "x$build_alias" = x; then
1277 cross_compiling=maybe
1278 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1279 If a cross compiler is detected then cross compile mode will be used." >&2
1280 elif test "x$build_alias" != "x$host_alias"; then
1281 cross_compiling=yes
1282 fi
1283 fi
1284
1285 ac_tool_prefix=
1286 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287
1288 test "$silent" = yes && exec 6>/dev/null
1289
1290
1291 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292 ac_ls_di=`ls -di .` &&
1293 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1295 { (exit 1); exit 1; }; }
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1298 { (exit 1); exit 1; }; }
1299
1300
1301 # Find the source files, if location was not specified.
1302 if test -z "$srcdir"; then
1303 ac_srcdir_defaulted=yes
1304 # Try the directory containing this script, then the parent directory.
1305 ac_confdir=`$as_dirname -- "$as_myself" ||
1306 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307 X"$as_myself" : 'X\(//\)[^/]' \| \
1308 X"$as_myself" : 'X\(//\)$' \| \
1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310 $as_echo X"$as_myself" |
1311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\/\)[^/].*/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\).*/{
1324 s//\1/
1325 q
1326 }
1327 s/.*/./; q'`
1328 srcdir=$ac_confdir
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 srcdir=..
1331 fi
1332 else
1333 ac_srcdir_defaulted=no
1334 fi
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1338 { (exit 1); exit 1; }; }
1339 fi
1340 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341 ac_abs_confdir=`(
1342 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1343 { (exit 1); exit 1; }; }
1344 pwd)`
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1348 fi
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1352 case $srcdir in
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 esac
1355 for ac_var in $ac_precious_vars; do
1356 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_${ac_var}_value=\$${ac_var}
1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360 done
1361
1362 #
1363 # Report the --help message.
1364 #
1365 if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1368 cat <<_ACEOF
1369 \`configure' configures emacs 23.1.50 to adapt to many kinds of systems.
1370
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1372
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE. See below for descriptions of some of the useful variables.
1375
1376 Defaults for the options are specified in brackets.
1377
1378 Configuration:
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print \`checking...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for \`--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1388
1389 Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393 [PREFIX]
1394
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1399
1400 For better control, use the options below.
1401
1402 Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1422 _ACEOF
1423
1424 cat <<\_ACEOF
1425
1426 Program names:
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1430
1431 X features:
1432 --x-includes=DIR X include files are in DIR
1433 --x-libraries=DIR X library files are in DIR
1434
1435 System types:
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 _ACEOF
1439 fi
1440
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive ) echo "Configuration of emacs 23.1.50:";;
1444 esac
1445 cat <<\_ACEOF
1446
1447 Optional Features:
1448 --disable-option-checking ignore unrecognized --enable/--with options
1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1451 --disable-ns-self-contained
1452 disable self contained build under NeXTstep
1453 --enable-asserts compile code with asserts enabled
1454 --enable-maintainer-mode
1455 enable make rules and dependencies not useful (and
1456 sometimes confusing) to the casual installer
1457 --enable-locallisppath=PATH
1458 directories Emacs should search for lisp files
1459 specific to this site
1460 --enable-checking[=LIST]
1461 enable expensive run-time checks. With LIST, enable
1462 only specific categories of checks. Categories are:
1463 all,yes,no. Flags are: stringbytes, stringoverrun,
1464 stringfreelist, xmallocoverrun, conslist
1465 --enable-profiling build emacs with profiling support. This might not
1466 work on all platforms
1467 --disable-largefile omit support for large files
1468
1469 Optional Packages:
1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1472 --without-pop don't support POP mail retrieval with movemail
1473 --with-kerberos support Kerberos-authenticated POP
1474 --with-kerberos5 support Kerberos version 5 authenticated POP
1475 --with-hesiod support Hesiod to get the POP server host
1476 --without-sound don't compile with sound support
1477 --without-sync-input process async input synchronously
1478 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1479 motif, gtk, no)
1480 --without-xpm don't compile with XPM image support
1481 --without-jpeg don't compile with JPEG image support
1482 --without-tiff don't compile with TIFF image support
1483 --without-gif don't compile with GIF image support
1484 --without-png don't compile with PNG image support
1485 --without-rsvg don't compile with SVG image support
1486 --without-xft don't use XFT for anti aliased fonts
1487 --without-libotf don't use libotf for OpenType font support
1488 --without-m17n-flt don't use m17n-flt for text shaping
1489 --without-toolkit-scroll-bars
1490 don't use Motif or Xaw3d scroll bars
1491 --without-xaw3d don't use Xaw3d
1492 --without-xim don't use X11 XIM
1493 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1494 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1495 console
1496 --without-dbus don't compile with D-Bus support
1497 --without-makeinfo don't require makeinfo for building manuals
1498
1499 --with-pkg-config-prog=PATH
1500 path to pkg-config for finding GTK and librsvg
1501 --with-gnustep-conf=PATH
1502 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1503 or /etc/GNUstep/GNUstep.conf
1504 --with-x use the X Window System
1505
1506 Some influential environment variables:
1507 CC C compiler command
1508 CFLAGS C compiler flags
1509 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1510 nonstandard directory <lib dir>
1511 LIBS libraries to pass to the linker, e.g. -l<library>
1512 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1513 you have headers in a nonstandard directory <include dir>
1514 CPP C preprocessor
1515 XMKMF Path to xmkmf, Makefile generator for X Window System
1516
1517 Use these variables to override the choices made by `configure' or to help
1518 it to find libraries and programs with nonstandard names/locations.
1519
1520 _ACEOF
1521 ac_status=$?
1522 fi
1523
1524 if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527 test -d "$ac_dir" ||
1528 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1529 continue
1530 ac_builddir=.
1531
1532 case "$ac_dir" in
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *)
1535 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1536 # A ".." for each directory in $ac_dir_suffix.
1537 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1538 case $ac_top_builddir_sub in
1539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541 esac ;;
1542 esac
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1547
1548 case $srcdir in
1549 .) # We are building in place.
1550 ac_srcdir=.
1551 ac_top_srcdir=$ac_top_builddir_sub
1552 ac_abs_top_srcdir=$ac_pwd ;;
1553 [\\/]* | ?:[\\/]* ) # Absolute name.
1554 ac_srcdir=$srcdir$ac_dir_suffix;
1555 ac_top_srcdir=$srcdir
1556 ac_abs_top_srcdir=$srcdir ;;
1557 *) # Relative name.
1558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559 ac_top_srcdir=$ac_top_build_prefix$srcdir
1560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 esac
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563
1564 cd "$ac_dir" || { ac_status=$?; continue; }
1565 # Check for guested configure.
1566 if test -f "$ac_srcdir/configure.gnu"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569 elif test -f "$ac_srcdir/configure"; then
1570 echo &&
1571 $SHELL "$ac_srcdir/configure" --help=recursive
1572 else
1573 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574 fi || ac_status=$?
1575 cd "$ac_pwd" || { ac_status=$?; break; }
1576 done
1577 fi
1578
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1581 cat <<\_ACEOF
1582 emacs configure 23.1.50
1583 generated by GNU Autoconf 2.62
1584
1585 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1586 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1589 _ACEOF
1590 exit
1591 fi
1592 cat >config.log <<_ACEOF
1593 This file contains any messages produced by compilers while
1594 running configure, to aid debugging if configure makes a mistake.
1595
1596 It was created by emacs $as_me 23.1.50, which was
1597 generated by GNU Autoconf 2.62. Invocation command line was
1598
1599 $ $0 $@
1600
1601 _ACEOF
1602 exec 5>>config.log
1603 {
1604 cat <<_ASUNAME
1605 ## --------- ##
1606 ## Platform. ##
1607 ## --------- ##
1608
1609 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1610 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1611 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1612 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1613 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1614
1615 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1616 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1617
1618 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1619 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1620 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1621 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1622 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1623 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1624 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1625
1626 _ASUNAME
1627
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 for as_dir in $PATH
1630 do
1631 IFS=$as_save_IFS
1632 test -z "$as_dir" && as_dir=.
1633 $as_echo "PATH: $as_dir"
1634 done
1635 IFS=$as_save_IFS
1636
1637 } >&5
1638
1639 cat >&5 <<_ACEOF
1640
1641
1642 ## ----------- ##
1643 ## Core tests. ##
1644 ## ----------- ##
1645
1646 _ACEOF
1647
1648
1649 # Keep a trace of the command line.
1650 # Strip out --no-create and --no-recursion so they do not pile up.
1651 # Strip out --silent because we don't want to record it for future runs.
1652 # Also quote any args containing shell meta-characters.
1653 # Make two passes to allow for proper duplicate-argument suppression.
1654 ac_configure_args=
1655 ac_configure_args0=
1656 ac_configure_args1=
1657 ac_must_keep_next=false
1658 for ac_pass in 1 2
1659 do
1660 for ac_arg
1661 do
1662 case $ac_arg in
1663 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1665 | -silent | --silent | --silen | --sile | --sil)
1666 continue ;;
1667 *\'*)
1668 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1669 esac
1670 case $ac_pass in
1671 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1672 2)
1673 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1674 if test $ac_must_keep_next = true; then
1675 ac_must_keep_next=false # Got value, back to normal.
1676 else
1677 case $ac_arg in
1678 *=* | --config-cache | -C | -disable-* | --disable-* \
1679 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1680 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1681 | -with-* | --with-* | -without-* | --without-* | --x)
1682 case "$ac_configure_args0 " in
1683 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1684 esac
1685 ;;
1686 -* ) ac_must_keep_next=true ;;
1687 esac
1688 fi
1689 ac_configure_args="$ac_configure_args '$ac_arg'"
1690 ;;
1691 esac
1692 done
1693 done
1694 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1695 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1696
1697 # When interrupted or exit'd, cleanup temporary files, and complete
1698 # config.log. We remove comments because anyway the quotes in there
1699 # would cause problems or look ugly.
1700 # WARNING: Use '\'' to represent an apostrophe within the trap.
1701 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1702 trap 'exit_status=$?
1703 # Save into config.log some information that might help in debugging.
1704 {
1705 echo
1706
1707 cat <<\_ASBOX
1708 ## ---------------- ##
1709 ## Cache variables. ##
1710 ## ---------------- ##
1711 _ASBOX
1712 echo
1713 # The following way of writing the cache mishandles newlines in values,
1714 (
1715 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1716 eval ac_val=\$$ac_var
1717 case $ac_val in #(
1718 *${as_nl}*)
1719 case $ac_var in #(
1720 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1721 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1722 esac
1723 case $ac_var in #(
1724 _ | IFS | as_nl) ;; #(
1725 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1726 *) $as_unset $ac_var ;;
1727 esac ;;
1728 esac
1729 done
1730 (set) 2>&1 |
1731 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1732 *${as_nl}ac_space=\ *)
1733 sed -n \
1734 "s/'\''/'\''\\\\'\'''\''/g;
1735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1736 ;; #(
1737 *)
1738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1739 ;;
1740 esac |
1741 sort
1742 )
1743 echo
1744
1745 cat <<\_ASBOX
1746 ## ----------------- ##
1747 ## Output variables. ##
1748 ## ----------------- ##
1749 _ASBOX
1750 echo
1751 for ac_var in $ac_subst_vars
1752 do
1753 eval ac_val=\$$ac_var
1754 case $ac_val in
1755 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756 esac
1757 $as_echo "$ac_var='\''$ac_val'\''"
1758 done | sort
1759 echo
1760
1761 if test -n "$ac_subst_files"; then
1762 cat <<\_ASBOX
1763 ## ------------------- ##
1764 ## File substitutions. ##
1765 ## ------------------- ##
1766 _ASBOX
1767 echo
1768 for ac_var in $ac_subst_files
1769 do
1770 eval ac_val=\$$ac_var
1771 case $ac_val in
1772 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773 esac
1774 $as_echo "$ac_var='\''$ac_val'\''"
1775 done | sort
1776 echo
1777 fi
1778
1779 if test -s confdefs.h; then
1780 cat <<\_ASBOX
1781 ## ----------- ##
1782 ## confdefs.h. ##
1783 ## ----------- ##
1784 _ASBOX
1785 echo
1786 cat confdefs.h
1787 echo
1788 fi
1789 test "$ac_signal" != 0 &&
1790 $as_echo "$as_me: caught signal $ac_signal"
1791 $as_echo "$as_me: exit $exit_status"
1792 } >&5
1793 rm -f core *.core core.conftest.* &&
1794 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1795 exit $exit_status
1796 ' 0
1797 for ac_signal in 1 2 13 15; do
1798 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1799 done
1800 ac_signal=0
1801
1802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1803 rm -f -r conftest* confdefs.h
1804
1805 # Predefined preprocessor variables.
1806
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_NAME "$PACKAGE_NAME"
1809 _ACEOF
1810
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1814 _ACEOF
1815
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1819 _ACEOF
1820
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_STRING "$PACKAGE_STRING"
1824 _ACEOF
1825
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1829 _ACEOF
1830
1831
1832 # Let the site file select an alternate cache file if it wants to.
1833 # Prefer an explicitly selected file to automatically selected ones.
1834 ac_site_file1=NONE
1835 ac_site_file2=NONE
1836 if test -n "$CONFIG_SITE"; then
1837 ac_site_file1=$CONFIG_SITE
1838 elif test "x$prefix" != xNONE; then
1839 ac_site_file1=$prefix/share/config.site
1840 ac_site_file2=$prefix/etc/config.site
1841 else
1842 ac_site_file1=$ac_default_prefix/share/config.site
1843 ac_site_file2=$ac_default_prefix/etc/config.site
1844 fi
1845 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1846 do
1847 test "x$ac_site_file" = xNONE && continue
1848 if test -r "$ac_site_file"; then
1849 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1850 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1851 sed 's/^/| /' "$ac_site_file" >&5
1852 . "$ac_site_file"
1853 fi
1854 done
1855
1856 if test -r "$cache_file"; then
1857 # Some versions of bash will fail to source /dev/null (special
1858 # files actually), so we avoid doing that.
1859 if test -f "$cache_file"; then
1860 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1861 $as_echo "$as_me: loading cache $cache_file" >&6;}
1862 case $cache_file in
1863 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1864 *) . "./$cache_file";;
1865 esac
1866 fi
1867 else
1868 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1869 $as_echo "$as_me: creating cache $cache_file" >&6;}
1870 >$cache_file
1871 fi
1872
1873 ac_header_list="$ac_header_list sys/time.h"
1874 ac_header_list="$ac_header_list unistd.h"
1875 ac_func_list="$ac_func_list alarm"
1876 # Check that the precious variables saved in the cache have kept the same
1877 # value.
1878 ac_cache_corrupted=false
1879 for ac_var in $ac_precious_vars; do
1880 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1881 eval ac_new_set=\$ac_env_${ac_var}_set
1882 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1883 eval ac_new_val=\$ac_env_${ac_var}_value
1884 case $ac_old_set,$ac_new_set in
1885 set,)
1886 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1887 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1888 ac_cache_corrupted=: ;;
1889 ,set)
1890 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1891 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1892 ac_cache_corrupted=: ;;
1893 ,);;
1894 *)
1895 if test "x$ac_old_val" != "x$ac_new_val"; then
1896 # differences in whitespace do not lead to failure.
1897 ac_old_val_w=`echo x $ac_old_val`
1898 ac_new_val_w=`echo x $ac_new_val`
1899 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1900 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1901 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1902 ac_cache_corrupted=:
1903 else
1904 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1905 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1906 eval $ac_var=\$ac_old_val
1907 fi
1908 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1909 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1910 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1911 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1912 fi;;
1913 esac
1914 # Pass precious variables to config.status.
1915 if test "$ac_new_set" = set; then
1916 case $ac_new_val in
1917 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1918 *) ac_arg=$ac_var=$ac_new_val ;;
1919 esac
1920 case " $ac_configure_args " in
1921 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1922 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1923 esac
1924 fi
1925 done
1926 if $ac_cache_corrupted; then
1927 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1928 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1929 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1930 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1931 { (exit 1); exit 1; }; }
1932 fi
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958 ac_ext=c
1959 ac_cpp='$CPP $CPPFLAGS'
1960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1963
1964
1965 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1966
1967
1968
1969 test "$program_prefix" != NONE &&
1970 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1971 # Use a double $ so make ignores it.
1972 test "$program_suffix" != NONE &&
1973 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1974 # Double any \ or $.
1975 # By default was `s,x,x', remove it if useless.
1976 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1977 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1978
1979
1980 lispdir='${datadir}/emacs/${version}/lisp'
1981 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1982 '${datadir}/emacs/site-lisp'
1983 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1984 etcdir='${datadir}/emacs/${version}/etc'
1985 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1986 docdir='${datadir}/emacs/${version}/etc'
1987 gamedir='${localstatedir}/games/emacs'
1988
1989 gameuser=games
1990
1991
1992
1993
1994 # Check whether --with-pop was given.
1995 if test "${with_pop+set}" = set; then
1996 withval=$with_pop;
1997 else
1998 with_pop=yes
1999 fi
2000
2001 if test "$with_pop" = yes; then
2002 cat >>confdefs.h <<\_ACEOF
2003 #define MAIL_USE_POP 1
2004 _ACEOF
2005
2006 fi
2007
2008
2009
2010 # Check whether --with-kerberos was given.
2011 if test "${with_kerberos+set}" = set; then
2012 withval=$with_kerberos;
2013 else
2014 with_kerberos=no
2015 fi
2016
2017 if test "$with_kerberos" != no; then
2018 cat >>confdefs.h <<\_ACEOF
2019 #define KERBEROS 1
2020 _ACEOF
2021
2022 fi
2023
2024
2025
2026 # Check whether --with-kerberos5 was given.
2027 if test "${with_kerberos5+set}" = set; then
2028 withval=$with_kerberos5;
2029 else
2030 with_kerberos5=no
2031 fi
2032
2033 if test "${with_kerberos5}" != no; then
2034 if test "${with_kerberos}" = no; then
2035 with_kerberos=yes
2036 cat >>confdefs.h <<\_ACEOF
2037 #define KERBEROS 1
2038 _ACEOF
2039
2040 fi
2041
2042 cat >>confdefs.h <<\_ACEOF
2043 #define KERBEROS5 1
2044 _ACEOF
2045
2046 fi
2047
2048
2049 # Check whether --with-hesiod was given.
2050 if test "${with_hesiod+set}" = set; then
2051 withval=$with_hesiod;
2052 else
2053 with_hesiod=no
2054 fi
2055
2056 if test "$with_hesiod" != no; then
2057
2058 cat >>confdefs.h <<\_ACEOF
2059 #define HESIOD 1
2060 _ACEOF
2061
2062 fi
2063
2064
2065 # Check whether --with-sound was given.
2066 if test "${with_sound+set}" = set; then
2067 withval=$with_sound;
2068 else
2069 with_sound=yes
2070 fi
2071
2072
2073
2074 # Check whether --with-sync-input was given.
2075 if test "${with_sync_input+set}" = set; then
2076 withval=$with_sync_input;
2077 else
2078 with_sync_input=yes
2079 fi
2080
2081 if test "$with_sync_input" = yes; then
2082
2083 cat >>confdefs.h <<\_ACEOF
2084 #define SYNC_INPUT 1
2085 _ACEOF
2086
2087 fi
2088
2089
2090 # Check whether --with-x-toolkit was given.
2091 if test "${with_x_toolkit+set}" = set; then
2092 withval=$with_x_toolkit; case "${withval}" in
2093 y | ye | yes ) val=gtk ;;
2094 n | no ) val=no ;;
2095 l | lu | luc | luci | lucid ) val=lucid ;;
2096 a | at | ath | athe | athen | athena ) val=athena ;;
2097 m | mo | mot | moti | motif ) val=motif ;;
2098 g | gt | gtk ) val=gtk ;;
2099 * )
2100 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2101 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2102 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2103 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2104 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2105 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2106 { (exit 1); exit 1; }; }
2107 ;;
2108 esac
2109 with_x_toolkit=$val
2110
2111 fi
2112
2113
2114
2115 # Check whether --with-xpm was given.
2116 if test "${with_xpm+set}" = set; then
2117 withval=$with_xpm;
2118 else
2119 with_xpm=yes
2120 fi
2121
2122
2123 # Check whether --with-jpeg was given.
2124 if test "${with_jpeg+set}" = set; then
2125 withval=$with_jpeg;
2126 else
2127 with_jpeg=yes
2128 fi
2129
2130
2131 # Check whether --with-tiff was given.
2132 if test "${with_tiff+set}" = set; then
2133 withval=$with_tiff;
2134 else
2135 with_tiff=yes
2136 fi
2137
2138
2139 # Check whether --with-gif was given.
2140 if test "${with_gif+set}" = set; then
2141 withval=$with_gif;
2142 else
2143 with_gif=yes
2144 fi
2145
2146
2147 # Check whether --with-png was given.
2148 if test "${with_png+set}" = set; then
2149 withval=$with_png;
2150 else
2151 with_png=yes
2152 fi
2153
2154
2155 # Check whether --with-rsvg was given.
2156 if test "${with_rsvg+set}" = set; then
2157 withval=$with_rsvg;
2158 else
2159 with_rsvg=yes
2160 fi
2161
2162
2163
2164 # Check whether --with-xft was given.
2165 if test "${with_xft+set}" = set; then
2166 withval=$with_xft;
2167 else
2168 with_xft=yes
2169 fi
2170
2171
2172 # Check whether --with-libotf was given.
2173 if test "${with_libotf+set}" = set; then
2174 withval=$with_libotf;
2175 else
2176 with_libotf=yes
2177 fi
2178
2179
2180 # Check whether --with-m17n-flt was given.
2181 if test "${with_m17n_flt+set}" = set; then
2182 withval=$with_m17n_flt;
2183 else
2184 with_m17n_flt=yes
2185 fi
2186
2187
2188
2189 # Check whether --with-toolkit-scroll-bars was given.
2190 if test "${with_toolkit_scroll_bars+set}" = set; then
2191 withval=$with_toolkit_scroll_bars;
2192 else
2193 with_toolkit_scroll_bars=yes
2194 fi
2195
2196
2197 # Check whether --with-xaw3d was given.
2198 if test "${with_xaw3d+set}" = set; then
2199 withval=$with_xaw3d;
2200 else
2201 with_xaw3d=yes
2202 fi
2203
2204
2205 # Check whether --with-xim was given.
2206 if test "${with_xim+set}" = set; then
2207 withval=$with_xim;
2208 else
2209 with_xim=yes
2210 fi
2211
2212
2213 # Check whether --with-ns was given.
2214 if test "${with_ns+set}" = set; then
2215 withval=$with_ns;
2216 else
2217 with_ns=no
2218 fi
2219
2220
2221
2222 # Check whether --with-gpm was given.
2223 if test "${with_gpm+set}" = set; then
2224 withval=$with_gpm;
2225 else
2226 with_gpm=yes
2227 fi
2228
2229
2230 # Check whether --with-dbus was given.
2231 if test "${with_dbus+set}" = set; then
2232 withval=$with_dbus;
2233 else
2234 with_dbus=yes
2235 fi
2236
2237
2238 ## For the times when you want to build Emacs but don't have
2239 ## a suitable makeinfo, and can live without the manuals.
2240
2241 # Check whether --with-makeinfo was given.
2242 if test "${with_makeinfo+set}" = set; then
2243 withval=$with_makeinfo;
2244 else
2245 with_makeinfo=yes
2246 fi
2247
2248
2249
2250 # Check whether --with-gtk was given.
2251 if test "${with_gtk+set}" = set; then
2252 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2253 specify a toolkit." >&5
2254 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2255 specify a toolkit." >&2;}
2256 { (exit 1); exit 1; }; }
2257 fi
2258
2259
2260
2261 # Check whether --with-gcc was given.
2262 if test "${with_gcc+set}" = set; then
2263 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2264 variable to specify a compiler." >&5
2265 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2266 variable to specify a compiler." >&2;}
2267 { (exit 1); exit 1; }; }
2268 fi
2269
2270
2271
2272 # Check whether --with-pkg-config-prog was given.
2273 if test "${with_pkg_config_prog+set}" = set; then
2274 withval=$with_pkg_config_prog;
2275 fi
2276
2277 if test "X${with_pkg_config_prog}" != X; then
2278 if test "${with_pkg_config_prog}" != yes; then
2279 PKG_CONFIG="${with_pkg_config_prog}"
2280 fi
2281 fi
2282
2283
2284 # Check whether --with-gnustep-conf was given.
2285 if test "${with_gnustep_conf+set}" = set; then
2286 withval=$with_gnustep_conf;
2287 fi
2288
2289 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2290 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2291 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2292 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2293
2294 # Check whether --enable-ns-self-contained was given.
2295 if test "${enable_ns_self_contained+set}" = set; then
2296 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2297 else
2298 EN_NS_SELF_CONTAINED=yes
2299 fi
2300
2301
2302 # Check whether --enable-asserts was given.
2303 if test "${enable_asserts+set}" = set; then
2304 enableval=$enable_asserts; USE_XASSERTS=$enableval
2305 else
2306 USE_XASSERTS=no
2307 fi
2308
2309
2310 # Check whether --enable-maintainer-mode was given.
2311 if test "${enable_maintainer_mode+set}" = set; then
2312 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2313 else
2314 USE_MAINTAINER_MODE=no
2315 fi
2316
2317 if test $USE_MAINTAINER_MODE = yes; then
2318 MAINT=
2319 else
2320 MAINT=#
2321 fi
2322
2323
2324 # Check whether --enable-locallisppath was given.
2325 if test "${enable_locallisppath+set}" = set; then
2326 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2327 locallisppath=
2328 elif test "${enableval}" != "yes"; then
2329 locallisppath=${enableval}
2330 fi
2331 fi
2332
2333
2334 # Check whether --enable-checking was given.
2335 if test "${enable_checking+set}" = set; then
2336 enableval=$enable_checking; ac_checking_flags="${enableval}"
2337 fi
2338
2339 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2340 for check in $ac_checking_flags
2341 do
2342 case $check in
2343 # these set all the flags to specific states
2344 yes) ac_enable_checking=1 ;;
2345 no) ac_enable_checking= ;
2346 ac_gc_check_stringbytes= ;
2347 ac_gc_check_string_overrun= ;
2348 ac_gc_check_string_free_list= ;
2349 ac_xmalloc_overrun= ;
2350 ac_gc_check_cons_list= ;;
2351 all) ac_enable_checking=1 ;
2352 ac_gc_check_stringbytes=1 ;
2353 ac_gc_check_string_overrun=1 ;
2354 ac_gc_check_string_free_list=1 ;
2355 ac_xmalloc_overrun=1 ;
2356 ac_gc_check_cons_list=1 ;;
2357 # these enable particular checks
2358 stringbytes) ac_gc_check_stringbytes=1 ;;
2359 stringoverrun) ac_gc_check_string_overrun=1 ;;
2360 stringfreelist) ac_gc_check_string_free_list=1 ;;
2361 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2362 conslist) ac_gc_check_cons_list=1 ;;
2363 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2364 $as_echo "$as_me: error: unknown check category $check" >&2;}
2365 { (exit 1); exit 1; }; } ;;
2366 esac
2367 done
2368 IFS="$ac_save_IFS"
2369
2370 if test x$ac_enable_checking != x ; then
2371
2372 cat >>confdefs.h <<\_ACEOF
2373 #define ENABLE_CHECKING 1
2374 _ACEOF
2375
2376 fi
2377 if test x$ac_gc_check_stringbytes != x ; then
2378
2379 cat >>confdefs.h <<\_ACEOF
2380 #define GC_CHECK_STRING_BYTES 1
2381 _ACEOF
2382
2383 fi
2384 if test x$ac_gc_check_stringoverrun != x ; then
2385
2386 cat >>confdefs.h <<\_ACEOF
2387 #define GC_CHECK_STRING_OVERRUN 1
2388 _ACEOF
2389
2390 fi
2391 if test x$ac_gc_check_string_free_list != x ; then
2392
2393 cat >>confdefs.h <<\_ACEOF
2394 #define GC_CHECK_STRING_FREE_LIST 1
2395 _ACEOF
2396
2397 fi
2398 if test x$ac_xmalloc_overrun != x ; then
2399
2400 cat >>confdefs.h <<\_ACEOF
2401 #define XMALLOC_OVERRUN_CHECK 1
2402 _ACEOF
2403
2404 fi
2405 if test x$ac_gc_check_cons_list != x ; then
2406
2407 cat >>confdefs.h <<\_ACEOF
2408 #define GC_CHECK_CONS_LIST 1
2409 _ACEOF
2410
2411 fi
2412
2413 # Check whether --enable-profiling was given.
2414 if test "${enable_profiling+set}" = set; then
2415 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2416 fi
2417
2418 if test x$ac_enable_profiling != x ; then
2419 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2420 PROFILING_LDFLAGS="-pg"
2421 else
2422 PROFILING_CFLAGS=
2423 PROFILING_LDFLAGS=
2424 fi
2425
2426 #### Make srcdir absolute, if it isn't already. It's important to
2427 #### avoid running the path through pwd unnecessarily, since pwd can
2428 #### give you automounter prefixes, which can go away. We do all this
2429 #### so Emacs can find its files when run uninstalled.
2430 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2431 unset CDPATH
2432 case "${srcdir}" in
2433 /* ) ;;
2434 . )
2435 ## We may be able to use the $PWD environment variable to make this
2436 ## absolute. But sometimes PWD is inaccurate.
2437 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2438 ## but that tested only for a well-formed and valid PWD,
2439 ## it did not object when PWD was well-formed and valid but just wrong.
2440 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2441 then
2442 srcdir="$PWD"
2443 else
2444 srcdir="`(cd ${srcdir}; pwd)`"
2445 fi
2446 ;;
2447 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2448 esac
2449
2450 #### Check if the source directory already has a configured system in it.
2451 if test `pwd` != `(cd ${srcdir} && pwd)` \
2452 && test -f "${srcdir}/src/config.h" ; then
2453 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2454 as a build directory right now; it has been configured in its own
2455 right. To configure in another directory as well, you MUST
2456 use GNU make. If you do not have GNU make, then you must
2457 now do \`make distclean' in ${srcdir},
2458 and then run $0 again." >&5
2459 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2460 as a build directory right now; it has been configured in its own
2461 right. To configure in another directory as well, you MUST
2462 use GNU make. If you do not have GNU make, then you must
2463 now do \`make distclean' in ${srcdir},
2464 and then run $0 again." >&2;}
2465 fi
2466
2467 #### Given the configuration name, set machfile and opsysfile to the
2468 #### names of the m/*.h and s/*.h files we should use.
2469
2470 ### Canonicalize the configuration name.
2471
2472 ac_aux_dir=
2473 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2474 if test -f "$ac_dir/install-sh"; then
2475 ac_aux_dir=$ac_dir
2476 ac_install_sh="$ac_aux_dir/install-sh -c"
2477 break
2478 elif test -f "$ac_dir/install.sh"; then
2479 ac_aux_dir=$ac_dir
2480 ac_install_sh="$ac_aux_dir/install.sh -c"
2481 break
2482 elif test -f "$ac_dir/shtool"; then
2483 ac_aux_dir=$ac_dir
2484 ac_install_sh="$ac_aux_dir/shtool install -c"
2485 break
2486 fi
2487 done
2488 if test -z "$ac_aux_dir"; then
2489 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2490 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2491 { (exit 1); exit 1; }; }
2492 fi
2493
2494 # These three variables are undocumented and unsupported,
2495 # and are intended to be withdrawn in a future Autoconf release.
2496 # They can cause serious problems if a builder's source tree is in a directory
2497 # whose full name contains unusual characters.
2498 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2499 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2500 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2501
2502
2503 # Make sure we can run config.sub.
2504 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2505 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2506 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2507 { (exit 1); exit 1; }; }
2508
2509 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2510 $as_echo_n "checking build system type... " >&6; }
2511 if test "${ac_cv_build+set}" = set; then
2512 $as_echo_n "(cached) " >&6
2513 else
2514 ac_build_alias=$build_alias
2515 test "x$ac_build_alias" = x &&
2516 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2517 test "x$ac_build_alias" = x &&
2518 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2519 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2520 { (exit 1); exit 1; }; }
2521 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2522 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2523 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2524 { (exit 1); exit 1; }; }
2525
2526 fi
2527 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2528 $as_echo "$ac_cv_build" >&6; }
2529 case $ac_cv_build in
2530 *-*-*) ;;
2531 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2532 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2533 { (exit 1); exit 1; }; };;
2534 esac
2535 build=$ac_cv_build
2536 ac_save_IFS=$IFS; IFS='-'
2537 set x $ac_cv_build
2538 shift
2539 build_cpu=$1
2540 build_vendor=$2
2541 shift; shift
2542 # Remember, the first character of IFS is used to create $*,
2543 # except with old shells:
2544 build_os=$*
2545 IFS=$ac_save_IFS
2546 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2547
2548
2549 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2550 $as_echo_n "checking host system type... " >&6; }
2551 if test "${ac_cv_host+set}" = set; then
2552 $as_echo_n "(cached) " >&6
2553 else
2554 if test "x$host_alias" = x; then
2555 ac_cv_host=$ac_cv_build
2556 else
2557 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2558 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2559 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2560 { (exit 1); exit 1; }; }
2561 fi
2562
2563 fi
2564 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2565 $as_echo "$ac_cv_host" >&6; }
2566 case $ac_cv_host in
2567 *-*-*) ;;
2568 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2569 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2570 { (exit 1); exit 1; }; };;
2571 esac
2572 host=$ac_cv_host
2573 ac_save_IFS=$IFS; IFS='-'
2574 set x $ac_cv_host
2575 shift
2576 host_cpu=$1
2577 host_vendor=$2
2578 shift; shift
2579 # Remember, the first character of IFS is used to create $*,
2580 # except with old shells:
2581 host_os=$*
2582 IFS=$ac_save_IFS
2583 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2584
2585
2586 canonical=$host
2587 configuration=${host_alias-${build_alias-$host}}
2588
2589
2590
2591 ### If you add support for a new configuration, add code to this
2592 ### switch statement to recognize your configuration name and select
2593 ### the appropriate operating system and machine description files.
2594
2595 ### You would hope that you could choose an m/*.h file pretty much
2596 ### based on the machine portion of the configuration name, and an s-
2597 ### file based on the operating system portion. However, it turns out
2598 ### that each m/*.h file is pretty manufacturer-specific - for
2599 ### example mips.h is MIPS
2600 ### So we basically have to have a special case for each
2601 ### configuration name.
2602 ###
2603 ### As far as handling version numbers on operating systems is
2604 ### concerned, make sure things will fail in a fixable way. If
2605 ### /etc/MACHINES doesn't say anything about version numbers, be
2606 ### prepared to handle anything reasonably. If version numbers
2607 ### matter, be sure /etc/MACHINES says something about it.
2608 ###
2609 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2610 ### "System V Release 4"; he writes, "The old convention encouraged
2611 ### confusion between `system' and `release' levels'."
2612
2613 machine='' opsys='' unported=no
2614 case "${canonical}" in
2615
2616 ## FreeBSD ports
2617 *-*-freebsd* )
2618 opsys=freebsd
2619 case "${canonical}" in
2620 alpha*-*-freebsd*) machine=alpha ;;
2621 arm*-*-freebsd*) machine=arm ;;
2622 ia64-*-freebsd*) machine=ia64 ;;
2623 sparc-*-freebsd*) machine=sparc ;;
2624 sparc64-*-freebsd*) machine=sparc ;;
2625 powerpc-*-freebsd*) machine=macppc ;;
2626 i[3456]86-*-freebsd*) machine=intel386 ;;
2627 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2628 esac
2629 ;;
2630
2631 ## FreeBSD kernel + glibc based userland
2632 *-*-kfreebsd*gnu* )
2633 opsys=gnu-kfreebsd
2634 case "${canonical}" in
2635 alpha*-*-kfreebsd*) machine=alpha ;;
2636 ia64-*-kfreebsd*) machine=ia64 ;;
2637 sparc-*-kfreebsd*) machine=sparc ;;
2638 sparc64-*-kfreebsd*) machine=sparc ;;
2639 powerpc-*-kfreebsd*) machine=macppc ;;
2640 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2641 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2642 esac
2643 ;;
2644
2645 ## NetBSD ports
2646 *-*-netbsd* )
2647 opsys=netbsd
2648 if test -f /usr/lib/crti.o; then
2649
2650 cat >>confdefs.h <<\_ACEOF
2651 #define HAVE_CRTIN /**/
2652 _ACEOF
2653
2654 fi
2655
2656 case "${canonical}" in
2657 alpha*-*-netbsd*) machine=alpha ;;
2658 i[3456]86-*-netbsd*) machine=intel386 ;;
2659 mips-*-netbsd*) machine=mips ;;
2660 mipsel-*-netbsd*) machine=mips ;;
2661 mipseb-*-netbsd*) machine=mips ;;
2662 powerpc-*-netbsd*) machine=macppc ;;
2663 sparc*-*-netbsd*) machine=sparc ;;
2664 vax-*-netbsd*) machine=vax ;;
2665 arm-*-netbsd*) machine=arm ;;
2666 x86_64-*-netbsd*) machine=amdx86-64 ;;
2667 hppa-*-netbsd*) machine=hp800 ;;
2668 m68k-*-netbsd*) machine=m68k ;;
2669 esac
2670 ;;
2671
2672 ## OpenBSD ports
2673 *-*-openbsd* )
2674 opsys=openbsd
2675 case "${canonical}" in
2676 alpha*-*-openbsd*) machine=alpha ;;
2677 arm-*-openbsd*) machine=arm ;;
2678 i386-*-openbsd*) machine=intel386 ;;
2679 powerpc-*-openbsd*) machine=macppc ;;
2680 sparc*-*-openbsd*) machine=sparc ;;
2681 vax-*-openbsd*) machine=vax ;;
2682 x86_64-*-openbsd*) machine=amdx86-64 ;;
2683 hppa-*-openbsd*) machine=hp800 ;;
2684 esac
2685 ;;
2686
2687 ## LynxOS ports
2688 *-*-lynxos* )
2689 opsys=lynxos
2690 case "${canonical}" in
2691 i[3456]86-*-lynxos*) machine=intel386 ;;
2692 powerpc-*-lynxos*) machine=powerpc ;;
2693 esac
2694 ;;
2695
2696 alpha*-*-linux-gnu* )
2697 machine=alpha opsys=gnu-linux
2698 ;;
2699
2700 arm*-*-linux-gnu* )
2701 machine=arm opsys=gnu-linux
2702 ;;
2703
2704 ## Apple Darwin / Mac OS X
2705 *-apple-darwin* )
2706 case "${canonical}" in
2707 i[3456]86-* ) machine=intel386 ;;
2708 powerpc-* ) machine=macppc ;;
2709 * ) unported=yes ;;
2710 esac
2711 opsys=darwin
2712 # Define CPP as follows to make autoconf work correctly.
2713 CPP="${CC-cc} -E -no-cpp-precomp"
2714 # Use fink packages if available.
2715 if test -d /sw/include && test -d /sw/lib; then
2716 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2717 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2718 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2719 fi
2720 ;;
2721
2722 ## HP 9000 series 700 and 800, running HP/UX
2723 hppa*-hp-hpux10.2* )
2724 machine=hp800 opsys=hpux10-20
2725 ;;
2726 hppa*-hp-hpux1[1-9]* )
2727 machine=hp800 opsys=hpux11
2728 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2729 ;;
2730
2731 hppa*-*-linux-gnu* )
2732 machine=hp800 opsys=gnu-linux
2733 ;;
2734
2735 ## IBM machines
2736 s390-*-linux-gnu* )
2737 machine=ibms390 opsys=gnu-linux
2738 ;;
2739 s390x-*-linux-gnu* )
2740 machine=ibms390x opsys=gnu-linux
2741 ;;
2742 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2743 machine=ibmrs6000 opsys=aix4-2
2744 ;;
2745 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2746 machine=ibmrs6000 opsys=aix4-2
2747 ;;
2748 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2749 machine=ibmrs6000 opsys=aix4-2
2750 ;;
2751 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2752 machine=ibmrs6000 opsys=aix4-2
2753 ;;
2754
2755 ## Macintosh PowerPC
2756 powerpc*-*-linux-gnu* )
2757 machine=macppc opsys=gnu-linux
2758 ;;
2759
2760 ## Silicon Graphics machines
2761 ## Iris 4D
2762 mips-sgi-irix6.5 )
2763 machine=iris4d opsys=irix6-5
2764 # Without defining _LANGUAGE_C, things get masked out in the headers
2765 # so that, for instance, grepping for `free' in stdlib.h fails and
2766 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2767 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2768 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2769 ;;
2770
2771 ## Suns
2772 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2773 machine=sparc opsys=gnu-linux
2774 ;;
2775
2776 *-sun-solaris* \
2777 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2778 | x86_64-*-solaris2* | x86_64-*-sunos5* \
2779 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
2780 case "${canonical}" in
2781 i[3456]86-*-* ) machine=intel386 ;;
2782 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2783 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2784 sparc* ) machine=sparc ;;
2785 * ) unported=yes ;;
2786 esac
2787 case "${canonical}" in
2788 *-sunos5.3* | *-solaris2.3* )
2789 opsys=sol2-3
2790 NON_GNU_CPP=/usr/ccs/lib/cpp
2791 ;;
2792 *-sunos5.4* | *-solaris2.4* )
2793 opsys=sol2-4
2794 NON_GNU_CPP=/usr/ccs/lib/cpp
2795 RANLIB="ar -ts"
2796 ;;
2797 *-sunos5.5* | *-solaris2.5* )
2798 opsys=sol2-5
2799 NON_GNU_CPP=/usr/ccs/lib/cpp
2800 RANLIB="ar -ts"
2801 ;;
2802 *-sunos5.6* | *-solaris2.6* )
2803 opsys=sol2-6
2804 NON_GNU_CPP=/usr/ccs/lib/cpp
2805 RANLIB="ar -ts"
2806 ;;
2807 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2808 opsys=sol2-6
2809 emacs_check_sunpro_c=yes
2810 NON_GNU_CPP=/usr/ccs/lib/cpp
2811 ;;
2812 *-sunos5* | *-solaris* )
2813 opsys=sol2-10
2814 emacs_check_sunpro_c=yes
2815 NON_GNU_CPP=/usr/ccs/lib/cpp
2816 ;;
2817 esac
2818 ## Watch out for a compiler that we know will not work.
2819 case "${canonical}" in
2820 *-solaris* | *-sunos5* )
2821 if [ "x$CC" = x/usr/ucb/cc ]; then
2822 ## /usr/ucb/cc doesn't work;
2823 ## we should find some other compiler that does work.
2824 unset CC
2825 fi
2826 ;;
2827 *) ;;
2828 esac
2829 ;;
2830
2831 ## Vaxen.
2832 vax-dec-* )
2833 machine=vax
2834 case "${canonical}" in
2835 *-vms* ) opsys=vms ;;
2836 * ) unported=yes
2837 esac
2838 ;;
2839
2840 ## IA-64
2841 ia64*-*-linux* )
2842 machine=ia64 opsys=gnu-linux
2843 ;;
2844
2845 ## Intel 386 machines where we don't care about the manufacturer
2846 i[3456]86-*-* )
2847 machine=intel386
2848 case "${canonical}" in
2849 *-cygwin ) opsys=cygwin ;;
2850 *-darwin* ) opsys=darwin
2851 CPP="${CC-cc} -E -no-cpp-precomp"
2852 ;;
2853 *-linux-gnu* ) opsys=gnu-linux ;;
2854 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2855 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2856 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2857 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2858 esac
2859 ;;
2860
2861 ## m68k Linux-based GNU system
2862 m68k-*-linux-gnu* )
2863 machine=m68k opsys=gnu-linux
2864 ;;
2865
2866 ## Mips Linux-based GNU system
2867 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2868 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2869 machine=mips opsys=gnu-linux
2870 ;;
2871
2872 ## AMD x86-64 Linux-based GNU system
2873 x86_64-*-linux-gnu* )
2874 machine=amdx86-64 opsys=gnu-linux
2875 ;;
2876
2877 ## Tensilica Xtensa Linux-based GNU system
2878 xtensa*-*-linux-gnu* )
2879 machine=xtensa opsys=gnu-linux
2880 ;;
2881
2882 ## SuperH Linux-based GNU system
2883 sh[34]*-*-linux-gnu* )
2884 machine=sh3 opsys=gnu-linux
2885 ;;
2886
2887 * )
2888 unported=yes
2889 ;;
2890 esac
2891
2892 ### If the code above didn't choose an operating system, just choose
2893 ### an operating system based on the configuration name. You really
2894 ### only want to use this when you have no idea what the right
2895 ### operating system is; if you know what operating systems a machine
2896 ### runs, it's cleaner to make it explicit in the case statement
2897 ### above.
2898 if test x"${opsys}" = x; then
2899 case "${canonical}" in
2900 *-gnu* ) opsys=gnu ;;
2901 *-sysv4.2uw* ) opsys=unixware ;;
2902 *-sysv5uw* ) opsys=unixware ;;
2903 *-sysv5OpenUNIX* ) opsys=unixware ;;
2904 *-sysv4.1* | *-sysvr4.1* )
2905 NON_GNU_CPP=/usr/lib/cpp
2906 opsys=usg5-4 ;;
2907 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2908 if [ x$NON_GNU_CPP = x ]; then
2909 if [ -f /usr/ccs/lib/cpp ]; then
2910 NON_GNU_CPP=/usr/ccs/lib/cpp
2911 else
2912 NON_GNU_CPP=/lib/cpp
2913 fi
2914 fi
2915 opsys=usg5-4-2 ;;
2916 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2917 * )
2918 unported=yes
2919 ;;
2920 esac
2921 fi
2922
2923
2924
2925 if test $unported = yes; then
2926 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2927 Check \`etc/MACHINES' for recognized configuration names." >&5
2928 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2929 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2930 { (exit 1); exit 1; }; }
2931 fi
2932
2933 machfile="m/${machine}.h"
2934 opsysfile="s/${opsys}.h"
2935
2936
2937 #### Choose a compiler.
2938 test -n "$CC" && cc_specified=yes
2939
2940 # Save the value of CFLAGS that the user specified.
2941 SPECIFIED_CFLAGS="$CFLAGS"
2942
2943 ac_ext=c
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 if test -n "$ac_tool_prefix"; then
2949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2950 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2951 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if test "${ac_cv_prog_CC+set}" = set; then
2954 $as_echo_n "(cached) " >&6
2955 else
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC="$CC" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2961 do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2967 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2969 fi
2970 done
2971 done
2972 IFS=$as_save_IFS
2973
2974 fi
2975 fi
2976 CC=$ac_cv_prog_CC
2977 if test -n "$CC"; then
2978 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2979 $as_echo "$CC" >&6; }
2980 else
2981 { $as_echo "$as_me:$LINENO: result: no" >&5
2982 $as_echo "no" >&6; }
2983 fi
2984
2985
2986 fi
2987 if test -z "$ac_cv_prog_CC"; then
2988 ac_ct_CC=$CC
2989 # Extract the first word of "gcc", so it can be a program name with args.
2990 set dummy gcc; ac_word=$2
2991 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2994 $as_echo_n "(cached) " >&6
2995 else
2996 if test -n "$ac_ct_CC"; then
2997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2998 else
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3001 do
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 ac_cv_prog_ac_ct_CC="gcc"
3007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 break 2
3009 fi
3010 done
3011 done
3012 IFS=$as_save_IFS
3013
3014 fi
3015 fi
3016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3017 if test -n "$ac_ct_CC"; then
3018 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3019 $as_echo "$ac_ct_CC" >&6; }
3020 else
3021 { $as_echo "$as_me:$LINENO: result: no" >&5
3022 $as_echo "no" >&6; }
3023 fi
3024
3025 if test "x$ac_ct_CC" = x; then
3026 CC=""
3027 else
3028 case $cross_compiling:$ac_tool_warned in
3029 yes:)
3030 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3031 whose name does not start with the host triplet. If you think this
3032 configuration is useful to you, please write to autoconf@gnu.org." >&5
3033 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3034 whose name does not start with the host triplet. If you think this
3035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3036 ac_tool_warned=yes ;;
3037 esac
3038 CC=$ac_ct_CC
3039 fi
3040 else
3041 CC="$ac_cv_prog_CC"
3042 fi
3043
3044 if test -z "$CC"; then
3045 if test -n "$ac_tool_prefix"; then
3046 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3047 set dummy ${ac_tool_prefix}cc; ac_word=$2
3048 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if test "${ac_cv_prog_CC+set}" = set; then
3051 $as_echo_n "(cached) " >&6
3052 else
3053 if test -n "$CC"; then
3054 ac_cv_prog_CC="$CC" # Let the user override the test.
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3058 do
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063 ac_cv_prog_CC="${ac_tool_prefix}cc"
3064 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3066 fi
3067 done
3068 done
3069 IFS=$as_save_IFS
3070
3071 fi
3072 fi
3073 CC=$ac_cv_prog_CC
3074 if test -n "$CC"; then
3075 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3076 $as_echo "$CC" >&6; }
3077 else
3078 { $as_echo "$as_me:$LINENO: result: no" >&5
3079 $as_echo "no" >&6; }
3080 fi
3081
3082
3083 fi
3084 fi
3085 if test -z "$CC"; then
3086 # Extract the first word of "cc", so it can be a program name with args.
3087 set dummy cc; ac_word=$2
3088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if test "${ac_cv_prog_CC+set}" = set; then
3091 $as_echo_n "(cached) " >&6
3092 else
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3095 else
3096 ac_prog_rejected=no
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3099 do
3100 IFS=$as_save_IFS
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3105 ac_prog_rejected=yes
3106 continue
3107 fi
3108 ac_cv_prog_CC="cc"
3109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 break 2
3111 fi
3112 done
3113 done
3114 IFS=$as_save_IFS
3115
3116 if test $ac_prog_rejected = yes; then
3117 # We found a bogon in the path, so make sure we never use it.
3118 set dummy $ac_cv_prog_CC
3119 shift
3120 if test $# != 0; then
3121 # We chose a different compiler from the bogus one.
3122 # However, it has the same basename, so the bogon will be chosen
3123 # first if we set CC to just the basename; use the full file name.
3124 shift
3125 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3126 fi
3127 fi
3128 fi
3129 fi
3130 CC=$ac_cv_prog_CC
3131 if test -n "$CC"; then
3132 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3133 $as_echo "$CC" >&6; }
3134 else
3135 { $as_echo "$as_me:$LINENO: result: no" >&5
3136 $as_echo "no" >&6; }
3137 fi
3138
3139
3140 fi
3141 if test -z "$CC"; then
3142 if test -n "$ac_tool_prefix"; then
3143 for ac_prog in cl.exe
3144 do
3145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if test "${ac_cv_prog_CC+set}" = set; then
3150 $as_echo_n "(cached) " >&6
3151 else
3152 if test -n "$CC"; then
3153 ac_cv_prog_CC="$CC" # Let the user override the test.
3154 else
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3157 do
3158 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3162 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 break 2
3165 fi
3166 done
3167 done
3168 IFS=$as_save_IFS
3169
3170 fi
3171 fi
3172 CC=$ac_cv_prog_CC
3173 if test -n "$CC"; then
3174 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3175 $as_echo "$CC" >&6; }
3176 else
3177 { $as_echo "$as_me:$LINENO: result: no" >&5
3178 $as_echo "no" >&6; }
3179 fi
3180
3181
3182 test -n "$CC" && break
3183 done
3184 fi
3185 if test -z "$CC"; then
3186 ac_ct_CC=$CC
3187 for ac_prog in cl.exe
3188 do
3189 # Extract the first word of "$ac_prog", so it can be a program name with args.
3190 set dummy $ac_prog; ac_word=$2
3191 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3194 $as_echo_n "(cached) " >&6
3195 else
3196 if test -n "$ac_ct_CC"; then
3197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202 IFS=$as_save_IFS
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206 ac_cv_prog_ac_ct_CC="$ac_prog"
3207 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 break 2
3209 fi
3210 done
3211 done
3212 IFS=$as_save_IFS
3213
3214 fi
3215 fi
3216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3217 if test -n "$ac_ct_CC"; then
3218 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3219 $as_echo "$ac_ct_CC" >&6; }
3220 else
3221 { $as_echo "$as_me:$LINENO: result: no" >&5
3222 $as_echo "no" >&6; }
3223 fi
3224
3225
3226 test -n "$ac_ct_CC" && break
3227 done
3228
3229 if test "x$ac_ct_CC" = x; then
3230 CC=""
3231 else
3232 case $cross_compiling:$ac_tool_warned in
3233 yes:)
3234 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3235 whose name does not start with the host triplet. If you think this
3236 configuration is useful to you, please write to autoconf@gnu.org." >&5
3237 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3238 whose name does not start with the host triplet. If you think this
3239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3240 ac_tool_warned=yes ;;
3241 esac
3242 CC=$ac_ct_CC
3243 fi
3244 fi
3245
3246 fi
3247
3248
3249 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3250 See \`config.log' for more details." >&5
3251 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3252 See \`config.log' for more details." >&2;}
3253 { (exit 1); exit 1; }; }
3254
3255 # Provide some information about the compiler.
3256 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3257 set X $ac_compile
3258 ac_compiler=$2
3259 { (ac_try="$ac_compiler --version >&5"
3260 case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3265 $as_echo "$ac_try_echo") >&5
3266 (eval "$ac_compiler --version >&5") 2>&5
3267 ac_status=$?
3268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }
3270 { (ac_try="$ac_compiler -v >&5"
3271 case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3276 $as_echo "$ac_try_echo") >&5
3277 (eval "$ac_compiler -v >&5") 2>&5
3278 ac_status=$?
3279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }
3281 { (ac_try="$ac_compiler -V >&5"
3282 case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3287 $as_echo "$ac_try_echo") >&5
3288 (eval "$ac_compiler -V >&5") 2>&5
3289 ac_status=$?
3290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }
3292
3293 cat >conftest.$ac_ext <<_ACEOF
3294 /* confdefs.h. */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3299
3300 int
3301 main ()
3302 {
3303
3304 ;
3305 return 0;
3306 }
3307 _ACEOF
3308 ac_clean_files_save=$ac_clean_files
3309 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3310 # Try to create an executable without -o first, disregard a.out.
3311 # It will help us diagnose broken compilers, and finding out an intuition
3312 # of exeext.
3313 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3314 $as_echo_n "checking for C compiler default output file name... " >&6; }
3315 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3316
3317 # The possible output files:
3318 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3319
3320 ac_rmfiles=
3321 for ac_file in $ac_files
3322 do
3323 case $ac_file in
3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3325 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3326 esac
3327 done
3328 rm -f $ac_rmfiles
3329
3330 if { (ac_try="$ac_link_default"
3331 case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334 esac
3335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3336 $as_echo "$ac_try_echo") >&5
3337 (eval "$ac_link_default") 2>&5
3338 ac_status=$?
3339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; then
3341 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3342 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3343 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3344 # so that the user can short-circuit this test for compilers unknown to
3345 # Autoconf.
3346 for ac_file in $ac_files ''
3347 do
3348 test -f "$ac_file" || continue
3349 case $ac_file in
3350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3351 ;;
3352 [ab].out )
3353 # We found the default executable, but exeext='' is most
3354 # certainly right.
3355 break;;
3356 *.* )
3357 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3358 then :; else
3359 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3360 fi
3361 # We set ac_cv_exeext here because the later test for it is not
3362 # safe: cross compilers may not add the suffix if given an `-o'
3363 # argument, so we may need to know it at that point already.
3364 # Even if this section looks crufty: it has the advantage of
3365 # actually working.
3366 break;;
3367 * )
3368 break;;
3369 esac
3370 done
3371 test "$ac_cv_exeext" = no && ac_cv_exeext=
3372
3373 else
3374 ac_file=''
3375 fi
3376
3377 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3378 $as_echo "$ac_file" >&6; }
3379 if test -z "$ac_file"; then
3380 $as_echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3384 See \`config.log' for more details." >&5
3385 $as_echo "$as_me: error: C compiler cannot create executables
3386 See \`config.log' for more details." >&2;}
3387 { (exit 77); exit 77; }; }
3388 fi
3389
3390 ac_exeext=$ac_cv_exeext
3391
3392 # Check that the compiler produces executables we can run. If not, either
3393 # the compiler is broken, or we cross compile.
3394 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3395 $as_echo_n "checking whether the C compiler works... " >&6; }
3396 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3397 # If not cross compiling, check that we can run a simple program.
3398 if test "$cross_compiling" != yes; then
3399 if { ac_try='./$ac_file'
3400 { (case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403 esac
3404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3405 $as_echo "$ac_try_echo") >&5
3406 (eval "$ac_try") 2>&5
3407 ac_status=$?
3408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; }; then
3410 cross_compiling=no
3411 else
3412 if test "$cross_compiling" = maybe; then
3413 cross_compiling=yes
3414 else
3415 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3416 If you meant to cross compile, use \`--host'.
3417 See \`config.log' for more details." >&5
3418 $as_echo "$as_me: error: cannot run C compiled programs.
3419 If you meant to cross compile, use \`--host'.
3420 See \`config.log' for more details." >&2;}
3421 { (exit 1); exit 1; }; }
3422 fi
3423 fi
3424 fi
3425 { $as_echo "$as_me:$LINENO: result: yes" >&5
3426 $as_echo "yes" >&6; }
3427
3428 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3429 ac_clean_files=$ac_clean_files_save
3430 # Check that the compiler produces executables we can run. If not, either
3431 # the compiler is broken, or we cross compile.
3432 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3433 $as_echo_n "checking whether we are cross compiling... " >&6; }
3434 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3435 $as_echo "$cross_compiling" >&6; }
3436
3437 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3438 $as_echo_n "checking for suffix of executables... " >&6; }
3439 if { (ac_try="$ac_link"
3440 case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443 esac
3444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3445 $as_echo "$ac_try_echo") >&5
3446 (eval "$ac_link") 2>&5
3447 ac_status=$?
3448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; then
3450 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3451 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3452 # work properly (i.e., refer to `conftest.exe'), while it won't with
3453 # `rm'.
3454 for ac_file in conftest.exe conftest conftest.*; do
3455 test -f "$ac_file" || continue
3456 case $ac_file in
3457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3458 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3459 break;;
3460 * ) break;;
3461 esac
3462 done
3463 else
3464 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3465 See \`config.log' for more details." >&5
3466 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3467 See \`config.log' for more details." >&2;}
3468 { (exit 1); exit 1; }; }
3469 fi
3470
3471 rm -f conftest$ac_cv_exeext
3472 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3473 $as_echo "$ac_cv_exeext" >&6; }
3474
3475 rm -f conftest.$ac_ext
3476 EXEEXT=$ac_cv_exeext
3477 ac_exeext=$EXEEXT
3478 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3479 $as_echo_n "checking for suffix of object files... " >&6; }
3480 if test "${ac_cv_objext+set}" = set; then
3481 $as_echo_n "(cached) " >&6
3482 else
3483 cat >conftest.$ac_ext <<_ACEOF
3484 /* confdefs.h. */
3485 _ACEOF
3486 cat confdefs.h >>conftest.$ac_ext
3487 cat >>conftest.$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3489
3490 int
3491 main ()
3492 {
3493
3494 ;
3495 return 0;
3496 }
3497 _ACEOF
3498 rm -f conftest.o conftest.obj
3499 if { (ac_try="$ac_compile"
3500 case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3503 esac
3504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3505 $as_echo "$ac_try_echo") >&5
3506 (eval "$ac_compile") 2>&5
3507 ac_status=$?
3508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; then
3510 for ac_file in conftest.o conftest.obj conftest.*; do
3511 test -f "$ac_file" || continue;
3512 case $ac_file in
3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3514 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3515 break;;
3516 esac
3517 done
3518 else
3519 $as_echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3521
3522 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3523 See \`config.log' for more details." >&5
3524 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3525 See \`config.log' for more details." >&2;}
3526 { (exit 1); exit 1; }; }
3527 fi
3528
3529 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3530 fi
3531 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3532 $as_echo "$ac_cv_objext" >&6; }
3533 OBJEXT=$ac_cv_objext
3534 ac_objext=$OBJEXT
3535 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3536 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3537 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3538 $as_echo_n "(cached) " >&6
3539 else
3540 cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h. */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3546
3547 int
3548 main ()
3549 {
3550 #ifndef __GNUC__
3551 choke me
3552 #endif
3553
3554 ;
3555 return 0;
3556 }
3557 _ACEOF
3558 rm -f conftest.$ac_objext
3559 if { (ac_try="$ac_compile"
3560 case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563 esac
3564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3565 $as_echo "$ac_try_echo") >&5
3566 (eval "$ac_compile") 2>conftest.er1
3567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } && {
3573 test -z "$ac_c_werror_flag" ||
3574 test ! -s conftest.err
3575 } && test -s conftest.$ac_objext; then
3576 ac_compiler_gnu=yes
3577 else
3578 $as_echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3580
3581 ac_compiler_gnu=no
3582 fi
3583
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3586
3587 fi
3588 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3589 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3590 if test $ac_compiler_gnu = yes; then
3591 GCC=yes
3592 else
3593 GCC=
3594 fi
3595 ac_test_CFLAGS=${CFLAGS+set}
3596 ac_save_CFLAGS=$CFLAGS
3597 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3598 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3599 if test "${ac_cv_prog_cc_g+set}" = set; then
3600 $as_echo_n "(cached) " >&6
3601 else
3602 ac_save_c_werror_flag=$ac_c_werror_flag
3603 ac_c_werror_flag=yes
3604 ac_cv_prog_cc_g=no
3605 CFLAGS="-g"
3606 cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h. */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3612
3613 int
3614 main ()
3615 {
3616
3617 ;
3618 return 0;
3619 }
3620 _ACEOF
3621 rm -f conftest.$ac_objext
3622 if { (ac_try="$ac_compile"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3628 $as_echo "$ac_try_echo") >&5
3629 (eval "$ac_compile") 2>conftest.er1
3630 ac_status=$?
3631 grep -v '^ *+' conftest.er1 >conftest.err
3632 rm -f conftest.er1
3633 cat conftest.err >&5
3634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } && {
3636 test -z "$ac_c_werror_flag" ||
3637 test ! -s conftest.err
3638 } && test -s conftest.$ac_objext; then
3639 ac_cv_prog_cc_g=yes
3640 else
3641 $as_echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3643
3644 CFLAGS=""
3645 cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h. */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3651
3652 int
3653 main ()
3654 {
3655
3656 ;
3657 return 0;
3658 }
3659 _ACEOF
3660 rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3662 case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3667 $as_echo "$ac_try_echo") >&5
3668 (eval "$ac_compile") 2>conftest.er1
3669 ac_status=$?
3670 grep -v '^ *+' conftest.er1 >conftest.err
3671 rm -f conftest.er1
3672 cat conftest.err >&5
3673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } && {
3675 test -z "$ac_c_werror_flag" ||
3676 test ! -s conftest.err
3677 } && test -s conftest.$ac_objext; then
3678 :
3679 else
3680 $as_echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3682
3683 ac_c_werror_flag=$ac_save_c_werror_flag
3684 CFLAGS="-g"
3685 cat >conftest.$ac_ext <<_ACEOF
3686 /* confdefs.h. */
3687 _ACEOF
3688 cat confdefs.h >>conftest.$ac_ext
3689 cat >>conftest.$ac_ext <<_ACEOF
3690 /* end confdefs.h. */
3691
3692 int
3693 main ()
3694 {
3695
3696 ;
3697 return 0;
3698 }
3699 _ACEOF
3700 rm -f conftest.$ac_objext
3701 if { (ac_try="$ac_compile"
3702 case "(($ac_try" in
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3705 esac
3706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3707 $as_echo "$ac_try_echo") >&5
3708 (eval "$ac_compile") 2>conftest.er1
3709 ac_status=$?
3710 grep -v '^ *+' conftest.er1 >conftest.err
3711 rm -f conftest.er1
3712 cat conftest.err >&5
3713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } && {
3715 test -z "$ac_c_werror_flag" ||
3716 test ! -s conftest.err
3717 } && test -s conftest.$ac_objext; then
3718 ac_cv_prog_cc_g=yes
3719 else
3720 $as_echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3722
3723
3724 fi
3725
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 fi
3728
3729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730 fi
3731
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733 ac_c_werror_flag=$ac_save_c_werror_flag
3734 fi
3735 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3736 $as_echo "$ac_cv_prog_cc_g" >&6; }
3737 if test "$ac_test_CFLAGS" = set; then
3738 CFLAGS=$ac_save_CFLAGS
3739 elif test $ac_cv_prog_cc_g = yes; then
3740 if test "$GCC" = yes; then
3741 CFLAGS="-g -O2"
3742 else
3743 CFLAGS="-g"
3744 fi
3745 else
3746 if test "$GCC" = yes; then
3747 CFLAGS="-O2"
3748 else
3749 CFLAGS=
3750 fi
3751 fi
3752 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3753 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3754 if test "${ac_cv_prog_cc_c89+set}" = set; then
3755 $as_echo_n "(cached) " >&6
3756 else
3757 ac_cv_prog_cc_c89=no
3758 ac_save_CC=$CC
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h. */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 #include <stdarg.h>
3766 #include <stdio.h>
3767 #include <sys/types.h>
3768 #include <sys/stat.h>
3769 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3770 struct buf { int x; };
3771 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3772 static char *e (p, i)
3773 char **p;
3774 int i;
3775 {
3776 return p[i];
3777 }
3778 static char *f (char * (*g) (char **, int), char **p, ...)
3779 {
3780 char *s;
3781 va_list v;
3782 va_start (v,p);
3783 s = g (p, va_arg (v,int));
3784 va_end (v);
3785 return s;
3786 }
3787
3788 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3789 function prototypes and stuff, but not '\xHH' hex character constants.
3790 These don't provoke an error unfortunately, instead are silently treated
3791 as 'x'. The following induces an error, until -std is added to get
3792 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3793 array size at least. It's necessary to write '\x00'==0 to get something
3794 that's true only with -std. */
3795 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3796
3797 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3798 inside strings and character constants. */
3799 #define FOO(x) 'x'
3800 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3801
3802 int test (int i, double x);
3803 struct s1 {int (*f) (int a);};
3804 struct s2 {int (*f) (double a);};
3805 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3806 int argc;
3807 char **argv;
3808 int
3809 main ()
3810 {
3811 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3812 ;
3813 return 0;
3814 }
3815 _ACEOF
3816 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3817 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3818 do
3819 CC="$ac_save_CC $ac_arg"
3820 rm -f conftest.$ac_objext
3821 if { (ac_try="$ac_compile"
3822 case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825 esac
3826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3827 $as_echo "$ac_try_echo") >&5
3828 (eval "$ac_compile") 2>conftest.er1
3829 ac_status=$?
3830 grep -v '^ *+' conftest.er1 >conftest.err
3831 rm -f conftest.er1
3832 cat conftest.err >&5
3833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } && {
3835 test -z "$ac_c_werror_flag" ||
3836 test ! -s conftest.err
3837 } && test -s conftest.$ac_objext; then
3838 ac_cv_prog_cc_c89=$ac_arg
3839 else
3840 $as_echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3842
3843
3844 fi
3845
3846 rm -f core conftest.err conftest.$ac_objext
3847 test "x$ac_cv_prog_cc_c89" != "xno" && break
3848 done
3849 rm -f conftest.$ac_ext
3850 CC=$ac_save_CC
3851
3852 fi
3853 # AC_CACHE_VAL
3854 case "x$ac_cv_prog_cc_c89" in
3855 x)
3856 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3857 $as_echo "none needed" >&6; } ;;
3858 xno)
3859 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3860 $as_echo "unsupported" >&6; } ;;
3861 *)
3862 CC="$CC $ac_cv_prog_cc_c89"
3863 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3864 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3865 esac
3866
3867
3868 ac_ext=c
3869 ac_cpp='$CPP $CPPFLAGS'
3870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3873
3874
3875 # On Suns, sometimes $CPP names a directory.
3876 if test -n "$CPP" && test -d "$CPP"; then
3877 CPP=
3878 fi
3879
3880 ## If not using gcc, and on Solaris, and no CPP specified, see if
3881 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3882 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3883 test x"$CPP" = x; then
3884 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3885 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3886
3887 if test "${emacs_cv_sunpro_c+set}" = set; then
3888 $as_echo_n "(cached) " >&6
3889 else
3890 cat >conftest.$ac_ext <<_ACEOF
3891 /* confdefs.h. */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3896
3897 int
3898 main ()
3899 {
3900 #ifndef __SUNPRO_C
3901 fail;
3902 #endif
3903
3904 ;
3905 return 0;
3906 }
3907 _ACEOF
3908 rm -f conftest.$ac_objext conftest$ac_exeext
3909 if { (ac_try="$ac_link"
3910 case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913 esac
3914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3915 $as_echo "$ac_try_echo") >&5
3916 (eval "$ac_link") 2>conftest.er1
3917 ac_status=$?
3918 grep -v '^ *+' conftest.er1 >conftest.err
3919 rm -f conftest.er1
3920 cat conftest.err >&5
3921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } && {
3923 test -z "$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 } && test -s conftest$ac_exeext && {
3926 test "$cross_compiling" = yes ||
3927 $as_test_x conftest$ac_exeext
3928 }; then
3929 emacs_cv_sunpro_c=yes
3930 else
3931 $as_echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3933
3934 emacs_cv_sunpro_c=no
3935 fi
3936
3937 rm -rf conftest.dSYM
3938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3939 conftest$ac_exeext conftest.$ac_ext
3940 fi
3941
3942 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3943 $as_echo "$emacs_cv_sunpro_c" >&6; }
3944
3945 if test x"$emacs_cv_sunpro_c" = xyes; then
3946 NON_GNU_CPP="$CC -E -Xs"
3947 fi
3948 fi
3949
3950 #### Some systems specify a CPP to use unless we are using GCC.
3951 #### Now that we know whether we are using GCC, we can decide whether
3952 #### to use that one.
3953 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3954 then
3955 CPP="$NON_GNU_CPP"
3956 fi
3957
3958 #### Some systems specify a CC to use unless we are using GCC.
3959 #### Now that we know whether we are using GCC, we can decide whether
3960 #### to use that one.
3961 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3962 test x$cc_specified != xyes
3963 then
3964 CC="$NON_GNU_CC"
3965 fi
3966
3967 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3968 then
3969 CC="$CC $GCC_TEST_OPTIONS"
3970 fi
3971
3972 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3973 then
3974 CC="$CC $NON_GCC_TEST_OPTIONS"
3975 fi
3976
3977 ac_ext=c
3978 ac_cpp='$CPP $CPPFLAGS'
3979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3982 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3983 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3984 # On Suns, sometimes $CPP names a directory.
3985 if test -n "$CPP" && test -d "$CPP"; then
3986 CPP=
3987 fi
3988 if test -z "$CPP"; then
3989 if test "${ac_cv_prog_CPP+set}" = set; then
3990 $as_echo_n "(cached) " >&6
3991 else
3992 # Double quotes because CPP needs to be expanded
3993 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3994 do
3995 ac_preproc_ok=false
3996 for ac_c_preproc_warn_flag in '' yes
3997 do
3998 # Use a header file that comes with gcc, so configuring glibc
3999 # with a fresh cross-compiler works.
4000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4001 # <limits.h> exists even on freestanding compilers.
4002 # On the NeXT, cc -E runs the code through the compiler's parser,
4003 # not just through cpp. "Syntax error" is here to catch this case.
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h. */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 #ifdef __STDC__
4011 # include <limits.h>
4012 #else
4013 # include <assert.h>
4014 #endif
4015 Syntax error
4016 _ACEOF
4017 if { (ac_try="$ac_cpp conftest.$ac_ext"
4018 case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4021 esac
4022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4023 $as_echo "$ac_try_echo") >&5
4024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4025 ac_status=$?
4026 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1
4028 cat conftest.err >&5
4029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } >/dev/null && {
4031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4032 test ! -s conftest.err
4033 }; then
4034 :
4035 else
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4038
4039 # Broken: fails on valid input.
4040 continue
4041 fi
4042
4043 rm -f conftest.err conftest.$ac_ext
4044
4045 # OK, works on sane cases. Now check whether nonexistent headers
4046 # can be detected and how.
4047 cat >conftest.$ac_ext <<_ACEOF
4048 /* confdefs.h. */
4049 _ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4053 #include <ac_nonexistent.h>
4054 _ACEOF
4055 if { (ac_try="$ac_cpp conftest.$ac_ext"
4056 case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059 esac
4060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4061 $as_echo "$ac_try_echo") >&5
4062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
4067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } >/dev/null && {
4069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4070 test ! -s conftest.err
4071 }; then
4072 # Broken: success on invalid input.
4073 continue
4074 else
4075 $as_echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4077
4078 # Passes both tests.
4079 ac_preproc_ok=:
4080 break
4081 fi
4082
4083 rm -f conftest.err conftest.$ac_ext
4084
4085 done
4086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4087 rm -f conftest.err conftest.$ac_ext
4088 if $ac_preproc_ok; then
4089 break
4090 fi
4091
4092 done
4093 ac_cv_prog_CPP=$CPP
4094
4095 fi
4096 CPP=$ac_cv_prog_CPP
4097 else
4098 ac_cv_prog_CPP=$CPP
4099 fi
4100 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4101 $as_echo "$CPP" >&6; }
4102 ac_preproc_ok=false
4103 for ac_c_preproc_warn_flag in '' yes
4104 do
4105 # Use a header file that comes with gcc, so configuring glibc
4106 # with a fresh cross-compiler works.
4107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4108 # <limits.h> exists even on freestanding compilers.
4109 # On the NeXT, cc -E runs the code through the compiler's parser,
4110 # not just through cpp. "Syntax error" is here to catch this case.
4111 cat >conftest.$ac_ext <<_ACEOF
4112 /* confdefs.h. */
4113 _ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4117 #ifdef __STDC__
4118 # include <limits.h>
4119 #else
4120 # include <assert.h>
4121 #endif
4122 Syntax error
4123 _ACEOF
4124 if { (ac_try="$ac_cpp conftest.$ac_ext"
4125 case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128 esac
4129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4130 $as_echo "$ac_try_echo") >&5
4131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4132 ac_status=$?
4133 grep -v '^ *+' conftest.er1 >conftest.err
4134 rm -f conftest.er1
4135 cat conftest.err >&5
4136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } >/dev/null && {
4138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4139 test ! -s conftest.err
4140 }; then
4141 :
4142 else
4143 $as_echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4145
4146 # Broken: fails on valid input.
4147 continue
4148 fi
4149
4150 rm -f conftest.err conftest.$ac_ext
4151
4152 # OK, works on sane cases. Now check whether nonexistent headers
4153 # can be detected and how.
4154 cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h. */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4160 #include <ac_nonexistent.h>
4161 _ACEOF
4162 if { (ac_try="$ac_cpp conftest.$ac_ext"
4163 case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166 esac
4167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4168 $as_echo "$ac_try_echo") >&5
4169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4170 ac_status=$?
4171 grep -v '^ *+' conftest.er1 >conftest.err
4172 rm -f conftest.er1
4173 cat conftest.err >&5
4174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } >/dev/null && {
4176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4177 test ! -s conftest.err
4178 }; then
4179 # Broken: success on invalid input.
4180 continue
4181 else
4182 $as_echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4184
4185 # Passes both tests.
4186 ac_preproc_ok=:
4187 break
4188 fi
4189
4190 rm -f conftest.err conftest.$ac_ext
4191
4192 done
4193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4194 rm -f conftest.err conftest.$ac_ext
4195 if $ac_preproc_ok; then
4196 :
4197 else
4198 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4199 See \`config.log' for more details." >&5
4200 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4201 See \`config.log' for more details." >&2;}
4202 { (exit 1); exit 1; }; }
4203 fi
4204
4205 ac_ext=c
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210
4211
4212 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4213 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4214 if test "${ac_cv_path_GREP+set}" = set; then
4215 $as_echo_n "(cached) " >&6
4216 else
4217 if test -z "$GREP"; then
4218 ac_path_GREP_found=false
4219 # Loop through the user's path and test for each of PROGNAME-LIST
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4222 do
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_prog in grep ggrep; do
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4228 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4229 # Check for GNU ac_path_GREP and select it if it is found.
4230 # Check for GNU $ac_path_GREP
4231 case `"$ac_path_GREP" --version 2>&1` in
4232 *GNU*)
4233 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4234 *)
4235 ac_count=0
4236 $as_echo_n 0123456789 >"conftest.in"
4237 while :
4238 do
4239 cat "conftest.in" "conftest.in" >"conftest.tmp"
4240 mv "conftest.tmp" "conftest.in"
4241 cp "conftest.in" "conftest.nl"
4242 $as_echo 'GREP' >> "conftest.nl"
4243 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4245 ac_count=`expr $ac_count + 1`
4246 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4247 # Best one so far, save it but keep looking for a better one
4248 ac_cv_path_GREP="$ac_path_GREP"
4249 ac_path_GREP_max=$ac_count
4250 fi
4251 # 10*(2^10) chars as input seems more than enough
4252 test $ac_count -gt 10 && break
4253 done
4254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4255 esac
4256
4257 $ac_path_GREP_found && break 3
4258 done
4259 done
4260 done
4261 IFS=$as_save_IFS
4262 if test -z "$ac_cv_path_GREP"; then
4263 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4264 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4265 { (exit 1); exit 1; }; }
4266 fi
4267 else
4268 ac_cv_path_GREP=$GREP
4269 fi
4270
4271 fi
4272 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4273 $as_echo "$ac_cv_path_GREP" >&6; }
4274 GREP="$ac_cv_path_GREP"
4275
4276
4277 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4278 $as_echo_n "checking for egrep... " >&6; }
4279 if test "${ac_cv_path_EGREP+set}" = set; then
4280 $as_echo_n "(cached) " >&6
4281 else
4282 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4283 then ac_cv_path_EGREP="$GREP -E"
4284 else
4285 if test -z "$EGREP"; then
4286 ac_path_EGREP_found=false
4287 # Loop through the user's path and test for each of PROGNAME-LIST
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4290 do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_prog in egrep; do
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4296 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4297 # Check for GNU ac_path_EGREP and select it if it is found.
4298 # Check for GNU $ac_path_EGREP
4299 case `"$ac_path_EGREP" --version 2>&1` in
4300 *GNU*)
4301 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4302 *)
4303 ac_count=0
4304 $as_echo_n 0123456789 >"conftest.in"
4305 while :
4306 do
4307 cat "conftest.in" "conftest.in" >"conftest.tmp"
4308 mv "conftest.tmp" "conftest.in"
4309 cp "conftest.in" "conftest.nl"
4310 $as_echo 'EGREP' >> "conftest.nl"
4311 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4312 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4313 ac_count=`expr $ac_count + 1`
4314 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4315 # Best one so far, save it but keep looking for a better one
4316 ac_cv_path_EGREP="$ac_path_EGREP"
4317 ac_path_EGREP_max=$ac_count
4318 fi
4319 # 10*(2^10) chars as input seems more than enough
4320 test $ac_count -gt 10 && break
4321 done
4322 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4323 esac
4324
4325 $ac_path_EGREP_found && break 3
4326 done
4327 done
4328 done
4329 IFS=$as_save_IFS
4330 if test -z "$ac_cv_path_EGREP"; then
4331 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4332 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4333 { (exit 1); exit 1; }; }
4334 fi
4335 else
4336 ac_cv_path_EGREP=$EGREP
4337 fi
4338
4339 fi
4340 fi
4341 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4342 $as_echo "$ac_cv_path_EGREP" >&6; }
4343 EGREP="$ac_cv_path_EGREP"
4344
4345
4346 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4347 $as_echo_n "checking for ANSI C header files... " >&6; }
4348 if test "${ac_cv_header_stdc+set}" = set; then
4349 $as_echo_n "(cached) " >&6
4350 else
4351 cat >conftest.$ac_ext <<_ACEOF
4352 /* confdefs.h. */
4353 _ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4357 #include <stdlib.h>
4358 #include <stdarg.h>
4359 #include <string.h>
4360 #include <float.h>
4361
4362 int
4363 main ()
4364 {
4365
4366 ;
4367 return 0;
4368 }
4369 _ACEOF
4370 rm -f conftest.$ac_objext
4371 if { (ac_try="$ac_compile"
4372 case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375 esac
4376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4377 $as_echo "$ac_try_echo") >&5
4378 (eval "$ac_compile") 2>conftest.er1
4379 ac_status=$?
4380 grep -v '^ *+' conftest.er1 >conftest.err
4381 rm -f conftest.er1
4382 cat conftest.err >&5
4383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } && {
4385 test -z "$ac_c_werror_flag" ||
4386 test ! -s conftest.err
4387 } && test -s conftest.$ac_objext; then
4388 ac_cv_header_stdc=yes
4389 else
4390 $as_echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393 ac_cv_header_stdc=no
4394 fi
4395
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397
4398 if test $ac_cv_header_stdc = yes; then
4399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4400 cat >conftest.$ac_ext <<_ACEOF
4401 /* confdefs.h. */
4402 _ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h. */
4406 #include <string.h>
4407
4408 _ACEOF
4409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4410 $EGREP "memchr" >/dev/null 2>&1; then
4411 :
4412 else
4413 ac_cv_header_stdc=no
4414 fi
4415 rm -f conftest*
4416
4417 fi
4418
4419 if test $ac_cv_header_stdc = yes; then
4420 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4421 cat >conftest.$ac_ext <<_ACEOF
4422 /* confdefs.h. */
4423 _ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4427 #include <stdlib.h>
4428
4429 _ACEOF
4430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4431 $EGREP "free" >/dev/null 2>&1; then
4432 :
4433 else
4434 ac_cv_header_stdc=no
4435 fi
4436 rm -f conftest*
4437
4438 fi
4439
4440 if test $ac_cv_header_stdc = yes; then
4441 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4442 if test "$cross_compiling" = yes; then
4443 :
4444 else
4445 cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h. */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 #include <ctype.h>
4452 #include <stdlib.h>
4453 #if ((' ' & 0x0FF) == 0x020)
4454 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4455 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4456 #else
4457 # define ISLOWER(c) \
4458 (('a' <= (c) && (c) <= 'i') \
4459 || ('j' <= (c) && (c) <= 'r') \
4460 || ('s' <= (c) && (c) <= 'z'))
4461 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4462 #endif
4463
4464 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4465 int
4466 main ()
4467 {
4468 int i;
4469 for (i = 0; i < 256; i++)
4470 if (XOR (islower (i), ISLOWER (i))
4471 || toupper (i) != TOUPPER (i))
4472 return 2;
4473 return 0;
4474 }
4475 _ACEOF
4476 rm -f conftest$ac_exeext
4477 if { (ac_try="$ac_link"
4478 case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4481 esac
4482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4483 $as_echo "$ac_try_echo") >&5
4484 (eval "$ac_link") 2>&5
4485 ac_status=$?
4486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4488 { (case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491 esac
4492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4493 $as_echo "$ac_try_echo") >&5
4494 (eval "$ac_try") 2>&5
4495 ac_status=$?
4496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; }; then
4498 :
4499 else
4500 $as_echo "$as_me: program exited with status $ac_status" >&5
4501 $as_echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4503
4504 ( exit $ac_status )
4505 ac_cv_header_stdc=no
4506 fi
4507 rm -rf conftest.dSYM
4508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4509 fi
4510
4511
4512 fi
4513 fi
4514 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4515 $as_echo "$ac_cv_header_stdc" >&6; }
4516 if test $ac_cv_header_stdc = yes; then
4517
4518 cat >>confdefs.h <<\_ACEOF
4519 #define STDC_HEADERS 1
4520 _ACEOF
4521
4522 fi
4523
4524 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4535 inttypes.h stdint.h unistd.h
4536 do
4537 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4538 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4539 $as_echo_n "checking for $ac_header... " >&6; }
4540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4541 $as_echo_n "(cached) " >&6
4542 else
4543 cat >conftest.$ac_ext <<_ACEOF
4544 /* confdefs.h. */
4545 _ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4549 $ac_includes_default
4550
4551 #include <$ac_header>
4552 _ACEOF
4553 rm -f conftest.$ac_objext
4554 if { (ac_try="$ac_compile"
4555 case "(($ac_try" in
4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557 *) ac_try_echo=$ac_try;;
4558 esac
4559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4560 $as_echo "$ac_try_echo") >&5
4561 (eval "$ac_compile") 2>conftest.er1
4562 ac_status=$?
4563 grep -v '^ *+' conftest.er1 >conftest.err
4564 rm -f conftest.er1
4565 cat conftest.err >&5
4566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } && {
4568 test -z "$ac_c_werror_flag" ||
4569 test ! -s conftest.err
4570 } && test -s conftest.$ac_objext; then
4571 eval "$as_ac_Header=yes"
4572 else
4573 $as_echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4575
4576 eval "$as_ac_Header=no"
4577 fi
4578
4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 fi
4581 ac_res=`eval 'as_val=${'$as_ac_Header'}
4582 $as_echo "$as_val"'`
4583 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4584 $as_echo "$ac_res" >&6; }
4585 if test `eval 'as_val=${'$as_ac_Header'}
4586 $as_echo "$as_val"'` = yes; then
4587 cat >>confdefs.h <<_ACEOF
4588 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4589 _ACEOF
4590
4591 fi
4592
4593 done
4594
4595
4596
4597 if test "${ac_cv_header_minix_config_h+set}" = set; then
4598 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4599 $as_echo_n "checking for minix/config.h... " >&6; }
4600 if test "${ac_cv_header_minix_config_h+set}" = set; then
4601 $as_echo_n "(cached) " >&6
4602 fi
4603 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4604 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4605 else
4606 # Is the header compilable?
4607 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4608 $as_echo_n "checking minix/config.h usability... " >&6; }
4609 cat >conftest.$ac_ext <<_ACEOF
4610 /* confdefs.h. */
4611 _ACEOF
4612 cat confdefs.h >>conftest.$ac_ext
4613 cat >>conftest.$ac_ext <<_ACEOF
4614 /* end confdefs.h. */
4615 $ac_includes_default
4616 #include <minix/config.h>
4617 _ACEOF
4618 rm -f conftest.$ac_objext
4619 if { (ac_try="$ac_compile"
4620 case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623 esac
4624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4625 $as_echo "$ac_try_echo") >&5
4626 (eval "$ac_compile") 2>conftest.er1
4627 ac_status=$?
4628 grep -v '^ *+' conftest.er1 >conftest.err
4629 rm -f conftest.er1
4630 cat conftest.err >&5
4631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } && {
4633 test -z "$ac_c_werror_flag" ||
4634 test ! -s conftest.err
4635 } && test -s conftest.$ac_objext; then
4636 ac_header_compiler=yes
4637 else
4638 $as_echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4640
4641 ac_header_compiler=no
4642 fi
4643
4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4646 $as_echo "$ac_header_compiler" >&6; }
4647
4648 # Is the header present?
4649 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4650 $as_echo_n "checking minix/config.h presence... " >&6; }
4651 cat >conftest.$ac_ext <<_ACEOF
4652 /* confdefs.h. */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4657 #include <minix/config.h>
4658 _ACEOF
4659 if { (ac_try="$ac_cpp conftest.$ac_ext"
4660 case "(($ac_try" in
4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4663 esac
4664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4665 $as_echo "$ac_try_echo") >&5
4666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4667 ac_status=$?
4668 grep -v '^ *+' conftest.er1 >conftest.err
4669 rm -f conftest.er1
4670 cat conftest.err >&5
4671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } >/dev/null && {
4673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4674 test ! -s conftest.err
4675 }; then
4676 ac_header_preproc=yes
4677 else
4678 $as_echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4680
4681 ac_header_preproc=no
4682 fi
4683
4684 rm -f conftest.err conftest.$ac_ext
4685 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4686 $as_echo "$ac_header_preproc" >&6; }
4687
4688 # So? What about this header?
4689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4690 yes:no: )
4691 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4692 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4693 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4694 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4695 ac_header_preproc=yes
4696 ;;
4697 no:yes:* )
4698 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4699 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4700 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4701 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4702 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4703 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4704 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4705 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4706 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4707 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4708 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4709 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4710
4711 ;;
4712 esac
4713 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4714 $as_echo_n "checking for minix/config.h... " >&6; }
4715 if test "${ac_cv_header_minix_config_h+set}" = set; then
4716 $as_echo_n "(cached) " >&6
4717 else
4718 ac_cv_header_minix_config_h=$ac_header_preproc
4719 fi
4720 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4721 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4722
4723 fi
4724 if test $ac_cv_header_minix_config_h = yes; then
4725 MINIX=yes
4726 else
4727 MINIX=
4728 fi
4729
4730
4731 if test "$MINIX" = yes; then
4732
4733 cat >>confdefs.h <<\_ACEOF
4734 #define _POSIX_SOURCE 1
4735 _ACEOF
4736
4737
4738 cat >>confdefs.h <<\_ACEOF
4739 #define _POSIX_1_SOURCE 2
4740 _ACEOF
4741
4742
4743 cat >>confdefs.h <<\_ACEOF
4744 #define _MINIX 1
4745 _ACEOF
4746
4747 fi
4748
4749
4750
4751 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4752 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4753 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4754 $as_echo_n "(cached) " >&6
4755 else
4756 cat >conftest.$ac_ext <<_ACEOF
4757 /* confdefs.h. */
4758 _ACEOF
4759 cat confdefs.h >>conftest.$ac_ext
4760 cat >>conftest.$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4762
4763 # define __EXTENSIONS__ 1
4764 $ac_includes_default
4765 int
4766 main ()
4767 {
4768
4769 ;
4770 return 0;
4771 }
4772 _ACEOF
4773 rm -f conftest.$ac_objext
4774 if { (ac_try="$ac_compile"
4775 case "(($ac_try" in
4776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4777 *) ac_try_echo=$ac_try;;
4778 esac
4779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4780 $as_echo "$ac_try_echo") >&5
4781 (eval "$ac_compile") 2>conftest.er1
4782 ac_status=$?
4783 grep -v '^ *+' conftest.er1 >conftest.err
4784 rm -f conftest.er1
4785 cat conftest.err >&5
4786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } && {
4788 test -z "$ac_c_werror_flag" ||
4789 test ! -s conftest.err
4790 } && test -s conftest.$ac_objext; then
4791 ac_cv_safe_to_define___extensions__=yes
4792 else
4793 $as_echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4795
4796 ac_cv_safe_to_define___extensions__=no
4797 fi
4798
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800 fi
4801 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4802 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4803 test $ac_cv_safe_to_define___extensions__ = yes &&
4804 cat >>confdefs.h <<\_ACEOF
4805 #define __EXTENSIONS__ 1
4806 _ACEOF
4807
4808 cat >>confdefs.h <<\_ACEOF
4809 #define _ALL_SOURCE 1
4810 _ACEOF
4811
4812 cat >>confdefs.h <<\_ACEOF
4813 #define _GNU_SOURCE 1
4814 _ACEOF
4815
4816 cat >>confdefs.h <<\_ACEOF
4817 #define _POSIX_PTHREAD_SEMANTICS 1
4818 _ACEOF
4819
4820 cat >>confdefs.h <<\_ACEOF
4821 #define _TANDEM_SOURCE 1
4822 _ACEOF
4823
4824
4825
4826 ### Use -Wno-pointer-sign if the compiler supports it
4827 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4828 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4829 SAVE_CFLAGS="$CFLAGS"
4830 CFLAGS="$CFLAGS -Wno-pointer-sign"
4831 cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h. */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837
4838 int
4839 main ()
4840 {
4841
4842 ;
4843 return 0;
4844 }
4845 _ACEOF
4846 rm -f conftest.$ac_objext
4847 if { (ac_try="$ac_compile"
4848 case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851 esac
4852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4853 $as_echo "$ac_try_echo") >&5
4854 (eval "$ac_compile") 2>conftest.er1
4855 ac_status=$?
4856 grep -v '^ *+' conftest.er1 >conftest.err
4857 rm -f conftest.er1
4858 cat conftest.err >&5
4859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } && {
4861 test -z "$ac_c_werror_flag" ||
4862 test ! -s conftest.err
4863 } && test -s conftest.$ac_objext; then
4864 has_option=yes
4865 else
4866 $as_echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4868
4869 has_option=no
4870 fi
4871
4872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 if test $has_option = yes; then
4874 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4875 fi
4876 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4877 $as_echo "$has_option" >&6; }
4878 CFLAGS="$SAVE_CFLAGS"
4879 unset has_option
4880 unset SAVE_CFLAGS
4881
4882 #### Some other nice autoconf tests.
4883
4884 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4885 $as_echo_n "checking whether ln -s works... " >&6; }
4886 LN_S=$as_ln_s
4887 if test "$LN_S" = "ln -s"; then
4888 { $as_echo "$as_me:$LINENO: result: yes" >&5
4889 $as_echo "yes" >&6; }
4890 else
4891 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4892 $as_echo "no, using $LN_S" >&6; }
4893 fi
4894
4895 ac_ext=c
4896 ac_cpp='$CPP $CPPFLAGS'
4897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4900 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4901 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4902 # On Suns, sometimes $CPP names a directory.
4903 if test -n "$CPP" && test -d "$CPP"; then
4904 CPP=
4905 fi
4906 if test -z "$CPP"; then
4907 if test "${ac_cv_prog_CPP+set}" = set; then
4908 $as_echo_n "(cached) " >&6
4909 else
4910 # Double quotes because CPP needs to be expanded
4911 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4912 do
4913 ac_preproc_ok=false
4914 for ac_c_preproc_warn_flag in '' yes
4915 do
4916 # Use a header file that comes with gcc, so configuring glibc
4917 # with a fresh cross-compiler works.
4918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4919 # <limits.h> exists even on freestanding compilers.
4920 # On the NeXT, cc -E runs the code through the compiler's parser,
4921 # not just through cpp. "Syntax error" is here to catch this case.
4922 cat >conftest.$ac_ext <<_ACEOF
4923 /* confdefs.h. */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4928 #ifdef __STDC__
4929 # include <limits.h>
4930 #else
4931 # include <assert.h>
4932 #endif
4933 Syntax error
4934 _ACEOF
4935 if { (ac_try="$ac_cpp conftest.$ac_ext"
4936 case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939 esac
4940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4941 $as_echo "$ac_try_echo") >&5
4942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4943 ac_status=$?
4944 grep -v '^ *+' conftest.er1 >conftest.err
4945 rm -f conftest.er1
4946 cat conftest.err >&5
4947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } >/dev/null && {
4949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4950 test ! -s conftest.err
4951 }; then
4952 :
4953 else
4954 $as_echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4956
4957 # Broken: fails on valid input.
4958 continue
4959 fi
4960
4961 rm -f conftest.err conftest.$ac_ext
4962
4963 # OK, works on sane cases. Now check whether nonexistent headers
4964 # can be detected and how.
4965 cat >conftest.$ac_ext <<_ACEOF
4966 /* confdefs.h. */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4971 #include <ac_nonexistent.h>
4972 _ACEOF
4973 if { (ac_try="$ac_cpp conftest.$ac_ext"
4974 case "(($ac_try" in
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4977 esac
4978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4979 $as_echo "$ac_try_echo") >&5
4980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4981 ac_status=$?
4982 grep -v '^ *+' conftest.er1 >conftest.err
4983 rm -f conftest.er1
4984 cat conftest.err >&5
4985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } >/dev/null && {
4987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4988 test ! -s conftest.err
4989 }; then
4990 # Broken: success on invalid input.
4991 continue
4992 else
4993 $as_echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4995
4996 # Passes both tests.
4997 ac_preproc_ok=:
4998 break
4999 fi
5000
5001 rm -f conftest.err conftest.$ac_ext
5002
5003 done
5004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5005 rm -f conftest.err conftest.$ac_ext
5006 if $ac_preproc_ok; then
5007 break
5008 fi
5009
5010 done
5011 ac_cv_prog_CPP=$CPP
5012
5013 fi
5014 CPP=$ac_cv_prog_CPP
5015 else
5016 ac_cv_prog_CPP=$CPP
5017 fi
5018 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5019 $as_echo "$CPP" >&6; }
5020 ac_preproc_ok=false
5021 for ac_c_preproc_warn_flag in '' yes
5022 do
5023 # Use a header file that comes with gcc, so configuring glibc
5024 # with a fresh cross-compiler works.
5025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5026 # <limits.h> exists even on freestanding compilers.
5027 # On the NeXT, cc -E runs the code through the compiler's parser,
5028 # not just through cpp. "Syntax error" is here to catch this case.
5029 cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h. */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5035 #ifdef __STDC__
5036 # include <limits.h>
5037 #else
5038 # include <assert.h>
5039 #endif
5040 Syntax error
5041 _ACEOF
5042 if { (ac_try="$ac_cpp conftest.$ac_ext"
5043 case "(($ac_try" in
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5046 esac
5047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5048 $as_echo "$ac_try_echo") >&5
5049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5050 ac_status=$?
5051 grep -v '^ *+' conftest.er1 >conftest.err
5052 rm -f conftest.er1
5053 cat conftest.err >&5
5054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } >/dev/null && {
5056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5057 test ! -s conftest.err
5058 }; then
5059 :
5060 else
5061 $as_echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5063
5064 # Broken: fails on valid input.
5065 continue
5066 fi
5067
5068 rm -f conftest.err conftest.$ac_ext
5069
5070 # OK, works on sane cases. Now check whether nonexistent headers
5071 # can be detected and how.
5072 cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h. */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5078 #include <ac_nonexistent.h>
5079 _ACEOF
5080 if { (ac_try="$ac_cpp conftest.$ac_ext"
5081 case "(($ac_try" in
5082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083 *) ac_try_echo=$ac_try;;
5084 esac
5085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5086 $as_echo "$ac_try_echo") >&5
5087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5088 ac_status=$?
5089 grep -v '^ *+' conftest.er1 >conftest.err
5090 rm -f conftest.er1
5091 cat conftest.err >&5
5092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } >/dev/null && {
5094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5095 test ! -s conftest.err
5096 }; then
5097 # Broken: success on invalid input.
5098 continue
5099 else
5100 $as_echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5102
5103 # Passes both tests.
5104 ac_preproc_ok=:
5105 break
5106 fi
5107
5108 rm -f conftest.err conftest.$ac_ext
5109
5110 done
5111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5112 rm -f conftest.err conftest.$ac_ext
5113 if $ac_preproc_ok; then
5114 :
5115 else
5116 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5117 See \`config.log' for more details." >&5
5118 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5119 See \`config.log' for more details." >&2;}
5120 { (exit 1); exit 1; }; }
5121 fi
5122
5123 ac_ext=c
5124 ac_cpp='$CPP $CPPFLAGS'
5125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5128
5129 # Find a good install program. We prefer a C program (faster),
5130 # so one script is as good as another. But avoid the broken or
5131 # incompatible versions:
5132 # SysV /etc/install, /usr/sbin/install
5133 # SunOS /usr/etc/install
5134 # IRIX /sbin/install
5135 # AIX /bin/install
5136 # AmigaOS /C/install, which installs bootblocks on floppy discs
5137 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5138 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5139 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5140 # OS/2's system install, which has a completely different semantic
5141 # ./install, which can be erroneously created by make from ./install.sh.
5142 # Reject install programs that cannot install multiple files.
5143 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5144 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5145 if test -z "$INSTALL"; then
5146 if test "${ac_cv_path_install+set}" = set; then
5147 $as_echo_n "(cached) " >&6
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5151 do
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 # Account for people who put trailing slashes in PATH elements.
5155 case $as_dir/ in
5156 ./ | .// | /cC/* | \
5157 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5158 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5159 /usr/ucb/* ) ;;
5160 *)
5161 # OSF1 and SCO ODT 3.0 have their own names for install.
5162 # Don't use installbsd from OSF since it installs stuff as root
5163 # by default.
5164 for ac_prog in ginstall scoinst install; do
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5167 if test $ac_prog = install &&
5168 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5169 # AIX install. It has an incompatible calling convention.
5170 :
5171 elif test $ac_prog = install &&
5172 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5173 # program-specific install script used by HP pwplus--don't use.
5174 :
5175 else
5176 rm -rf conftest.one conftest.two conftest.dir
5177 echo one > conftest.one
5178 echo two > conftest.two
5179 mkdir conftest.dir
5180 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5181 test -s conftest.one && test -s conftest.two &&
5182 test -s conftest.dir/conftest.one &&
5183 test -s conftest.dir/conftest.two
5184 then
5185 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5186 break 3
5187 fi
5188 fi
5189 fi
5190 done
5191 done
5192 ;;
5193 esac
5194
5195 done
5196 IFS=$as_save_IFS
5197
5198 rm -rf conftest.one conftest.two conftest.dir
5199
5200 fi
5201 if test "${ac_cv_path_install+set}" = set; then
5202 INSTALL=$ac_cv_path_install
5203 else
5204 # As a last resort, use the slow shell script. Don't cache a
5205 # value for INSTALL within a source directory, because that will
5206 # break other packages using the cache if that directory is
5207 # removed, or if the value is a relative name.
5208 INSTALL=$ac_install_sh
5209 fi
5210 fi
5211 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5212 $as_echo "$INSTALL" >&6; }
5213
5214 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5215 # It thinks the first close brace ends the variable substitution.
5216 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5217
5218 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5219
5220 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5221
5222 if test "x$RANLIB" = x; then
5223 if test -n "$ac_tool_prefix"; then
5224 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5225 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if test "${ac_cv_prog_RANLIB+set}" = set; then
5229 $as_echo_n "(cached) " >&6
5230 else
5231 if test -n "$RANLIB"; then
5232 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5244 fi
5245 done
5246 done
5247 IFS=$as_save_IFS
5248
5249 fi
5250 fi
5251 RANLIB=$ac_cv_prog_RANLIB
5252 if test -n "$RANLIB"; then
5253 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5254 $as_echo "$RANLIB" >&6; }
5255 else
5256 { $as_echo "$as_me:$LINENO: result: no" >&5
5257 $as_echo "no" >&6; }
5258 fi
5259
5260
5261 fi
5262 if test -z "$ac_cv_prog_RANLIB"; then
5263 ac_ct_RANLIB=$RANLIB
5264 # Extract the first word of "ranlib", so it can be a program name with args.
5265 set dummy ranlib; ac_word=$2
5266 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5267 $as_echo_n "checking for $ac_word... " >&6; }
5268 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5269 $as_echo_n "(cached) " >&6
5270 else
5271 if test -n "$ac_ct_RANLIB"; then
5272 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5273 else
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5276 do
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5281 ac_cv_prog_ac_ct_RANLIB="ranlib"
5282 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 break 2
5284 fi
5285 done
5286 done
5287 IFS=$as_save_IFS
5288
5289 fi
5290 fi
5291 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5292 if test -n "$ac_ct_RANLIB"; then
5293 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5294 $as_echo "$ac_ct_RANLIB" >&6; }
5295 else
5296 { $as_echo "$as_me:$LINENO: result: no" >&5
5297 $as_echo "no" >&6; }
5298 fi
5299
5300 if test "x$ac_ct_RANLIB" = x; then
5301 RANLIB=":"
5302 else
5303 case $cross_compiling:$ac_tool_warned in
5304 yes:)
5305 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5306 whose name does not start with the host triplet. If you think this
5307 configuration is useful to you, please write to autoconf@gnu.org." >&5
5308 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5309 whose name does not start with the host triplet. If you think this
5310 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5311 ac_tool_warned=yes ;;
5312 esac
5313 RANLIB=$ac_ct_RANLIB
5314 fi
5315 else
5316 RANLIB="$ac_cv_prog_RANLIB"
5317 fi
5318
5319 fi
5320 # Extract the first word of "install-info", so it can be a program name with args.
5321 set dummy install-info; ac_word=$2
5322 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5323 $as_echo_n "checking for $ac_word... " >&6; }
5324 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5325 $as_echo_n "(cached) " >&6
5326 else
5327 case $INSTALL_INFO in
5328 [\\/]* | ?:[\\/]*)
5329 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5330 ;;
5331 *)
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 for as_dir in $PATH
5334 do
5335 IFS=$as_save_IFS
5336 test -z "$as_dir" && as_dir=.
5337 for ac_exec_ext in '' $ac_executable_extensions; do
5338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5339 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5340 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5341 break 2
5342 fi
5343 done
5344 done
5345 IFS=$as_save_IFS
5346
5347 ;;
5348 esac
5349 fi
5350 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5351 if test -n "$INSTALL_INFO"; then
5352 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5353 $as_echo "$INSTALL_INFO" >&6; }
5354 else
5355 { $as_echo "$as_me:$LINENO: result: no" >&5
5356 $as_echo "no" >&6; }
5357 fi
5358
5359
5360 # Extract the first word of "install-info", so it can be a program name with args.
5361 set dummy install-info; ac_word=$2
5362 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5363 $as_echo_n "checking for $ac_word... " >&6; }
5364 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5365 $as_echo_n "(cached) " >&6
5366 else
5367 case $INSTALL_INFO in
5368 [\\/]* | ?:[\\/]*)
5369 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5370 ;;
5371 *)
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in /usr/sbin
5374 do
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5382 fi
5383 done
5384 done
5385 IFS=$as_save_IFS
5386
5387 ;;
5388 esac
5389 fi
5390 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5391 if test -n "$INSTALL_INFO"; then
5392 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5393 $as_echo "$INSTALL_INFO" >&6; }
5394 else
5395 { $as_echo "$as_me:$LINENO: result: no" >&5
5396 $as_echo "no" >&6; }
5397 fi
5398
5399
5400 # Extract the first word of "install-info", so it can be a program name with args.
5401 set dummy install-info; ac_word=$2
5402 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5405 $as_echo_n "(cached) " >&6
5406 else
5407 case $INSTALL_INFO in
5408 [\\/]* | ?:[\\/]*)
5409 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5410 ;;
5411 *)
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 for as_dir in /sbin
5414 do
5415 IFS=$as_save_IFS
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5419 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5420 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 break 2
5422 fi
5423 done
5424 done
5425 IFS=$as_save_IFS
5426
5427 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5428 ;;
5429 esac
5430 fi
5431 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5432 if test -n "$INSTALL_INFO"; then
5433 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5434 $as_echo "$INSTALL_INFO" >&6; }
5435 else
5436 { $as_echo "$as_me:$LINENO: result: no" >&5
5437 $as_echo "no" >&6; }
5438 fi
5439
5440
5441 # Extract the first word of "gzip", so it can be a program name with args.
5442 set dummy gzip; ac_word=$2
5443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5446 $as_echo_n "(cached) " >&6
5447 else
5448 case $GZIP_PROG in
5449 [\\/]* | ?:[\\/]*)
5450 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5451 ;;
5452 *)
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 for as_dir in $PATH
5455 do
5456 IFS=$as_save_IFS
5457 test -z "$as_dir" && as_dir=.
5458 for ac_exec_ext in '' $ac_executable_extensions; do
5459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5460 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5462 break 2
5463 fi
5464 done
5465 done
5466 IFS=$as_save_IFS
5467
5468 ;;
5469 esac
5470 fi
5471 GZIP_PROG=$ac_cv_path_GZIP_PROG
5472 if test -n "$GZIP_PROG"; then
5473 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5474 $as_echo "$GZIP_PROG" >&6; }
5475 else
5476 { $as_echo "$as_me:$LINENO: result: no" >&5
5477 $as_echo "no" >&6; }
5478 fi
5479
5480
5481
5482
5483 ## Need makeinfo >= 4.6 (?) to build the manuals.
5484 # Extract the first word of "makeinfo", so it can be a program name with args.
5485 set dummy makeinfo; ac_word=$2
5486 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5489 $as_echo_n "(cached) " >&6
5490 else
5491 case $MAKEINFO in
5492 [\\/]* | ?:[\\/]*)
5493 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5494 ;;
5495 *)
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5498 do
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 break 2
5506 fi
5507 done
5508 done
5509 IFS=$as_save_IFS
5510
5511 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5512 ;;
5513 esac
5514 fi
5515 MAKEINFO=$ac_cv_path_MAKEINFO
5516 if test -n "$MAKEINFO"; then
5517 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5518 $as_echo "$MAKEINFO" >&6; }
5519 else
5520 { $as_echo "$as_me:$LINENO: result: no" >&5
5521 $as_echo "no" >&6; }
5522 fi
5523
5524
5525 if test "$MAKEINFO" != "no" && \
5526 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
5527 MAKEINFO=no
5528 fi
5529
5530 ## Makeinfo is unusual. For a released Emacs, the manuals are
5531 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5532 ## therefore in the category of "special tools" not normally required, which
5533 ## configure does not have to check for (eg autoconf itself).
5534 ## In a CVS checkout on the other hand, the manuals are not included.
5535 ## So makeinfo is a requirement to build from CVS, and configure
5536 ## should test for it as it does for any other build requirement.
5537 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5538 ## with pre-built manuals, from a CVS checkout.
5539 if test "$MAKEINFO" = "no"; then
5540 if test "x${with_makeinfo}" = "xno"; then
5541 MAKEINFO=off
5542 elif ! test -e $srcdir/info/emacs; then
5543 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5544 source tree does not seem to have pre-built manuals in the \`info' directory.
5545 Either install a suitable version of makeinfo, or re-run configure
5546 with the \`--without-makeinfo' option to build without the manuals. " >&5
5547 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5548 source tree does not seem to have pre-built manuals in the \`info' directory.
5549 Either install a suitable version of makeinfo, or re-run configure
5550 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5551 { (exit 1); exit 1; }; }
5552 fi
5553 fi
5554
5555
5556 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5557 then
5558 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5559 fi
5560
5561 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5562 then
5563 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5564 fi
5565
5566
5567 late_LDFLAGS=$LDFLAGS
5568 if test "$GCC" = yes; then
5569 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5570 else
5571 LDFLAGS="$LDFLAGS -znocombreloc"
5572 fi
5573
5574 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5575 $as_echo_n "checking for -znocombreloc... " >&6; }
5576 cat >conftest.$ac_ext <<_ACEOF
5577 main(){return 0;}
5578 _ACEOF
5579 rm -f conftest.$ac_objext conftest$ac_exeext
5580 if { (ac_try="$ac_link"
5581 case "(($ac_try" in
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5584 esac
5585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5586 $as_echo "$ac_try_echo") >&5
5587 (eval "$ac_link") 2>conftest.er1
5588 ac_status=$?
5589 grep -v '^ *+' conftest.er1 >conftest.err
5590 rm -f conftest.er1
5591 cat conftest.err >&5
5592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && {
5594 test -z "$ac_c_werror_flag" ||
5595 test ! -s conftest.err
5596 } && test -s conftest$ac_exeext && {
5597 test "$cross_compiling" = yes ||
5598 $as_test_x conftest$ac_exeext
5599 }; then
5600 { $as_echo "$as_me:$LINENO: result: yes" >&5
5601 $as_echo "yes" >&6; }
5602 else
5603 $as_echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5605
5606 LDFLAGS=$late_LDFLAGS
5607 { $as_echo "$as_me:$LINENO: result: no" >&5
5608 $as_echo "no" >&6; }
5609 fi
5610
5611 rm -rf conftest.dSYM
5612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5613 conftest$ac_exeext conftest.$ac_ext
5614
5615 #### Extract some information from the operating system and machine files.
5616
5617 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5618 - which libraries the lib-src programs will want, and
5619 - whether the GNU malloc routines are usable..." >&5
5620 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5621 - which libraries the lib-src programs will want, and
5622 - whether the GNU malloc routines are usable..." >&6;}
5623
5624 ### First figure out CFLAGS (which we use for running the compiler here)
5625 ### and REAL_CFLAGS (which we use for real compilation).
5626 ### The two are the same except on a few systems, where they are made
5627 ### different to work around various lossages. For example,
5628 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5629 ### as implying static linking.
5630
5631 ### If the CFLAGS env var is specified, we use that value
5632 ### instead of the default.
5633
5634 ### It's not important that this name contain the PID; you can't run
5635 ### two configures in the same directory and have anything work
5636 ### anyway.
5637 tempcname="conftest.c"
5638
5639 echo '
5640 #include "'${srcdir}'/src/'${opsysfile}'"
5641 #include "'${srcdir}'/src/'${machfile}'"
5642 #ifndef LIBS_MACHINE
5643 #define LIBS_MACHINE
5644 #endif
5645 #ifndef LIBS_SYSTEM
5646 #define LIBS_SYSTEM
5647 #endif
5648 #ifndef C_SWITCH_SYSTEM
5649 #define C_SWITCH_SYSTEM
5650 #endif
5651 #ifndef C_SWITCH_MACHINE
5652 #define C_SWITCH_MACHINE
5653 #endif
5654 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5655 configure___ c_switch_system=C_SWITCH_SYSTEM
5656 configure___ c_switch_machine=C_SWITCH_MACHINE
5657
5658 #ifndef LIB_X11_LIB
5659 #define LIB_X11_LIB -lX11
5660 #endif
5661
5662 #ifndef LIBX11_SYSTEM
5663 #define LIBX11_SYSTEM
5664 #endif
5665 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5666
5667 #ifdef UNEXEC
5668 configure___ unexec=UNEXEC
5669 #else
5670 configure___ unexec=unexec.o
5671 #endif
5672
5673 #ifdef SYSTEM_MALLOC
5674 configure___ system_malloc=yes
5675 #else
5676 configure___ system_malloc=no
5677 #endif
5678
5679 #ifdef USE_MMAP_FOR_BUFFERS
5680 configure___ use_mmap_for_buffers=yes
5681 #else
5682 configure___ use_mmap_for_buffers=no
5683 #endif
5684
5685 #ifndef C_DEBUG_SWITCH
5686 #define C_DEBUG_SWITCH -g
5687 #endif
5688
5689 #ifndef C_OPTIMIZE_SWITCH
5690 #ifdef __GNUC__
5691 #define C_OPTIMIZE_SWITCH -O2
5692 #else
5693 #define C_OPTIMIZE_SWITCH -O
5694 #endif
5695 #endif
5696
5697 #ifndef C_WARNINGS_SWITCH
5698 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5699 #endif
5700
5701 #ifndef LD_SWITCH_MACHINE
5702 #define LD_SWITCH_MACHINE
5703 #endif
5704
5705 #ifndef LD_SWITCH_SYSTEM
5706 #define LD_SWITCH_SYSTEM
5707 #endif
5708
5709 #ifndef LD_SWITCH_X_SITE_AUX
5710 #define LD_SWITCH_X_SITE_AUX
5711 #endif
5712
5713 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5714 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5715
5716 #ifdef THIS_IS_CONFIGURE
5717
5718 /* Get the CFLAGS for tests in configure. */
5719 #ifdef __GNUC__
5720 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5721 #else
5722 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5723 #endif
5724
5725 #else /* not THIS_IS_CONFIGURE */
5726
5727 /* Get the CFLAGS for real compilation. */
5728 #ifdef __GNUC__
5729 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5730 #else
5731 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5732 #endif
5733
5734 #endif /* not THIS_IS_CONFIGURE */
5735 ' > ${tempcname}
5736
5737 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5738
5739 # The value of CPP is a quoted variable reference, so we need to do this
5740 # to get its actual value...
5741 CPP=`eval "echo $CPP"`
5742 eval `${CPP} -Isrc ${tempcname} \
5743 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5744 if test "x$SPECIFIED_CFLAGS" = x; then
5745 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5746 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5747 else
5748 REAL_CFLAGS="$CFLAGS"
5749 fi
5750 rm ${tempcname}
5751
5752 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5753
5754 ### Make sure subsequent tests use flags consistent with the build flags.
5755
5756 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5757 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5758 else
5759 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5760 fi
5761
5762
5763
5764 # Check whether --enable-largefile was given.
5765 if test "${enable_largefile+set}" = set; then
5766 enableval=$enable_largefile;
5767 fi
5768
5769 if test "$enable_largefile" != no; then
5770
5771 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5772 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5773 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5774 $as_echo_n "(cached) " >&6
5775 else
5776 ac_cv_sys_largefile_CC=no
5777 if test "$GCC" != yes; then
5778 ac_save_CC=$CC
5779 while :; do
5780 # IRIX 6.2 and later do not support large files by default,
5781 # so use the C compiler's -n32 option if that helps.
5782 cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h. */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 #include <sys/types.h>
5789 /* Check that off_t can represent 2**63 - 1 correctly.
5790 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5791 since some C++ compilers masquerading as C compilers
5792 incorrectly reject 9223372036854775807. */
5793 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5794 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5795 && LARGE_OFF_T % 2147483647 == 1)
5796 ? 1 : -1];
5797 int
5798 main ()
5799 {
5800
5801 ;
5802 return 0;
5803 }
5804 _ACEOF
5805 rm -f conftest.$ac_objext
5806 if { (ac_try="$ac_compile"
5807 case "(($ac_try" in
5808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809 *) ac_try_echo=$ac_try;;
5810 esac
5811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5812 $as_echo "$ac_try_echo") >&5
5813 (eval "$ac_compile") 2>conftest.er1
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } && {
5820 test -z "$ac_c_werror_flag" ||
5821 test ! -s conftest.err
5822 } && test -s conftest.$ac_objext; then
5823 break
5824 else
5825 $as_echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5827
5828
5829 fi
5830
5831 rm -f core conftest.err conftest.$ac_objext
5832 CC="$CC -n32"
5833 rm -f conftest.$ac_objext
5834 if { (ac_try="$ac_compile"
5835 case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838 esac
5839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5840 $as_echo "$ac_try_echo") >&5
5841 (eval "$ac_compile") 2>conftest.er1
5842 ac_status=$?
5843 grep -v '^ *+' conftest.er1 >conftest.err
5844 rm -f conftest.er1
5845 cat conftest.err >&5
5846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } && {
5848 test -z "$ac_c_werror_flag" ||
5849 test ! -s conftest.err
5850 } && test -s conftest.$ac_objext; then
5851 ac_cv_sys_largefile_CC=' -n32'; break
5852 else
5853 $as_echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5855
5856
5857 fi
5858
5859 rm -f core conftest.err conftest.$ac_objext
5860 break
5861 done
5862 CC=$ac_save_CC
5863 rm -f conftest.$ac_ext
5864 fi
5865 fi
5866 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5867 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5868 if test "$ac_cv_sys_largefile_CC" != no; then
5869 CC=$CC$ac_cv_sys_largefile_CC
5870 fi
5871
5872 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5873 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5874 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5875 $as_echo_n "(cached) " >&6
5876 else
5877 while :; do
5878 cat >conftest.$ac_ext <<_ACEOF
5879 /* confdefs.h. */
5880 _ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5884 #include <sys/types.h>
5885 /* Check that off_t can represent 2**63 - 1 correctly.
5886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5887 since some C++ compilers masquerading as C compilers
5888 incorrectly reject 9223372036854775807. */
5889 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5891 && LARGE_OFF_T % 2147483647 == 1)
5892 ? 1 : -1];
5893 int
5894 main ()
5895 {
5896
5897 ;
5898 return 0;
5899 }
5900 _ACEOF
5901 rm -f conftest.$ac_objext
5902 if { (ac_try="$ac_compile"
5903 case "(($ac_try" in
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5906 esac
5907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5908 $as_echo "$ac_try_echo") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } && {
5916 test -z "$ac_c_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest.$ac_objext; then
5919 ac_cv_sys_file_offset_bits=no; break
5920 else
5921 $as_echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5923
5924
5925 fi
5926
5927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5928 cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h. */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 #define _FILE_OFFSET_BITS 64
5935 #include <sys/types.h>
5936 /* Check that off_t can represent 2**63 - 1 correctly.
5937 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5938 since some C++ compilers masquerading as C compilers
5939 incorrectly reject 9223372036854775807. */
5940 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5941 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5942 && LARGE_OFF_T % 2147483647 == 1)
5943 ? 1 : -1];
5944 int
5945 main ()
5946 {
5947
5948 ;
5949 return 0;
5950 }
5951 _ACEOF
5952 rm -f conftest.$ac_objext
5953 if { (ac_try="$ac_compile"
5954 case "(($ac_try" in
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5957 esac
5958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5959 $as_echo "$ac_try_echo") >&5
5960 (eval "$ac_compile") 2>conftest.er1
5961 ac_status=$?
5962 grep -v '^ *+' conftest.er1 >conftest.err
5963 rm -f conftest.er1
5964 cat conftest.err >&5
5965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } && {
5967 test -z "$ac_c_werror_flag" ||
5968 test ! -s conftest.err
5969 } && test -s conftest.$ac_objext; then
5970 ac_cv_sys_file_offset_bits=64; break
5971 else
5972 $as_echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5974
5975
5976 fi
5977
5978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979 ac_cv_sys_file_offset_bits=unknown
5980 break
5981 done
5982 fi
5983 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5984 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5985 case $ac_cv_sys_file_offset_bits in #(
5986 no | unknown) ;;
5987 *)
5988 cat >>confdefs.h <<_ACEOF
5989 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5990 _ACEOF
5991 ;;
5992 esac
5993 rm -rf conftest*
5994 if test $ac_cv_sys_file_offset_bits = unknown; then
5995 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5996 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5997 if test "${ac_cv_sys_large_files+set}" = set; then
5998 $as_echo_n "(cached) " >&6
5999 else
6000 while :; do
6001 cat >conftest.$ac_ext <<_ACEOF
6002 /* confdefs.h. */
6003 _ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6007 #include <sys/types.h>
6008 /* Check that off_t can represent 2**63 - 1 correctly.
6009 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6010 since some C++ compilers masquerading as C compilers
6011 incorrectly reject 9223372036854775807. */
6012 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6013 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6014 && LARGE_OFF_T % 2147483647 == 1)
6015 ? 1 : -1];
6016 int
6017 main ()
6018 {
6019
6020 ;
6021 return 0;
6022 }
6023 _ACEOF
6024 rm -f conftest.$ac_objext
6025 if { (ac_try="$ac_compile"
6026 case "(($ac_try" in
6027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028 *) ac_try_echo=$ac_try;;
6029 esac
6030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6031 $as_echo "$ac_try_echo") >&5
6032 (eval "$ac_compile") 2>conftest.er1
6033 ac_status=$?
6034 grep -v '^ *+' conftest.er1 >conftest.err
6035 rm -f conftest.er1
6036 cat conftest.err >&5
6037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } && {
6039 test -z "$ac_c_werror_flag" ||
6040 test ! -s conftest.err
6041 } && test -s conftest.$ac_objext; then
6042 ac_cv_sys_large_files=no; break
6043 else
6044 $as_echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6046
6047
6048 fi
6049
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 cat >conftest.$ac_ext <<_ACEOF
6052 /* confdefs.h. */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6057 #define _LARGE_FILES 1
6058 #include <sys/types.h>
6059 /* Check that off_t can represent 2**63 - 1 correctly.
6060 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6061 since some C++ compilers masquerading as C compilers
6062 incorrectly reject 9223372036854775807. */
6063 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6064 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6065 && LARGE_OFF_T % 2147483647 == 1)
6066 ? 1 : -1];
6067 int
6068 main ()
6069 {
6070
6071 ;
6072 return 0;
6073 }
6074 _ACEOF
6075 rm -f conftest.$ac_objext
6076 if { (ac_try="$ac_compile"
6077 case "(($ac_try" in
6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079 *) ac_try_echo=$ac_try;;
6080 esac
6081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6082 $as_echo "$ac_try_echo") >&5
6083 (eval "$ac_compile") 2>conftest.er1
6084 ac_status=$?
6085 grep -v '^ *+' conftest.er1 >conftest.err
6086 rm -f conftest.er1
6087 cat conftest.err >&5
6088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } && {
6090 test -z "$ac_c_werror_flag" ||
6091 test ! -s conftest.err
6092 } && test -s conftest.$ac_objext; then
6093 ac_cv_sys_large_files=1; break
6094 else
6095 $as_echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6097
6098
6099 fi
6100
6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102 ac_cv_sys_large_files=unknown
6103 break
6104 done
6105 fi
6106 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6107 $as_echo "$ac_cv_sys_large_files" >&6; }
6108 case $ac_cv_sys_large_files in #(
6109 no | unknown) ;;
6110 *)
6111 cat >>confdefs.h <<_ACEOF
6112 #define _LARGE_FILES $ac_cv_sys_large_files
6113 _ACEOF
6114 ;;
6115 esac
6116 rm -rf conftest*
6117 fi
6118 fi
6119
6120
6121
6122 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6123 ### be located in either /usr/lib64 or /usr/lib.
6124 ### In some rare cases, /usr/lib64 exists but does not contain the
6125 ### relevant files (bug#1287). Hence test for crtn.o.
6126 case "${canonical}" in
6127 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6128 if test -e /usr/lib64/crtn.o; then
6129
6130 cat >>confdefs.h <<\_ACEOF
6131 #define HAVE_LIB64_DIR 1
6132 _ACEOF
6133
6134 fi
6135 esac
6136
6137
6138
6139
6140 if test "${with_sound}" != "no"; then
6141 # Sound support for GNU/Linux and the free BSDs.
6142
6143
6144
6145 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6146 do
6147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6149 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6150 $as_echo_n "checking for $ac_header... " >&6; }
6151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6152 $as_echo_n "(cached) " >&6
6153 fi
6154 ac_res=`eval 'as_val=${'$as_ac_Header'}
6155 $as_echo "$as_val"'`
6156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6157 $as_echo "$ac_res" >&6; }
6158 else
6159 # Is the header compilable?
6160 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6161 $as_echo_n "checking $ac_header usability... " >&6; }
6162 cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h. */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 $ac_includes_default
6169 #include <$ac_header>
6170 _ACEOF
6171 rm -f conftest.$ac_objext
6172 if { (ac_try="$ac_compile"
6173 case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6176 esac
6177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6178 $as_echo "$ac_try_echo") >&5
6179 (eval "$ac_compile") 2>conftest.er1
6180 ac_status=$?
6181 grep -v '^ *+' conftest.er1 >conftest.err
6182 rm -f conftest.er1
6183 cat conftest.err >&5
6184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } && {
6186 test -z "$ac_c_werror_flag" ||
6187 test ! -s conftest.err
6188 } && test -s conftest.$ac_objext; then
6189 ac_header_compiler=yes
6190 else
6191 $as_echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6193
6194 ac_header_compiler=no
6195 fi
6196
6197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6199 $as_echo "$ac_header_compiler" >&6; }
6200
6201 # Is the header present?
6202 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6203 $as_echo_n "checking $ac_header presence... " >&6; }
6204 cat >conftest.$ac_ext <<_ACEOF
6205 /* confdefs.h. */
6206 _ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6210 #include <$ac_header>
6211 _ACEOF
6212 if { (ac_try="$ac_cpp conftest.$ac_ext"
6213 case "(($ac_try" in
6214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6215 *) ac_try_echo=$ac_try;;
6216 esac
6217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6218 $as_echo "$ac_try_echo") >&5
6219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6220 ac_status=$?
6221 grep -v '^ *+' conftest.er1 >conftest.err
6222 rm -f conftest.er1
6223 cat conftest.err >&5
6224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } >/dev/null && {
6226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6227 test ! -s conftest.err
6228 }; then
6229 ac_header_preproc=yes
6230 else
6231 $as_echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6233
6234 ac_header_preproc=no
6235 fi
6236
6237 rm -f conftest.err conftest.$ac_ext
6238 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6239 $as_echo "$ac_header_preproc" >&6; }
6240
6241 # So? What about this header?
6242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6243 yes:no: )
6244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6245 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6247 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6248 ac_header_preproc=yes
6249 ;;
6250 no:yes:* )
6251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6252 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6254 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6256 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6258 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6260 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6262 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6263
6264 ;;
6265 esac
6266 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6267 $as_echo_n "checking for $ac_header... " >&6; }
6268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6269 $as_echo_n "(cached) " >&6
6270 else
6271 eval "$as_ac_Header=\$ac_header_preproc"
6272 fi
6273 ac_res=`eval 'as_val=${'$as_ac_Header'}
6274 $as_echo "$as_val"'`
6275 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6276 $as_echo "$ac_res" >&6; }
6277
6278 fi
6279 if test `eval 'as_val=${'$as_ac_Header'}
6280 $as_echo "$as_val"'` = yes; then
6281 cat >>confdefs.h <<_ACEOF
6282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6283 _ACEOF
6284
6285 fi
6286
6287 done
6288
6289 # Emulation library used on NetBSD.
6290 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6291 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6292 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6293 $as_echo_n "(cached) " >&6
6294 else
6295 ac_check_lib_save_LIBS=$LIBS
6296 LIBS="-lossaudio $LIBS"
6297 cat >conftest.$ac_ext <<_ACEOF
6298 /* confdefs.h. */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6303
6304 /* Override any GCC internal prototype to avoid an error.
6305 Use char because int might match the return type of a GCC
6306 builtin and then its argument prototype would still apply. */
6307 #ifdef __cplusplus
6308 extern "C"
6309 #endif
6310 char _oss_ioctl ();
6311 int
6312 main ()
6313 {
6314 return _oss_ioctl ();
6315 ;
6316 return 0;
6317 }
6318 _ACEOF
6319 rm -f conftest.$ac_objext conftest$ac_exeext
6320 if { (ac_try="$ac_link"
6321 case "(($ac_try" in
6322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323 *) ac_try_echo=$ac_try;;
6324 esac
6325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6326 $as_echo "$ac_try_echo") >&5
6327 (eval "$ac_link") 2>conftest.er1
6328 ac_status=$?
6329 grep -v '^ *+' conftest.er1 >conftest.err
6330 rm -f conftest.er1
6331 cat conftest.err >&5
6332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } && {
6334 test -z "$ac_c_werror_flag" ||
6335 test ! -s conftest.err
6336 } && test -s conftest$ac_exeext && {
6337 test "$cross_compiling" = yes ||
6338 $as_test_x conftest$ac_exeext
6339 }; then
6340 ac_cv_lib_ossaudio__oss_ioctl=yes
6341 else
6342 $as_echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6344
6345 ac_cv_lib_ossaudio__oss_ioctl=no
6346 fi
6347
6348 rm -rf conftest.dSYM
6349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6350 conftest$ac_exeext conftest.$ac_ext
6351 LIBS=$ac_check_lib_save_LIBS
6352 fi
6353 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6354 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6355 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6356 LIBSOUND=-lossaudio
6357 else
6358 LIBSOUND=
6359 fi
6360
6361
6362
6363 ALSA_REQUIRED=1.0.0
6364 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6365
6366 succeeded=no
6367
6368 # Extract the first word of "pkg-config", so it can be a program name with args.
6369 set dummy pkg-config; ac_word=$2
6370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6373 $as_echo_n "(cached) " >&6
6374 else
6375 case $PKG_CONFIG in
6376 [\\/]* | ?:[\\/]*)
6377 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6378 ;;
6379 *)
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 for as_dir in $PATH
6382 do
6383 IFS=$as_save_IFS
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6387 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6388 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 break 2
6390 fi
6391 done
6392 done
6393 IFS=$as_save_IFS
6394
6395 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6396 ;;
6397 esac
6398 fi
6399 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6400 if test -n "$PKG_CONFIG"; then
6401 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6402 $as_echo "$PKG_CONFIG" >&6; }
6403 else
6404 { $as_echo "$as_me:$LINENO: result: no" >&5
6405 $as_echo "no" >&6; }
6406 fi
6407
6408
6409
6410 if test "$PKG_CONFIG" = "no" ; then
6411 HAVE_ALSA=no
6412 else
6413 PKG_CONFIG_MIN_VERSION=0.9.0
6414 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6415 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6416 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6417
6418 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6419 { $as_echo "$as_me:$LINENO: result: yes" >&5
6420 $as_echo "yes" >&6; }
6421 succeeded=yes
6422
6423 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6424 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6425 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6426 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6427 $as_echo "$ALSA_CFLAGS" >&6; }
6428
6429 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6430 $as_echo_n "checking ALSA_LIBS... " >&6; }
6431 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6432 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6433 $as_echo "$ALSA_LIBS" >&6; }
6434 else
6435 { $as_echo "$as_me:$LINENO: result: no" >&5
6436 $as_echo "no" >&6; }
6437 ALSA_CFLAGS=""
6438 ALSA_LIBS=""
6439 ## If we have a custom action on failure, don't print errors, but
6440 ## do set a variable so people can do so.
6441 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6442
6443 fi
6444
6445
6446
6447 else
6448 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6449 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6450 fi
6451 fi
6452
6453 if test $succeeded = yes; then
6454 HAVE_ALSA=yes
6455 else
6456 HAVE_ALSA=no
6457 fi
6458
6459 if test $HAVE_ALSA = yes; then
6460 SAVE_CFLAGS="$CFLAGS"
6461 SAVE_LDFLAGS="$LDFLAGS"
6462 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6463 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6464 cat >conftest.$ac_ext <<_ACEOF
6465 /* confdefs.h. */
6466 _ACEOF
6467 cat confdefs.h >>conftest.$ac_ext
6468 cat >>conftest.$ac_ext <<_ACEOF
6469 /* end confdefs.h. */
6470 #include <asoundlib.h>
6471 int
6472 main ()
6473 {
6474 snd_lib_error_set_handler (0);
6475 ;
6476 return 0;
6477 }
6478 _ACEOF
6479 rm -f conftest.$ac_objext
6480 if { (ac_try="$ac_compile"
6481 case "(($ac_try" in
6482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6483 *) ac_try_echo=$ac_try;;
6484 esac
6485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6486 $as_echo "$ac_try_echo") >&5
6487 (eval "$ac_compile") 2>conftest.er1
6488 ac_status=$?
6489 grep -v '^ *+' conftest.er1 >conftest.err
6490 rm -f conftest.er1
6491 cat conftest.err >&5
6492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } && {
6494 test -z "$ac_c_werror_flag" ||
6495 test ! -s conftest.err
6496 } && test -s conftest.$ac_objext; then
6497 emacs_alsa_normal=yes
6498 else
6499 $as_echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6501
6502 emacs_alsa_normal=no
6503 fi
6504
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506 if test "$emacs_alsa_normal" != yes; then
6507 cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h. */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6513 #include <alsa/asoundlib.h>
6514 int
6515 main ()
6516 {
6517 snd_lib_error_set_handler (0);
6518 ;
6519 return 0;
6520 }
6521 _ACEOF
6522 rm -f conftest.$ac_objext
6523 if { (ac_try="$ac_compile"
6524 case "(($ac_try" in
6525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6526 *) ac_try_echo=$ac_try;;
6527 esac
6528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6529 $as_echo "$ac_try_echo") >&5
6530 (eval "$ac_compile") 2>conftest.er1
6531 ac_status=$?
6532 grep -v '^ *+' conftest.er1 >conftest.err
6533 rm -f conftest.er1
6534 cat conftest.err >&5
6535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } && {
6537 test -z "$ac_c_werror_flag" ||
6538 test ! -s conftest.err
6539 } && test -s conftest.$ac_objext; then
6540 emacs_alsa_subdir=yes
6541 else
6542 $as_echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6544
6545 emacs_alsa_subdir=no
6546 fi
6547
6548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549 if test "$emacs_alsa_subdir" != yes; then
6550 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6551 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6552 { (exit 1); exit 1; }; }
6553 fi
6554 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6555 fi
6556
6557 CFLAGS="$SAVE_CFLAGS"
6558 LDFLAGS="$SAVE_LDFLAGS"
6559 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6560 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6561
6562 cat >>confdefs.h <<\_ACEOF
6563 #define HAVE_ALSA 1
6564 _ACEOF
6565
6566 fi
6567
6568 fi
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6596 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6597 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6598 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6599 sys/utsname.h pwd.h
6600 do
6601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6603 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6604 $as_echo_n "checking for $ac_header... " >&6; }
6605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6606 $as_echo_n "(cached) " >&6
6607 fi
6608 ac_res=`eval 'as_val=${'$as_ac_Header'}
6609 $as_echo "$as_val"'`
6610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6611 $as_echo "$ac_res" >&6; }
6612 else
6613 # Is the header compilable?
6614 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6615 $as_echo_n "checking $ac_header usability... " >&6; }
6616 cat >conftest.$ac_ext <<_ACEOF
6617 /* confdefs.h. */
6618 _ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 $ac_includes_default
6623 #include <$ac_header>
6624 _ACEOF
6625 rm -f conftest.$ac_objext
6626 if { (ac_try="$ac_compile"
6627 case "(($ac_try" in
6628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6629 *) ac_try_echo=$ac_try;;
6630 esac
6631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6632 $as_echo "$ac_try_echo") >&5
6633 (eval "$ac_compile") 2>conftest.er1
6634 ac_status=$?
6635 grep -v '^ *+' conftest.er1 >conftest.err
6636 rm -f conftest.er1
6637 cat conftest.err >&5
6638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } && {
6640 test -z "$ac_c_werror_flag" ||
6641 test ! -s conftest.err
6642 } && test -s conftest.$ac_objext; then
6643 ac_header_compiler=yes
6644 else
6645 $as_echo "$as_me: failed program was:" >&5
6646 sed 's/^/| /' conftest.$ac_ext >&5
6647
6648 ac_header_compiler=no
6649 fi
6650
6651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6653 $as_echo "$ac_header_compiler" >&6; }
6654
6655 # Is the header present?
6656 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6657 $as_echo_n "checking $ac_header presence... " >&6; }
6658 cat >conftest.$ac_ext <<_ACEOF
6659 /* confdefs.h. */
6660 _ACEOF
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h. */
6664 #include <$ac_header>
6665 _ACEOF
6666 if { (ac_try="$ac_cpp conftest.$ac_ext"
6667 case "(($ac_try" in
6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6670 esac
6671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6672 $as_echo "$ac_try_echo") >&5
6673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6674 ac_status=$?
6675 grep -v '^ *+' conftest.er1 >conftest.err
6676 rm -f conftest.er1
6677 cat conftest.err >&5
6678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } >/dev/null && {
6680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6681 test ! -s conftest.err
6682 }; then
6683 ac_header_preproc=yes
6684 else
6685 $as_echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6687
6688 ac_header_preproc=no
6689 fi
6690
6691 rm -f conftest.err conftest.$ac_ext
6692 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6693 $as_echo "$ac_header_preproc" >&6; }
6694
6695 # So? What about this header?
6696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6697 yes:no: )
6698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6699 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6701 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6702 ac_header_preproc=yes
6703 ;;
6704 no:yes:* )
6705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6706 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6708 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6710 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6712 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6714 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6716 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6717
6718 ;;
6719 esac
6720 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6721 $as_echo_n "checking for $ac_header... " >&6; }
6722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6723 $as_echo_n "(cached) " >&6
6724 else
6725 eval "$as_ac_Header=\$ac_header_preproc"
6726 fi
6727 ac_res=`eval 'as_val=${'$as_ac_Header'}
6728 $as_echo "$as_val"'`
6729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6730 $as_echo "$ac_res" >&6; }
6731
6732 fi
6733 if test `eval 'as_val=${'$as_ac_Header'}
6734 $as_echo "$as_val"'` = yes; then
6735 cat >>confdefs.h <<_ACEOF
6736 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6737 _ACEOF
6738
6739 fi
6740
6741 done
6742
6743
6744 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6745 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6746 cat >conftest.$ac_ext <<_ACEOF
6747 /* confdefs.h. */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752 #include <sys/personality.h>
6753 int
6754 main ()
6755 {
6756 personality (PER_LINUX32)
6757 ;
6758 return 0;
6759 }
6760 _ACEOF
6761 rm -f conftest.$ac_objext
6762 if { (ac_try="$ac_compile"
6763 case "(($ac_try" in
6764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6765 *) ac_try_echo=$ac_try;;
6766 esac
6767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6768 $as_echo "$ac_try_echo") >&5
6769 (eval "$ac_compile") 2>conftest.er1
6770 ac_status=$?
6771 grep -v '^ *+' conftest.er1 >conftest.err
6772 rm -f conftest.er1
6773 cat conftest.err >&5
6774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } && {
6776 test -z "$ac_c_werror_flag" ||
6777 test ! -s conftest.err
6778 } && test -s conftest.$ac_objext; then
6779 emacs_cv_personality_linux32=yes
6780 else
6781 $as_echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6783
6784 emacs_cv_personality_linux32=no
6785 fi
6786
6787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6789 $as_echo "$emacs_cv_personality_linux32" >&6; }
6790
6791 if test $emacs_cv_personality_linux32 = yes; then
6792
6793 cat >>confdefs.h <<\_ACEOF
6794 #define HAVE_PERSONALITY_LINUX32 1
6795 _ACEOF
6796
6797 fi
6798
6799
6800 for ac_header in term.h
6801 do
6802 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6803 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6804 $as_echo_n "checking for $ac_header... " >&6; }
6805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6806 $as_echo_n "(cached) " >&6
6807 else
6808 cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h. */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 #include <$ac_header>
6815 _ACEOF
6816 if { (ac_try="$ac_cpp conftest.$ac_ext"
6817 case "(($ac_try" in
6818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6819 *) ac_try_echo=$ac_try;;
6820 esac
6821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6822 $as_echo "$ac_try_echo") >&5
6823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6824 ac_status=$?
6825 grep -v '^ *+' conftest.er1 >conftest.err
6826 rm -f conftest.er1
6827 cat conftest.err >&5
6828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } >/dev/null && {
6830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6831 test ! -s conftest.err
6832 }; then
6833 eval "$as_ac_Header=yes"
6834 else
6835 $as_echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6837
6838 eval "$as_ac_Header=no"
6839 fi
6840
6841 rm -f conftest.err conftest.$ac_ext
6842 fi
6843 ac_res=`eval 'as_val=${'$as_ac_Header'}
6844 $as_echo "$as_val"'`
6845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6846 $as_echo "$ac_res" >&6; }
6847 if test `eval 'as_val=${'$as_ac_Header'}
6848 $as_echo "$as_val"'` = yes; then
6849 cat >>confdefs.h <<_ACEOF
6850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6851 _ACEOF
6852
6853 fi
6854
6855 done
6856
6857 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6858 $as_echo_n "checking for ANSI C header files... " >&6; }
6859 if test "${ac_cv_header_stdc+set}" = set; then
6860 $as_echo_n "(cached) " >&6
6861 else
6862 cat >conftest.$ac_ext <<_ACEOF
6863 /* confdefs.h. */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6868 #include <stdlib.h>
6869 #include <stdarg.h>
6870 #include <string.h>
6871 #include <float.h>
6872
6873 int
6874 main ()
6875 {
6876
6877 ;
6878 return 0;
6879 }
6880 _ACEOF
6881 rm -f conftest.$ac_objext
6882 if { (ac_try="$ac_compile"
6883 case "(($ac_try" in
6884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6886 esac
6887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6888 $as_echo "$ac_try_echo") >&5
6889 (eval "$ac_compile") 2>conftest.er1
6890 ac_status=$?
6891 grep -v '^ *+' conftest.er1 >conftest.err
6892 rm -f conftest.er1
6893 cat conftest.err >&5
6894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } && {
6896 test -z "$ac_c_werror_flag" ||
6897 test ! -s conftest.err
6898 } && test -s conftest.$ac_objext; then
6899 ac_cv_header_stdc=yes
6900 else
6901 $as_echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6903
6904 ac_cv_header_stdc=no
6905 fi
6906
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908
6909 if test $ac_cv_header_stdc = yes; then
6910 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6911 cat >conftest.$ac_ext <<_ACEOF
6912 /* confdefs.h. */
6913 _ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 #include <string.h>
6918
6919 _ACEOF
6920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6921 $EGREP "memchr" >/dev/null 2>&1; then
6922 :
6923 else
6924 ac_cv_header_stdc=no
6925 fi
6926 rm -f conftest*
6927
6928 fi
6929
6930 if test $ac_cv_header_stdc = yes; then
6931 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6932 cat >conftest.$ac_ext <<_ACEOF
6933 /* confdefs.h. */
6934 _ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 #include <stdlib.h>
6939
6940 _ACEOF
6941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6942 $EGREP "free" >/dev/null 2>&1; then
6943 :
6944 else
6945 ac_cv_header_stdc=no
6946 fi
6947 rm -f conftest*
6948
6949 fi
6950
6951 if test $ac_cv_header_stdc = yes; then
6952 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6953 if test "$cross_compiling" = yes; then
6954 :
6955 else
6956 cat >conftest.$ac_ext <<_ACEOF
6957 /* confdefs.h. */
6958 _ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6962 #include <ctype.h>
6963 #include <stdlib.h>
6964 #if ((' ' & 0x0FF) == 0x020)
6965 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6966 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6967 #else
6968 # define ISLOWER(c) \
6969 (('a' <= (c) && (c) <= 'i') \
6970 || ('j' <= (c) && (c) <= 'r') \
6971 || ('s' <= (c) && (c) <= 'z'))
6972 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6973 #endif
6974
6975 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6976 int
6977 main ()
6978 {
6979 int i;
6980 for (i = 0; i < 256; i++)
6981 if (XOR (islower (i), ISLOWER (i))
6982 || toupper (i) != TOUPPER (i))
6983 return 2;
6984 return 0;
6985 }
6986 _ACEOF
6987 rm -f conftest$ac_exeext
6988 if { (ac_try="$ac_link"
6989 case "(($ac_try" in
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6992 esac
6993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6994 $as_echo "$ac_try_echo") >&5
6995 (eval "$ac_link") 2>&5
6996 ac_status=$?
6997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6999 { (case "(($ac_try" in
7000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7001 *) ac_try_echo=$ac_try;;
7002 esac
7003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7004 $as_echo "$ac_try_echo") >&5
7005 (eval "$ac_try") 2>&5
7006 ac_status=$?
7007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; }; then
7009 :
7010 else
7011 $as_echo "$as_me: program exited with status $ac_status" >&5
7012 $as_echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7014
7015 ( exit $ac_status )
7016 ac_cv_header_stdc=no
7017 fi
7018 rm -rf conftest.dSYM
7019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7020 fi
7021
7022
7023 fi
7024 fi
7025 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7026 $as_echo "$ac_cv_header_stdc" >&6; }
7027 if test $ac_cv_header_stdc = yes; then
7028
7029 cat >>confdefs.h <<\_ACEOF
7030 #define STDC_HEADERS 1
7031 _ACEOF
7032
7033 fi
7034
7035 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7036 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7037 if test "${ac_cv_header_time+set}" = set; then
7038 $as_echo_n "(cached) " >&6
7039 else
7040 cat >conftest.$ac_ext <<_ACEOF
7041 /* confdefs.h. */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7046 #include <sys/types.h>
7047 #include <sys/time.h>
7048 #include <time.h>
7049
7050 int
7051 main ()
7052 {
7053 if ((struct tm *) 0)
7054 return 0;
7055 ;
7056 return 0;
7057 }
7058 _ACEOF
7059 rm -f conftest.$ac_objext
7060 if { (ac_try="$ac_compile"
7061 case "(($ac_try" in
7062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063 *) ac_try_echo=$ac_try;;
7064 esac
7065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7066 $as_echo "$ac_try_echo") >&5
7067 (eval "$ac_compile") 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } && {
7074 test -z "$ac_c_werror_flag" ||
7075 test ! -s conftest.err
7076 } && test -s conftest.$ac_objext; then
7077 ac_cv_header_time=yes
7078 else
7079 $as_echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7081
7082 ac_cv_header_time=no
7083 fi
7084
7085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7086 fi
7087 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7088 $as_echo "$ac_cv_header_time" >&6; }
7089 if test $ac_cv_header_time = yes; then
7090
7091 cat >>confdefs.h <<\_ACEOF
7092 #define TIME_WITH_SYS_TIME 1
7093 _ACEOF
7094
7095 fi
7096
7097 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7098 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7099 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7100 $as_echo_n "(cached) " >&6
7101 else
7102 cat >conftest.$ac_ext <<_ACEOF
7103 /* confdefs.h. */
7104 _ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 $ac_includes_default
7109 int
7110 main ()
7111 {
7112 #ifndef sys_siglist
7113 (void) sys_siglist;
7114 #endif
7115
7116 ;
7117 return 0;
7118 }
7119 _ACEOF
7120 rm -f conftest.$ac_objext
7121 if { (ac_try="$ac_compile"
7122 case "(($ac_try" in
7123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124 *) ac_try_echo=$ac_try;;
7125 esac
7126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7127 $as_echo "$ac_try_echo") >&5
7128 (eval "$ac_compile") 2>conftest.er1
7129 ac_status=$?
7130 grep -v '^ *+' conftest.er1 >conftest.err
7131 rm -f conftest.er1
7132 cat conftest.err >&5
7133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } && {
7135 test -z "$ac_c_werror_flag" ||
7136 test ! -s conftest.err
7137 } && test -s conftest.$ac_objext; then
7138 ac_cv_have_decl_sys_siglist=yes
7139 else
7140 $as_echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7142
7143 ac_cv_have_decl_sys_siglist=no
7144 fi
7145
7146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7147 fi
7148 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7149 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7150 if test $ac_cv_have_decl_sys_siglist = yes; then
7151
7152 cat >>confdefs.h <<_ACEOF
7153 #define HAVE_DECL_SYS_SIGLIST 1
7154 _ACEOF
7155
7156
7157 else
7158 cat >>confdefs.h <<_ACEOF
7159 #define HAVE_DECL_SYS_SIGLIST 0
7160 _ACEOF
7161
7162
7163 fi
7164
7165
7166 if test $ac_cv_have_decl_sys_siglist != yes; then
7167 # For Tru64, at least:
7168 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7169 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7170 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7171 $as_echo_n "(cached) " >&6
7172 else
7173 cat >conftest.$ac_ext <<_ACEOF
7174 /* confdefs.h. */
7175 _ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7179 $ac_includes_default
7180 int
7181 main ()
7182 {
7183 #ifndef __sys_siglist
7184 (void) __sys_siglist;
7185 #endif
7186
7187 ;
7188 return 0;
7189 }
7190 _ACEOF
7191 rm -f conftest.$ac_objext
7192 if { (ac_try="$ac_compile"
7193 case "(($ac_try" in
7194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7195 *) ac_try_echo=$ac_try;;
7196 esac
7197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7198 $as_echo "$ac_try_echo") >&5
7199 (eval "$ac_compile") 2>conftest.er1
7200 ac_status=$?
7201 grep -v '^ *+' conftest.er1 >conftest.err
7202 rm -f conftest.er1
7203 cat conftest.err >&5
7204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); } && {
7206 test -z "$ac_c_werror_flag" ||
7207 test ! -s conftest.err
7208 } && test -s conftest.$ac_objext; then
7209 ac_cv_have_decl___sys_siglist=yes
7210 else
7211 $as_echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7213
7214 ac_cv_have_decl___sys_siglist=no
7215 fi
7216
7217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7218 fi
7219 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7220 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7221 if test $ac_cv_have_decl___sys_siglist = yes; then
7222
7223 cat >>confdefs.h <<_ACEOF
7224 #define HAVE_DECL___SYS_SIGLIST 1
7225 _ACEOF
7226
7227
7228 else
7229 cat >>confdefs.h <<_ACEOF
7230 #define HAVE_DECL___SYS_SIGLIST 0
7231 _ACEOF
7232
7233
7234 fi
7235
7236
7237 if test $ac_cv_have_decl___sys_siglist = yes; then
7238
7239 cat >>confdefs.h <<\_ACEOF
7240 #define sys_siglist __sys_siglist
7241 _ACEOF
7242
7243 fi
7244 fi
7245 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7246 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7247 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7248 $as_echo_n "(cached) " >&6
7249 else
7250 cat >conftest.$ac_ext <<_ACEOF
7251 /* confdefs.h. */
7252 _ACEOF
7253 cat confdefs.h >>conftest.$ac_ext
7254 cat >>conftest.$ac_ext <<_ACEOF
7255 /* end confdefs.h. */
7256 #include <sys/types.h>
7257 #include <sys/wait.h>
7258 #ifndef WEXITSTATUS
7259 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7260 #endif
7261 #ifndef WIFEXITED
7262 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7263 #endif
7264
7265 int
7266 main ()
7267 {
7268 int s;
7269 wait (&s);
7270 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7271 ;
7272 return 0;
7273 }
7274 _ACEOF
7275 rm -f conftest.$ac_objext
7276 if { (ac_try="$ac_compile"
7277 case "(($ac_try" in
7278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7279 *) ac_try_echo=$ac_try;;
7280 esac
7281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7282 $as_echo "$ac_try_echo") >&5
7283 (eval "$ac_compile") 2>conftest.er1
7284 ac_status=$?
7285 grep -v '^ *+' conftest.er1 >conftest.err
7286 rm -f conftest.er1
7287 cat conftest.err >&5
7288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } && {
7290 test -z "$ac_c_werror_flag" ||
7291 test ! -s conftest.err
7292 } && test -s conftest.$ac_objext; then
7293 ac_cv_header_sys_wait_h=yes
7294 else
7295 $as_echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7297
7298 ac_cv_header_sys_wait_h=no
7299 fi
7300
7301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7302 fi
7303 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7304 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7305 if test $ac_cv_header_sys_wait_h = yes; then
7306
7307 cat >>confdefs.h <<\_ACEOF
7308 #define HAVE_SYS_WAIT_H 1
7309 _ACEOF
7310
7311 fi
7312
7313
7314 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7315 $as_echo_n "checking for struct utimbuf... " >&6; }
7316 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7317 $as_echo_n "(cached) " >&6
7318 else
7319 cat >conftest.$ac_ext <<_ACEOF
7320 /* confdefs.h. */
7321 _ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7325 #ifdef TIME_WITH_SYS_TIME
7326 #include <sys/time.h>
7327 #include <time.h>
7328 #else
7329 #ifdef HAVE_SYS_TIME_H
7330 #include <sys/time.h>
7331 #else
7332 #include <time.h>
7333 #endif
7334 #endif
7335 #ifdef HAVE_UTIME_H
7336 #include <utime.h>
7337 #endif
7338 int
7339 main ()
7340 {
7341 static struct utimbuf x; x.actime = x.modtime;
7342 ;
7343 return 0;
7344 }
7345 _ACEOF
7346 rm -f conftest.$ac_objext
7347 if { (ac_try="$ac_compile"
7348 case "(($ac_try" in
7349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350 *) ac_try_echo=$ac_try;;
7351 esac
7352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7353 $as_echo "$ac_try_echo") >&5
7354 (eval "$ac_compile") 2>conftest.er1
7355 ac_status=$?
7356 grep -v '^ *+' conftest.er1 >conftest.err
7357 rm -f conftest.er1
7358 cat conftest.err >&5
7359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && {
7361 test -z "$ac_c_werror_flag" ||
7362 test ! -s conftest.err
7363 } && test -s conftest.$ac_objext; then
7364 emacs_cv_struct_utimbuf=yes
7365 else
7366 $as_echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7368
7369 emacs_cv_struct_utimbuf=no
7370 fi
7371
7372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7373 fi
7374 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7375 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7376 if test $emacs_cv_struct_utimbuf = yes; then
7377
7378 cat >>confdefs.h <<\_ACEOF
7379 #define HAVE_STRUCT_UTIMBUF 1
7380 _ACEOF
7381
7382 fi
7383
7384 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7385 $as_echo_n "checking return type of signal handlers... " >&6; }
7386 if test "${ac_cv_type_signal+set}" = set; then
7387 $as_echo_n "(cached) " >&6
7388 else
7389 cat >conftest.$ac_ext <<_ACEOF
7390 /* confdefs.h. */
7391 _ACEOF
7392 cat confdefs.h >>conftest.$ac_ext
7393 cat >>conftest.$ac_ext <<_ACEOF
7394 /* end confdefs.h. */
7395 #include <sys/types.h>
7396 #include <signal.h>
7397
7398 int
7399 main ()
7400 {
7401 return *(signal (0, 0)) (0) == 1;
7402 ;
7403 return 0;
7404 }
7405 _ACEOF
7406 rm -f conftest.$ac_objext
7407 if { (ac_try="$ac_compile"
7408 case "(($ac_try" in
7409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7410 *) ac_try_echo=$ac_try;;
7411 esac
7412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7413 $as_echo "$ac_try_echo") >&5
7414 (eval "$ac_compile") 2>conftest.er1
7415 ac_status=$?
7416 grep -v '^ *+' conftest.er1 >conftest.err
7417 rm -f conftest.er1
7418 cat conftest.err >&5
7419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } && {
7421 test -z "$ac_c_werror_flag" ||
7422 test ! -s conftest.err
7423 } && test -s conftest.$ac_objext; then
7424 ac_cv_type_signal=int
7425 else
7426 $as_echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7428
7429 ac_cv_type_signal=void
7430 fi
7431
7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433 fi
7434 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7435 $as_echo "$ac_cv_type_signal" >&6; }
7436
7437 cat >>confdefs.h <<_ACEOF
7438 #define RETSIGTYPE $ac_cv_type_signal
7439 _ACEOF
7440
7441
7442
7443 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7444 $as_echo_n "checking for speed_t... " >&6; }
7445 if test "${emacs_cv_speed_t+set}" = set; then
7446 $as_echo_n "(cached) " >&6
7447 else
7448 cat >conftest.$ac_ext <<_ACEOF
7449 /* confdefs.h. */
7450 _ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h. */
7454 #include <termios.h>
7455 int
7456 main ()
7457 {
7458 speed_t x = 1;
7459 ;
7460 return 0;
7461 }
7462 _ACEOF
7463 rm -f conftest.$ac_objext
7464 if { (ac_try="$ac_compile"
7465 case "(($ac_try" in
7466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7467 *) ac_try_echo=$ac_try;;
7468 esac
7469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7470 $as_echo "$ac_try_echo") >&5
7471 (eval "$ac_compile") 2>conftest.er1
7472 ac_status=$?
7473 grep -v '^ *+' conftest.er1 >conftest.err
7474 rm -f conftest.er1
7475 cat conftest.err >&5
7476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } && {
7478 test -z "$ac_c_werror_flag" ||
7479 test ! -s conftest.err
7480 } && test -s conftest.$ac_objext; then
7481 emacs_cv_speed_t=yes
7482 else
7483 $as_echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7485
7486 emacs_cv_speed_t=no
7487 fi
7488
7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490 fi
7491 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7492 $as_echo "$emacs_cv_speed_t" >&6; }
7493 if test $emacs_cv_speed_t = yes; then
7494
7495 cat >>confdefs.h <<\_ACEOF
7496 #define HAVE_SPEED_T 1
7497 _ACEOF
7498
7499 fi
7500
7501 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7502 $as_echo_n "checking for struct timeval... " >&6; }
7503 if test "${emacs_cv_struct_timeval+set}" = set; then
7504 $as_echo_n "(cached) " >&6
7505 else
7506 cat >conftest.$ac_ext <<_ACEOF
7507 /* confdefs.h. */
7508 _ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h. */
7512 #ifdef TIME_WITH_SYS_TIME
7513 #include <sys/time.h>
7514 #include <time.h>
7515 #else
7516 #ifdef HAVE_SYS_TIME_H
7517 #include <sys/time.h>
7518 #else
7519 #include <time.h>
7520 #endif
7521 #endif
7522 int
7523 main ()
7524 {
7525 static struct timeval x; x.tv_sec = x.tv_usec;
7526 ;
7527 return 0;
7528 }
7529 _ACEOF
7530 rm -f conftest.$ac_objext
7531 if { (ac_try="$ac_compile"
7532 case "(($ac_try" in
7533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7534 *) ac_try_echo=$ac_try;;
7535 esac
7536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7537 $as_echo "$ac_try_echo") >&5
7538 (eval "$ac_compile") 2>conftest.er1
7539 ac_status=$?
7540 grep -v '^ *+' conftest.er1 >conftest.err
7541 rm -f conftest.er1
7542 cat conftest.err >&5
7543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } && {
7545 test -z "$ac_c_werror_flag" ||
7546 test ! -s conftest.err
7547 } && test -s conftest.$ac_objext; then
7548 emacs_cv_struct_timeval=yes
7549 else
7550 $as_echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7552
7553 emacs_cv_struct_timeval=no
7554 fi
7555
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557 fi
7558 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7559 $as_echo "$emacs_cv_struct_timeval" >&6; }
7560 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7561 if test $emacs_cv_struct_timeval = yes; then
7562
7563 cat >>confdefs.h <<\_ACEOF
7564 #define HAVE_TIMEVAL 1
7565 _ACEOF
7566
7567 fi
7568
7569 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7570 $as_echo_n "checking for struct exception... " >&6; }
7571 if test "${emacs_cv_struct_exception+set}" = set; then
7572 $as_echo_n "(cached) " >&6
7573 else
7574 cat >conftest.$ac_ext <<_ACEOF
7575 /* confdefs.h. */
7576 _ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h. */
7580 #include <math.h>
7581 int
7582 main ()
7583 {
7584 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7585 ;
7586 return 0;
7587 }
7588 _ACEOF
7589 rm -f conftest.$ac_objext
7590 if { (ac_try="$ac_compile"
7591 case "(($ac_try" in
7592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593 *) ac_try_echo=$ac_try;;
7594 esac
7595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7596 $as_echo "$ac_try_echo") >&5
7597 (eval "$ac_compile") 2>conftest.er1
7598 ac_status=$?
7599 grep -v '^ *+' conftest.er1 >conftest.err
7600 rm -f conftest.er1
7601 cat conftest.err >&5
7602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } && {
7604 test -z "$ac_c_werror_flag" ||
7605 test ! -s conftest.err
7606 } && test -s conftest.$ac_objext; then
7607 emacs_cv_struct_exception=yes
7608 else
7609 $as_echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.$ac_ext >&5
7611
7612 emacs_cv_struct_exception=no
7613 fi
7614
7615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616 fi
7617 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7618 $as_echo "$emacs_cv_struct_exception" >&6; }
7619 HAVE_EXCEPTION=$emacs_cv_struct_exception
7620 if test $emacs_cv_struct_exception != yes; then
7621
7622 cat >>confdefs.h <<\_ACEOF
7623 #define NO_MATHERR 1
7624 _ACEOF
7625
7626 fi
7627
7628
7629 for ac_header in sys/socket.h
7630 do
7631 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7633 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7634 $as_echo_n "checking for $ac_header... " >&6; }
7635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7636 $as_echo_n "(cached) " >&6
7637 fi
7638 ac_res=`eval 'as_val=${'$as_ac_Header'}
7639 $as_echo "$as_val"'`
7640 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7641 $as_echo "$ac_res" >&6; }
7642 else
7643 # Is the header compilable?
7644 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7645 $as_echo_n "checking $ac_header usability... " >&6; }
7646 cat >conftest.$ac_ext <<_ACEOF
7647 /* confdefs.h. */
7648 _ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7652 $ac_includes_default
7653 #include <$ac_header>
7654 _ACEOF
7655 rm -f conftest.$ac_objext
7656 if { (ac_try="$ac_compile"
7657 case "(($ac_try" in
7658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659 *) ac_try_echo=$ac_try;;
7660 esac
7661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7662 $as_echo "$ac_try_echo") >&5
7663 (eval "$ac_compile") 2>conftest.er1
7664 ac_status=$?
7665 grep -v '^ *+' conftest.er1 >conftest.err
7666 rm -f conftest.er1
7667 cat conftest.err >&5
7668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } && {
7670 test -z "$ac_c_werror_flag" ||
7671 test ! -s conftest.err
7672 } && test -s conftest.$ac_objext; then
7673 ac_header_compiler=yes
7674 else
7675 $as_echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7677
7678 ac_header_compiler=no
7679 fi
7680
7681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7683 $as_echo "$ac_header_compiler" >&6; }
7684
7685 # Is the header present?
7686 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7687 $as_echo_n "checking $ac_header presence... " >&6; }
7688 cat >conftest.$ac_ext <<_ACEOF
7689 /* confdefs.h. */
7690 _ACEOF
7691 cat confdefs.h >>conftest.$ac_ext
7692 cat >>conftest.$ac_ext <<_ACEOF
7693 /* end confdefs.h. */
7694 #include <$ac_header>
7695 _ACEOF
7696 if { (ac_try="$ac_cpp conftest.$ac_ext"
7697 case "(($ac_try" in
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7700 esac
7701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7702 $as_echo "$ac_try_echo") >&5
7703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7704 ac_status=$?
7705 grep -v '^ *+' conftest.er1 >conftest.err
7706 rm -f conftest.er1
7707 cat conftest.err >&5
7708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } >/dev/null && {
7710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7712 }; then
7713 ac_header_preproc=yes
7714 else
7715 $as_echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7717
7718 ac_header_preproc=no
7719 fi
7720
7721 rm -f conftest.err conftest.$ac_ext
7722 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7723 $as_echo "$ac_header_preproc" >&6; }
7724
7725 # So? What about this header?
7726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7727 yes:no: )
7728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7729 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7731 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7732 ac_header_preproc=yes
7733 ;;
7734 no:yes:* )
7735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7736 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7738 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7740 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7742 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7744 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7746 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7747
7748 ;;
7749 esac
7750 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7751 $as_echo_n "checking for $ac_header... " >&6; }
7752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7753 $as_echo_n "(cached) " >&6
7754 else
7755 eval "$as_ac_Header=\$ac_header_preproc"
7756 fi
7757 ac_res=`eval 'as_val=${'$as_ac_Header'}
7758 $as_echo "$as_val"'`
7759 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7760 $as_echo "$ac_res" >&6; }
7761
7762 fi
7763 if test `eval 'as_val=${'$as_ac_Header'}
7764 $as_echo "$as_val"'` = yes; then
7765 cat >>confdefs.h <<_ACEOF
7766 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7767 _ACEOF
7768
7769 fi
7770
7771 done
7772
7773
7774 for ac_header in net/if.h
7775 do
7776 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7777 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7778 $as_echo_n "checking for $ac_header... " >&6; }
7779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7780 $as_echo_n "(cached) " >&6
7781 else
7782 cat >conftest.$ac_ext <<_ACEOF
7783 /* confdefs.h. */
7784 _ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7788 $ac_includes_default
7789 #if HAVE_SYS_SOCKET_H
7790 #include <sys/socket.h>
7791 #endif
7792
7793 #include <$ac_header>
7794 _ACEOF
7795 rm -f conftest.$ac_objext
7796 if { (ac_try="$ac_compile"
7797 case "(($ac_try" in
7798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799 *) ac_try_echo=$ac_try;;
7800 esac
7801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7802 $as_echo "$ac_try_echo") >&5
7803 (eval "$ac_compile") 2>conftest.er1
7804 ac_status=$?
7805 grep -v '^ *+' conftest.er1 >conftest.err
7806 rm -f conftest.er1
7807 cat conftest.err >&5
7808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } && {
7810 test -z "$ac_c_werror_flag" ||
7811 test ! -s conftest.err
7812 } && test -s conftest.$ac_objext; then
7813 eval "$as_ac_Header=yes"
7814 else
7815 $as_echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7817
7818 eval "$as_ac_Header=no"
7819 fi
7820
7821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822 fi
7823 ac_res=`eval 'as_val=${'$as_ac_Header'}
7824 $as_echo "$as_val"'`
7825 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7826 $as_echo "$ac_res" >&6; }
7827 if test `eval 'as_val=${'$as_ac_Header'}
7828 $as_echo "$as_val"'` = yes; then
7829 cat >>confdefs.h <<_ACEOF
7830 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7831 _ACEOF
7832
7833 fi
7834
7835 done
7836
7837
7838 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7839 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7840 if test "${ac_cv_struct_tm+set}" = set; then
7841 $as_echo_n "(cached) " >&6
7842 else
7843 cat >conftest.$ac_ext <<_ACEOF
7844 /* confdefs.h. */
7845 _ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7849 #include <sys/types.h>
7850 #include <time.h>
7851
7852 int
7853 main ()
7854 {
7855 struct tm tm;
7856 int *p = &tm.tm_sec;
7857 return !p;
7858 ;
7859 return 0;
7860 }
7861 _ACEOF
7862 rm -f conftest.$ac_objext
7863 if { (ac_try="$ac_compile"
7864 case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867 esac
7868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7869 $as_echo "$ac_try_echo") >&5
7870 (eval "$ac_compile") 2>conftest.er1
7871 ac_status=$?
7872 grep -v '^ *+' conftest.er1 >conftest.err
7873 rm -f conftest.er1
7874 cat conftest.err >&5
7875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } && {
7877 test -z "$ac_c_werror_flag" ||
7878 test ! -s conftest.err
7879 } && test -s conftest.$ac_objext; then
7880 ac_cv_struct_tm=time.h
7881 else
7882 $as_echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7884
7885 ac_cv_struct_tm=sys/time.h
7886 fi
7887
7888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7889 fi
7890 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7891 $as_echo "$ac_cv_struct_tm" >&6; }
7892 if test $ac_cv_struct_tm = sys/time.h; then
7893
7894 cat >>confdefs.h <<\_ACEOF
7895 #define TM_IN_SYS_TIME 1
7896 _ACEOF
7897
7898 fi
7899
7900 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7901 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7902 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7903 $as_echo_n "(cached) " >&6
7904 else
7905 cat >conftest.$ac_ext <<_ACEOF
7906 /* confdefs.h. */
7907 _ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7911 #include <sys/types.h>
7912 #include <$ac_cv_struct_tm>
7913
7914
7915 int
7916 main ()
7917 {
7918 static struct tm ac_aggr;
7919 if (ac_aggr.tm_zone)
7920 return 0;
7921 ;
7922 return 0;
7923 }
7924 _ACEOF
7925 rm -f conftest.$ac_objext
7926 if { (ac_try="$ac_compile"
7927 case "(($ac_try" in
7928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929 *) ac_try_echo=$ac_try;;
7930 esac
7931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7932 $as_echo "$ac_try_echo") >&5
7933 (eval "$ac_compile") 2>conftest.er1
7934 ac_status=$?
7935 grep -v '^ *+' conftest.er1 >conftest.err
7936 rm -f conftest.er1
7937 cat conftest.err >&5
7938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } && {
7940 test -z "$ac_c_werror_flag" ||
7941 test ! -s conftest.err
7942 } && test -s conftest.$ac_objext; then
7943 ac_cv_member_struct_tm_tm_zone=yes
7944 else
7945 $as_echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7947
7948 cat >conftest.$ac_ext <<_ACEOF
7949 /* confdefs.h. */
7950 _ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7954 #include <sys/types.h>
7955 #include <$ac_cv_struct_tm>
7956
7957
7958 int
7959 main ()
7960 {
7961 static struct tm ac_aggr;
7962 if (sizeof ac_aggr.tm_zone)
7963 return 0;
7964 ;
7965 return 0;
7966 }
7967 _ACEOF
7968 rm -f conftest.$ac_objext
7969 if { (ac_try="$ac_compile"
7970 case "(($ac_try" in
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7973 esac
7974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7975 $as_echo "$ac_try_echo") >&5
7976 (eval "$ac_compile") 2>conftest.er1
7977 ac_status=$?
7978 grep -v '^ *+' conftest.er1 >conftest.err
7979 rm -f conftest.er1
7980 cat conftest.err >&5
7981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } && {
7983 test -z "$ac_c_werror_flag" ||
7984 test ! -s conftest.err
7985 } && test -s conftest.$ac_objext; then
7986 ac_cv_member_struct_tm_tm_zone=yes
7987 else
7988 $as_echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7990
7991 ac_cv_member_struct_tm_tm_zone=no
7992 fi
7993
7994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7995 fi
7996
7997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7998 fi
7999 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8000 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8001 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8002
8003 cat >>confdefs.h <<_ACEOF
8004 #define HAVE_STRUCT_TM_TM_ZONE 1
8005 _ACEOF
8006
8007
8008 fi
8009
8010 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8011
8012 cat >>confdefs.h <<\_ACEOF
8013 #define HAVE_TM_ZONE 1
8014 _ACEOF
8015
8016 else
8017 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8018 $as_echo_n "checking whether tzname is declared... " >&6; }
8019 if test "${ac_cv_have_decl_tzname+set}" = set; then
8020 $as_echo_n "(cached) " >&6
8021 else
8022 cat >conftest.$ac_ext <<_ACEOF
8023 /* confdefs.h. */
8024 _ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8028 #include <time.h>
8029
8030 int
8031 main ()
8032 {
8033 #ifndef tzname
8034 (void) tzname;
8035 #endif
8036
8037 ;
8038 return 0;
8039 }
8040 _ACEOF
8041 rm -f conftest.$ac_objext
8042 if { (ac_try="$ac_compile"
8043 case "(($ac_try" in
8044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8045 *) ac_try_echo=$ac_try;;
8046 esac
8047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8048 $as_echo "$ac_try_echo") >&5
8049 (eval "$ac_compile") 2>conftest.er1
8050 ac_status=$?
8051 grep -v '^ *+' conftest.er1 >conftest.err
8052 rm -f conftest.er1
8053 cat conftest.err >&5
8054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } && {
8056 test -z "$ac_c_werror_flag" ||
8057 test ! -s conftest.err
8058 } && test -s conftest.$ac_objext; then
8059 ac_cv_have_decl_tzname=yes
8060 else
8061 $as_echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8063
8064 ac_cv_have_decl_tzname=no
8065 fi
8066
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068 fi
8069 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8070 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8071 if test $ac_cv_have_decl_tzname = yes; then
8072
8073 cat >>confdefs.h <<_ACEOF
8074 #define HAVE_DECL_TZNAME 1
8075 _ACEOF
8076
8077
8078 else
8079 cat >>confdefs.h <<_ACEOF
8080 #define HAVE_DECL_TZNAME 0
8081 _ACEOF
8082
8083
8084 fi
8085
8086
8087 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8088 $as_echo_n "checking for tzname... " >&6; }
8089 if test "${ac_cv_var_tzname+set}" = set; then
8090 $as_echo_n "(cached) " >&6
8091 else
8092 cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h. */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8098 #include <time.h>
8099 #if !HAVE_DECL_TZNAME
8100 extern char *tzname[];
8101 #endif
8102
8103 int
8104 main ()
8105 {
8106 return tzname[0][0];
8107 ;
8108 return 0;
8109 }
8110 _ACEOF
8111 rm -f conftest.$ac_objext conftest$ac_exeext
8112 if { (ac_try="$ac_link"
8113 case "(($ac_try" in
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8116 esac
8117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8118 $as_echo "$ac_try_echo") >&5
8119 (eval "$ac_link") 2>conftest.er1
8120 ac_status=$?
8121 grep -v '^ *+' conftest.er1 >conftest.err
8122 rm -f conftest.er1
8123 cat conftest.err >&5
8124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } && {
8126 test -z "$ac_c_werror_flag" ||
8127 test ! -s conftest.err
8128 } && test -s conftest$ac_exeext && {
8129 test "$cross_compiling" = yes ||
8130 $as_test_x conftest$ac_exeext
8131 }; then
8132 ac_cv_var_tzname=yes
8133 else
8134 $as_echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8136
8137 ac_cv_var_tzname=no
8138 fi
8139
8140 rm -rf conftest.dSYM
8141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8142 conftest$ac_exeext conftest.$ac_ext
8143 fi
8144 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8145 $as_echo "$ac_cv_var_tzname" >&6; }
8146 if test $ac_cv_var_tzname = yes; then
8147
8148 cat >>confdefs.h <<\_ACEOF
8149 #define HAVE_TZNAME 1
8150 _ACEOF
8151
8152 fi
8153 fi
8154
8155 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8156 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8157 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8158 $as_echo_n "(cached) " >&6
8159 else
8160 cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h. */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8166 #include <time.h>
8167
8168 int
8169 main ()
8170 {
8171 static struct tm ac_aggr;
8172 if (ac_aggr.tm_gmtoff)
8173 return 0;
8174 ;
8175 return 0;
8176 }
8177 _ACEOF
8178 rm -f conftest.$ac_objext
8179 if { (ac_try="$ac_compile"
8180 case "(($ac_try" in
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8183 esac
8184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8185 $as_echo "$ac_try_echo") >&5
8186 (eval "$ac_compile") 2>conftest.er1
8187 ac_status=$?
8188 grep -v '^ *+' conftest.er1 >conftest.err
8189 rm -f conftest.er1
8190 cat conftest.err >&5
8191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } && {
8193 test -z "$ac_c_werror_flag" ||
8194 test ! -s conftest.err
8195 } && test -s conftest.$ac_objext; then
8196 ac_cv_member_struct_tm_tm_gmtoff=yes
8197 else
8198 $as_echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8200
8201 cat >conftest.$ac_ext <<_ACEOF
8202 /* confdefs.h. */
8203 _ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8207 #include <time.h>
8208
8209 int
8210 main ()
8211 {
8212 static struct tm ac_aggr;
8213 if (sizeof ac_aggr.tm_gmtoff)
8214 return 0;
8215 ;
8216 return 0;
8217 }
8218 _ACEOF
8219 rm -f conftest.$ac_objext
8220 if { (ac_try="$ac_compile"
8221 case "(($ac_try" in
8222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8224 esac
8225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8226 $as_echo "$ac_try_echo") >&5
8227 (eval "$ac_compile") 2>conftest.er1
8228 ac_status=$?
8229 grep -v '^ *+' conftest.er1 >conftest.err
8230 rm -f conftest.er1
8231 cat conftest.err >&5
8232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } && {
8234 test -z "$ac_c_werror_flag" ||
8235 test ! -s conftest.err
8236 } && test -s conftest.$ac_objext; then
8237 ac_cv_member_struct_tm_tm_gmtoff=yes
8238 else
8239 $as_echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8241
8242 ac_cv_member_struct_tm_tm_gmtoff=no
8243 fi
8244
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246 fi
8247
8248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8249 fi
8250 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8251 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8252 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8253
8254 cat >>confdefs.h <<\_ACEOF
8255 #define HAVE_TM_GMTOFF 1
8256 _ACEOF
8257
8258 fi
8259
8260 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8261 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8262 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8263 $as_echo_n "(cached) " >&6
8264 else
8265 cat >conftest.$ac_ext <<_ACEOF
8266 /* confdefs.h. */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 $ac_includes_default
8272 #if HAVE_SYS_SOCKET_H
8273 #include <sys/socket.h>
8274 #endif
8275 #if HAVE_NET_IF_H
8276 #include <net/if.h>
8277 #endif
8278
8279 int
8280 main ()
8281 {
8282 static struct ifreq ac_aggr;
8283 if (ac_aggr.ifr_flags)
8284 return 0;
8285 ;
8286 return 0;
8287 }
8288 _ACEOF
8289 rm -f conftest.$ac_objext
8290 if { (ac_try="$ac_compile"
8291 case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8294 esac
8295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8296 $as_echo "$ac_try_echo") >&5
8297 (eval "$ac_compile") 2>conftest.er1
8298 ac_status=$?
8299 grep -v '^ *+' conftest.er1 >conftest.err
8300 rm -f conftest.er1
8301 cat conftest.err >&5
8302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } && {
8304 test -z "$ac_c_werror_flag" ||
8305 test ! -s conftest.err
8306 } && test -s conftest.$ac_objext; then
8307 ac_cv_member_struct_ifreq_ifr_flags=yes
8308 else
8309 $as_echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8311
8312 cat >conftest.$ac_ext <<_ACEOF
8313 /* confdefs.h. */
8314 _ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8318 $ac_includes_default
8319 #if HAVE_SYS_SOCKET_H
8320 #include <sys/socket.h>
8321 #endif
8322 #if HAVE_NET_IF_H
8323 #include <net/if.h>
8324 #endif
8325
8326 int
8327 main ()
8328 {
8329 static struct ifreq ac_aggr;
8330 if (sizeof ac_aggr.ifr_flags)
8331 return 0;
8332 ;
8333 return 0;
8334 }
8335 _ACEOF
8336 rm -f conftest.$ac_objext
8337 if { (ac_try="$ac_compile"
8338 case "(($ac_try" in
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8341 esac
8342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8343 $as_echo "$ac_try_echo") >&5
8344 (eval "$ac_compile") 2>conftest.er1
8345 ac_status=$?
8346 grep -v '^ *+' conftest.er1 >conftest.err
8347 rm -f conftest.er1
8348 cat conftest.err >&5
8349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } && {
8351 test -z "$ac_c_werror_flag" ||
8352 test ! -s conftest.err
8353 } && test -s conftest.$ac_objext; then
8354 ac_cv_member_struct_ifreq_ifr_flags=yes
8355 else
8356 $as_echo "$as_me: failed program was:" >&5
8357 sed 's/^/| /' conftest.$ac_ext >&5
8358
8359 ac_cv_member_struct_ifreq_ifr_flags=no
8360 fi
8361
8362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8363 fi
8364
8365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8366 fi
8367 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8368 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8369 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8370
8371 cat >>confdefs.h <<_ACEOF
8372 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8373 _ACEOF
8374
8375
8376 fi
8377 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8378 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8379 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8380 $as_echo_n "(cached) " >&6
8381 else
8382 cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h. */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8388 $ac_includes_default
8389 #if HAVE_SYS_SOCKET_H
8390 #include <sys/socket.h>
8391 #endif
8392 #if HAVE_NET_IF_H
8393 #include <net/if.h>
8394 #endif
8395
8396 int
8397 main ()
8398 {
8399 static struct ifreq ac_aggr;
8400 if (ac_aggr.ifr_hwaddr)
8401 return 0;
8402 ;
8403 return 0;
8404 }
8405 _ACEOF
8406 rm -f conftest.$ac_objext
8407 if { (ac_try="$ac_compile"
8408 case "(($ac_try" in
8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8411 esac
8412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8413 $as_echo "$ac_try_echo") >&5
8414 (eval "$ac_compile") 2>conftest.er1
8415 ac_status=$?
8416 grep -v '^ *+' conftest.er1 >conftest.err
8417 rm -f conftest.er1
8418 cat conftest.err >&5
8419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } && {
8421 test -z "$ac_c_werror_flag" ||
8422 test ! -s conftest.err
8423 } && test -s conftest.$ac_objext; then
8424 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8425 else
8426 $as_echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8428
8429 cat >conftest.$ac_ext <<_ACEOF
8430 /* confdefs.h. */
8431 _ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435 $ac_includes_default
8436 #if HAVE_SYS_SOCKET_H
8437 #include <sys/socket.h>
8438 #endif
8439 #if HAVE_NET_IF_H
8440 #include <net/if.h>
8441 #endif
8442
8443 int
8444 main ()
8445 {
8446 static struct ifreq ac_aggr;
8447 if (sizeof ac_aggr.ifr_hwaddr)
8448 return 0;
8449 ;
8450 return 0;
8451 }
8452 _ACEOF
8453 rm -f conftest.$ac_objext
8454 if { (ac_try="$ac_compile"
8455 case "(($ac_try" in
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8458 esac
8459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8460 $as_echo "$ac_try_echo") >&5
8461 (eval "$ac_compile") 2>conftest.er1
8462 ac_status=$?
8463 grep -v '^ *+' conftest.er1 >conftest.err
8464 rm -f conftest.er1
8465 cat conftest.err >&5
8466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } && {
8468 test -z "$ac_c_werror_flag" ||
8469 test ! -s conftest.err
8470 } && test -s conftest.$ac_objext; then
8471 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8472 else
8473 $as_echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8475
8476 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8477 fi
8478
8479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480 fi
8481
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 fi
8484 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8485 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8486 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8487
8488 cat >>confdefs.h <<_ACEOF
8489 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8490 _ACEOF
8491
8492
8493 fi
8494 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8495 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8496 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8497 $as_echo_n "(cached) " >&6
8498 else
8499 cat >conftest.$ac_ext <<_ACEOF
8500 /* confdefs.h. */
8501 _ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8505 $ac_includes_default
8506 #if HAVE_SYS_SOCKET_H
8507 #include <sys/socket.h>
8508 #endif
8509 #if HAVE_NET_IF_H
8510 #include <net/if.h>
8511 #endif
8512
8513 int
8514 main ()
8515 {
8516 static struct ifreq ac_aggr;
8517 if (ac_aggr.ifr_netmask)
8518 return 0;
8519 ;
8520 return 0;
8521 }
8522 _ACEOF
8523 rm -f conftest.$ac_objext
8524 if { (ac_try="$ac_compile"
8525 case "(($ac_try" in
8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8528 esac
8529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8530 $as_echo "$ac_try_echo") >&5
8531 (eval "$ac_compile") 2>conftest.er1
8532 ac_status=$?
8533 grep -v '^ *+' conftest.er1 >conftest.err
8534 rm -f conftest.er1
8535 cat conftest.err >&5
8536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } && {
8538 test -z "$ac_c_werror_flag" ||
8539 test ! -s conftest.err
8540 } && test -s conftest.$ac_objext; then
8541 ac_cv_member_struct_ifreq_ifr_netmask=yes
8542 else
8543 $as_echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8545
8546 cat >conftest.$ac_ext <<_ACEOF
8547 /* confdefs.h. */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 $ac_includes_default
8553 #if HAVE_SYS_SOCKET_H
8554 #include <sys/socket.h>
8555 #endif
8556 #if HAVE_NET_IF_H
8557 #include <net/if.h>
8558 #endif
8559
8560 int
8561 main ()
8562 {
8563 static struct ifreq ac_aggr;
8564 if (sizeof ac_aggr.ifr_netmask)
8565 return 0;
8566 ;
8567 return 0;
8568 }
8569 _ACEOF
8570 rm -f conftest.$ac_objext
8571 if { (ac_try="$ac_compile"
8572 case "(($ac_try" in
8573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574 *) ac_try_echo=$ac_try;;
8575 esac
8576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8577 $as_echo "$ac_try_echo") >&5
8578 (eval "$ac_compile") 2>conftest.er1
8579 ac_status=$?
8580 grep -v '^ *+' conftest.er1 >conftest.err
8581 rm -f conftest.er1
8582 cat conftest.err >&5
8583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } && {
8585 test -z "$ac_c_werror_flag" ||
8586 test ! -s conftest.err
8587 } && test -s conftest.$ac_objext; then
8588 ac_cv_member_struct_ifreq_ifr_netmask=yes
8589 else
8590 $as_echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8592
8593 ac_cv_member_struct_ifreq_ifr_netmask=no
8594 fi
8595
8596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8597 fi
8598
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600 fi
8601 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8602 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8603 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8604
8605 cat >>confdefs.h <<_ACEOF
8606 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8607 _ACEOF
8608
8609
8610 fi
8611 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8612 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8613 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8614 $as_echo_n "(cached) " >&6
8615 else
8616 cat >conftest.$ac_ext <<_ACEOF
8617 /* confdefs.h. */
8618 _ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h. */
8622 $ac_includes_default
8623 #if HAVE_SYS_SOCKET_H
8624 #include <sys/socket.h>
8625 #endif
8626 #if HAVE_NET_IF_H
8627 #include <net/if.h>
8628 #endif
8629
8630 int
8631 main ()
8632 {
8633 static struct ifreq ac_aggr;
8634 if (ac_aggr.ifr_broadaddr)
8635 return 0;
8636 ;
8637 return 0;
8638 }
8639 _ACEOF
8640 rm -f conftest.$ac_objext
8641 if { (ac_try="$ac_compile"
8642 case "(($ac_try" in
8643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644 *) ac_try_echo=$ac_try;;
8645 esac
8646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8647 $as_echo "$ac_try_echo") >&5
8648 (eval "$ac_compile") 2>conftest.er1
8649 ac_status=$?
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
8653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } && {
8655 test -z "$ac_c_werror_flag" ||
8656 test ! -s conftest.err
8657 } && test -s conftest.$ac_objext; then
8658 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8659 else
8660 $as_echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8662
8663 cat >conftest.$ac_ext <<_ACEOF
8664 /* confdefs.h. */
8665 _ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h. */
8669 $ac_includes_default
8670 #if HAVE_SYS_SOCKET_H
8671 #include <sys/socket.h>
8672 #endif
8673 #if HAVE_NET_IF_H
8674 #include <net/if.h>
8675 #endif
8676
8677 int
8678 main ()
8679 {
8680 static struct ifreq ac_aggr;
8681 if (sizeof ac_aggr.ifr_broadaddr)
8682 return 0;
8683 ;
8684 return 0;
8685 }
8686 _ACEOF
8687 rm -f conftest.$ac_objext
8688 if { (ac_try="$ac_compile"
8689 case "(($ac_try" in
8690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691 *) ac_try_echo=$ac_try;;
8692 esac
8693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8694 $as_echo "$ac_try_echo") >&5
8695 (eval "$ac_compile") 2>conftest.er1
8696 ac_status=$?
8697 grep -v '^ *+' conftest.er1 >conftest.err
8698 rm -f conftest.er1
8699 cat conftest.err >&5
8700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } && {
8702 test -z "$ac_c_werror_flag" ||
8703 test ! -s conftest.err
8704 } && test -s conftest.$ac_objext; then
8705 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8706 else
8707 $as_echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.$ac_ext >&5
8709
8710 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8711 fi
8712
8713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8714 fi
8715
8716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717 fi
8718 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8719 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8720 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8721
8722 cat >>confdefs.h <<_ACEOF
8723 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8724 _ACEOF
8725
8726
8727 fi
8728 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8729 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8730 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8731 $as_echo_n "(cached) " >&6
8732 else
8733 cat >conftest.$ac_ext <<_ACEOF
8734 /* confdefs.h. */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 $ac_includes_default
8740 #if HAVE_SYS_SOCKET_H
8741 #include <sys/socket.h>
8742 #endif
8743 #if HAVE_NET_IF_H
8744 #include <net/if.h>
8745 #endif
8746
8747 int
8748 main ()
8749 {
8750 static struct ifreq ac_aggr;
8751 if (ac_aggr.ifr_addr)
8752 return 0;
8753 ;
8754 return 0;
8755 }
8756 _ACEOF
8757 rm -f conftest.$ac_objext
8758 if { (ac_try="$ac_compile"
8759 case "(($ac_try" in
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8762 esac
8763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8764 $as_echo "$ac_try_echo") >&5
8765 (eval "$ac_compile") 2>conftest.er1
8766 ac_status=$?
8767 grep -v '^ *+' conftest.er1 >conftest.err
8768 rm -f conftest.er1
8769 cat conftest.err >&5
8770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } && {
8772 test -z "$ac_c_werror_flag" ||
8773 test ! -s conftest.err
8774 } && test -s conftest.$ac_objext; then
8775 ac_cv_member_struct_ifreq_ifr_addr=yes
8776 else
8777 $as_echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8779
8780 cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h. */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8786 $ac_includes_default
8787 #if HAVE_SYS_SOCKET_H
8788 #include <sys/socket.h>
8789 #endif
8790 #if HAVE_NET_IF_H
8791 #include <net/if.h>
8792 #endif
8793
8794 int
8795 main ()
8796 {
8797 static struct ifreq ac_aggr;
8798 if (sizeof ac_aggr.ifr_addr)
8799 return 0;
8800 ;
8801 return 0;
8802 }
8803 _ACEOF
8804 rm -f conftest.$ac_objext
8805 if { (ac_try="$ac_compile"
8806 case "(($ac_try" in
8807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8808 *) ac_try_echo=$ac_try;;
8809 esac
8810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8811 $as_echo "$ac_try_echo") >&5
8812 (eval "$ac_compile") 2>conftest.er1
8813 ac_status=$?
8814 grep -v '^ *+' conftest.er1 >conftest.err
8815 rm -f conftest.er1
8816 cat conftest.err >&5
8817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); } && {
8819 test -z "$ac_c_werror_flag" ||
8820 test ! -s conftest.err
8821 } && test -s conftest.$ac_objext; then
8822 ac_cv_member_struct_ifreq_ifr_addr=yes
8823 else
8824 $as_echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8826
8827 ac_cv_member_struct_ifreq_ifr_addr=no
8828 fi
8829
8830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8831 fi
8832
8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8834 fi
8835 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8836 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8837 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8838
8839 cat >>confdefs.h <<_ACEOF
8840 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8841 _ACEOF
8842
8843
8844 fi
8845
8846
8847
8848 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8849 $as_echo_n "checking for function prototypes... " >&6; }
8850 if test "$ac_cv_prog_cc_c89" != no; then
8851 { $as_echo "$as_me:$LINENO: result: yes" >&5
8852 $as_echo "yes" >&6; }
8853
8854 cat >>confdefs.h <<\_ACEOF
8855 #define PROTOTYPES 1
8856 _ACEOF
8857
8858
8859 cat >>confdefs.h <<\_ACEOF
8860 #define __PROTOTYPES 1
8861 _ACEOF
8862
8863 else
8864 { $as_echo "$as_me:$LINENO: result: no" >&5
8865 $as_echo "no" >&6; }
8866 fi
8867
8868 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8869 $as_echo_n "checking for working volatile... " >&6; }
8870 if test "${ac_cv_c_volatile+set}" = set; then
8871 $as_echo_n "(cached) " >&6
8872 else
8873 cat >conftest.$ac_ext <<_ACEOF
8874 /* confdefs.h. */
8875 _ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h. */
8879
8880 int
8881 main ()
8882 {
8883
8884 volatile int x;
8885 int * volatile y = (int *) 0;
8886 return !x && !y;
8887 ;
8888 return 0;
8889 }
8890 _ACEOF
8891 rm -f conftest.$ac_objext
8892 if { (ac_try="$ac_compile"
8893 case "(($ac_try" in
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8896 esac
8897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8898 $as_echo "$ac_try_echo") >&5
8899 (eval "$ac_compile") 2>conftest.er1
8900 ac_status=$?
8901 grep -v '^ *+' conftest.er1 >conftest.err
8902 rm -f conftest.er1
8903 cat conftest.err >&5
8904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } && {
8906 test -z "$ac_c_werror_flag" ||
8907 test ! -s conftest.err
8908 } && test -s conftest.$ac_objext; then
8909 ac_cv_c_volatile=yes
8910 else
8911 $as_echo "$as_me: failed program was:" >&5
8912 sed 's/^/| /' conftest.$ac_ext >&5
8913
8914 ac_cv_c_volatile=no
8915 fi
8916
8917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8918 fi
8919 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8920 $as_echo "$ac_cv_c_volatile" >&6; }
8921 if test $ac_cv_c_volatile = no; then
8922
8923 cat >>confdefs.h <<\_ACEOF
8924 #define volatile /**/
8925 _ACEOF
8926
8927 fi
8928
8929 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8930 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8931 if test "${ac_cv_c_const+set}" = set; then
8932 $as_echo_n "(cached) " >&6
8933 else
8934 cat >conftest.$ac_ext <<_ACEOF
8935 /* confdefs.h. */
8936 _ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8940
8941 int
8942 main ()
8943 {
8944 /* FIXME: Include the comments suggested by Paul. */
8945 #ifndef __cplusplus
8946 /* Ultrix mips cc rejects this. */
8947 typedef int charset[2];
8948 const charset cs;
8949 /* SunOS 4.1.1 cc rejects this. */
8950 char const *const *pcpcc;
8951 char **ppc;
8952 /* NEC SVR4.0.2 mips cc rejects this. */
8953 struct point {int x, y;};
8954 static struct point const zero = {0,0};
8955 /* AIX XL C 1.02.0.0 rejects this.
8956 It does not let you subtract one const X* pointer from another in
8957 an arm of an if-expression whose if-part is not a constant
8958 expression */
8959 const char *g = "string";
8960 pcpcc = &g + (g ? g-g : 0);
8961 /* HPUX 7.0 cc rejects these. */
8962 ++pcpcc;
8963 ppc = (char**) pcpcc;
8964 pcpcc = (char const *const *) ppc;
8965 { /* SCO 3.2v4 cc rejects this. */
8966 char *t;
8967 char const *s = 0 ? (char *) 0 : (char const *) 0;
8968
8969 *t++ = 0;
8970 if (s) return 0;
8971 }
8972 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8973 int x[] = {25, 17};
8974 const int *foo = &x[0];
8975 ++foo;
8976 }
8977 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8978 typedef const int *iptr;
8979 iptr p = 0;
8980 ++p;
8981 }
8982 { /* AIX XL C 1.02.0.0 rejects this saying
8983 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8984 struct s { int j; const int *ap[3]; };
8985 struct s *b; b->j = 5;
8986 }
8987 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8988 const int foo = 10;
8989 if (!foo) return 0;
8990 }
8991 return !cs[0] && !zero.x;
8992 #endif
8993
8994 ;
8995 return 0;
8996 }
8997 _ACEOF
8998 rm -f conftest.$ac_objext
8999 if { (ac_try="$ac_compile"
9000 case "(($ac_try" in
9001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002 *) ac_try_echo=$ac_try;;
9003 esac
9004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9005 $as_echo "$ac_try_echo") >&5
9006 (eval "$ac_compile") 2>conftest.er1
9007 ac_status=$?
9008 grep -v '^ *+' conftest.er1 >conftest.err
9009 rm -f conftest.er1
9010 cat conftest.err >&5
9011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } && {
9013 test -z "$ac_c_werror_flag" ||
9014 test ! -s conftest.err
9015 } && test -s conftest.$ac_objext; then
9016 ac_cv_c_const=yes
9017 else
9018 $as_echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9020
9021 ac_cv_c_const=no
9022 fi
9023
9024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9025 fi
9026 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9027 $as_echo "$ac_cv_c_const" >&6; }
9028 if test $ac_cv_c_const = no; then
9029
9030 cat >>confdefs.h <<\_ACEOF
9031 #define const /**/
9032 _ACEOF
9033
9034 fi
9035
9036 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9037 $as_echo_n "checking for void * support... " >&6; }
9038 if test "${emacs_cv_void_star+set}" = set; then
9039 $as_echo_n "(cached) " >&6
9040 else
9041 cat >conftest.$ac_ext <<_ACEOF
9042 /* confdefs.h. */
9043 _ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9047
9048 int
9049 main ()
9050 {
9051 void * foo;
9052 ;
9053 return 0;
9054 }
9055 _ACEOF
9056 rm -f conftest.$ac_objext
9057 if { (ac_try="$ac_compile"
9058 case "(($ac_try" in
9059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9060 *) ac_try_echo=$ac_try;;
9061 esac
9062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9063 $as_echo "$ac_try_echo") >&5
9064 (eval "$ac_compile") 2>conftest.er1
9065 ac_status=$?
9066 grep -v '^ *+' conftest.er1 >conftest.err
9067 rm -f conftest.er1
9068 cat conftest.err >&5
9069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } && {
9071 test -z "$ac_c_werror_flag" ||
9072 test ! -s conftest.err
9073 } && test -s conftest.$ac_objext; then
9074 emacs_cv_void_star=yes
9075 else
9076 $as_echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9078
9079 emacs_cv_void_star=no
9080 fi
9081
9082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9083 fi
9084 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9085 $as_echo "$emacs_cv_void_star" >&6; }
9086 if test $emacs_cv_void_star = yes; then
9087 cat >>confdefs.h <<\_ACEOF
9088 #define POINTER_TYPE void
9089 _ACEOF
9090
9091 else
9092 cat >>confdefs.h <<\_ACEOF
9093 #define POINTER_TYPE char
9094 _ACEOF
9095
9096 fi
9097
9098
9099
9100
9101
9102 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9103 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9104 set x ${MAKE-make}
9105 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9106 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9107 $as_echo_n "(cached) " >&6
9108 else
9109 cat >conftest.make <<\_ACEOF
9110 SHELL = /bin/sh
9111 all:
9112 @echo '@@@%%%=$(MAKE)=@@@%%%'
9113 _ACEOF
9114 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9115 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9116 *@@@%%%=?*=@@@%%%*)
9117 eval ac_cv_prog_make_${ac_make}_set=yes;;
9118 *)
9119 eval ac_cv_prog_make_${ac_make}_set=no;;
9120 esac
9121 rm -f conftest.make
9122 fi
9123 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9124 { $as_echo "$as_me:$LINENO: result: yes" >&5
9125 $as_echo "yes" >&6; }
9126 SET_MAKE=
9127 else
9128 { $as_echo "$as_me:$LINENO: result: no" >&5
9129 $as_echo "no" >&6; }
9130 SET_MAKE="MAKE=${MAKE-make}"
9131 fi
9132
9133
9134 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9135 $as_echo_n "checking for long file names... " >&6; }
9136 if test "${ac_cv_sys_long_file_names+set}" = set; then
9137 $as_echo_n "(cached) " >&6
9138 else
9139 ac_cv_sys_long_file_names=yes
9140 # Test for long file names in all the places we know might matter:
9141 # . the current directory, where building will happen
9142 # $prefix/lib where we will be installing things
9143 # $exec_prefix/lib likewise
9144 # $TMPDIR if set, where it might want to write temporary files
9145 # /tmp where it might want to write temporary files
9146 # /var/tmp likewise
9147 # /usr/tmp likewise
9148 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9149 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9150 # in the usual case where exec_prefix is '${prefix}'.
9151 case $ac_dir in #(
9152 . | /* | ?:[\\/]*) ;; #(
9153 *) continue;;
9154 esac
9155 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9156 ac_xdir=$ac_dir/cf$$
9157 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9158 ac_tf1=$ac_xdir/conftest9012345
9159 ac_tf2=$ac_xdir/conftest9012346
9160 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9161 ac_cv_sys_long_file_names=no
9162 rm -f -r "$ac_xdir" 2>/dev/null
9163 test $ac_cv_sys_long_file_names = no && break
9164 done
9165 fi
9166 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9167 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9168 if test $ac_cv_sys_long_file_names = yes; then
9169
9170 cat >>confdefs.h <<\_ACEOF
9171 #define HAVE_LONG_FILE_NAMES 1
9172 _ACEOF
9173
9174 fi
9175
9176
9177 #### Choose a window system.
9178
9179 { $as_echo "$as_me:$LINENO: checking for X" >&5
9180 $as_echo_n "checking for X... " >&6; }
9181
9182
9183 # Check whether --with-x was given.
9184 if test "${with_x+set}" = set; then
9185 withval=$with_x;
9186 fi
9187
9188 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9189 if test "x$with_x" = xno; then
9190 # The user explicitly disabled X.
9191 have_x=disabled
9192 else
9193 case $x_includes,$x_libraries in #(
9194 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9195 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9196 { (exit 1); exit 1; }; };; #(
9197 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9198 $as_echo_n "(cached) " >&6
9199 else
9200 # One or both of the vars are not set, and there is no cached value.
9201 ac_x_includes=no ac_x_libraries=no
9202 rm -f -r conftest.dir
9203 if mkdir conftest.dir; then
9204 cd conftest.dir
9205 cat >Imakefile <<'_ACEOF'
9206 incroot:
9207 @echo incroot='${INCROOT}'
9208 usrlibdir:
9209 @echo usrlibdir='${USRLIBDIR}'
9210 libdir:
9211 @echo libdir='${LIBDIR}'
9212 _ACEOF
9213 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9215 for ac_var in incroot usrlibdir libdir; do
9216 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9217 done
9218 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9219 for ac_extension in a so sl dylib la dll; do
9220 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9221 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9222 ac_im_usrlibdir=$ac_im_libdir; break
9223 fi
9224 done
9225 # Screen out bogus values from the imake configuration. They are
9226 # bogus both because they are the default anyway, and because
9227 # using them would break gcc on systems where it needs fixed includes.
9228 case $ac_im_incroot in
9229 /usr/include) ac_x_includes= ;;
9230 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9231 esac
9232 case $ac_im_usrlibdir in
9233 /usr/lib | /lib) ;;
9234 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9235 esac
9236 fi
9237 cd ..
9238 rm -f -r conftest.dir
9239 fi
9240
9241 # Standard set of common directories for X headers.
9242 # Check X11 before X11Rn because it is often a symlink to the current release.
9243 ac_x_header_dirs='
9244 /usr/X11/include
9245 /usr/X11R6/include
9246 /usr/X11R5/include
9247 /usr/X11R4/include
9248
9249 /usr/include/X11
9250 /usr/include/X11R6
9251 /usr/include/X11R5
9252 /usr/include/X11R4
9253
9254 /usr/local/X11/include
9255 /usr/local/X11R6/include
9256 /usr/local/X11R5/include
9257 /usr/local/X11R4/include
9258
9259 /usr/local/include/X11
9260 /usr/local/include/X11R6
9261 /usr/local/include/X11R5
9262 /usr/local/include/X11R4
9263
9264 /usr/X386/include
9265 /usr/x386/include
9266 /usr/XFree86/include/X11
9267
9268 /usr/include
9269 /usr/local/include
9270 /usr/unsupported/include
9271 /usr/athena/include
9272 /usr/local/x11r5/include
9273 /usr/lpp/Xamples/include
9274
9275 /usr/openwin/include
9276 /usr/openwin/share/include'
9277
9278 if test "$ac_x_includes" = no; then
9279 # Guess where to find include files, by looking for Xlib.h.
9280 # First, try using that file with no special directory specified.
9281 cat >conftest.$ac_ext <<_ACEOF
9282 /* confdefs.h. */
9283 _ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9287 #include <X11/Xlib.h>
9288 _ACEOF
9289 if { (ac_try="$ac_cpp conftest.$ac_ext"
9290 case "(($ac_try" in
9291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9292 *) ac_try_echo=$ac_try;;
9293 esac
9294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9295 $as_echo "$ac_try_echo") >&5
9296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9297 ac_status=$?
9298 grep -v '^ *+' conftest.er1 >conftest.err
9299 rm -f conftest.er1
9300 cat conftest.err >&5
9301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); } >/dev/null && {
9303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9304 test ! -s conftest.err
9305 }; then
9306 # We can compile using X headers with no special include directory.
9307 ac_x_includes=
9308 else
9309 $as_echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.$ac_ext >&5
9311
9312 for ac_dir in $ac_x_header_dirs; do
9313 if test -r "$ac_dir/X11/Xlib.h"; then
9314 ac_x_includes=$ac_dir
9315 break
9316 fi
9317 done
9318 fi
9319
9320 rm -f conftest.err conftest.$ac_ext
9321 fi # $ac_x_includes = no
9322
9323 if test "$ac_x_libraries" = no; then
9324 # Check for the libraries.
9325 # See if we find them without any special options.
9326 # Don't add to $LIBS permanently.
9327 ac_save_LIBS=$LIBS
9328 LIBS="-lX11 $LIBS"
9329 cat >conftest.$ac_ext <<_ACEOF
9330 /* confdefs.h. */
9331 _ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9335 #include <X11/Xlib.h>
9336 int
9337 main ()
9338 {
9339 XrmInitialize ()
9340 ;
9341 return 0;
9342 }
9343 _ACEOF
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (ac_try="$ac_link"
9346 case "(($ac_try" in
9347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9348 *) ac_try_echo=$ac_try;;
9349 esac
9350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9351 $as_echo "$ac_try_echo") >&5
9352 (eval "$ac_link") 2>conftest.er1
9353 ac_status=$?
9354 grep -v '^ *+' conftest.er1 >conftest.err
9355 rm -f conftest.er1
9356 cat conftest.err >&5
9357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } && {
9359 test -z "$ac_c_werror_flag" ||
9360 test ! -s conftest.err
9361 } && test -s conftest$ac_exeext && {
9362 test "$cross_compiling" = yes ||
9363 $as_test_x conftest$ac_exeext
9364 }; then
9365 LIBS=$ac_save_LIBS
9366 # We can link X programs with no special library path.
9367 ac_x_libraries=
9368 else
9369 $as_echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9371
9372 LIBS=$ac_save_LIBS
9373 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9374 do
9375 # Don't even attempt the hair of trying to link an X program!
9376 for ac_extension in a so sl dylib la dll; do
9377 if test -r "$ac_dir/libX11.$ac_extension"; then
9378 ac_x_libraries=$ac_dir
9379 break 2
9380 fi
9381 done
9382 done
9383 fi
9384
9385 rm -rf conftest.dSYM
9386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9387 conftest$ac_exeext conftest.$ac_ext
9388 fi # $ac_x_libraries = no
9389
9390 case $ac_x_includes,$ac_x_libraries in #(
9391 no,* | *,no | *\'*)
9392 # Didn't find X, or a directory has "'" in its name.
9393 ac_cv_have_x="have_x=no";; #(
9394 *)
9395 # Record where we found X for the cache.
9396 ac_cv_have_x="have_x=yes\
9397 ac_x_includes='$ac_x_includes'\
9398 ac_x_libraries='$ac_x_libraries'"
9399 esac
9400 fi
9401 ;; #(
9402 *) have_x=yes;;
9403 esac
9404 eval "$ac_cv_have_x"
9405 fi # $with_x != no
9406
9407 if test "$have_x" != yes; then
9408 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9409 $as_echo "$have_x" >&6; }
9410 no_x=yes
9411 else
9412 # If each of the values was on the command line, it overrides each guess.
9413 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9414 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9415 # Update the cache value to reflect the command line values.
9416 ac_cv_have_x="have_x=yes\
9417 ac_x_includes='$x_includes'\
9418 ac_x_libraries='$x_libraries'"
9419 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9420 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9421 fi
9422
9423 if test "$no_x" = yes; then
9424 window_system=none
9425 else
9426 window_system=x11
9427 fi
9428
9429 ## Workaround for bug in autoconf <= 2.62.
9430 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9431 ## No need to do anything special for these standard directories.
9432 ## This is an experiment, take it out if it causes problems.
9433 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9434
9435 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9436
9437 fi
9438
9439 if test "${x_libraries}" != NONE; then
9440 if test -n "${x_libraries}"; then
9441 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9442 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9443 fi
9444 x_default_search_path=""
9445 x_search_path=${x_libraries}
9446 if test -z "${x_search_path}"; then
9447 x_search_path=/usr/lib
9448 fi
9449 for x_library in `echo ${x_search_path}: | \
9450 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9451 x_search_path="\
9452 ${x_library}/X11/%L/%T/%N%C%S:\
9453 ${x_library}/X11/%l/%T/%N%C%S:\
9454 ${x_library}/X11/%T/%N%C%S:\
9455 ${x_library}/X11/%L/%T/%N%S:\
9456 ${x_library}/X11/%l/%T/%N%S:\
9457 ${x_library}/X11/%T/%N%S"
9458 if test x"${x_default_search_path}" = x; then
9459 x_default_search_path=${x_search_path}
9460 else
9461 x_default_search_path="${x_search_path}:${x_default_search_path}"
9462 fi
9463 done
9464 fi
9465 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9466 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9467 fi
9468
9469 if test x"${x_includes}" = x; then
9470 bitmapdir=/usr/include/X11/bitmaps
9471 else
9472 # accumulate include directories that have X11 bitmap subdirectories
9473 bmd_acc="dummyval"
9474 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9475 if test -d "${bmd}/X11/bitmaps"; then
9476 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9477 fi
9478 if test -d "${bmd}/bitmaps"; then
9479 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9480 fi
9481 done
9482 if test ${bmd_acc} != "dummyval"; then
9483 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9484 fi
9485 fi
9486
9487 HAVE_NS=no
9488 NS_IMPL_COCOA=no
9489 NS_IMPL_GNUSTEP=no
9490 tmp_CPPFLAGS="$CPPFLAGS"
9491 tmp_CFLAGS="$CFLAGS"
9492 CPPFLAGS="$CPPFLAGS -x objective-c"
9493 CFLAGS="$CFLAGS -x objective-c"
9494 if test "${with_ns}" != no; then
9495 if test "${opsys}" = darwin; then
9496 NS_IMPL_COCOA=yes
9497 ns_appdir=`pwd`/nextstep/Emacs.app
9498 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9499 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9500 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9501 elif test -f $GNUSTEP_CONFIG_FILE; then
9502 NS_IMPL_GNUSTEP=yes
9503 ns_appdir=`pwd`/nextstep/Emacs.app
9504 ns_appbindir=`pwd`/nextstep/Emacs.app
9505 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9506 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9507 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9508 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9509 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9510 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9511 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9512 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9513 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9514 fi
9515 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9516 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9517 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9518 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9519 $as_echo_n "(cached) " >&6
9520 fi
9521 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9522 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9523 else
9524 # Is the header compilable?
9525 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9526 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9527 cat >conftest.$ac_ext <<_ACEOF
9528 /* confdefs.h. */
9529 _ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h. */
9533 $ac_includes_default
9534 #include <AppKit/AppKit.h>
9535 _ACEOF
9536 rm -f conftest.$ac_objext
9537 if { (ac_try="$ac_compile"
9538 case "(($ac_try" in
9539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9540 *) ac_try_echo=$ac_try;;
9541 esac
9542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9543 $as_echo "$ac_try_echo") >&5
9544 (eval "$ac_compile") 2>conftest.er1
9545 ac_status=$?
9546 grep -v '^ *+' conftest.er1 >conftest.err
9547 rm -f conftest.er1
9548 cat conftest.err >&5
9549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } && {
9551 test -z "$ac_c_werror_flag" ||
9552 test ! -s conftest.err
9553 } && test -s conftest.$ac_objext; then
9554 ac_header_compiler=yes
9555 else
9556 $as_echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9558
9559 ac_header_compiler=no
9560 fi
9561
9562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9563 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9564 $as_echo "$ac_header_compiler" >&6; }
9565
9566 # Is the header present?
9567 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9568 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9569 cat >conftest.$ac_ext <<_ACEOF
9570 /* confdefs.h. */
9571 _ACEOF
9572 cat confdefs.h >>conftest.$ac_ext
9573 cat >>conftest.$ac_ext <<_ACEOF
9574 /* end confdefs.h. */
9575 #include <AppKit/AppKit.h>
9576 _ACEOF
9577 if { (ac_try="$ac_cpp conftest.$ac_ext"
9578 case "(($ac_try" in
9579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580 *) ac_try_echo=$ac_try;;
9581 esac
9582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9583 $as_echo "$ac_try_echo") >&5
9584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9585 ac_status=$?
9586 grep -v '^ *+' conftest.er1 >conftest.err
9587 rm -f conftest.er1
9588 cat conftest.err >&5
9589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } >/dev/null && {
9591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9592 test ! -s conftest.err
9593 }; then
9594 ac_header_preproc=yes
9595 else
9596 $as_echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9598
9599 ac_header_preproc=no
9600 fi
9601
9602 rm -f conftest.err conftest.$ac_ext
9603 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9604 $as_echo "$ac_header_preproc" >&6; }
9605
9606 # So? What about this header?
9607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9608 yes:no: )
9609 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9610 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9611 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9612 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9613 ac_header_preproc=yes
9614 ;;
9615 no:yes:* )
9616 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9617 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9618 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9619 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9620 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9621 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9622 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9623 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9624 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9625 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9626 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9627 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9628
9629 ;;
9630 esac
9631 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9632 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9633 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9634 $as_echo_n "(cached) " >&6
9635 else
9636 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9637 fi
9638 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9639 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9640
9641 fi
9642 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9643 HAVE_NS=yes
9644 else
9645 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9646 files are missing or cannot be compiled." >&5
9647 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9648 files are missing or cannot be compiled." >&2;}
9649 { (exit 1); exit 1; }; }
9650 fi
9651
9652
9653 NS_HAVE_NSINTEGER=yes
9654 cat >conftest.$ac_ext <<_ACEOF
9655 /* confdefs.h. */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9660 #include <Foundation/NSObjCRuntime.h>
9661 int
9662 main ()
9663 {
9664 NSInteger i;
9665 ;
9666 return 0;
9667 }
9668 _ACEOF
9669 rm -f conftest.$ac_objext
9670 if { (ac_try="$ac_compile"
9671 case "(($ac_try" in
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9674 esac
9675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9676 $as_echo "$ac_try_echo") >&5
9677 (eval "$ac_compile") 2>conftest.er1
9678 ac_status=$?
9679 grep -v '^ *+' conftest.er1 >conftest.err
9680 rm -f conftest.er1
9681 cat conftest.err >&5
9682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } && {
9684 test -z "$ac_c_werror_flag" ||
9685 test ! -s conftest.err
9686 } && test -s conftest.$ac_objext; then
9687 ns_have_nsinteger=yes
9688 else
9689 $as_echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9691
9692 ns_have_nsinteger=no
9693 fi
9694
9695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9696 if test $ns_have_nsinteger = no; then
9697 NS_HAVE_NSINTEGER=no
9698 fi
9699 fi
9700 if test "${HAVE_NS}" = yes; then
9701 window_system=nextstep
9702 with_xft=no
9703 # set up packaging dirs
9704 exec_prefix=${ns_appbindir}
9705 libexecdir=${ns_appbindir}/libexec
9706 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9707 prefix=${ns_appresdir}
9708 fi
9709 fi
9710 CFLAGS="$tmp_CFLAGS"
9711 CPPFLAGS="$tmp_CPPFLAGS"
9712
9713 case "${window_system}" in
9714 x11 )
9715 HAVE_X_WINDOWS=yes
9716 HAVE_X11=yes
9717 case "${with_x_toolkit}" in
9718 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9719 motif ) USE_X_TOOLKIT=MOTIF ;;
9720 gtk ) with_gtk=yes
9721 USE_X_TOOLKIT=none ;;
9722 no ) USE_X_TOOLKIT=none ;;
9723 * ) USE_X_TOOLKIT=maybe ;;
9724 esac
9725 ;;
9726 nextstep | none )
9727 HAVE_X_WINDOWS=no
9728 HAVE_X11=no
9729 USE_X_TOOLKIT=none
9730 ;;
9731 esac
9732
9733 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9734 # Extract the first word of "X", so it can be a program name with args.
9735 set dummy X; ac_word=$2
9736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9737 $as_echo_n "checking for $ac_word... " >&6; }
9738 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9739 $as_echo_n "(cached) " >&6
9740 else
9741 if test -n "$HAVE_XSERVER"; then
9742 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9743 else
9744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745 for as_dir in $PATH
9746 do
9747 IFS=$as_save_IFS
9748 test -z "$as_dir" && as_dir=.
9749 for ac_exec_ext in '' $ac_executable_extensions; do
9750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9751 ac_cv_prog_HAVE_XSERVER="true"
9752 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9753 break 2
9754 fi
9755 done
9756 done
9757 IFS=$as_save_IFS
9758
9759 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9760 fi
9761 fi
9762 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9763 if test -n "$HAVE_XSERVER"; then
9764 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9765 $as_echo "$HAVE_XSERVER" >&6; }
9766 else
9767 { $as_echo "$as_me:$LINENO: result: no" >&5
9768 $as_echo "no" >&6; }
9769 fi
9770
9771
9772 if test "$HAVE_XSERVER" = true ||
9773 test -n "$DISPLAY" ||
9774 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9775 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9776 were found. You should install the relevant development files for X
9777 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9778 sure you have development files for image handling, i.e.
9779 tiff, gif, jpeg, png and xpm.
9780 If you are sure you want Emacs compiled without X window support, pass
9781 --without-x
9782 to configure." >&5
9783 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9784 were found. You should install the relevant development files for X
9785 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9786 sure you have development files for image handling, i.e.
9787 tiff, gif, jpeg, png and xpm.
9788 If you are sure you want Emacs compiled without X window support, pass
9789 --without-x
9790 to configure." >&2;}
9791 { (exit 1); exit 1; }; }
9792 fi
9793 fi
9794
9795 ### If we're using X11, we should use the X menu package.
9796 HAVE_MENUS=no
9797 case ${HAVE_X11} in
9798 yes ) HAVE_MENUS=yes ;;
9799 esac
9800
9801 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9802 # Assume not, until told otherwise.
9803 GNU_MALLOC=yes
9804 doug_lea_malloc=yes
9805 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9806 $as_echo_n "checking for malloc_get_state... " >&6; }
9807 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9808 $as_echo_n "(cached) " >&6
9809 else
9810 cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h. */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9818 #define malloc_get_state innocuous_malloc_get_state
9819
9820 /* System header to define __stub macros and hopefully few prototypes,
9821 which can conflict with char malloc_get_state (); below.
9822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9823 <limits.h> exists even on freestanding compilers. */
9824
9825 #ifdef __STDC__
9826 # include <limits.h>
9827 #else
9828 # include <assert.h>
9829 #endif
9830
9831 #undef malloc_get_state
9832
9833 /* Override any GCC internal prototype to avoid an error.
9834 Use char because int might match the return type of a GCC
9835 builtin and then its argument prototype would still apply. */
9836 #ifdef __cplusplus
9837 extern "C"
9838 #endif
9839 char malloc_get_state ();
9840 /* The GNU C library defines this for functions which it implements
9841 to always fail with ENOSYS. Some functions are actually named
9842 something starting with __ and the normal name is an alias. */
9843 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9844 choke me
9845 #endif
9846
9847 int
9848 main ()
9849 {
9850 return malloc_get_state ();
9851 ;
9852 return 0;
9853 }
9854 _ACEOF
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (ac_try="$ac_link"
9857 case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9860 esac
9861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9862 $as_echo "$ac_try_echo") >&5
9863 (eval "$ac_link") 2>conftest.er1
9864 ac_status=$?
9865 grep -v '^ *+' conftest.er1 >conftest.err
9866 rm -f conftest.er1
9867 cat conftest.err >&5
9868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } && {
9870 test -z "$ac_c_werror_flag" ||
9871 test ! -s conftest.err
9872 } && test -s conftest$ac_exeext && {
9873 test "$cross_compiling" = yes ||
9874 $as_test_x conftest$ac_exeext
9875 }; then
9876 ac_cv_func_malloc_get_state=yes
9877 else
9878 $as_echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9880
9881 ac_cv_func_malloc_get_state=no
9882 fi
9883
9884 rm -rf conftest.dSYM
9885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9886 conftest$ac_exeext conftest.$ac_ext
9887 fi
9888 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9889 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
9890 if test $ac_cv_func_malloc_get_state = yes; then
9891 :
9892 else
9893 doug_lea_malloc=no
9894 fi
9895
9896 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9897 $as_echo_n "checking for malloc_set_state... " >&6; }
9898 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9899 $as_echo_n "(cached) " >&6
9900 else
9901 cat >conftest.$ac_ext <<_ACEOF
9902 /* confdefs.h. */
9903 _ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9907 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9909 #define malloc_set_state innocuous_malloc_set_state
9910
9911 /* System header to define __stub macros and hopefully few prototypes,
9912 which can conflict with char malloc_set_state (); below.
9913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9914 <limits.h> exists even on freestanding compilers. */
9915
9916 #ifdef __STDC__
9917 # include <limits.h>
9918 #else
9919 # include <assert.h>
9920 #endif
9921
9922 #undef malloc_set_state
9923
9924 /* Override any GCC internal prototype to avoid an error.
9925 Use char because int might match the return type of a GCC
9926 builtin and then its argument prototype would still apply. */
9927 #ifdef __cplusplus
9928 extern "C"
9929 #endif
9930 char malloc_set_state ();
9931 /* The GNU C library defines this for functions which it implements
9932 to always fail with ENOSYS. Some functions are actually named
9933 something starting with __ and the normal name is an alias. */
9934 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9935 choke me
9936 #endif
9937
9938 int
9939 main ()
9940 {
9941 return malloc_set_state ();
9942 ;
9943 return 0;
9944 }
9945 _ACEOF
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (ac_try="$ac_link"
9948 case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9951 esac
9952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9953 $as_echo "$ac_try_echo") >&5
9954 (eval "$ac_link") 2>conftest.er1
9955 ac_status=$?
9956 grep -v '^ *+' conftest.er1 >conftest.err
9957 rm -f conftest.er1
9958 cat conftest.err >&5
9959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } && {
9961 test -z "$ac_c_werror_flag" ||
9962 test ! -s conftest.err
9963 } && test -s conftest$ac_exeext && {
9964 test "$cross_compiling" = yes ||
9965 $as_test_x conftest$ac_exeext
9966 }; then
9967 ac_cv_func_malloc_set_state=yes
9968 else
9969 $as_echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9971
9972 ac_cv_func_malloc_set_state=no
9973 fi
9974
9975 rm -rf conftest.dSYM
9976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9977 conftest$ac_exeext conftest.$ac_ext
9978 fi
9979 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9980 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
9981 if test $ac_cv_func_malloc_set_state = yes; then
9982 :
9983 else
9984 doug_lea_malloc=no
9985 fi
9986
9987 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9988 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9989 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9990 $as_echo_n "(cached) " >&6
9991 else
9992 cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h. */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998 extern void (* __after_morecore_hook)();
9999 int
10000 main ()
10001 {
10002 __after_morecore_hook = 0
10003 ;
10004 return 0;
10005 }
10006 _ACEOF
10007 rm -f conftest.$ac_objext conftest$ac_exeext
10008 if { (ac_try="$ac_link"
10009 case "(($ac_try" in
10010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011 *) ac_try_echo=$ac_try;;
10012 esac
10013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10014 $as_echo "$ac_try_echo") >&5
10015 (eval "$ac_link") 2>conftest.er1
10016 ac_status=$?
10017 grep -v '^ *+' conftest.er1 >conftest.err
10018 rm -f conftest.er1
10019 cat conftest.err >&5
10020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } && {
10022 test -z "$ac_c_werror_flag" ||
10023 test ! -s conftest.err
10024 } && test -s conftest$ac_exeext && {
10025 test "$cross_compiling" = yes ||
10026 $as_test_x conftest$ac_exeext
10027 }; then
10028 emacs_cv_var___after_morecore_hook=yes
10029 else
10030 $as_echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10032
10033 emacs_cv_var___after_morecore_hook=no
10034 fi
10035
10036 rm -rf conftest.dSYM
10037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10038 conftest$ac_exeext conftest.$ac_ext
10039 fi
10040 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10041 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10042 if test $emacs_cv_var___after_morecore_hook = no; then
10043 doug_lea_malloc=no
10044 fi
10045 if test "${system_malloc}" = "yes"; then
10046 GNU_MALLOC=no
10047 GNU_MALLOC_reason="
10048 (The GNU allocators don't work with this system configuration.)"
10049 fi
10050 if test "$doug_lea_malloc" = "yes" ; then
10051 if test "$GNU_MALLOC" = yes ; then
10052 GNU_MALLOC_reason="
10053 (Using Doug Lea's new malloc from the GNU C Library.)"
10054 fi
10055
10056 cat >>confdefs.h <<\_ACEOF
10057 #define DOUG_LEA_MALLOC 1
10058 _ACEOF
10059
10060 fi
10061
10062 if test x"${REL_ALLOC}" = x; then
10063 REL_ALLOC=${GNU_MALLOC}
10064 fi
10065
10066
10067
10068
10069 for ac_header in stdlib.h unistd.h
10070 do
10071 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10073 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10074 $as_echo_n "checking for $ac_header... " >&6; }
10075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10076 $as_echo_n "(cached) " >&6
10077 fi
10078 ac_res=`eval 'as_val=${'$as_ac_Header'}
10079 $as_echo "$as_val"'`
10080 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10081 $as_echo "$ac_res" >&6; }
10082 else
10083 # Is the header compilable?
10084 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10085 $as_echo_n "checking $ac_header usability... " >&6; }
10086 cat >conftest.$ac_ext <<_ACEOF
10087 /* confdefs.h. */
10088 _ACEOF
10089 cat confdefs.h >>conftest.$ac_ext
10090 cat >>conftest.$ac_ext <<_ACEOF
10091 /* end confdefs.h. */
10092 $ac_includes_default
10093 #include <$ac_header>
10094 _ACEOF
10095 rm -f conftest.$ac_objext
10096 if { (ac_try="$ac_compile"
10097 case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10100 esac
10101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10102 $as_echo "$ac_try_echo") >&5
10103 (eval "$ac_compile") 2>conftest.er1
10104 ac_status=$?
10105 grep -v '^ *+' conftest.er1 >conftest.err
10106 rm -f conftest.er1
10107 cat conftest.err >&5
10108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } && {
10110 test -z "$ac_c_werror_flag" ||
10111 test ! -s conftest.err
10112 } && test -s conftest.$ac_objext; then
10113 ac_header_compiler=yes
10114 else
10115 $as_echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10117
10118 ac_header_compiler=no
10119 fi
10120
10121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10122 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10123 $as_echo "$ac_header_compiler" >&6; }
10124
10125 # Is the header present?
10126 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10127 $as_echo_n "checking $ac_header presence... " >&6; }
10128 cat >conftest.$ac_ext <<_ACEOF
10129 /* confdefs.h. */
10130 _ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10134 #include <$ac_header>
10135 _ACEOF
10136 if { (ac_try="$ac_cpp conftest.$ac_ext"
10137 case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10140 esac
10141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10142 $as_echo "$ac_try_echo") >&5
10143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10144 ac_status=$?
10145 grep -v '^ *+' conftest.er1 >conftest.err
10146 rm -f conftest.er1
10147 cat conftest.err >&5
10148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } >/dev/null && {
10150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10151 test ! -s conftest.err
10152 }; then
10153 ac_header_preproc=yes
10154 else
10155 $as_echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10157
10158 ac_header_preproc=no
10159 fi
10160
10161 rm -f conftest.err conftest.$ac_ext
10162 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10163 $as_echo "$ac_header_preproc" >&6; }
10164
10165 # So? What about this header?
10166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10167 yes:no: )
10168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10169 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10171 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10172 ac_header_preproc=yes
10173 ;;
10174 no:yes:* )
10175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10176 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10178 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10180 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10182 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10184 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10186 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10187
10188 ;;
10189 esac
10190 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10191 $as_echo_n "checking for $ac_header... " >&6; }
10192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10193 $as_echo_n "(cached) " >&6
10194 else
10195 eval "$as_ac_Header=\$ac_header_preproc"
10196 fi
10197 ac_res=`eval 'as_val=${'$as_ac_Header'}
10198 $as_echo "$as_val"'`
10199 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10200 $as_echo "$ac_res" >&6; }
10201
10202 fi
10203 if test `eval 'as_val=${'$as_ac_Header'}
10204 $as_echo "$as_val"'` = yes; then
10205 cat >>confdefs.h <<_ACEOF
10206 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10207 _ACEOF
10208
10209 fi
10210
10211 done
10212
10213
10214 for ac_func in getpagesize
10215 do
10216 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10217 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10218 $as_echo_n "checking for $ac_func... " >&6; }
10219 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10220 $as_echo_n "(cached) " >&6
10221 else
10222 cat >conftest.$ac_ext <<_ACEOF
10223 /* confdefs.h. */
10224 _ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h. */
10228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10230 #define $ac_func innocuous_$ac_func
10231
10232 /* System header to define __stub macros and hopefully few prototypes,
10233 which can conflict with char $ac_func (); below.
10234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10235 <limits.h> exists even on freestanding compilers. */
10236
10237 #ifdef __STDC__
10238 # include <limits.h>
10239 #else
10240 # include <assert.h>
10241 #endif
10242
10243 #undef $ac_func
10244
10245 /* Override any GCC internal prototype to avoid an error.
10246 Use char because int might match the return type of a GCC
10247 builtin and then its argument prototype would still apply. */
10248 #ifdef __cplusplus
10249 extern "C"
10250 #endif
10251 char $ac_func ();
10252 /* The GNU C library defines this for functions which it implements
10253 to always fail with ENOSYS. Some functions are actually named
10254 something starting with __ and the normal name is an alias. */
10255 #if defined __stub_$ac_func || defined __stub___$ac_func
10256 choke me
10257 #endif
10258
10259 int
10260 main ()
10261 {
10262 return $ac_func ();
10263 ;
10264 return 0;
10265 }
10266 _ACEOF
10267 rm -f conftest.$ac_objext conftest$ac_exeext
10268 if { (ac_try="$ac_link"
10269 case "(($ac_try" in
10270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271 *) ac_try_echo=$ac_try;;
10272 esac
10273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10274 $as_echo "$ac_try_echo") >&5
10275 (eval "$ac_link") 2>conftest.er1
10276 ac_status=$?
10277 grep -v '^ *+' conftest.er1 >conftest.err
10278 rm -f conftest.er1
10279 cat conftest.err >&5
10280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } && {
10282 test -z "$ac_c_werror_flag" ||
10283 test ! -s conftest.err
10284 } && test -s conftest$ac_exeext && {
10285 test "$cross_compiling" = yes ||
10286 $as_test_x conftest$ac_exeext
10287 }; then
10288 eval "$as_ac_var=yes"
10289 else
10290 $as_echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10292
10293 eval "$as_ac_var=no"
10294 fi
10295
10296 rm -rf conftest.dSYM
10297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10298 conftest$ac_exeext conftest.$ac_ext
10299 fi
10300 ac_res=`eval 'as_val=${'$as_ac_var'}
10301 $as_echo "$as_val"'`
10302 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10303 $as_echo "$ac_res" >&6; }
10304 if test `eval 'as_val=${'$as_ac_var'}
10305 $as_echo "$as_val"'` = yes; then
10306 cat >>confdefs.h <<_ACEOF
10307 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10308 _ACEOF
10309
10310 fi
10311 done
10312
10313 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10314 $as_echo_n "checking for working mmap... " >&6; }
10315 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10316 $as_echo_n "(cached) " >&6
10317 else
10318 if test "$cross_compiling" = yes; then
10319 ac_cv_func_mmap_fixed_mapped=no
10320 else
10321 cat >conftest.$ac_ext <<_ACEOF
10322 /* confdefs.h. */
10323 _ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10327 $ac_includes_default
10328 /* malloc might have been renamed as rpl_malloc. */
10329 #undef malloc
10330
10331 /* Thanks to Mike Haertel and Jim Avera for this test.
10332 Here is a matrix of mmap possibilities:
10333 mmap private not fixed
10334 mmap private fixed at somewhere currently unmapped
10335 mmap private fixed at somewhere already mapped
10336 mmap shared not fixed
10337 mmap shared fixed at somewhere currently unmapped
10338 mmap shared fixed at somewhere already mapped
10339 For private mappings, we should verify that changes cannot be read()
10340 back from the file, nor mmap's back from the file at a different
10341 address. (There have been systems where private was not correctly
10342 implemented like the infamous i386 svr4.0, and systems where the
10343 VM page cache was not coherent with the file system buffer cache
10344 like early versions of FreeBSD and possibly contemporary NetBSD.)
10345 For shared mappings, we should conversely verify that changes get
10346 propagated back to all the places they're supposed to be.
10347
10348 Grep wants private fixed already mapped.
10349 The main things grep needs to know about mmap are:
10350 * does it exist and is it safe to write into the mmap'd area
10351 * how to use it (BSD variants) */
10352
10353 #include <fcntl.h>
10354 #include <sys/mman.h>
10355
10356 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10357 char *malloc ();
10358 #endif
10359
10360 /* This mess was copied from the GNU getpagesize.h. */
10361 #ifndef HAVE_GETPAGESIZE
10362 /* Assume that all systems that can run configure have sys/param.h. */
10363 # ifndef HAVE_SYS_PARAM_H
10364 # define HAVE_SYS_PARAM_H 1
10365 # endif
10366
10367 # ifdef _SC_PAGESIZE
10368 # define getpagesize() sysconf(_SC_PAGESIZE)
10369 # else /* no _SC_PAGESIZE */
10370 # ifdef HAVE_SYS_PARAM_H
10371 # include <sys/param.h>
10372 # ifdef EXEC_PAGESIZE
10373 # define getpagesize() EXEC_PAGESIZE
10374 # else /* no EXEC_PAGESIZE */
10375 # ifdef NBPG
10376 # define getpagesize() NBPG * CLSIZE
10377 # ifndef CLSIZE
10378 # define CLSIZE 1
10379 # endif /* no CLSIZE */
10380 # else /* no NBPG */
10381 # ifdef NBPC
10382 # define getpagesize() NBPC
10383 # else /* no NBPC */
10384 # ifdef PAGESIZE
10385 # define getpagesize() PAGESIZE
10386 # endif /* PAGESIZE */
10387 # endif /* no NBPC */
10388 # endif /* no NBPG */
10389 # endif /* no EXEC_PAGESIZE */
10390 # else /* no HAVE_SYS_PARAM_H */
10391 # define getpagesize() 8192 /* punt totally */
10392 # endif /* no HAVE_SYS_PARAM_H */
10393 # endif /* no _SC_PAGESIZE */
10394
10395 #endif /* no HAVE_GETPAGESIZE */
10396
10397 int
10398 main ()
10399 {
10400 char *data, *data2, *data3;
10401 int i, pagesize;
10402 int fd;
10403
10404 pagesize = getpagesize ();
10405
10406 /* First, make a file with some known garbage in it. */
10407 data = (char *) malloc (pagesize);
10408 if (!data)
10409 return 1;
10410 for (i = 0; i < pagesize; ++i)
10411 *(data + i) = rand ();
10412 umask (0);
10413 fd = creat ("conftest.mmap", 0600);
10414 if (fd < 0)
10415 return 1;
10416 if (write (fd, data, pagesize) != pagesize)
10417 return 1;
10418 close (fd);
10419
10420 /* Next, try to mmap the file at a fixed address which already has
10421 something else allocated at it. If we can, also make sure that
10422 we see the same garbage. */
10423 fd = open ("conftest.mmap", O_RDWR);
10424 if (fd < 0)
10425 return 1;
10426 data2 = (char *) malloc (2 * pagesize);
10427 if (!data2)
10428 return 1;
10429 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10430 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10431 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10432 return 1;
10433 for (i = 0; i < pagesize; ++i)
10434 if (*(data + i) != *(data2 + i))
10435 return 1;
10436
10437 /* Finally, make sure that changes to the mapped area do not
10438 percolate back to the file as seen by read(). (This is a bug on
10439 some variants of i386 svr4.0.) */
10440 for (i = 0; i < pagesize; ++i)
10441 *(data2 + i) = *(data2 + i) + 1;
10442 data3 = (char *) malloc (pagesize);
10443 if (!data3)
10444 return 1;
10445 if (read (fd, data3, pagesize) != pagesize)
10446 return 1;
10447 for (i = 0; i < pagesize; ++i)
10448 if (*(data + i) != *(data3 + i))
10449 return 1;
10450 close (fd);
10451 return 0;
10452 }
10453 _ACEOF
10454 rm -f conftest$ac_exeext
10455 if { (ac_try="$ac_link"
10456 case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10459 esac
10460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10461 $as_echo "$ac_try_echo") >&5
10462 (eval "$ac_link") 2>&5
10463 ac_status=$?
10464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10466 { (case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10469 esac
10470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10471 $as_echo "$ac_try_echo") >&5
10472 (eval "$ac_try") 2>&5
10473 ac_status=$?
10474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; }; then
10476 ac_cv_func_mmap_fixed_mapped=yes
10477 else
10478 $as_echo "$as_me: program exited with status $ac_status" >&5
10479 $as_echo "$as_me: failed program was:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10481
10482 ( exit $ac_status )
10483 ac_cv_func_mmap_fixed_mapped=no
10484 fi
10485 rm -rf conftest.dSYM
10486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10487 fi
10488
10489
10490 fi
10491 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10492 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10493 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10494
10495 cat >>confdefs.h <<\_ACEOF
10496 #define HAVE_MMAP 1
10497 _ACEOF
10498
10499 fi
10500 rm -f conftest.mmap
10501
10502 if test $use_mmap_for_buffers = yes; then
10503 REL_ALLOC=no
10504 fi
10505
10506 LIBS="$libsrc_libs $LIBS"
10507
10508
10509 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10510 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10511 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10512 $as_echo_n "(cached) " >&6
10513 else
10514 ac_check_lib_save_LIBS=$LIBS
10515 LIBS="-ldnet $LIBS"
10516 cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h. */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10522
10523 /* Override any GCC internal prototype to avoid an error.
10524 Use char because int might match the return type of a GCC
10525 builtin and then its argument prototype would still apply. */
10526 #ifdef __cplusplus
10527 extern "C"
10528 #endif
10529 char dnet_ntoa ();
10530 int
10531 main ()
10532 {
10533 return dnet_ntoa ();
10534 ;
10535 return 0;
10536 }
10537 _ACEOF
10538 rm -f conftest.$ac_objext conftest$ac_exeext
10539 if { (ac_try="$ac_link"
10540 case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10543 esac
10544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10545 $as_echo "$ac_try_echo") >&5
10546 (eval "$ac_link") 2>conftest.er1
10547 ac_status=$?
10548 grep -v '^ *+' conftest.er1 >conftest.err
10549 rm -f conftest.er1
10550 cat conftest.err >&5
10551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } && {
10553 test -z "$ac_c_werror_flag" ||
10554 test ! -s conftest.err
10555 } && test -s conftest$ac_exeext && {
10556 test "$cross_compiling" = yes ||
10557 $as_test_x conftest$ac_exeext
10558 }; then
10559 ac_cv_lib_dnet_dnet_ntoa=yes
10560 else
10561 $as_echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10563
10564 ac_cv_lib_dnet_dnet_ntoa=no
10565 fi
10566
10567 rm -rf conftest.dSYM
10568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10569 conftest$ac_exeext conftest.$ac_ext
10570 LIBS=$ac_check_lib_save_LIBS
10571 fi
10572 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10573 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10574 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10575 cat >>confdefs.h <<_ACEOF
10576 #define HAVE_LIBDNET 1
10577 _ACEOF
10578
10579 LIBS="-ldnet $LIBS"
10580
10581 fi
10582
10583
10584 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10585 $as_echo_n "checking for main in -lXbsd... " >&6; }
10586 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10587 $as_echo_n "(cached) " >&6
10588 else
10589 ac_check_lib_save_LIBS=$LIBS
10590 LIBS="-lXbsd $LIBS"
10591 cat >conftest.$ac_ext <<_ACEOF
10592 /* confdefs.h. */
10593 _ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10597
10598
10599 int
10600 main ()
10601 {
10602 return main ();
10603 ;
10604 return 0;
10605 }
10606 _ACEOF
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (ac_try="$ac_link"
10609 case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10612 esac
10613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10614 $as_echo "$ac_try_echo") >&5
10615 (eval "$ac_link") 2>conftest.er1
10616 ac_status=$?
10617 grep -v '^ *+' conftest.er1 >conftest.err
10618 rm -f conftest.er1
10619 cat conftest.err >&5
10620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } && {
10622 test -z "$ac_c_werror_flag" ||
10623 test ! -s conftest.err
10624 } && test -s conftest$ac_exeext && {
10625 test "$cross_compiling" = yes ||
10626 $as_test_x conftest$ac_exeext
10627 }; then
10628 ac_cv_lib_Xbsd_main=yes
10629 else
10630 $as_echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10632
10633 ac_cv_lib_Xbsd_main=no
10634 fi
10635
10636 rm -rf conftest.dSYM
10637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10638 conftest$ac_exeext conftest.$ac_ext
10639 LIBS=$ac_check_lib_save_LIBS
10640 fi
10641 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10642 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10643 if test $ac_cv_lib_Xbsd_main = yes; then
10644 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10645 fi
10646
10647
10648
10649 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10650 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10651 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10652 $as_echo_n "(cached) " >&6
10653 else
10654 ac_check_lib_save_LIBS=$LIBS
10655 LIBS="-lpthreads $LIBS"
10656 cat >conftest.$ac_ext <<_ACEOF
10657 /* confdefs.h. */
10658 _ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h. */
10662
10663 /* Override any GCC internal prototype to avoid an error.
10664 Use char because int might match the return type of a GCC
10665 builtin and then its argument prototype would still apply. */
10666 #ifdef __cplusplus
10667 extern "C"
10668 #endif
10669 char cma_open ();
10670 int
10671 main ()
10672 {
10673 return cma_open ();
10674 ;
10675 return 0;
10676 }
10677 _ACEOF
10678 rm -f conftest.$ac_objext conftest$ac_exeext
10679 if { (ac_try="$ac_link"
10680 case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10683 esac
10684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10685 $as_echo "$ac_try_echo") >&5
10686 (eval "$ac_link") 2>conftest.er1
10687 ac_status=$?
10688 grep -v '^ *+' conftest.er1 >conftest.err
10689 rm -f conftest.er1
10690 cat conftest.err >&5
10691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } && {
10693 test -z "$ac_c_werror_flag" ||
10694 test ! -s conftest.err
10695 } && test -s conftest$ac_exeext && {
10696 test "$cross_compiling" = yes ||
10697 $as_test_x conftest$ac_exeext
10698 }; then
10699 ac_cv_lib_pthreads_cma_open=yes
10700 else
10701 $as_echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10703
10704 ac_cv_lib_pthreads_cma_open=no
10705 fi
10706
10707 rm -rf conftest.dSYM
10708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10709 conftest$ac_exeext conftest.$ac_ext
10710 LIBS=$ac_check_lib_save_LIBS
10711 fi
10712 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10713 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10714 if test $ac_cv_lib_pthreads_cma_open = yes; then
10715 cat >>confdefs.h <<_ACEOF
10716 #define HAVE_LIBPTHREADS 1
10717 _ACEOF
10718
10719 LIBS="-lpthreads $LIBS"
10720
10721 fi
10722
10723
10724
10725 case ${host_os} in
10726 aix*)
10727 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10728 $as_echo_n "checking for -bbigtoc option... " >&6; }
10729 if test "${gdb_cv_bigtoc+set}" = set; then
10730 $as_echo_n "(cached) " >&6
10731 else
10732
10733 case $GCC in
10734 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10735 *) gdb_cv_bigtoc=-bbigtoc ;;
10736 esac
10737
10738 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10739 cat >conftest.$ac_ext <<_ACEOF
10740 /* confdefs.h. */
10741 _ACEOF
10742 cat confdefs.h >>conftest.$ac_ext
10743 cat >>conftest.$ac_ext <<_ACEOF
10744 /* end confdefs.h. */
10745
10746 int
10747 main ()
10748 {
10749 int i;
10750 ;
10751 return 0;
10752 }
10753 _ACEOF
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (ac_try="$ac_link"
10756 case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10759 esac
10760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10761 $as_echo "$ac_try_echo") >&5
10762 (eval "$ac_link") 2>conftest.er1
10763 ac_status=$?
10764 grep -v '^ *+' conftest.er1 >conftest.err
10765 rm -f conftest.er1
10766 cat conftest.err >&5
10767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } && {
10769 test -z "$ac_c_werror_flag" ||
10770 test ! -s conftest.err
10771 } && test -s conftest$ac_exeext && {
10772 test "$cross_compiling" = yes ||
10773 $as_test_x conftest$ac_exeext
10774 }; then
10775 :
10776 else
10777 $as_echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10779
10780 gdb_cv_bigtoc=
10781 fi
10782
10783 rm -rf conftest.dSYM
10784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10785 conftest$ac_exeext conftest.$ac_ext
10786
10787 fi
10788 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10789 $as_echo "$gdb_cv_bigtoc" >&6; }
10790 ;;
10791 esac
10792
10793 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10794 # used for the tests that follow. We set them back to REAL_CFLAGS and
10795 # REAL_CPPFLAGS later on.
10796
10797 REAL_CPPFLAGS="$CPPFLAGS"
10798
10799 if test "${HAVE_X11}" = "yes"; then
10800 DEFS="$C_SWITCH_X_SITE $DEFS"
10801 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10802 LIBS="$LIBX $LIBS"
10803 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10804 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10805
10806 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10807 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10808 # but it's more convenient here to set LD_RUN_PATH
10809 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10810 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10811 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10812 export LD_RUN_PATH
10813 fi
10814
10815 if test "${opsys}" = "gnu-linux"; then
10816 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10817 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
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 XOpenDisplay ("foo");
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 xlinux_first_failure=no
10855 else
10856 $as_echo "$as_me: failed program was:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10858
10859 xlinux_first_failure=yes
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 if test "${xlinux_first_failure}" = "yes"; then
10866 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10867 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10868 OLD_CPPFLAGS="$CPPFLAGS"
10869 OLD_LIBS="$LIBS"
10870 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10871 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10872 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10873 LIBS="$LIBS -b i486-linuxaout"
10874 cat >conftest.$ac_ext <<_ACEOF
10875 /* confdefs.h. */
10876 _ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h. */
10880
10881 int
10882 main ()
10883 {
10884 XOpenDisplay ("foo");
10885 ;
10886 return 0;
10887 }
10888 _ACEOF
10889 rm -f conftest.$ac_objext conftest$ac_exeext
10890 if { (ac_try="$ac_link"
10891 case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10894 esac
10895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10896 $as_echo "$ac_try_echo") >&5
10897 (eval "$ac_link") 2>conftest.er1
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest$ac_exeext && {
10907 test "$cross_compiling" = yes ||
10908 $as_test_x conftest$ac_exeext
10909 }; then
10910 xlinux_second_failure=no
10911 else
10912 $as_echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10914
10915 xlinux_second_failure=yes
10916 fi
10917
10918 rm -rf conftest.dSYM
10919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10920 conftest$ac_exeext conftest.$ac_ext
10921 if test "${xlinux_second_failure}" = "yes"; then
10922 # If we get the same failure with -b, there is no use adding -b.
10923 # So take it out. This plays safe.
10924 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10925 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10926 CPPFLAGS="$OLD_CPPFLAGS"
10927 LIBS="$OLD_LIBS"
10928 { $as_echo "$as_me:$LINENO: result: no" >&5
10929 $as_echo "no" >&6; }
10930 else
10931 { $as_echo "$as_me:$LINENO: result: yes" >&5
10932 $as_echo "yes" >&6; }
10933 fi
10934 else
10935 { $as_echo "$as_me:$LINENO: result: no" >&5
10936 $as_echo "no" >&6; }
10937 fi
10938 fi
10939
10940 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10941 # header files included from there.
10942 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
10943 $as_echo_n "checking for Xkb... " >&6; }
10944 cat >conftest.$ac_ext <<_ACEOF
10945 /* confdefs.h. */
10946 _ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h. */
10950 #include <X11/Xlib.h>
10951 #include <X11/XKBlib.h>
10952 int
10953 main ()
10954 {
10955 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10956 ;
10957 return 0;
10958 }
10959 _ACEOF
10960 rm -f conftest.$ac_objext conftest$ac_exeext
10961 if { (ac_try="$ac_link"
10962 case "(($ac_try" in
10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10965 esac
10966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10967 $as_echo "$ac_try_echo") >&5
10968 (eval "$ac_link") 2>conftest.er1
10969 ac_status=$?
10970 grep -v '^ *+' conftest.er1 >conftest.err
10971 rm -f conftest.er1
10972 cat conftest.err >&5
10973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); } && {
10975 test -z "$ac_c_werror_flag" ||
10976 test ! -s conftest.err
10977 } && test -s conftest$ac_exeext && {
10978 test "$cross_compiling" = yes ||
10979 $as_test_x conftest$ac_exeext
10980 }; then
10981 emacs_xkb=yes
10982 else
10983 $as_echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10985
10986 emacs_xkb=no
10987 fi
10988
10989 rm -rf conftest.dSYM
10990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10991 conftest$ac_exeext conftest.$ac_ext
10992 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10993 $as_echo "$emacs_xkb" >&6; }
10994 if test $emacs_xkb = yes; then
10995
10996 cat >>confdefs.h <<\_ACEOF
10997 #define HAVE_XKBGETKEYBOARD 1
10998 _ACEOF
10999
11000 fi
11001
11002
11003
11004
11005
11006 for ac_func in XrmSetDatabase XScreenResourceString \
11007 XScreenNumberOfScreen XSetWMProtocols
11008 do
11009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11010 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11011 $as_echo_n "checking for $ac_func... " >&6; }
11012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11013 $as_echo_n "(cached) " >&6
11014 else
11015 cat >conftest.$ac_ext <<_ACEOF
11016 /* confdefs.h. */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11023 #define $ac_func innocuous_$ac_func
11024
11025 /* System header to define __stub macros and hopefully few prototypes,
11026 which can conflict with char $ac_func (); below.
11027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11028 <limits.h> exists even on freestanding compilers. */
11029
11030 #ifdef __STDC__
11031 # include <limits.h>
11032 #else
11033 # include <assert.h>
11034 #endif
11035
11036 #undef $ac_func
11037
11038 /* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 char $ac_func ();
11045 /* The GNU C library defines this for functions which it implements
11046 to always fail with ENOSYS. Some functions are actually named
11047 something starting with __ and the normal name is an alias. */
11048 #if defined __stub_$ac_func || defined __stub___$ac_func
11049 choke me
11050 #endif
11051
11052 int
11053 main ()
11054 {
11055 return $ac_func ();
11056 ;
11057 return 0;
11058 }
11059 _ACEOF
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (ac_try="$ac_link"
11062 case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065 esac
11066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11067 $as_echo "$ac_try_echo") >&5
11068 (eval "$ac_link") 2>conftest.er1
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
11073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } && {
11075 test -z "$ac_c_werror_flag" ||
11076 test ! -s conftest.err
11077 } && test -s conftest$ac_exeext && {
11078 test "$cross_compiling" = yes ||
11079 $as_test_x conftest$ac_exeext
11080 }; then
11081 eval "$as_ac_var=yes"
11082 else
11083 $as_echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086 eval "$as_ac_var=no"
11087 fi
11088
11089 rm -rf conftest.dSYM
11090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11091 conftest$ac_exeext conftest.$ac_ext
11092 fi
11093 ac_res=`eval 'as_val=${'$as_ac_var'}
11094 $as_echo "$as_val"'`
11095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11096 $as_echo "$ac_res" >&6; }
11097 if test `eval 'as_val=${'$as_ac_var'}
11098 $as_echo "$as_val"'` = yes; then
11099 cat >>confdefs.h <<_ACEOF
11100 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11101 _ACEOF
11102
11103 fi
11104 done
11105
11106 fi
11107
11108 if test "${window_system}" = "x11"; then
11109 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11110 $as_echo_n "checking X11 version 6... " >&6; }
11111 if test "${emacs_cv_x11_version_6+set}" = set; then
11112 $as_echo_n "(cached) " >&6
11113 else
11114 cat >conftest.$ac_ext <<_ACEOF
11115 /* confdefs.h. */
11116 _ACEOF
11117 cat confdefs.h >>conftest.$ac_ext
11118 cat >>conftest.$ac_ext <<_ACEOF
11119 /* end confdefs.h. */
11120 #include <X11/Xlib.h>
11121 int
11122 main ()
11123 {
11124 #if XlibSpecificationRelease < 6
11125 fail;
11126 #endif
11127
11128 ;
11129 return 0;
11130 }
11131 _ACEOF
11132 rm -f conftest.$ac_objext conftest$ac_exeext
11133 if { (ac_try="$ac_link"
11134 case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11137 esac
11138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11139 $as_echo "$ac_try_echo") >&5
11140 (eval "$ac_link") 2>conftest.er1
11141 ac_status=$?
11142 grep -v '^ *+' conftest.er1 >conftest.err
11143 rm -f conftest.er1
11144 cat conftest.err >&5
11145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } && {
11147 test -z "$ac_c_werror_flag" ||
11148 test ! -s conftest.err
11149 } && test -s conftest$ac_exeext && {
11150 test "$cross_compiling" = yes ||
11151 $as_test_x conftest$ac_exeext
11152 }; then
11153 emacs_cv_x11_version_6=yes
11154 else
11155 $as_echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11157
11158 emacs_cv_x11_version_6=no
11159 fi
11160
11161 rm -rf conftest.dSYM
11162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11163 conftest$ac_exeext conftest.$ac_ext
11164 fi
11165
11166 if test $emacs_cv_x11_version_6 = yes; then
11167 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11168 $as_echo "6 or newer" >&6; }
11169
11170 cat >>confdefs.h <<\_ACEOF
11171 #define HAVE_X11R6 1
11172 _ACEOF
11173
11174 else
11175 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11176 $as_echo "before 6" >&6; }
11177 fi
11178 fi
11179
11180
11181 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11182 HAVE_RSVG=no
11183 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11184 if test "${with_rsvg}" != "no"; then
11185 RSVG_REQUIRED=2.11.0
11186 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11187
11188
11189 succeeded=no
11190
11191 # Extract the first word of "pkg-config", so it can be a program name with args.
11192 set dummy pkg-config; ac_word=$2
11193 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11194 $as_echo_n "checking for $ac_word... " >&6; }
11195 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11196 $as_echo_n "(cached) " >&6
11197 else
11198 case $PKG_CONFIG in
11199 [\\/]* | ?:[\\/]*)
11200 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11201 ;;
11202 *)
11203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204 for as_dir in $PATH
11205 do
11206 IFS=$as_save_IFS
11207 test -z "$as_dir" && as_dir=.
11208 for ac_exec_ext in '' $ac_executable_extensions; do
11209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11210 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11212 break 2
11213 fi
11214 done
11215 done
11216 IFS=$as_save_IFS
11217
11218 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11219 ;;
11220 esac
11221 fi
11222 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11223 if test -n "$PKG_CONFIG"; then
11224 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11225 $as_echo "$PKG_CONFIG" >&6; }
11226 else
11227 { $as_echo "$as_me:$LINENO: result: no" >&5
11228 $as_echo "no" >&6; }
11229 fi
11230
11231
11232
11233 if test "$PKG_CONFIG" = "no" ; then
11234 :
11235 else
11236 PKG_CONFIG_MIN_VERSION=0.9.0
11237 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11238 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11239 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11240
11241 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11242 { $as_echo "$as_me:$LINENO: result: yes" >&5
11243 $as_echo "yes" >&6; }
11244 succeeded=yes
11245
11246 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11247 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11248 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11249 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11250 $as_echo "$RSVG_CFLAGS" >&6; }
11251
11252 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11253 $as_echo_n "checking RSVG_LIBS... " >&6; }
11254 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11255 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11256 $as_echo "$RSVG_LIBS" >&6; }
11257 else
11258 { $as_echo "$as_me:$LINENO: result: no" >&5
11259 $as_echo "no" >&6; }
11260 RSVG_CFLAGS=""
11261 RSVG_LIBS=""
11262 ## If we have a custom action on failure, don't print errors, but
11263 ## do set a variable so people can do so.
11264 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11265
11266 fi
11267
11268
11269
11270 else
11271 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11272 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11273 fi
11274 fi
11275
11276 if test $succeeded = yes; then
11277 :
11278 else
11279 :
11280 fi
11281
11282
11283
11284
11285 if test ".${RSVG_CFLAGS}" != "."; then
11286 HAVE_RSVG=yes
11287
11288 cat >>confdefs.h <<\_ACEOF
11289 #define HAVE_RSVG 1
11290 _ACEOF
11291
11292 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11293 LIBS="$RSVG_LIBS $LIBS"
11294 fi
11295 fi
11296 fi
11297
11298
11299 HAVE_GTK=no
11300 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11301 GLIB_REQUIRED=2.6
11302 GTK_REQUIRED=2.6
11303 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11304
11305
11306 succeeded=no
11307
11308 # Extract the first word of "pkg-config", so it can be a program name with args.
11309 set dummy pkg-config; ac_word=$2
11310 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11311 $as_echo_n "checking for $ac_word... " >&6; }
11312 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11313 $as_echo_n "(cached) " >&6
11314 else
11315 case $PKG_CONFIG in
11316 [\\/]* | ?:[\\/]*)
11317 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11318 ;;
11319 *)
11320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11321 for as_dir in $PATH
11322 do
11323 IFS=$as_save_IFS
11324 test -z "$as_dir" && as_dir=.
11325 for ac_exec_ext in '' $ac_executable_extensions; do
11326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11327 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11328 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11329 break 2
11330 fi
11331 done
11332 done
11333 IFS=$as_save_IFS
11334
11335 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11336 ;;
11337 esac
11338 fi
11339 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11340 if test -n "$PKG_CONFIG"; then
11341 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11342 $as_echo "$PKG_CONFIG" >&6; }
11343 else
11344 { $as_echo "$as_me:$LINENO: result: no" >&5
11345 $as_echo "no" >&6; }
11346 fi
11347
11348
11349
11350 if test "$PKG_CONFIG" = "no" ; then
11351 pkg_check_gtk=no
11352 else
11353 PKG_CONFIG_MIN_VERSION=0.9.0
11354 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11355 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11356 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11357
11358 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11359 { $as_echo "$as_me:$LINENO: result: yes" >&5
11360 $as_echo "yes" >&6; }
11361 succeeded=yes
11362
11363 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11364 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11365 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11366 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11367 $as_echo "$GTK_CFLAGS" >&6; }
11368
11369 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11370 $as_echo_n "checking GTK_LIBS... " >&6; }
11371 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11372 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11373 $as_echo "$GTK_LIBS" >&6; }
11374 else
11375 { $as_echo "$as_me:$LINENO: result: no" >&5
11376 $as_echo "no" >&6; }
11377 GTK_CFLAGS=""
11378 GTK_LIBS=""
11379 ## If we have a custom action on failure, don't print errors, but
11380 ## do set a variable so people can do so.
11381 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11382
11383 fi
11384
11385
11386
11387 else
11388 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11389 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11390 fi
11391 fi
11392
11393 if test $succeeded = yes; then
11394 pkg_check_gtk=yes
11395 else
11396 pkg_check_gtk=no
11397 fi
11398
11399 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11400 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11401 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11402 { (exit 1); exit 1; }; }
11403 fi
11404 fi
11405
11406
11407 if test x"$pkg_check_gtk" = xyes; then
11408
11409
11410
11411 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11412 CFLAGS="$CFLAGS $GTK_CFLAGS"
11413 LIBS="$GTK_LIBS $LIBS"
11414 GTK_COMPILES=no
11415
11416 for ac_func in gtk_main
11417 do
11418 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11419 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11420 $as_echo_n "checking for $ac_func... " >&6; }
11421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11422 $as_echo_n "(cached) " >&6
11423 else
11424 cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h. */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11432 #define $ac_func innocuous_$ac_func
11433
11434 /* System header to define __stub macros and hopefully few prototypes,
11435 which can conflict with char $ac_func (); below.
11436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11437 <limits.h> exists even on freestanding compilers. */
11438
11439 #ifdef __STDC__
11440 # include <limits.h>
11441 #else
11442 # include <assert.h>
11443 #endif
11444
11445 #undef $ac_func
11446
11447 /* Override any GCC internal prototype to avoid an error.
11448 Use char because int might match the return type of a GCC
11449 builtin and then its argument prototype would still apply. */
11450 #ifdef __cplusplus
11451 extern "C"
11452 #endif
11453 char $ac_func ();
11454 /* The GNU C library defines this for functions which it implements
11455 to always fail with ENOSYS. Some functions are actually named
11456 something starting with __ and the normal name is an alias. */
11457 #if defined __stub_$ac_func || defined __stub___$ac_func
11458 choke me
11459 #endif
11460
11461 int
11462 main ()
11463 {
11464 return $ac_func ();
11465 ;
11466 return 0;
11467 }
11468 _ACEOF
11469 rm -f conftest.$ac_objext conftest$ac_exeext
11470 if { (ac_try="$ac_link"
11471 case "(($ac_try" in
11472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473 *) ac_try_echo=$ac_try;;
11474 esac
11475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11476 $as_echo "$ac_try_echo") >&5
11477 (eval "$ac_link") 2>conftest.er1
11478 ac_status=$?
11479 grep -v '^ *+' conftest.er1 >conftest.err
11480 rm -f conftest.er1
11481 cat conftest.err >&5
11482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } && {
11484 test -z "$ac_c_werror_flag" ||
11485 test ! -s conftest.err
11486 } && test -s conftest$ac_exeext && {
11487 test "$cross_compiling" = yes ||
11488 $as_test_x conftest$ac_exeext
11489 }; then
11490 eval "$as_ac_var=yes"
11491 else
11492 $as_echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11494
11495 eval "$as_ac_var=no"
11496 fi
11497
11498 rm -rf conftest.dSYM
11499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11500 conftest$ac_exeext conftest.$ac_ext
11501 fi
11502 ac_res=`eval 'as_val=${'$as_ac_var'}
11503 $as_echo "$as_val"'`
11504 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11505 $as_echo "$ac_res" >&6; }
11506 if test `eval 'as_val=${'$as_ac_var'}
11507 $as_echo "$as_val"'` = yes; then
11508 cat >>confdefs.h <<_ACEOF
11509 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11510 _ACEOF
11511 GTK_COMPILES=yes
11512 fi
11513 done
11514
11515 if test "${GTK_COMPILES}" != "yes"; then
11516 if test "$USE_X_TOOLKIT" != "maybe"; then
11517 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11518 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11519 { (exit 1); exit 1; }; };
11520 fi
11521 else
11522 HAVE_GTK=yes
11523
11524 cat >>confdefs.h <<\_ACEOF
11525 #define USE_GTK 1
11526 _ACEOF
11527
11528 USE_X_TOOLKIT=none
11529 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11530 :
11531 else
11532 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11533 closing open displays. This is no problem if you just use
11534 one display, but if you use more than one and close one of them
11535 Emacs may crash." >&5
11536 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11537 closing open displays. This is no problem if you just use
11538 one display, but if you use more than one and close one of them
11539 Emacs may crash." >&2;}
11540 sleep 3
11541 fi
11542 fi
11543
11544 fi
11545
11546
11547 if test "${HAVE_GTK}" = "yes"; then
11548
11549 if test "$with_toolkit_scroll_bars" != no; then
11550 with_toolkit_scroll_bars=yes
11551 fi
11552
11553 HAVE_GTK_MULTIDISPLAY=no
11554
11555 for ac_func in gdk_display_open
11556 do
11557 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11558 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11559 $as_echo_n "checking for $ac_func... " >&6; }
11560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11561 $as_echo_n "(cached) " >&6
11562 else
11563 cat >conftest.$ac_ext <<_ACEOF
11564 /* confdefs.h. */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11571 #define $ac_func innocuous_$ac_func
11572
11573 /* System header to define __stub macros and hopefully few prototypes,
11574 which can conflict with char $ac_func (); below.
11575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11576 <limits.h> exists even on freestanding compilers. */
11577
11578 #ifdef __STDC__
11579 # include <limits.h>
11580 #else
11581 # include <assert.h>
11582 #endif
11583
11584 #undef $ac_func
11585
11586 /* Override any GCC internal prototype to avoid an error.
11587 Use char because int might match the return type of a GCC
11588 builtin and then its argument prototype would still apply. */
11589 #ifdef __cplusplus
11590 extern "C"
11591 #endif
11592 char $ac_func ();
11593 /* The GNU C library defines this for functions which it implements
11594 to always fail with ENOSYS. Some functions are actually named
11595 something starting with __ and the normal name is an alias. */
11596 #if defined __stub_$ac_func || defined __stub___$ac_func
11597 choke me
11598 #endif
11599
11600 int
11601 main ()
11602 {
11603 return $ac_func ();
11604 ;
11605 return 0;
11606 }
11607 _ACEOF
11608 rm -f conftest.$ac_objext conftest$ac_exeext
11609 if { (ac_try="$ac_link"
11610 case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11613 esac
11614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11615 $as_echo "$ac_try_echo") >&5
11616 (eval "$ac_link") 2>conftest.er1
11617 ac_status=$?
11618 grep -v '^ *+' conftest.er1 >conftest.err
11619 rm -f conftest.er1
11620 cat conftest.err >&5
11621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); } && {
11623 test -z "$ac_c_werror_flag" ||
11624 test ! -s conftest.err
11625 } && test -s conftest$ac_exeext && {
11626 test "$cross_compiling" = yes ||
11627 $as_test_x conftest$ac_exeext
11628 }; then
11629 eval "$as_ac_var=yes"
11630 else
11631 $as_echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11633
11634 eval "$as_ac_var=no"
11635 fi
11636
11637 rm -rf conftest.dSYM
11638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11639 conftest$ac_exeext conftest.$ac_ext
11640 fi
11641 ac_res=`eval 'as_val=${'$as_ac_var'}
11642 $as_echo "$as_val"'`
11643 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11644 $as_echo "$ac_res" >&6; }
11645 if test `eval 'as_val=${'$as_ac_var'}
11646 $as_echo "$as_val"'` = yes; then
11647 cat >>confdefs.h <<_ACEOF
11648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11649 _ACEOF
11650 HAVE_GTK_MULTIDISPLAY=yes
11651 fi
11652 done
11653
11654 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11655
11656 cat >>confdefs.h <<\_ACEOF
11657 #define HAVE_GTK_MULTIDISPLAY 1
11658 _ACEOF
11659
11660 fi
11661
11662 HAVE_GTK_FILE_SELECTION=no
11663 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11664 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11665 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11666 $as_echo_n "(cached) " >&6
11667 else
11668 cat >conftest.$ac_ext <<_ACEOF
11669 /* confdefs.h. */
11670 _ACEOF
11671 cat confdefs.h >>conftest.$ac_ext
11672 cat >>conftest.$ac_ext <<_ACEOF
11673 /* end confdefs.h. */
11674 $ac_includes_default
11675 #include <gtk/gtk.h>
11676
11677 int
11678 main ()
11679 {
11680 #ifndef GTK_TYPE_FILE_SELECTION
11681 (void) GTK_TYPE_FILE_SELECTION;
11682 #endif
11683
11684 ;
11685 return 0;
11686 }
11687 _ACEOF
11688 rm -f conftest.$ac_objext
11689 if { (ac_try="$ac_compile"
11690 case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11693 esac
11694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11695 $as_echo "$ac_try_echo") >&5
11696 (eval "$ac_compile") 2>conftest.er1
11697 ac_status=$?
11698 grep -v '^ *+' conftest.er1 >conftest.err
11699 rm -f conftest.er1
11700 cat conftest.err >&5
11701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } && {
11703 test -z "$ac_c_werror_flag" ||
11704 test ! -s conftest.err
11705 } && test -s conftest.$ac_objext; then
11706 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11707 else
11708 $as_echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11710
11711 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11712 fi
11713
11714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11715 fi
11716 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11717 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11718 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11719 HAVE_GTK_FILE_SELECTION=yes
11720 else
11721 HAVE_GTK_FILE_SELECTION=no
11722 fi
11723
11724 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11725
11726 for ac_func in gtk_file_selection_new
11727 do
11728 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11729 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11730 $as_echo_n "checking for $ac_func... " >&6; }
11731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11732 $as_echo_n "(cached) " >&6
11733 else
11734 cat >conftest.$ac_ext <<_ACEOF
11735 /* confdefs.h. */
11736 _ACEOF
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11742 #define $ac_func innocuous_$ac_func
11743
11744 /* System header to define __stub macros and hopefully few prototypes,
11745 which can conflict with char $ac_func (); below.
11746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11747 <limits.h> exists even on freestanding compilers. */
11748
11749 #ifdef __STDC__
11750 # include <limits.h>
11751 #else
11752 # include <assert.h>
11753 #endif
11754
11755 #undef $ac_func
11756
11757 /* Override any GCC internal prototype to avoid an error.
11758 Use char because int might match the return type of a GCC
11759 builtin and then its argument prototype would still apply. */
11760 #ifdef __cplusplus
11761 extern "C"
11762 #endif
11763 char $ac_func ();
11764 /* The GNU C library defines this for functions which it implements
11765 to always fail with ENOSYS. Some functions are actually named
11766 something starting with __ and the normal name is an alias. */
11767 #if defined __stub_$ac_func || defined __stub___$ac_func
11768 choke me
11769 #endif
11770
11771 int
11772 main ()
11773 {
11774 return $ac_func ();
11775 ;
11776 return 0;
11777 }
11778 _ACEOF
11779 rm -f conftest.$ac_objext conftest$ac_exeext
11780 if { (ac_try="$ac_link"
11781 case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11784 esac
11785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11786 $as_echo "$ac_try_echo") >&5
11787 (eval "$ac_link") 2>conftest.er1
11788 ac_status=$?
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
11792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } && {
11794 test -z "$ac_c_werror_flag" ||
11795 test ! -s conftest.err
11796 } && test -s conftest$ac_exeext && {
11797 test "$cross_compiling" = yes ||
11798 $as_test_x conftest$ac_exeext
11799 }; then
11800 eval "$as_ac_var=yes"
11801 else
11802 $as_echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11804
11805 eval "$as_ac_var=no"
11806 fi
11807
11808 rm -rf conftest.dSYM
11809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11810 conftest$ac_exeext conftest.$ac_ext
11811 fi
11812 ac_res=`eval 'as_val=${'$as_ac_var'}
11813 $as_echo "$as_val"'`
11814 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11815 $as_echo "$ac_res" >&6; }
11816 if test `eval 'as_val=${'$as_ac_var'}
11817 $as_echo "$as_val"'` = yes; then
11818 cat >>confdefs.h <<_ACEOF
11819 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11820 _ACEOF
11821 HAVE_GTK_FILE_SELECTION=yes
11822 else
11823 HAVE_GTK_FILE_SELECTION=no
11824 fi
11825 done
11826
11827 fi
11828
11829 HAVE_GTK_FILE_CHOOSER=no
11830 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
11831 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
11832 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11833 $as_echo_n "(cached) " >&6
11834 else
11835 cat >conftest.$ac_ext <<_ACEOF
11836 /* confdefs.h. */
11837 _ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h. */
11841 $ac_includes_default
11842 #include <gtk/gtk.h>
11843
11844 int
11845 main ()
11846 {
11847 #ifndef GTK_TYPE_FILE_CHOOSER
11848 (void) GTK_TYPE_FILE_CHOOSER;
11849 #endif
11850
11851 ;
11852 return 0;
11853 }
11854 _ACEOF
11855 rm -f conftest.$ac_objext
11856 if { (ac_try="$ac_compile"
11857 case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11860 esac
11861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11862 $as_echo "$ac_try_echo") >&5
11863 (eval "$ac_compile") 2>conftest.er1
11864 ac_status=$?
11865 grep -v '^ *+' conftest.er1 >conftest.err
11866 rm -f conftest.er1
11867 cat conftest.err >&5
11868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } && {
11870 test -z "$ac_c_werror_flag" ||
11871 test ! -s conftest.err
11872 } && test -s conftest.$ac_objext; then
11873 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
11874 else
11875 $as_echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11877
11878 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
11879 fi
11880
11881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11882 fi
11883 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
11884 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
11885 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
11886 HAVE_GTK_FILE_CHOOSER=yes
11887 else
11888 HAVE_GTK_FILE_CHOOSER=no
11889 fi
11890
11891 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11892
11893 for ac_func in gtk_file_chooser_dialog_new
11894 do
11895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11896 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11897 $as_echo_n "checking for $ac_func... " >&6; }
11898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11899 $as_echo_n "(cached) " >&6
11900 else
11901 cat >conftest.$ac_ext <<_ACEOF
11902 /* confdefs.h. */
11903 _ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11909 #define $ac_func innocuous_$ac_func
11910
11911 /* System header to define __stub macros and hopefully few prototypes,
11912 which can conflict with char $ac_func (); below.
11913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11914 <limits.h> exists even on freestanding compilers. */
11915
11916 #ifdef __STDC__
11917 # include <limits.h>
11918 #else
11919 # include <assert.h>
11920 #endif
11921
11922 #undef $ac_func
11923
11924 /* Override any GCC internal prototype to avoid an error.
11925 Use char because int might match the return type of a GCC
11926 builtin and then its argument prototype would still apply. */
11927 #ifdef __cplusplus
11928 extern "C"
11929 #endif
11930 char $ac_func ();
11931 /* The GNU C library defines this for functions which it implements
11932 to always fail with ENOSYS. Some functions are actually named
11933 something starting with __ and the normal name is an alias. */
11934 #if defined __stub_$ac_func || defined __stub___$ac_func
11935 choke me
11936 #endif
11937
11938 int
11939 main ()
11940 {
11941 return $ac_func ();
11942 ;
11943 return 0;
11944 }
11945 _ACEOF
11946 rm -f conftest.$ac_objext conftest$ac_exeext
11947 if { (ac_try="$ac_link"
11948 case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11951 esac
11952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11953 $as_echo "$ac_try_echo") >&5
11954 (eval "$ac_link") 2>conftest.er1
11955 ac_status=$?
11956 grep -v '^ *+' conftest.er1 >conftest.err
11957 rm -f conftest.er1
11958 cat conftest.err >&5
11959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } && {
11961 test -z "$ac_c_werror_flag" ||
11962 test ! -s conftest.err
11963 } && test -s conftest$ac_exeext && {
11964 test "$cross_compiling" = yes ||
11965 $as_test_x conftest$ac_exeext
11966 }; then
11967 eval "$as_ac_var=yes"
11968 else
11969 $as_echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11971
11972 eval "$as_ac_var=no"
11973 fi
11974
11975 rm -rf conftest.dSYM
11976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11977 conftest$ac_exeext conftest.$ac_ext
11978 fi
11979 ac_res=`eval 'as_val=${'$as_ac_var'}
11980 $as_echo "$as_val"'`
11981 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11982 $as_echo "$ac_res" >&6; }
11983 if test `eval 'as_val=${'$as_ac_var'}
11984 $as_echo "$as_val"'` = yes; then
11985 cat >>confdefs.h <<_ACEOF
11986 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11987 _ACEOF
11988 HAVE_GTK_FILE_CHOOSER=yes
11989 else
11990 HAVE_GTK_FILE_CHOOSER=no
11991 fi
11992 done
11993
11994 fi
11995
11996 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11997 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11998
11999 cat >>confdefs.h <<\_ACEOF
12000 #define HAVE_GTK_FILE_BOTH 1
12001 _ACEOF
12002
12003 fi
12004
12005 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12006 HAVE_GTK_AND_PTHREAD=no
12007
12008 for ac_header in pthread.h
12009 do
12010 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12012 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12013 $as_echo_n "checking for $ac_header... " >&6; }
12014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12015 $as_echo_n "(cached) " >&6
12016 fi
12017 ac_res=`eval 'as_val=${'$as_ac_Header'}
12018 $as_echo "$as_val"'`
12019 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12020 $as_echo "$ac_res" >&6; }
12021 else
12022 # Is the header compilable?
12023 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12024 $as_echo_n "checking $ac_header usability... " >&6; }
12025 cat >conftest.$ac_ext <<_ACEOF
12026 /* confdefs.h. */
12027 _ACEOF
12028 cat confdefs.h >>conftest.$ac_ext
12029 cat >>conftest.$ac_ext <<_ACEOF
12030 /* end confdefs.h. */
12031 $ac_includes_default
12032 #include <$ac_header>
12033 _ACEOF
12034 rm -f conftest.$ac_objext
12035 if { (ac_try="$ac_compile"
12036 case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12039 esac
12040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12041 $as_echo "$ac_try_echo") >&5
12042 (eval "$ac_compile") 2>conftest.er1
12043 ac_status=$?
12044 grep -v '^ *+' conftest.er1 >conftest.err
12045 rm -f conftest.er1
12046 cat conftest.err >&5
12047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); } && {
12049 test -z "$ac_c_werror_flag" ||
12050 test ! -s conftest.err
12051 } && test -s conftest.$ac_objext; then
12052 ac_header_compiler=yes
12053 else
12054 $as_echo "$as_me: failed program was:" >&5
12055 sed 's/^/| /' conftest.$ac_ext >&5
12056
12057 ac_header_compiler=no
12058 fi
12059
12060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12061 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12062 $as_echo "$ac_header_compiler" >&6; }
12063
12064 # Is the header present?
12065 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12066 $as_echo_n "checking $ac_header presence... " >&6; }
12067 cat >conftest.$ac_ext <<_ACEOF
12068 /* confdefs.h. */
12069 _ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12073 #include <$ac_header>
12074 _ACEOF
12075 if { (ac_try="$ac_cpp conftest.$ac_ext"
12076 case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12079 esac
12080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12081 $as_echo "$ac_try_echo") >&5
12082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12083 ac_status=$?
12084 grep -v '^ *+' conftest.er1 >conftest.err
12085 rm -f conftest.er1
12086 cat conftest.err >&5
12087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } >/dev/null && {
12089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12090 test ! -s conftest.err
12091 }; then
12092 ac_header_preproc=yes
12093 else
12094 $as_echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12096
12097 ac_header_preproc=no
12098 fi
12099
12100 rm -f conftest.err conftest.$ac_ext
12101 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12102 $as_echo "$ac_header_preproc" >&6; }
12103
12104 # So? What about this header?
12105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12106 yes:no: )
12107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12108 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12110 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12111 ac_header_preproc=yes
12112 ;;
12113 no:yes:* )
12114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12115 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12117 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12119 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12121 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12123 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12125 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12126
12127 ;;
12128 esac
12129 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12130 $as_echo_n "checking for $ac_header... " >&6; }
12131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12132 $as_echo_n "(cached) " >&6
12133 else
12134 eval "$as_ac_Header=\$ac_header_preproc"
12135 fi
12136 ac_res=`eval 'as_val=${'$as_ac_Header'}
12137 $as_echo "$as_val"'`
12138 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12139 $as_echo "$ac_res" >&6; }
12140
12141 fi
12142 if test `eval 'as_val=${'$as_ac_Header'}
12143 $as_echo "$as_val"'` = yes; then
12144 cat >>confdefs.h <<_ACEOF
12145 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12146 _ACEOF
12147
12148 fi
12149
12150 done
12151
12152 if test "$ac_cv_header_pthread_h"; then
12153 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12154 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12155 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12156 $as_echo_n "(cached) " >&6
12157 else
12158 ac_check_lib_save_LIBS=$LIBS
12159 LIBS="-lpthread $LIBS"
12160 cat >conftest.$ac_ext <<_ACEOF
12161 /* confdefs.h. */
12162 _ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12166
12167 /* Override any GCC internal prototype to avoid an error.
12168 Use char because int might match the return type of a GCC
12169 builtin and then its argument prototype would still apply. */
12170 #ifdef __cplusplus
12171 extern "C"
12172 #endif
12173 char pthread_self ();
12174 int
12175 main ()
12176 {
12177 return pthread_self ();
12178 ;
12179 return 0;
12180 }
12181 _ACEOF
12182 rm -f conftest.$ac_objext conftest$ac_exeext
12183 if { (ac_try="$ac_link"
12184 case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12187 esac
12188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12189 $as_echo "$ac_try_echo") >&5
12190 (eval "$ac_link") 2>conftest.er1
12191 ac_status=$?
12192 grep -v '^ *+' conftest.er1 >conftest.err
12193 rm -f conftest.er1
12194 cat conftest.err >&5
12195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } && {
12197 test -z "$ac_c_werror_flag" ||
12198 test ! -s conftest.err
12199 } && test -s conftest$ac_exeext && {
12200 test "$cross_compiling" = yes ||
12201 $as_test_x conftest$ac_exeext
12202 }; then
12203 ac_cv_lib_pthread_pthread_self=yes
12204 else
12205 $as_echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12207
12208 ac_cv_lib_pthread_pthread_self=no
12209 fi
12210
12211 rm -rf conftest.dSYM
12212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12213 conftest$ac_exeext conftest.$ac_ext
12214 LIBS=$ac_check_lib_save_LIBS
12215 fi
12216 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12217 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12218 if test $ac_cv_lib_pthread_pthread_self = yes; then
12219 HAVE_GTK_AND_PTHREAD=yes
12220 fi
12221
12222 fi
12223 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12224 case "${canonical}" in
12225 *-hpux*) ;;
12226 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12227 esac
12228
12229 cat >>confdefs.h <<\_ACEOF
12230 #define HAVE_GTK_AND_PTHREAD 1
12231 _ACEOF
12232
12233 fi
12234 fi
12235 fi
12236
12237 HAVE_DBUS=no
12238 if test "${with_dbus}" = "yes"; then
12239
12240 succeeded=no
12241
12242 # Extract the first word of "pkg-config", so it can be a program name with args.
12243 set dummy pkg-config; ac_word=$2
12244 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12245 $as_echo_n "checking for $ac_word... " >&6; }
12246 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12247 $as_echo_n "(cached) " >&6
12248 else
12249 case $PKG_CONFIG in
12250 [\\/]* | ?:[\\/]*)
12251 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12252 ;;
12253 *)
12254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12255 for as_dir in $PATH
12256 do
12257 IFS=$as_save_IFS
12258 test -z "$as_dir" && as_dir=.
12259 for ac_exec_ext in '' $ac_executable_extensions; do
12260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12261 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12263 break 2
12264 fi
12265 done
12266 done
12267 IFS=$as_save_IFS
12268
12269 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12270 ;;
12271 esac
12272 fi
12273 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12274 if test -n "$PKG_CONFIG"; then
12275 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12276 $as_echo "$PKG_CONFIG" >&6; }
12277 else
12278 { $as_echo "$as_me:$LINENO: result: no" >&5
12279 $as_echo "no" >&6; }
12280 fi
12281
12282
12283
12284 if test "$PKG_CONFIG" = "no" ; then
12285 HAVE_DBUS=no
12286 else
12287 PKG_CONFIG_MIN_VERSION=0.9.0
12288 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12289 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12290 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12291
12292 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12293 { $as_echo "$as_me:$LINENO: result: yes" >&5
12294 $as_echo "yes" >&6; }
12295 succeeded=yes
12296
12297 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12298 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12299 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12300 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12301 $as_echo "$DBUS_CFLAGS" >&6; }
12302
12303 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12304 $as_echo_n "checking DBUS_LIBS... " >&6; }
12305 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12306 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12307 $as_echo "$DBUS_LIBS" >&6; }
12308 else
12309 { $as_echo "$as_me:$LINENO: result: no" >&5
12310 $as_echo "no" >&6; }
12311 DBUS_CFLAGS=""
12312 DBUS_LIBS=""
12313 ## If we have a custom action on failure, don't print errors, but
12314 ## do set a variable so people can do so.
12315 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12316
12317 fi
12318
12319
12320
12321 else
12322 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12323 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12324 fi
12325 fi
12326
12327 if test $succeeded = yes; then
12328 HAVE_DBUS=yes
12329 else
12330 HAVE_DBUS=no
12331 fi
12332
12333 if test "$HAVE_DBUS" = yes; then
12334
12335 cat >>confdefs.h <<\_ACEOF
12336 #define HAVE_DBUS 1
12337 _ACEOF
12338
12339 fi
12340 fi
12341
12342 HAVE_XAW3D=no
12343 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12344 if test "$with_xaw3d" != no; then
12345 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12346 $as_echo_n "checking for xaw3d... " >&6; }
12347 if test "${emacs_cv_xaw3d+set}" = set; then
12348 $as_echo_n "(cached) " >&6
12349 else
12350 cat >conftest.$ac_ext <<_ACEOF
12351 /* confdefs.h. */
12352 _ACEOF
12353 cat confdefs.h >>conftest.$ac_ext
12354 cat >>conftest.$ac_ext <<_ACEOF
12355 /* end confdefs.h. */
12356
12357 #include <X11/Intrinsic.h>
12358 #include <X11/Xaw3d/Simple.h>
12359 int
12360 main ()
12361 {
12362
12363 ;
12364 return 0;
12365 }
12366 _ACEOF
12367 rm -f conftest.$ac_objext conftest$ac_exeext
12368 if { (ac_try="$ac_link"
12369 case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12372 esac
12373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12374 $as_echo "$ac_try_echo") >&5
12375 (eval "$ac_link") 2>conftest.er1
12376 ac_status=$?
12377 grep -v '^ *+' conftest.er1 >conftest.err
12378 rm -f conftest.er1
12379 cat conftest.err >&5
12380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); } && {
12382 test -z "$ac_c_werror_flag" ||
12383 test ! -s conftest.err
12384 } && test -s conftest$ac_exeext && {
12385 test "$cross_compiling" = yes ||
12386 $as_test_x conftest$ac_exeext
12387 }; then
12388 emacs_cv_xaw3d=yes
12389 else
12390 $as_echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12392
12393 emacs_cv_xaw3d=no
12394 fi
12395
12396 rm -rf conftest.dSYM
12397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12398 conftest$ac_exeext conftest.$ac_ext
12399 fi
12400
12401 else
12402 emacs_cv_xaw3d=no
12403 fi
12404 if test $emacs_cv_xaw3d = yes; then
12405 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12406 $as_echo "yes; using Lucid toolkit" >&6; }
12407 USE_X_TOOLKIT=LUCID
12408 HAVE_XAW3D=yes
12409
12410 cat >>confdefs.h <<\_ACEOF
12411 #define HAVE_XAW3D 1
12412 _ACEOF
12413
12414 else
12415 { $as_echo "$as_me:$LINENO: result: no" >&5
12416 $as_echo "no" >&6; }
12417 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12418 $as_echo_n "checking for libXaw... " >&6; }
12419 if test "${emacs_cv_xaw+set}" = set; then
12420 $as_echo_n "(cached) " >&6
12421 else
12422 cat >conftest.$ac_ext <<_ACEOF
12423 /* confdefs.h. */
12424 _ACEOF
12425 cat confdefs.h >>conftest.$ac_ext
12426 cat >>conftest.$ac_ext <<_ACEOF
12427 /* end confdefs.h. */
12428
12429 #include <X11/Intrinsic.h>
12430 #include <X11/Xaw/Simple.h>
12431 int
12432 main ()
12433 {
12434
12435 ;
12436 return 0;
12437 }
12438 _ACEOF
12439 rm -f conftest.$ac_objext conftest$ac_exeext
12440 if { (ac_try="$ac_link"
12441 case "(($ac_try" in
12442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12443 *) ac_try_echo=$ac_try;;
12444 esac
12445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12446 $as_echo "$ac_try_echo") >&5
12447 (eval "$ac_link") 2>conftest.er1
12448 ac_status=$?
12449 grep -v '^ *+' conftest.er1 >conftest.err
12450 rm -f conftest.er1
12451 cat conftest.err >&5
12452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); } && {
12454 test -z "$ac_c_werror_flag" ||
12455 test ! -s conftest.err
12456 } && test -s conftest$ac_exeext && {
12457 test "$cross_compiling" = yes ||
12458 $as_test_x conftest$ac_exeext
12459 }; then
12460 emacs_cv_xaw=yes
12461 else
12462 $as_echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12464
12465 emacs_cv_xaw=no
12466 fi
12467
12468 rm -rf conftest.dSYM
12469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12470 conftest$ac_exeext conftest.$ac_ext
12471 fi
12472
12473 if test $emacs_cv_xaw = yes; then
12474 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12475 $as_echo "yes; using Lucid toolkit" >&6; }
12476 USE_X_TOOLKIT=LUCID
12477 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12478 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12479 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12480 { (exit 1); exit 1; }; }
12481 else
12482 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12483 $as_echo "no; do not use toolkit by default" >&6; }
12484 USE_X_TOOLKIT=none
12485 fi
12486 fi
12487 fi
12488
12489 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12490
12491 if test "${USE_X_TOOLKIT}" != "none"; then
12492 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12493 $as_echo_n "checking X11 toolkit version... " >&6; }
12494 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12495 $as_echo_n "(cached) " >&6
12496 else
12497 cat >conftest.$ac_ext <<_ACEOF
12498 /* confdefs.h. */
12499 _ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h. */
12503 #include <X11/Intrinsic.h>
12504 int
12505 main ()
12506 {
12507 #if XtSpecificationRelease < 6
12508 fail;
12509 #endif
12510
12511 ;
12512 return 0;
12513 }
12514 _ACEOF
12515 rm -f conftest.$ac_objext conftest$ac_exeext
12516 if { (ac_try="$ac_link"
12517 case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12520 esac
12521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12522 $as_echo "$ac_try_echo") >&5
12523 (eval "$ac_link") 2>conftest.er1
12524 ac_status=$?
12525 grep -v '^ *+' conftest.er1 >conftest.err
12526 rm -f conftest.er1
12527 cat conftest.err >&5
12528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } && {
12530 test -z "$ac_c_werror_flag" ||
12531 test ! -s conftest.err
12532 } && test -s conftest$ac_exeext && {
12533 test "$cross_compiling" = yes ||
12534 $as_test_x conftest$ac_exeext
12535 }; then
12536 emacs_cv_x11_toolkit_version_6=yes
12537 else
12538 $as_echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12540
12541 emacs_cv_x11_toolkit_version_6=no
12542 fi
12543
12544 rm -rf conftest.dSYM
12545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12546 conftest$ac_exeext conftest.$ac_ext
12547 fi
12548
12549 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12550 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12551 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
12552 $as_echo "6 or newer" >&6; }
12553
12554 cat >>confdefs.h <<\_ACEOF
12555 #define HAVE_X11XTR6 1
12556 _ACEOF
12557
12558 else
12559 { $as_echo "$as_me:$LINENO: result: before 6" >&5
12560 $as_echo "before 6" >&6; }
12561 fi
12562
12563 OLDLIBS="$LIBS"
12564 if test x$HAVE_X11XTR6 = xyes; then
12565 LIBS="-lXt -lSM -lICE $LIBS"
12566 else
12567 LIBS="-lXt $LIBS"
12568 fi
12569
12570 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12571 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12572 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12573 $as_echo_n "(cached) " >&6
12574 else
12575 ac_check_lib_save_LIBS=$LIBS
12576 LIBS="-lXmu $LIBS"
12577 cat >conftest.$ac_ext <<_ACEOF
12578 /* confdefs.h. */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12583
12584 /* Override any GCC internal prototype to avoid an error.
12585 Use char because int might match the return type of a GCC
12586 builtin and then its argument prototype would still apply. */
12587 #ifdef __cplusplus
12588 extern "C"
12589 #endif
12590 char XmuConvertStandardSelection ();
12591 int
12592 main ()
12593 {
12594 return XmuConvertStandardSelection ();
12595 ;
12596 return 0;
12597 }
12598 _ACEOF
12599 rm -f conftest.$ac_objext conftest$ac_exeext
12600 if { (ac_try="$ac_link"
12601 case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12604 esac
12605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12606 $as_echo "$ac_try_echo") >&5
12607 (eval "$ac_link") 2>conftest.er1
12608 ac_status=$?
12609 grep -v '^ *+' conftest.er1 >conftest.err
12610 rm -f conftest.er1
12611 cat conftest.err >&5
12612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); } && {
12614 test -z "$ac_c_werror_flag" ||
12615 test ! -s conftest.err
12616 } && test -s conftest$ac_exeext && {
12617 test "$cross_compiling" = yes ||
12618 $as_test_x conftest$ac_exeext
12619 }; then
12620 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12621 else
12622 $as_echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12624
12625 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12626 fi
12627
12628 rm -rf conftest.dSYM
12629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12630 conftest$ac_exeext conftest.$ac_ext
12631 LIBS=$ac_check_lib_save_LIBS
12632 fi
12633 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12634 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12635 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12636 cat >>confdefs.h <<_ACEOF
12637 #define HAVE_LIBXMU 1
12638 _ACEOF
12639
12640 LIBS="-lXmu $LIBS"
12641
12642 fi
12643
12644 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12645 fi
12646
12647 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12648 if test "${HAVE_X11}" = "yes"; then
12649 if test "${USE_X_TOOLKIT}" != "none"; then
12650
12651 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12652 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12653 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12654 $as_echo_n "(cached) " >&6
12655 else
12656 ac_check_lib_save_LIBS=$LIBS
12657 LIBS="-lXext $LIBS"
12658 cat >conftest.$ac_ext <<_ACEOF
12659 /* confdefs.h. */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12664
12665 /* Override any GCC internal prototype to avoid an error.
12666 Use char because int might match the return type of a GCC
12667 builtin and then its argument prototype would still apply. */
12668 #ifdef __cplusplus
12669 extern "C"
12670 #endif
12671 char XShapeQueryExtension ();
12672 int
12673 main ()
12674 {
12675 return XShapeQueryExtension ();
12676 ;
12677 return 0;
12678 }
12679 _ACEOF
12680 rm -f conftest.$ac_objext conftest$ac_exeext
12681 if { (ac_try="$ac_link"
12682 case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12685 esac
12686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12687 $as_echo "$ac_try_echo") >&5
12688 (eval "$ac_link") 2>conftest.er1
12689 ac_status=$?
12690 grep -v '^ *+' conftest.er1 >conftest.err
12691 rm -f conftest.er1
12692 cat conftest.err >&5
12693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } && {
12695 test -z "$ac_c_werror_flag" ||
12696 test ! -s conftest.err
12697 } && test -s conftest$ac_exeext && {
12698 test "$cross_compiling" = yes ||
12699 $as_test_x conftest$ac_exeext
12700 }; then
12701 ac_cv_lib_Xext_XShapeQueryExtension=yes
12702 else
12703 $as_echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12705
12706 ac_cv_lib_Xext_XShapeQueryExtension=no
12707 fi
12708
12709 rm -rf conftest.dSYM
12710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12711 conftest$ac_exeext conftest.$ac_ext
12712 LIBS=$ac_check_lib_save_LIBS
12713 fi
12714 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12715 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12716 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12717 cat >>confdefs.h <<_ACEOF
12718 #define HAVE_LIBXEXT 1
12719 _ACEOF
12720
12721 LIBS="-lXext $LIBS"
12722
12723 fi
12724
12725 fi
12726 fi
12727
12728 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12729 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12730 $as_echo_n "checking for Motif version 2.1... " >&6; }
12731 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12732 $as_echo_n "(cached) " >&6
12733 else
12734 cat >conftest.$ac_ext <<_ACEOF
12735 /* confdefs.h. */
12736 _ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h. */
12740 #include <Xm/Xm.h>
12741 int
12742 main ()
12743 {
12744 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12745 int x = 5;
12746 #else
12747 Motif version prior to 2.1.
12748 #endif
12749 ;
12750 return 0;
12751 }
12752 _ACEOF
12753 rm -f conftest.$ac_objext
12754 if { (ac_try="$ac_compile"
12755 case "(($ac_try" in
12756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12757 *) ac_try_echo=$ac_try;;
12758 esac
12759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12760 $as_echo "$ac_try_echo") >&5
12761 (eval "$ac_compile") 2>conftest.er1
12762 ac_status=$?
12763 grep -v '^ *+' conftest.er1 >conftest.err
12764 rm -f conftest.er1
12765 cat conftest.err >&5
12766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); } && {
12768 test -z "$ac_c_werror_flag" ||
12769 test ! -s conftest.err
12770 } && test -s conftest.$ac_objext; then
12771 emacs_cv_motif_version_2_1=yes
12772 else
12773 $as_echo "$as_me: failed program was:" >&5
12774 sed 's/^/| /' conftest.$ac_ext >&5
12775
12776 emacs_cv_motif_version_2_1=no
12777 fi
12778
12779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12780 fi
12781 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12782 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12783 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12784 if test $emacs_cv_motif_version_2_1 = yes; then
12785 HAVE_LIBXP=no
12786
12787 cat >>confdefs.h <<\_ACEOF
12788 #define HAVE_MOTIF_2_1 1
12789 _ACEOF
12790
12791 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12792 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12793 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12794 $as_echo_n "(cached) " >&6
12795 else
12796 ac_check_lib_save_LIBS=$LIBS
12797 LIBS="-lXp $LIBS"
12798 cat >conftest.$ac_ext <<_ACEOF
12799 /* confdefs.h. */
12800 _ACEOF
12801 cat confdefs.h >>conftest.$ac_ext
12802 cat >>conftest.$ac_ext <<_ACEOF
12803 /* end confdefs.h. */
12804
12805 /* Override any GCC internal prototype to avoid an error.
12806 Use char because int might match the return type of a GCC
12807 builtin and then its argument prototype would still apply. */
12808 #ifdef __cplusplus
12809 extern "C"
12810 #endif
12811 char XpCreateContext ();
12812 int
12813 main ()
12814 {
12815 return XpCreateContext ();
12816 ;
12817 return 0;
12818 }
12819 _ACEOF
12820 rm -f conftest.$ac_objext conftest$ac_exeext
12821 if { (ac_try="$ac_link"
12822 case "(($ac_try" in
12823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824 *) ac_try_echo=$ac_try;;
12825 esac
12826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12827 $as_echo "$ac_try_echo") >&5
12828 (eval "$ac_link") 2>conftest.er1
12829 ac_status=$?
12830 grep -v '^ *+' conftest.er1 >conftest.err
12831 rm -f conftest.er1
12832 cat conftest.err >&5
12833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); } && {
12835 test -z "$ac_c_werror_flag" ||
12836 test ! -s conftest.err
12837 } && test -s conftest$ac_exeext && {
12838 test "$cross_compiling" = yes ||
12839 $as_test_x conftest$ac_exeext
12840 }; then
12841 ac_cv_lib_Xp_XpCreateContext=yes
12842 else
12843 $as_echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12845
12846 ac_cv_lib_Xp_XpCreateContext=no
12847 fi
12848
12849 rm -rf conftest.dSYM
12850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12851 conftest$ac_exeext conftest.$ac_ext
12852 LIBS=$ac_check_lib_save_LIBS
12853 fi
12854 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12855 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12856 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12857 HAVE_LIBXP=yes
12858 fi
12859
12860 if test ${HAVE_LIBXP} = yes; then
12861
12862 cat >>confdefs.h <<\_ACEOF
12863 #define HAVE_LIBXP 1
12864 _ACEOF
12865
12866 fi
12867 else
12868 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12869 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12870 if test "${emacs_cv_lesstif+set}" = set; then
12871 $as_echo_n "(cached) " >&6
12872 else
12873 # We put this in CFLAGS temporarily to precede other -I options
12874 # that might be in CFLAGS temporarily.
12875 # We put this in CPPFLAGS where it precedes the other -I options.
12876 OLD_CPPFLAGS=$CPPFLAGS
12877 OLD_CFLAGS=$CFLAGS
12878 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12879 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12880 cat >conftest.$ac_ext <<_ACEOF
12881 /* confdefs.h. */
12882 _ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12886 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12887 int
12888 main ()
12889 {
12890 int x = 5;
12891 ;
12892 return 0;
12893 }
12894 _ACEOF
12895 rm -f conftest.$ac_objext
12896 if { (ac_try="$ac_compile"
12897 case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12900 esac
12901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12902 $as_echo "$ac_try_echo") >&5
12903 (eval "$ac_compile") 2>conftest.er1
12904 ac_status=$?
12905 grep -v '^ *+' conftest.er1 >conftest.err
12906 rm -f conftest.er1
12907 cat conftest.err >&5
12908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } && {
12910 test -z "$ac_c_werror_flag" ||
12911 test ! -s conftest.err
12912 } && test -s conftest.$ac_objext; then
12913 emacs_cv_lesstif=yes
12914 else
12915 $as_echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12917
12918 emacs_cv_lesstif=no
12919 fi
12920
12921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12922 fi
12923 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12924 $as_echo "$emacs_cv_lesstif" >&6; }
12925 if test $emacs_cv_lesstif = yes; then
12926 # Make sure this -I option remains in CPPFLAGS after it is set
12927 # back to REAL_CPPFLAGS.
12928 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12929 # have those other -I options anyway. Ultimately, having this
12930 # directory ultimately in CPPFLAGS will be enough.
12931 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12932 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12933 else
12934 CFLAGS=$OLD_CFLAGS
12935 CPPFLAGS=$OLD_CPPFLAGS
12936 fi
12937 fi
12938 fi
12939
12940
12941
12942 USE_TOOLKIT_SCROLL_BARS=no
12943 if test "${with_toolkit_scroll_bars}" != "no"; then
12944 if test "${USE_X_TOOLKIT}" != "none"; then
12945 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12946 cat >>confdefs.h <<\_ACEOF
12947 #define USE_TOOLKIT_SCROLL_BARS 1
12948 _ACEOF
12949
12950 HAVE_XAW3D=no
12951 USE_TOOLKIT_SCROLL_BARS=yes
12952 elif test "${HAVE_XAW3D}" = "yes"; then
12953 cat >>confdefs.h <<\_ACEOF
12954 #define USE_TOOLKIT_SCROLL_BARS 1
12955 _ACEOF
12956
12957 USE_TOOLKIT_SCROLL_BARS=yes
12958 fi
12959 elif test "${HAVE_GTK}" = "yes"; then
12960 cat >>confdefs.h <<\_ACEOF
12961 #define USE_TOOLKIT_SCROLL_BARS 1
12962 _ACEOF
12963
12964 USE_TOOLKIT_SCROLL_BARS=yes
12965 elif test "${HAVE_NS}" = "yes"; then
12966 cat >>confdefs.h <<\_ACEOF
12967 #define USE_TOOLKIT_SCROLL_BARS 1
12968 _ACEOF
12969
12970 USE_TOOLKIT_SCROLL_BARS=yes
12971 fi
12972 fi
12973
12974 cat >conftest.$ac_ext <<_ACEOF
12975 /* confdefs.h. */
12976 _ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12980
12981 #include <X11/Xlib.h>
12982 #include <X11/Xresource.h>
12983 int
12984 main ()
12985 {
12986 XIMProc callback;
12987 ;
12988 return 0;
12989 }
12990 _ACEOF
12991 rm -f conftest.$ac_objext
12992 if { (ac_try="$ac_compile"
12993 case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12996 esac
12997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12998 $as_echo "$ac_try_echo") >&5
12999 (eval "$ac_compile") 2>conftest.er1
13000 ac_status=$?
13001 grep -v '^ *+' conftest.er1 >conftest.err
13002 rm -f conftest.er1
13003 cat conftest.err >&5
13004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } && {
13006 test -z "$ac_c_werror_flag" ||
13007 test ! -s conftest.err
13008 } && test -s conftest.$ac_objext; then
13009 HAVE_XIM=yes
13010
13011 cat >>confdefs.h <<\_ACEOF
13012 #define HAVE_XIM 1
13013 _ACEOF
13014
13015 else
13016 $as_echo "$as_me: failed program was:" >&5
13017 sed 's/^/| /' conftest.$ac_ext >&5
13018
13019 HAVE_XIM=no
13020 fi
13021
13022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13023
13024
13025 if test "${with_xim}" != "no"; then
13026
13027 cat >>confdefs.h <<\_ACEOF
13028 #define USE_XIM 1
13029 _ACEOF
13030
13031 fi
13032
13033
13034 if test "${HAVE_XIM}" != "no"; then
13035 late_CFLAGS=$CFLAGS
13036 if test "$GCC" = yes; then
13037 CFLAGS="$CFLAGS --pedantic-errors"
13038 fi
13039 cat >conftest.$ac_ext <<_ACEOF
13040 /* confdefs.h. */
13041 _ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13045
13046 #include <X11/Xlib.h>
13047 #include <X11/Xresource.h>
13048 int
13049 main ()
13050 {
13051 Display *display;
13052 XrmDatabase db;
13053 char *res_name;
13054 char *res_class;
13055 XIMProc callback;
13056 XPointer *client_data;
13057 #ifndef __GNUC__
13058 /* If we're not using GCC, it's probably not XFree86, and this is
13059 probably right, but we can't use something like --pedantic-errors. */
13060 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13061 char*, XIMProc, XPointer*);
13062 #endif
13063 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13064 client_data);
13065 ;
13066 return 0;
13067 }
13068 _ACEOF
13069 rm -f conftest.$ac_objext
13070 if { (ac_try="$ac_compile"
13071 case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13074 esac
13075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13076 $as_echo "$ac_try_echo") >&5
13077 (eval "$ac_compile") 2>conftest.er1
13078 ac_status=$?
13079 grep -v '^ *+' conftest.er1 >conftest.err
13080 rm -f conftest.er1
13081 cat conftest.err >&5
13082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); } && {
13084 test -z "$ac_c_werror_flag" ||
13085 test ! -s conftest.err
13086 } && test -s conftest.$ac_objext; then
13087 emacs_cv_arg6_star=yes
13088 else
13089 $as_echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.$ac_ext >&5
13091
13092
13093 fi
13094
13095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13096
13097 if test "$emacs_cv_arg6_star" = yes; then
13098 cat >>confdefs.h <<\_ACEOF
13099 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13100 _ACEOF
13101
13102 else
13103 cat >>confdefs.h <<\_ACEOF
13104 #define XRegisterIMInstantiateCallback_arg6 XPointer
13105 _ACEOF
13106
13107 fi
13108 CFLAGS=$late_CFLAGS
13109 fi
13110
13111 ### Start of font-backend (under any platform) section.
13112 # (nothing here yet -- this is a placeholder)
13113 ### End of font-backend (under any platform) section.
13114
13115 ### Start of font-backend (under X11) section.
13116 if test "${HAVE_X11}" = "yes"; then
13117
13118 succeeded=no
13119
13120 # Extract the first word of "pkg-config", so it can be a program name with args.
13121 set dummy pkg-config; ac_word=$2
13122 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13123 $as_echo_n "checking for $ac_word... " >&6; }
13124 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13125 $as_echo_n "(cached) " >&6
13126 else
13127 case $PKG_CONFIG in
13128 [\\/]* | ?:[\\/]*)
13129 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13130 ;;
13131 *)
13132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13133 for as_dir in $PATH
13134 do
13135 IFS=$as_save_IFS
13136 test -z "$as_dir" && as_dir=.
13137 for ac_exec_ext in '' $ac_executable_extensions; do
13138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13139 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13140 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13141 break 2
13142 fi
13143 done
13144 done
13145 IFS=$as_save_IFS
13146
13147 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13148 ;;
13149 esac
13150 fi
13151 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13152 if test -n "$PKG_CONFIG"; then
13153 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13154 $as_echo "$PKG_CONFIG" >&6; }
13155 else
13156 { $as_echo "$as_me:$LINENO: result: no" >&5
13157 $as_echo "no" >&6; }
13158 fi
13159
13160
13161
13162 if test "$PKG_CONFIG" = "no" ; then
13163 HAVE_FC=no
13164 else
13165 PKG_CONFIG_MIN_VERSION=0.9.0
13166 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13167 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13168 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13169
13170 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13171 { $as_echo "$as_me:$LINENO: result: yes" >&5
13172 $as_echo "yes" >&6; }
13173 succeeded=yes
13174
13175 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13176 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13177 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13178 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13179 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13180
13181 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13182 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13183 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13184 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13185 $as_echo "$FONTCONFIG_LIBS" >&6; }
13186 else
13187 { $as_echo "$as_me:$LINENO: result: no" >&5
13188 $as_echo "no" >&6; }
13189 FONTCONFIG_CFLAGS=""
13190 FONTCONFIG_LIBS=""
13191 ## If we have a custom action on failure, don't print errors, but
13192 ## do set a variable so people can do so.
13193 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13194
13195 fi
13196
13197
13198
13199 else
13200 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13201 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13202 fi
13203 fi
13204
13205 if test $succeeded = yes; then
13206 HAVE_FC=yes
13207 else
13208 HAVE_FC=no
13209 fi
13210
13211
13212 ## Use -lXft if available, unless `--with-xft=no'.
13213 HAVE_XFT=maybe
13214 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13215 with_xft="no";
13216 fi
13217 if test "x${with_xft}" != "xno"; then
13218
13219
13220 succeeded=no
13221
13222 # Extract the first word of "pkg-config", so it can be a program name with args.
13223 set dummy pkg-config; ac_word=$2
13224 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13225 $as_echo_n "checking for $ac_word... " >&6; }
13226 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13227 $as_echo_n "(cached) " >&6
13228 else
13229 case $PKG_CONFIG in
13230 [\\/]* | ?:[\\/]*)
13231 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13232 ;;
13233 *)
13234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235 for as_dir in $PATH
13236 do
13237 IFS=$as_save_IFS
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13241 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13243 break 2
13244 fi
13245 done
13246 done
13247 IFS=$as_save_IFS
13248
13249 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13250 ;;
13251 esac
13252 fi
13253 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13254 if test -n "$PKG_CONFIG"; then
13255 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13256 $as_echo "$PKG_CONFIG" >&6; }
13257 else
13258 { $as_echo "$as_me:$LINENO: result: no" >&5
13259 $as_echo "no" >&6; }
13260 fi
13261
13262
13263
13264 if test "$PKG_CONFIG" = "no" ; then
13265 HAVE_XFT=no
13266 else
13267 PKG_CONFIG_MIN_VERSION=0.9.0
13268 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13269 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13270 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13271
13272 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13273 { $as_echo "$as_me:$LINENO: result: yes" >&5
13274 $as_echo "yes" >&6; }
13275 succeeded=yes
13276
13277 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13278 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13279 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13280 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13281 $as_echo "$XFT_CFLAGS" >&6; }
13282
13283 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13284 $as_echo_n "checking XFT_LIBS... " >&6; }
13285 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13286 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13287 $as_echo "$XFT_LIBS" >&6; }
13288 else
13289 { $as_echo "$as_me:$LINENO: result: no" >&5
13290 $as_echo "no" >&6; }
13291 XFT_CFLAGS=""
13292 XFT_LIBS=""
13293 ## If we have a custom action on failure, don't print errors, but
13294 ## do set a variable so people can do so.
13295 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13296
13297 fi
13298
13299
13300
13301 else
13302 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13303 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13304 fi
13305 fi
13306
13307 if test $succeeded = yes; then
13308 :
13309 else
13310 HAVE_XFT=no
13311 fi
13312
13313 if test "$HAVE_XFT" != no; then
13314 OLD_CPPFLAGS="$CPPFLAGS"
13315 OLD_CFLAGS="$CFLAGS"
13316 OLD_LIBS="$LIBS"
13317 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13318 CFLAGS="$CFLAGS $XFT_CFLAGS"
13319 LIBS="$XFT_LIBS $LIBS"
13320 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13321 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13322 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13323 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13324 $as_echo_n "(cached) " >&6
13325 fi
13326 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13327 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13328 else
13329 # Is the header compilable?
13330 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13331 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13332 cat >conftest.$ac_ext <<_ACEOF
13333 /* confdefs.h. */
13334 _ACEOF
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h. */
13338 $ac_includes_default
13339 #include <X11/Xft/Xft.h>
13340 _ACEOF
13341 rm -f conftest.$ac_objext
13342 if { (ac_try="$ac_compile"
13343 case "(($ac_try" in
13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345 *) ac_try_echo=$ac_try;;
13346 esac
13347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13348 $as_echo "$ac_try_echo") >&5
13349 (eval "$ac_compile") 2>conftest.er1
13350 ac_status=$?
13351 grep -v '^ *+' conftest.er1 >conftest.err
13352 rm -f conftest.er1
13353 cat conftest.err >&5
13354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); } && {
13356 test -z "$ac_c_werror_flag" ||
13357 test ! -s conftest.err
13358 } && test -s conftest.$ac_objext; then
13359 ac_header_compiler=yes
13360 else
13361 $as_echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13363
13364 ac_header_compiler=no
13365 fi
13366
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13369 $as_echo "$ac_header_compiler" >&6; }
13370
13371 # Is the header present?
13372 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13373 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13374 cat >conftest.$ac_ext <<_ACEOF
13375 /* confdefs.h. */
13376 _ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h. */
13380 #include <X11/Xft/Xft.h>
13381 _ACEOF
13382 if { (ac_try="$ac_cpp conftest.$ac_ext"
13383 case "(($ac_try" in
13384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13385 *) ac_try_echo=$ac_try;;
13386 esac
13387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13388 $as_echo "$ac_try_echo") >&5
13389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13390 ac_status=$?
13391 grep -v '^ *+' conftest.er1 >conftest.err
13392 rm -f conftest.er1
13393 cat conftest.err >&5
13394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); } >/dev/null && {
13396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13397 test ! -s conftest.err
13398 }; then
13399 ac_header_preproc=yes
13400 else
13401 $as_echo "$as_me: failed program was:" >&5
13402 sed 's/^/| /' conftest.$ac_ext >&5
13403
13404 ac_header_preproc=no
13405 fi
13406
13407 rm -f conftest.err conftest.$ac_ext
13408 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13409 $as_echo "$ac_header_preproc" >&6; }
13410
13411 # So? What about this header?
13412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13413 yes:no: )
13414 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13415 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13416 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13417 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13418 ac_header_preproc=yes
13419 ;;
13420 no:yes:* )
13421 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13422 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13423 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13424 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13425 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13426 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13427 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13428 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13429 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13430 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13431 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13432 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13433
13434 ;;
13435 esac
13436 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13437 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13438 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13439 $as_echo_n "(cached) " >&6
13440 else
13441 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13442 fi
13443 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13444 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13445
13446 fi
13447 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13448 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13449 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13450 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13451 $as_echo_n "(cached) " >&6
13452 else
13453 ac_check_lib_save_LIBS=$LIBS
13454 LIBS="-lXft $XFT_LIBS $LIBS"
13455 cat >conftest.$ac_ext <<_ACEOF
13456 /* confdefs.h. */
13457 _ACEOF
13458 cat confdefs.h >>conftest.$ac_ext
13459 cat >>conftest.$ac_ext <<_ACEOF
13460 /* end confdefs.h. */
13461
13462 /* Override any GCC internal prototype to avoid an error.
13463 Use char because int might match the return type of a GCC
13464 builtin and then its argument prototype would still apply. */
13465 #ifdef __cplusplus
13466 extern "C"
13467 #endif
13468 char XftFontOpen ();
13469 int
13470 main ()
13471 {
13472 return XftFontOpen ();
13473 ;
13474 return 0;
13475 }
13476 _ACEOF
13477 rm -f conftest.$ac_objext conftest$ac_exeext
13478 if { (ac_try="$ac_link"
13479 case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13482 esac
13483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13484 $as_echo "$ac_try_echo") >&5
13485 (eval "$ac_link") 2>conftest.er1
13486 ac_status=$?
13487 grep -v '^ *+' conftest.er1 >conftest.err
13488 rm -f conftest.er1
13489 cat conftest.err >&5
13490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } && {
13492 test -z "$ac_c_werror_flag" ||
13493 test ! -s conftest.err
13494 } && test -s conftest$ac_exeext && {
13495 test "$cross_compiling" = yes ||
13496 $as_test_x conftest$ac_exeext
13497 }; then
13498 ac_cv_lib_Xft_XftFontOpen=yes
13499 else
13500 $as_echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13502
13503 ac_cv_lib_Xft_XftFontOpen=no
13504 fi
13505
13506 rm -rf conftest.dSYM
13507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13508 conftest$ac_exeext conftest.$ac_ext
13509 LIBS=$ac_check_lib_save_LIBS
13510 fi
13511 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13512 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13513 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13514 HAVE_XFT=yes
13515 fi
13516
13517 fi
13518
13519
13520
13521 if test "${HAVE_XFT}" = "yes"; then
13522
13523 cat >>confdefs.h <<\_ACEOF
13524 #define HAVE_XFT 1
13525 _ACEOF
13526
13527
13528 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13529 else
13530 CPPFLAGS="$OLD_CPPFLAGS"
13531 CFLAGS="$OLD_CFLAGS"
13532 LIBS="$OLD_LIBS"
13533 fi # "${HAVE_XFT}" = "yes"
13534 fi # "$HAVE_XFT" != no
13535 fi # "x${with_xft}" != "xno"
13536
13537 if test "$HAVE_XFT" != "yes"; then
13538 HAVE_XFT=no
13539 fi
13540
13541
13542 HAVE_FREETYPE=no
13543 ## We used to allow building with FreeType and without Xft.
13544 ## However, the ftx font backend driver is not in good shape.
13545 if test "${HAVE_XFT}" = "yes"; then
13546 HAVE_FREETYPE=yes
13547 FONTCONFIG_CFLAGS=
13548 FONTCONFIG_LIBS=
13549 fi
13550
13551 HAVE_LIBOTF=no
13552 if test "${HAVE_FREETYPE}" = "yes"; then
13553
13554 cat >>confdefs.h <<\_ACEOF
13555 #define HAVE_FREETYPE 1
13556 _ACEOF
13557
13558 if test "${with_libotf}" != "no"; then
13559
13560 succeeded=no
13561
13562 # Extract the first word of "pkg-config", so it can be a program name with args.
13563 set dummy pkg-config; ac_word=$2
13564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13565 $as_echo_n "checking for $ac_word... " >&6; }
13566 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13567 $as_echo_n "(cached) " >&6
13568 else
13569 case $PKG_CONFIG in
13570 [\\/]* | ?:[\\/]*)
13571 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13572 ;;
13573 *)
13574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13575 for as_dir in $PATH
13576 do
13577 IFS=$as_save_IFS
13578 test -z "$as_dir" && as_dir=.
13579 for ac_exec_ext in '' $ac_executable_extensions; do
13580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13581 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13582 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13583 break 2
13584 fi
13585 done
13586 done
13587 IFS=$as_save_IFS
13588
13589 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13590 ;;
13591 esac
13592 fi
13593 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13594 if test -n "$PKG_CONFIG"; then
13595 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13596 $as_echo "$PKG_CONFIG" >&6; }
13597 else
13598 { $as_echo "$as_me:$LINENO: result: no" >&5
13599 $as_echo "no" >&6; }
13600 fi
13601
13602
13603
13604 if test "$PKG_CONFIG" = "no" ; then
13605 HAVE_LIBOTF=no
13606 else
13607 PKG_CONFIG_MIN_VERSION=0.9.0
13608 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13609 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
13610 $as_echo_n "checking for libotf... " >&6; }
13611
13612 if $PKG_CONFIG --exists "libotf" 2>&5; then
13613 { $as_echo "$as_me:$LINENO: result: yes" >&5
13614 $as_echo "yes" >&6; }
13615 succeeded=yes
13616
13617 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13618 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
13619 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13620 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13621 $as_echo "$LIBOTF_CFLAGS" >&6; }
13622
13623 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13624 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
13625 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13626 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13627 $as_echo "$LIBOTF_LIBS" >&6; }
13628 else
13629 { $as_echo "$as_me:$LINENO: result: no" >&5
13630 $as_echo "no" >&6; }
13631 LIBOTF_CFLAGS=""
13632 LIBOTF_LIBS=""
13633 ## If we have a custom action on failure, don't print errors, but
13634 ## do set a variable so people can do so.
13635 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13636
13637 fi
13638
13639
13640
13641 else
13642 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13643 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13644 fi
13645 fi
13646
13647 if test $succeeded = yes; then
13648 HAVE_LIBOTF=yes
13649 else
13650 HAVE_LIBOTF=no
13651 fi
13652
13653 if test "$HAVE_LIBOTF" = "yes"; then
13654
13655 cat >>confdefs.h <<\_ACEOF
13656 #define HAVE_LIBOTF 1
13657 _ACEOF
13658
13659 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
13660 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13661 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13662 $as_echo_n "(cached) " >&6
13663 else
13664 ac_check_lib_save_LIBS=$LIBS
13665 LIBS="-lotf $LIBS"
13666 cat >conftest.$ac_ext <<_ACEOF
13667 /* confdefs.h. */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672
13673 /* Override any GCC internal prototype to avoid an error.
13674 Use char because int might match the return type of a GCC
13675 builtin and then its argument prototype would still apply. */
13676 #ifdef __cplusplus
13677 extern "C"
13678 #endif
13679 char OTF_get_variation_glyphs ();
13680 int
13681 main ()
13682 {
13683 return OTF_get_variation_glyphs ();
13684 ;
13685 return 0;
13686 }
13687 _ACEOF
13688 rm -f conftest.$ac_objext conftest$ac_exeext
13689 if { (ac_try="$ac_link"
13690 case "(($ac_try" in
13691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692 *) ac_try_echo=$ac_try;;
13693 esac
13694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13695 $as_echo "$ac_try_echo") >&5
13696 (eval "$ac_link") 2>conftest.er1
13697 ac_status=$?
13698 grep -v '^ *+' conftest.er1 >conftest.err
13699 rm -f conftest.er1
13700 cat conftest.err >&5
13701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } && {
13703 test -z "$ac_c_werror_flag" ||
13704 test ! -s conftest.err
13705 } && test -s conftest$ac_exeext && {
13706 test "$cross_compiling" = yes ||
13707 $as_test_x conftest$ac_exeext
13708 }; then
13709 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13710 else
13711 $as_echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13713
13714 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13715 fi
13716
13717 rm -rf conftest.dSYM
13718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13719 conftest$ac_exeext conftest.$ac_ext
13720 LIBS=$ac_check_lib_save_LIBS
13721 fi
13722 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13723 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13724 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13725 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13726 else
13727 HAVE_OTF_GET_VARIATION_GLYPHS=no
13728 fi
13729
13730 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13731
13732 cat >>confdefs.h <<\_ACEOF
13733 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13734 _ACEOF
13735
13736 fi
13737 fi
13738 fi
13739 fi
13740
13741 HAVE_M17N_FLT=no
13742 if test "${HAVE_LIBOTF}" = yes; then
13743 if test "${with_m17n_flt}" != "no"; then
13744
13745 succeeded=no
13746
13747 # Extract the first word of "pkg-config", so it can be a program name with args.
13748 set dummy pkg-config; ac_word=$2
13749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13750 $as_echo_n "checking for $ac_word... " >&6; }
13751 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13752 $as_echo_n "(cached) " >&6
13753 else
13754 case $PKG_CONFIG in
13755 [\\/]* | ?:[\\/]*)
13756 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13757 ;;
13758 *)
13759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13760 for as_dir in $PATH
13761 do
13762 IFS=$as_save_IFS
13763 test -z "$as_dir" && as_dir=.
13764 for ac_exec_ext in '' $ac_executable_extensions; do
13765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13766 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13767 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13768 break 2
13769 fi
13770 done
13771 done
13772 IFS=$as_save_IFS
13773
13774 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13775 ;;
13776 esac
13777 fi
13778 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13779 if test -n "$PKG_CONFIG"; then
13780 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13781 $as_echo "$PKG_CONFIG" >&6; }
13782 else
13783 { $as_echo "$as_me:$LINENO: result: no" >&5
13784 $as_echo "no" >&6; }
13785 fi
13786
13787
13788
13789 if test "$PKG_CONFIG" = "no" ; then
13790 HAVE_M17N_FLT=no
13791 else
13792 PKG_CONFIG_MIN_VERSION=0.9.0
13793 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13794 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
13795 $as_echo_n "checking for m17n-flt... " >&6; }
13796
13797 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13798 { $as_echo "$as_me:$LINENO: result: yes" >&5
13799 $as_echo "yes" >&6; }
13800 succeeded=yes
13801
13802 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13803 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
13804 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13805 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13806 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13807
13808 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13809 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
13810 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13811 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13812 $as_echo "$M17N_FLT_LIBS" >&6; }
13813 else
13814 { $as_echo "$as_me:$LINENO: result: no" >&5
13815 $as_echo "no" >&6; }
13816 M17N_FLT_CFLAGS=""
13817 M17N_FLT_LIBS=""
13818 ## If we have a custom action on failure, don't print errors, but
13819 ## do set a variable so people can do so.
13820 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13821
13822 fi
13823
13824
13825
13826 else
13827 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13828 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13829 fi
13830 fi
13831
13832 if test $succeeded = yes; then
13833 HAVE_M17N_FLT=yes
13834 else
13835 HAVE_M17N_FLT=no
13836 fi
13837
13838 if test "$HAVE_M17N_FLT" = "yes"; then
13839
13840 cat >>confdefs.h <<\_ACEOF
13841 #define HAVE_M17N_FLT 1
13842 _ACEOF
13843
13844 fi
13845 fi
13846 fi
13847 else
13848 HAVE_XFT=no
13849 HAVE_FREETYPE=no
13850 HAVE_LIBOTF=no
13851 HAVE_M17N_FLT=no
13852 fi
13853 ### End of font-backend (under X11) section.
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864 ### Use -lXpm if available, unless `--with-xpm=no'.
13865 HAVE_XPM=no
13866 if test "${HAVE_X11}" = "yes"; then
13867 if test "${with_xpm}" != "no"; then
13868 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13869 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13870 $as_echo_n "checking for X11/xpm.h... " >&6; }
13871 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13872 $as_echo_n "(cached) " >&6
13873 fi
13874 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13875 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
13876 else
13877 # Is the header compilable?
13878 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13879 $as_echo_n "checking X11/xpm.h usability... " >&6; }
13880 cat >conftest.$ac_ext <<_ACEOF
13881 /* confdefs.h. */
13882 _ACEOF
13883 cat confdefs.h >>conftest.$ac_ext
13884 cat >>conftest.$ac_ext <<_ACEOF
13885 /* end confdefs.h. */
13886 $ac_includes_default
13887 #include <X11/xpm.h>
13888 _ACEOF
13889 rm -f conftest.$ac_objext
13890 if { (ac_try="$ac_compile"
13891 case "(($ac_try" in
13892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893 *) ac_try_echo=$ac_try;;
13894 esac
13895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13896 $as_echo "$ac_try_echo") >&5
13897 (eval "$ac_compile") 2>conftest.er1
13898 ac_status=$?
13899 grep -v '^ *+' conftest.er1 >conftest.err
13900 rm -f conftest.er1
13901 cat conftest.err >&5
13902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } && {
13904 test -z "$ac_c_werror_flag" ||
13905 test ! -s conftest.err
13906 } && test -s conftest.$ac_objext; then
13907 ac_header_compiler=yes
13908 else
13909 $as_echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13911
13912 ac_header_compiler=no
13913 fi
13914
13915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13916 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13917 $as_echo "$ac_header_compiler" >&6; }
13918
13919 # Is the header present?
13920 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13921 $as_echo_n "checking X11/xpm.h presence... " >&6; }
13922 cat >conftest.$ac_ext <<_ACEOF
13923 /* confdefs.h. */
13924 _ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h. */
13928 #include <X11/xpm.h>
13929 _ACEOF
13930 if { (ac_try="$ac_cpp conftest.$ac_ext"
13931 case "(($ac_try" in
13932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13934 esac
13935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13936 $as_echo "$ac_try_echo") >&5
13937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13938 ac_status=$?
13939 grep -v '^ *+' conftest.er1 >conftest.err
13940 rm -f conftest.er1
13941 cat conftest.err >&5
13942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } >/dev/null && {
13944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13945 test ! -s conftest.err
13946 }; then
13947 ac_header_preproc=yes
13948 else
13949 $as_echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13951
13952 ac_header_preproc=no
13953 fi
13954
13955 rm -f conftest.err conftest.$ac_ext
13956 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13957 $as_echo "$ac_header_preproc" >&6; }
13958
13959 # So? What about this header?
13960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13961 yes:no: )
13962 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13963 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13964 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13965 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13966 ac_header_preproc=yes
13967 ;;
13968 no:yes:* )
13969 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13970 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13971 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13972 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13973 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13974 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13975 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13976 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13977 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13978 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13979 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13980 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13981
13982 ;;
13983 esac
13984 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13985 $as_echo_n "checking for X11/xpm.h... " >&6; }
13986 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13987 $as_echo_n "(cached) " >&6
13988 else
13989 ac_cv_header_X11_xpm_h=$ac_header_preproc
13990 fi
13991 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13992 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
13993
13994 fi
13995 if test $ac_cv_header_X11_xpm_h = yes; then
13996 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13997 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13998 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13999 $as_echo_n "(cached) " >&6
14000 else
14001 ac_check_lib_save_LIBS=$LIBS
14002 LIBS="-lXpm -lX11 $LIBS"
14003 cat >conftest.$ac_ext <<_ACEOF
14004 /* confdefs.h. */
14005 _ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14009
14010 /* Override any GCC internal prototype to avoid an error.
14011 Use char because int might match the return type of a GCC
14012 builtin and then its argument prototype would still apply. */
14013 #ifdef __cplusplus
14014 extern "C"
14015 #endif
14016 char XpmReadFileToPixmap ();
14017 int
14018 main ()
14019 {
14020 return XpmReadFileToPixmap ();
14021 ;
14022 return 0;
14023 }
14024 _ACEOF
14025 rm -f conftest.$ac_objext conftest$ac_exeext
14026 if { (ac_try="$ac_link"
14027 case "(($ac_try" in
14028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14029 *) ac_try_echo=$ac_try;;
14030 esac
14031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14032 $as_echo "$ac_try_echo") >&5
14033 (eval "$ac_link") 2>conftest.er1
14034 ac_status=$?
14035 grep -v '^ *+' conftest.er1 >conftest.err
14036 rm -f conftest.er1
14037 cat conftest.err >&5
14038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } && {
14040 test -z "$ac_c_werror_flag" ||
14041 test ! -s conftest.err
14042 } && test -s conftest$ac_exeext && {
14043 test "$cross_compiling" = yes ||
14044 $as_test_x conftest$ac_exeext
14045 }; then
14046 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14047 else
14048 $as_echo "$as_me: failed program was:" >&5
14049 sed 's/^/| /' conftest.$ac_ext >&5
14050
14051 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14052 fi
14053
14054 rm -rf conftest.dSYM
14055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14056 conftest$ac_exeext conftest.$ac_ext
14057 LIBS=$ac_check_lib_save_LIBS
14058 fi
14059 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14060 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14061 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14062 HAVE_XPM=yes
14063 fi
14064
14065 fi
14066
14067
14068 if test "${HAVE_XPM}" = "yes"; then
14069 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14070 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14071 cat >conftest.$ac_ext <<_ACEOF
14072 /* confdefs.h. */
14073 _ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h. */
14077 #include "X11/xpm.h"
14078 #ifndef XpmReturnAllocPixels
14079 no_return_alloc_pixels
14080 #endif
14081
14082 _ACEOF
14083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14084 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14085 HAVE_XPM=no
14086 else
14087 HAVE_XPM=yes
14088 fi
14089 rm -f conftest*
14090
14091
14092 if test "${HAVE_XPM}" = "yes"; then
14093 { $as_echo "$as_me:$LINENO: result: yes" >&5
14094 $as_echo "yes" >&6; }
14095 else
14096 { $as_echo "$as_me:$LINENO: result: no" >&5
14097 $as_echo "no" >&6; }
14098 fi
14099 fi
14100 fi
14101
14102 if test "${HAVE_XPM}" = "yes"; then
14103
14104 cat >>confdefs.h <<\_ACEOF
14105 #define HAVE_XPM 1
14106 _ACEOF
14107
14108 fi
14109 fi
14110
14111 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14112 HAVE_JPEG=no
14113 if test "${HAVE_X11}" = "yes"; then
14114 if test "${with_jpeg}" != "no"; then
14115 if test "${ac_cv_header_jerror_h+set}" = set; then
14116 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14117 $as_echo_n "checking for jerror.h... " >&6; }
14118 if test "${ac_cv_header_jerror_h+set}" = set; then
14119 $as_echo_n "(cached) " >&6
14120 fi
14121 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14122 $as_echo "$ac_cv_header_jerror_h" >&6; }
14123 else
14124 # Is the header compilable?
14125 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14126 $as_echo_n "checking jerror.h usability... " >&6; }
14127 cat >conftest.$ac_ext <<_ACEOF
14128 /* confdefs.h. */
14129 _ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14133 $ac_includes_default
14134 #include <jerror.h>
14135 _ACEOF
14136 rm -f conftest.$ac_objext
14137 if { (ac_try="$ac_compile"
14138 case "(($ac_try" in
14139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140 *) ac_try_echo=$ac_try;;
14141 esac
14142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14143 $as_echo "$ac_try_echo") >&5
14144 (eval "$ac_compile") 2>conftest.er1
14145 ac_status=$?
14146 grep -v '^ *+' conftest.er1 >conftest.err
14147 rm -f conftest.er1
14148 cat conftest.err >&5
14149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } && {
14151 test -z "$ac_c_werror_flag" ||
14152 test ! -s conftest.err
14153 } && test -s conftest.$ac_objext; then
14154 ac_header_compiler=yes
14155 else
14156 $as_echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14158
14159 ac_header_compiler=no
14160 fi
14161
14162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14163 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14164 $as_echo "$ac_header_compiler" >&6; }
14165
14166 # Is the header present?
14167 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14168 $as_echo_n "checking jerror.h presence... " >&6; }
14169 cat >conftest.$ac_ext <<_ACEOF
14170 /* confdefs.h. */
14171 _ACEOF
14172 cat confdefs.h >>conftest.$ac_ext
14173 cat >>conftest.$ac_ext <<_ACEOF
14174 /* end confdefs.h. */
14175 #include <jerror.h>
14176 _ACEOF
14177 if { (ac_try="$ac_cpp conftest.$ac_ext"
14178 case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14181 esac
14182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14183 $as_echo "$ac_try_echo") >&5
14184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14185 ac_status=$?
14186 grep -v '^ *+' conftest.er1 >conftest.err
14187 rm -f conftest.er1
14188 cat conftest.err >&5
14189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } >/dev/null && {
14191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14192 test ! -s conftest.err
14193 }; then
14194 ac_header_preproc=yes
14195 else
14196 $as_echo "$as_me: failed program was:" >&5
14197 sed 's/^/| /' conftest.$ac_ext >&5
14198
14199 ac_header_preproc=no
14200 fi
14201
14202 rm -f conftest.err conftest.$ac_ext
14203 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14204 $as_echo "$ac_header_preproc" >&6; }
14205
14206 # So? What about this header?
14207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14208 yes:no: )
14209 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14210 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14211 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14212 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14213 ac_header_preproc=yes
14214 ;;
14215 no:yes:* )
14216 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14217 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14218 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14219 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14220 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14221 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14222 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14223 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14224 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14225 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14226 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14227 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14228
14229 ;;
14230 esac
14231 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14232 $as_echo_n "checking for jerror.h... " >&6; }
14233 if test "${ac_cv_header_jerror_h+set}" = set; then
14234 $as_echo_n "(cached) " >&6
14235 else
14236 ac_cv_header_jerror_h=$ac_header_preproc
14237 fi
14238 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14239 $as_echo "$ac_cv_header_jerror_h" >&6; }
14240
14241 fi
14242 if test $ac_cv_header_jerror_h = yes; then
14243 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14244 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14245 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14246 $as_echo_n "(cached) " >&6
14247 else
14248 ac_check_lib_save_LIBS=$LIBS
14249 LIBS="-ljpeg $LIBS"
14250 cat >conftest.$ac_ext <<_ACEOF
14251 /* confdefs.h. */
14252 _ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h. */
14256
14257 /* Override any GCC internal prototype to avoid an error.
14258 Use char because int might match the return type of a GCC
14259 builtin and then its argument prototype would still apply. */
14260 #ifdef __cplusplus
14261 extern "C"
14262 #endif
14263 char jpeg_destroy_compress ();
14264 int
14265 main ()
14266 {
14267 return jpeg_destroy_compress ();
14268 ;
14269 return 0;
14270 }
14271 _ACEOF
14272 rm -f conftest.$ac_objext conftest$ac_exeext
14273 if { (ac_try="$ac_link"
14274 case "(($ac_try" in
14275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276 *) ac_try_echo=$ac_try;;
14277 esac
14278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14279 $as_echo "$ac_try_echo") >&5
14280 (eval "$ac_link") 2>conftest.er1
14281 ac_status=$?
14282 grep -v '^ *+' conftest.er1 >conftest.err
14283 rm -f conftest.er1
14284 cat conftest.err >&5
14285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } && {
14287 test -z "$ac_c_werror_flag" ||
14288 test ! -s conftest.err
14289 } && test -s conftest$ac_exeext && {
14290 test "$cross_compiling" = yes ||
14291 $as_test_x conftest$ac_exeext
14292 }; then
14293 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14294 else
14295 $as_echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14297
14298 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14299 fi
14300
14301 rm -rf conftest.dSYM
14302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14303 conftest$ac_exeext conftest.$ac_ext
14304 LIBS=$ac_check_lib_save_LIBS
14305 fi
14306 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14307 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14308 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14309 HAVE_JPEG=yes
14310 fi
14311
14312 fi
14313
14314
14315 fi
14316
14317
14318 if test "${HAVE_JPEG}" = "yes"; then
14319 cat >>confdefs.h <<\_ACEOF
14320 #define HAVE_JPEG 1
14321 _ACEOF
14322
14323 cat >conftest.$ac_ext <<_ACEOF
14324 /* confdefs.h. */
14325 _ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h. */
14329 #include <jpeglib.h>
14330 version=JPEG_LIB_VERSION
14331
14332 _ACEOF
14333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14334 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14335 cat >>confdefs.h <<\_ACEOF
14336 #define HAVE_JPEG 1
14337 _ACEOF
14338
14339 else
14340 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14341 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14342 HAVE_JPEG=no
14343 fi
14344 rm -f conftest*
14345
14346 fi
14347 fi
14348
14349 ### Use -lpng if available, unless `--with-png=no'.
14350 HAVE_PNG=no
14351 if test "${HAVE_X11}" = "yes"; then
14352 if test "${with_png}" != "no"; then
14353 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14354 # in /usr/include/libpng.
14355
14356
14357 for ac_header in png.h libpng/png.h
14358 do
14359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14361 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14362 $as_echo_n "checking for $ac_header... " >&6; }
14363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14364 $as_echo_n "(cached) " >&6
14365 fi
14366 ac_res=`eval 'as_val=${'$as_ac_Header'}
14367 $as_echo "$as_val"'`
14368 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14369 $as_echo "$ac_res" >&6; }
14370 else
14371 # Is the header compilable?
14372 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14373 $as_echo_n "checking $ac_header usability... " >&6; }
14374 cat >conftest.$ac_ext <<_ACEOF
14375 /* confdefs.h. */
14376 _ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14380 $ac_includes_default
14381 #include <$ac_header>
14382 _ACEOF
14383 rm -f conftest.$ac_objext
14384 if { (ac_try="$ac_compile"
14385 case "(($ac_try" in
14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387 *) ac_try_echo=$ac_try;;
14388 esac
14389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14390 $as_echo "$ac_try_echo") >&5
14391 (eval "$ac_compile") 2>conftest.er1
14392 ac_status=$?
14393 grep -v '^ *+' conftest.er1 >conftest.err
14394 rm -f conftest.er1
14395 cat conftest.err >&5
14396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); } && {
14398 test -z "$ac_c_werror_flag" ||
14399 test ! -s conftest.err
14400 } && test -s conftest.$ac_objext; then
14401 ac_header_compiler=yes
14402 else
14403 $as_echo "$as_me: failed program was:" >&5
14404 sed 's/^/| /' conftest.$ac_ext >&5
14405
14406 ac_header_compiler=no
14407 fi
14408
14409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14410 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14411 $as_echo "$ac_header_compiler" >&6; }
14412
14413 # Is the header present?
14414 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14415 $as_echo_n "checking $ac_header presence... " >&6; }
14416 cat >conftest.$ac_ext <<_ACEOF
14417 /* confdefs.h. */
14418 _ACEOF
14419 cat confdefs.h >>conftest.$ac_ext
14420 cat >>conftest.$ac_ext <<_ACEOF
14421 /* end confdefs.h. */
14422 #include <$ac_header>
14423 _ACEOF
14424 if { (ac_try="$ac_cpp conftest.$ac_ext"
14425 case "(($ac_try" in
14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427 *) ac_try_echo=$ac_try;;
14428 esac
14429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14430 $as_echo "$ac_try_echo") >&5
14431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14432 ac_status=$?
14433 grep -v '^ *+' conftest.er1 >conftest.err
14434 rm -f conftest.er1
14435 cat conftest.err >&5
14436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } >/dev/null && {
14438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14439 test ! -s conftest.err
14440 }; then
14441 ac_header_preproc=yes
14442 else
14443 $as_echo "$as_me: failed program was:" >&5
14444 sed 's/^/| /' conftest.$ac_ext >&5
14445
14446 ac_header_preproc=no
14447 fi
14448
14449 rm -f conftest.err conftest.$ac_ext
14450 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14451 $as_echo "$ac_header_preproc" >&6; }
14452
14453 # So? What about this header?
14454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14455 yes:no: )
14456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14457 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14459 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14460 ac_header_preproc=yes
14461 ;;
14462 no:yes:* )
14463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14464 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14466 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14468 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14470 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14472 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14474 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14475
14476 ;;
14477 esac
14478 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14479 $as_echo_n "checking for $ac_header... " >&6; }
14480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14481 $as_echo_n "(cached) " >&6
14482 else
14483 eval "$as_ac_Header=\$ac_header_preproc"
14484 fi
14485 ac_res=`eval 'as_val=${'$as_ac_Header'}
14486 $as_echo "$as_val"'`
14487 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14488 $as_echo "$ac_res" >&6; }
14489
14490 fi
14491 if test `eval 'as_val=${'$as_ac_Header'}
14492 $as_echo "$as_val"'` = yes; then
14493 cat >>confdefs.h <<_ACEOF
14494 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14495 _ACEOF
14496
14497 fi
14498
14499 done
14500
14501 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14502 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14503 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
14504 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14505 $as_echo_n "(cached) " >&6
14506 else
14507 ac_check_lib_save_LIBS=$LIBS
14508 LIBS="-lpng -lz -lm $LIBS"
14509 cat >conftest.$ac_ext <<_ACEOF
14510 /* confdefs.h. */
14511 _ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h. */
14515
14516 /* Override any GCC internal prototype to avoid an error.
14517 Use char because int might match the return type of a GCC
14518 builtin and then its argument prototype would still apply. */
14519 #ifdef __cplusplus
14520 extern "C"
14521 #endif
14522 char png_get_channels ();
14523 int
14524 main ()
14525 {
14526 return png_get_channels ();
14527 ;
14528 return 0;
14529 }
14530 _ACEOF
14531 rm -f conftest.$ac_objext conftest$ac_exeext
14532 if { (ac_try="$ac_link"
14533 case "(($ac_try" in
14534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14536 esac
14537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14538 $as_echo "$ac_try_echo") >&5
14539 (eval "$ac_link") 2>conftest.er1
14540 ac_status=$?
14541 grep -v '^ *+' conftest.er1 >conftest.err
14542 rm -f conftest.er1
14543 cat conftest.err >&5
14544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } && {
14546 test -z "$ac_c_werror_flag" ||
14547 test ! -s conftest.err
14548 } && test -s conftest$ac_exeext && {
14549 test "$cross_compiling" = yes ||
14550 $as_test_x conftest$ac_exeext
14551 }; then
14552 ac_cv_lib_png_png_get_channels=yes
14553 else
14554 $as_echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14556
14557 ac_cv_lib_png_png_get_channels=no
14558 fi
14559
14560 rm -rf conftest.dSYM
14561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14562 conftest$ac_exeext conftest.$ac_ext
14563 LIBS=$ac_check_lib_save_LIBS
14564 fi
14565 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14566 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14567 if test $ac_cv_lib_png_png_get_channels = yes; then
14568 HAVE_PNG=yes
14569 fi
14570
14571 fi
14572 fi
14573
14574 if test "${HAVE_PNG}" = "yes"; then
14575
14576 cat >>confdefs.h <<\_ACEOF
14577 #define HAVE_PNG 1
14578 _ACEOF
14579
14580 fi
14581 fi
14582
14583 ### Use -ltiff if available, unless `--with-tiff=no'.
14584 HAVE_TIFF=no
14585 if test "${HAVE_X11}" = "yes"; then
14586 if test "${with_tiff}" != "no"; then
14587 if test "${ac_cv_header_tiffio_h+set}" = set; then
14588 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14589 $as_echo_n "checking for tiffio.h... " >&6; }
14590 if test "${ac_cv_header_tiffio_h+set}" = set; then
14591 $as_echo_n "(cached) " >&6
14592 fi
14593 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14594 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14595 else
14596 # Is the header compilable?
14597 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14598 $as_echo_n "checking tiffio.h usability... " >&6; }
14599 cat >conftest.$ac_ext <<_ACEOF
14600 /* confdefs.h. */
14601 _ACEOF
14602 cat confdefs.h >>conftest.$ac_ext
14603 cat >>conftest.$ac_ext <<_ACEOF
14604 /* end confdefs.h. */
14605 $ac_includes_default
14606 #include <tiffio.h>
14607 _ACEOF
14608 rm -f conftest.$ac_objext
14609 if { (ac_try="$ac_compile"
14610 case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14613 esac
14614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14615 $as_echo "$ac_try_echo") >&5
14616 (eval "$ac_compile") 2>conftest.er1
14617 ac_status=$?
14618 grep -v '^ *+' conftest.er1 >conftest.err
14619 rm -f conftest.er1
14620 cat conftest.err >&5
14621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } && {
14623 test -z "$ac_c_werror_flag" ||
14624 test ! -s conftest.err
14625 } && test -s conftest.$ac_objext; then
14626 ac_header_compiler=yes
14627 else
14628 $as_echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14630
14631 ac_header_compiler=no
14632 fi
14633
14634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14635 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14636 $as_echo "$ac_header_compiler" >&6; }
14637
14638 # Is the header present?
14639 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14640 $as_echo_n "checking tiffio.h presence... " >&6; }
14641 cat >conftest.$ac_ext <<_ACEOF
14642 /* confdefs.h. */
14643 _ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h. */
14647 #include <tiffio.h>
14648 _ACEOF
14649 if { (ac_try="$ac_cpp conftest.$ac_ext"
14650 case "(($ac_try" in
14651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652 *) ac_try_echo=$ac_try;;
14653 esac
14654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14655 $as_echo "$ac_try_echo") >&5
14656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14657 ac_status=$?
14658 grep -v '^ *+' conftest.er1 >conftest.err
14659 rm -f conftest.er1
14660 cat conftest.err >&5
14661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); } >/dev/null && {
14663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14664 test ! -s conftest.err
14665 }; then
14666 ac_header_preproc=yes
14667 else
14668 $as_echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14670
14671 ac_header_preproc=no
14672 fi
14673
14674 rm -f conftest.err conftest.$ac_ext
14675 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14676 $as_echo "$ac_header_preproc" >&6; }
14677
14678 # So? What about this header?
14679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14680 yes:no: )
14681 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14682 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14683 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14684 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14685 ac_header_preproc=yes
14686 ;;
14687 no:yes:* )
14688 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14689 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14690 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14691 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14692 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14693 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14694 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14695 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14696 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14697 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14698 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14699 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14700
14701 ;;
14702 esac
14703 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14704 $as_echo_n "checking for tiffio.h... " >&6; }
14705 if test "${ac_cv_header_tiffio_h+set}" = set; then
14706 $as_echo_n "(cached) " >&6
14707 else
14708 ac_cv_header_tiffio_h=$ac_header_preproc
14709 fi
14710 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14711 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14712
14713 fi
14714 if test $ac_cv_header_tiffio_h = yes; then
14715 tifflibs="-lz -lm"
14716 # At least one tiff package requires the jpeg library.
14717 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14718 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14719 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
14720 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14721 $as_echo_n "(cached) " >&6
14722 else
14723 ac_check_lib_save_LIBS=$LIBS
14724 LIBS="-ltiff $tifflibs $LIBS"
14725 cat >conftest.$ac_ext <<_ACEOF
14726 /* confdefs.h. */
14727 _ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14731
14732 /* Override any GCC internal prototype to avoid an error.
14733 Use char because int might match the return type of a GCC
14734 builtin and then its argument prototype would still apply. */
14735 #ifdef __cplusplus
14736 extern "C"
14737 #endif
14738 char TIFFGetVersion ();
14739 int
14740 main ()
14741 {
14742 return TIFFGetVersion ();
14743 ;
14744 return 0;
14745 }
14746 _ACEOF
14747 rm -f conftest.$ac_objext conftest$ac_exeext
14748 if { (ac_try="$ac_link"
14749 case "(($ac_try" in
14750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751 *) ac_try_echo=$ac_try;;
14752 esac
14753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14754 $as_echo "$ac_try_echo") >&5
14755 (eval "$ac_link") 2>conftest.er1
14756 ac_status=$?
14757 grep -v '^ *+' conftest.er1 >conftest.err
14758 rm -f conftest.er1
14759 cat conftest.err >&5
14760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } && {
14762 test -z "$ac_c_werror_flag" ||
14763 test ! -s conftest.err
14764 } && test -s conftest$ac_exeext && {
14765 test "$cross_compiling" = yes ||
14766 $as_test_x conftest$ac_exeext
14767 }; then
14768 ac_cv_lib_tiff_TIFFGetVersion=yes
14769 else
14770 $as_echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14772
14773 ac_cv_lib_tiff_TIFFGetVersion=no
14774 fi
14775
14776 rm -rf conftest.dSYM
14777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14778 conftest$ac_exeext conftest.$ac_ext
14779 LIBS=$ac_check_lib_save_LIBS
14780 fi
14781 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14782 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14783 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14784 HAVE_TIFF=yes
14785 fi
14786
14787 fi
14788
14789
14790 fi
14791
14792 if test "${HAVE_TIFF}" = "yes"; then
14793
14794 cat >>confdefs.h <<\_ACEOF
14795 #define HAVE_TIFF 1
14796 _ACEOF
14797
14798 fi
14799 fi
14800
14801 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14802 HAVE_GIF=no
14803 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14804 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14805 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14806 $as_echo_n "checking for gif_lib.h... " >&6; }
14807 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14808 $as_echo_n "(cached) " >&6
14809 fi
14810 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14811 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14812 else
14813 # Is the header compilable?
14814 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14815 $as_echo_n "checking gif_lib.h usability... " >&6; }
14816 cat >conftest.$ac_ext <<_ACEOF
14817 /* confdefs.h. */
14818 _ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h. */
14822 $ac_includes_default
14823 #include <gif_lib.h>
14824 _ACEOF
14825 rm -f conftest.$ac_objext
14826 if { (ac_try="$ac_compile"
14827 case "(($ac_try" in
14828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14829 *) ac_try_echo=$ac_try;;
14830 esac
14831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14832 $as_echo "$ac_try_echo") >&5
14833 (eval "$ac_compile") 2>conftest.er1
14834 ac_status=$?
14835 grep -v '^ *+' conftest.er1 >conftest.err
14836 rm -f conftest.er1
14837 cat conftest.err >&5
14838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } && {
14840 test -z "$ac_c_werror_flag" ||
14841 test ! -s conftest.err
14842 } && test -s conftest.$ac_objext; then
14843 ac_header_compiler=yes
14844 else
14845 $as_echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14847
14848 ac_header_compiler=no
14849 fi
14850
14851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14852 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14853 $as_echo "$ac_header_compiler" >&6; }
14854
14855 # Is the header present?
14856 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14857 $as_echo_n "checking gif_lib.h presence... " >&6; }
14858 cat >conftest.$ac_ext <<_ACEOF
14859 /* confdefs.h. */
14860 _ACEOF
14861 cat confdefs.h >>conftest.$ac_ext
14862 cat >>conftest.$ac_ext <<_ACEOF
14863 /* end confdefs.h. */
14864 #include <gif_lib.h>
14865 _ACEOF
14866 if { (ac_try="$ac_cpp conftest.$ac_ext"
14867 case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14870 esac
14871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14872 $as_echo "$ac_try_echo") >&5
14873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14874 ac_status=$?
14875 grep -v '^ *+' conftest.er1 >conftest.err
14876 rm -f conftest.er1
14877 cat conftest.err >&5
14878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } >/dev/null && {
14880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14881 test ! -s conftest.err
14882 }; then
14883 ac_header_preproc=yes
14884 else
14885 $as_echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14887
14888 ac_header_preproc=no
14889 fi
14890
14891 rm -f conftest.err conftest.$ac_ext
14892 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14893 $as_echo "$ac_header_preproc" >&6; }
14894
14895 # So? What about this header?
14896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14897 yes:no: )
14898 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14899 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14900 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14901 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14902 ac_header_preproc=yes
14903 ;;
14904 no:yes:* )
14905 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14906 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14907 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14908 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14909 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14910 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14911 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14912 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14913 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14914 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14915 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14916 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14917
14918 ;;
14919 esac
14920 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14921 $as_echo_n "checking for gif_lib.h... " >&6; }
14922 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14923 $as_echo_n "(cached) " >&6
14924 else
14925 ac_cv_header_gif_lib_h=$ac_header_preproc
14926 fi
14927 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14928 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14929
14930 fi
14931 if test $ac_cv_header_gif_lib_h = yes; then
14932 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14933 # Earlier versions can crash Emacs.
14934 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14935 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
14936 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14937 $as_echo_n "(cached) " >&6
14938 else
14939 ac_check_lib_save_LIBS=$LIBS
14940 LIBS="-lgif $LIBS"
14941 cat >conftest.$ac_ext <<_ACEOF
14942 /* confdefs.h. */
14943 _ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h. */
14947
14948 /* Override any GCC internal prototype to avoid an error.
14949 Use char because int might match the return type of a GCC
14950 builtin and then its argument prototype would still apply. */
14951 #ifdef __cplusplus
14952 extern "C"
14953 #endif
14954 char EGifPutExtensionLast ();
14955 int
14956 main ()
14957 {
14958 return EGifPutExtensionLast ();
14959 ;
14960 return 0;
14961 }
14962 _ACEOF
14963 rm -f conftest.$ac_objext conftest$ac_exeext
14964 if { (ac_try="$ac_link"
14965 case "(($ac_try" in
14966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967 *) ac_try_echo=$ac_try;;
14968 esac
14969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14970 $as_echo "$ac_try_echo") >&5
14971 (eval "$ac_link") 2>conftest.er1
14972 ac_status=$?
14973 grep -v '^ *+' conftest.er1 >conftest.err
14974 rm -f conftest.er1
14975 cat conftest.err >&5
14976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); } && {
14978 test -z "$ac_c_werror_flag" ||
14979 test ! -s conftest.err
14980 } && test -s conftest$ac_exeext && {
14981 test "$cross_compiling" = yes ||
14982 $as_test_x conftest$ac_exeext
14983 }; then
14984 ac_cv_lib_gif_EGifPutExtensionLast=yes
14985 else
14986 $as_echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14988
14989 ac_cv_lib_gif_EGifPutExtensionLast=no
14990 fi
14991
14992 rm -rf conftest.dSYM
14993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14994 conftest$ac_exeext conftest.$ac_ext
14995 LIBS=$ac_check_lib_save_LIBS
14996 fi
14997 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14998 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14999 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15000 HAVE_GIF=yes
15001 else
15002 try_libungif=yes
15003 fi
15004
15005 fi
15006
15007
15008
15009 if test "$HAVE_GIF" = yes; then
15010 ac_gif_lib_name="-lgif"
15011 fi
15012
15013 # If gif_lib.h but no libgif, try libungif.
15014 if test x"$try_libungif" = xyes; then
15015 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15016 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15017 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15018 $as_echo_n "(cached) " >&6
15019 else
15020 ac_check_lib_save_LIBS=$LIBS
15021 LIBS="-lungif $LIBS"
15022 cat >conftest.$ac_ext <<_ACEOF
15023 /* confdefs.h. */
15024 _ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h. */
15028
15029 /* Override any GCC internal prototype to avoid an error.
15030 Use char because int might match the return type of a GCC
15031 builtin and then its argument prototype would still apply. */
15032 #ifdef __cplusplus
15033 extern "C"
15034 #endif
15035 char EGifPutExtensionLast ();
15036 int
15037 main ()
15038 {
15039 return EGifPutExtensionLast ();
15040 ;
15041 return 0;
15042 }
15043 _ACEOF
15044 rm -f conftest.$ac_objext conftest$ac_exeext
15045 if { (ac_try="$ac_link"
15046 case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15049 esac
15050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15051 $as_echo "$ac_try_echo") >&5
15052 (eval "$ac_link") 2>conftest.er1
15053 ac_status=$?
15054 grep -v '^ *+' conftest.er1 >conftest.err
15055 rm -f conftest.er1
15056 cat conftest.err >&5
15057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } && {
15059 test -z "$ac_c_werror_flag" ||
15060 test ! -s conftest.err
15061 } && test -s conftest$ac_exeext && {
15062 test "$cross_compiling" = yes ||
15063 $as_test_x conftest$ac_exeext
15064 }; then
15065 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15066 else
15067 $as_echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15069
15070 ac_cv_lib_ungif_EGifPutExtensionLast=no
15071 fi
15072
15073 rm -rf conftest.dSYM
15074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15075 conftest$ac_exeext conftest.$ac_ext
15076 LIBS=$ac_check_lib_save_LIBS
15077 fi
15078 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15079 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15080 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15081 HAVE_GIF=yes
15082 fi
15083
15084
15085 if test "$HAVE_GIF" = yes; then
15086
15087 cat >>confdefs.h <<\_ACEOF
15088 #define LIBGIF -lungif
15089 _ACEOF
15090
15091 ac_gif_lib_name="-lungif"
15092 fi
15093 fi
15094
15095 if test "${HAVE_GIF}" = "yes"; then
15096
15097 cat >>confdefs.h <<\_ACEOF
15098 #define HAVE_GIF 1
15099 _ACEOF
15100
15101 fi
15102 fi
15103
15104 if test "${HAVE_X11}" = "yes"; then
15105 MISSING=""
15106 WITH_NO=""
15107 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15108 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15109 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15110 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15111 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15112 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15113 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15114 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15115 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15116 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15117
15118 if test "X${MISSING}" != X; then
15119 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15120 $MISSING
15121 Maybe some development libraries/packages are missing?
15122 If you don't want to link with them give
15123 $WITH_NO
15124 as options to configure" >&5
15125 $as_echo "$as_me: error: The following required libraries were not found:
15126 $MISSING
15127 Maybe some development libraries/packages are missing?
15128 If you don't want to link with them give
15129 $WITH_NO
15130 as options to configure" >&2;}
15131 { (exit 1); exit 1; }; }
15132 fi
15133 fi
15134
15135 ### Use -lgpm if available, unless `--with-gpm=no'.
15136 HAVE_GPM=no
15137 if test "${with_gpm}" != "no"; then
15138 if test "${ac_cv_header_gpm_h+set}" = set; then
15139 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15140 $as_echo_n "checking for gpm.h... " >&6; }
15141 if test "${ac_cv_header_gpm_h+set}" = set; then
15142 $as_echo_n "(cached) " >&6
15143 fi
15144 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15145 $as_echo "$ac_cv_header_gpm_h" >&6; }
15146 else
15147 # Is the header compilable?
15148 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15149 $as_echo_n "checking gpm.h usability... " >&6; }
15150 cat >conftest.$ac_ext <<_ACEOF
15151 /* confdefs.h. */
15152 _ACEOF
15153 cat confdefs.h >>conftest.$ac_ext
15154 cat >>conftest.$ac_ext <<_ACEOF
15155 /* end confdefs.h. */
15156 $ac_includes_default
15157 #include <gpm.h>
15158 _ACEOF
15159 rm -f conftest.$ac_objext
15160 if { (ac_try="$ac_compile"
15161 case "(($ac_try" in
15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15164 esac
15165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15166 $as_echo "$ac_try_echo") >&5
15167 (eval "$ac_compile") 2>conftest.er1
15168 ac_status=$?
15169 grep -v '^ *+' conftest.er1 >conftest.err
15170 rm -f conftest.er1
15171 cat conftest.err >&5
15172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } && {
15174 test -z "$ac_c_werror_flag" ||
15175 test ! -s conftest.err
15176 } && test -s conftest.$ac_objext; then
15177 ac_header_compiler=yes
15178 else
15179 $as_echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15181
15182 ac_header_compiler=no
15183 fi
15184
15185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15186 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15187 $as_echo "$ac_header_compiler" >&6; }
15188
15189 # Is the header present?
15190 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15191 $as_echo_n "checking gpm.h presence... " >&6; }
15192 cat >conftest.$ac_ext <<_ACEOF
15193 /* confdefs.h. */
15194 _ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h. */
15198 #include <gpm.h>
15199 _ACEOF
15200 if { (ac_try="$ac_cpp conftest.$ac_ext"
15201 case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15204 esac
15205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15206 $as_echo "$ac_try_echo") >&5
15207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15208 ac_status=$?
15209 grep -v '^ *+' conftest.er1 >conftest.err
15210 rm -f conftest.er1
15211 cat conftest.err >&5
15212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } >/dev/null && {
15214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15215 test ! -s conftest.err
15216 }; then
15217 ac_header_preproc=yes
15218 else
15219 $as_echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15221
15222 ac_header_preproc=no
15223 fi
15224
15225 rm -f conftest.err conftest.$ac_ext
15226 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15227 $as_echo "$ac_header_preproc" >&6; }
15228
15229 # So? What about this header?
15230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15231 yes:no: )
15232 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15233 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15234 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15235 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15236 ac_header_preproc=yes
15237 ;;
15238 no:yes:* )
15239 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15240 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15241 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15242 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15243 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15244 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15245 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15246 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15247 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15248 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15249 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15250 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15251
15252 ;;
15253 esac
15254 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15255 $as_echo_n "checking for gpm.h... " >&6; }
15256 if test "${ac_cv_header_gpm_h+set}" = set; then
15257 $as_echo_n "(cached) " >&6
15258 else
15259 ac_cv_header_gpm_h=$ac_header_preproc
15260 fi
15261 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15262 $as_echo "$ac_cv_header_gpm_h" >&6; }
15263
15264 fi
15265 if test $ac_cv_header_gpm_h = yes; then
15266 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15267 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15268 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15269 $as_echo_n "(cached) " >&6
15270 else
15271 ac_check_lib_save_LIBS=$LIBS
15272 LIBS="-lgpm $LIBS"
15273 cat >conftest.$ac_ext <<_ACEOF
15274 /* confdefs.h. */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15279
15280 /* Override any GCC internal prototype to avoid an error.
15281 Use char because int might match the return type of a GCC
15282 builtin and then its argument prototype would still apply. */
15283 #ifdef __cplusplus
15284 extern "C"
15285 #endif
15286 char Gpm_Open ();
15287 int
15288 main ()
15289 {
15290 return Gpm_Open ();
15291 ;
15292 return 0;
15293 }
15294 _ACEOF
15295 rm -f conftest.$ac_objext conftest$ac_exeext
15296 if { (ac_try="$ac_link"
15297 case "(($ac_try" in
15298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15299 *) ac_try_echo=$ac_try;;
15300 esac
15301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15302 $as_echo "$ac_try_echo") >&5
15303 (eval "$ac_link") 2>conftest.er1
15304 ac_status=$?
15305 grep -v '^ *+' conftest.er1 >conftest.err
15306 rm -f conftest.er1
15307 cat conftest.err >&5
15308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } && {
15310 test -z "$ac_c_werror_flag" ||
15311 test ! -s conftest.err
15312 } && test -s conftest$ac_exeext && {
15313 test "$cross_compiling" = yes ||
15314 $as_test_x conftest$ac_exeext
15315 }; then
15316 ac_cv_lib_gpm_Gpm_Open=yes
15317 else
15318 $as_echo "$as_me: failed program was:" >&5
15319 sed 's/^/| /' conftest.$ac_ext >&5
15320
15321 ac_cv_lib_gpm_Gpm_Open=no
15322 fi
15323
15324 rm -rf conftest.dSYM
15325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15326 conftest$ac_exeext conftest.$ac_ext
15327 LIBS=$ac_check_lib_save_LIBS
15328 fi
15329 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15330 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15331 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15332 HAVE_GPM=yes
15333 fi
15334
15335 fi
15336
15337
15338 fi
15339
15340 if test "${HAVE_GPM}" = "yes"; then
15341
15342 cat >>confdefs.h <<\_ACEOF
15343 #define HAVE_GPM 1
15344 _ACEOF
15345
15346 fi
15347
15348 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15349 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15350 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15351 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15352 $as_echo_n "(cached) " >&6
15353 fi
15354 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15355 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15356 else
15357 # Is the header compilable?
15358 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15359 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15360 cat >conftest.$ac_ext <<_ACEOF
15361 /* confdefs.h. */
15362 _ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h. */
15366 $ac_includes_default
15367 #include <malloc/malloc.h>
15368 _ACEOF
15369 rm -f conftest.$ac_objext
15370 if { (ac_try="$ac_compile"
15371 case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15374 esac
15375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15376 $as_echo "$ac_try_echo") >&5
15377 (eval "$ac_compile") 2>conftest.er1
15378 ac_status=$?
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
15382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } && {
15384 test -z "$ac_c_werror_flag" ||
15385 test ! -s conftest.err
15386 } && test -s conftest.$ac_objext; then
15387 ac_header_compiler=yes
15388 else
15389 $as_echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15391
15392 ac_header_compiler=no
15393 fi
15394
15395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15396 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15397 $as_echo "$ac_header_compiler" >&6; }
15398
15399 # Is the header present?
15400 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15401 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15402 cat >conftest.$ac_ext <<_ACEOF
15403 /* confdefs.h. */
15404 _ACEOF
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h. */
15408 #include <malloc/malloc.h>
15409 _ACEOF
15410 if { (ac_try="$ac_cpp conftest.$ac_ext"
15411 case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15414 esac
15415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15416 $as_echo "$ac_try_echo") >&5
15417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15418 ac_status=$?
15419 grep -v '^ *+' conftest.er1 >conftest.err
15420 rm -f conftest.er1
15421 cat conftest.err >&5
15422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } >/dev/null && {
15424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15425 test ! -s conftest.err
15426 }; then
15427 ac_header_preproc=yes
15428 else
15429 $as_echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15431
15432 ac_header_preproc=no
15433 fi
15434
15435 rm -f conftest.err conftest.$ac_ext
15436 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15437 $as_echo "$ac_header_preproc" >&6; }
15438
15439 # So? What about this header?
15440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15441 yes:no: )
15442 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15443 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15444 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15445 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15446 ac_header_preproc=yes
15447 ;;
15448 no:yes:* )
15449 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15450 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15451 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15452 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15453 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15454 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15455 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15456 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15457 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15458 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15459 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15460 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15461
15462 ;;
15463 esac
15464 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15465 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15466 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15467 $as_echo_n "(cached) " >&6
15468 else
15469 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15470 fi
15471 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15472 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15473
15474 fi
15475 if test $ac_cv_header_malloc_malloc_h = yes; then
15476
15477 cat >>confdefs.h <<\_ACEOF
15478 #define HAVE_MALLOC_MALLOC_H 1
15479 _ACEOF
15480
15481 fi
15482
15483
15484
15485 ### Use NeXTstep API to implement GUI.
15486 if test "${HAVE_NS}" = "yes"; then
15487
15488 cat >>confdefs.h <<\_ACEOF
15489 #define HAVE_NS 1
15490 _ACEOF
15491
15492 if test "${NS_IMPL_COCOA}" = "yes"; then
15493
15494 cat >>confdefs.h <<\_ACEOF
15495 #define NS_IMPL_COCOA 1
15496 _ACEOF
15497
15498 GNU_OBJC_CFLAGS=
15499 fi
15500 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15501
15502 cat >>confdefs.h <<\_ACEOF
15503 #define NS_IMPL_GNUSTEP 1
15504 _ACEOF
15505
15506 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15507 fi
15508 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15509
15510 cat >>confdefs.h <<\_ACEOF
15511 #define NS_HAVE_NSINTEGER 1
15512 _ACEOF
15513
15514 fi
15515 # We also have mouse menus.
15516 HAVE_MENUS=yes
15517 fi
15518
15519
15520 ### Use session management (-lSM -lICE) if available
15521 HAVE_X_SM=no
15522 if test "${HAVE_X11}" = "yes"; then
15523 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15524 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15525 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15526 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15527 $as_echo_n "(cached) " >&6
15528 fi
15529 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15530 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15531 else
15532 # Is the header compilable?
15533 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15534 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
15535 cat >conftest.$ac_ext <<_ACEOF
15536 /* confdefs.h. */
15537 _ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h. */
15541 $ac_includes_default
15542 #include <X11/SM/SMlib.h>
15543 _ACEOF
15544 rm -f conftest.$ac_objext
15545 if { (ac_try="$ac_compile"
15546 case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15549 esac
15550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15551 $as_echo "$ac_try_echo") >&5
15552 (eval "$ac_compile") 2>conftest.er1
15553 ac_status=$?
15554 grep -v '^ *+' conftest.er1 >conftest.err
15555 rm -f conftest.er1
15556 cat conftest.err >&5
15557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); } && {
15559 test -z "$ac_c_werror_flag" ||
15560 test ! -s conftest.err
15561 } && test -s conftest.$ac_objext; then
15562 ac_header_compiler=yes
15563 else
15564 $as_echo "$as_me: failed program was:" >&5
15565 sed 's/^/| /' conftest.$ac_ext >&5
15566
15567 ac_header_compiler=no
15568 fi
15569
15570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15571 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15572 $as_echo "$ac_header_compiler" >&6; }
15573
15574 # Is the header present?
15575 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15576 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
15577 cat >conftest.$ac_ext <<_ACEOF
15578 /* confdefs.h. */
15579 _ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 #include <X11/SM/SMlib.h>
15584 _ACEOF
15585 if { (ac_try="$ac_cpp conftest.$ac_ext"
15586 case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15589 esac
15590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15591 $as_echo "$ac_try_echo") >&5
15592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15593 ac_status=$?
15594 grep -v '^ *+' conftest.er1 >conftest.err
15595 rm -f conftest.er1
15596 cat conftest.err >&5
15597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); } >/dev/null && {
15599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15600 test ! -s conftest.err
15601 }; then
15602 ac_header_preproc=yes
15603 else
15604 $as_echo "$as_me: failed program was:" >&5
15605 sed 's/^/| /' conftest.$ac_ext >&5
15606
15607 ac_header_preproc=no
15608 fi
15609
15610 rm -f conftest.err conftest.$ac_ext
15611 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15612 $as_echo "$ac_header_preproc" >&6; }
15613
15614 # So? What about this header?
15615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15616 yes:no: )
15617 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15618 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15619 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15620 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15621 ac_header_preproc=yes
15622 ;;
15623 no:yes:* )
15624 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15625 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15626 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15627 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15628 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15629 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15630 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15631 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15632 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15633 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15634 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15635 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15636
15637 ;;
15638 esac
15639 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15640 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15641 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15642 $as_echo_n "(cached) " >&6
15643 else
15644 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15645 fi
15646 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15647 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15648
15649 fi
15650 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15651 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15652 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
15653 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15654 $as_echo_n "(cached) " >&6
15655 else
15656 ac_check_lib_save_LIBS=$LIBS
15657 LIBS="-lSM -lICE $LIBS"
15658 cat >conftest.$ac_ext <<_ACEOF
15659 /* confdefs.h. */
15660 _ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h. */
15664
15665 /* Override any GCC internal prototype to avoid an error.
15666 Use char because int might match the return type of a GCC
15667 builtin and then its argument prototype would still apply. */
15668 #ifdef __cplusplus
15669 extern "C"
15670 #endif
15671 char SmcOpenConnection ();
15672 int
15673 main ()
15674 {
15675 return SmcOpenConnection ();
15676 ;
15677 return 0;
15678 }
15679 _ACEOF
15680 rm -f conftest.$ac_objext conftest$ac_exeext
15681 if { (ac_try="$ac_link"
15682 case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15685 esac
15686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15687 $as_echo "$ac_try_echo") >&5
15688 (eval "$ac_link") 2>conftest.er1
15689 ac_status=$?
15690 grep -v '^ *+' conftest.er1 >conftest.err
15691 rm -f conftest.er1
15692 cat conftest.err >&5
15693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); } && {
15695 test -z "$ac_c_werror_flag" ||
15696 test ! -s conftest.err
15697 } && test -s conftest$ac_exeext && {
15698 test "$cross_compiling" = yes ||
15699 $as_test_x conftest$ac_exeext
15700 }; then
15701 ac_cv_lib_SM_SmcOpenConnection=yes
15702 else
15703 $as_echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15705
15706 ac_cv_lib_SM_SmcOpenConnection=no
15707 fi
15708
15709 rm -rf conftest.dSYM
15710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15711 conftest$ac_exeext conftest.$ac_ext
15712 LIBS=$ac_check_lib_save_LIBS
15713 fi
15714 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15715 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15716 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15717 HAVE_X_SM=yes
15718 fi
15719
15720 fi
15721
15722
15723
15724 if test "${HAVE_X_SM}" = "yes"; then
15725
15726 cat >>confdefs.h <<\_ACEOF
15727 #define HAVE_X_SM 1
15728 _ACEOF
15729
15730 case "$LIBS" in
15731 *-lSM*) ;;
15732 *) LIBS="-lSM -lICE $LIBS" ;;
15733 esac
15734 fi
15735 fi
15736
15737 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15738 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15739 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
15740 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15741 $as_echo_n "(cached) " >&6
15742 else
15743 cat >conftest.$ac_ext <<_ACEOF
15744 /* confdefs.h. */
15745 _ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h. */
15749 #include <netdb.h>
15750 int
15751 main ()
15752 {
15753 return h_errno;
15754 ;
15755 return 0;
15756 }
15757 _ACEOF
15758 rm -f conftest.$ac_objext conftest$ac_exeext
15759 if { (ac_try="$ac_link"
15760 case "(($ac_try" in
15761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762 *) ac_try_echo=$ac_try;;
15763 esac
15764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15765 $as_echo "$ac_try_echo") >&5
15766 (eval "$ac_link") 2>conftest.er1
15767 ac_status=$?
15768 grep -v '^ *+' conftest.er1 >conftest.err
15769 rm -f conftest.er1
15770 cat conftest.err >&5
15771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } && {
15773 test -z "$ac_c_werror_flag" ||
15774 test ! -s conftest.err
15775 } && test -s conftest$ac_exeext && {
15776 test "$cross_compiling" = yes ||
15777 $as_test_x conftest$ac_exeext
15778 }; then
15779 emacs_cv_netdb_declares_h_errno=yes
15780 else
15781 $as_echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15783
15784 emacs_cv_netdb_declares_h_errno=no
15785 fi
15786
15787 rm -rf conftest.dSYM
15788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15789 conftest$ac_exeext conftest.$ac_ext
15790 fi
15791 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15792 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
15793 if test $emacs_cv_netdb_declares_h_errno = yes; then
15794
15795 cat >>confdefs.h <<\_ACEOF
15796 #define HAVE_H_ERRNO 1
15797 _ACEOF
15798
15799 fi
15800
15801 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15802 # for constant arguments. Useless!
15803 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
15804 $as_echo_n "checking for working alloca.h... " >&6; }
15805 if test "${ac_cv_working_alloca_h+set}" = set; then
15806 $as_echo_n "(cached) " >&6
15807 else
15808 cat >conftest.$ac_ext <<_ACEOF
15809 /* confdefs.h. */
15810 _ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h. */
15814 #include <alloca.h>
15815 int
15816 main ()
15817 {
15818 char *p = (char *) alloca (2 * sizeof (int));
15819 if (p) return 0;
15820 ;
15821 return 0;
15822 }
15823 _ACEOF
15824 rm -f conftest.$ac_objext conftest$ac_exeext
15825 if { (ac_try="$ac_link"
15826 case "(($ac_try" in
15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15829 esac
15830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15831 $as_echo "$ac_try_echo") >&5
15832 (eval "$ac_link") 2>conftest.er1
15833 ac_status=$?
15834 grep -v '^ *+' conftest.er1 >conftest.err
15835 rm -f conftest.er1
15836 cat conftest.err >&5
15837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); } && {
15839 test -z "$ac_c_werror_flag" ||
15840 test ! -s conftest.err
15841 } && test -s conftest$ac_exeext && {
15842 test "$cross_compiling" = yes ||
15843 $as_test_x conftest$ac_exeext
15844 }; then
15845 ac_cv_working_alloca_h=yes
15846 else
15847 $as_echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15849
15850 ac_cv_working_alloca_h=no
15851 fi
15852
15853 rm -rf conftest.dSYM
15854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15855 conftest$ac_exeext conftest.$ac_ext
15856 fi
15857 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15858 $as_echo "$ac_cv_working_alloca_h" >&6; }
15859 if test $ac_cv_working_alloca_h = yes; then
15860
15861 cat >>confdefs.h <<\_ACEOF
15862 #define HAVE_ALLOCA_H 1
15863 _ACEOF
15864
15865 fi
15866
15867 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
15868 $as_echo_n "checking for alloca... " >&6; }
15869 if test "${ac_cv_func_alloca_works+set}" = set; then
15870 $as_echo_n "(cached) " >&6
15871 else
15872 cat >conftest.$ac_ext <<_ACEOF
15873 /* confdefs.h. */
15874 _ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15878 #ifdef __GNUC__
15879 # define alloca __builtin_alloca
15880 #else
15881 # ifdef _MSC_VER
15882 # include <malloc.h>
15883 # define alloca _alloca
15884 # else
15885 # ifdef HAVE_ALLOCA_H
15886 # include <alloca.h>
15887 # else
15888 # ifdef _AIX
15889 #pragma alloca
15890 # else
15891 # ifndef alloca /* predefined by HP cc +Olibcalls */
15892 char *alloca ();
15893 # endif
15894 # endif
15895 # endif
15896 # endif
15897 #endif
15898
15899 int
15900 main ()
15901 {
15902 char *p = (char *) alloca (1);
15903 if (p) return 0;
15904 ;
15905 return 0;
15906 }
15907 _ACEOF
15908 rm -f conftest.$ac_objext conftest$ac_exeext
15909 if { (ac_try="$ac_link"
15910 case "(($ac_try" in
15911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912 *) ac_try_echo=$ac_try;;
15913 esac
15914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15915 $as_echo "$ac_try_echo") >&5
15916 (eval "$ac_link") 2>conftest.er1
15917 ac_status=$?
15918 grep -v '^ *+' conftest.er1 >conftest.err
15919 rm -f conftest.er1
15920 cat conftest.err >&5
15921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } && {
15923 test -z "$ac_c_werror_flag" ||
15924 test ! -s conftest.err
15925 } && test -s conftest$ac_exeext && {
15926 test "$cross_compiling" = yes ||
15927 $as_test_x conftest$ac_exeext
15928 }; then
15929 ac_cv_func_alloca_works=yes
15930 else
15931 $as_echo "$as_me: failed program was:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15933
15934 ac_cv_func_alloca_works=no
15935 fi
15936
15937 rm -rf conftest.dSYM
15938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15939 conftest$ac_exeext conftest.$ac_ext
15940 fi
15941 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15942 $as_echo "$ac_cv_func_alloca_works" >&6; }
15943
15944 if test $ac_cv_func_alloca_works = yes; then
15945
15946 cat >>confdefs.h <<\_ACEOF
15947 #define HAVE_ALLOCA 1
15948 _ACEOF
15949
15950 else
15951 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15952 # that cause trouble. Some versions do not even contain alloca or
15953 # contain a buggy version. If you still want to use their alloca,
15954 # use ar to extract alloca.o from them instead of compiling alloca.c.
15955
15956 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15957
15958 cat >>confdefs.h <<\_ACEOF
15959 #define C_ALLOCA 1
15960 _ACEOF
15961
15962
15963 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15964 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15965 if test "${ac_cv_os_cray+set}" = set; then
15966 $as_echo_n "(cached) " >&6
15967 else
15968 cat >conftest.$ac_ext <<_ACEOF
15969 /* confdefs.h. */
15970 _ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h. */
15974 #if defined CRAY && ! defined CRAY2
15975 webecray
15976 #else
15977 wenotbecray
15978 #endif
15979
15980 _ACEOF
15981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15982 $EGREP "webecray" >/dev/null 2>&1; then
15983 ac_cv_os_cray=yes
15984 else
15985 ac_cv_os_cray=no
15986 fi
15987 rm -f conftest*
15988
15989 fi
15990 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15991 $as_echo "$ac_cv_os_cray" >&6; }
15992 if test $ac_cv_os_cray = yes; then
15993 for ac_func in _getb67 GETB67 getb67; do
15994 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15995 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15996 $as_echo_n "checking for $ac_func... " >&6; }
15997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15998 $as_echo_n "(cached) " >&6
15999 else
16000 cat >conftest.$ac_ext <<_ACEOF
16001 /* confdefs.h. */
16002 _ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16008 #define $ac_func innocuous_$ac_func
16009
16010 /* System header to define __stub macros and hopefully few prototypes,
16011 which can conflict with char $ac_func (); below.
16012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16013 <limits.h> exists even on freestanding compilers. */
16014
16015 #ifdef __STDC__
16016 # include <limits.h>
16017 #else
16018 # include <assert.h>
16019 #endif
16020
16021 #undef $ac_func
16022
16023 /* Override any GCC internal prototype to avoid an error.
16024 Use char because int might match the return type of a GCC
16025 builtin and then its argument prototype would still apply. */
16026 #ifdef __cplusplus
16027 extern "C"
16028 #endif
16029 char $ac_func ();
16030 /* The GNU C library defines this for functions which it implements
16031 to always fail with ENOSYS. Some functions are actually named
16032 something starting with __ and the normal name is an alias. */
16033 #if defined __stub_$ac_func || defined __stub___$ac_func
16034 choke me
16035 #endif
16036
16037 int
16038 main ()
16039 {
16040 return $ac_func ();
16041 ;
16042 return 0;
16043 }
16044 _ACEOF
16045 rm -f conftest.$ac_objext conftest$ac_exeext
16046 if { (ac_try="$ac_link"
16047 case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16050 esac
16051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16052 $as_echo "$ac_try_echo") >&5
16053 (eval "$ac_link") 2>conftest.er1
16054 ac_status=$?
16055 grep -v '^ *+' conftest.er1 >conftest.err
16056 rm -f conftest.er1
16057 cat conftest.err >&5
16058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } && {
16060 test -z "$ac_c_werror_flag" ||
16061 test ! -s conftest.err
16062 } && test -s conftest$ac_exeext && {
16063 test "$cross_compiling" = yes ||
16064 $as_test_x conftest$ac_exeext
16065 }; then
16066 eval "$as_ac_var=yes"
16067 else
16068 $as_echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16070
16071 eval "$as_ac_var=no"
16072 fi
16073
16074 rm -rf conftest.dSYM
16075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16076 conftest$ac_exeext conftest.$ac_ext
16077 fi
16078 ac_res=`eval 'as_val=${'$as_ac_var'}
16079 $as_echo "$as_val"'`
16080 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16081 $as_echo "$ac_res" >&6; }
16082 if test `eval 'as_val=${'$as_ac_var'}
16083 $as_echo "$as_val"'` = yes; then
16084
16085 cat >>confdefs.h <<_ACEOF
16086 #define CRAY_STACKSEG_END $ac_func
16087 _ACEOF
16088
16089 break
16090 fi
16091
16092 done
16093 fi
16094
16095 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16096 $as_echo_n "checking stack direction for C alloca... " >&6; }
16097 if test "${ac_cv_c_stack_direction+set}" = set; then
16098 $as_echo_n "(cached) " >&6
16099 else
16100 if test "$cross_compiling" = yes; then
16101 ac_cv_c_stack_direction=0
16102 else
16103 cat >conftest.$ac_ext <<_ACEOF
16104 /* confdefs.h. */
16105 _ACEOF
16106 cat confdefs.h >>conftest.$ac_ext
16107 cat >>conftest.$ac_ext <<_ACEOF
16108 /* end confdefs.h. */
16109 $ac_includes_default
16110 int
16111 find_stack_direction ()
16112 {
16113 static char *addr = 0;
16114 auto char dummy;
16115 if (addr == 0)
16116 {
16117 addr = &dummy;
16118 return find_stack_direction ();
16119 }
16120 else
16121 return (&dummy > addr) ? 1 : -1;
16122 }
16123
16124 int
16125 main ()
16126 {
16127 return find_stack_direction () < 0;
16128 }
16129 _ACEOF
16130 rm -f conftest$ac_exeext
16131 if { (ac_try="$ac_link"
16132 case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16135 esac
16136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16137 $as_echo "$ac_try_echo") >&5
16138 (eval "$ac_link") 2>&5
16139 ac_status=$?
16140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16142 { (case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16145 esac
16146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16147 $as_echo "$ac_try_echo") >&5
16148 (eval "$ac_try") 2>&5
16149 ac_status=$?
16150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; }; then
16152 ac_cv_c_stack_direction=1
16153 else
16154 $as_echo "$as_me: program exited with status $ac_status" >&5
16155 $as_echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16157
16158 ( exit $ac_status )
16159 ac_cv_c_stack_direction=-1
16160 fi
16161 rm -rf conftest.dSYM
16162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16163 fi
16164
16165
16166 fi
16167 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16168 $as_echo "$ac_cv_c_stack_direction" >&6; }
16169
16170 cat >>confdefs.h <<_ACEOF
16171 #define STACK_DIRECTION $ac_cv_c_stack_direction
16172 _ACEOF
16173
16174
16175 fi
16176
16177
16178 if test x"$ac_cv_func_alloca_works" != xyes; then
16179 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16180 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16181 { (exit 1); exit 1; }; }
16182 fi
16183
16184 # fmod, logb, and frexp are found in -lm on most systems.
16185 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16186
16187 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16188 $as_echo_n "checking for sqrt in -lm... " >&6; }
16189 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16190 $as_echo_n "(cached) " >&6
16191 else
16192 ac_check_lib_save_LIBS=$LIBS
16193 LIBS="-lm $LIBS"
16194 cat >conftest.$ac_ext <<_ACEOF
16195 /* confdefs.h. */
16196 _ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h. */
16200
16201 /* Override any GCC internal prototype to avoid an error.
16202 Use char because int might match the return type of a GCC
16203 builtin and then its argument prototype would still apply. */
16204 #ifdef __cplusplus
16205 extern "C"
16206 #endif
16207 char sqrt ();
16208 int
16209 main ()
16210 {
16211 return sqrt ();
16212 ;
16213 return 0;
16214 }
16215 _ACEOF
16216 rm -f conftest.$ac_objext conftest$ac_exeext
16217 if { (ac_try="$ac_link"
16218 case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16221 esac
16222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16223 $as_echo "$ac_try_echo") >&5
16224 (eval "$ac_link") 2>conftest.er1
16225 ac_status=$?
16226 grep -v '^ *+' conftest.er1 >conftest.err
16227 rm -f conftest.er1
16228 cat conftest.err >&5
16229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } && {
16231 test -z "$ac_c_werror_flag" ||
16232 test ! -s conftest.err
16233 } && test -s conftest$ac_exeext && {
16234 test "$cross_compiling" = yes ||
16235 $as_test_x conftest$ac_exeext
16236 }; then
16237 ac_cv_lib_m_sqrt=yes
16238 else
16239 $as_echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16241
16242 ac_cv_lib_m_sqrt=no
16243 fi
16244
16245 rm -rf conftest.dSYM
16246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16247 conftest$ac_exeext conftest.$ac_ext
16248 LIBS=$ac_check_lib_save_LIBS
16249 fi
16250 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16251 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16252 if test $ac_cv_lib_m_sqrt = yes; then
16253 cat >>confdefs.h <<_ACEOF
16254 #define HAVE_LIBM 1
16255 _ACEOF
16256
16257 LIBS="-lm $LIBS"
16258
16259 fi
16260
16261
16262 # Check for mail-locking functions in a "mail" library. Probably this should
16263 # have the same check as for liblockfile below.
16264
16265 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16266 $as_echo_n "checking for maillock in -lmail... " >&6; }
16267 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16268 $as_echo_n "(cached) " >&6
16269 else
16270 ac_check_lib_save_LIBS=$LIBS
16271 LIBS="-lmail $LIBS"
16272 cat >conftest.$ac_ext <<_ACEOF
16273 /* confdefs.h. */
16274 _ACEOF
16275 cat confdefs.h >>conftest.$ac_ext
16276 cat >>conftest.$ac_ext <<_ACEOF
16277 /* end confdefs.h. */
16278
16279 /* Override any GCC internal prototype to avoid an error.
16280 Use char because int might match the return type of a GCC
16281 builtin and then its argument prototype would still apply. */
16282 #ifdef __cplusplus
16283 extern "C"
16284 #endif
16285 char maillock ();
16286 int
16287 main ()
16288 {
16289 return maillock ();
16290 ;
16291 return 0;
16292 }
16293 _ACEOF
16294 rm -f conftest.$ac_objext conftest$ac_exeext
16295 if { (ac_try="$ac_link"
16296 case "(($ac_try" in
16297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16298 *) ac_try_echo=$ac_try;;
16299 esac
16300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16301 $as_echo "$ac_try_echo") >&5
16302 (eval "$ac_link") 2>conftest.er1
16303 ac_status=$?
16304 grep -v '^ *+' conftest.er1 >conftest.err
16305 rm -f conftest.er1
16306 cat conftest.err >&5
16307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } && {
16309 test -z "$ac_c_werror_flag" ||
16310 test ! -s conftest.err
16311 } && test -s conftest$ac_exeext && {
16312 test "$cross_compiling" = yes ||
16313 $as_test_x conftest$ac_exeext
16314 }; then
16315 ac_cv_lib_mail_maillock=yes
16316 else
16317 $as_echo "$as_me: failed program was:" >&5
16318 sed 's/^/| /' conftest.$ac_ext >&5
16319
16320 ac_cv_lib_mail_maillock=no
16321 fi
16322
16323 rm -rf conftest.dSYM
16324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16325 conftest$ac_exeext conftest.$ac_ext
16326 LIBS=$ac_check_lib_save_LIBS
16327 fi
16328 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16329 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16330 if test $ac_cv_lib_mail_maillock = yes; then
16331 cat >>confdefs.h <<_ACEOF
16332 #define HAVE_LIBMAIL 1
16333 _ACEOF
16334
16335 LIBS="-lmail $LIBS"
16336
16337 fi
16338
16339
16340 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16341 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16342 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16343 $as_echo_n "(cached) " >&6
16344 else
16345 ac_check_lib_save_LIBS=$LIBS
16346 LIBS="-llockfile $LIBS"
16347 cat >conftest.$ac_ext <<_ACEOF
16348 /* confdefs.h. */
16349 _ACEOF
16350 cat confdefs.h >>conftest.$ac_ext
16351 cat >>conftest.$ac_ext <<_ACEOF
16352 /* end confdefs.h. */
16353
16354 /* Override any GCC internal prototype to avoid an error.
16355 Use char because int might match the return type of a GCC
16356 builtin and then its argument prototype would still apply. */
16357 #ifdef __cplusplus
16358 extern "C"
16359 #endif
16360 char maillock ();
16361 int
16362 main ()
16363 {
16364 return maillock ();
16365 ;
16366 return 0;
16367 }
16368 _ACEOF
16369 rm -f conftest.$ac_objext conftest$ac_exeext
16370 if { (ac_try="$ac_link"
16371 case "(($ac_try" in
16372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373 *) ac_try_echo=$ac_try;;
16374 esac
16375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16376 $as_echo "$ac_try_echo") >&5
16377 (eval "$ac_link") 2>conftest.er1
16378 ac_status=$?
16379 grep -v '^ *+' conftest.er1 >conftest.err
16380 rm -f conftest.er1
16381 cat conftest.err >&5
16382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } && {
16384 test -z "$ac_c_werror_flag" ||
16385 test ! -s conftest.err
16386 } && test -s conftest$ac_exeext && {
16387 test "$cross_compiling" = yes ||
16388 $as_test_x conftest$ac_exeext
16389 }; then
16390 ac_cv_lib_lockfile_maillock=yes
16391 else
16392 $as_echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.$ac_ext >&5
16394
16395 ac_cv_lib_lockfile_maillock=no
16396 fi
16397
16398 rm -rf conftest.dSYM
16399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16400 conftest$ac_exeext conftest.$ac_ext
16401 LIBS=$ac_check_lib_save_LIBS
16402 fi
16403 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16404 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16405 if test $ac_cv_lib_lockfile_maillock = yes; then
16406 cat >>confdefs.h <<_ACEOF
16407 #define HAVE_LIBLOCKFILE 1
16408 _ACEOF
16409
16410 LIBS="-llockfile $LIBS"
16411
16412 fi
16413
16414 # If we have the shared liblockfile, assume we must use it for mail
16415 # locking (e.g. Debian). If we couldn't link against liblockfile
16416 # (no liblockfile.a installed), ensure that we don't need to.
16417 if test "$ac_cv_lib_lockfile_maillock" = no; then
16418 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16419 set dummy liblockfile.so; ac_word=$2
16420 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16421 $as_echo_n "checking for $ac_word... " >&6; }
16422 if test "${ac_cv_prog_liblockfile+set}" = set; then
16423 $as_echo_n "(cached) " >&6
16424 else
16425 if test -n "$liblockfile"; then
16426 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16427 else
16428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16429 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16430 for as_dir in $as_dummy
16431 do
16432 IFS=$as_save_IFS
16433 test -z "$as_dir" && as_dir=.
16434 for ac_exec_ext in '' $ac_executable_extensions; do
16435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16436 ac_cv_prog_liblockfile="yes"
16437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16438 break 2
16439 fi
16440 done
16441 done
16442 IFS=$as_save_IFS
16443
16444 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16445 fi
16446 fi
16447 liblockfile=$ac_cv_prog_liblockfile
16448 if test -n "$liblockfile"; then
16449 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
16450 $as_echo "$liblockfile" >&6; }
16451 else
16452 { $as_echo "$as_me:$LINENO: result: no" >&5
16453 $as_echo "no" >&6; }
16454 fi
16455
16456
16457 if test $ac_cv_prog_liblockfile = yes; then
16458 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16459 This probably means that movemail could lose mail.
16460 There may be a \`development' package to install containing liblockfile." >&5
16461 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
16462 This probably means that movemail could lose mail.
16463 There may be a \`development' package to install containing liblockfile." >&2;}
16464 { (exit 1); exit 1; }; }
16465 else :
16466 fi
16467 fi
16468
16469 for ac_func in touchlock
16470 do
16471 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16472 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16473 $as_echo_n "checking for $ac_func... " >&6; }
16474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16475 $as_echo_n "(cached) " >&6
16476 else
16477 cat >conftest.$ac_ext <<_ACEOF
16478 /* confdefs.h. */
16479 _ACEOF
16480 cat confdefs.h >>conftest.$ac_ext
16481 cat >>conftest.$ac_ext <<_ACEOF
16482 /* end confdefs.h. */
16483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16485 #define $ac_func innocuous_$ac_func
16486
16487 /* System header to define __stub macros and hopefully few prototypes,
16488 which can conflict with char $ac_func (); below.
16489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16490 <limits.h> exists even on freestanding compilers. */
16491
16492 #ifdef __STDC__
16493 # include <limits.h>
16494 #else
16495 # include <assert.h>
16496 #endif
16497
16498 #undef $ac_func
16499
16500 /* Override any GCC internal prototype to avoid an error.
16501 Use char because int might match the return type of a GCC
16502 builtin and then its argument prototype would still apply. */
16503 #ifdef __cplusplus
16504 extern "C"
16505 #endif
16506 char $ac_func ();
16507 /* The GNU C library defines this for functions which it implements
16508 to always fail with ENOSYS. Some functions are actually named
16509 something starting with __ and the normal name is an alias. */
16510 #if defined __stub_$ac_func || defined __stub___$ac_func
16511 choke me
16512 #endif
16513
16514 int
16515 main ()
16516 {
16517 return $ac_func ();
16518 ;
16519 return 0;
16520 }
16521 _ACEOF
16522 rm -f conftest.$ac_objext conftest$ac_exeext
16523 if { (ac_try="$ac_link"
16524 case "(($ac_try" in
16525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526 *) ac_try_echo=$ac_try;;
16527 esac
16528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16529 $as_echo "$ac_try_echo") >&5
16530 (eval "$ac_link") 2>conftest.er1
16531 ac_status=$?
16532 grep -v '^ *+' conftest.er1 >conftest.err
16533 rm -f conftest.er1
16534 cat conftest.err >&5
16535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } && {
16537 test -z "$ac_c_werror_flag" ||
16538 test ! -s conftest.err
16539 } && test -s conftest$ac_exeext && {
16540 test "$cross_compiling" = yes ||
16541 $as_test_x conftest$ac_exeext
16542 }; then
16543 eval "$as_ac_var=yes"
16544 else
16545 $as_echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16547
16548 eval "$as_ac_var=no"
16549 fi
16550
16551 rm -rf conftest.dSYM
16552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16553 conftest$ac_exeext conftest.$ac_ext
16554 fi
16555 ac_res=`eval 'as_val=${'$as_ac_var'}
16556 $as_echo "$as_val"'`
16557 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16558 $as_echo "$ac_res" >&6; }
16559 if test `eval 'as_val=${'$as_ac_var'}
16560 $as_echo "$as_val"'` = yes; then
16561 cat >>confdefs.h <<_ACEOF
16562 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16563 _ACEOF
16564
16565 fi
16566 done
16567
16568
16569 for ac_header in maillock.h
16570 do
16571 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16573 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16574 $as_echo_n "checking for $ac_header... " >&6; }
16575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16576 $as_echo_n "(cached) " >&6
16577 fi
16578 ac_res=`eval 'as_val=${'$as_ac_Header'}
16579 $as_echo "$as_val"'`
16580 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16581 $as_echo "$ac_res" >&6; }
16582 else
16583 # Is the header compilable?
16584 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16585 $as_echo_n "checking $ac_header usability... " >&6; }
16586 cat >conftest.$ac_ext <<_ACEOF
16587 /* confdefs.h. */
16588 _ACEOF
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
16591 /* end confdefs.h. */
16592 $ac_includes_default
16593 #include <$ac_header>
16594 _ACEOF
16595 rm -f conftest.$ac_objext
16596 if { (ac_try="$ac_compile"
16597 case "(($ac_try" in
16598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16599 *) ac_try_echo=$ac_try;;
16600 esac
16601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16602 $as_echo "$ac_try_echo") >&5
16603 (eval "$ac_compile") 2>conftest.er1
16604 ac_status=$?
16605 grep -v '^ *+' conftest.er1 >conftest.err
16606 rm -f conftest.er1
16607 cat conftest.err >&5
16608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); } && {
16610 test -z "$ac_c_werror_flag" ||
16611 test ! -s conftest.err
16612 } && test -s conftest.$ac_objext; then
16613 ac_header_compiler=yes
16614 else
16615 $as_echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16617
16618 ac_header_compiler=no
16619 fi
16620
16621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16622 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16623 $as_echo "$ac_header_compiler" >&6; }
16624
16625 # Is the header present?
16626 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16627 $as_echo_n "checking $ac_header presence... " >&6; }
16628 cat >conftest.$ac_ext <<_ACEOF
16629 /* confdefs.h. */
16630 _ACEOF
16631 cat confdefs.h >>conftest.$ac_ext
16632 cat >>conftest.$ac_ext <<_ACEOF
16633 /* end confdefs.h. */
16634 #include <$ac_header>
16635 _ACEOF
16636 if { (ac_try="$ac_cpp conftest.$ac_ext"
16637 case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16640 esac
16641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16642 $as_echo "$ac_try_echo") >&5
16643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16644 ac_status=$?
16645 grep -v '^ *+' conftest.er1 >conftest.err
16646 rm -f conftest.er1
16647 cat conftest.err >&5
16648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } >/dev/null && {
16650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16651 test ! -s conftest.err
16652 }; then
16653 ac_header_preproc=yes
16654 else
16655 $as_echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16657
16658 ac_header_preproc=no
16659 fi
16660
16661 rm -f conftest.err conftest.$ac_ext
16662 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16663 $as_echo "$ac_header_preproc" >&6; }
16664
16665 # So? What about this header?
16666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16667 yes:no: )
16668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16669 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16671 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16672 ac_header_preproc=yes
16673 ;;
16674 no:yes:* )
16675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16676 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16678 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16680 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16682 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16684 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16686 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16687
16688 ;;
16689 esac
16690 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16691 $as_echo_n "checking for $ac_header... " >&6; }
16692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16693 $as_echo_n "(cached) " >&6
16694 else
16695 eval "$as_ac_Header=\$ac_header_preproc"
16696 fi
16697 ac_res=`eval 'as_val=${'$as_ac_Header'}
16698 $as_echo "$as_val"'`
16699 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16700 $as_echo "$ac_res" >&6; }
16701
16702 fi
16703 if test `eval 'as_val=${'$as_ac_Header'}
16704 $as_echo "$as_val"'` = yes; then
16705 cat >>confdefs.h <<_ACEOF
16706 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16707 _ACEOF
16708
16709 fi
16710
16711 done
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785 for ac_func in gethostname getdomainname dup2 \
16786 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16787 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16788 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16789 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16790 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16791 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16792 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16793 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16794 cfmakeraw cfsetspeed
16795 do
16796 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16797 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16798 $as_echo_n "checking for $ac_func... " >&6; }
16799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16800 $as_echo_n "(cached) " >&6
16801 else
16802 cat >conftest.$ac_ext <<_ACEOF
16803 /* confdefs.h. */
16804 _ACEOF
16805 cat confdefs.h >>conftest.$ac_ext
16806 cat >>conftest.$ac_ext <<_ACEOF
16807 /* end confdefs.h. */
16808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16810 #define $ac_func innocuous_$ac_func
16811
16812 /* System header to define __stub macros and hopefully few prototypes,
16813 which can conflict with char $ac_func (); below.
16814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16815 <limits.h> exists even on freestanding compilers. */
16816
16817 #ifdef __STDC__
16818 # include <limits.h>
16819 #else
16820 # include <assert.h>
16821 #endif
16822
16823 #undef $ac_func
16824
16825 /* Override any GCC internal prototype to avoid an error.
16826 Use char because int might match the return type of a GCC
16827 builtin and then its argument prototype would still apply. */
16828 #ifdef __cplusplus
16829 extern "C"
16830 #endif
16831 char $ac_func ();
16832 /* The GNU C library defines this for functions which it implements
16833 to always fail with ENOSYS. Some functions are actually named
16834 something starting with __ and the normal name is an alias. */
16835 #if defined __stub_$ac_func || defined __stub___$ac_func
16836 choke me
16837 #endif
16838
16839 int
16840 main ()
16841 {
16842 return $ac_func ();
16843 ;
16844 return 0;
16845 }
16846 _ACEOF
16847 rm -f conftest.$ac_objext conftest$ac_exeext
16848 if { (ac_try="$ac_link"
16849 case "(($ac_try" in
16850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16851 *) ac_try_echo=$ac_try;;
16852 esac
16853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16854 $as_echo "$ac_try_echo") >&5
16855 (eval "$ac_link") 2>conftest.er1
16856 ac_status=$?
16857 grep -v '^ *+' conftest.er1 >conftest.err
16858 rm -f conftest.er1
16859 cat conftest.err >&5
16860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); } && {
16862 test -z "$ac_c_werror_flag" ||
16863 test ! -s conftest.err
16864 } && test -s conftest$ac_exeext && {
16865 test "$cross_compiling" = yes ||
16866 $as_test_x conftest$ac_exeext
16867 }; then
16868 eval "$as_ac_var=yes"
16869 else
16870 $as_echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16872
16873 eval "$as_ac_var=no"
16874 fi
16875
16876 rm -rf conftest.dSYM
16877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16878 conftest$ac_exeext conftest.$ac_ext
16879 fi
16880 ac_res=`eval 'as_val=${'$as_ac_var'}
16881 $as_echo "$as_val"'`
16882 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16883 $as_echo "$ac_res" >&6; }
16884 if test `eval 'as_val=${'$as_ac_var'}
16885 $as_echo "$as_val"'` = yes; then
16886 cat >>confdefs.h <<_ACEOF
16887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16888 _ACEOF
16889
16890 fi
16891 done
16892
16893
16894
16895 for ac_header in sys/un.h
16896 do
16897 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16899 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16900 $as_echo_n "checking for $ac_header... " >&6; }
16901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16902 $as_echo_n "(cached) " >&6
16903 fi
16904 ac_res=`eval 'as_val=${'$as_ac_Header'}
16905 $as_echo "$as_val"'`
16906 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16907 $as_echo "$ac_res" >&6; }
16908 else
16909 # Is the header compilable?
16910 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16911 $as_echo_n "checking $ac_header usability... " >&6; }
16912 cat >conftest.$ac_ext <<_ACEOF
16913 /* confdefs.h. */
16914 _ACEOF
16915 cat confdefs.h >>conftest.$ac_ext
16916 cat >>conftest.$ac_ext <<_ACEOF
16917 /* end confdefs.h. */
16918 $ac_includes_default
16919 #include <$ac_header>
16920 _ACEOF
16921 rm -f conftest.$ac_objext
16922 if { (ac_try="$ac_compile"
16923 case "(($ac_try" in
16924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925 *) ac_try_echo=$ac_try;;
16926 esac
16927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16928 $as_echo "$ac_try_echo") >&5
16929 (eval "$ac_compile") 2>conftest.er1
16930 ac_status=$?
16931 grep -v '^ *+' conftest.er1 >conftest.err
16932 rm -f conftest.er1
16933 cat conftest.err >&5
16934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } && {
16936 test -z "$ac_c_werror_flag" ||
16937 test ! -s conftest.err
16938 } && test -s conftest.$ac_objext; then
16939 ac_header_compiler=yes
16940 else
16941 $as_echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16943
16944 ac_header_compiler=no
16945 fi
16946
16947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16948 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16949 $as_echo "$ac_header_compiler" >&6; }
16950
16951 # Is the header present?
16952 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16953 $as_echo_n "checking $ac_header presence... " >&6; }
16954 cat >conftest.$ac_ext <<_ACEOF
16955 /* confdefs.h. */
16956 _ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16960 #include <$ac_header>
16961 _ACEOF
16962 if { (ac_try="$ac_cpp conftest.$ac_ext"
16963 case "(($ac_try" in
16964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965 *) ac_try_echo=$ac_try;;
16966 esac
16967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16968 $as_echo "$ac_try_echo") >&5
16969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16970 ac_status=$?
16971 grep -v '^ *+' conftest.er1 >conftest.err
16972 rm -f conftest.er1
16973 cat conftest.err >&5
16974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } >/dev/null && {
16976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16977 test ! -s conftest.err
16978 }; then
16979 ac_header_preproc=yes
16980 else
16981 $as_echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16983
16984 ac_header_preproc=no
16985 fi
16986
16987 rm -f conftest.err conftest.$ac_ext
16988 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16989 $as_echo "$ac_header_preproc" >&6; }
16990
16991 # So? What about this header?
16992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16993 yes:no: )
16994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16995 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16997 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16998 ac_header_preproc=yes
16999 ;;
17000 no:yes:* )
17001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17002 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17004 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17006 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17008 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17010 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17012 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17013
17014 ;;
17015 esac
17016 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17017 $as_echo_n "checking for $ac_header... " >&6; }
17018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17019 $as_echo_n "(cached) " >&6
17020 else
17021 eval "$as_ac_Header=\$ac_header_preproc"
17022 fi
17023 ac_res=`eval 'as_val=${'$as_ac_Header'}
17024 $as_echo "$as_val"'`
17025 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17026 $as_echo "$ac_res" >&6; }
17027
17028 fi
17029 if test `eval 'as_val=${'$as_ac_Header'}
17030 $as_echo "$as_val"'` = yes; then
17031 cat >>confdefs.h <<_ACEOF
17032 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17033 _ACEOF
17034
17035 fi
17036
17037 done
17038
17039
17040
17041
17042
17043
17044 for ac_header in $ac_header_list
17045 do
17046 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17048 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17049 $as_echo_n "checking for $ac_header... " >&6; }
17050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17051 $as_echo_n "(cached) " >&6
17052 fi
17053 ac_res=`eval 'as_val=${'$as_ac_Header'}
17054 $as_echo "$as_val"'`
17055 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17056 $as_echo "$ac_res" >&6; }
17057 else
17058 # Is the header compilable?
17059 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17060 $as_echo_n "checking $ac_header usability... " >&6; }
17061 cat >conftest.$ac_ext <<_ACEOF
17062 /* confdefs.h. */
17063 _ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h. */
17067 $ac_includes_default
17068 #include <$ac_header>
17069 _ACEOF
17070 rm -f conftest.$ac_objext
17071 if { (ac_try="$ac_compile"
17072 case "(($ac_try" in
17073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074 *) ac_try_echo=$ac_try;;
17075 esac
17076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17077 $as_echo "$ac_try_echo") >&5
17078 (eval "$ac_compile") 2>conftest.er1
17079 ac_status=$?
17080 grep -v '^ *+' conftest.er1 >conftest.err
17081 rm -f conftest.er1
17082 cat conftest.err >&5
17083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } && {
17085 test -z "$ac_c_werror_flag" ||
17086 test ! -s conftest.err
17087 } && test -s conftest.$ac_objext; then
17088 ac_header_compiler=yes
17089 else
17090 $as_echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17092
17093 ac_header_compiler=no
17094 fi
17095
17096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17097 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17098 $as_echo "$ac_header_compiler" >&6; }
17099
17100 # Is the header present?
17101 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17102 $as_echo_n "checking $ac_header presence... " >&6; }
17103 cat >conftest.$ac_ext <<_ACEOF
17104 /* confdefs.h. */
17105 _ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h. */
17109 #include <$ac_header>
17110 _ACEOF
17111 if { (ac_try="$ac_cpp conftest.$ac_ext"
17112 case "(($ac_try" in
17113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114 *) ac_try_echo=$ac_try;;
17115 esac
17116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17117 $as_echo "$ac_try_echo") >&5
17118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17119 ac_status=$?
17120 grep -v '^ *+' conftest.er1 >conftest.err
17121 rm -f conftest.er1
17122 cat conftest.err >&5
17123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } >/dev/null && {
17125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17126 test ! -s conftest.err
17127 }; then
17128 ac_header_preproc=yes
17129 else
17130 $as_echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17132
17133 ac_header_preproc=no
17134 fi
17135
17136 rm -f conftest.err conftest.$ac_ext
17137 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17138 $as_echo "$ac_header_preproc" >&6; }
17139
17140 # So? What about this header?
17141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17142 yes:no: )
17143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17144 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17146 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17147 ac_header_preproc=yes
17148 ;;
17149 no:yes:* )
17150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17151 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17153 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17155 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17157 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17159 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17161 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17162
17163 ;;
17164 esac
17165 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17166 $as_echo_n "checking for $ac_header... " >&6; }
17167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17168 $as_echo_n "(cached) " >&6
17169 else
17170 eval "$as_ac_Header=\$ac_header_preproc"
17171 fi
17172 ac_res=`eval 'as_val=${'$as_ac_Header'}
17173 $as_echo "$as_val"'`
17174 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17175 $as_echo "$ac_res" >&6; }
17176
17177 fi
17178 if test `eval 'as_val=${'$as_ac_Header'}
17179 $as_echo "$as_val"'` = yes; then
17180 cat >>confdefs.h <<_ACEOF
17181 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17182 _ACEOF
17183
17184 fi
17185
17186 done
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196 for ac_func in $ac_func_list
17197 do
17198 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17199 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17200 $as_echo_n "checking for $ac_func... " >&6; }
17201 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17202 $as_echo_n "(cached) " >&6
17203 else
17204 cat >conftest.$ac_ext <<_ACEOF
17205 /* confdefs.h. */
17206 _ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17212 #define $ac_func innocuous_$ac_func
17213
17214 /* System header to define __stub macros and hopefully few prototypes,
17215 which can conflict with char $ac_func (); below.
17216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17217 <limits.h> exists even on freestanding compilers. */
17218
17219 #ifdef __STDC__
17220 # include <limits.h>
17221 #else
17222 # include <assert.h>
17223 #endif
17224
17225 #undef $ac_func
17226
17227 /* Override any GCC internal prototype to avoid an error.
17228 Use char because int might match the return type of a GCC
17229 builtin and then its argument prototype would still apply. */
17230 #ifdef __cplusplus
17231 extern "C"
17232 #endif
17233 char $ac_func ();
17234 /* The GNU C library defines this for functions which it implements
17235 to always fail with ENOSYS. Some functions are actually named
17236 something starting with __ and the normal name is an alias. */
17237 #if defined __stub_$ac_func || defined __stub___$ac_func
17238 choke me
17239 #endif
17240
17241 int
17242 main ()
17243 {
17244 return $ac_func ();
17245 ;
17246 return 0;
17247 }
17248 _ACEOF
17249 rm -f conftest.$ac_objext conftest$ac_exeext
17250 if { (ac_try="$ac_link"
17251 case "(($ac_try" in
17252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253 *) ac_try_echo=$ac_try;;
17254 esac
17255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17256 $as_echo "$ac_try_echo") >&5
17257 (eval "$ac_link") 2>conftest.er1
17258 ac_status=$?
17259 grep -v '^ *+' conftest.er1 >conftest.err
17260 rm -f conftest.er1
17261 cat conftest.err >&5
17262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } && {
17264 test -z "$ac_c_werror_flag" ||
17265 test ! -s conftest.err
17266 } && test -s conftest$ac_exeext && {
17267 test "$cross_compiling" = yes ||
17268 $as_test_x conftest$ac_exeext
17269 }; then
17270 eval "$as_ac_var=yes"
17271 else
17272 $as_echo "$as_me: failed program was:" >&5
17273 sed 's/^/| /' conftest.$ac_ext >&5
17274
17275 eval "$as_ac_var=no"
17276 fi
17277
17278 rm -rf conftest.dSYM
17279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17280 conftest$ac_exeext conftest.$ac_ext
17281 fi
17282 ac_res=`eval 'as_val=${'$as_ac_var'}
17283 $as_echo "$as_val"'`
17284 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17285 $as_echo "$ac_res" >&6; }
17286 if test `eval 'as_val=${'$as_ac_var'}
17287 $as_echo "$as_val"'` = yes; then
17288 cat >>confdefs.h <<_ACEOF
17289 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17290 _ACEOF
17291
17292 fi
17293 done
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17312 $as_echo_n "checking for working mktime... " >&6; }
17313 if test "${ac_cv_func_working_mktime+set}" = set; then
17314 $as_echo_n "(cached) " >&6
17315 else
17316 if test "$cross_compiling" = yes; then
17317 ac_cv_func_working_mktime=no
17318 else
17319 cat >conftest.$ac_ext <<_ACEOF
17320 /* confdefs.h. */
17321 _ACEOF
17322 cat confdefs.h >>conftest.$ac_ext
17323 cat >>conftest.$ac_ext <<_ACEOF
17324 /* end confdefs.h. */
17325 /* Test program from Paul Eggert and Tony Leneis. */
17326 #ifdef TIME_WITH_SYS_TIME
17327 # include <sys/time.h>
17328 # include <time.h>
17329 #else
17330 # ifdef HAVE_SYS_TIME_H
17331 # include <sys/time.h>
17332 # else
17333 # include <time.h>
17334 # endif
17335 #endif
17336
17337 #include <limits.h>
17338 #include <stdlib.h>
17339
17340 #ifdef HAVE_UNISTD_H
17341 # include <unistd.h>
17342 #endif
17343
17344 #ifndef HAVE_ALARM
17345 # define alarm(X) /* empty */
17346 #endif
17347
17348 /* Work around redefinition to rpl_putenv by other config tests. */
17349 #undef putenv
17350
17351 static time_t time_t_max;
17352 static time_t time_t_min;
17353
17354 /* Values we'll use to set the TZ environment variable. */
17355 static char *tz_strings[] = {
17356 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17357 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17358 };
17359 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17360
17361 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17362 Based on a problem report from Andreas Jaeger. */
17363 static int
17364 spring_forward_gap ()
17365 {
17366 /* glibc (up to about 1998-10-07) failed this test. */
17367 struct tm tm;
17368
17369 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17370 instead of "TZ=America/Vancouver" in order to detect the bug even
17371 on systems that don't support the Olson extension, or don't have the
17372 full zoneinfo tables installed. */
17373 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17374
17375 tm.tm_year = 98;
17376 tm.tm_mon = 3;
17377 tm.tm_mday = 5;
17378 tm.tm_hour = 2;
17379 tm.tm_min = 0;
17380 tm.tm_sec = 0;
17381 tm.tm_isdst = -1;
17382 return mktime (&tm) != (time_t) -1;
17383 }
17384
17385 static int
17386 mktime_test1 (now)
17387 time_t now;
17388 {
17389 struct tm *lt;
17390 return ! (lt = localtime (&now)) || mktime (lt) == now;
17391 }
17392
17393 static int
17394 mktime_test (now)
17395 time_t now;
17396 {
17397 return (mktime_test1 (now)
17398 && mktime_test1 ((time_t) (time_t_max - now))
17399 && mktime_test1 ((time_t) (time_t_min + now)));
17400 }
17401
17402 static int
17403 irix_6_4_bug ()
17404 {
17405 /* Based on code from Ariel Faigon. */
17406 struct tm tm;
17407 tm.tm_year = 96;
17408 tm.tm_mon = 3;
17409 tm.tm_mday = 0;
17410 tm.tm_hour = 0;
17411 tm.tm_min = 0;
17412 tm.tm_sec = 0;
17413 tm.tm_isdst = -1;
17414 mktime (&tm);
17415 return tm.tm_mon == 2 && tm.tm_mday == 31;
17416 }
17417
17418 static int
17419 bigtime_test (j)
17420 int j;
17421 {
17422 struct tm tm;
17423 time_t now;
17424 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17425 now = mktime (&tm);
17426 if (now != (time_t) -1)
17427 {
17428 struct tm *lt = localtime (&now);
17429 if (! (lt
17430 && lt->tm_year == tm.tm_year
17431 && lt->tm_mon == tm.tm_mon
17432 && lt->tm_mday == tm.tm_mday
17433 && lt->tm_hour == tm.tm_hour
17434 && lt->tm_min == tm.tm_min
17435 && lt->tm_sec == tm.tm_sec
17436 && lt->tm_yday == tm.tm_yday
17437 && lt->tm_wday == tm.tm_wday
17438 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17439 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17440 return 0;
17441 }
17442 return 1;
17443 }
17444
17445 static int
17446 year_2050_test ()
17447 {
17448 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17449 ignoring leap seconds. */
17450 unsigned long int answer = 2527315200UL;
17451
17452 struct tm tm;
17453 time_t t;
17454 tm.tm_year = 2050 - 1900;
17455 tm.tm_mon = 2 - 1;
17456 tm.tm_mday = 1;
17457 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17458 tm.tm_isdst = -1;
17459
17460 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17461 instead of "TZ=America/Vancouver" in order to detect the bug even
17462 on systems that don't support the Olson extension, or don't have the
17463 full zoneinfo tables installed. */
17464 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17465
17466 t = mktime (&tm);
17467
17468 /* Check that the result is either a failure, or close enough
17469 to the correct answer that we can assume the discrepancy is
17470 due to leap seconds. */
17471 return (t == (time_t) -1
17472 || (0 < t && answer - 120 <= t && t <= answer + 120));
17473 }
17474
17475 int
17476 main ()
17477 {
17478 time_t t, delta;
17479 int i, j;
17480
17481 /* This test makes some buggy mktime implementations loop.
17482 Give up after 60 seconds; a mktime slower than that
17483 isn't worth using anyway. */
17484 alarm (60);
17485
17486 for (;;)
17487 {
17488 t = (time_t_max << 1) + 1;
17489 if (t <= time_t_max)
17490 break;
17491 time_t_max = t;
17492 }
17493 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17494
17495 delta = time_t_max / 997; /* a suitable prime number */
17496 for (i = 0; i < N_STRINGS; i++)
17497 {
17498 if (tz_strings[i])
17499 putenv (tz_strings[i]);
17500
17501 for (t = 0; t <= time_t_max - delta; t += delta)
17502 if (! mktime_test (t))
17503 return 1;
17504 if (! (mktime_test ((time_t) 1)
17505 && mktime_test ((time_t) (60 * 60))
17506 && mktime_test ((time_t) (60 * 60 * 24))))
17507 return 1;
17508
17509 for (j = 1; ; j <<= 1)
17510 if (! bigtime_test (j))
17511 return 1;
17512 else if (INT_MAX / 2 < j)
17513 break;
17514 if (! bigtime_test (INT_MAX))
17515 return 1;
17516 }
17517 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17518 }
17519 _ACEOF
17520 rm -f conftest$ac_exeext
17521 if { (ac_try="$ac_link"
17522 case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17525 esac
17526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17527 $as_echo "$ac_try_echo") >&5
17528 (eval "$ac_link") 2>&5
17529 ac_status=$?
17530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17532 { (case "(($ac_try" in
17533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534 *) ac_try_echo=$ac_try;;
17535 esac
17536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17537 $as_echo "$ac_try_echo") >&5
17538 (eval "$ac_try") 2>&5
17539 ac_status=$?
17540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
17542 ac_cv_func_working_mktime=yes
17543 else
17544 $as_echo "$as_me: program exited with status $ac_status" >&5
17545 $as_echo "$as_me: failed program was:" >&5
17546 sed 's/^/| /' conftest.$ac_ext >&5
17547
17548 ( exit $ac_status )
17549 ac_cv_func_working_mktime=no
17550 fi
17551 rm -rf conftest.dSYM
17552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17553 fi
17554
17555
17556 fi
17557 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17558 $as_echo "$ac_cv_func_working_mktime" >&6; }
17559 if test $ac_cv_func_working_mktime = no; then
17560 case " $LIBOBJS " in
17561 *" mktime.$ac_objext "* ) ;;
17562 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17563 ;;
17564 esac
17565
17566 fi
17567
17568 if test "$ac_cv_func_working_mktime" = no; then
17569
17570 cat >>confdefs.h <<\_ACEOF
17571 #define BROKEN_MKTIME 1
17572 _ACEOF
17573
17574 fi
17575
17576 ac_have_func=no # yes means we've found a way to get the load average.
17577
17578 # Make sure getloadavg.c is where it belongs, at configure-time.
17579 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17580 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17581 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17582 { (exit 1); exit 1; }; }
17583
17584 ac_save_LIBS=$LIBS
17585
17586 # Check for getloadavg, but be sure not to touch the cache variable.
17587 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
17588 $as_echo_n "checking for getloadavg... " >&6; }
17589 if test "${ac_cv_func_getloadavg+set}" = set; then
17590 $as_echo_n "(cached) " >&6
17591 else
17592 cat >conftest.$ac_ext <<_ACEOF
17593 /* confdefs.h. */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17600 #define getloadavg innocuous_getloadavg
17601
17602 /* System header to define __stub macros and hopefully few prototypes,
17603 which can conflict with char getloadavg (); below.
17604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17605 <limits.h> exists even on freestanding compilers. */
17606
17607 #ifdef __STDC__
17608 # include <limits.h>
17609 #else
17610 # include <assert.h>
17611 #endif
17612
17613 #undef getloadavg
17614
17615 /* Override any GCC internal prototype to avoid an error.
17616 Use char because int might match the return type of a GCC
17617 builtin and then its argument prototype would still apply. */
17618 #ifdef __cplusplus
17619 extern "C"
17620 #endif
17621 char getloadavg ();
17622 /* The GNU C library defines this for functions which it implements
17623 to always fail with ENOSYS. Some functions are actually named
17624 something starting with __ and the normal name is an alias. */
17625 #if defined __stub_getloadavg || defined __stub___getloadavg
17626 choke me
17627 #endif
17628
17629 int
17630 main ()
17631 {
17632 return getloadavg ();
17633 ;
17634 return 0;
17635 }
17636 _ACEOF
17637 rm -f conftest.$ac_objext conftest$ac_exeext
17638 if { (ac_try="$ac_link"
17639 case "(($ac_try" in
17640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17641 *) ac_try_echo=$ac_try;;
17642 esac
17643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17644 $as_echo "$ac_try_echo") >&5
17645 (eval "$ac_link") 2>conftest.er1
17646 ac_status=$?
17647 grep -v '^ *+' conftest.er1 >conftest.err
17648 rm -f conftest.er1
17649 cat conftest.err >&5
17650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } && {
17652 test -z "$ac_c_werror_flag" ||
17653 test ! -s conftest.err
17654 } && test -s conftest$ac_exeext && {
17655 test "$cross_compiling" = yes ||
17656 $as_test_x conftest$ac_exeext
17657 }; then
17658 ac_cv_func_getloadavg=yes
17659 else
17660 $as_echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17662
17663 ac_cv_func_getloadavg=no
17664 fi
17665
17666 rm -rf conftest.dSYM
17667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17668 conftest$ac_exeext conftest.$ac_ext
17669 fi
17670 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17671 $as_echo "$ac_cv_func_getloadavg" >&6; }
17672 if test $ac_cv_func_getloadavg = yes; then
17673 exit 0
17674 else
17675 exit 1
17676 fi
17677 ) && ac_have_func=yes
17678
17679 # On HPUX9, an unprivileged user can get load averages through this function.
17680
17681 for ac_func in pstat_getdynamic
17682 do
17683 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17684 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17685 $as_echo_n "checking for $ac_func... " >&6; }
17686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17687 $as_echo_n "(cached) " >&6
17688 else
17689 cat >conftest.$ac_ext <<_ACEOF
17690 /* confdefs.h. */
17691 _ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17697 #define $ac_func innocuous_$ac_func
17698
17699 /* System header to define __stub macros and hopefully few prototypes,
17700 which can conflict with char $ac_func (); below.
17701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17702 <limits.h> exists even on freestanding compilers. */
17703
17704 #ifdef __STDC__
17705 # include <limits.h>
17706 #else
17707 # include <assert.h>
17708 #endif
17709
17710 #undef $ac_func
17711
17712 /* Override any GCC internal prototype to avoid an error.
17713 Use char because int might match the return type of a GCC
17714 builtin and then its argument prototype would still apply. */
17715 #ifdef __cplusplus
17716 extern "C"
17717 #endif
17718 char $ac_func ();
17719 /* The GNU C library defines this for functions which it implements
17720 to always fail with ENOSYS. Some functions are actually named
17721 something starting with __ and the normal name is an alias. */
17722 #if defined __stub_$ac_func || defined __stub___$ac_func
17723 choke me
17724 #endif
17725
17726 int
17727 main ()
17728 {
17729 return $ac_func ();
17730 ;
17731 return 0;
17732 }
17733 _ACEOF
17734 rm -f conftest.$ac_objext conftest$ac_exeext
17735 if { (ac_try="$ac_link"
17736 case "(($ac_try" in
17737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17739 esac
17740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17741 $as_echo "$ac_try_echo") >&5
17742 (eval "$ac_link") 2>conftest.er1
17743 ac_status=$?
17744 grep -v '^ *+' conftest.er1 >conftest.err
17745 rm -f conftest.er1
17746 cat conftest.err >&5
17747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); } && {
17749 test -z "$ac_c_werror_flag" ||
17750 test ! -s conftest.err
17751 } && test -s conftest$ac_exeext && {
17752 test "$cross_compiling" = yes ||
17753 $as_test_x conftest$ac_exeext
17754 }; then
17755 eval "$as_ac_var=yes"
17756 else
17757 $as_echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17759
17760 eval "$as_ac_var=no"
17761 fi
17762
17763 rm -rf conftest.dSYM
17764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17765 conftest$ac_exeext conftest.$ac_ext
17766 fi
17767 ac_res=`eval 'as_val=${'$as_ac_var'}
17768 $as_echo "$as_val"'`
17769 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17770 $as_echo "$ac_res" >&6; }
17771 if test `eval 'as_val=${'$as_ac_var'}
17772 $as_echo "$as_val"'` = yes; then
17773 cat >>confdefs.h <<_ACEOF
17774 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17775 _ACEOF
17776
17777 fi
17778 done
17779
17780
17781 # Solaris has libkstat which does not require root.
17782
17783 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17784 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
17785 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17786 $as_echo_n "(cached) " >&6
17787 else
17788 ac_check_lib_save_LIBS=$LIBS
17789 LIBS="-lkstat $LIBS"
17790 cat >conftest.$ac_ext <<_ACEOF
17791 /* confdefs.h. */
17792 _ACEOF
17793 cat confdefs.h >>conftest.$ac_ext
17794 cat >>conftest.$ac_ext <<_ACEOF
17795 /* end confdefs.h. */
17796
17797 /* Override any GCC internal prototype to avoid an error.
17798 Use char because int might match the return type of a GCC
17799 builtin and then its argument prototype would still apply. */
17800 #ifdef __cplusplus
17801 extern "C"
17802 #endif
17803 char kstat_open ();
17804 int
17805 main ()
17806 {
17807 return kstat_open ();
17808 ;
17809 return 0;
17810 }
17811 _ACEOF
17812 rm -f conftest.$ac_objext conftest$ac_exeext
17813 if { (ac_try="$ac_link"
17814 case "(($ac_try" in
17815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17816 *) ac_try_echo=$ac_try;;
17817 esac
17818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17819 $as_echo "$ac_try_echo") >&5
17820 (eval "$ac_link") 2>conftest.er1
17821 ac_status=$?
17822 grep -v '^ *+' conftest.er1 >conftest.err
17823 rm -f conftest.er1
17824 cat conftest.err >&5
17825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); } && {
17827 test -z "$ac_c_werror_flag" ||
17828 test ! -s conftest.err
17829 } && test -s conftest$ac_exeext && {
17830 test "$cross_compiling" = yes ||
17831 $as_test_x conftest$ac_exeext
17832 }; then
17833 ac_cv_lib_kstat_kstat_open=yes
17834 else
17835 $as_echo "$as_me: failed program was:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17837
17838 ac_cv_lib_kstat_kstat_open=no
17839 fi
17840
17841 rm -rf conftest.dSYM
17842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17843 conftest$ac_exeext conftest.$ac_ext
17844 LIBS=$ac_check_lib_save_LIBS
17845 fi
17846 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17847 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
17848 if test $ac_cv_lib_kstat_kstat_open = yes; then
17849 cat >>confdefs.h <<_ACEOF
17850 #define HAVE_LIBKSTAT 1
17851 _ACEOF
17852
17853 LIBS="-lkstat $LIBS"
17854
17855 fi
17856
17857 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17858
17859 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17860 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17861 # to get the right answer into the cache.
17862 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17863 if test $ac_have_func = no; then
17864 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17865 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
17866 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17867 $as_echo_n "(cached) " >&6
17868 else
17869 ac_check_lib_save_LIBS=$LIBS
17870 LIBS="-lelf $LIBS"
17871 cat >conftest.$ac_ext <<_ACEOF
17872 /* confdefs.h. */
17873 _ACEOF
17874 cat confdefs.h >>conftest.$ac_ext
17875 cat >>conftest.$ac_ext <<_ACEOF
17876 /* end confdefs.h. */
17877
17878 /* Override any GCC internal prototype to avoid an error.
17879 Use char because int might match the return type of a GCC
17880 builtin and then its argument prototype would still apply. */
17881 #ifdef __cplusplus
17882 extern "C"
17883 #endif
17884 char elf_begin ();
17885 int
17886 main ()
17887 {
17888 return elf_begin ();
17889 ;
17890 return 0;
17891 }
17892 _ACEOF
17893 rm -f conftest.$ac_objext conftest$ac_exeext
17894 if { (ac_try="$ac_link"
17895 case "(($ac_try" in
17896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17897 *) ac_try_echo=$ac_try;;
17898 esac
17899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17900 $as_echo "$ac_try_echo") >&5
17901 (eval "$ac_link") 2>conftest.er1
17902 ac_status=$?
17903 grep -v '^ *+' conftest.er1 >conftest.err
17904 rm -f conftest.er1
17905 cat conftest.err >&5
17906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } && {
17908 test -z "$ac_c_werror_flag" ||
17909 test ! -s conftest.err
17910 } && test -s conftest$ac_exeext && {
17911 test "$cross_compiling" = yes ||
17912 $as_test_x conftest$ac_exeext
17913 }; then
17914 ac_cv_lib_elf_elf_begin=yes
17915 else
17916 $as_echo "$as_me: failed program was:" >&5
17917 sed 's/^/| /' conftest.$ac_ext >&5
17918
17919 ac_cv_lib_elf_elf_begin=no
17920 fi
17921
17922 rm -rf conftest.dSYM
17923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17924 conftest$ac_exeext conftest.$ac_ext
17925 LIBS=$ac_check_lib_save_LIBS
17926 fi
17927 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17928 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
17929 if test $ac_cv_lib_elf_elf_begin = yes; then
17930 LIBS="-lelf $LIBS"
17931 fi
17932
17933 fi
17934 if test $ac_have_func = no; then
17935 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17936 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
17937 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17938 $as_echo_n "(cached) " >&6
17939 else
17940 ac_check_lib_save_LIBS=$LIBS
17941 LIBS="-lkvm $LIBS"
17942 cat >conftest.$ac_ext <<_ACEOF
17943 /* confdefs.h. */
17944 _ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h. */
17948
17949 /* Override any GCC internal prototype to avoid an error.
17950 Use char because int might match the return type of a GCC
17951 builtin and then its argument prototype would still apply. */
17952 #ifdef __cplusplus
17953 extern "C"
17954 #endif
17955 char kvm_open ();
17956 int
17957 main ()
17958 {
17959 return kvm_open ();
17960 ;
17961 return 0;
17962 }
17963 _ACEOF
17964 rm -f conftest.$ac_objext conftest$ac_exeext
17965 if { (ac_try="$ac_link"
17966 case "(($ac_try" in
17967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17968 *) ac_try_echo=$ac_try;;
17969 esac
17970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17971 $as_echo "$ac_try_echo") >&5
17972 (eval "$ac_link") 2>conftest.er1
17973 ac_status=$?
17974 grep -v '^ *+' conftest.er1 >conftest.err
17975 rm -f conftest.er1
17976 cat conftest.err >&5
17977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); } && {
17979 test -z "$ac_c_werror_flag" ||
17980 test ! -s conftest.err
17981 } && test -s conftest$ac_exeext && {
17982 test "$cross_compiling" = yes ||
17983 $as_test_x conftest$ac_exeext
17984 }; then
17985 ac_cv_lib_kvm_kvm_open=yes
17986 else
17987 $as_echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17989
17990 ac_cv_lib_kvm_kvm_open=no
17991 fi
17992
17993 rm -rf conftest.dSYM
17994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17995 conftest$ac_exeext conftest.$ac_ext
17996 LIBS=$ac_check_lib_save_LIBS
17997 fi
17998 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17999 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18000 if test $ac_cv_lib_kvm_kvm_open = yes; then
18001 LIBS="-lkvm $LIBS"
18002 fi
18003
18004 # Check for the 4.4BSD definition of getloadavg.
18005 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18006 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18007 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18008 $as_echo_n "(cached) " >&6
18009 else
18010 ac_check_lib_save_LIBS=$LIBS
18011 LIBS="-lutil $LIBS"
18012 cat >conftest.$ac_ext <<_ACEOF
18013 /* confdefs.h. */
18014 _ACEOF
18015 cat confdefs.h >>conftest.$ac_ext
18016 cat >>conftest.$ac_ext <<_ACEOF
18017 /* end confdefs.h. */
18018
18019 /* Override any GCC internal prototype to avoid an error.
18020 Use char because int might match the return type of a GCC
18021 builtin and then its argument prototype would still apply. */
18022 #ifdef __cplusplus
18023 extern "C"
18024 #endif
18025 char getloadavg ();
18026 int
18027 main ()
18028 {
18029 return getloadavg ();
18030 ;
18031 return 0;
18032 }
18033 _ACEOF
18034 rm -f conftest.$ac_objext conftest$ac_exeext
18035 if { (ac_try="$ac_link"
18036 case "(($ac_try" in
18037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038 *) ac_try_echo=$ac_try;;
18039 esac
18040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18041 $as_echo "$ac_try_echo") >&5
18042 (eval "$ac_link") 2>conftest.er1
18043 ac_status=$?
18044 grep -v '^ *+' conftest.er1 >conftest.err
18045 rm -f conftest.er1
18046 cat conftest.err >&5
18047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } && {
18049 test -z "$ac_c_werror_flag" ||
18050 test ! -s conftest.err
18051 } && test -s conftest$ac_exeext && {
18052 test "$cross_compiling" = yes ||
18053 $as_test_x conftest$ac_exeext
18054 }; then
18055 ac_cv_lib_util_getloadavg=yes
18056 else
18057 $as_echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18059
18060 ac_cv_lib_util_getloadavg=no
18061 fi
18062
18063 rm -rf conftest.dSYM
18064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18065 conftest$ac_exeext conftest.$ac_ext
18066 LIBS=$ac_check_lib_save_LIBS
18067 fi
18068 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18069 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18070 if test $ac_cv_lib_util_getloadavg = yes; then
18071 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18072 fi
18073
18074 fi
18075
18076 if test $ac_have_func = no; then
18077 # There is a commonly available library for RS/6000 AIX.
18078 # Since it is not a standard part of AIX, it might be installed locally.
18079 ac_getloadavg_LIBS=$LIBS
18080 LIBS="-L/usr/local/lib $LIBS"
18081 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18082 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18083 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18084 $as_echo_n "(cached) " >&6
18085 else
18086 ac_check_lib_save_LIBS=$LIBS
18087 LIBS="-lgetloadavg $LIBS"
18088 cat >conftest.$ac_ext <<_ACEOF
18089 /* confdefs.h. */
18090 _ACEOF
18091 cat confdefs.h >>conftest.$ac_ext
18092 cat >>conftest.$ac_ext <<_ACEOF
18093 /* end confdefs.h. */
18094
18095 /* Override any GCC internal prototype to avoid an error.
18096 Use char because int might match the return type of a GCC
18097 builtin and then its argument prototype would still apply. */
18098 #ifdef __cplusplus
18099 extern "C"
18100 #endif
18101 char getloadavg ();
18102 int
18103 main ()
18104 {
18105 return getloadavg ();
18106 ;
18107 return 0;
18108 }
18109 _ACEOF
18110 rm -f conftest.$ac_objext conftest$ac_exeext
18111 if { (ac_try="$ac_link"
18112 case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18115 esac
18116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18117 $as_echo "$ac_try_echo") >&5
18118 (eval "$ac_link") 2>conftest.er1
18119 ac_status=$?
18120 grep -v '^ *+' conftest.er1 >conftest.err
18121 rm -f conftest.er1
18122 cat conftest.err >&5
18123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } && {
18125 test -z "$ac_c_werror_flag" ||
18126 test ! -s conftest.err
18127 } && test -s conftest$ac_exeext && {
18128 test "$cross_compiling" = yes ||
18129 $as_test_x conftest$ac_exeext
18130 }; then
18131 ac_cv_lib_getloadavg_getloadavg=yes
18132 else
18133 $as_echo "$as_me: failed program was:" >&5
18134 sed 's/^/| /' conftest.$ac_ext >&5
18135
18136 ac_cv_lib_getloadavg_getloadavg=no
18137 fi
18138
18139 rm -rf conftest.dSYM
18140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18141 conftest$ac_exeext conftest.$ac_ext
18142 LIBS=$ac_check_lib_save_LIBS
18143 fi
18144 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18145 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18146 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18147 LIBS="-lgetloadavg $LIBS"
18148 else
18149 LIBS=$ac_getloadavg_LIBS
18150 fi
18151
18152 fi
18153
18154 # Make sure it is really in the library, if we think we found it,
18155 # otherwise set up the replacement function.
18156
18157 for ac_func in getloadavg
18158 do
18159 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18160 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18161 $as_echo_n "checking for $ac_func... " >&6; }
18162 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18163 $as_echo_n "(cached) " >&6
18164 else
18165 cat >conftest.$ac_ext <<_ACEOF
18166 /* confdefs.h. */
18167 _ACEOF
18168 cat confdefs.h >>conftest.$ac_ext
18169 cat >>conftest.$ac_ext <<_ACEOF
18170 /* end confdefs.h. */
18171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18173 #define $ac_func innocuous_$ac_func
18174
18175 /* System header to define __stub macros and hopefully few prototypes,
18176 which can conflict with char $ac_func (); below.
18177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18178 <limits.h> exists even on freestanding compilers. */
18179
18180 #ifdef __STDC__
18181 # include <limits.h>
18182 #else
18183 # include <assert.h>
18184 #endif
18185
18186 #undef $ac_func
18187
18188 /* Override any GCC internal prototype to avoid an error.
18189 Use char because int might match the return type of a GCC
18190 builtin and then its argument prototype would still apply. */
18191 #ifdef __cplusplus
18192 extern "C"
18193 #endif
18194 char $ac_func ();
18195 /* The GNU C library defines this for functions which it implements
18196 to always fail with ENOSYS. Some functions are actually named
18197 something starting with __ and the normal name is an alias. */
18198 #if defined __stub_$ac_func || defined __stub___$ac_func
18199 choke me
18200 #endif
18201
18202 int
18203 main ()
18204 {
18205 return $ac_func ();
18206 ;
18207 return 0;
18208 }
18209 _ACEOF
18210 rm -f conftest.$ac_objext conftest$ac_exeext
18211 if { (ac_try="$ac_link"
18212 case "(($ac_try" in
18213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214 *) ac_try_echo=$ac_try;;
18215 esac
18216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18217 $as_echo "$ac_try_echo") >&5
18218 (eval "$ac_link") 2>conftest.er1
18219 ac_status=$?
18220 grep -v '^ *+' conftest.er1 >conftest.err
18221 rm -f conftest.er1
18222 cat conftest.err >&5
18223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); } && {
18225 test -z "$ac_c_werror_flag" ||
18226 test ! -s conftest.err
18227 } && test -s conftest$ac_exeext && {
18228 test "$cross_compiling" = yes ||
18229 $as_test_x conftest$ac_exeext
18230 }; then
18231 eval "$as_ac_var=yes"
18232 else
18233 $as_echo "$as_me: failed program was:" >&5
18234 sed 's/^/| /' conftest.$ac_ext >&5
18235
18236 eval "$as_ac_var=no"
18237 fi
18238
18239 rm -rf conftest.dSYM
18240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18241 conftest$ac_exeext conftest.$ac_ext
18242 fi
18243 ac_res=`eval 'as_val=${'$as_ac_var'}
18244 $as_echo "$as_val"'`
18245 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18246 $as_echo "$ac_res" >&6; }
18247 if test `eval 'as_val=${'$as_ac_var'}
18248 $as_echo "$as_val"'` = yes; then
18249 cat >>confdefs.h <<_ACEOF
18250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18251 _ACEOF
18252
18253 else
18254 case " $LIBOBJS " in
18255 *" getloadavg.$ac_objext "* ) ;;
18256 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18257 ;;
18258 esac
18259
18260
18261 cat >>confdefs.h <<\_ACEOF
18262 #define C_GETLOADAVG 1
18263 _ACEOF
18264
18265 # Figure out what our getloadavg.c needs.
18266 ac_have_func=no
18267 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18268 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18269 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18270 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18271 $as_echo_n "(cached) " >&6
18272 fi
18273 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18274 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18275 else
18276 # Is the header compilable?
18277 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18278 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18279 cat >conftest.$ac_ext <<_ACEOF
18280 /* confdefs.h. */
18281 _ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h. */
18285 $ac_includes_default
18286 #include <sys/dg_sys_info.h>
18287 _ACEOF
18288 rm -f conftest.$ac_objext
18289 if { (ac_try="$ac_compile"
18290 case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18293 esac
18294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18295 $as_echo "$ac_try_echo") >&5
18296 (eval "$ac_compile") 2>conftest.er1
18297 ac_status=$?
18298 grep -v '^ *+' conftest.er1 >conftest.err
18299 rm -f conftest.er1
18300 cat conftest.err >&5
18301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); } && {
18303 test -z "$ac_c_werror_flag" ||
18304 test ! -s conftest.err
18305 } && test -s conftest.$ac_objext; then
18306 ac_header_compiler=yes
18307 else
18308 $as_echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18310
18311 ac_header_compiler=no
18312 fi
18313
18314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18315 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18316 $as_echo "$ac_header_compiler" >&6; }
18317
18318 # Is the header present?
18319 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18320 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18321 cat >conftest.$ac_ext <<_ACEOF
18322 /* confdefs.h. */
18323 _ACEOF
18324 cat confdefs.h >>conftest.$ac_ext
18325 cat >>conftest.$ac_ext <<_ACEOF
18326 /* end confdefs.h. */
18327 #include <sys/dg_sys_info.h>
18328 _ACEOF
18329 if { (ac_try="$ac_cpp conftest.$ac_ext"
18330 case "(($ac_try" in
18331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332 *) ac_try_echo=$ac_try;;
18333 esac
18334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18335 $as_echo "$ac_try_echo") >&5
18336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18337 ac_status=$?
18338 grep -v '^ *+' conftest.er1 >conftest.err
18339 rm -f conftest.er1
18340 cat conftest.err >&5
18341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); } >/dev/null && {
18343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18344 test ! -s conftest.err
18345 }; then
18346 ac_header_preproc=yes
18347 else
18348 $as_echo "$as_me: failed program was:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18350
18351 ac_header_preproc=no
18352 fi
18353
18354 rm -f conftest.err conftest.$ac_ext
18355 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18356 $as_echo "$ac_header_preproc" >&6; }
18357
18358 # So? What about this header?
18359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18360 yes:no: )
18361 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18362 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18363 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18364 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18365 ac_header_preproc=yes
18366 ;;
18367 no:yes:* )
18368 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18369 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18370 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18371 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18372 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18373 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18374 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18375 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18376 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18377 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18378 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18379 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18380
18381 ;;
18382 esac
18383 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18384 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18385 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18386 $as_echo_n "(cached) " >&6
18387 else
18388 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18389 fi
18390 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18391 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18392
18393 fi
18394 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18395 ac_have_func=yes
18396
18397 cat >>confdefs.h <<\_ACEOF
18398 #define DGUX 1
18399 _ACEOF
18400
18401
18402 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18403 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18404 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18405 $as_echo_n "(cached) " >&6
18406 else
18407 ac_check_lib_save_LIBS=$LIBS
18408 LIBS="-ldgc $LIBS"
18409 cat >conftest.$ac_ext <<_ACEOF
18410 /* confdefs.h. */
18411 _ACEOF
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h. */
18415
18416 /* Override any GCC internal prototype to avoid an error.
18417 Use char because int might match the return type of a GCC
18418 builtin and then its argument prototype would still apply. */
18419 #ifdef __cplusplus
18420 extern "C"
18421 #endif
18422 char dg_sys_info ();
18423 int
18424 main ()
18425 {
18426 return dg_sys_info ();
18427 ;
18428 return 0;
18429 }
18430 _ACEOF
18431 rm -f conftest.$ac_objext conftest$ac_exeext
18432 if { (ac_try="$ac_link"
18433 case "(($ac_try" in
18434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435 *) ac_try_echo=$ac_try;;
18436 esac
18437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18438 $as_echo "$ac_try_echo") >&5
18439 (eval "$ac_link") 2>conftest.er1
18440 ac_status=$?
18441 grep -v '^ *+' conftest.er1 >conftest.err
18442 rm -f conftest.er1
18443 cat conftest.err >&5
18444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); } && {
18446 test -z "$ac_c_werror_flag" ||
18447 test ! -s conftest.err
18448 } && test -s conftest$ac_exeext && {
18449 test "$cross_compiling" = yes ||
18450 $as_test_x conftest$ac_exeext
18451 }; then
18452 ac_cv_lib_dgc_dg_sys_info=yes
18453 else
18454 $as_echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18456
18457 ac_cv_lib_dgc_dg_sys_info=no
18458 fi
18459
18460 rm -rf conftest.dSYM
18461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18462 conftest$ac_exeext conftest.$ac_ext
18463 LIBS=$ac_check_lib_save_LIBS
18464 fi
18465 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18466 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18467 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18468 cat >>confdefs.h <<_ACEOF
18469 #define HAVE_LIBDGC 1
18470 _ACEOF
18471
18472 LIBS="-ldgc $LIBS"
18473
18474 fi
18475
18476 fi
18477
18478
18479
18480 if test "${ac_cv_header_locale_h+set}" = set; then
18481 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18482 $as_echo_n "checking for locale.h... " >&6; }
18483 if test "${ac_cv_header_locale_h+set}" = set; then
18484 $as_echo_n "(cached) " >&6
18485 fi
18486 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18487 $as_echo "$ac_cv_header_locale_h" >&6; }
18488 else
18489 # Is the header compilable?
18490 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
18491 $as_echo_n "checking locale.h usability... " >&6; }
18492 cat >conftest.$ac_ext <<_ACEOF
18493 /* confdefs.h. */
18494 _ACEOF
18495 cat confdefs.h >>conftest.$ac_ext
18496 cat >>conftest.$ac_ext <<_ACEOF
18497 /* end confdefs.h. */
18498 $ac_includes_default
18499 #include <locale.h>
18500 _ACEOF
18501 rm -f conftest.$ac_objext
18502 if { (ac_try="$ac_compile"
18503 case "(($ac_try" in
18504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505 *) ac_try_echo=$ac_try;;
18506 esac
18507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18508 $as_echo "$ac_try_echo") >&5
18509 (eval "$ac_compile") 2>conftest.er1
18510 ac_status=$?
18511 grep -v '^ *+' conftest.er1 >conftest.err
18512 rm -f conftest.er1
18513 cat conftest.err >&5
18514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); } && {
18516 test -z "$ac_c_werror_flag" ||
18517 test ! -s conftest.err
18518 } && test -s conftest.$ac_objext; then
18519 ac_header_compiler=yes
18520 else
18521 $as_echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18523
18524 ac_header_compiler=no
18525 fi
18526
18527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18528 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18529 $as_echo "$ac_header_compiler" >&6; }
18530
18531 # Is the header present?
18532 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
18533 $as_echo_n "checking locale.h presence... " >&6; }
18534 cat >conftest.$ac_ext <<_ACEOF
18535 /* confdefs.h. */
18536 _ACEOF
18537 cat confdefs.h >>conftest.$ac_ext
18538 cat >>conftest.$ac_ext <<_ACEOF
18539 /* end confdefs.h. */
18540 #include <locale.h>
18541 _ACEOF
18542 if { (ac_try="$ac_cpp conftest.$ac_ext"
18543 case "(($ac_try" in
18544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18545 *) ac_try_echo=$ac_try;;
18546 esac
18547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18548 $as_echo "$ac_try_echo") >&5
18549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18550 ac_status=$?
18551 grep -v '^ *+' conftest.er1 >conftest.err
18552 rm -f conftest.er1
18553 cat conftest.err >&5
18554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); } >/dev/null && {
18556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18557 test ! -s conftest.err
18558 }; then
18559 ac_header_preproc=yes
18560 else
18561 $as_echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.$ac_ext >&5
18563
18564 ac_header_preproc=no
18565 fi
18566
18567 rm -f conftest.err conftest.$ac_ext
18568 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18569 $as_echo "$ac_header_preproc" >&6; }
18570
18571 # So? What about this header?
18572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18573 yes:no: )
18574 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18575 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18576 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18577 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18578 ac_header_preproc=yes
18579 ;;
18580 no:yes:* )
18581 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18582 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18583 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18584 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18585 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18586 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18587 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18588 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18589 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18590 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18591 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18592 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18593
18594 ;;
18595 esac
18596 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18597 $as_echo_n "checking for locale.h... " >&6; }
18598 if test "${ac_cv_header_locale_h+set}" = set; then
18599 $as_echo_n "(cached) " >&6
18600 else
18601 ac_cv_header_locale_h=$ac_header_preproc
18602 fi
18603 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18604 $as_echo "$ac_cv_header_locale_h" >&6; }
18605
18606 fi
18607
18608
18609
18610 for ac_func in setlocale
18611 do
18612 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18613 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18614 $as_echo_n "checking for $ac_func... " >&6; }
18615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18616 $as_echo_n "(cached) " >&6
18617 else
18618 cat >conftest.$ac_ext <<_ACEOF
18619 /* confdefs.h. */
18620 _ACEOF
18621 cat confdefs.h >>conftest.$ac_ext
18622 cat >>conftest.$ac_ext <<_ACEOF
18623 /* end confdefs.h. */
18624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18626 #define $ac_func innocuous_$ac_func
18627
18628 /* System header to define __stub macros and hopefully few prototypes,
18629 which can conflict with char $ac_func (); below.
18630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18631 <limits.h> exists even on freestanding compilers. */
18632
18633 #ifdef __STDC__
18634 # include <limits.h>
18635 #else
18636 # include <assert.h>
18637 #endif
18638
18639 #undef $ac_func
18640
18641 /* Override any GCC internal prototype to avoid an error.
18642 Use char because int might match the return type of a GCC
18643 builtin and then its argument prototype would still apply. */
18644 #ifdef __cplusplus
18645 extern "C"
18646 #endif
18647 char $ac_func ();
18648 /* The GNU C library defines this for functions which it implements
18649 to always fail with ENOSYS. Some functions are actually named
18650 something starting with __ and the normal name is an alias. */
18651 #if defined __stub_$ac_func || defined __stub___$ac_func
18652 choke me
18653 #endif
18654
18655 int
18656 main ()
18657 {
18658 return $ac_func ();
18659 ;
18660 return 0;
18661 }
18662 _ACEOF
18663 rm -f conftest.$ac_objext conftest$ac_exeext
18664 if { (ac_try="$ac_link"
18665 case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18668 esac
18669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18670 $as_echo "$ac_try_echo") >&5
18671 (eval "$ac_link") 2>conftest.er1
18672 ac_status=$?
18673 grep -v '^ *+' conftest.er1 >conftest.err
18674 rm -f conftest.er1
18675 cat conftest.err >&5
18676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } && {
18678 test -z "$ac_c_werror_flag" ||
18679 test ! -s conftest.err
18680 } && test -s conftest$ac_exeext && {
18681 test "$cross_compiling" = yes ||
18682 $as_test_x conftest$ac_exeext
18683 }; then
18684 eval "$as_ac_var=yes"
18685 else
18686 $as_echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18688
18689 eval "$as_ac_var=no"
18690 fi
18691
18692 rm -rf conftest.dSYM
18693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18694 conftest$ac_exeext conftest.$ac_ext
18695 fi
18696 ac_res=`eval 'as_val=${'$as_ac_var'}
18697 $as_echo "$as_val"'`
18698 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18699 $as_echo "$ac_res" >&6; }
18700 if test `eval 'as_val=${'$as_ac_var'}
18701 $as_echo "$as_val"'` = yes; then
18702 cat >>confdefs.h <<_ACEOF
18703 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18704 _ACEOF
18705
18706 fi
18707 done
18708
18709
18710 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18711 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18712 # Irix 4.0.5F has the header but not the library.
18713 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18714 ac_have_func=yes
18715
18716 cat >>confdefs.h <<\_ACEOF
18717 #define SVR4 1
18718 _ACEOF
18719
18720 fi
18721
18722 if test $ac_have_func = no; then
18723 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18724 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18725 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18726 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18727 $as_echo_n "(cached) " >&6
18728 fi
18729 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18730 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18731 else
18732 # Is the header compilable?
18733 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18734 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
18735 cat >conftest.$ac_ext <<_ACEOF
18736 /* confdefs.h. */
18737 _ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h. */
18741 $ac_includes_default
18742 #include <inq_stats/cpustats.h>
18743 _ACEOF
18744 rm -f conftest.$ac_objext
18745 if { (ac_try="$ac_compile"
18746 case "(($ac_try" in
18747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18748 *) ac_try_echo=$ac_try;;
18749 esac
18750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18751 $as_echo "$ac_try_echo") >&5
18752 (eval "$ac_compile") 2>conftest.er1
18753 ac_status=$?
18754 grep -v '^ *+' conftest.er1 >conftest.err
18755 rm -f conftest.er1
18756 cat conftest.err >&5
18757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } && {
18759 test -z "$ac_c_werror_flag" ||
18760 test ! -s conftest.err
18761 } && test -s conftest.$ac_objext; then
18762 ac_header_compiler=yes
18763 else
18764 $as_echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.$ac_ext >&5
18766
18767 ac_header_compiler=no
18768 fi
18769
18770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18771 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18772 $as_echo "$ac_header_compiler" >&6; }
18773
18774 # Is the header present?
18775 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18776 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
18777 cat >conftest.$ac_ext <<_ACEOF
18778 /* confdefs.h. */
18779 _ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h. */
18783 #include <inq_stats/cpustats.h>
18784 _ACEOF
18785 if { (ac_try="$ac_cpp conftest.$ac_ext"
18786 case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18789 esac
18790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18791 $as_echo "$ac_try_echo") >&5
18792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18793 ac_status=$?
18794 grep -v '^ *+' conftest.er1 >conftest.err
18795 rm -f conftest.er1
18796 cat conftest.err >&5
18797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } >/dev/null && {
18799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18800 test ! -s conftest.err
18801 }; then
18802 ac_header_preproc=yes
18803 else
18804 $as_echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18806
18807 ac_header_preproc=no
18808 fi
18809
18810 rm -f conftest.err conftest.$ac_ext
18811 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18812 $as_echo "$ac_header_preproc" >&6; }
18813
18814 # So? What about this header?
18815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18816 yes:no: )
18817 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18818 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18819 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18820 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18821 ac_header_preproc=yes
18822 ;;
18823 no:yes:* )
18824 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18825 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18826 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18827 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18828 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18829 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18830 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18831 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18832 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18833 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18834 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18835 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18836
18837 ;;
18838 esac
18839 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18840 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18841 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18842 $as_echo_n "(cached) " >&6
18843 else
18844 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18845 fi
18846 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18847 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18848
18849 fi
18850 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18851 ac_have_func=yes
18852
18853 cat >>confdefs.h <<\_ACEOF
18854 #define UMAX 1
18855 _ACEOF
18856
18857
18858 cat >>confdefs.h <<\_ACEOF
18859 #define UMAX4_3 1
18860 _ACEOF
18861
18862 fi
18863
18864
18865 fi
18866
18867 if test $ac_have_func = no; then
18868 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18869 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18870 $as_echo_n "checking for sys/cpustats.h... " >&6; }
18871 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18872 $as_echo_n "(cached) " >&6
18873 fi
18874 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18875 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
18876 else
18877 # Is the header compilable?
18878 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18879 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
18880 cat >conftest.$ac_ext <<_ACEOF
18881 /* confdefs.h. */
18882 _ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18886 $ac_includes_default
18887 #include <sys/cpustats.h>
18888 _ACEOF
18889 rm -f conftest.$ac_objext
18890 if { (ac_try="$ac_compile"
18891 case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18894 esac
18895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18896 $as_echo "$ac_try_echo") >&5
18897 (eval "$ac_compile") 2>conftest.er1
18898 ac_status=$?
18899 grep -v '^ *+' conftest.er1 >conftest.err
18900 rm -f conftest.er1
18901 cat conftest.err >&5
18902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } && {
18904 test -z "$ac_c_werror_flag" ||
18905 test ! -s conftest.err
18906 } && test -s conftest.$ac_objext; then
18907 ac_header_compiler=yes
18908 else
18909 $as_echo "$as_me: failed program was:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18911
18912 ac_header_compiler=no
18913 fi
18914
18915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18916 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18917 $as_echo "$ac_header_compiler" >&6; }
18918
18919 # Is the header present?
18920 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18921 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
18922 cat >conftest.$ac_ext <<_ACEOF
18923 /* confdefs.h. */
18924 _ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18928 #include <sys/cpustats.h>
18929 _ACEOF
18930 if { (ac_try="$ac_cpp conftest.$ac_ext"
18931 case "(($ac_try" in
18932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18933 *) ac_try_echo=$ac_try;;
18934 esac
18935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18936 $as_echo "$ac_try_echo") >&5
18937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18938 ac_status=$?
18939 grep -v '^ *+' conftest.er1 >conftest.err
18940 rm -f conftest.er1
18941 cat conftest.err >&5
18942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } >/dev/null && {
18944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18945 test ! -s conftest.err
18946 }; then
18947 ac_header_preproc=yes
18948 else
18949 $as_echo "$as_me: failed program was:" >&5
18950 sed 's/^/| /' conftest.$ac_ext >&5
18951
18952 ac_header_preproc=no
18953 fi
18954
18955 rm -f conftest.err conftest.$ac_ext
18956 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18957 $as_echo "$ac_header_preproc" >&6; }
18958
18959 # So? What about this header?
18960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18961 yes:no: )
18962 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18963 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18964 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18965 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18966 ac_header_preproc=yes
18967 ;;
18968 no:yes:* )
18969 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18970 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18971 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18972 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18973 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18974 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18975 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18976 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18977 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18978 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18979 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18980 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18981
18982 ;;
18983 esac
18984 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18985 $as_echo_n "checking for sys/cpustats.h... " >&6; }
18986 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18987 $as_echo_n "(cached) " >&6
18988 else
18989 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18990 fi
18991 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18992 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
18993
18994 fi
18995 if test $ac_cv_header_sys_cpustats_h = yes; then
18996 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18997 #define UMAX 1
18998 _ACEOF
18999
19000 fi
19001
19002
19003 fi
19004
19005 if test $ac_have_func = no; then
19006
19007 for ac_header in mach/mach.h
19008 do
19009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19011 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19012 $as_echo_n "checking for $ac_header... " >&6; }
19013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19014 $as_echo_n "(cached) " >&6
19015 fi
19016 ac_res=`eval 'as_val=${'$as_ac_Header'}
19017 $as_echo "$as_val"'`
19018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19019 $as_echo "$ac_res" >&6; }
19020 else
19021 # Is the header compilable?
19022 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19023 $as_echo_n "checking $ac_header usability... " >&6; }
19024 cat >conftest.$ac_ext <<_ACEOF
19025 /* confdefs.h. */
19026 _ACEOF
19027 cat confdefs.h >>conftest.$ac_ext
19028 cat >>conftest.$ac_ext <<_ACEOF
19029 /* end confdefs.h. */
19030 $ac_includes_default
19031 #include <$ac_header>
19032 _ACEOF
19033 rm -f conftest.$ac_objext
19034 if { (ac_try="$ac_compile"
19035 case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19038 esac
19039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19040 $as_echo "$ac_try_echo") >&5
19041 (eval "$ac_compile") 2>conftest.er1
19042 ac_status=$?
19043 grep -v '^ *+' conftest.er1 >conftest.err
19044 rm -f conftest.er1
19045 cat conftest.err >&5
19046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); } && {
19048 test -z "$ac_c_werror_flag" ||
19049 test ! -s conftest.err
19050 } && test -s conftest.$ac_objext; then
19051 ac_header_compiler=yes
19052 else
19053 $as_echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19055
19056 ac_header_compiler=no
19057 fi
19058
19059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19060 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19061 $as_echo "$ac_header_compiler" >&6; }
19062
19063 # Is the header present?
19064 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19065 $as_echo_n "checking $ac_header presence... " >&6; }
19066 cat >conftest.$ac_ext <<_ACEOF
19067 /* confdefs.h. */
19068 _ACEOF
19069 cat confdefs.h >>conftest.$ac_ext
19070 cat >>conftest.$ac_ext <<_ACEOF
19071 /* end confdefs.h. */
19072 #include <$ac_header>
19073 _ACEOF
19074 if { (ac_try="$ac_cpp conftest.$ac_ext"
19075 case "(($ac_try" in
19076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19077 *) ac_try_echo=$ac_try;;
19078 esac
19079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19080 $as_echo "$ac_try_echo") >&5
19081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19082 ac_status=$?
19083 grep -v '^ *+' conftest.er1 >conftest.err
19084 rm -f conftest.er1
19085 cat conftest.err >&5
19086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); } >/dev/null && {
19088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19089 test ! -s conftest.err
19090 }; then
19091 ac_header_preproc=yes
19092 else
19093 $as_echo "$as_me: failed program was:" >&5
19094 sed 's/^/| /' conftest.$ac_ext >&5
19095
19096 ac_header_preproc=no
19097 fi
19098
19099 rm -f conftest.err conftest.$ac_ext
19100 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19101 $as_echo "$ac_header_preproc" >&6; }
19102
19103 # So? What about this header?
19104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19105 yes:no: )
19106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19107 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19109 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19110 ac_header_preproc=yes
19111 ;;
19112 no:yes:* )
19113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19114 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19116 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19118 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19120 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19122 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19124 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19125
19126 ;;
19127 esac
19128 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19129 $as_echo_n "checking for $ac_header... " >&6; }
19130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19131 $as_echo_n "(cached) " >&6
19132 else
19133 eval "$as_ac_Header=\$ac_header_preproc"
19134 fi
19135 ac_res=`eval 'as_val=${'$as_ac_Header'}
19136 $as_echo "$as_val"'`
19137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19138 $as_echo "$ac_res" >&6; }
19139
19140 fi
19141 if test `eval 'as_val=${'$as_ac_Header'}
19142 $as_echo "$as_val"'` = yes; then
19143 cat >>confdefs.h <<_ACEOF
19144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19145 _ACEOF
19146
19147 fi
19148
19149 done
19150
19151 fi
19152
19153
19154 for ac_header in nlist.h
19155 do
19156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19158 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19159 $as_echo_n "checking for $ac_header... " >&6; }
19160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19161 $as_echo_n "(cached) " >&6
19162 fi
19163 ac_res=`eval 'as_val=${'$as_ac_Header'}
19164 $as_echo "$as_val"'`
19165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19166 $as_echo "$ac_res" >&6; }
19167 else
19168 # Is the header compilable?
19169 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19170 $as_echo_n "checking $ac_header usability... " >&6; }
19171 cat >conftest.$ac_ext <<_ACEOF
19172 /* confdefs.h. */
19173 _ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h. */
19177 $ac_includes_default
19178 #include <$ac_header>
19179 _ACEOF
19180 rm -f conftest.$ac_objext
19181 if { (ac_try="$ac_compile"
19182 case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19185 esac
19186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19187 $as_echo "$ac_try_echo") >&5
19188 (eval "$ac_compile") 2>conftest.er1
19189 ac_status=$?
19190 grep -v '^ *+' conftest.er1 >conftest.err
19191 rm -f conftest.er1
19192 cat conftest.err >&5
19193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); } && {
19195 test -z "$ac_c_werror_flag" ||
19196 test ! -s conftest.err
19197 } && test -s conftest.$ac_objext; then
19198 ac_header_compiler=yes
19199 else
19200 $as_echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.$ac_ext >&5
19202
19203 ac_header_compiler=no
19204 fi
19205
19206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19207 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19208 $as_echo "$ac_header_compiler" >&6; }
19209
19210 # Is the header present?
19211 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19212 $as_echo_n "checking $ac_header presence... " >&6; }
19213 cat >conftest.$ac_ext <<_ACEOF
19214 /* confdefs.h. */
19215 _ACEOF
19216 cat confdefs.h >>conftest.$ac_ext
19217 cat >>conftest.$ac_ext <<_ACEOF
19218 /* end confdefs.h. */
19219 #include <$ac_header>
19220 _ACEOF
19221 if { (ac_try="$ac_cpp conftest.$ac_ext"
19222 case "(($ac_try" in
19223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224 *) ac_try_echo=$ac_try;;
19225 esac
19226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19227 $as_echo "$ac_try_echo") >&5
19228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19229 ac_status=$?
19230 grep -v '^ *+' conftest.er1 >conftest.err
19231 rm -f conftest.er1
19232 cat conftest.err >&5
19233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } >/dev/null && {
19235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19236 test ! -s conftest.err
19237 }; then
19238 ac_header_preproc=yes
19239 else
19240 $as_echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19242
19243 ac_header_preproc=no
19244 fi
19245
19246 rm -f conftest.err conftest.$ac_ext
19247 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19248 $as_echo "$ac_header_preproc" >&6; }
19249
19250 # So? What about this header?
19251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19252 yes:no: )
19253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19254 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19256 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19257 ac_header_preproc=yes
19258 ;;
19259 no:yes:* )
19260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19261 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19263 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19265 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19267 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19269 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19271 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19272
19273 ;;
19274 esac
19275 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19276 $as_echo_n "checking for $ac_header... " >&6; }
19277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19278 $as_echo_n "(cached) " >&6
19279 else
19280 eval "$as_ac_Header=\$ac_header_preproc"
19281 fi
19282 ac_res=`eval 'as_val=${'$as_ac_Header'}
19283 $as_echo "$as_val"'`
19284 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19285 $as_echo "$ac_res" >&6; }
19286
19287 fi
19288 if test `eval 'as_val=${'$as_ac_Header'}
19289 $as_echo "$as_val"'` = yes; then
19290 cat >>confdefs.h <<_ACEOF
19291 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19292 _ACEOF
19293 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19294 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19295 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19296 $as_echo_n "(cached) " >&6
19297 else
19298 cat >conftest.$ac_ext <<_ACEOF
19299 /* confdefs.h. */
19300 _ACEOF
19301 cat confdefs.h >>conftest.$ac_ext
19302 cat >>conftest.$ac_ext <<_ACEOF
19303 /* end confdefs.h. */
19304 #include <nlist.h>
19305
19306 int
19307 main ()
19308 {
19309 static struct nlist ac_aggr;
19310 if (ac_aggr.n_un.n_name)
19311 return 0;
19312 ;
19313 return 0;
19314 }
19315 _ACEOF
19316 rm -f conftest.$ac_objext
19317 if { (ac_try="$ac_compile"
19318 case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19321 esac
19322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19323 $as_echo "$ac_try_echo") >&5
19324 (eval "$ac_compile") 2>conftest.er1
19325 ac_status=$?
19326 grep -v '^ *+' conftest.er1 >conftest.err
19327 rm -f conftest.er1
19328 cat conftest.err >&5
19329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } && {
19331 test -z "$ac_c_werror_flag" ||
19332 test ! -s conftest.err
19333 } && test -s conftest.$ac_objext; then
19334 ac_cv_member_struct_nlist_n_un_n_name=yes
19335 else
19336 $as_echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19338
19339 cat >conftest.$ac_ext <<_ACEOF
19340 /* confdefs.h. */
19341 _ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19345 #include <nlist.h>
19346
19347 int
19348 main ()
19349 {
19350 static struct nlist ac_aggr;
19351 if (sizeof ac_aggr.n_un.n_name)
19352 return 0;
19353 ;
19354 return 0;
19355 }
19356 _ACEOF
19357 rm -f conftest.$ac_objext
19358 if { (ac_try="$ac_compile"
19359 case "(($ac_try" in
19360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19361 *) ac_try_echo=$ac_try;;
19362 esac
19363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19364 $as_echo "$ac_try_echo") >&5
19365 (eval "$ac_compile") 2>conftest.er1
19366 ac_status=$?
19367 grep -v '^ *+' conftest.er1 >conftest.err
19368 rm -f conftest.er1
19369 cat conftest.err >&5
19370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } && {
19372 test -z "$ac_c_werror_flag" ||
19373 test ! -s conftest.err
19374 } && test -s conftest.$ac_objext; then
19375 ac_cv_member_struct_nlist_n_un_n_name=yes
19376 else
19377 $as_echo "$as_me: failed program was:" >&5
19378 sed 's/^/| /' conftest.$ac_ext >&5
19379
19380 ac_cv_member_struct_nlist_n_un_n_name=no
19381 fi
19382
19383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19384 fi
19385
19386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19387 fi
19388 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19389 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19390 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19391
19392 cat >>confdefs.h <<_ACEOF
19393 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19394 _ACEOF
19395
19396
19397 cat >>confdefs.h <<\_ACEOF
19398 #define NLIST_NAME_UNION 1
19399 _ACEOF
19400
19401 fi
19402
19403
19404 fi
19405
19406 done
19407
19408 fi
19409 done
19410
19411
19412 # Some definitions of getloadavg require that the program be installed setgid.
19413 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19414 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19415 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19416 $as_echo_n "(cached) " >&6
19417 else
19418 cat >conftest.$ac_ext <<_ACEOF
19419 /* confdefs.h. */
19420 _ACEOF
19421 cat confdefs.h >>conftest.$ac_ext
19422 cat >>conftest.$ac_ext <<_ACEOF
19423 /* end confdefs.h. */
19424 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19425 #ifdef LDAV_PRIVILEGED
19426 Yowza Am I SETGID yet
19427 #endif
19428 _ACEOF
19429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19430 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19431 ac_cv_func_getloadavg_setgid=yes
19432 else
19433 ac_cv_func_getloadavg_setgid=no
19434 fi
19435 rm -f conftest*
19436
19437 fi
19438 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19439 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19440 if test $ac_cv_func_getloadavg_setgid = yes; then
19441 NEED_SETGID=true
19442
19443 cat >>confdefs.h <<\_ACEOF
19444 #define GETLOADAVG_PRIVILEGED 1
19445 _ACEOF
19446
19447 else
19448 NEED_SETGID=false
19449 fi
19450
19451 if test $ac_cv_func_getloadavg_setgid = yes; then
19452 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19453 $as_echo_n "checking group of /dev/kmem... " >&6; }
19454 if test "${ac_cv_group_kmem+set}" = set; then
19455 $as_echo_n "(cached) " >&6
19456 else
19457 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19458 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19459 # If we got an error (system does not support symlinks), try without -L.
19460 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19461 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19462 | sed -ne 's/[ ][ ]*/ /g;
19463 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19464 / /s/.* //;p;'`
19465
19466 fi
19467 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19468 $as_echo "$ac_cv_group_kmem" >&6; }
19469 KMEM_GROUP=$ac_cv_group_kmem
19470 fi
19471 if test "x$ac_save_LIBS" = x; then
19472 GETLOADAVG_LIBS=$LIBS
19473 else
19474 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
19475 fi
19476 LIBS=$ac_save_LIBS
19477
19478
19479
19480 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19481 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19482 if test "${ac_cv_sys_largefile_source+set}" = set; then
19483 $as_echo_n "(cached) " >&6
19484 else
19485 while :; do
19486 cat >conftest.$ac_ext <<_ACEOF
19487 /* confdefs.h. */
19488 _ACEOF
19489 cat confdefs.h >>conftest.$ac_ext
19490 cat >>conftest.$ac_ext <<_ACEOF
19491 /* end confdefs.h. */
19492 #include <sys/types.h> /* for off_t */
19493 #include <stdio.h>
19494 int
19495 main ()
19496 {
19497 int (*fp) (FILE *, off_t, int) = fseeko;
19498 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19499 ;
19500 return 0;
19501 }
19502 _ACEOF
19503 rm -f conftest.$ac_objext conftest$ac_exeext
19504 if { (ac_try="$ac_link"
19505 case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19508 esac
19509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19510 $as_echo "$ac_try_echo") >&5
19511 (eval "$ac_link") 2>conftest.er1
19512 ac_status=$?
19513 grep -v '^ *+' conftest.er1 >conftest.err
19514 rm -f conftest.er1
19515 cat conftest.err >&5
19516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } && {
19518 test -z "$ac_c_werror_flag" ||
19519 test ! -s conftest.err
19520 } && test -s conftest$ac_exeext && {
19521 test "$cross_compiling" = yes ||
19522 $as_test_x conftest$ac_exeext
19523 }; then
19524 ac_cv_sys_largefile_source=no; break
19525 else
19526 $as_echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19528
19529
19530 fi
19531
19532 rm -rf conftest.dSYM
19533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19534 conftest$ac_exeext conftest.$ac_ext
19535 cat >conftest.$ac_ext <<_ACEOF
19536 /* confdefs.h. */
19537 _ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h. */
19541 #define _LARGEFILE_SOURCE 1
19542 #include <sys/types.h> /* for off_t */
19543 #include <stdio.h>
19544 int
19545 main ()
19546 {
19547 int (*fp) (FILE *, off_t, int) = fseeko;
19548 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19549 ;
19550 return 0;
19551 }
19552 _ACEOF
19553 rm -f conftest.$ac_objext conftest$ac_exeext
19554 if { (ac_try="$ac_link"
19555 case "(($ac_try" in
19556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557 *) ac_try_echo=$ac_try;;
19558 esac
19559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19560 $as_echo "$ac_try_echo") >&5
19561 (eval "$ac_link") 2>conftest.er1
19562 ac_status=$?
19563 grep -v '^ *+' conftest.er1 >conftest.err
19564 rm -f conftest.er1
19565 cat conftest.err >&5
19566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); } && {
19568 test -z "$ac_c_werror_flag" ||
19569 test ! -s conftest.err
19570 } && test -s conftest$ac_exeext && {
19571 test "$cross_compiling" = yes ||
19572 $as_test_x conftest$ac_exeext
19573 }; then
19574 ac_cv_sys_largefile_source=1; break
19575 else
19576 $as_echo "$as_me: failed program was:" >&5
19577 sed 's/^/| /' conftest.$ac_ext >&5
19578
19579
19580 fi
19581
19582 rm -rf conftest.dSYM
19583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19584 conftest$ac_exeext conftest.$ac_ext
19585 ac_cv_sys_largefile_source=unknown
19586 break
19587 done
19588 fi
19589 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19590 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19591 case $ac_cv_sys_largefile_source in #(
19592 no | unknown) ;;
19593 *)
19594 cat >>confdefs.h <<_ACEOF
19595 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19596 _ACEOF
19597 ;;
19598 esac
19599 rm -rf conftest*
19600
19601 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19602 # in glibc 2.1.3, but that breaks too many other things.
19603 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19604 if test $ac_cv_sys_largefile_source != unknown; then
19605
19606 cat >>confdefs.h <<\_ACEOF
19607 #define HAVE_FSEEKO 1
19608 _ACEOF
19609
19610 fi
19611
19612
19613 # Configure getopt.
19614 # getopt.m4 serial 10
19615
19616 # The getopt module assume you want GNU getopt, with getopt_long etc,
19617 # rather than vanilla POSIX getopt. This means your your code should
19618 # always include <getopt.h> for the getopt prototypes.
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630 # Prerequisites of lib/getopt*.
19631
19632
19633
19634
19635 GETOPT_H=
19636
19637 for ac_header in getopt.h
19638 do
19639 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19641 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19642 $as_echo_n "checking for $ac_header... " >&6; }
19643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19644 $as_echo_n "(cached) " >&6
19645 fi
19646 ac_res=`eval 'as_val=${'$as_ac_Header'}
19647 $as_echo "$as_val"'`
19648 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19649 $as_echo "$ac_res" >&6; }
19650 else
19651 # Is the header compilable?
19652 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19653 $as_echo_n "checking $ac_header usability... " >&6; }
19654 cat >conftest.$ac_ext <<_ACEOF
19655 /* confdefs.h. */
19656 _ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19660 $ac_includes_default
19661 #include <$ac_header>
19662 _ACEOF
19663 rm -f conftest.$ac_objext
19664 if { (ac_try="$ac_compile"
19665 case "(($ac_try" in
19666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667 *) ac_try_echo=$ac_try;;
19668 esac
19669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19670 $as_echo "$ac_try_echo") >&5
19671 (eval "$ac_compile") 2>conftest.er1
19672 ac_status=$?
19673 grep -v '^ *+' conftest.er1 >conftest.err
19674 rm -f conftest.er1
19675 cat conftest.err >&5
19676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); } && {
19678 test -z "$ac_c_werror_flag" ||
19679 test ! -s conftest.err
19680 } && test -s conftest.$ac_objext; then
19681 ac_header_compiler=yes
19682 else
19683 $as_echo "$as_me: failed program was:" >&5
19684 sed 's/^/| /' conftest.$ac_ext >&5
19685
19686 ac_header_compiler=no
19687 fi
19688
19689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19690 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19691 $as_echo "$ac_header_compiler" >&6; }
19692
19693 # Is the header present?
19694 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19695 $as_echo_n "checking $ac_header presence... " >&6; }
19696 cat >conftest.$ac_ext <<_ACEOF
19697 /* confdefs.h. */
19698 _ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19702 #include <$ac_header>
19703 _ACEOF
19704 if { (ac_try="$ac_cpp conftest.$ac_ext"
19705 case "(($ac_try" in
19706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19708 esac
19709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19710 $as_echo "$ac_try_echo") >&5
19711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19712 ac_status=$?
19713 grep -v '^ *+' conftest.er1 >conftest.err
19714 rm -f conftest.er1
19715 cat conftest.err >&5
19716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); } >/dev/null && {
19718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19719 test ! -s conftest.err
19720 }; then
19721 ac_header_preproc=yes
19722 else
19723 $as_echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19725
19726 ac_header_preproc=no
19727 fi
19728
19729 rm -f conftest.err conftest.$ac_ext
19730 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19731 $as_echo "$ac_header_preproc" >&6; }
19732
19733 # So? What about this header?
19734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19735 yes:no: )
19736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19737 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19739 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19740 ac_header_preproc=yes
19741 ;;
19742 no:yes:* )
19743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19744 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19746 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19748 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19750 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19752 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19754 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19755
19756 ;;
19757 esac
19758 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19759 $as_echo_n "checking for $ac_header... " >&6; }
19760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19761 $as_echo_n "(cached) " >&6
19762 else
19763 eval "$as_ac_Header=\$ac_header_preproc"
19764 fi
19765 ac_res=`eval 'as_val=${'$as_ac_Header'}
19766 $as_echo "$as_val"'`
19767 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19768 $as_echo "$ac_res" >&6; }
19769
19770 fi
19771 if test `eval 'as_val=${'$as_ac_Header'}
19772 $as_echo "$as_val"'` = yes; then
19773 cat >>confdefs.h <<_ACEOF
19774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19775 _ACEOF
19776
19777 else
19778 GETOPT_H=getopt.h
19779 fi
19780
19781 done
19782
19783 if test -z "$GETOPT_H"; then
19784
19785 for ac_func in getopt_long_only
19786 do
19787 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19788 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19789 $as_echo_n "checking for $ac_func... " >&6; }
19790 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19791 $as_echo_n "(cached) " >&6
19792 else
19793 cat >conftest.$ac_ext <<_ACEOF
19794 /* confdefs.h. */
19795 _ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h. */
19799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19801 #define $ac_func innocuous_$ac_func
19802
19803 /* System header to define __stub macros and hopefully few prototypes,
19804 which can conflict with char $ac_func (); below.
19805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19806 <limits.h> exists even on freestanding compilers. */
19807
19808 #ifdef __STDC__
19809 # include <limits.h>
19810 #else
19811 # include <assert.h>
19812 #endif
19813
19814 #undef $ac_func
19815
19816 /* Override any GCC internal prototype to avoid an error.
19817 Use char because int might match the return type of a GCC
19818 builtin and then its argument prototype would still apply. */
19819 #ifdef __cplusplus
19820 extern "C"
19821 #endif
19822 char $ac_func ();
19823 /* The GNU C library defines this for functions which it implements
19824 to always fail with ENOSYS. Some functions are actually named
19825 something starting with __ and the normal name is an alias. */
19826 #if defined __stub_$ac_func || defined __stub___$ac_func
19827 choke me
19828 #endif
19829
19830 int
19831 main ()
19832 {
19833 return $ac_func ();
19834 ;
19835 return 0;
19836 }
19837 _ACEOF
19838 rm -f conftest.$ac_objext conftest$ac_exeext
19839 if { (ac_try="$ac_link"
19840 case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19843 esac
19844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19845 $as_echo "$ac_try_echo") >&5
19846 (eval "$ac_link") 2>conftest.er1
19847 ac_status=$?
19848 grep -v '^ *+' conftest.er1 >conftest.err
19849 rm -f conftest.er1
19850 cat conftest.err >&5
19851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } && {
19853 test -z "$ac_c_werror_flag" ||
19854 test ! -s conftest.err
19855 } && test -s conftest$ac_exeext && {
19856 test "$cross_compiling" = yes ||
19857 $as_test_x conftest$ac_exeext
19858 }; then
19859 eval "$as_ac_var=yes"
19860 else
19861 $as_echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19863
19864 eval "$as_ac_var=no"
19865 fi
19866
19867 rm -rf conftest.dSYM
19868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19869 conftest$ac_exeext conftest.$ac_ext
19870 fi
19871 ac_res=`eval 'as_val=${'$as_ac_var'}
19872 $as_echo "$as_val"'`
19873 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19874 $as_echo "$ac_res" >&6; }
19875 if test `eval 'as_val=${'$as_ac_var'}
19876 $as_echo "$as_val"'` = yes; then
19877 cat >>confdefs.h <<_ACEOF
19878 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19879 _ACEOF
19880
19881 else
19882 GETOPT_H=getopt.h
19883 fi
19884 done
19885
19886 fi
19887
19888 if test -z "$GETOPT_H"; then
19889 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19890 $as_echo_n "checking whether optreset is declared... " >&6; }
19891 if test "${ac_cv_have_decl_optreset+set}" = set; then
19892 $as_echo_n "(cached) " >&6
19893 else
19894 cat >conftest.$ac_ext <<_ACEOF
19895 /* confdefs.h. */
19896 _ACEOF
19897 cat confdefs.h >>conftest.$ac_ext
19898 cat >>conftest.$ac_ext <<_ACEOF
19899 /* end confdefs.h. */
19900 #include <getopt.h>
19901
19902 int
19903 main ()
19904 {
19905 #ifndef optreset
19906 (void) optreset;
19907 #endif
19908
19909 ;
19910 return 0;
19911 }
19912 _ACEOF
19913 rm -f conftest.$ac_objext
19914 if { (ac_try="$ac_compile"
19915 case "(($ac_try" in
19916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19917 *) ac_try_echo=$ac_try;;
19918 esac
19919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19920 $as_echo "$ac_try_echo") >&5
19921 (eval "$ac_compile") 2>conftest.er1
19922 ac_status=$?
19923 grep -v '^ *+' conftest.er1 >conftest.err
19924 rm -f conftest.er1
19925 cat conftest.err >&5
19926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } && {
19928 test -z "$ac_c_werror_flag" ||
19929 test ! -s conftest.err
19930 } && test -s conftest.$ac_objext; then
19931 ac_cv_have_decl_optreset=yes
19932 else
19933 $as_echo "$as_me: failed program was:" >&5
19934 sed 's/^/| /' conftest.$ac_ext >&5
19935
19936 ac_cv_have_decl_optreset=no
19937 fi
19938
19939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19940 fi
19941 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19942 $as_echo "$ac_cv_have_decl_optreset" >&6; }
19943 if test $ac_cv_have_decl_optreset = yes; then
19944 GETOPT_H=getopt.h
19945 fi
19946
19947 fi
19948
19949 if test -z "$GETOPT_H"; then
19950 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19951 $as_echo_n "checking for working GNU getopt function... " >&6; }
19952 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19953 $as_echo_n "(cached) " >&6
19954 else
19955 if test "$cross_compiling" = yes; then
19956 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19957 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
19958 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19959 $as_echo_n "(cached) " >&6
19960 else
19961 cat >conftest.$ac_ext <<_ACEOF
19962 /* confdefs.h. */
19963 _ACEOF
19964 cat confdefs.h >>conftest.$ac_ext
19965 cat >>conftest.$ac_ext <<_ACEOF
19966 /* end confdefs.h. */
19967 #include <getopt.h>
19968
19969 int
19970 main ()
19971 {
19972 #ifndef getopt_clip
19973 (void) getopt_clip;
19974 #endif
19975
19976 ;
19977 return 0;
19978 }
19979 _ACEOF
19980 rm -f conftest.$ac_objext
19981 if { (ac_try="$ac_compile"
19982 case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19985 esac
19986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19987 $as_echo "$ac_try_echo") >&5
19988 (eval "$ac_compile") 2>conftest.er1
19989 ac_status=$?
19990 grep -v '^ *+' conftest.er1 >conftest.err
19991 rm -f conftest.er1
19992 cat conftest.err >&5
19993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } && {
19995 test -z "$ac_c_werror_flag" ||
19996 test ! -s conftest.err
19997 } && test -s conftest.$ac_objext; then
19998 ac_cv_have_decl_getopt_clip=yes
19999 else
20000 $as_echo "$as_me: failed program was:" >&5
20001 sed 's/^/| /' conftest.$ac_ext >&5
20002
20003 ac_cv_have_decl_getopt_clip=no
20004 fi
20005
20006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20007 fi
20008 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20009 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20010 if test $ac_cv_have_decl_getopt_clip = yes; then
20011 gl_cv_func_gnu_getopt=no
20012 else
20013 gl_cv_func_gnu_getopt=yes
20014 fi
20015
20016 else
20017 cat >conftest.$ac_ext <<_ACEOF
20018 /* confdefs.h. */
20019 _ACEOF
20020 cat confdefs.h >>conftest.$ac_ext
20021 cat >>conftest.$ac_ext <<_ACEOF
20022 /* end confdefs.h. */
20023 #include <getopt.h>
20024 int
20025 main ()
20026 {
20027
20028 char *myargv[3];
20029 myargv[0] = "conftest";
20030 myargv[1] = "-+";
20031 myargv[2] = 0;
20032 return getopt (2, myargv, "+a") != '?';
20033
20034 ;
20035 return 0;
20036 }
20037 _ACEOF
20038 rm -f conftest$ac_exeext
20039 if { (ac_try="$ac_link"
20040 case "(($ac_try" in
20041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042 *) ac_try_echo=$ac_try;;
20043 esac
20044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20045 $as_echo "$ac_try_echo") >&5
20046 (eval "$ac_link") 2>&5
20047 ac_status=$?
20048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20050 { (case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20053 esac
20054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20055 $as_echo "$ac_try_echo") >&5
20056 (eval "$ac_try") 2>&5
20057 ac_status=$?
20058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); }; }; then
20060 gl_cv_func_gnu_getopt=yes
20061 else
20062 $as_echo "$as_me: program exited with status $ac_status" >&5
20063 $as_echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20065
20066 ( exit $ac_status )
20067 gl_cv_func_gnu_getopt=no
20068 fi
20069 rm -rf conftest.dSYM
20070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20071 fi
20072
20073
20074 fi
20075 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20076 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20077 if test "$gl_cv_func_gnu_getopt" = "no"; then
20078 GETOPT_H=getopt.h
20079 fi
20080 fi
20081
20082
20083
20084 if test -n "$GETOPT_H"; then
20085
20086
20087 GETOPT_H=getopt.h
20088
20089 cat >>confdefs.h <<\_ACEOF
20090 #define __GETOPT_PREFIX rpl_
20091 _ACEOF
20092
20093
20094
20095 :
20096 GETOPTOBJS='getopt.o getopt1.o'
20097
20098 fi
20099
20100
20101
20102
20103 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20104 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20105 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20106 $as_echo_n "(cached) " >&6
20107 else
20108 # Use it with a single arg.
20109 cat >conftest.$ac_ext <<_ACEOF
20110 /* confdefs.h. */
20111 _ACEOF
20112 cat confdefs.h >>conftest.$ac_ext
20113 cat >>conftest.$ac_ext <<_ACEOF
20114 /* end confdefs.h. */
20115 $ac_includes_default
20116 int
20117 main ()
20118 {
20119 getpgrp (0);
20120 ;
20121 return 0;
20122 }
20123 _ACEOF
20124 rm -f conftest.$ac_objext
20125 if { (ac_try="$ac_compile"
20126 case "(($ac_try" in
20127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20129 esac
20130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20131 $as_echo "$ac_try_echo") >&5
20132 (eval "$ac_compile") 2>conftest.er1
20133 ac_status=$?
20134 grep -v '^ *+' conftest.er1 >conftest.err
20135 rm -f conftest.er1
20136 cat conftest.err >&5
20137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } && {
20139 test -z "$ac_c_werror_flag" ||
20140 test ! -s conftest.err
20141 } && test -s conftest.$ac_objext; then
20142 ac_cv_func_getpgrp_void=no
20143 else
20144 $as_echo "$as_me: failed program was:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20146
20147 ac_cv_func_getpgrp_void=yes
20148 fi
20149
20150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20151
20152 fi
20153 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20154 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20155 if test $ac_cv_func_getpgrp_void = yes; then
20156
20157 cat >>confdefs.h <<\_ACEOF
20158 #define GETPGRP_VOID 1
20159 _ACEOF
20160
20161 fi
20162
20163
20164
20165 for ac_func in strftime
20166 do
20167 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20168 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20169 $as_echo_n "checking for $ac_func... " >&6; }
20170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20171 $as_echo_n "(cached) " >&6
20172 else
20173 cat >conftest.$ac_ext <<_ACEOF
20174 /* confdefs.h. */
20175 _ACEOF
20176 cat confdefs.h >>conftest.$ac_ext
20177 cat >>conftest.$ac_ext <<_ACEOF
20178 /* end confdefs.h. */
20179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20181 #define $ac_func innocuous_$ac_func
20182
20183 /* System header to define __stub macros and hopefully few prototypes,
20184 which can conflict with char $ac_func (); below.
20185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20186 <limits.h> exists even on freestanding compilers. */
20187
20188 #ifdef __STDC__
20189 # include <limits.h>
20190 #else
20191 # include <assert.h>
20192 #endif
20193
20194 #undef $ac_func
20195
20196 /* Override any GCC internal prototype to avoid an error.
20197 Use char because int might match the return type of a GCC
20198 builtin and then its argument prototype would still apply. */
20199 #ifdef __cplusplus
20200 extern "C"
20201 #endif
20202 char $ac_func ();
20203 /* The GNU C library defines this for functions which it implements
20204 to always fail with ENOSYS. Some functions are actually named
20205 something starting with __ and the normal name is an alias. */
20206 #if defined __stub_$ac_func || defined __stub___$ac_func
20207 choke me
20208 #endif
20209
20210 int
20211 main ()
20212 {
20213 return $ac_func ();
20214 ;
20215 return 0;
20216 }
20217 _ACEOF
20218 rm -f conftest.$ac_objext conftest$ac_exeext
20219 if { (ac_try="$ac_link"
20220 case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20223 esac
20224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20225 $as_echo "$ac_try_echo") >&5
20226 (eval "$ac_link") 2>conftest.er1
20227 ac_status=$?
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
20231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } && {
20233 test -z "$ac_c_werror_flag" ||
20234 test ! -s conftest.err
20235 } && test -s conftest$ac_exeext && {
20236 test "$cross_compiling" = yes ||
20237 $as_test_x conftest$ac_exeext
20238 }; then
20239 eval "$as_ac_var=yes"
20240 else
20241 $as_echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20243
20244 eval "$as_ac_var=no"
20245 fi
20246
20247 rm -rf conftest.dSYM
20248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20249 conftest$ac_exeext conftest.$ac_ext
20250 fi
20251 ac_res=`eval 'as_val=${'$as_ac_var'}
20252 $as_echo "$as_val"'`
20253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20254 $as_echo "$ac_res" >&6; }
20255 if test `eval 'as_val=${'$as_ac_var'}
20256 $as_echo "$as_val"'` = yes; then
20257 cat >>confdefs.h <<_ACEOF
20258 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20259 _ACEOF
20260
20261 else
20262 # strftime is in -lintl on SCO UNIX.
20263 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20264 $as_echo_n "checking for strftime in -lintl... " >&6; }
20265 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20266 $as_echo_n "(cached) " >&6
20267 else
20268 ac_check_lib_save_LIBS=$LIBS
20269 LIBS="-lintl $LIBS"
20270 cat >conftest.$ac_ext <<_ACEOF
20271 /* confdefs.h. */
20272 _ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h. */
20276
20277 /* Override any GCC internal prototype to avoid an error.
20278 Use char because int might match the return type of a GCC
20279 builtin and then its argument prototype would still apply. */
20280 #ifdef __cplusplus
20281 extern "C"
20282 #endif
20283 char strftime ();
20284 int
20285 main ()
20286 {
20287 return strftime ();
20288 ;
20289 return 0;
20290 }
20291 _ACEOF
20292 rm -f conftest.$ac_objext conftest$ac_exeext
20293 if { (ac_try="$ac_link"
20294 case "(($ac_try" in
20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20297 esac
20298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20299 $as_echo "$ac_try_echo") >&5
20300 (eval "$ac_link") 2>conftest.er1
20301 ac_status=$?
20302 grep -v '^ *+' conftest.er1 >conftest.err
20303 rm -f conftest.er1
20304 cat conftest.err >&5
20305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } && {
20307 test -z "$ac_c_werror_flag" ||
20308 test ! -s conftest.err
20309 } && test -s conftest$ac_exeext && {
20310 test "$cross_compiling" = yes ||
20311 $as_test_x conftest$ac_exeext
20312 }; then
20313 ac_cv_lib_intl_strftime=yes
20314 else
20315 $as_echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20317
20318 ac_cv_lib_intl_strftime=no
20319 fi
20320
20321 rm -rf conftest.dSYM
20322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20323 conftest$ac_exeext conftest.$ac_ext
20324 LIBS=$ac_check_lib_save_LIBS
20325 fi
20326 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20327 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20328 if test $ac_cv_lib_intl_strftime = yes; then
20329 cat >>confdefs.h <<\_ACEOF
20330 #define HAVE_STRFTIME 1
20331 _ACEOF
20332
20333 LIBS="-lintl $LIBS"
20334 fi
20335
20336 fi
20337 done
20338
20339
20340 # UNIX98 PTYs.
20341
20342 for ac_func in grantpt
20343 do
20344 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20345 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20346 $as_echo_n "checking for $ac_func... " >&6; }
20347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20348 $as_echo_n "(cached) " >&6
20349 else
20350 cat >conftest.$ac_ext <<_ACEOF
20351 /* confdefs.h. */
20352 _ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h. */
20356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20358 #define $ac_func innocuous_$ac_func
20359
20360 /* System header to define __stub macros and hopefully few prototypes,
20361 which can conflict with char $ac_func (); below.
20362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20363 <limits.h> exists even on freestanding compilers. */
20364
20365 #ifdef __STDC__
20366 # include <limits.h>
20367 #else
20368 # include <assert.h>
20369 #endif
20370
20371 #undef $ac_func
20372
20373 /* Override any GCC internal prototype to avoid an error.
20374 Use char because int might match the return type of a GCC
20375 builtin and then its argument prototype would still apply. */
20376 #ifdef __cplusplus
20377 extern "C"
20378 #endif
20379 char $ac_func ();
20380 /* The GNU C library defines this for functions which it implements
20381 to always fail with ENOSYS. Some functions are actually named
20382 something starting with __ and the normal name is an alias. */
20383 #if defined __stub_$ac_func || defined __stub___$ac_func
20384 choke me
20385 #endif
20386
20387 int
20388 main ()
20389 {
20390 return $ac_func ();
20391 ;
20392 return 0;
20393 }
20394 _ACEOF
20395 rm -f conftest.$ac_objext conftest$ac_exeext
20396 if { (ac_try="$ac_link"
20397 case "(($ac_try" in
20398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20399 *) ac_try_echo=$ac_try;;
20400 esac
20401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20402 $as_echo "$ac_try_echo") >&5
20403 (eval "$ac_link") 2>conftest.er1
20404 ac_status=$?
20405 grep -v '^ *+' conftest.er1 >conftest.err
20406 rm -f conftest.er1
20407 cat conftest.err >&5
20408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } && {
20410 test -z "$ac_c_werror_flag" ||
20411 test ! -s conftest.err
20412 } && test -s conftest$ac_exeext && {
20413 test "$cross_compiling" = yes ||
20414 $as_test_x conftest$ac_exeext
20415 }; then
20416 eval "$as_ac_var=yes"
20417 else
20418 $as_echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20420
20421 eval "$as_ac_var=no"
20422 fi
20423
20424 rm -rf conftest.dSYM
20425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20426 conftest$ac_exeext conftest.$ac_ext
20427 fi
20428 ac_res=`eval 'as_val=${'$as_ac_var'}
20429 $as_echo "$as_val"'`
20430 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20431 $as_echo "$ac_res" >&6; }
20432 if test `eval 'as_val=${'$as_ac_var'}
20433 $as_echo "$as_val"'` = yes; then
20434 cat >>confdefs.h <<_ACEOF
20435 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20436 _ACEOF
20437
20438 fi
20439 done
20440
20441
20442 # PTY-related GNU extensions.
20443
20444 for ac_func in getpt
20445 do
20446 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20447 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20448 $as_echo_n "checking for $ac_func... " >&6; }
20449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20450 $as_echo_n "(cached) " >&6
20451 else
20452 cat >conftest.$ac_ext <<_ACEOF
20453 /* confdefs.h. */
20454 _ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h. */
20458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20460 #define $ac_func innocuous_$ac_func
20461
20462 /* System header to define __stub macros and hopefully few prototypes,
20463 which can conflict with char $ac_func (); below.
20464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20465 <limits.h> exists even on freestanding compilers. */
20466
20467 #ifdef __STDC__
20468 # include <limits.h>
20469 #else
20470 # include <assert.h>
20471 #endif
20472
20473 #undef $ac_func
20474
20475 /* Override any GCC internal prototype to avoid an error.
20476 Use char because int might match the return type of a GCC
20477 builtin and then its argument prototype would still apply. */
20478 #ifdef __cplusplus
20479 extern "C"
20480 #endif
20481 char $ac_func ();
20482 /* The GNU C library defines this for functions which it implements
20483 to always fail with ENOSYS. Some functions are actually named
20484 something starting with __ and the normal name is an alias. */
20485 #if defined __stub_$ac_func || defined __stub___$ac_func
20486 choke me
20487 #endif
20488
20489 int
20490 main ()
20491 {
20492 return $ac_func ();
20493 ;
20494 return 0;
20495 }
20496 _ACEOF
20497 rm -f conftest.$ac_objext conftest$ac_exeext
20498 if { (ac_try="$ac_link"
20499 case "(($ac_try" in
20500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501 *) ac_try_echo=$ac_try;;
20502 esac
20503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20504 $as_echo "$ac_try_echo") >&5
20505 (eval "$ac_link") 2>conftest.er1
20506 ac_status=$?
20507 grep -v '^ *+' conftest.er1 >conftest.err
20508 rm -f conftest.er1
20509 cat conftest.err >&5
20510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } && {
20512 test -z "$ac_c_werror_flag" ||
20513 test ! -s conftest.err
20514 } && test -s conftest$ac_exeext && {
20515 test "$cross_compiling" = yes ||
20516 $as_test_x conftest$ac_exeext
20517 }; then
20518 eval "$as_ac_var=yes"
20519 else
20520 $as_echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20522
20523 eval "$as_ac_var=no"
20524 fi
20525
20526 rm -rf conftest.dSYM
20527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20528 conftest$ac_exeext conftest.$ac_ext
20529 fi
20530 ac_res=`eval 'as_val=${'$as_ac_var'}
20531 $as_echo "$as_val"'`
20532 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20533 $as_echo "$ac_res" >&6; }
20534 if test `eval 'as_val=${'$as_ac_var'}
20535 $as_echo "$as_val"'` = yes; then
20536 cat >>confdefs.h <<_ACEOF
20537 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20538 _ACEOF
20539
20540 fi
20541 done
20542
20543
20544 # Check this now, so that we will NOT find the above functions in ncurses.
20545 # That is because we have not set up to link ncurses in lib-src.
20546 # It's better to believe a function is not available
20547 # than to expect to find it in ncurses.
20548
20549 { $as_echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20550 $as_echo_n "checking for tparm in -lncurses... " >&6; }
20551 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20552 $as_echo_n "(cached) " >&6
20553 else
20554 ac_check_lib_save_LIBS=$LIBS
20555 LIBS="-lncurses $LIBS"
20556 cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h. */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20562
20563 /* Override any GCC internal prototype to avoid an error.
20564 Use char because int might match the return type of a GCC
20565 builtin and then its argument prototype would still apply. */
20566 #ifdef __cplusplus
20567 extern "C"
20568 #endif
20569 char tparm ();
20570 int
20571 main ()
20572 {
20573 return tparm ();
20574 ;
20575 return 0;
20576 }
20577 _ACEOF
20578 rm -f conftest.$ac_objext conftest$ac_exeext
20579 if { (ac_try="$ac_link"
20580 case "(($ac_try" in
20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20583 esac
20584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20585 $as_echo "$ac_try_echo") >&5
20586 (eval "$ac_link") 2>conftest.er1
20587 ac_status=$?
20588 grep -v '^ *+' conftest.er1 >conftest.err
20589 rm -f conftest.er1
20590 cat conftest.err >&5
20591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); } && {
20593 test -z "$ac_c_werror_flag" ||
20594 test ! -s conftest.err
20595 } && test -s conftest$ac_exeext && {
20596 test "$cross_compiling" = yes ||
20597 $as_test_x conftest$ac_exeext
20598 }; then
20599 ac_cv_lib_ncurses_tparm=yes
20600 else
20601 $as_echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20603
20604 ac_cv_lib_ncurses_tparm=no
20605 fi
20606
20607 rm -rf conftest.dSYM
20608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20609 conftest$ac_exeext conftest.$ac_ext
20610 LIBS=$ac_check_lib_save_LIBS
20611 fi
20612 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20613 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
20614 if test $ac_cv_lib_ncurses_tparm = yes; then
20615 cat >>confdefs.h <<_ACEOF
20616 #define HAVE_LIBNCURSES 1
20617 _ACEOF
20618
20619 LIBS="-lncurses $LIBS"
20620
20621 fi
20622
20623
20624 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20625
20626 resolv=no
20627 cat >conftest.$ac_ext <<_ACEOF
20628 /* confdefs.h. */
20629 _ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h. */
20633 #include <netinet/in.h>
20634 #include <arpa/nameser.h>
20635 #include <resolv.h>
20636 int
20637 main ()
20638 {
20639 return res_init();
20640 ;
20641 return 0;
20642 }
20643 _ACEOF
20644 rm -f conftest.$ac_objext conftest$ac_exeext
20645 if { (ac_try="$ac_link"
20646 case "(($ac_try" in
20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648 *) ac_try_echo=$ac_try;;
20649 esac
20650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20651 $as_echo "$ac_try_echo") >&5
20652 (eval "$ac_link") 2>conftest.er1
20653 ac_status=$?
20654 grep -v '^ *+' conftest.er1 >conftest.err
20655 rm -f conftest.er1
20656 cat conftest.err >&5
20657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); } && {
20659 test -z "$ac_c_werror_flag" ||
20660 test ! -s conftest.err
20661 } && test -s conftest$ac_exeext && {
20662 test "$cross_compiling" = yes ||
20663 $as_test_x conftest$ac_exeext
20664 }; then
20665 have_res_init=yes
20666 else
20667 $as_echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20669
20670 have_res_init=no
20671 fi
20672
20673 rm -rf conftest.dSYM
20674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20675 conftest$ac_exeext conftest.$ac_ext
20676 if test "$have_res_init" = no; then
20677 OLIBS="$LIBS"
20678 LIBS="$LIBS -lresolv"
20679 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20680 $as_echo_n "checking for res_init with -lresolv... " >&6; }
20681 cat >conftest.$ac_ext <<_ACEOF
20682 /* confdefs.h. */
20683 _ACEOF
20684 cat confdefs.h >>conftest.$ac_ext
20685 cat >>conftest.$ac_ext <<_ACEOF
20686 /* end confdefs.h. */
20687 #include <netinet/in.h>
20688 #include <arpa/nameser.h>
20689 #include <resolv.h>
20690 int
20691 main ()
20692 {
20693 return res_init();
20694 ;
20695 return 0;
20696 }
20697 _ACEOF
20698 rm -f conftest.$ac_objext conftest$ac_exeext
20699 if { (ac_try="$ac_link"
20700 case "(($ac_try" in
20701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702 *) ac_try_echo=$ac_try;;
20703 esac
20704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20705 $as_echo "$ac_try_echo") >&5
20706 (eval "$ac_link") 2>conftest.er1
20707 ac_status=$?
20708 grep -v '^ *+' conftest.er1 >conftest.err
20709 rm -f conftest.er1
20710 cat conftest.err >&5
20711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); } && {
20713 test -z "$ac_c_werror_flag" ||
20714 test ! -s conftest.err
20715 } && test -s conftest$ac_exeext && {
20716 test "$cross_compiling" = yes ||
20717 $as_test_x conftest$ac_exeext
20718 }; then
20719 have_res_init=yes
20720 else
20721 $as_echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.$ac_ext >&5
20723
20724 have_res_init=no
20725 fi
20726
20727 rm -rf conftest.dSYM
20728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20729 conftest$ac_exeext conftest.$ac_ext
20730 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
20731 $as_echo "$have_res_init" >&6; }
20732 if test "$have_res_init" = yes ; then
20733 resolv=yes
20734 fi
20735 LIBS="$OLIBS"
20736 fi
20737
20738 if test "$have_res_init" = yes; then
20739
20740 cat >>confdefs.h <<\_ACEOF
20741 #define HAVE_RES_INIT 1
20742 _ACEOF
20743
20744 fi
20745
20746 # Do we need the Hesiod library to provide the support routines?
20747 if test "$with_hesiod" != no ; then
20748 # Don't set $LIBS here -- see comments above.
20749 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
20750 $as_echo_n "checking for res_send... " >&6; }
20751 if test "${ac_cv_func_res_send+set}" = set; then
20752 $as_echo_n "(cached) " >&6
20753 else
20754 cat >conftest.$ac_ext <<_ACEOF
20755 /* confdefs.h. */
20756 _ACEOF
20757 cat confdefs.h >>conftest.$ac_ext
20758 cat >>conftest.$ac_ext <<_ACEOF
20759 /* end confdefs.h. */
20760 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20762 #define res_send innocuous_res_send
20763
20764 /* System header to define __stub macros and hopefully few prototypes,
20765 which can conflict with char res_send (); below.
20766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20767 <limits.h> exists even on freestanding compilers. */
20768
20769 #ifdef __STDC__
20770 # include <limits.h>
20771 #else
20772 # include <assert.h>
20773 #endif
20774
20775 #undef res_send
20776
20777 /* Override any GCC internal prototype to avoid an error.
20778 Use char because int might match the return type of a GCC
20779 builtin and then its argument prototype would still apply. */
20780 #ifdef __cplusplus
20781 extern "C"
20782 #endif
20783 char res_send ();
20784 /* The GNU C library defines this for functions which it implements
20785 to always fail with ENOSYS. Some functions are actually named
20786 something starting with __ and the normal name is an alias. */
20787 #if defined __stub_res_send || defined __stub___res_send
20788 choke me
20789 #endif
20790
20791 int
20792 main ()
20793 {
20794 return res_send ();
20795 ;
20796 return 0;
20797 }
20798 _ACEOF
20799 rm -f conftest.$ac_objext conftest$ac_exeext
20800 if { (ac_try="$ac_link"
20801 case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20804 esac
20805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20806 $as_echo "$ac_try_echo") >&5
20807 (eval "$ac_link") 2>conftest.er1
20808 ac_status=$?
20809 grep -v '^ *+' conftest.er1 >conftest.err
20810 rm -f conftest.er1
20811 cat conftest.err >&5
20812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); } && {
20814 test -z "$ac_c_werror_flag" ||
20815 test ! -s conftest.err
20816 } && test -s conftest$ac_exeext && {
20817 test "$cross_compiling" = yes ||
20818 $as_test_x conftest$ac_exeext
20819 }; then
20820 ac_cv_func_res_send=yes
20821 else
20822 $as_echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20824
20825 ac_cv_func_res_send=no
20826 fi
20827
20828 rm -rf conftest.dSYM
20829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20830 conftest$ac_exeext conftest.$ac_ext
20831 fi
20832 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20833 $as_echo "$ac_cv_func_res_send" >&6; }
20834 if test $ac_cv_func_res_send = yes; then
20835 :
20836 else
20837 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
20838 $as_echo_n "checking for __res_send... " >&6; }
20839 if test "${ac_cv_func___res_send+set}" = set; then
20840 $as_echo_n "(cached) " >&6
20841 else
20842 cat >conftest.$ac_ext <<_ACEOF
20843 /* confdefs.h. */
20844 _ACEOF
20845 cat confdefs.h >>conftest.$ac_ext
20846 cat >>conftest.$ac_ext <<_ACEOF
20847 /* end confdefs.h. */
20848 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20850 #define __res_send innocuous___res_send
20851
20852 /* System header to define __stub macros and hopefully few prototypes,
20853 which can conflict with char __res_send (); below.
20854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20855 <limits.h> exists even on freestanding compilers. */
20856
20857 #ifdef __STDC__
20858 # include <limits.h>
20859 #else
20860 # include <assert.h>
20861 #endif
20862
20863 #undef __res_send
20864
20865 /* Override any GCC internal prototype to avoid an error.
20866 Use char because int might match the return type of a GCC
20867 builtin and then its argument prototype would still apply. */
20868 #ifdef __cplusplus
20869 extern "C"
20870 #endif
20871 char __res_send ();
20872 /* The GNU C library defines this for functions which it implements
20873 to always fail with ENOSYS. Some functions are actually named
20874 something starting with __ and the normal name is an alias. */
20875 #if defined __stub___res_send || defined __stub_____res_send
20876 choke me
20877 #endif
20878
20879 int
20880 main ()
20881 {
20882 return __res_send ();
20883 ;
20884 return 0;
20885 }
20886 _ACEOF
20887 rm -f conftest.$ac_objext conftest$ac_exeext
20888 if { (ac_try="$ac_link"
20889 case "(($ac_try" in
20890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20891 *) ac_try_echo=$ac_try;;
20892 esac
20893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20894 $as_echo "$ac_try_echo") >&5
20895 (eval "$ac_link") 2>conftest.er1
20896 ac_status=$?
20897 grep -v '^ *+' conftest.er1 >conftest.err
20898 rm -f conftest.er1
20899 cat conftest.err >&5
20900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); } && {
20902 test -z "$ac_c_werror_flag" ||
20903 test ! -s conftest.err
20904 } && test -s conftest$ac_exeext && {
20905 test "$cross_compiling" = yes ||
20906 $as_test_x conftest$ac_exeext
20907 }; then
20908 ac_cv_func___res_send=yes
20909 else
20910 $as_echo "$as_me: failed program was:" >&5
20911 sed 's/^/| /' conftest.$ac_ext >&5
20912
20913 ac_cv_func___res_send=no
20914 fi
20915
20916 rm -rf conftest.dSYM
20917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20918 conftest$ac_exeext conftest.$ac_ext
20919 fi
20920 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20921 $as_echo "$ac_cv_func___res_send" >&6; }
20922 if test $ac_cv_func___res_send = yes; then
20923 :
20924 else
20925 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20926 $as_echo_n "checking for res_send in -lresolv... " >&6; }
20927 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20928 $as_echo_n "(cached) " >&6
20929 else
20930 ac_check_lib_save_LIBS=$LIBS
20931 LIBS="-lresolv $LIBS"
20932 cat >conftest.$ac_ext <<_ACEOF
20933 /* confdefs.h. */
20934 _ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h. */
20938
20939 /* Override any GCC internal prototype to avoid an error.
20940 Use char because int might match the return type of a GCC
20941 builtin and then its argument prototype would still apply. */
20942 #ifdef __cplusplus
20943 extern "C"
20944 #endif
20945 char res_send ();
20946 int
20947 main ()
20948 {
20949 return res_send ();
20950 ;
20951 return 0;
20952 }
20953 _ACEOF
20954 rm -f conftest.$ac_objext conftest$ac_exeext
20955 if { (ac_try="$ac_link"
20956 case "(($ac_try" in
20957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20958 *) ac_try_echo=$ac_try;;
20959 esac
20960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20961 $as_echo "$ac_try_echo") >&5
20962 (eval "$ac_link") 2>conftest.er1
20963 ac_status=$?
20964 grep -v '^ *+' conftest.er1 >conftest.err
20965 rm -f conftest.er1
20966 cat conftest.err >&5
20967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); } && {
20969 test -z "$ac_c_werror_flag" ||
20970 test ! -s conftest.err
20971 } && test -s conftest$ac_exeext && {
20972 test "$cross_compiling" = yes ||
20973 $as_test_x conftest$ac_exeext
20974 }; then
20975 ac_cv_lib_resolv_res_send=yes
20976 else
20977 $as_echo "$as_me: failed program was:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20979
20980 ac_cv_lib_resolv_res_send=no
20981 fi
20982
20983 rm -rf conftest.dSYM
20984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20985 conftest$ac_exeext conftest.$ac_ext
20986 LIBS=$ac_check_lib_save_LIBS
20987 fi
20988 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20989 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
20990 if test $ac_cv_lib_resolv_res_send = yes; then
20991 resolv=yes
20992 else
20993 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20994 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
20995 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20996 $as_echo_n "(cached) " >&6
20997 else
20998 ac_check_lib_save_LIBS=$LIBS
20999 LIBS="-lresolv $LIBS"
21000 cat >conftest.$ac_ext <<_ACEOF
21001 /* confdefs.h. */
21002 _ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h. */
21006
21007 /* Override any GCC internal prototype to avoid an error.
21008 Use char because int might match the return type of a GCC
21009 builtin and then its argument prototype would still apply. */
21010 #ifdef __cplusplus
21011 extern "C"
21012 #endif
21013 char __res_send ();
21014 int
21015 main ()
21016 {
21017 return __res_send ();
21018 ;
21019 return 0;
21020 }
21021 _ACEOF
21022 rm -f conftest.$ac_objext conftest$ac_exeext
21023 if { (ac_try="$ac_link"
21024 case "(($ac_try" in
21025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026 *) ac_try_echo=$ac_try;;
21027 esac
21028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21029 $as_echo "$ac_try_echo") >&5
21030 (eval "$ac_link") 2>conftest.er1
21031 ac_status=$?
21032 grep -v '^ *+' conftest.er1 >conftest.err
21033 rm -f conftest.er1
21034 cat conftest.err >&5
21035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); } && {
21037 test -z "$ac_c_werror_flag" ||
21038 test ! -s conftest.err
21039 } && test -s conftest$ac_exeext && {
21040 test "$cross_compiling" = yes ||
21041 $as_test_x conftest$ac_exeext
21042 }; then
21043 ac_cv_lib_resolv___res_send=yes
21044 else
21045 $as_echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21047
21048 ac_cv_lib_resolv___res_send=no
21049 fi
21050
21051 rm -rf conftest.dSYM
21052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21053 conftest$ac_exeext conftest.$ac_ext
21054 LIBS=$ac_check_lib_save_LIBS
21055 fi
21056 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21057 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21058 if test $ac_cv_lib_resolv___res_send = yes; then
21059 resolv=yes
21060 fi
21061
21062 fi
21063
21064 fi
21065
21066 fi
21067
21068 if test "$resolv" = yes ; then
21069 RESOLVLIB=-lresolv
21070 else
21071 RESOLVLIB=
21072 fi
21073 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21074 $as_echo_n "checking for hes_getmailhost... " >&6; }
21075 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21076 $as_echo_n "(cached) " >&6
21077 else
21078 cat >conftest.$ac_ext <<_ACEOF
21079 /* confdefs.h. */
21080 _ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h. */
21084 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21086 #define hes_getmailhost innocuous_hes_getmailhost
21087
21088 /* System header to define __stub macros and hopefully few prototypes,
21089 which can conflict with char hes_getmailhost (); below.
21090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21091 <limits.h> exists even on freestanding compilers. */
21092
21093 #ifdef __STDC__
21094 # include <limits.h>
21095 #else
21096 # include <assert.h>
21097 #endif
21098
21099 #undef hes_getmailhost
21100
21101 /* Override any GCC internal prototype to avoid an error.
21102 Use char because int might match the return type of a GCC
21103 builtin and then its argument prototype would still apply. */
21104 #ifdef __cplusplus
21105 extern "C"
21106 #endif
21107 char hes_getmailhost ();
21108 /* The GNU C library defines this for functions which it implements
21109 to always fail with ENOSYS. Some functions are actually named
21110 something starting with __ and the normal name is an alias. */
21111 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21112 choke me
21113 #endif
21114
21115 int
21116 main ()
21117 {
21118 return hes_getmailhost ();
21119 ;
21120 return 0;
21121 }
21122 _ACEOF
21123 rm -f conftest.$ac_objext conftest$ac_exeext
21124 if { (ac_try="$ac_link"
21125 case "(($ac_try" in
21126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21127 *) ac_try_echo=$ac_try;;
21128 esac
21129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21130 $as_echo "$ac_try_echo") >&5
21131 (eval "$ac_link") 2>conftest.er1
21132 ac_status=$?
21133 grep -v '^ *+' conftest.er1 >conftest.err
21134 rm -f conftest.er1
21135 cat conftest.err >&5
21136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } && {
21138 test -z "$ac_c_werror_flag" ||
21139 test ! -s conftest.err
21140 } && test -s conftest$ac_exeext && {
21141 test "$cross_compiling" = yes ||
21142 $as_test_x conftest$ac_exeext
21143 }; then
21144 ac_cv_func_hes_getmailhost=yes
21145 else
21146 $as_echo "$as_me: failed program was:" >&5
21147 sed 's/^/| /' conftest.$ac_ext >&5
21148
21149 ac_cv_func_hes_getmailhost=no
21150 fi
21151
21152 rm -rf conftest.dSYM
21153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21154 conftest$ac_exeext conftest.$ac_ext
21155 fi
21156 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21157 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21158 if test $ac_cv_func_hes_getmailhost = yes; then
21159 :
21160 else
21161 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21162 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21163 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21164 $as_echo_n "(cached) " >&6
21165 else
21166 ac_check_lib_save_LIBS=$LIBS
21167 LIBS="-lhesiod $RESOLVLIB $LIBS"
21168 cat >conftest.$ac_ext <<_ACEOF
21169 /* confdefs.h. */
21170 _ACEOF
21171 cat confdefs.h >>conftest.$ac_ext
21172 cat >>conftest.$ac_ext <<_ACEOF
21173 /* end confdefs.h. */
21174
21175 /* Override any GCC internal prototype to avoid an error.
21176 Use char because int might match the return type of a GCC
21177 builtin and then its argument prototype would still apply. */
21178 #ifdef __cplusplus
21179 extern "C"
21180 #endif
21181 char hes_getmailhost ();
21182 int
21183 main ()
21184 {
21185 return hes_getmailhost ();
21186 ;
21187 return 0;
21188 }
21189 _ACEOF
21190 rm -f conftest.$ac_objext conftest$ac_exeext
21191 if { (ac_try="$ac_link"
21192 case "(($ac_try" in
21193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21194 *) ac_try_echo=$ac_try;;
21195 esac
21196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21197 $as_echo "$ac_try_echo") >&5
21198 (eval "$ac_link") 2>conftest.er1
21199 ac_status=$?
21200 grep -v '^ *+' conftest.er1 >conftest.err
21201 rm -f conftest.er1
21202 cat conftest.err >&5
21203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } && {
21205 test -z "$ac_c_werror_flag" ||
21206 test ! -s conftest.err
21207 } && test -s conftest$ac_exeext && {
21208 test "$cross_compiling" = yes ||
21209 $as_test_x conftest$ac_exeext
21210 }; then
21211 ac_cv_lib_hesiod_hes_getmailhost=yes
21212 else
21213 $as_echo "$as_me: failed program was:" >&5
21214 sed 's/^/| /' conftest.$ac_ext >&5
21215
21216 ac_cv_lib_hesiod_hes_getmailhost=no
21217 fi
21218
21219 rm -rf conftest.dSYM
21220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21221 conftest$ac_exeext conftest.$ac_ext
21222 LIBS=$ac_check_lib_save_LIBS
21223 fi
21224 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21225 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21226 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21227
21228 cat >>confdefs.h <<\_ACEOF
21229 #define HAVE_LIBHESIOD 1
21230 _ACEOF
21231
21232 else
21233 :
21234 fi
21235
21236 fi
21237
21238 fi
21239
21240 # Do we need libresolv (due to res_init or Hesiod)?
21241 if test "$resolv" = yes ; then
21242
21243 cat >>confdefs.h <<\_ACEOF
21244 #define HAVE_LIBRESOLV 1
21245 _ACEOF
21246
21247 fi
21248
21249 # These tell us which Kerberos-related libraries to use.
21250 if test "${with_kerberos}" != no; then
21251
21252 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21253 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21254 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21255 $as_echo_n "(cached) " >&6
21256 else
21257 ac_check_lib_save_LIBS=$LIBS
21258 LIBS="-lcom_err $LIBS"
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
21266 /* Override any GCC internal prototype to avoid an error.
21267 Use char because int might match the return type of a GCC
21268 builtin and then its argument prototype would still apply. */
21269 #ifdef __cplusplus
21270 extern "C"
21271 #endif
21272 char com_err ();
21273 int
21274 main ()
21275 {
21276 return com_err ();
21277 ;
21278 return 0;
21279 }
21280 _ACEOF
21281 rm -f conftest.$ac_objext conftest$ac_exeext
21282 if { (ac_try="$ac_link"
21283 case "(($ac_try" in
21284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285 *) ac_try_echo=$ac_try;;
21286 esac
21287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21288 $as_echo "$ac_try_echo") >&5
21289 (eval "$ac_link") 2>conftest.er1
21290 ac_status=$?
21291 grep -v '^ *+' conftest.er1 >conftest.err
21292 rm -f conftest.er1
21293 cat conftest.err >&5
21294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); } && {
21296 test -z "$ac_c_werror_flag" ||
21297 test ! -s conftest.err
21298 } && test -s conftest$ac_exeext && {
21299 test "$cross_compiling" = yes ||
21300 $as_test_x conftest$ac_exeext
21301 }; then
21302 ac_cv_lib_com_err_com_err=yes
21303 else
21304 $as_echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21306
21307 ac_cv_lib_com_err_com_err=no
21308 fi
21309
21310 rm -rf conftest.dSYM
21311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21312 conftest$ac_exeext conftest.$ac_ext
21313 LIBS=$ac_check_lib_save_LIBS
21314 fi
21315 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21316 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21317 if test $ac_cv_lib_com_err_com_err = yes; then
21318 cat >>confdefs.h <<_ACEOF
21319 #define HAVE_LIBCOM_ERR 1
21320 _ACEOF
21321
21322 LIBS="-lcom_err $LIBS"
21323
21324 fi
21325
21326
21327 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21328 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21329 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21330 $as_echo_n "(cached) " >&6
21331 else
21332 ac_check_lib_save_LIBS=$LIBS
21333 LIBS="-lk5crypto $LIBS"
21334 cat >conftest.$ac_ext <<_ACEOF
21335 /* confdefs.h. */
21336 _ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21340
21341 /* Override any GCC internal prototype to avoid an error.
21342 Use char because int might match the return type of a GCC
21343 builtin and then its argument prototype would still apply. */
21344 #ifdef __cplusplus
21345 extern "C"
21346 #endif
21347 char mit_des_cbc_encrypt ();
21348 int
21349 main ()
21350 {
21351 return mit_des_cbc_encrypt ();
21352 ;
21353 return 0;
21354 }
21355 _ACEOF
21356 rm -f conftest.$ac_objext conftest$ac_exeext
21357 if { (ac_try="$ac_link"
21358 case "(($ac_try" in
21359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21360 *) ac_try_echo=$ac_try;;
21361 esac
21362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21363 $as_echo "$ac_try_echo") >&5
21364 (eval "$ac_link") 2>conftest.er1
21365 ac_status=$?
21366 grep -v '^ *+' conftest.er1 >conftest.err
21367 rm -f conftest.er1
21368 cat conftest.err >&5
21369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); } && {
21371 test -z "$ac_c_werror_flag" ||
21372 test ! -s conftest.err
21373 } && test -s conftest$ac_exeext && {
21374 test "$cross_compiling" = yes ||
21375 $as_test_x conftest$ac_exeext
21376 }; then
21377 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21378 else
21379 $as_echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21381
21382 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21383 fi
21384
21385 rm -rf conftest.dSYM
21386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21387 conftest$ac_exeext conftest.$ac_ext
21388 LIBS=$ac_check_lib_save_LIBS
21389 fi
21390 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21391 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21392 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21393 cat >>confdefs.h <<_ACEOF
21394 #define HAVE_LIBK5CRYPTO 1
21395 _ACEOF
21396
21397 LIBS="-lk5crypto $LIBS"
21398
21399 fi
21400
21401
21402 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21403 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21404 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21405 $as_echo_n "(cached) " >&6
21406 else
21407 ac_check_lib_save_LIBS=$LIBS
21408 LIBS="-lcrypto $LIBS"
21409 cat >conftest.$ac_ext <<_ACEOF
21410 /* confdefs.h. */
21411 _ACEOF
21412 cat confdefs.h >>conftest.$ac_ext
21413 cat >>conftest.$ac_ext <<_ACEOF
21414 /* end confdefs.h. */
21415
21416 /* Override any GCC internal prototype to avoid an error.
21417 Use char because int might match the return type of a GCC
21418 builtin and then its argument prototype would still apply. */
21419 #ifdef __cplusplus
21420 extern "C"
21421 #endif
21422 char mit_des_cbc_encrypt ();
21423 int
21424 main ()
21425 {
21426 return mit_des_cbc_encrypt ();
21427 ;
21428 return 0;
21429 }
21430 _ACEOF
21431 rm -f conftest.$ac_objext conftest$ac_exeext
21432 if { (ac_try="$ac_link"
21433 case "(($ac_try" in
21434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435 *) ac_try_echo=$ac_try;;
21436 esac
21437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21438 $as_echo "$ac_try_echo") >&5
21439 (eval "$ac_link") 2>conftest.er1
21440 ac_status=$?
21441 grep -v '^ *+' conftest.er1 >conftest.err
21442 rm -f conftest.er1
21443 cat conftest.err >&5
21444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); } && {
21446 test -z "$ac_c_werror_flag" ||
21447 test ! -s conftest.err
21448 } && test -s conftest$ac_exeext && {
21449 test "$cross_compiling" = yes ||
21450 $as_test_x conftest$ac_exeext
21451 }; then
21452 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21453 else
21454 $as_echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21456
21457 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21458 fi
21459
21460 rm -rf conftest.dSYM
21461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21462 conftest$ac_exeext conftest.$ac_ext
21463 LIBS=$ac_check_lib_save_LIBS
21464 fi
21465 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21466 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21467 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21468 cat >>confdefs.h <<_ACEOF
21469 #define HAVE_LIBCRYPTO 1
21470 _ACEOF
21471
21472 LIBS="-lcrypto $LIBS"
21473
21474 fi
21475
21476
21477 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
21478 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21479 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21480 $as_echo_n "(cached) " >&6
21481 else
21482 ac_check_lib_save_LIBS=$LIBS
21483 LIBS="-lkrb5 $LIBS"
21484 cat >conftest.$ac_ext <<_ACEOF
21485 /* confdefs.h. */
21486 _ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h. */
21490
21491 /* Override any GCC internal prototype to avoid an error.
21492 Use char because int might match the return type of a GCC
21493 builtin and then its argument prototype would still apply. */
21494 #ifdef __cplusplus
21495 extern "C"
21496 #endif
21497 char krb5_init_context ();
21498 int
21499 main ()
21500 {
21501 return krb5_init_context ();
21502 ;
21503 return 0;
21504 }
21505 _ACEOF
21506 rm -f conftest.$ac_objext conftest$ac_exeext
21507 if { (ac_try="$ac_link"
21508 case "(($ac_try" in
21509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510 *) ac_try_echo=$ac_try;;
21511 esac
21512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21513 $as_echo "$ac_try_echo") >&5
21514 (eval "$ac_link") 2>conftest.er1
21515 ac_status=$?
21516 grep -v '^ *+' conftest.er1 >conftest.err
21517 rm -f conftest.er1
21518 cat conftest.err >&5
21519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } && {
21521 test -z "$ac_c_werror_flag" ||
21522 test ! -s conftest.err
21523 } && test -s conftest$ac_exeext && {
21524 test "$cross_compiling" = yes ||
21525 $as_test_x conftest$ac_exeext
21526 }; then
21527 ac_cv_lib_krb5_krb5_init_context=yes
21528 else
21529 $as_echo "$as_me: failed program was:" >&5
21530 sed 's/^/| /' conftest.$ac_ext >&5
21531
21532 ac_cv_lib_krb5_krb5_init_context=no
21533 fi
21534
21535 rm -rf conftest.dSYM
21536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21537 conftest$ac_exeext conftest.$ac_ext
21538 LIBS=$ac_check_lib_save_LIBS
21539 fi
21540 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21541 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21542 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21543 cat >>confdefs.h <<_ACEOF
21544 #define HAVE_LIBKRB5 1
21545 _ACEOF
21546
21547 LIBS="-lkrb5 $LIBS"
21548
21549 fi
21550
21551 if test "${with_kerberos5}" = no; then
21552
21553 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
21554 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21555 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21556 $as_echo_n "(cached) " >&6
21557 else
21558 ac_check_lib_save_LIBS=$LIBS
21559 LIBS="-ldes425 $LIBS"
21560 cat >conftest.$ac_ext <<_ACEOF
21561 /* confdefs.h. */
21562 _ACEOF
21563 cat confdefs.h >>conftest.$ac_ext
21564 cat >>conftest.$ac_ext <<_ACEOF
21565 /* end confdefs.h. */
21566
21567 /* Override any GCC internal prototype to avoid an error.
21568 Use char because int might match the return type of a GCC
21569 builtin and then its argument prototype would still apply. */
21570 #ifdef __cplusplus
21571 extern "C"
21572 #endif
21573 char des_cbc_encrypt ();
21574 int
21575 main ()
21576 {
21577 return des_cbc_encrypt ();
21578 ;
21579 return 0;
21580 }
21581 _ACEOF
21582 rm -f conftest.$ac_objext conftest$ac_exeext
21583 if { (ac_try="$ac_link"
21584 case "(($ac_try" in
21585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586 *) ac_try_echo=$ac_try;;
21587 esac
21588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21589 $as_echo "$ac_try_echo") >&5
21590 (eval "$ac_link") 2>conftest.er1
21591 ac_status=$?
21592 grep -v '^ *+' conftest.er1 >conftest.err
21593 rm -f conftest.er1
21594 cat conftest.err >&5
21595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } && {
21597 test -z "$ac_c_werror_flag" ||
21598 test ! -s conftest.err
21599 } && test -s conftest$ac_exeext && {
21600 test "$cross_compiling" = yes ||
21601 $as_test_x conftest$ac_exeext
21602 }; then
21603 ac_cv_lib_des425_des_cbc_encrypt=yes
21604 else
21605 $as_echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21607
21608 ac_cv_lib_des425_des_cbc_encrypt=no
21609 fi
21610
21611 rm -rf conftest.dSYM
21612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21613 conftest$ac_exeext conftest.$ac_ext
21614 LIBS=$ac_check_lib_save_LIBS
21615 fi
21616 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21617 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21618 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21619 cat >>confdefs.h <<_ACEOF
21620 #define HAVE_LIBDES425 1
21621 _ACEOF
21622
21623 LIBS="-ldes425 $LIBS"
21624
21625 else
21626
21627 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21628 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21629 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21630 $as_echo_n "(cached) " >&6
21631 else
21632 ac_check_lib_save_LIBS=$LIBS
21633 LIBS="-ldes $LIBS"
21634 cat >conftest.$ac_ext <<_ACEOF
21635 /* confdefs.h. */
21636 _ACEOF
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h. */
21640
21641 /* Override any GCC internal prototype to avoid an error.
21642 Use char because int might match the return type of a GCC
21643 builtin and then its argument prototype would still apply. */
21644 #ifdef __cplusplus
21645 extern "C"
21646 #endif
21647 char des_cbc_encrypt ();
21648 int
21649 main ()
21650 {
21651 return des_cbc_encrypt ();
21652 ;
21653 return 0;
21654 }
21655 _ACEOF
21656 rm -f conftest.$ac_objext conftest$ac_exeext
21657 if { (ac_try="$ac_link"
21658 case "(($ac_try" in
21659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660 *) ac_try_echo=$ac_try;;
21661 esac
21662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21663 $as_echo "$ac_try_echo") >&5
21664 (eval "$ac_link") 2>conftest.er1
21665 ac_status=$?
21666 grep -v '^ *+' conftest.er1 >conftest.err
21667 rm -f conftest.er1
21668 cat conftest.err >&5
21669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } && {
21671 test -z "$ac_c_werror_flag" ||
21672 test ! -s conftest.err
21673 } && test -s conftest$ac_exeext && {
21674 test "$cross_compiling" = yes ||
21675 $as_test_x conftest$ac_exeext
21676 }; then
21677 ac_cv_lib_des_des_cbc_encrypt=yes
21678 else
21679 $as_echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21681
21682 ac_cv_lib_des_des_cbc_encrypt=no
21683 fi
21684
21685 rm -rf conftest.dSYM
21686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21687 conftest$ac_exeext conftest.$ac_ext
21688 LIBS=$ac_check_lib_save_LIBS
21689 fi
21690 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21691 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21692 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21693 cat >>confdefs.h <<_ACEOF
21694 #define HAVE_LIBDES 1
21695 _ACEOF
21696
21697 LIBS="-ldes $LIBS"
21698
21699 fi
21700
21701 fi
21702
21703
21704 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21705 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21706 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21707 $as_echo_n "(cached) " >&6
21708 else
21709 ac_check_lib_save_LIBS=$LIBS
21710 LIBS="-lkrb4 $LIBS"
21711 cat >conftest.$ac_ext <<_ACEOF
21712 /* confdefs.h. */
21713 _ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21717
21718 /* Override any GCC internal prototype to avoid an error.
21719 Use char because int might match the return type of a GCC
21720 builtin and then its argument prototype would still apply. */
21721 #ifdef __cplusplus
21722 extern "C"
21723 #endif
21724 char krb_get_cred ();
21725 int
21726 main ()
21727 {
21728 return krb_get_cred ();
21729 ;
21730 return 0;
21731 }
21732 _ACEOF
21733 rm -f conftest.$ac_objext conftest$ac_exeext
21734 if { (ac_try="$ac_link"
21735 case "(($ac_try" in
21736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737 *) ac_try_echo=$ac_try;;
21738 esac
21739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21740 $as_echo "$ac_try_echo") >&5
21741 (eval "$ac_link") 2>conftest.er1
21742 ac_status=$?
21743 grep -v '^ *+' conftest.er1 >conftest.err
21744 rm -f conftest.er1
21745 cat conftest.err >&5
21746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); } && {
21748 test -z "$ac_c_werror_flag" ||
21749 test ! -s conftest.err
21750 } && test -s conftest$ac_exeext && {
21751 test "$cross_compiling" = yes ||
21752 $as_test_x conftest$ac_exeext
21753 }; then
21754 ac_cv_lib_krb4_krb_get_cred=yes
21755 else
21756 $as_echo "$as_me: failed program was:" >&5
21757 sed 's/^/| /' conftest.$ac_ext >&5
21758
21759 ac_cv_lib_krb4_krb_get_cred=no
21760 fi
21761
21762 rm -rf conftest.dSYM
21763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21764 conftest$ac_exeext conftest.$ac_ext
21765 LIBS=$ac_check_lib_save_LIBS
21766 fi
21767 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21768 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21769 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21770 cat >>confdefs.h <<_ACEOF
21771 #define HAVE_LIBKRB4 1
21772 _ACEOF
21773
21774 LIBS="-lkrb4 $LIBS"
21775
21776 else
21777
21778 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21779 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21780 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21781 $as_echo_n "(cached) " >&6
21782 else
21783 ac_check_lib_save_LIBS=$LIBS
21784 LIBS="-lkrb $LIBS"
21785 cat >conftest.$ac_ext <<_ACEOF
21786 /* confdefs.h. */
21787 _ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h. */
21791
21792 /* Override any GCC internal prototype to avoid an error.
21793 Use char because int might match the return type of a GCC
21794 builtin and then its argument prototype would still apply. */
21795 #ifdef __cplusplus
21796 extern "C"
21797 #endif
21798 char krb_get_cred ();
21799 int
21800 main ()
21801 {
21802 return krb_get_cred ();
21803 ;
21804 return 0;
21805 }
21806 _ACEOF
21807 rm -f conftest.$ac_objext conftest$ac_exeext
21808 if { (ac_try="$ac_link"
21809 case "(($ac_try" in
21810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811 *) ac_try_echo=$ac_try;;
21812 esac
21813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21814 $as_echo "$ac_try_echo") >&5
21815 (eval "$ac_link") 2>conftest.er1
21816 ac_status=$?
21817 grep -v '^ *+' conftest.er1 >conftest.err
21818 rm -f conftest.er1
21819 cat conftest.err >&5
21820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); } && {
21822 test -z "$ac_c_werror_flag" ||
21823 test ! -s conftest.err
21824 } && test -s conftest$ac_exeext && {
21825 test "$cross_compiling" = yes ||
21826 $as_test_x conftest$ac_exeext
21827 }; then
21828 ac_cv_lib_krb_krb_get_cred=yes
21829 else
21830 $as_echo "$as_me: failed program was:" >&5
21831 sed 's/^/| /' conftest.$ac_ext >&5
21832
21833 ac_cv_lib_krb_krb_get_cred=no
21834 fi
21835
21836 rm -rf conftest.dSYM
21837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21838 conftest$ac_exeext conftest.$ac_ext
21839 LIBS=$ac_check_lib_save_LIBS
21840 fi
21841 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21842 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
21843 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21844 cat >>confdefs.h <<_ACEOF
21845 #define HAVE_LIBKRB 1
21846 _ACEOF
21847
21848 LIBS="-lkrb $LIBS"
21849
21850 fi
21851
21852 fi
21853
21854 fi
21855
21856 if test "${with_kerberos5}" != no; then
21857
21858 for ac_header in krb5.h
21859 do
21860 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21862 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21863 $as_echo_n "checking for $ac_header... " >&6; }
21864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21865 $as_echo_n "(cached) " >&6
21866 fi
21867 ac_res=`eval 'as_val=${'$as_ac_Header'}
21868 $as_echo "$as_val"'`
21869 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21870 $as_echo "$ac_res" >&6; }
21871 else
21872 # Is the header compilable?
21873 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21874 $as_echo_n "checking $ac_header usability... " >&6; }
21875 cat >conftest.$ac_ext <<_ACEOF
21876 /* confdefs.h. */
21877 _ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h. */
21881 $ac_includes_default
21882 #include <$ac_header>
21883 _ACEOF
21884 rm -f conftest.$ac_objext
21885 if { (ac_try="$ac_compile"
21886 case "(($ac_try" in
21887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21888 *) ac_try_echo=$ac_try;;
21889 esac
21890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21891 $as_echo "$ac_try_echo") >&5
21892 (eval "$ac_compile") 2>conftest.er1
21893 ac_status=$?
21894 grep -v '^ *+' conftest.er1 >conftest.err
21895 rm -f conftest.er1
21896 cat conftest.err >&5
21897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); } && {
21899 test -z "$ac_c_werror_flag" ||
21900 test ! -s conftest.err
21901 } && test -s conftest.$ac_objext; then
21902 ac_header_compiler=yes
21903 else
21904 $as_echo "$as_me: failed program was:" >&5
21905 sed 's/^/| /' conftest.$ac_ext >&5
21906
21907 ac_header_compiler=no
21908 fi
21909
21910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21911 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21912 $as_echo "$ac_header_compiler" >&6; }
21913
21914 # Is the header present?
21915 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21916 $as_echo_n "checking $ac_header presence... " >&6; }
21917 cat >conftest.$ac_ext <<_ACEOF
21918 /* confdefs.h. */
21919 _ACEOF
21920 cat confdefs.h >>conftest.$ac_ext
21921 cat >>conftest.$ac_ext <<_ACEOF
21922 /* end confdefs.h. */
21923 #include <$ac_header>
21924 _ACEOF
21925 if { (ac_try="$ac_cpp conftest.$ac_ext"
21926 case "(($ac_try" in
21927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21928 *) ac_try_echo=$ac_try;;
21929 esac
21930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21931 $as_echo "$ac_try_echo") >&5
21932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21933 ac_status=$?
21934 grep -v '^ *+' conftest.er1 >conftest.err
21935 rm -f conftest.er1
21936 cat conftest.err >&5
21937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); } >/dev/null && {
21939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21940 test ! -s conftest.err
21941 }; then
21942 ac_header_preproc=yes
21943 else
21944 $as_echo "$as_me: failed program was:" >&5
21945 sed 's/^/| /' conftest.$ac_ext >&5
21946
21947 ac_header_preproc=no
21948 fi
21949
21950 rm -f conftest.err conftest.$ac_ext
21951 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21952 $as_echo "$ac_header_preproc" >&6; }
21953
21954 # So? What about this header?
21955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21956 yes:no: )
21957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21958 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21960 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21961 ac_header_preproc=yes
21962 ;;
21963 no:yes:* )
21964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21965 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21967 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21969 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21971 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21973 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21975 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21976
21977 ;;
21978 esac
21979 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21980 $as_echo_n "checking for $ac_header... " >&6; }
21981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21982 $as_echo_n "(cached) " >&6
21983 else
21984 eval "$as_ac_Header=\$ac_header_preproc"
21985 fi
21986 ac_res=`eval 'as_val=${'$as_ac_Header'}
21987 $as_echo "$as_val"'`
21988 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21989 $as_echo "$ac_res" >&6; }
21990
21991 fi
21992 if test `eval 'as_val=${'$as_ac_Header'}
21993 $as_echo "$as_val"'` = yes; then
21994 cat >>confdefs.h <<_ACEOF
21995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21996 _ACEOF
21997 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21998 $as_echo_n "checking for krb5_error.text... " >&6; }
21999 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22000 $as_echo_n "(cached) " >&6
22001 else
22002 cat >conftest.$ac_ext <<_ACEOF
22003 /* confdefs.h. */
22004 _ACEOF
22005 cat confdefs.h >>conftest.$ac_ext
22006 cat >>conftest.$ac_ext <<_ACEOF
22007 /* end confdefs.h. */
22008 #include <krb5.h>
22009
22010 int
22011 main ()
22012 {
22013 static krb5_error ac_aggr;
22014 if (ac_aggr.text)
22015 return 0;
22016 ;
22017 return 0;
22018 }
22019 _ACEOF
22020 rm -f conftest.$ac_objext
22021 if { (ac_try="$ac_compile"
22022 case "(($ac_try" in
22023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024 *) ac_try_echo=$ac_try;;
22025 esac
22026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22027 $as_echo "$ac_try_echo") >&5
22028 (eval "$ac_compile") 2>conftest.er1
22029 ac_status=$?
22030 grep -v '^ *+' conftest.er1 >conftest.err
22031 rm -f conftest.er1
22032 cat conftest.err >&5
22033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } && {
22035 test -z "$ac_c_werror_flag" ||
22036 test ! -s conftest.err
22037 } && test -s conftest.$ac_objext; then
22038 ac_cv_member_krb5_error_text=yes
22039 else
22040 $as_echo "$as_me: failed program was:" >&5
22041 sed 's/^/| /' conftest.$ac_ext >&5
22042
22043 cat >conftest.$ac_ext <<_ACEOF
22044 /* confdefs.h. */
22045 _ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h. */
22049 #include <krb5.h>
22050
22051 int
22052 main ()
22053 {
22054 static krb5_error ac_aggr;
22055 if (sizeof ac_aggr.text)
22056 return 0;
22057 ;
22058 return 0;
22059 }
22060 _ACEOF
22061 rm -f conftest.$ac_objext
22062 if { (ac_try="$ac_compile"
22063 case "(($ac_try" in
22064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22065 *) ac_try_echo=$ac_try;;
22066 esac
22067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22068 $as_echo "$ac_try_echo") >&5
22069 (eval "$ac_compile") 2>conftest.er1
22070 ac_status=$?
22071 grep -v '^ *+' conftest.er1 >conftest.err
22072 rm -f conftest.er1
22073 cat conftest.err >&5
22074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); } && {
22076 test -z "$ac_c_werror_flag" ||
22077 test ! -s conftest.err
22078 } && test -s conftest.$ac_objext; then
22079 ac_cv_member_krb5_error_text=yes
22080 else
22081 $as_echo "$as_me: failed program was:" >&5
22082 sed 's/^/| /' conftest.$ac_ext >&5
22083
22084 ac_cv_member_krb5_error_text=no
22085 fi
22086
22087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22088 fi
22089
22090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22091 fi
22092 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22093 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22094 if test $ac_cv_member_krb5_error_text = yes; then
22095
22096 cat >>confdefs.h <<_ACEOF
22097 #define HAVE_KRB5_ERROR_TEXT 1
22098 _ACEOF
22099
22100
22101 fi
22102 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22103 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22104 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22105 $as_echo_n "(cached) " >&6
22106 else
22107 cat >conftest.$ac_ext <<_ACEOF
22108 /* confdefs.h. */
22109 _ACEOF
22110 cat confdefs.h >>conftest.$ac_ext
22111 cat >>conftest.$ac_ext <<_ACEOF
22112 /* end confdefs.h. */
22113 #include <krb5.h>
22114
22115 int
22116 main ()
22117 {
22118 static krb5_error ac_aggr;
22119 if (ac_aggr.e_text)
22120 return 0;
22121 ;
22122 return 0;
22123 }
22124 _ACEOF
22125 rm -f conftest.$ac_objext
22126 if { (ac_try="$ac_compile"
22127 case "(($ac_try" in
22128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22129 *) ac_try_echo=$ac_try;;
22130 esac
22131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22132 $as_echo "$ac_try_echo") >&5
22133 (eval "$ac_compile") 2>conftest.er1
22134 ac_status=$?
22135 grep -v '^ *+' conftest.er1 >conftest.err
22136 rm -f conftest.er1
22137 cat conftest.err >&5
22138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); } && {
22140 test -z "$ac_c_werror_flag" ||
22141 test ! -s conftest.err
22142 } && test -s conftest.$ac_objext; then
22143 ac_cv_member_krb5_error_e_text=yes
22144 else
22145 $as_echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22147
22148 cat >conftest.$ac_ext <<_ACEOF
22149 /* confdefs.h. */
22150 _ACEOF
22151 cat confdefs.h >>conftest.$ac_ext
22152 cat >>conftest.$ac_ext <<_ACEOF
22153 /* end confdefs.h. */
22154 #include <krb5.h>
22155
22156 int
22157 main ()
22158 {
22159 static krb5_error ac_aggr;
22160 if (sizeof ac_aggr.e_text)
22161 return 0;
22162 ;
22163 return 0;
22164 }
22165 _ACEOF
22166 rm -f conftest.$ac_objext
22167 if { (ac_try="$ac_compile"
22168 case "(($ac_try" in
22169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22170 *) ac_try_echo=$ac_try;;
22171 esac
22172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22173 $as_echo "$ac_try_echo") >&5
22174 (eval "$ac_compile") 2>conftest.er1
22175 ac_status=$?
22176 grep -v '^ *+' conftest.er1 >conftest.err
22177 rm -f conftest.er1
22178 cat conftest.err >&5
22179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); } && {
22181 test -z "$ac_c_werror_flag" ||
22182 test ! -s conftest.err
22183 } && test -s conftest.$ac_objext; then
22184 ac_cv_member_krb5_error_e_text=yes
22185 else
22186 $as_echo "$as_me: failed program was:" >&5
22187 sed 's/^/| /' conftest.$ac_ext >&5
22188
22189 ac_cv_member_krb5_error_e_text=no
22190 fi
22191
22192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22193 fi
22194
22195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22196 fi
22197 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22198 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22199 if test $ac_cv_member_krb5_error_e_text = yes; then
22200
22201 cat >>confdefs.h <<_ACEOF
22202 #define HAVE_KRB5_ERROR_E_TEXT 1
22203 _ACEOF
22204
22205
22206 fi
22207
22208 fi
22209
22210 done
22211
22212 else
22213
22214 for ac_header in des.h
22215 do
22216 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22218 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22219 $as_echo_n "checking for $ac_header... " >&6; }
22220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22221 $as_echo_n "(cached) " >&6
22222 fi
22223 ac_res=`eval 'as_val=${'$as_ac_Header'}
22224 $as_echo "$as_val"'`
22225 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22226 $as_echo "$ac_res" >&6; }
22227 else
22228 # Is the header compilable?
22229 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22230 $as_echo_n "checking $ac_header usability... " >&6; }
22231 cat >conftest.$ac_ext <<_ACEOF
22232 /* confdefs.h. */
22233 _ACEOF
22234 cat confdefs.h >>conftest.$ac_ext
22235 cat >>conftest.$ac_ext <<_ACEOF
22236 /* end confdefs.h. */
22237 $ac_includes_default
22238 #include <$ac_header>
22239 _ACEOF
22240 rm -f conftest.$ac_objext
22241 if { (ac_try="$ac_compile"
22242 case "(($ac_try" in
22243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22244 *) ac_try_echo=$ac_try;;
22245 esac
22246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22247 $as_echo "$ac_try_echo") >&5
22248 (eval "$ac_compile") 2>conftest.er1
22249 ac_status=$?
22250 grep -v '^ *+' conftest.er1 >conftest.err
22251 rm -f conftest.er1
22252 cat conftest.err >&5
22253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); } && {
22255 test -z "$ac_c_werror_flag" ||
22256 test ! -s conftest.err
22257 } && test -s conftest.$ac_objext; then
22258 ac_header_compiler=yes
22259 else
22260 $as_echo "$as_me: failed program was:" >&5
22261 sed 's/^/| /' conftest.$ac_ext >&5
22262
22263 ac_header_compiler=no
22264 fi
22265
22266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22267 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22268 $as_echo "$ac_header_compiler" >&6; }
22269
22270 # Is the header present?
22271 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22272 $as_echo_n "checking $ac_header presence... " >&6; }
22273 cat >conftest.$ac_ext <<_ACEOF
22274 /* confdefs.h. */
22275 _ACEOF
22276 cat confdefs.h >>conftest.$ac_ext
22277 cat >>conftest.$ac_ext <<_ACEOF
22278 /* end confdefs.h. */
22279 #include <$ac_header>
22280 _ACEOF
22281 if { (ac_try="$ac_cpp conftest.$ac_ext"
22282 case "(($ac_try" in
22283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284 *) ac_try_echo=$ac_try;;
22285 esac
22286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22287 $as_echo "$ac_try_echo") >&5
22288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22289 ac_status=$?
22290 grep -v '^ *+' conftest.er1 >conftest.err
22291 rm -f conftest.er1
22292 cat conftest.err >&5
22293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); } >/dev/null && {
22295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22296 test ! -s conftest.err
22297 }; then
22298 ac_header_preproc=yes
22299 else
22300 $as_echo "$as_me: failed program was:" >&5
22301 sed 's/^/| /' conftest.$ac_ext >&5
22302
22303 ac_header_preproc=no
22304 fi
22305
22306 rm -f conftest.err conftest.$ac_ext
22307 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22308 $as_echo "$ac_header_preproc" >&6; }
22309
22310 # So? What about this header?
22311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22312 yes:no: )
22313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22314 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22316 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22317 ac_header_preproc=yes
22318 ;;
22319 no:yes:* )
22320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22321 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22323 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22325 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22327 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22329 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22331 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22332
22333 ;;
22334 esac
22335 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22336 $as_echo_n "checking for $ac_header... " >&6; }
22337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22338 $as_echo_n "(cached) " >&6
22339 else
22340 eval "$as_ac_Header=\$ac_header_preproc"
22341 fi
22342 ac_res=`eval 'as_val=${'$as_ac_Header'}
22343 $as_echo "$as_val"'`
22344 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22345 $as_echo "$ac_res" >&6; }
22346
22347 fi
22348 if test `eval 'as_val=${'$as_ac_Header'}
22349 $as_echo "$as_val"'` = yes; then
22350 cat >>confdefs.h <<_ACEOF
22351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22352 _ACEOF
22353
22354 else
22355
22356 for ac_header in kerberosIV/des.h
22357 do
22358 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22360 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22361 $as_echo_n "checking for $ac_header... " >&6; }
22362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22363 $as_echo_n "(cached) " >&6
22364 fi
22365 ac_res=`eval 'as_val=${'$as_ac_Header'}
22366 $as_echo "$as_val"'`
22367 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22368 $as_echo "$ac_res" >&6; }
22369 else
22370 # Is the header compilable?
22371 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22372 $as_echo_n "checking $ac_header usability... " >&6; }
22373 cat >conftest.$ac_ext <<_ACEOF
22374 /* confdefs.h. */
22375 _ACEOF
22376 cat confdefs.h >>conftest.$ac_ext
22377 cat >>conftest.$ac_ext <<_ACEOF
22378 /* end confdefs.h. */
22379 $ac_includes_default
22380 #include <$ac_header>
22381 _ACEOF
22382 rm -f conftest.$ac_objext
22383 if { (ac_try="$ac_compile"
22384 case "(($ac_try" in
22385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22386 *) ac_try_echo=$ac_try;;
22387 esac
22388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22389 $as_echo "$ac_try_echo") >&5
22390 (eval "$ac_compile") 2>conftest.er1
22391 ac_status=$?
22392 grep -v '^ *+' conftest.er1 >conftest.err
22393 rm -f conftest.er1
22394 cat conftest.err >&5
22395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); } && {
22397 test -z "$ac_c_werror_flag" ||
22398 test ! -s conftest.err
22399 } && test -s conftest.$ac_objext; then
22400 ac_header_compiler=yes
22401 else
22402 $as_echo "$as_me: failed program was:" >&5
22403 sed 's/^/| /' conftest.$ac_ext >&5
22404
22405 ac_header_compiler=no
22406 fi
22407
22408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22409 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22410 $as_echo "$ac_header_compiler" >&6; }
22411
22412 # Is the header present?
22413 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22414 $as_echo_n "checking $ac_header presence... " >&6; }
22415 cat >conftest.$ac_ext <<_ACEOF
22416 /* confdefs.h. */
22417 _ACEOF
22418 cat confdefs.h >>conftest.$ac_ext
22419 cat >>conftest.$ac_ext <<_ACEOF
22420 /* end confdefs.h. */
22421 #include <$ac_header>
22422 _ACEOF
22423 if { (ac_try="$ac_cpp conftest.$ac_ext"
22424 case "(($ac_try" in
22425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22426 *) ac_try_echo=$ac_try;;
22427 esac
22428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22429 $as_echo "$ac_try_echo") >&5
22430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22431 ac_status=$?
22432 grep -v '^ *+' conftest.er1 >conftest.err
22433 rm -f conftest.er1
22434 cat conftest.err >&5
22435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436 (exit $ac_status); } >/dev/null && {
22437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22438 test ! -s conftest.err
22439 }; then
22440 ac_header_preproc=yes
22441 else
22442 $as_echo "$as_me: failed program was:" >&5
22443 sed 's/^/| /' conftest.$ac_ext >&5
22444
22445 ac_header_preproc=no
22446 fi
22447
22448 rm -f conftest.err conftest.$ac_ext
22449 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22450 $as_echo "$ac_header_preproc" >&6; }
22451
22452 # So? What about this header?
22453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22454 yes:no: )
22455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22456 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22458 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22459 ac_header_preproc=yes
22460 ;;
22461 no:yes:* )
22462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22463 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22465 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22467 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22469 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22471 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22473 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22474
22475 ;;
22476 esac
22477 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22478 $as_echo_n "checking for $ac_header... " >&6; }
22479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22480 $as_echo_n "(cached) " >&6
22481 else
22482 eval "$as_ac_Header=\$ac_header_preproc"
22483 fi
22484 ac_res=`eval 'as_val=${'$as_ac_Header'}
22485 $as_echo "$as_val"'`
22486 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22487 $as_echo "$ac_res" >&6; }
22488
22489 fi
22490 if test `eval 'as_val=${'$as_ac_Header'}
22491 $as_echo "$as_val"'` = yes; then
22492 cat >>confdefs.h <<_ACEOF
22493 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22494 _ACEOF
22495
22496 else
22497
22498 for ac_header in kerberos/des.h
22499 do
22500 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22502 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22503 $as_echo_n "checking for $ac_header... " >&6; }
22504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22505 $as_echo_n "(cached) " >&6
22506 fi
22507 ac_res=`eval 'as_val=${'$as_ac_Header'}
22508 $as_echo "$as_val"'`
22509 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22510 $as_echo "$ac_res" >&6; }
22511 else
22512 # Is the header compilable?
22513 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22514 $as_echo_n "checking $ac_header usability... " >&6; }
22515 cat >conftest.$ac_ext <<_ACEOF
22516 /* confdefs.h. */
22517 _ACEOF
22518 cat confdefs.h >>conftest.$ac_ext
22519 cat >>conftest.$ac_ext <<_ACEOF
22520 /* end confdefs.h. */
22521 $ac_includes_default
22522 #include <$ac_header>
22523 _ACEOF
22524 rm -f conftest.$ac_objext
22525 if { (ac_try="$ac_compile"
22526 case "(($ac_try" in
22527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528 *) ac_try_echo=$ac_try;;
22529 esac
22530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22531 $as_echo "$ac_try_echo") >&5
22532 (eval "$ac_compile") 2>conftest.er1
22533 ac_status=$?
22534 grep -v '^ *+' conftest.er1 >conftest.err
22535 rm -f conftest.er1
22536 cat conftest.err >&5
22537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); } && {
22539 test -z "$ac_c_werror_flag" ||
22540 test ! -s conftest.err
22541 } && test -s conftest.$ac_objext; then
22542 ac_header_compiler=yes
22543 else
22544 $as_echo "$as_me: failed program was:" >&5
22545 sed 's/^/| /' conftest.$ac_ext >&5
22546
22547 ac_header_compiler=no
22548 fi
22549
22550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22551 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22552 $as_echo "$ac_header_compiler" >&6; }
22553
22554 # Is the header present?
22555 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22556 $as_echo_n "checking $ac_header presence... " >&6; }
22557 cat >conftest.$ac_ext <<_ACEOF
22558 /* confdefs.h. */
22559 _ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h. */
22563 #include <$ac_header>
22564 _ACEOF
22565 if { (ac_try="$ac_cpp conftest.$ac_ext"
22566 case "(($ac_try" in
22567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22568 *) ac_try_echo=$ac_try;;
22569 esac
22570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22571 $as_echo "$ac_try_echo") >&5
22572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22573 ac_status=$?
22574 grep -v '^ *+' conftest.er1 >conftest.err
22575 rm -f conftest.er1
22576 cat conftest.err >&5
22577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); } >/dev/null && {
22579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22580 test ! -s conftest.err
22581 }; then
22582 ac_header_preproc=yes
22583 else
22584 $as_echo "$as_me: failed program was:" >&5
22585 sed 's/^/| /' conftest.$ac_ext >&5
22586
22587 ac_header_preproc=no
22588 fi
22589
22590 rm -f conftest.err conftest.$ac_ext
22591 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22592 $as_echo "$ac_header_preproc" >&6; }
22593
22594 # So? What about this header?
22595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22596 yes:no: )
22597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22598 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22600 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22601 ac_header_preproc=yes
22602 ;;
22603 no:yes:* )
22604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22605 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22607 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22609 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22611 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22613 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22615 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22616
22617 ;;
22618 esac
22619 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22620 $as_echo_n "checking for $ac_header... " >&6; }
22621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22622 $as_echo_n "(cached) " >&6
22623 else
22624 eval "$as_ac_Header=\$ac_header_preproc"
22625 fi
22626 ac_res=`eval 'as_val=${'$as_ac_Header'}
22627 $as_echo "$as_val"'`
22628 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22629 $as_echo "$ac_res" >&6; }
22630
22631 fi
22632 if test `eval 'as_val=${'$as_ac_Header'}
22633 $as_echo "$as_val"'` = yes; then
22634 cat >>confdefs.h <<_ACEOF
22635 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22636 _ACEOF
22637
22638 fi
22639
22640 done
22641
22642 fi
22643
22644 done
22645
22646 fi
22647
22648 done
22649
22650
22651 for ac_header in krb.h
22652 do
22653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22655 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22656 $as_echo_n "checking for $ac_header... " >&6; }
22657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22658 $as_echo_n "(cached) " >&6
22659 fi
22660 ac_res=`eval 'as_val=${'$as_ac_Header'}
22661 $as_echo "$as_val"'`
22662 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22663 $as_echo "$ac_res" >&6; }
22664 else
22665 # Is the header compilable?
22666 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22667 $as_echo_n "checking $ac_header usability... " >&6; }
22668 cat >conftest.$ac_ext <<_ACEOF
22669 /* confdefs.h. */
22670 _ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h. */
22674 $ac_includes_default
22675 #include <$ac_header>
22676 _ACEOF
22677 rm -f conftest.$ac_objext
22678 if { (ac_try="$ac_compile"
22679 case "(($ac_try" in
22680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22681 *) ac_try_echo=$ac_try;;
22682 esac
22683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22684 $as_echo "$ac_try_echo") >&5
22685 (eval "$ac_compile") 2>conftest.er1
22686 ac_status=$?
22687 grep -v '^ *+' conftest.er1 >conftest.err
22688 rm -f conftest.er1
22689 cat conftest.err >&5
22690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); } && {
22692 test -z "$ac_c_werror_flag" ||
22693 test ! -s conftest.err
22694 } && test -s conftest.$ac_objext; then
22695 ac_header_compiler=yes
22696 else
22697 $as_echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22699
22700 ac_header_compiler=no
22701 fi
22702
22703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22704 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22705 $as_echo "$ac_header_compiler" >&6; }
22706
22707 # Is the header present?
22708 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22709 $as_echo_n "checking $ac_header presence... " >&6; }
22710 cat >conftest.$ac_ext <<_ACEOF
22711 /* confdefs.h. */
22712 _ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h. */
22716 #include <$ac_header>
22717 _ACEOF
22718 if { (ac_try="$ac_cpp conftest.$ac_ext"
22719 case "(($ac_try" in
22720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22721 *) ac_try_echo=$ac_try;;
22722 esac
22723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22724 $as_echo "$ac_try_echo") >&5
22725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22726 ac_status=$?
22727 grep -v '^ *+' conftest.er1 >conftest.err
22728 rm -f conftest.er1
22729 cat conftest.err >&5
22730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); } >/dev/null && {
22732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22733 test ! -s conftest.err
22734 }; then
22735 ac_header_preproc=yes
22736 else
22737 $as_echo "$as_me: failed program was:" >&5
22738 sed 's/^/| /' conftest.$ac_ext >&5
22739
22740 ac_header_preproc=no
22741 fi
22742
22743 rm -f conftest.err conftest.$ac_ext
22744 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22745 $as_echo "$ac_header_preproc" >&6; }
22746
22747 # So? What about this header?
22748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22749 yes:no: )
22750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22751 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22753 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22754 ac_header_preproc=yes
22755 ;;
22756 no:yes:* )
22757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22758 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22760 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22762 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22764 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22768 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22769
22770 ;;
22771 esac
22772 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22773 $as_echo_n "checking for $ac_header... " >&6; }
22774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22775 $as_echo_n "(cached) " >&6
22776 else
22777 eval "$as_ac_Header=\$ac_header_preproc"
22778 fi
22779 ac_res=`eval 'as_val=${'$as_ac_Header'}
22780 $as_echo "$as_val"'`
22781 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22782 $as_echo "$ac_res" >&6; }
22783
22784 fi
22785 if test `eval 'as_val=${'$as_ac_Header'}
22786 $as_echo "$as_val"'` = yes; then
22787 cat >>confdefs.h <<_ACEOF
22788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22789 _ACEOF
22790
22791 else
22792
22793 for ac_header in kerberosIV/krb.h
22794 do
22795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22797 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22798 $as_echo_n "checking for $ac_header... " >&6; }
22799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22800 $as_echo_n "(cached) " >&6
22801 fi
22802 ac_res=`eval 'as_val=${'$as_ac_Header'}
22803 $as_echo "$as_val"'`
22804 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22805 $as_echo "$ac_res" >&6; }
22806 else
22807 # Is the header compilable?
22808 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22809 $as_echo_n "checking $ac_header usability... " >&6; }
22810 cat >conftest.$ac_ext <<_ACEOF
22811 /* confdefs.h. */
22812 _ACEOF
22813 cat confdefs.h >>conftest.$ac_ext
22814 cat >>conftest.$ac_ext <<_ACEOF
22815 /* end confdefs.h. */
22816 $ac_includes_default
22817 #include <$ac_header>
22818 _ACEOF
22819 rm -f conftest.$ac_objext
22820 if { (ac_try="$ac_compile"
22821 case "(($ac_try" in
22822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22823 *) ac_try_echo=$ac_try;;
22824 esac
22825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22826 $as_echo "$ac_try_echo") >&5
22827 (eval "$ac_compile") 2>conftest.er1
22828 ac_status=$?
22829 grep -v '^ *+' conftest.er1 >conftest.err
22830 rm -f conftest.er1
22831 cat conftest.err >&5
22832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); } && {
22834 test -z "$ac_c_werror_flag" ||
22835 test ! -s conftest.err
22836 } && test -s conftest.$ac_objext; then
22837 ac_header_compiler=yes
22838 else
22839 $as_echo "$as_me: failed program was:" >&5
22840 sed 's/^/| /' conftest.$ac_ext >&5
22841
22842 ac_header_compiler=no
22843 fi
22844
22845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22846 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22847 $as_echo "$ac_header_compiler" >&6; }
22848
22849 # Is the header present?
22850 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22851 $as_echo_n "checking $ac_header presence... " >&6; }
22852 cat >conftest.$ac_ext <<_ACEOF
22853 /* confdefs.h. */
22854 _ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h. */
22858 #include <$ac_header>
22859 _ACEOF
22860 if { (ac_try="$ac_cpp conftest.$ac_ext"
22861 case "(($ac_try" in
22862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22863 *) ac_try_echo=$ac_try;;
22864 esac
22865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22866 $as_echo "$ac_try_echo") >&5
22867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22868 ac_status=$?
22869 grep -v '^ *+' conftest.er1 >conftest.err
22870 rm -f conftest.er1
22871 cat conftest.err >&5
22872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); } >/dev/null && {
22874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22875 test ! -s conftest.err
22876 }; then
22877 ac_header_preproc=yes
22878 else
22879 $as_echo "$as_me: failed program was:" >&5
22880 sed 's/^/| /' conftest.$ac_ext >&5
22881
22882 ac_header_preproc=no
22883 fi
22884
22885 rm -f conftest.err conftest.$ac_ext
22886 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22887 $as_echo "$ac_header_preproc" >&6; }
22888
22889 # So? What about this header?
22890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22891 yes:no: )
22892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22893 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22895 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22896 ac_header_preproc=yes
22897 ;;
22898 no:yes:* )
22899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22900 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22902 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22904 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22906 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22908 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22910 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22911
22912 ;;
22913 esac
22914 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22915 $as_echo_n "checking for $ac_header... " >&6; }
22916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22917 $as_echo_n "(cached) " >&6
22918 else
22919 eval "$as_ac_Header=\$ac_header_preproc"
22920 fi
22921 ac_res=`eval 'as_val=${'$as_ac_Header'}
22922 $as_echo "$as_val"'`
22923 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22924 $as_echo "$ac_res" >&6; }
22925
22926 fi
22927 if test `eval 'as_val=${'$as_ac_Header'}
22928 $as_echo "$as_val"'` = yes; then
22929 cat >>confdefs.h <<_ACEOF
22930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22931 _ACEOF
22932
22933 else
22934
22935 for ac_header in kerberos/krb.h
22936 do
22937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22939 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22940 $as_echo_n "checking for $ac_header... " >&6; }
22941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22942 $as_echo_n "(cached) " >&6
22943 fi
22944 ac_res=`eval 'as_val=${'$as_ac_Header'}
22945 $as_echo "$as_val"'`
22946 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22947 $as_echo "$ac_res" >&6; }
22948 else
22949 # Is the header compilable?
22950 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22951 $as_echo_n "checking $ac_header usability... " >&6; }
22952 cat >conftest.$ac_ext <<_ACEOF
22953 /* confdefs.h. */
22954 _ACEOF
22955 cat confdefs.h >>conftest.$ac_ext
22956 cat >>conftest.$ac_ext <<_ACEOF
22957 /* end confdefs.h. */
22958 $ac_includes_default
22959 #include <$ac_header>
22960 _ACEOF
22961 rm -f conftest.$ac_objext
22962 if { (ac_try="$ac_compile"
22963 case "(($ac_try" in
22964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22965 *) ac_try_echo=$ac_try;;
22966 esac
22967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22968 $as_echo "$ac_try_echo") >&5
22969 (eval "$ac_compile") 2>conftest.er1
22970 ac_status=$?
22971 grep -v '^ *+' conftest.er1 >conftest.err
22972 rm -f conftest.er1
22973 cat conftest.err >&5
22974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); } && {
22976 test -z "$ac_c_werror_flag" ||
22977 test ! -s conftest.err
22978 } && test -s conftest.$ac_objext; then
22979 ac_header_compiler=yes
22980 else
22981 $as_echo "$as_me: failed program was:" >&5
22982 sed 's/^/| /' conftest.$ac_ext >&5
22983
22984 ac_header_compiler=no
22985 fi
22986
22987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22988 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22989 $as_echo "$ac_header_compiler" >&6; }
22990
22991 # Is the header present?
22992 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22993 $as_echo_n "checking $ac_header presence... " >&6; }
22994 cat >conftest.$ac_ext <<_ACEOF
22995 /* confdefs.h. */
22996 _ACEOF
22997 cat confdefs.h >>conftest.$ac_ext
22998 cat >>conftest.$ac_ext <<_ACEOF
22999 /* end confdefs.h. */
23000 #include <$ac_header>
23001 _ACEOF
23002 if { (ac_try="$ac_cpp conftest.$ac_ext"
23003 case "(($ac_try" in
23004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23005 *) ac_try_echo=$ac_try;;
23006 esac
23007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23008 $as_echo "$ac_try_echo") >&5
23009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23010 ac_status=$?
23011 grep -v '^ *+' conftest.er1 >conftest.err
23012 rm -f conftest.er1
23013 cat conftest.err >&5
23014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); } >/dev/null && {
23016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23017 test ! -s conftest.err
23018 }; then
23019 ac_header_preproc=yes
23020 else
23021 $as_echo "$as_me: failed program was:" >&5
23022 sed 's/^/| /' conftest.$ac_ext >&5
23023
23024 ac_header_preproc=no
23025 fi
23026
23027 rm -f conftest.err conftest.$ac_ext
23028 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23029 $as_echo "$ac_header_preproc" >&6; }
23030
23031 # So? What about this header?
23032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23033 yes:no: )
23034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23035 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23037 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23038 ac_header_preproc=yes
23039 ;;
23040 no:yes:* )
23041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23042 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23044 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23046 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23048 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23050 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23052 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23053
23054 ;;
23055 esac
23056 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23057 $as_echo_n "checking for $ac_header... " >&6; }
23058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23059 $as_echo_n "(cached) " >&6
23060 else
23061 eval "$as_ac_Header=\$ac_header_preproc"
23062 fi
23063 ac_res=`eval 'as_val=${'$as_ac_Header'}
23064 $as_echo "$as_val"'`
23065 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23066 $as_echo "$ac_res" >&6; }
23067
23068 fi
23069 if test `eval 'as_val=${'$as_ac_Header'}
23070 $as_echo "$as_val"'` = yes; then
23071 cat >>confdefs.h <<_ACEOF
23072 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23073 _ACEOF
23074
23075 fi
23076
23077 done
23078
23079 fi
23080
23081 done
23082
23083 fi
23084
23085 done
23086
23087 fi
23088
23089 for ac_header in com_err.h
23090 do
23091 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23093 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23094 $as_echo_n "checking for $ac_header... " >&6; }
23095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23096 $as_echo_n "(cached) " >&6
23097 fi
23098 ac_res=`eval 'as_val=${'$as_ac_Header'}
23099 $as_echo "$as_val"'`
23100 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23101 $as_echo "$ac_res" >&6; }
23102 else
23103 # Is the header compilable?
23104 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23105 $as_echo_n "checking $ac_header usability... " >&6; }
23106 cat >conftest.$ac_ext <<_ACEOF
23107 /* confdefs.h. */
23108 _ACEOF
23109 cat confdefs.h >>conftest.$ac_ext
23110 cat >>conftest.$ac_ext <<_ACEOF
23111 /* end confdefs.h. */
23112 $ac_includes_default
23113 #include <$ac_header>
23114 _ACEOF
23115 rm -f conftest.$ac_objext
23116 if { (ac_try="$ac_compile"
23117 case "(($ac_try" in
23118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23119 *) ac_try_echo=$ac_try;;
23120 esac
23121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23122 $as_echo "$ac_try_echo") >&5
23123 (eval "$ac_compile") 2>conftest.er1
23124 ac_status=$?
23125 grep -v '^ *+' conftest.er1 >conftest.err
23126 rm -f conftest.er1
23127 cat conftest.err >&5
23128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); } && {
23130 test -z "$ac_c_werror_flag" ||
23131 test ! -s conftest.err
23132 } && test -s conftest.$ac_objext; then
23133 ac_header_compiler=yes
23134 else
23135 $as_echo "$as_me: failed program was:" >&5
23136 sed 's/^/| /' conftest.$ac_ext >&5
23137
23138 ac_header_compiler=no
23139 fi
23140
23141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23142 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23143 $as_echo "$ac_header_compiler" >&6; }
23144
23145 # Is the header present?
23146 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23147 $as_echo_n "checking $ac_header presence... " >&6; }
23148 cat >conftest.$ac_ext <<_ACEOF
23149 /* confdefs.h. */
23150 _ACEOF
23151 cat confdefs.h >>conftest.$ac_ext
23152 cat >>conftest.$ac_ext <<_ACEOF
23153 /* end confdefs.h. */
23154 #include <$ac_header>
23155 _ACEOF
23156 if { (ac_try="$ac_cpp conftest.$ac_ext"
23157 case "(($ac_try" in
23158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23159 *) ac_try_echo=$ac_try;;
23160 esac
23161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23162 $as_echo "$ac_try_echo") >&5
23163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23164 ac_status=$?
23165 grep -v '^ *+' conftest.er1 >conftest.err
23166 rm -f conftest.er1
23167 cat conftest.err >&5
23168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); } >/dev/null && {
23170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23171 test ! -s conftest.err
23172 }; then
23173 ac_header_preproc=yes
23174 else
23175 $as_echo "$as_me: failed program was:" >&5
23176 sed 's/^/| /' conftest.$ac_ext >&5
23177
23178 ac_header_preproc=no
23179 fi
23180
23181 rm -f conftest.err conftest.$ac_ext
23182 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23183 $as_echo "$ac_header_preproc" >&6; }
23184
23185 # So? What about this header?
23186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23187 yes:no: )
23188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23189 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23191 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23192 ac_header_preproc=yes
23193 ;;
23194 no:yes:* )
23195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23196 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23198 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23200 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23202 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23204 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23206 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23207
23208 ;;
23209 esac
23210 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23211 $as_echo_n "checking for $ac_header... " >&6; }
23212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23213 $as_echo_n "(cached) " >&6
23214 else
23215 eval "$as_ac_Header=\$ac_header_preproc"
23216 fi
23217 ac_res=`eval 'as_val=${'$as_ac_Header'}
23218 $as_echo "$as_val"'`
23219 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23220 $as_echo "$ac_res" >&6; }
23221
23222 fi
23223 if test `eval 'as_val=${'$as_ac_Header'}
23224 $as_echo "$as_val"'` = yes; then
23225 cat >>confdefs.h <<_ACEOF
23226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23227 _ACEOF
23228
23229 fi
23230
23231 done
23232
23233 fi
23234
23235 # Solaris requires -lintl if you want strerror (which calls dgettext)
23236 # to return localized messages.
23237
23238 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23239 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23240 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23241 $as_echo_n "(cached) " >&6
23242 else
23243 ac_check_lib_save_LIBS=$LIBS
23244 LIBS="-lintl $LIBS"
23245 cat >conftest.$ac_ext <<_ACEOF
23246 /* confdefs.h. */
23247 _ACEOF
23248 cat confdefs.h >>conftest.$ac_ext
23249 cat >>conftest.$ac_ext <<_ACEOF
23250 /* end confdefs.h. */
23251
23252 /* Override any GCC internal prototype to avoid an error.
23253 Use char because int might match the return type of a GCC
23254 builtin and then its argument prototype would still apply. */
23255 #ifdef __cplusplus
23256 extern "C"
23257 #endif
23258 char dgettext ();
23259 int
23260 main ()
23261 {
23262 return dgettext ();
23263 ;
23264 return 0;
23265 }
23266 _ACEOF
23267 rm -f conftest.$ac_objext conftest$ac_exeext
23268 if { (ac_try="$ac_link"
23269 case "(($ac_try" in
23270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23271 *) ac_try_echo=$ac_try;;
23272 esac
23273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23274 $as_echo "$ac_try_echo") >&5
23275 (eval "$ac_link") 2>conftest.er1
23276 ac_status=$?
23277 grep -v '^ *+' conftest.er1 >conftest.err
23278 rm -f conftest.er1
23279 cat conftest.err >&5
23280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); } && {
23282 test -z "$ac_c_werror_flag" ||
23283 test ! -s conftest.err
23284 } && test -s conftest$ac_exeext && {
23285 test "$cross_compiling" = yes ||
23286 $as_test_x conftest$ac_exeext
23287 }; then
23288 ac_cv_lib_intl_dgettext=yes
23289 else
23290 $as_echo "$as_me: failed program was:" >&5
23291 sed 's/^/| /' conftest.$ac_ext >&5
23292
23293 ac_cv_lib_intl_dgettext=no
23294 fi
23295
23296 rm -rf conftest.dSYM
23297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23298 conftest$ac_exeext conftest.$ac_ext
23299 LIBS=$ac_check_lib_save_LIBS
23300 fi
23301 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23302 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23303 if test $ac_cv_lib_intl_dgettext = yes; then
23304 cat >>confdefs.h <<_ACEOF
23305 #define HAVE_LIBINTL 1
23306 _ACEOF
23307
23308 LIBS="-lintl $LIBS"
23309
23310 fi
23311
23312
23313 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23314 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23315 if test "${emacs_cv_localtime_cache+set}" = set; then
23316 $as_echo_n "(cached) " >&6
23317 else
23318 if test x$ac_cv_func_tzset = xyes; then
23319 if test "$cross_compiling" = yes; then
23320 # If we have tzset, assume the worst when cross-compiling.
23321 emacs_cv_localtime_cache=yes
23322 else
23323 cat >conftest.$ac_ext <<_ACEOF
23324 /* confdefs.h. */
23325 _ACEOF
23326 cat confdefs.h >>conftest.$ac_ext
23327 cat >>conftest.$ac_ext <<_ACEOF
23328 /* end confdefs.h. */
23329 #include <time.h>
23330 extern char **environ;
23331 unset_TZ ()
23332 {
23333 char **from, **to;
23334 for (to = from = environ; (*to = *from); from++)
23335 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23336 to++;
23337 }
23338 char TZ_GMT0[] = "TZ=GMT0";
23339 char TZ_PST8[] = "TZ=PST8";
23340 main()
23341 {
23342 time_t now = time ((time_t *) 0);
23343 int hour_GMT0, hour_unset;
23344 if (putenv (TZ_GMT0) != 0)
23345 exit (1);
23346 hour_GMT0 = localtime (&now)->tm_hour;
23347 unset_TZ ();
23348 hour_unset = localtime (&now)->tm_hour;
23349 if (putenv (TZ_PST8) != 0)
23350 exit (1);
23351 if (localtime (&now)->tm_hour == hour_GMT0)
23352 exit (1);
23353 unset_TZ ();
23354 if (localtime (&now)->tm_hour != hour_unset)
23355 exit (1);
23356 exit (0);
23357 }
23358 _ACEOF
23359 rm -f conftest$ac_exeext
23360 if { (ac_try="$ac_link"
23361 case "(($ac_try" in
23362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23363 *) ac_try_echo=$ac_try;;
23364 esac
23365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23366 $as_echo "$ac_try_echo") >&5
23367 (eval "$ac_link") 2>&5
23368 ac_status=$?
23369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23371 { (case "(($ac_try" in
23372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23373 *) ac_try_echo=$ac_try;;
23374 esac
23375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23376 $as_echo "$ac_try_echo") >&5
23377 (eval "$ac_try") 2>&5
23378 ac_status=$?
23379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); }; }; then
23381 emacs_cv_localtime_cache=no
23382 else
23383 $as_echo "$as_me: program exited with status $ac_status" >&5
23384 $as_echo "$as_me: failed program was:" >&5
23385 sed 's/^/| /' conftest.$ac_ext >&5
23386
23387 ( exit $ac_status )
23388 emacs_cv_localtime_cache=yes
23389 fi
23390 rm -rf conftest.dSYM
23391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23392 fi
23393
23394
23395 else
23396 # If we lack tzset, report that localtime does not cache TZ,
23397 # since we can't invalidate the cache if we don't have tzset.
23398 emacs_cv_localtime_cache=no
23399 fi
23400 fi
23401 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23402 $as_echo "$emacs_cv_localtime_cache" >&6; }
23403 if test $emacs_cv_localtime_cache = yes; then
23404
23405 cat >>confdefs.h <<\_ACEOF
23406 #define LOCALTIME_CACHE 1
23407 _ACEOF
23408
23409 fi
23410
23411 if test "x$HAVE_TIMEVAL" = xyes; then
23412
23413 for ac_func in gettimeofday
23414 do
23415 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23416 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23417 $as_echo_n "checking for $ac_func... " >&6; }
23418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23419 $as_echo_n "(cached) " >&6
23420 else
23421 cat >conftest.$ac_ext <<_ACEOF
23422 /* confdefs.h. */
23423 _ACEOF
23424 cat confdefs.h >>conftest.$ac_ext
23425 cat >>conftest.$ac_ext <<_ACEOF
23426 /* end confdefs.h. */
23427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23429 #define $ac_func innocuous_$ac_func
23430
23431 /* System header to define __stub macros and hopefully few prototypes,
23432 which can conflict with char $ac_func (); below.
23433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23434 <limits.h> exists even on freestanding compilers. */
23435
23436 #ifdef __STDC__
23437 # include <limits.h>
23438 #else
23439 # include <assert.h>
23440 #endif
23441
23442 #undef $ac_func
23443
23444 /* Override any GCC internal prototype to avoid an error.
23445 Use char because int might match the return type of a GCC
23446 builtin and then its argument prototype would still apply. */
23447 #ifdef __cplusplus
23448 extern "C"
23449 #endif
23450 char $ac_func ();
23451 /* The GNU C library defines this for functions which it implements
23452 to always fail with ENOSYS. Some functions are actually named
23453 something starting with __ and the normal name is an alias. */
23454 #if defined __stub_$ac_func || defined __stub___$ac_func
23455 choke me
23456 #endif
23457
23458 int
23459 main ()
23460 {
23461 return $ac_func ();
23462 ;
23463 return 0;
23464 }
23465 _ACEOF
23466 rm -f conftest.$ac_objext conftest$ac_exeext
23467 if { (ac_try="$ac_link"
23468 case "(($ac_try" in
23469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23470 *) ac_try_echo=$ac_try;;
23471 esac
23472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23473 $as_echo "$ac_try_echo") >&5
23474 (eval "$ac_link") 2>conftest.er1
23475 ac_status=$?
23476 grep -v '^ *+' conftest.er1 >conftest.err
23477 rm -f conftest.er1
23478 cat conftest.err >&5
23479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); } && {
23481 test -z "$ac_c_werror_flag" ||
23482 test ! -s conftest.err
23483 } && test -s conftest$ac_exeext && {
23484 test "$cross_compiling" = yes ||
23485 $as_test_x conftest$ac_exeext
23486 }; then
23487 eval "$as_ac_var=yes"
23488 else
23489 $as_echo "$as_me: failed program was:" >&5
23490 sed 's/^/| /' conftest.$ac_ext >&5
23491
23492 eval "$as_ac_var=no"
23493 fi
23494
23495 rm -rf conftest.dSYM
23496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23497 conftest$ac_exeext conftest.$ac_ext
23498 fi
23499 ac_res=`eval 'as_val=${'$as_ac_var'}
23500 $as_echo "$as_val"'`
23501 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23502 $as_echo "$ac_res" >&6; }
23503 if test `eval 'as_val=${'$as_ac_var'}
23504 $as_echo "$as_val"'` = yes; then
23505 cat >>confdefs.h <<_ACEOF
23506 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23507 _ACEOF
23508
23509 fi
23510 done
23511
23512 if test $ac_cv_func_gettimeofday = yes; then
23513 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
23514 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23515 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23516 $as_echo_n "(cached) " >&6
23517 else
23518 cat >conftest.$ac_ext <<_ACEOF
23519 /* confdefs.h. */
23520 _ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h. */
23524
23525 #ifdef TIME_WITH_SYS_TIME
23526 #include <sys/time.h>
23527 #include <time.h>
23528 #else
23529 #ifdef HAVE_SYS_TIME_H
23530 #include <sys/time.h>
23531 #else
23532 #include <time.h>
23533 #endif
23534 #endif
23535 int
23536 main ()
23537 {
23538 struct timeval time;
23539 gettimeofday (&time, 0);
23540 ;
23541 return 0;
23542 }
23543 _ACEOF
23544 rm -f conftest.$ac_objext
23545 if { (ac_try="$ac_compile"
23546 case "(($ac_try" in
23547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23548 *) ac_try_echo=$ac_try;;
23549 esac
23550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23551 $as_echo "$ac_try_echo") >&5
23552 (eval "$ac_compile") 2>conftest.er1
23553 ac_status=$?
23554 grep -v '^ *+' conftest.er1 >conftest.err
23555 rm -f conftest.er1
23556 cat conftest.err >&5
23557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); } && {
23559 test -z "$ac_c_werror_flag" ||
23560 test ! -s conftest.err
23561 } && test -s conftest.$ac_objext; then
23562 emacs_cv_gettimeofday_two_arguments=yes
23563 else
23564 $as_echo "$as_me: failed program was:" >&5
23565 sed 's/^/| /' conftest.$ac_ext >&5
23566
23567 emacs_cv_gettimeofday_two_arguments=no
23568 fi
23569
23570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23571 fi
23572 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
23573 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23574 if test $emacs_cv_gettimeofday_two_arguments = no; then
23575
23576 cat >>confdefs.h <<\_ACEOF
23577 #define GETTIMEOFDAY_ONE_ARGUMENT 1
23578 _ACEOF
23579
23580 fi
23581 fi
23582 fi
23583
23584 ok_so_far=yes
23585 { $as_echo "$as_me:$LINENO: checking for socket" >&5
23586 $as_echo_n "checking for socket... " >&6; }
23587 if test "${ac_cv_func_socket+set}" = set; then
23588 $as_echo_n "(cached) " >&6
23589 else
23590 cat >conftest.$ac_ext <<_ACEOF
23591 /* confdefs.h. */
23592 _ACEOF
23593 cat confdefs.h >>conftest.$ac_ext
23594 cat >>conftest.$ac_ext <<_ACEOF
23595 /* end confdefs.h. */
23596 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23598 #define socket innocuous_socket
23599
23600 /* System header to define __stub macros and hopefully few prototypes,
23601 which can conflict with char socket (); below.
23602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23603 <limits.h> exists even on freestanding compilers. */
23604
23605 #ifdef __STDC__
23606 # include <limits.h>
23607 #else
23608 # include <assert.h>
23609 #endif
23610
23611 #undef socket
23612
23613 /* Override any GCC internal prototype to avoid an error.
23614 Use char because int might match the return type of a GCC
23615 builtin and then its argument prototype would still apply. */
23616 #ifdef __cplusplus
23617 extern "C"
23618 #endif
23619 char socket ();
23620 /* The GNU C library defines this for functions which it implements
23621 to always fail with ENOSYS. Some functions are actually named
23622 something starting with __ and the normal name is an alias. */
23623 #if defined __stub_socket || defined __stub___socket
23624 choke me
23625 #endif
23626
23627 int
23628 main ()
23629 {
23630 return socket ();
23631 ;
23632 return 0;
23633 }
23634 _ACEOF
23635 rm -f conftest.$ac_objext conftest$ac_exeext
23636 if { (ac_try="$ac_link"
23637 case "(($ac_try" in
23638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23639 *) ac_try_echo=$ac_try;;
23640 esac
23641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23642 $as_echo "$ac_try_echo") >&5
23643 (eval "$ac_link") 2>conftest.er1
23644 ac_status=$?
23645 grep -v '^ *+' conftest.er1 >conftest.err
23646 rm -f conftest.er1
23647 cat conftest.err >&5
23648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } && {
23650 test -z "$ac_c_werror_flag" ||
23651 test ! -s conftest.err
23652 } && test -s conftest$ac_exeext && {
23653 test "$cross_compiling" = yes ||
23654 $as_test_x conftest$ac_exeext
23655 }; then
23656 ac_cv_func_socket=yes
23657 else
23658 $as_echo "$as_me: failed program was:" >&5
23659 sed 's/^/| /' conftest.$ac_ext >&5
23660
23661 ac_cv_func_socket=no
23662 fi
23663
23664 rm -rf conftest.dSYM
23665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23666 conftest$ac_exeext conftest.$ac_ext
23667 fi
23668 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23669 $as_echo "$ac_cv_func_socket" >&6; }
23670 if test $ac_cv_func_socket = yes; then
23671 :
23672 else
23673 ok_so_far=no
23674 fi
23675
23676 if test $ok_so_far = yes; then
23677 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23678 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23679 $as_echo_n "checking for netinet/in.h... " >&6; }
23680 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23681 $as_echo_n "(cached) " >&6
23682 fi
23683 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23684 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23685 else
23686 # Is the header compilable?
23687 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
23688 $as_echo_n "checking netinet/in.h usability... " >&6; }
23689 cat >conftest.$ac_ext <<_ACEOF
23690 /* confdefs.h. */
23691 _ACEOF
23692 cat confdefs.h >>conftest.$ac_ext
23693 cat >>conftest.$ac_ext <<_ACEOF
23694 /* end confdefs.h. */
23695 $ac_includes_default
23696 #include <netinet/in.h>
23697 _ACEOF
23698 rm -f conftest.$ac_objext
23699 if { (ac_try="$ac_compile"
23700 case "(($ac_try" in
23701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23702 *) ac_try_echo=$ac_try;;
23703 esac
23704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23705 $as_echo "$ac_try_echo") >&5
23706 (eval "$ac_compile") 2>conftest.er1
23707 ac_status=$?
23708 grep -v '^ *+' conftest.er1 >conftest.err
23709 rm -f conftest.er1
23710 cat conftest.err >&5
23711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); } && {
23713 test -z "$ac_c_werror_flag" ||
23714 test ! -s conftest.err
23715 } && test -s conftest.$ac_objext; then
23716 ac_header_compiler=yes
23717 else
23718 $as_echo "$as_me: failed program was:" >&5
23719 sed 's/^/| /' conftest.$ac_ext >&5
23720
23721 ac_header_compiler=no
23722 fi
23723
23724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23725 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23726 $as_echo "$ac_header_compiler" >&6; }
23727
23728 # Is the header present?
23729 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
23730 $as_echo_n "checking netinet/in.h presence... " >&6; }
23731 cat >conftest.$ac_ext <<_ACEOF
23732 /* confdefs.h. */
23733 _ACEOF
23734 cat confdefs.h >>conftest.$ac_ext
23735 cat >>conftest.$ac_ext <<_ACEOF
23736 /* end confdefs.h. */
23737 #include <netinet/in.h>
23738 _ACEOF
23739 if { (ac_try="$ac_cpp conftest.$ac_ext"
23740 case "(($ac_try" in
23741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23742 *) ac_try_echo=$ac_try;;
23743 esac
23744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23745 $as_echo "$ac_try_echo") >&5
23746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23747 ac_status=$?
23748 grep -v '^ *+' conftest.er1 >conftest.err
23749 rm -f conftest.er1
23750 cat conftest.err >&5
23751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752 (exit $ac_status); } >/dev/null && {
23753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23754 test ! -s conftest.err
23755 }; then
23756 ac_header_preproc=yes
23757 else
23758 $as_echo "$as_me: failed program was:" >&5
23759 sed 's/^/| /' conftest.$ac_ext >&5
23760
23761 ac_header_preproc=no
23762 fi
23763
23764 rm -f conftest.err conftest.$ac_ext
23765 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23766 $as_echo "$ac_header_preproc" >&6; }
23767
23768 # So? What about this header?
23769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23770 yes:no: )
23771 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
23772 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23773 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
23774 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
23775 ac_header_preproc=yes
23776 ;;
23777 no:yes:* )
23778 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
23779 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
23780 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
23781 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
23782 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
23783 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
23784 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
23785 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
23786 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
23787 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
23788 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
23789 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
23790
23791 ;;
23792 esac
23793 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23794 $as_echo_n "checking for netinet/in.h... " >&6; }
23795 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23796 $as_echo_n "(cached) " >&6
23797 else
23798 ac_cv_header_netinet_in_h=$ac_header_preproc
23799 fi
23800 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23801 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23802
23803 fi
23804 if test $ac_cv_header_netinet_in_h = yes; then
23805 :
23806 else
23807 ok_so_far=no
23808 fi
23809
23810
23811 fi
23812 if test $ok_so_far = yes; then
23813 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23814 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23815 $as_echo_n "checking for arpa/inet.h... " >&6; }
23816 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23817 $as_echo_n "(cached) " >&6
23818 fi
23819 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23820 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
23821 else
23822 # Is the header compilable?
23823 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23824 $as_echo_n "checking arpa/inet.h usability... " >&6; }
23825 cat >conftest.$ac_ext <<_ACEOF
23826 /* confdefs.h. */
23827 _ACEOF
23828 cat confdefs.h >>conftest.$ac_ext
23829 cat >>conftest.$ac_ext <<_ACEOF
23830 /* end confdefs.h. */
23831 $ac_includes_default
23832 #include <arpa/inet.h>
23833 _ACEOF
23834 rm -f conftest.$ac_objext
23835 if { (ac_try="$ac_compile"
23836 case "(($ac_try" in
23837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23838 *) ac_try_echo=$ac_try;;
23839 esac
23840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23841 $as_echo "$ac_try_echo") >&5
23842 (eval "$ac_compile") 2>conftest.er1
23843 ac_status=$?
23844 grep -v '^ *+' conftest.er1 >conftest.err
23845 rm -f conftest.er1
23846 cat conftest.err >&5
23847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); } && {
23849 test -z "$ac_c_werror_flag" ||
23850 test ! -s conftest.err
23851 } && test -s conftest.$ac_objext; then
23852 ac_header_compiler=yes
23853 else
23854 $as_echo "$as_me: failed program was:" >&5
23855 sed 's/^/| /' conftest.$ac_ext >&5
23856
23857 ac_header_compiler=no
23858 fi
23859
23860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23861 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23862 $as_echo "$ac_header_compiler" >&6; }
23863
23864 # Is the header present?
23865 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23866 $as_echo_n "checking arpa/inet.h presence... " >&6; }
23867 cat >conftest.$ac_ext <<_ACEOF
23868 /* confdefs.h. */
23869 _ACEOF
23870 cat confdefs.h >>conftest.$ac_ext
23871 cat >>conftest.$ac_ext <<_ACEOF
23872 /* end confdefs.h. */
23873 #include <arpa/inet.h>
23874 _ACEOF
23875 if { (ac_try="$ac_cpp conftest.$ac_ext"
23876 case "(($ac_try" in
23877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23878 *) ac_try_echo=$ac_try;;
23879 esac
23880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23881 $as_echo "$ac_try_echo") >&5
23882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23883 ac_status=$?
23884 grep -v '^ *+' conftest.er1 >conftest.err
23885 rm -f conftest.er1
23886 cat conftest.err >&5
23887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888 (exit $ac_status); } >/dev/null && {
23889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23890 test ! -s conftest.err
23891 }; then
23892 ac_header_preproc=yes
23893 else
23894 $as_echo "$as_me: failed program was:" >&5
23895 sed 's/^/| /' conftest.$ac_ext >&5
23896
23897 ac_header_preproc=no
23898 fi
23899
23900 rm -f conftest.err conftest.$ac_ext
23901 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23902 $as_echo "$ac_header_preproc" >&6; }
23903
23904 # So? What about this header?
23905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23906 yes:no: )
23907 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23908 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23909 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23910 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23911 ac_header_preproc=yes
23912 ;;
23913 no:yes:* )
23914 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23915 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23916 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23917 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23918 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23919 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23920 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23921 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23922 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23923 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23924 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23925 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23926
23927 ;;
23928 esac
23929 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23930 $as_echo_n "checking for arpa/inet.h... " >&6; }
23931 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23932 $as_echo_n "(cached) " >&6
23933 else
23934 ac_cv_header_arpa_inet_h=$ac_header_preproc
23935 fi
23936 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23937 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
23938
23939 fi
23940 if test $ac_cv_header_arpa_inet_h = yes; then
23941 :
23942 else
23943 ok_so_far=no
23944 fi
23945
23946
23947 fi
23948 if test $ok_so_far = yes; then
23949
23950 cat >>confdefs.h <<\_ACEOF
23951 #define HAVE_INET_SOCKETS 1
23952 _ACEOF
23953
23954 fi
23955
23956
23957 for ac_header in sys/ioctl.h
23958 do
23959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23961 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23962 $as_echo_n "checking for $ac_header... " >&6; }
23963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23964 $as_echo_n "(cached) " >&6
23965 fi
23966 ac_res=`eval 'as_val=${'$as_ac_Header'}
23967 $as_echo "$as_val"'`
23968 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23969 $as_echo "$ac_res" >&6; }
23970 else
23971 # Is the header compilable?
23972 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23973 $as_echo_n "checking $ac_header usability... " >&6; }
23974 cat >conftest.$ac_ext <<_ACEOF
23975 /* confdefs.h. */
23976 _ACEOF
23977 cat confdefs.h >>conftest.$ac_ext
23978 cat >>conftest.$ac_ext <<_ACEOF
23979 /* end confdefs.h. */
23980 $ac_includes_default
23981 #include <$ac_header>
23982 _ACEOF
23983 rm -f conftest.$ac_objext
23984 if { (ac_try="$ac_compile"
23985 case "(($ac_try" in
23986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23987 *) ac_try_echo=$ac_try;;
23988 esac
23989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23990 $as_echo "$ac_try_echo") >&5
23991 (eval "$ac_compile") 2>conftest.er1
23992 ac_status=$?
23993 grep -v '^ *+' conftest.er1 >conftest.err
23994 rm -f conftest.er1
23995 cat conftest.err >&5
23996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997 (exit $ac_status); } && {
23998 test -z "$ac_c_werror_flag" ||
23999 test ! -s conftest.err
24000 } && test -s conftest.$ac_objext; then
24001 ac_header_compiler=yes
24002 else
24003 $as_echo "$as_me: failed program was:" >&5
24004 sed 's/^/| /' conftest.$ac_ext >&5
24005
24006 ac_header_compiler=no
24007 fi
24008
24009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24010 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24011 $as_echo "$ac_header_compiler" >&6; }
24012
24013 # Is the header present?
24014 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24015 $as_echo_n "checking $ac_header presence... " >&6; }
24016 cat >conftest.$ac_ext <<_ACEOF
24017 /* confdefs.h. */
24018 _ACEOF
24019 cat confdefs.h >>conftest.$ac_ext
24020 cat >>conftest.$ac_ext <<_ACEOF
24021 /* end confdefs.h. */
24022 #include <$ac_header>
24023 _ACEOF
24024 if { (ac_try="$ac_cpp conftest.$ac_ext"
24025 case "(($ac_try" in
24026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24027 *) ac_try_echo=$ac_try;;
24028 esac
24029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24030 $as_echo "$ac_try_echo") >&5
24031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24032 ac_status=$?
24033 grep -v '^ *+' conftest.er1 >conftest.err
24034 rm -f conftest.er1
24035 cat conftest.err >&5
24036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037 (exit $ac_status); } >/dev/null && {
24038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24039 test ! -s conftest.err
24040 }; then
24041 ac_header_preproc=yes
24042 else
24043 $as_echo "$as_me: failed program was:" >&5
24044 sed 's/^/| /' conftest.$ac_ext >&5
24045
24046 ac_header_preproc=no
24047 fi
24048
24049 rm -f conftest.err conftest.$ac_ext
24050 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24051 $as_echo "$ac_header_preproc" >&6; }
24052
24053 # So? What about this header?
24054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24055 yes:no: )
24056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24057 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24059 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24060 ac_header_preproc=yes
24061 ;;
24062 no:yes:* )
24063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24064 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24066 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24068 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24070 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24072 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24074 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24075
24076 ;;
24077 esac
24078 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24079 $as_echo_n "checking for $ac_header... " >&6; }
24080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24081 $as_echo_n "(cached) " >&6
24082 else
24083 eval "$as_ac_Header=\$ac_header_preproc"
24084 fi
24085 ac_res=`eval 'as_val=${'$as_ac_Header'}
24086 $as_echo "$as_val"'`
24087 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24088 $as_echo "$ac_res" >&6; }
24089
24090 fi
24091 if test `eval 'as_val=${'$as_ac_Header'}
24092 $as_echo "$as_val"'` = yes; then
24093 cat >>confdefs.h <<_ACEOF
24094 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24095 _ACEOF
24096
24097 fi
24098
24099 done
24100
24101
24102 if test -f /usr/lpp/X11/bin/smt.exp; then
24103
24104 cat >>confdefs.h <<\_ACEOF
24105 #define HAVE_AIX_SMT_EXP 1
24106 _ACEOF
24107
24108 fi
24109
24110 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24111 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24112 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24113 { $as_echo "$as_me:$LINENO: result: yes" >&5
24114 $as_echo "yes" >&6; }
24115
24116 cat >>confdefs.h <<\_ACEOF
24117 #define HAVE_DEV_PTMX 1
24118 _ACEOF
24119
24120 else
24121 { $as_echo "$as_me:$LINENO: result: no" >&5
24122 $as_echo "no" >&6; }
24123 fi
24124
24125 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24126 $as_echo_n "checking for pid_t... " >&6; }
24127 if test "${ac_cv_type_pid_t+set}" = set; then
24128 $as_echo_n "(cached) " >&6
24129 else
24130 ac_cv_type_pid_t=no
24131 cat >conftest.$ac_ext <<_ACEOF
24132 /* confdefs.h. */
24133 _ACEOF
24134 cat confdefs.h >>conftest.$ac_ext
24135 cat >>conftest.$ac_ext <<_ACEOF
24136 /* end confdefs.h. */
24137 $ac_includes_default
24138 int
24139 main ()
24140 {
24141 if (sizeof (pid_t))
24142 return 0;
24143 ;
24144 return 0;
24145 }
24146 _ACEOF
24147 rm -f conftest.$ac_objext
24148 if { (ac_try="$ac_compile"
24149 case "(($ac_try" in
24150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24151 *) ac_try_echo=$ac_try;;
24152 esac
24153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24154 $as_echo "$ac_try_echo") >&5
24155 (eval "$ac_compile") 2>conftest.er1
24156 ac_status=$?
24157 grep -v '^ *+' conftest.er1 >conftest.err
24158 rm -f conftest.er1
24159 cat conftest.err >&5
24160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); } && {
24162 test -z "$ac_c_werror_flag" ||
24163 test ! -s conftest.err
24164 } && test -s conftest.$ac_objext; then
24165 cat >conftest.$ac_ext <<_ACEOF
24166 /* confdefs.h. */
24167 _ACEOF
24168 cat confdefs.h >>conftest.$ac_ext
24169 cat >>conftest.$ac_ext <<_ACEOF
24170 /* end confdefs.h. */
24171 $ac_includes_default
24172 int
24173 main ()
24174 {
24175 if (sizeof ((pid_t)))
24176 return 0;
24177 ;
24178 return 0;
24179 }
24180 _ACEOF
24181 rm -f conftest.$ac_objext
24182 if { (ac_try="$ac_compile"
24183 case "(($ac_try" in
24184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24185 *) ac_try_echo=$ac_try;;
24186 esac
24187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24188 $as_echo "$ac_try_echo") >&5
24189 (eval "$ac_compile") 2>conftest.er1
24190 ac_status=$?
24191 grep -v '^ *+' conftest.er1 >conftest.err
24192 rm -f conftest.er1
24193 cat conftest.err >&5
24194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195 (exit $ac_status); } && {
24196 test -z "$ac_c_werror_flag" ||
24197 test ! -s conftest.err
24198 } && test -s conftest.$ac_objext; then
24199 :
24200 else
24201 $as_echo "$as_me: failed program was:" >&5
24202 sed 's/^/| /' conftest.$ac_ext >&5
24203
24204 ac_cv_type_pid_t=yes
24205 fi
24206
24207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24208 else
24209 $as_echo "$as_me: failed program was:" >&5
24210 sed 's/^/| /' conftest.$ac_ext >&5
24211
24212
24213 fi
24214
24215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24216 fi
24217 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24218 $as_echo "$ac_cv_type_pid_t" >&6; }
24219 if test $ac_cv_type_pid_t = yes; then
24220 :
24221 else
24222
24223 cat >>confdefs.h <<_ACEOF
24224 #define pid_t int
24225 _ACEOF
24226
24227 fi
24228
24229
24230 for ac_header in vfork.h
24231 do
24232 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24234 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24235 $as_echo_n "checking for $ac_header... " >&6; }
24236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24237 $as_echo_n "(cached) " >&6
24238 fi
24239 ac_res=`eval 'as_val=${'$as_ac_Header'}
24240 $as_echo "$as_val"'`
24241 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24242 $as_echo "$ac_res" >&6; }
24243 else
24244 # Is the header compilable?
24245 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24246 $as_echo_n "checking $ac_header usability... " >&6; }
24247 cat >conftest.$ac_ext <<_ACEOF
24248 /* confdefs.h. */
24249 _ACEOF
24250 cat confdefs.h >>conftest.$ac_ext
24251 cat >>conftest.$ac_ext <<_ACEOF
24252 /* end confdefs.h. */
24253 $ac_includes_default
24254 #include <$ac_header>
24255 _ACEOF
24256 rm -f conftest.$ac_objext
24257 if { (ac_try="$ac_compile"
24258 case "(($ac_try" in
24259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24260 *) ac_try_echo=$ac_try;;
24261 esac
24262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24263 $as_echo "$ac_try_echo") >&5
24264 (eval "$ac_compile") 2>conftest.er1
24265 ac_status=$?
24266 grep -v '^ *+' conftest.er1 >conftest.err
24267 rm -f conftest.er1
24268 cat conftest.err >&5
24269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 (exit $ac_status); } && {
24271 test -z "$ac_c_werror_flag" ||
24272 test ! -s conftest.err
24273 } && test -s conftest.$ac_objext; then
24274 ac_header_compiler=yes
24275 else
24276 $as_echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24278
24279 ac_header_compiler=no
24280 fi
24281
24282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24283 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24284 $as_echo "$ac_header_compiler" >&6; }
24285
24286 # Is the header present?
24287 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24288 $as_echo_n "checking $ac_header presence... " >&6; }
24289 cat >conftest.$ac_ext <<_ACEOF
24290 /* confdefs.h. */
24291 _ACEOF
24292 cat confdefs.h >>conftest.$ac_ext
24293 cat >>conftest.$ac_ext <<_ACEOF
24294 /* end confdefs.h. */
24295 #include <$ac_header>
24296 _ACEOF
24297 if { (ac_try="$ac_cpp conftest.$ac_ext"
24298 case "(($ac_try" in
24299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24300 *) ac_try_echo=$ac_try;;
24301 esac
24302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24303 $as_echo "$ac_try_echo") >&5
24304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24305 ac_status=$?
24306 grep -v '^ *+' conftest.er1 >conftest.err
24307 rm -f conftest.er1
24308 cat conftest.err >&5
24309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); } >/dev/null && {
24311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24312 test ! -s conftest.err
24313 }; then
24314 ac_header_preproc=yes
24315 else
24316 $as_echo "$as_me: failed program was:" >&5
24317 sed 's/^/| /' conftest.$ac_ext >&5
24318
24319 ac_header_preproc=no
24320 fi
24321
24322 rm -f conftest.err conftest.$ac_ext
24323 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24324 $as_echo "$ac_header_preproc" >&6; }
24325
24326 # So? What about this header?
24327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24328 yes:no: )
24329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24330 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24332 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24333 ac_header_preproc=yes
24334 ;;
24335 no:yes:* )
24336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24337 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24339 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24341 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24343 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24345 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24347 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24348
24349 ;;
24350 esac
24351 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24352 $as_echo_n "checking for $ac_header... " >&6; }
24353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24354 $as_echo_n "(cached) " >&6
24355 else
24356 eval "$as_ac_Header=\$ac_header_preproc"
24357 fi
24358 ac_res=`eval 'as_val=${'$as_ac_Header'}
24359 $as_echo "$as_val"'`
24360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24361 $as_echo "$ac_res" >&6; }
24362
24363 fi
24364 if test `eval 'as_val=${'$as_ac_Header'}
24365 $as_echo "$as_val"'` = yes; then
24366 cat >>confdefs.h <<_ACEOF
24367 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24368 _ACEOF
24369
24370 fi
24371
24372 done
24373
24374
24375
24376 for ac_func in fork vfork
24377 do
24378 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24379 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24380 $as_echo_n "checking for $ac_func... " >&6; }
24381 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24382 $as_echo_n "(cached) " >&6
24383 else
24384 cat >conftest.$ac_ext <<_ACEOF
24385 /* confdefs.h. */
24386 _ACEOF
24387 cat confdefs.h >>conftest.$ac_ext
24388 cat >>conftest.$ac_ext <<_ACEOF
24389 /* end confdefs.h. */
24390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24392 #define $ac_func innocuous_$ac_func
24393
24394 /* System header to define __stub macros and hopefully few prototypes,
24395 which can conflict with char $ac_func (); below.
24396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24397 <limits.h> exists even on freestanding compilers. */
24398
24399 #ifdef __STDC__
24400 # include <limits.h>
24401 #else
24402 # include <assert.h>
24403 #endif
24404
24405 #undef $ac_func
24406
24407 /* Override any GCC internal prototype to avoid an error.
24408 Use char because int might match the return type of a GCC
24409 builtin and then its argument prototype would still apply. */
24410 #ifdef __cplusplus
24411 extern "C"
24412 #endif
24413 char $ac_func ();
24414 /* The GNU C library defines this for functions which it implements
24415 to always fail with ENOSYS. Some functions are actually named
24416 something starting with __ and the normal name is an alias. */
24417 #if defined __stub_$ac_func || defined __stub___$ac_func
24418 choke me
24419 #endif
24420
24421 int
24422 main ()
24423 {
24424 return $ac_func ();
24425 ;
24426 return 0;
24427 }
24428 _ACEOF
24429 rm -f conftest.$ac_objext conftest$ac_exeext
24430 if { (ac_try="$ac_link"
24431 case "(($ac_try" in
24432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24433 *) ac_try_echo=$ac_try;;
24434 esac
24435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24436 $as_echo "$ac_try_echo") >&5
24437 (eval "$ac_link") 2>conftest.er1
24438 ac_status=$?
24439 grep -v '^ *+' conftest.er1 >conftest.err
24440 rm -f conftest.er1
24441 cat conftest.err >&5
24442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); } && {
24444 test -z "$ac_c_werror_flag" ||
24445 test ! -s conftest.err
24446 } && test -s conftest$ac_exeext && {
24447 test "$cross_compiling" = yes ||
24448 $as_test_x conftest$ac_exeext
24449 }; then
24450 eval "$as_ac_var=yes"
24451 else
24452 $as_echo "$as_me: failed program was:" >&5
24453 sed 's/^/| /' conftest.$ac_ext >&5
24454
24455 eval "$as_ac_var=no"
24456 fi
24457
24458 rm -rf conftest.dSYM
24459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24460 conftest$ac_exeext conftest.$ac_ext
24461 fi
24462 ac_res=`eval 'as_val=${'$as_ac_var'}
24463 $as_echo "$as_val"'`
24464 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24465 $as_echo "$ac_res" >&6; }
24466 if test `eval 'as_val=${'$as_ac_var'}
24467 $as_echo "$as_val"'` = yes; then
24468 cat >>confdefs.h <<_ACEOF
24469 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24470 _ACEOF
24471
24472 fi
24473 done
24474
24475 if test "x$ac_cv_func_fork" = xyes; then
24476 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
24477 $as_echo_n "checking for working fork... " >&6; }
24478 if test "${ac_cv_func_fork_works+set}" = set; then
24479 $as_echo_n "(cached) " >&6
24480 else
24481 if test "$cross_compiling" = yes; then
24482 ac_cv_func_fork_works=cross
24483 else
24484 cat >conftest.$ac_ext <<_ACEOF
24485 /* confdefs.h. */
24486 _ACEOF
24487 cat confdefs.h >>conftest.$ac_ext
24488 cat >>conftest.$ac_ext <<_ACEOF
24489 /* end confdefs.h. */
24490 $ac_includes_default
24491 int
24492 main ()
24493 {
24494
24495 /* By Ruediger Kuhlmann. */
24496 return fork () < 0;
24497
24498 ;
24499 return 0;
24500 }
24501 _ACEOF
24502 rm -f conftest$ac_exeext
24503 if { (ac_try="$ac_link"
24504 case "(($ac_try" in
24505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24506 *) ac_try_echo=$ac_try;;
24507 esac
24508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24509 $as_echo "$ac_try_echo") >&5
24510 (eval "$ac_link") 2>&5
24511 ac_status=$?
24512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24514 { (case "(($ac_try" in
24515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24516 *) ac_try_echo=$ac_try;;
24517 esac
24518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24519 $as_echo "$ac_try_echo") >&5
24520 (eval "$ac_try") 2>&5
24521 ac_status=$?
24522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523 (exit $ac_status); }; }; then
24524 ac_cv_func_fork_works=yes
24525 else
24526 $as_echo "$as_me: program exited with status $ac_status" >&5
24527 $as_echo "$as_me: failed program was:" >&5
24528 sed 's/^/| /' conftest.$ac_ext >&5
24529
24530 ( exit $ac_status )
24531 ac_cv_func_fork_works=no
24532 fi
24533 rm -rf conftest.dSYM
24534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24535 fi
24536
24537
24538 fi
24539 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24540 $as_echo "$ac_cv_func_fork_works" >&6; }
24541
24542 else
24543 ac_cv_func_fork_works=$ac_cv_func_fork
24544 fi
24545 if test "x$ac_cv_func_fork_works" = xcross; then
24546 case $host in
24547 *-*-amigaos* | *-*-msdosdjgpp*)
24548 # Override, as these systems have only a dummy fork() stub
24549 ac_cv_func_fork_works=no
24550 ;;
24551 *)
24552 ac_cv_func_fork_works=yes
24553 ;;
24554 esac
24555 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24556 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24557 fi
24558 ac_cv_func_vfork_works=$ac_cv_func_vfork
24559 if test "x$ac_cv_func_vfork" = xyes; then
24560 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
24561 $as_echo_n "checking for working vfork... " >&6; }
24562 if test "${ac_cv_func_vfork_works+set}" = set; then
24563 $as_echo_n "(cached) " >&6
24564 else
24565 if test "$cross_compiling" = yes; then
24566 ac_cv_func_vfork_works=cross
24567 else
24568 cat >conftest.$ac_ext <<_ACEOF
24569 /* confdefs.h. */
24570 _ACEOF
24571 cat confdefs.h >>conftest.$ac_ext
24572 cat >>conftest.$ac_ext <<_ACEOF
24573 /* end confdefs.h. */
24574 /* Thanks to Paul Eggert for this test. */
24575 $ac_includes_default
24576 #include <sys/wait.h>
24577 #ifdef HAVE_VFORK_H
24578 # include <vfork.h>
24579 #endif
24580 /* On some sparc systems, changes by the child to local and incoming
24581 argument registers are propagated back to the parent. The compiler
24582 is told about this with #include <vfork.h>, but some compilers
24583 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24584 static variable whose address is put into a register that is
24585 clobbered by the vfork. */
24586 static void
24587 #ifdef __cplusplus
24588 sparc_address_test (int arg)
24589 # else
24590 sparc_address_test (arg) int arg;
24591 #endif
24592 {
24593 static pid_t child;
24594 if (!child) {
24595 child = vfork ();
24596 if (child < 0) {
24597 perror ("vfork");
24598 _exit(2);
24599 }
24600 if (!child) {
24601 arg = getpid();
24602 write(-1, "", 0);
24603 _exit (arg);
24604 }
24605 }
24606 }
24607
24608 int
24609 main ()
24610 {
24611 pid_t parent = getpid ();
24612 pid_t child;
24613
24614 sparc_address_test (0);
24615
24616 child = vfork ();
24617
24618 if (child == 0) {
24619 /* Here is another test for sparc vfork register problems. This
24620 test uses lots of local variables, at least as many local
24621 variables as main has allocated so far including compiler
24622 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24623 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24624 reuse the register of parent for one of the local variables,
24625 since it will think that parent can't possibly be used any more
24626 in this routine. Assigning to the local variable will thus
24627 munge parent in the parent process. */
24628 pid_t
24629 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24630 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24631 /* Convince the compiler that p..p7 are live; otherwise, it might
24632 use the same hardware register for all 8 local variables. */
24633 if (p != p1 || p != p2 || p != p3 || p != p4
24634 || p != p5 || p != p6 || p != p7)
24635 _exit(1);
24636
24637 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24638 from child file descriptors. If the child closes a descriptor
24639 before it execs or exits, this munges the parent's descriptor
24640 as well. Test for this by closing stdout in the child. */
24641 _exit(close(fileno(stdout)) != 0);
24642 } else {
24643 int status;
24644 struct stat st;
24645
24646 while (wait(&status) != child)
24647 ;
24648 return (
24649 /* Was there some problem with vforking? */
24650 child < 0
24651
24652 /* Did the child fail? (This shouldn't happen.) */
24653 || status
24654
24655 /* Did the vfork/compiler bug occur? */
24656 || parent != getpid()
24657
24658 /* Did the file descriptor bug occur? */
24659 || fstat(fileno(stdout), &st) != 0
24660 );
24661 }
24662 }
24663 _ACEOF
24664 rm -f conftest$ac_exeext
24665 if { (ac_try="$ac_link"
24666 case "(($ac_try" in
24667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24668 *) ac_try_echo=$ac_try;;
24669 esac
24670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24671 $as_echo "$ac_try_echo") >&5
24672 (eval "$ac_link") 2>&5
24673 ac_status=$?
24674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24676 { (case "(($ac_try" in
24677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24678 *) ac_try_echo=$ac_try;;
24679 esac
24680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24681 $as_echo "$ac_try_echo") >&5
24682 (eval "$ac_try") 2>&5
24683 ac_status=$?
24684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); }; }; then
24686 ac_cv_func_vfork_works=yes
24687 else
24688 $as_echo "$as_me: program exited with status $ac_status" >&5
24689 $as_echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24691
24692 ( exit $ac_status )
24693 ac_cv_func_vfork_works=no
24694 fi
24695 rm -rf conftest.dSYM
24696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24697 fi
24698
24699
24700 fi
24701 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24702 $as_echo "$ac_cv_func_vfork_works" >&6; }
24703
24704 fi;
24705 if test "x$ac_cv_func_fork_works" = xcross; then
24706 ac_cv_func_vfork_works=$ac_cv_func_vfork
24707 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24708 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24709 fi
24710
24711 if test "x$ac_cv_func_vfork_works" = xyes; then
24712
24713 cat >>confdefs.h <<\_ACEOF
24714 #define HAVE_WORKING_VFORK 1
24715 _ACEOF
24716
24717 else
24718
24719 cat >>confdefs.h <<\_ACEOF
24720 #define vfork fork
24721 _ACEOF
24722
24723 fi
24724 if test "x$ac_cv_func_fork_works" = xyes; then
24725
24726 cat >>confdefs.h <<\_ACEOF
24727 #define HAVE_WORKING_FORK 1
24728 _ACEOF
24729
24730 fi
24731
24732
24733 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
24734 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
24735 if test "${emacs_cv_langinfo_codeset+set}" = set; then
24736 $as_echo_n "(cached) " >&6
24737 else
24738 cat >conftest.$ac_ext <<_ACEOF
24739 /* confdefs.h. */
24740 _ACEOF
24741 cat confdefs.h >>conftest.$ac_ext
24742 cat >>conftest.$ac_ext <<_ACEOF
24743 /* end confdefs.h. */
24744 #include <langinfo.h>
24745 int
24746 main ()
24747 {
24748 char* cs = nl_langinfo(CODESET);
24749 ;
24750 return 0;
24751 }
24752 _ACEOF
24753 rm -f conftest.$ac_objext conftest$ac_exeext
24754 if { (ac_try="$ac_link"
24755 case "(($ac_try" in
24756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24757 *) ac_try_echo=$ac_try;;
24758 esac
24759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24760 $as_echo "$ac_try_echo") >&5
24761 (eval "$ac_link") 2>conftest.er1
24762 ac_status=$?
24763 grep -v '^ *+' conftest.er1 >conftest.err
24764 rm -f conftest.er1
24765 cat conftest.err >&5
24766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); } && {
24768 test -z "$ac_c_werror_flag" ||
24769 test ! -s conftest.err
24770 } && test -s conftest$ac_exeext && {
24771 test "$cross_compiling" = yes ||
24772 $as_test_x conftest$ac_exeext
24773 }; then
24774 emacs_cv_langinfo_codeset=yes
24775 else
24776 $as_echo "$as_me: failed program was:" >&5
24777 sed 's/^/| /' conftest.$ac_ext >&5
24778
24779 emacs_cv_langinfo_codeset=no
24780 fi
24781
24782 rm -rf conftest.dSYM
24783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24784 conftest$ac_exeext conftest.$ac_ext
24785
24786 fi
24787 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
24788 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
24789 if test $emacs_cv_langinfo_codeset = yes; then
24790
24791 cat >>confdefs.h <<\_ACEOF
24792 #define HAVE_LANGINFO_CODESET 1
24793 _ACEOF
24794
24795 fi
24796
24797 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
24798 $as_echo_n "checking for size_t... " >&6; }
24799 if test "${ac_cv_type_size_t+set}" = set; then
24800 $as_echo_n "(cached) " >&6
24801 else
24802 ac_cv_type_size_t=no
24803 cat >conftest.$ac_ext <<_ACEOF
24804 /* confdefs.h. */
24805 _ACEOF
24806 cat confdefs.h >>conftest.$ac_ext
24807 cat >>conftest.$ac_ext <<_ACEOF
24808 /* end confdefs.h. */
24809 $ac_includes_default
24810 int
24811 main ()
24812 {
24813 if (sizeof (size_t))
24814 return 0;
24815 ;
24816 return 0;
24817 }
24818 _ACEOF
24819 rm -f conftest.$ac_objext
24820 if { (ac_try="$ac_compile"
24821 case "(($ac_try" in
24822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24823 *) ac_try_echo=$ac_try;;
24824 esac
24825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24826 $as_echo "$ac_try_echo") >&5
24827 (eval "$ac_compile") 2>conftest.er1
24828 ac_status=$?
24829 grep -v '^ *+' conftest.er1 >conftest.err
24830 rm -f conftest.er1
24831 cat conftest.err >&5
24832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833 (exit $ac_status); } && {
24834 test -z "$ac_c_werror_flag" ||
24835 test ! -s conftest.err
24836 } && test -s conftest.$ac_objext; then
24837 cat >conftest.$ac_ext <<_ACEOF
24838 /* confdefs.h. */
24839 _ACEOF
24840 cat confdefs.h >>conftest.$ac_ext
24841 cat >>conftest.$ac_ext <<_ACEOF
24842 /* end confdefs.h. */
24843 $ac_includes_default
24844 int
24845 main ()
24846 {
24847 if (sizeof ((size_t)))
24848 return 0;
24849 ;
24850 return 0;
24851 }
24852 _ACEOF
24853 rm -f conftest.$ac_objext
24854 if { (ac_try="$ac_compile"
24855 case "(($ac_try" in
24856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24857 *) ac_try_echo=$ac_try;;
24858 esac
24859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24860 $as_echo "$ac_try_echo") >&5
24861 (eval "$ac_compile") 2>conftest.er1
24862 ac_status=$?
24863 grep -v '^ *+' conftest.er1 >conftest.err
24864 rm -f conftest.er1
24865 cat conftest.err >&5
24866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24867 (exit $ac_status); } && {
24868 test -z "$ac_c_werror_flag" ||
24869 test ! -s conftest.err
24870 } && test -s conftest.$ac_objext; then
24871 :
24872 else
24873 $as_echo "$as_me: failed program was:" >&5
24874 sed 's/^/| /' conftest.$ac_ext >&5
24875
24876 ac_cv_type_size_t=yes
24877 fi
24878
24879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24880 else
24881 $as_echo "$as_me: failed program was:" >&5
24882 sed 's/^/| /' conftest.$ac_ext >&5
24883
24884
24885 fi
24886
24887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24888 fi
24889 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24890 $as_echo "$ac_cv_type_size_t" >&6; }
24891 if test $ac_cv_type_size_t = yes; then
24892
24893 cat >>confdefs.h <<_ACEOF
24894 #define HAVE_SIZE_T 1
24895 _ACEOF
24896
24897
24898 fi
24899
24900
24901 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
24902 $as_echo_n "checking for mbstate_t... " >&6; }
24903 if test "${ac_cv_type_mbstate_t+set}" = set; then
24904 $as_echo_n "(cached) " >&6
24905 else
24906 cat >conftest.$ac_ext <<_ACEOF
24907 /* confdefs.h. */
24908 _ACEOF
24909 cat confdefs.h >>conftest.$ac_ext
24910 cat >>conftest.$ac_ext <<_ACEOF
24911 /* end confdefs.h. */
24912 $ac_includes_default
24913 # include <wchar.h>
24914 int
24915 main ()
24916 {
24917 mbstate_t x; return sizeof x;
24918 ;
24919 return 0;
24920 }
24921 _ACEOF
24922 rm -f conftest.$ac_objext
24923 if { (ac_try="$ac_compile"
24924 case "(($ac_try" in
24925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24926 *) ac_try_echo=$ac_try;;
24927 esac
24928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24929 $as_echo "$ac_try_echo") >&5
24930 (eval "$ac_compile") 2>conftest.er1
24931 ac_status=$?
24932 grep -v '^ *+' conftest.er1 >conftest.err
24933 rm -f conftest.er1
24934 cat conftest.err >&5
24935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); } && {
24937 test -z "$ac_c_werror_flag" ||
24938 test ! -s conftest.err
24939 } && test -s conftest.$ac_objext; then
24940 ac_cv_type_mbstate_t=yes
24941 else
24942 $as_echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24944
24945 ac_cv_type_mbstate_t=no
24946 fi
24947
24948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24949 fi
24950 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24951 $as_echo "$ac_cv_type_mbstate_t" >&6; }
24952 if test $ac_cv_type_mbstate_t = yes; then
24953
24954 cat >>confdefs.h <<\_ACEOF
24955 #define HAVE_MBSTATE_T 1
24956 _ACEOF
24957
24958 else
24959
24960 cat >>confdefs.h <<\_ACEOF
24961 #define mbstate_t int
24962 _ACEOF
24963
24964 fi
24965
24966 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
24967 $as_echo_n "checking for C restrict keyword... " >&6; }
24968 if test "${emacs_cv_c_restrict+set}" = set; then
24969 $as_echo_n "(cached) " >&6
24970 else
24971 cat >conftest.$ac_ext <<_ACEOF
24972 /* confdefs.h. */
24973 _ACEOF
24974 cat confdefs.h >>conftest.$ac_ext
24975 cat >>conftest.$ac_ext <<_ACEOF
24976 /* end confdefs.h. */
24977 void fred (int *restrict x);
24978 int
24979 main ()
24980 {
24981
24982 ;
24983 return 0;
24984 }
24985 _ACEOF
24986 rm -f conftest.$ac_objext
24987 if { (ac_try="$ac_compile"
24988 case "(($ac_try" in
24989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24990 *) ac_try_echo=$ac_try;;
24991 esac
24992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24993 $as_echo "$ac_try_echo") >&5
24994 (eval "$ac_compile") 2>conftest.er1
24995 ac_status=$?
24996 grep -v '^ *+' conftest.er1 >conftest.err
24997 rm -f conftest.er1
24998 cat conftest.err >&5
24999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25000 (exit $ac_status); } && {
25001 test -z "$ac_c_werror_flag" ||
25002 test ! -s conftest.err
25003 } && test -s conftest.$ac_objext; then
25004 emacs_cv_c_restrict=yes
25005 else
25006 $as_echo "$as_me: failed program was:" >&5
25007 sed 's/^/| /' conftest.$ac_ext >&5
25008
25009 cat >conftest.$ac_ext <<_ACEOF
25010 /* confdefs.h. */
25011 _ACEOF
25012 cat confdefs.h >>conftest.$ac_ext
25013 cat >>conftest.$ac_ext <<_ACEOF
25014 /* end confdefs.h. */
25015 void fred (int *__restrict x);
25016 int
25017 main ()
25018 {
25019
25020 ;
25021 return 0;
25022 }
25023 _ACEOF
25024 rm -f conftest.$ac_objext
25025 if { (ac_try="$ac_compile"
25026 case "(($ac_try" in
25027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25028 *) ac_try_echo=$ac_try;;
25029 esac
25030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25031 $as_echo "$ac_try_echo") >&5
25032 (eval "$ac_compile") 2>conftest.er1
25033 ac_status=$?
25034 grep -v '^ *+' conftest.er1 >conftest.err
25035 rm -f conftest.er1
25036 cat conftest.err >&5
25037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); } && {
25039 test -z "$ac_c_werror_flag" ||
25040 test ! -s conftest.err
25041 } && test -s conftest.$ac_objext; then
25042 emacs_cv_c_restrict=__restrict
25043 else
25044 $as_echo "$as_me: failed program was:" >&5
25045 sed 's/^/| /' conftest.$ac_ext >&5
25046
25047 emacs_cv_c_restrict=no
25048 fi
25049
25050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25051 fi
25052
25053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25054 fi
25055 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25056 $as_echo "$emacs_cv_c_restrict" >&6; }
25057 case "$emacs_cv_c_restrict" in
25058 yes) emacs_restrict=restrict;;
25059 no) emacs_restrict="";;
25060 *) emacs_restrict="$emacs_cv_c_restrict";;
25061 esac
25062 if test "$emacs_restrict" != __restrict; then
25063
25064 cat >>confdefs.h <<_ACEOF
25065 #define __restrict $emacs_restrict
25066 _ACEOF
25067
25068 fi
25069
25070 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25071 $as_echo_n "checking for C restricted array declarations... " >&6; }
25072 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25073 $as_echo_n "(cached) " >&6
25074 else
25075 cat >conftest.$ac_ext <<_ACEOF
25076 /* confdefs.h. */
25077 _ACEOF
25078 cat confdefs.h >>conftest.$ac_ext
25079 cat >>conftest.$ac_ext <<_ACEOF
25080 /* end confdefs.h. */
25081 void fred (int x[__restrict]);
25082 int
25083 main ()
25084 {
25085
25086 ;
25087 return 0;
25088 }
25089 _ACEOF
25090 rm -f conftest.$ac_objext
25091 if { (ac_try="$ac_compile"
25092 case "(($ac_try" in
25093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25094 *) ac_try_echo=$ac_try;;
25095 esac
25096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25097 $as_echo "$ac_try_echo") >&5
25098 (eval "$ac_compile") 2>conftest.er1
25099 ac_status=$?
25100 grep -v '^ *+' conftest.er1 >conftest.err
25101 rm -f conftest.er1
25102 cat conftest.err >&5
25103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104 (exit $ac_status); } && {
25105 test -z "$ac_c_werror_flag" ||
25106 test ! -s conftest.err
25107 } && test -s conftest.$ac_objext; then
25108 emacs_cv_c_restrict_arr=yes
25109 else
25110 $as_echo "$as_me: failed program was:" >&5
25111 sed 's/^/| /' conftest.$ac_ext >&5
25112
25113 emacs_cv_c_restrict_arr=no
25114 fi
25115
25116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25117 fi
25118 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25119 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25120 if test "$emacs_cv_c_restrict_arr" = yes; then
25121
25122 cat >>confdefs.h <<\_ACEOF
25123 #define __restrict_arr __restrict
25124 _ACEOF
25125
25126 fi
25127
25128
25129
25130 # Set up the CFLAGS for real compilation, so we can substitute it.
25131 CFLAGS="$REAL_CFLAGS"
25132 CPPFLAGS="$REAL_CPPFLAGS"
25133
25134 #### Find out which version of Emacs this is.
25135 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25136 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25137 if test x"${version}" = x; then
25138 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25139 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25140 { (exit 1); exit 1; }; }
25141 fi
25142
25143 ### Specify what sort of things we'll be editing into Makefile and config.h.
25144 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25145
25146
25147
25148
25149
25150
25151
25152
25153
25154
25155
25156
25157
25158
25159
25160
25161
25162
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173
25174
25175
25176
25177
25178
25179
25180
25181
25182
25183
25184
25185
25186
25187
25188 cat >>confdefs.h <<_ACEOF
25189 #define EMACS_CONFIGURATION "${canonical}"
25190 _ACEOF
25191
25192
25193 cat >>confdefs.h <<_ACEOF
25194 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25195 _ACEOF
25196
25197
25198 cat >>confdefs.h <<_ACEOF
25199 #define config_machfile "${machfile}"
25200 _ACEOF
25201
25202
25203 cat >>confdefs.h <<_ACEOF
25204 #define config_opsysfile "${opsysfile}"
25205 _ACEOF
25206
25207
25208 cat >>confdefs.h <<_ACEOF
25209 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25210 _ACEOF
25211
25212
25213 cat >>confdefs.h <<_ACEOF
25214 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25215 _ACEOF
25216
25217
25218 cat >>confdefs.h <<_ACEOF
25219 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25220 _ACEOF
25221
25222
25223 cat >>confdefs.h <<_ACEOF
25224 #define UNEXEC_SRC ${UNEXEC_SRC}
25225 _ACEOF
25226
25227
25228 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25229
25230 cat >>confdefs.h <<\_ACEOF
25231 #define HAVE_X_WINDOWS 1
25232 _ACEOF
25233
25234 fi
25235 if test "${USE_X_TOOLKIT}" != "none" ; then
25236
25237 cat >>confdefs.h <<\_ACEOF
25238 #define USE_X_TOOLKIT 1
25239 _ACEOF
25240
25241 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25242
25243 cat >>confdefs.h <<\_ACEOF
25244 #define USE_LUCID 1
25245 _ACEOF
25246
25247 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25248
25249 cat >>confdefs.h <<\_ACEOF
25250 #define USE_MOTIF 1
25251 _ACEOF
25252
25253 fi
25254 fi
25255 if test "${HAVE_X11}" = "yes" ; then
25256
25257 cat >>confdefs.h <<\_ACEOF
25258 #define HAVE_X11 1
25259 _ACEOF
25260
25261 fi
25262 if test "${HAVE_MENUS}" = "yes" ; then
25263
25264 cat >>confdefs.h <<\_ACEOF
25265 #define HAVE_MENUS 1
25266 _ACEOF
25267
25268 fi
25269 if test "${GNU_MALLOC}" = "yes" ; then
25270
25271 cat >>confdefs.h <<\_ACEOF
25272 #define GNU_MALLOC 1
25273 _ACEOF
25274
25275 fi
25276 if test "${REL_ALLOC}" = "yes" ; then
25277
25278 cat >>confdefs.h <<\_ACEOF
25279 #define REL_ALLOC 1
25280 _ACEOF
25281
25282 fi
25283
25284
25285
25286
25287
25288
25289 #### Report on what we decided to do.
25290 #### Report GTK as a toolkit, even if it doesn't use Xt.
25291 #### It makes printing result more understandable as using GTK sets
25292 #### toolkit_scroll_bars to yes by default.
25293 if test "${HAVE_GTK}" = "yes"; then
25294 USE_X_TOOLKIT=GTK
25295 fi
25296
25297 echo "
25298 Configured for \`${canonical}'.
25299
25300 Where should the build process find the source code? ${srcdir}
25301 What operating system and machine description files should Emacs use?
25302 \`${opsysfile}' and \`${machfile}'
25303 What compiler should emacs be built with? ${CC} ${CFLAGS}
25304 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25305 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25306 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25307 What window system should Emacs use? ${window_system}
25308 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25309
25310 if test -n "${x_includes}"; then
25311 echo " Where do we find X Windows header files? ${x_includes}"
25312 else
25313 echo " Where do we find X Windows header files? Standard dirs"
25314 fi
25315 if test -n "${x_libraries}"; then
25316 echo " Where do we find X Windows libraries? ${x_libraries}"
25317 else
25318 echo " Where do we find X Windows libraries? Standard dirs"
25319 fi
25320
25321 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25322 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25323 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25324 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25325 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
25326 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25327 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25328 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25329 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25330
25331 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25332 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25333 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25334 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25335
25336 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25337 echo
25338
25339 if test $USE_XASSERTS = yes; then
25340 echo " Compiling with asserts turned on."
25341 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
25342 fi
25343
25344 echo
25345
25346 if test "$USE_X_TOOLKIT" = GTK; then
25347 case "$canonical" in
25348 *cygwin*)
25349 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
25350 will probably get a crash on startup. If this happens, please use another
25351 toolkit for Emacs. See etc/PROBLEMS for more information."
25352 ;;
25353 esac
25354 fi
25355
25356 if test "$HAVE_NS" = "yes"; then
25357 echo
25358 echo "You must run \"make install\" in order to test the built application.
25359 The installed application will go to nextstep/Emacs.app and can be
25360 run or moved from there."
25361 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25362 echo "The application will be fully self-contained."
25363 else
25364 echo "The lisp resources for the application will be installed under ${prefix}.
25365 You may need to run \"make install\" with sudo. The application will fail
25366 to run if these resources are not installed."
25367 fi
25368 echo
25369 fi
25370
25371 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25372 echo "D-Bus integration has been tested for GNU/Linux only."
25373 echo
25374 fi
25375
25376
25377 # Remove any trailing slashes in these variables.
25378 test "${prefix}" != NONE &&
25379 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25380 test "${exec_prefix}" != NONE &&
25381 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25382
25383 # Now get this: Some word that is part of the ${srcdir} directory name
25384 # or the ${configuration} value might, just might, happen to be an
25385 # identifier like `sun4' or `i386' or something, and be predefined by
25386 # the C preprocessor to some helpful value like 1, or maybe the empty
25387 # string. Needless to say consequent macro substitutions are less
25388 # than conducive to the makefile finding the correct directory.
25389 cpp_undefs="`echo $srcdir $configuration $canonical |
25390 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25391 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25392
25393 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25394 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25395 ## from Makefile.c can correctly provide the arg `-traditional' to the
25396 ## C preprocessor.
25397
25398 cat >conftest.$ac_ext <<_ACEOF
25399 /* confdefs.h. */
25400 _ACEOF
25401 cat confdefs.h >>conftest.$ac_ext
25402 cat >>conftest.$ac_ext <<_ACEOF
25403 /* end confdefs.h. */
25404 yes..yes
25405 _ACEOF
25406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25407 $EGREP "yes..yes" >/dev/null 2>&1; then
25408 CPP_NEED_TRADITIONAL=no
25409 else
25410 CPP_NEED_TRADITIONAL=yes
25411 fi
25412 rm -f conftest*
25413
25414
25415 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"
25416
25417 ac_config_commands="$ac_config_commands default"
25418
25419 cat >confcache <<\_ACEOF
25420 # This file is a shell script that caches the results of configure
25421 # tests run on this system so they can be shared between configure
25422 # scripts and configure runs, see configure's option --config-cache.
25423 # It is not useful on other systems. If it contains results you don't
25424 # want to keep, you may remove or edit it.
25425 #
25426 # config.status only pays attention to the cache file if you give it
25427 # the --recheck option to rerun configure.
25428 #
25429 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25430 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25431 # following values.
25432
25433 _ACEOF
25434
25435 # The following way of writing the cache mishandles newlines in values,
25436 # but we know of no workaround that is simple, portable, and efficient.
25437 # So, we kill variables containing newlines.
25438 # Ultrix sh set writes to stderr and can't be redirected directly,
25439 # and sets the high bit in the cache file unless we assign to the vars.
25440 (
25441 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25442 eval ac_val=\$$ac_var
25443 case $ac_val in #(
25444 *${as_nl}*)
25445 case $ac_var in #(
25446 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25447 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25448 esac
25449 case $ac_var in #(
25450 _ | IFS | as_nl) ;; #(
25451 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25452 *) $as_unset $ac_var ;;
25453 esac ;;
25454 esac
25455 done
25456
25457 (set) 2>&1 |
25458 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25459 *${as_nl}ac_space=\ *)
25460 # `set' does not quote correctly, so add quotes (double-quote
25461 # substitution turns \\\\ into \\, and sed turns \\ into \).
25462 sed -n \
25463 "s/'/'\\\\''/g;
25464 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25465 ;; #(
25466 *)
25467 # `set' quotes correctly as required by POSIX, so do not add quotes.
25468 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25469 ;;
25470 esac |
25471 sort
25472 ) |
25473 sed '
25474 /^ac_cv_env_/b end
25475 t clear
25476 :clear
25477 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25478 t end
25479 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25480 :end' >>confcache
25481 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25482 if test -w "$cache_file"; then
25483 test "x$cache_file" != "x/dev/null" &&
25484 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25485 $as_echo "$as_me: updating cache $cache_file" >&6;}
25486 cat confcache >$cache_file
25487 else
25488 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25489 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25490 fi
25491 fi
25492 rm -f confcache
25493
25494 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25495 # Let make expand exec_prefix.
25496 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25497
25498 DEFS=-DHAVE_CONFIG_H
25499
25500 ac_libobjs=
25501 ac_ltlibobjs=
25502 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25503 # 1. Remove the extension, and $U if already installed.
25504 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25505 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25506 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25507 # will be set to the directory where LIBOBJS objects are built.
25508 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25509 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25510 done
25511 LIBOBJS=$ac_libobjs
25512
25513 LTLIBOBJS=$ac_ltlibobjs
25514
25515
25516
25517 : ${CONFIG_STATUS=./config.status}
25518 ac_write_fail=0
25519 ac_clean_files_save=$ac_clean_files
25520 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25521 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25522 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25523 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25524 #! $SHELL
25525 # Generated by $as_me.
25526 # Run this file to recreate the current configuration.
25527 # Compiler output produced by configure, useful for debugging
25528 # configure, is in config.log if it exists.
25529
25530 debug=false
25531 ac_cs_recheck=false
25532 ac_cs_silent=false
25533 SHELL=\${CONFIG_SHELL-$SHELL}
25534 _ACEOF
25535
25536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25537 ## --------------------- ##
25538 ## M4sh Initialization. ##
25539 ## --------------------- ##
25540
25541 # Be more Bourne compatible
25542 DUALCASE=1; export DUALCASE # for MKS sh
25543 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25544 emulate sh
25545 NULLCMD=:
25546 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25547 # is contrary to our usage. Disable this feature.
25548 alias -g '${1+"$@"}'='"$@"'
25549 setopt NO_GLOB_SUBST
25550 else
25551 case `(set -o) 2>/dev/null` in
25552 *posix*) set -o posix ;;
25553 esac
25554
25555 fi
25556
25557
25558
25559
25560 # PATH needs CR
25561 # Avoid depending upon Character Ranges.
25562 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25563 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25564 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25565 as_cr_digits='0123456789'
25566 as_cr_alnum=$as_cr_Letters$as_cr_digits
25567
25568 as_nl='
25569 '
25570 export as_nl
25571 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25572 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25573 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25574 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25575 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25576 as_echo='printf %s\n'
25577 as_echo_n='printf %s'
25578 else
25579 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25580 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25581 as_echo_n='/usr/ucb/echo -n'
25582 else
25583 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25584 as_echo_n_body='eval
25585 arg=$1;
25586 case $arg in
25587 *"$as_nl"*)
25588 expr "X$arg" : "X\\(.*\\)$as_nl";
25589 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25590 esac;
25591 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25592 '
25593 export as_echo_n_body
25594 as_echo_n='sh -c $as_echo_n_body as_echo'
25595 fi
25596 export as_echo_body
25597 as_echo='sh -c $as_echo_body as_echo'
25598 fi
25599
25600 # The user is always right.
25601 if test "${PATH_SEPARATOR+set}" != set; then
25602 PATH_SEPARATOR=:
25603 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25604 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25605 PATH_SEPARATOR=';'
25606 }
25607 fi
25608
25609 # Support unset when possible.
25610 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25611 as_unset=unset
25612 else
25613 as_unset=false
25614 fi
25615
25616
25617 # IFS
25618 # We need space, tab and new line, in precisely that order. Quoting is
25619 # there to prevent editors from complaining about space-tab.
25620 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25621 # splitting by setting IFS to empty value.)
25622 IFS=" "" $as_nl"
25623
25624 # Find who we are. Look in the path if we contain no directory separator.
25625 case $0 in
25626 *[\\/]* ) as_myself=$0 ;;
25627 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25628 for as_dir in $PATH
25629 do
25630 IFS=$as_save_IFS
25631 test -z "$as_dir" && as_dir=.
25632 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25633 done
25634 IFS=$as_save_IFS
25635
25636 ;;
25637 esac
25638 # We did not find ourselves, most probably we were run as `sh COMMAND'
25639 # in which case we are not to be found in the path.
25640 if test "x$as_myself" = x; then
25641 as_myself=$0
25642 fi
25643 if test ! -f "$as_myself"; then
25644 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25645 { (exit 1); exit 1; }
25646 fi
25647
25648 # Work around bugs in pre-3.0 UWIN ksh.
25649 for as_var in ENV MAIL MAILPATH
25650 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25651 done
25652 PS1='$ '
25653 PS2='> '
25654 PS4='+ '
25655
25656 # NLS nuisances.
25657 LC_ALL=C
25658 export LC_ALL
25659 LANGUAGE=C
25660 export LANGUAGE
25661
25662 # Required to use basename.
25663 if expr a : '\(a\)' >/dev/null 2>&1 &&
25664 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25665 as_expr=expr
25666 else
25667 as_expr=false
25668 fi
25669
25670 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25671 as_basename=basename
25672 else
25673 as_basename=false
25674 fi
25675
25676
25677 # Name of the executable.
25678 as_me=`$as_basename -- "$0" ||
25679 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25680 X"$0" : 'X\(//\)$' \| \
25681 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25682 $as_echo X/"$0" |
25683 sed '/^.*\/\([^/][^/]*\)\/*$/{
25684 s//\1/
25685 q
25686 }
25687 /^X\/\(\/\/\)$/{
25688 s//\1/
25689 q
25690 }
25691 /^X\/\(\/\).*/{
25692 s//\1/
25693 q
25694 }
25695 s/.*/./; q'`
25696
25697 # CDPATH.
25698 $as_unset CDPATH
25699
25700
25701
25702 as_lineno_1=$LINENO
25703 as_lineno_2=$LINENO
25704 test "x$as_lineno_1" != "x$as_lineno_2" &&
25705 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25706
25707 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25708 # uniformly replaced by the line number. The first 'sed' inserts a
25709 # line-number line after each line using $LINENO; the second 'sed'
25710 # does the real work. The second script uses 'N' to pair each
25711 # line-number line with the line containing $LINENO, and appends
25712 # trailing '-' during substitution so that $LINENO is not a special
25713 # case at line end.
25714 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25715 # scripts with optimization help from Paolo Bonzini. Blame Lee
25716 # E. McMahon (1931-1989) for sed's syntax. :-)
25717 sed -n '
25718 p
25719 /[$]LINENO/=
25720 ' <$as_myself |
25721 sed '
25722 s/[$]LINENO.*/&-/
25723 t lineno
25724 b
25725 :lineno
25726 N
25727 :loop
25728 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25729 t loop
25730 s/-\n.*//
25731 ' >$as_me.lineno &&
25732 chmod +x "$as_me.lineno" ||
25733 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25734 { (exit 1); exit 1; }; }
25735
25736 # Don't try to exec as it changes $[0], causing all sort of problems
25737 # (the dirname of $[0] is not the place where we might find the
25738 # original and so on. Autoconf is especially sensitive to this).
25739 . "./$as_me.lineno"
25740 # Exit status is that of the last command.
25741 exit
25742 }
25743
25744
25745 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25746 as_dirname=dirname
25747 else
25748 as_dirname=false
25749 fi
25750
25751 ECHO_C= ECHO_N= ECHO_T=
25752 case `echo -n x` in
25753 -n*)
25754 case `echo 'x\c'` in
25755 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25756 *) ECHO_C='\c';;
25757 esac;;
25758 *)
25759 ECHO_N='-n';;
25760 esac
25761 if expr a : '\(a\)' >/dev/null 2>&1 &&
25762 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25763 as_expr=expr
25764 else
25765 as_expr=false
25766 fi
25767
25768 rm -f conf$$ conf$$.exe conf$$.file
25769 if test -d conf$$.dir; then
25770 rm -f conf$$.dir/conf$$.file
25771 else
25772 rm -f conf$$.dir
25773 mkdir conf$$.dir 2>/dev/null
25774 fi
25775 if (echo >conf$$.file) 2>/dev/null; then
25776 if ln -s conf$$.file conf$$ 2>/dev/null; then
25777 as_ln_s='ln -s'
25778 # ... but there are two gotchas:
25779 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25780 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25781 # In both cases, we have to default to `cp -p'.
25782 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25783 as_ln_s='cp -p'
25784 elif ln conf$$.file conf$$ 2>/dev/null; then
25785 as_ln_s=ln
25786 else
25787 as_ln_s='cp -p'
25788 fi
25789 else
25790 as_ln_s='cp -p'
25791 fi
25792 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25793 rmdir conf$$.dir 2>/dev/null
25794
25795 if mkdir -p . 2>/dev/null; then
25796 as_mkdir_p=:
25797 else
25798 test -d ./-p && rmdir ./-p
25799 as_mkdir_p=false
25800 fi
25801
25802 if test -x / >/dev/null 2>&1; then
25803 as_test_x='test -x'
25804 else
25805 if ls -dL / >/dev/null 2>&1; then
25806 as_ls_L_option=L
25807 else
25808 as_ls_L_option=
25809 fi
25810 as_test_x='
25811 eval sh -c '\''
25812 if test -d "$1"; then
25813 test -d "$1/.";
25814 else
25815 case $1 in
25816 -*)set "./$1";;
25817 esac;
25818 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25819 ???[sx]*):;;*)false;;esac;fi
25820 '\'' sh
25821 '
25822 fi
25823 as_executable_p=$as_test_x
25824
25825 # Sed expression to map a string onto a valid CPP name.
25826 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25827
25828 # Sed expression to map a string onto a valid variable name.
25829 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25830
25831
25832 exec 6>&1
25833
25834 # Save the log message, to keep $[0] and so on meaningful, and to
25835 # report actual input values of CONFIG_FILES etc. instead of their
25836 # values after options handling.
25837 ac_log="
25838 This file was extended by emacs $as_me 23.1.50, which was
25839 generated by GNU Autoconf 2.62. Invocation command line was
25840
25841 CONFIG_FILES = $CONFIG_FILES
25842 CONFIG_HEADERS = $CONFIG_HEADERS
25843 CONFIG_LINKS = $CONFIG_LINKS
25844 CONFIG_COMMANDS = $CONFIG_COMMANDS
25845 $ $0 $@
25846
25847 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25848 "
25849
25850 _ACEOF
25851
25852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25853 # Files that config.status was made for.
25854 config_files="$ac_config_files"
25855 config_headers="$ac_config_headers"
25856 config_commands="$ac_config_commands"
25857
25858 _ACEOF
25859
25860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25861 ac_cs_usage="\
25862 \`$as_me' instantiates files from templates according to the
25863 current configuration.
25864
25865 Usage: $0 [OPTIONS] [FILE]...
25866
25867 -h, --help print this help, then exit
25868 -V, --version print version number and configuration settings, then exit
25869 -q, --quiet do not print progress messages
25870 -d, --debug don't remove temporary files
25871 --recheck update $as_me by reconfiguring in the same conditions
25872 --file=FILE[:TEMPLATE]
25873 instantiate the configuration file FILE
25874 --header=FILE[:TEMPLATE]
25875 instantiate the configuration header FILE
25876
25877 Configuration files:
25878 $config_files
25879
25880 Configuration headers:
25881 $config_headers
25882
25883 Configuration commands:
25884 $config_commands
25885
25886 Report bugs to <bug-autoconf@gnu.org>."
25887
25888 _ACEOF
25889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25890 ac_cs_version="\\
25891 emacs config.status 23.1.50
25892 configured by $0, generated by GNU Autoconf 2.62,
25893 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25894
25895 Copyright (C) 2008 Free Software Foundation, Inc.
25896 This config.status script is free software; the Free Software Foundation
25897 gives unlimited permission to copy, distribute and modify it."
25898
25899 ac_pwd='$ac_pwd'
25900 srcdir='$srcdir'
25901 INSTALL='$INSTALL'
25902 test -n "\$AWK" || AWK=awk
25903 _ACEOF
25904
25905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25906 # The default lists apply if the user does not specify any file.
25907 ac_need_defaults=:
25908 while test $# != 0
25909 do
25910 case $1 in
25911 --*=*)
25912 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25913 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25914 ac_shift=:
25915 ;;
25916 *)
25917 ac_option=$1
25918 ac_optarg=$2
25919 ac_shift=shift
25920 ;;
25921 esac
25922
25923 case $ac_option in
25924 # Handling of the options.
25925 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25926 ac_cs_recheck=: ;;
25927 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25928 $as_echo "$ac_cs_version"; exit ;;
25929 --debug | --debu | --deb | --de | --d | -d )
25930 debug=: ;;
25931 --file | --fil | --fi | --f )
25932 $ac_shift
25933 case $ac_optarg in
25934 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25935 esac
25936 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
25937 ac_need_defaults=false;;
25938 --header | --heade | --head | --hea )
25939 $ac_shift
25940 case $ac_optarg in
25941 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25942 esac
25943 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
25944 ac_need_defaults=false;;
25945 --he | --h)
25946 # Conflict between --help and --header
25947 { $as_echo "$as_me: error: ambiguous option: $1
25948 Try \`$0 --help' for more information." >&2
25949 { (exit 1); exit 1; }; };;
25950 --help | --hel | -h )
25951 $as_echo "$ac_cs_usage"; exit ;;
25952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25953 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25954 ac_cs_silent=: ;;
25955
25956 # This is an error.
25957 -*) { $as_echo "$as_me: error: unrecognized option: $1
25958 Try \`$0 --help' for more information." >&2
25959 { (exit 1); exit 1; }; } ;;
25960
25961 *) ac_config_targets="$ac_config_targets $1"
25962 ac_need_defaults=false ;;
25963
25964 esac
25965 shift
25966 done
25967
25968 ac_configure_extra_args=
25969
25970 if $ac_cs_silent; then
25971 exec 6>/dev/null
25972 ac_configure_extra_args="$ac_configure_extra_args --silent"
25973 fi
25974
25975 _ACEOF
25976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25977 if \$ac_cs_recheck; then
25978 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25979 shift
25980 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25981 CONFIG_SHELL='$SHELL'
25982 export CONFIG_SHELL
25983 exec "\$@"
25984 fi
25985
25986 _ACEOF
25987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25988 exec 5>>config.log
25989 {
25990 echo
25991 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25992 ## Running $as_me. ##
25993 _ASBOX
25994 $as_echo "$ac_log"
25995 } >&5
25996
25997 _ACEOF
25998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25999 #
26000 # INIT-COMMANDS
26001 #
26002 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26003
26004 _ACEOF
26005
26006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26007
26008 # Handling of arguments.
26009 for ac_config_target in $ac_config_targets
26010 do
26011 case $ac_config_target in
26012 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26013 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26014 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26015 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26016 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26017 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26018 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26019 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26020 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26021 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26022 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26023 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26024 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26025
26026 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26027 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26028 { (exit 1); exit 1; }; };;
26029 esac
26030 done
26031
26032
26033 # If the user did not use the arguments to specify the items to instantiate,
26034 # then the envvar interface is used. Set only those that are not.
26035 # We use the long form for the default assignment because of an extremely
26036 # bizarre bug on SunOS 4.1.3.
26037 if $ac_need_defaults; then
26038 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26039 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26040 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26041 fi
26042
26043 # Have a temporary directory for convenience. Make it in the build tree
26044 # simply because there is no reason against having it here, and in addition,
26045 # creating and moving files from /tmp can sometimes cause problems.
26046 # Hook for its removal unless debugging.
26047 # Note that there is a small window in which the directory will not be cleaned:
26048 # after its creation but before its name has been assigned to `$tmp'.
26049 $debug ||
26050 {
26051 tmp=
26052 trap 'exit_status=$?
26053 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26054 ' 0
26055 trap '{ (exit 1); exit 1; }' 1 2 13 15
26056 }
26057 # Create a (secure) tmp directory for tmp files.
26058
26059 {
26060 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26061 test -n "$tmp" && test -d "$tmp"
26062 } ||
26063 {
26064 tmp=./conf$$-$RANDOM
26065 (umask 077 && mkdir "$tmp")
26066 } ||
26067 {
26068 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26069 { (exit 1); exit 1; }
26070 }
26071
26072 # Set up the scripts for CONFIG_FILES section.
26073 # No need to generate them if there are no CONFIG_FILES.
26074 # This happens for instance with `./config.status config.h'.
26075 if test -n "$CONFIG_FILES"; then
26076
26077
26078 ac_cr=' '
26079 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26080 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26081 ac_cs_awk_cr='\\r'
26082 else
26083 ac_cs_awk_cr=$ac_cr
26084 fi
26085
26086 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26087 _ACEOF
26088
26089
26090 {
26091 echo "cat >conf$$subs.awk <<_ACEOF" &&
26092 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26093 echo "_ACEOF"
26094 } >conf$$subs.sh ||
26095 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26096 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26097 { (exit 1); exit 1; }; }
26098 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26099 ac_delim='%!_!# '
26100 for ac_last_try in false false false false false :; do
26101 . ./conf$$subs.sh ||
26102 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26103 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26104 { (exit 1); exit 1; }; }
26105
26106 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26107 break
26108 elif $ac_last_try; then
26109 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26110 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26111 { (exit 1); exit 1; }; }
26112 else
26113 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26114 fi
26115 done
26116 rm -f conf$$subs.sh
26117
26118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26119 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26120 _ACEOF
26121 sed -n '
26122 h
26123 s/^/S["/; s/!.*/"]=/
26124 p
26125 g
26126 s/^[^!]*!//
26127 :repl
26128 t repl
26129 s/'"$ac_delim"'$//
26130 t delim
26131 :nl
26132 h
26133 s/\(.\{148\}\).*/\1/
26134 t more1
26135 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26136 p
26137 n
26138 b repl
26139 :more1
26140 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26141 p
26142 g
26143 s/.\{148\}//
26144 t nl
26145 :delim
26146 h
26147 s/\(.\{148\}\).*/\1/
26148 t more2
26149 s/["\\]/\\&/g; s/^/"/; s/$/"/
26150 p
26151 b
26152 :more2
26153 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26154 p
26155 g
26156 s/.\{148\}//
26157 t delim
26158 ' <conf$$subs.awk | sed '
26159 /^[^""]/{
26160 N
26161 s/\n//
26162 }
26163 ' >>$CONFIG_STATUS || ac_write_fail=1
26164 rm -f conf$$subs.awk
26165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26166 _ACAWK
26167 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26168 for (key in S) S_is_set[key] = 1
26169 FS = "\a"
26170
26171 }
26172 {
26173 line = $ 0
26174 nfields = split(line, field, "@")
26175 substed = 0
26176 len = length(field[1])
26177 for (i = 2; i < nfields; i++) {
26178 key = field[i]
26179 keylen = length(key)
26180 if (S_is_set[key]) {
26181 value = S[key]
26182 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26183 len += length(value) + length(field[++i])
26184 substed = 1
26185 } else
26186 len += 1 + keylen
26187 }
26188
26189 print line
26190 }
26191
26192 _ACAWK
26193 _ACEOF
26194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26195 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26196 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26197 else
26198 cat
26199 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26200 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26201 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26202 { (exit 1); exit 1; }; }
26203 _ACEOF
26204
26205 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26206 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26207 # trailing colons and then remove the whole line if VPATH becomes empty
26208 # (actually we leave an empty line to preserve line numbers).
26209 if test "x$srcdir" = x.; then
26210 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26211 s/:*\$(srcdir):*/:/
26212 s/:*\${srcdir}:*/:/
26213 s/:*@srcdir@:*/:/
26214 s/^\([^=]*=[ ]*\):*/\1/
26215 s/:*$//
26216 s/^[^=]*=[ ]*$//
26217 }'
26218 fi
26219
26220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26221 fi # test -n "$CONFIG_FILES"
26222
26223 # Set up the scripts for CONFIG_HEADERS section.
26224 # No need to generate them if there are no CONFIG_HEADERS.
26225 # This happens for instance with `./config.status Makefile'.
26226 if test -n "$CONFIG_HEADERS"; then
26227 cat >"$tmp/defines.awk" <<\_ACAWK ||
26228 BEGIN {
26229 _ACEOF
26230
26231 # Transform confdefs.h into an awk script `defines.awk', embedded as
26232 # here-document in config.status, that substitutes the proper values into
26233 # config.h.in to produce config.h.
26234
26235 # Create a delimiter string that does not exist in confdefs.h, to ease
26236 # handling of long lines.
26237 ac_delim='%!_!# '
26238 for ac_last_try in false false :; do
26239 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26240 if test -z "$ac_t"; then
26241 break
26242 elif $ac_last_try; then
26243 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26244 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26245 { (exit 1); exit 1; }; }
26246 else
26247 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26248 fi
26249 done
26250
26251 # For the awk script, D is an array of macro values keyed by name,
26252 # likewise P contains macro parameters if any. Preserve backslash
26253 # newline sequences.
26254
26255 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26256 sed -n '
26257 s/.\{148\}/&'"$ac_delim"'/g
26258 t rset
26259 :rset
26260 s/^[ ]*#[ ]*define[ ][ ]*/ /
26261 t def
26262 d
26263 :def
26264 s/\\$//
26265 t bsnl
26266 s/["\\]/\\&/g
26267 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26268 D["\1"]=" \3"/p
26269 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26270 d
26271 :bsnl
26272 s/["\\]/\\&/g
26273 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26274 D["\1"]=" \3\\\\\\n"\\/p
26275 t cont
26276 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26277 t cont
26278 d
26279 :cont
26280 n
26281 s/.\{148\}/&'"$ac_delim"'/g
26282 t clear
26283 :clear
26284 s/\\$//
26285 t bsnlc
26286 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26287 d
26288 :bsnlc
26289 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26290 b cont
26291 ' <confdefs.h | sed '
26292 s/'"$ac_delim"'/"\\\
26293 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26294
26295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26296 for (key in D) D_is_set[key] = 1
26297 FS = "\a"
26298 }
26299 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26300 line = \$ 0
26301 split(line, arg, " ")
26302 if (arg[1] == "#") {
26303 defundef = arg[2]
26304 mac1 = arg[3]
26305 } else {
26306 defundef = substr(arg[1], 2)
26307 mac1 = arg[2]
26308 }
26309 split(mac1, mac2, "(") #)
26310 macro = mac2[1]
26311 if (D_is_set[macro]) {
26312 # Preserve the white space surrounding the "#".
26313 prefix = substr(line, 1, index(line, defundef) - 1)
26314 print prefix "define", macro P[macro] D[macro]
26315 next
26316 } else {
26317 # Replace #undef with comments. This is necessary, for example,
26318 # in the case of _POSIX_SOURCE, which is predefined and required
26319 # on some systems where configure will not decide to define it.
26320 if (defundef == "undef") {
26321 print "/*", line, "*/"
26322 next
26323 }
26324 }
26325 }
26326 { print }
26327 _ACAWK
26328 _ACEOF
26329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26330 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26331 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26332 { (exit 1); exit 1; }; }
26333 fi # test -n "$CONFIG_HEADERS"
26334
26335
26336 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26337 shift
26338 for ac_tag
26339 do
26340 case $ac_tag in
26341 :[FHLC]) ac_mode=$ac_tag; continue;;
26342 esac
26343 case $ac_mode$ac_tag in
26344 :[FHL]*:*);;
26345 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26346 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26347 { (exit 1); exit 1; }; };;
26348 :[FH]-) ac_tag=-:-;;
26349 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26350 esac
26351 ac_save_IFS=$IFS
26352 IFS=:
26353 set x $ac_tag
26354 IFS=$ac_save_IFS
26355 shift
26356 ac_file=$1
26357 shift
26358
26359 case $ac_mode in
26360 :L) ac_source=$1;;
26361 :[FH])
26362 ac_file_inputs=
26363 for ac_f
26364 do
26365 case $ac_f in
26366 -) ac_f="$tmp/stdin";;
26367 *) # Look for the file first in the build tree, then in the source tree
26368 # (if the path is not absolute). The absolute path cannot be DOS-style,
26369 # because $ac_f cannot contain `:'.
26370 test -f "$ac_f" ||
26371 case $ac_f in
26372 [\\/$]*) false;;
26373 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26374 esac ||
26375 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26376 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26377 { (exit 1); exit 1; }; };;
26378 esac
26379 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26380 ac_file_inputs="$ac_file_inputs '$ac_f'"
26381 done
26382
26383 # Let's still pretend it is `configure' which instantiates (i.e., don't
26384 # use $as_me), people would be surprised to read:
26385 # /* config.h. Generated by config.status. */
26386 configure_input='Generated from '`
26387 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26388 `' by configure.'
26389 if test x"$ac_file" != x-; then
26390 configure_input="$ac_file. $configure_input"
26391 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26392 $as_echo "$as_me: creating $ac_file" >&6;}
26393 fi
26394 # Neutralize special characters interpreted by sed in replacement strings.
26395 case $configure_input in #(
26396 *\&* | *\|* | *\\* )
26397 ac_sed_conf_input=`$as_echo "$configure_input" |
26398 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26399 *) ac_sed_conf_input=$configure_input;;
26400 esac
26401
26402 case $ac_tag in
26403 *:-:* | *:-) cat >"$tmp/stdin" \
26404 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26405 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26406 { (exit 1); exit 1; }; } ;;
26407 esac
26408 ;;
26409 esac
26410
26411 ac_dir=`$as_dirname -- "$ac_file" ||
26412 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26413 X"$ac_file" : 'X\(//\)[^/]' \| \
26414 X"$ac_file" : 'X\(//\)$' \| \
26415 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26416 $as_echo X"$ac_file" |
26417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26418 s//\1/
26419 q
26420 }
26421 /^X\(\/\/\)[^/].*/{
26422 s//\1/
26423 q
26424 }
26425 /^X\(\/\/\)$/{
26426 s//\1/
26427 q
26428 }
26429 /^X\(\/\).*/{
26430 s//\1/
26431 q
26432 }
26433 s/.*/./; q'`
26434 { as_dir="$ac_dir"
26435 case $as_dir in #(
26436 -*) as_dir=./$as_dir;;
26437 esac
26438 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26439 as_dirs=
26440 while :; do
26441 case $as_dir in #(
26442 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26443 *) as_qdir=$as_dir;;
26444 esac
26445 as_dirs="'$as_qdir' $as_dirs"
26446 as_dir=`$as_dirname -- "$as_dir" ||
26447 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26448 X"$as_dir" : 'X\(//\)[^/]' \| \
26449 X"$as_dir" : 'X\(//\)$' \| \
26450 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26451 $as_echo X"$as_dir" |
26452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26453 s//\1/
26454 q
26455 }
26456 /^X\(\/\/\)[^/].*/{
26457 s//\1/
26458 q
26459 }
26460 /^X\(\/\/\)$/{
26461 s//\1/
26462 q
26463 }
26464 /^X\(\/\).*/{
26465 s//\1/
26466 q
26467 }
26468 s/.*/./; q'`
26469 test -d "$as_dir" && break
26470 done
26471 test -z "$as_dirs" || eval "mkdir $as_dirs"
26472 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26473 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26474 { (exit 1); exit 1; }; }; }
26475 ac_builddir=.
26476
26477 case "$ac_dir" in
26478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26479 *)
26480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26481 # A ".." for each directory in $ac_dir_suffix.
26482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26483 case $ac_top_builddir_sub in
26484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26486 esac ;;
26487 esac
26488 ac_abs_top_builddir=$ac_pwd
26489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26490 # for backward compatibility:
26491 ac_top_builddir=$ac_top_build_prefix
26492
26493 case $srcdir in
26494 .) # We are building in place.
26495 ac_srcdir=.
26496 ac_top_srcdir=$ac_top_builddir_sub
26497 ac_abs_top_srcdir=$ac_pwd ;;
26498 [\\/]* | ?:[\\/]* ) # Absolute name.
26499 ac_srcdir=$srcdir$ac_dir_suffix;
26500 ac_top_srcdir=$srcdir
26501 ac_abs_top_srcdir=$srcdir ;;
26502 *) # Relative name.
26503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26504 ac_top_srcdir=$ac_top_build_prefix$srcdir
26505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26506 esac
26507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26508
26509
26510 case $ac_mode in
26511 :F)
26512 #
26513 # CONFIG_FILE
26514 #
26515
26516 case $INSTALL in
26517 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26518 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26519 esac
26520 _ACEOF
26521
26522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26523 # If the template does not know about datarootdir, expand it.
26524 # FIXME: This hack should be removed a few years after 2.60.
26525 ac_datarootdir_hack=; ac_datarootdir_seen=
26526
26527 ac_sed_dataroot='
26528 /datarootdir/ {
26529 p
26530 q
26531 }
26532 /@datadir@/p
26533 /@docdir@/p
26534 /@infodir@/p
26535 /@localedir@/p
26536 /@mandir@/p
26537 '
26538 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26539 *datarootdir*) ac_datarootdir_seen=yes;;
26540 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26541 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26542 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26543 _ACEOF
26544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26545 ac_datarootdir_hack='
26546 s&@datadir@&$datadir&g
26547 s&@docdir@&$docdir&g
26548 s&@infodir@&$infodir&g
26549 s&@localedir@&$localedir&g
26550 s&@mandir@&$mandir&g
26551 s&\\\${datarootdir}&$datarootdir&g' ;;
26552 esac
26553 _ACEOF
26554
26555 # Neutralize VPATH when `$srcdir' = `.'.
26556 # Shell code in configure.ac might set extrasub.
26557 # FIXME: do we really want to maintain this feature?
26558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26559 ac_sed_extra="$ac_vpsub
26560 $extrasub
26561 _ACEOF
26562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26563 :t
26564 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26565 s|@configure_input@|$ac_sed_conf_input|;t t
26566 s&@top_builddir@&$ac_top_builddir_sub&;t t
26567 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26568 s&@srcdir@&$ac_srcdir&;t t
26569 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26570 s&@top_srcdir@&$ac_top_srcdir&;t t
26571 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26572 s&@builddir@&$ac_builddir&;t t
26573 s&@abs_builddir@&$ac_abs_builddir&;t t
26574 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26575 s&@INSTALL@&$ac_INSTALL&;t t
26576 $ac_datarootdir_hack
26577 "
26578 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26579 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26580 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26581 { (exit 1); exit 1; }; }
26582
26583 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26584 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26585 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26586 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26587 which seems to be undefined. Please make sure it is defined." >&5
26588 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26589 which seems to be undefined. Please make sure it is defined." >&2;}
26590
26591 rm -f "$tmp/stdin"
26592 case $ac_file in
26593 -) cat "$tmp/out" && rm -f "$tmp/out";;
26594 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26595 esac \
26596 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26597 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26598 { (exit 1); exit 1; }; }
26599 ;;
26600 :H)
26601 #
26602 # CONFIG_HEADER
26603 #
26604 if test x"$ac_file" != x-; then
26605 {
26606 $as_echo "/* $configure_input */" \
26607 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26608 } >"$tmp/config.h" \
26609 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26610 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26611 { (exit 1); exit 1; }; }
26612 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26613 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26614 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26615 else
26616 rm -f "$ac_file"
26617 mv "$tmp/config.h" "$ac_file" \
26618 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26619 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26620 { (exit 1); exit 1; }; }
26621 fi
26622 else
26623 $as_echo "/* $configure_input */" \
26624 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26625 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26626 $as_echo "$as_me: error: could not create -" >&2;}
26627 { (exit 1); exit 1; }; }
26628 fi
26629 ;;
26630
26631 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26632 $as_echo "$as_me: executing $ac_file commands" >&6;}
26633 ;;
26634 esac
26635
26636
26637 case $ac_file$ac_mode in
26638 "default":C)
26639
26640 ### Make the necessary directories, if they don't exist.
26641 for dir in etc lisp ; do
26642 test -d ${dir} || mkdir ${dir}
26643 done
26644
26645 # Build src/Makefile from ${srcdir}/src/Makefile.c
26646 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
26647 # This must be done after src/config.h is built, since we rely on that file.
26648
26649 echo creating src/epaths.h
26650 ${MAKE-make} epaths-force
26651
26652 # As of 2000-11-19, newest development versions of GNU cpp preprocess
26653 # `..' to `. .' unless invoked with -traditional
26654
26655 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
26656 CPPFLAGS="$CPPFLAGS -traditional"
26657 fi
26658
26659 echo creating lib-src/Makefile
26660 ( cd lib-src
26661 rm -f junk.c junk1.c junk2.c
26662 sed -e '/start of cpp stuff/q' \
26663 < Makefile.c > junk1.c
26664 sed -e '1,/start of cpp stuff/d'\
26665 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26666 < Makefile.c > junk.c
26667 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
26668 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26669 cat junk1.c junk2.c > Makefile.new
26670 rm -f junk.c junk1.c junk2.c
26671 chmod 444 Makefile.new
26672 mv -f Makefile.new Makefile
26673 )
26674
26675 echo creating src/Makefile
26676 ( cd src
26677 rm -f junk.c junk1.c junk2.c
26678 sed -e '/start of cpp stuff/q' \
26679 < Makefile.c > junk1.c
26680 sed -e '1,/start of cpp stuff/d'\
26681 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26682 < Makefile.c > junk.c
26683 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
26684 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26685 cat junk1.c junk2.c > Makefile.new
26686 rm -f junk.c junk1.c junk2.c
26687 chmod 444 Makefile.new
26688 mv -f Makefile.new Makefile
26689 )
26690
26691 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
26692 echo creating src/.gdbinit
26693 echo source $srcdir/src/.gdbinit > src/.gdbinit
26694 fi
26695
26696 ;;
26697
26698 esac
26699 done # for ac_tag
26700
26701
26702 { (exit 0); exit 0; }
26703 _ACEOF
26704 chmod +x $CONFIG_STATUS
26705 ac_clean_files=$ac_clean_files_save
26706
26707 test $ac_write_fail = 0 ||
26708 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26709 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26710 { (exit 1); exit 1; }; }
26711
26712
26713 # configure is writing to config.log, and then calls config.status.
26714 # config.status does its own redirection, appending to config.log.
26715 # Unfortunately, on DOS this fails, as config.log is still kept open
26716 # by configure, so config.status won't be able to write to it; its
26717 # output is simply discarded. So we exec the FD to /dev/null,
26718 # effectively closing config.log, so it can be properly (re)opened and
26719 # appended to by config.status. When coming back to configure, we
26720 # need to make the FD available again.
26721 if test "$no_create" != yes; then
26722 ac_cs_success=:
26723 ac_config_status_args=
26724 test "$silent" = yes &&
26725 ac_config_status_args="$ac_config_status_args --quiet"
26726 exec 5>/dev/null
26727 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26728 exec 5>>config.log
26729 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26730 # would make configure fail if this is the last instruction.
26731 $ac_cs_success || { (exit 1); exit 1; }
26732 fi
26733 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26734 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
26735 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
26736 fi
26737
26738