]> code.delx.au - gnu-emacs/blob - configure
Fix typos in comments.
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 23.1.50.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME='emacs'
596 PACKAGE_TARNAME='emacs'
597 PACKAGE_VERSION='23.1.50'
598 PACKAGE_STRING='emacs 23.1.50'
599 PACKAGE_BUGREPORT=''
600
601 ac_unique_file="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_config_libobj_dir=src
639 ac_header_list=
640 ac_func_list=
641 ac_subst_vars='SHELL
642 PATH_SEPARATOR
643 PACKAGE_NAME
644 PACKAGE_TARNAME
645 PACKAGE_VERSION
646 PACKAGE_STRING
647 PACKAGE_BUGREPORT
648 exec_prefix
649 prefix
650 program_transform_name
651 bindir
652 sbindir
653 libexecdir
654 datarootdir
655 datadir
656 sysconfdir
657 sharedstatedir
658 localstatedir
659 includedir
660 oldincludedir
661 docdir
662 infodir
663 htmldir
664 dvidir
665 pdfdir
666 psdir
667 libdir
668 localedir
669 mandir
670 DEFS
671 ECHO_C
672 ECHO_N
673 ECHO_T
674 LIBS
675 build_alias
676 host_alias
677 target_alias
678 MAINT
679 build
680 build_cpu
681 build_vendor
682 build_os
683 host
684 host_cpu
685 host_vendor
686 host_os
687 CC
688 CFLAGS
689 LDFLAGS
690 CPPFLAGS
691 ac_ct_CC
692 EXEEXT
693 OBJEXT
694 CPP
695 GREP
696 EGREP
697 LN_S
698 INSTALL_PROGRAM
699 INSTALL_SCRIPT
700 INSTALL_DATA
701 RANLIB
702 INSTALL_INFO
703 GZIP_PROG
704 MAKEINFO
705 LIBSOUND
706 PKG_CONFIG
707 ALSA_CFLAGS
708 ALSA_LIBS
709 CFLAGS_SOUND
710 SET_MAKE
711 XMKMF
712 HAVE_XSERVER
713 RSVG_CFLAGS
714 RSVG_LIBS
715 GTK_CFLAGS
716 GTK_LIBS
717 DBUS_CFLAGS
718 DBUS_LIBS
719 FONTCONFIG_CFLAGS
720 FONTCONFIG_LIBS
721 XFT_CFLAGS
722 XFT_LIBS
723 LIBOTF_CFLAGS
724 LIBOTF_LIBS
725 M17N_FLT_CFLAGS
726 M17N_FLT_LIBS
727 FREETYPE_CFLAGS
728 FREETYPE_LIBS
729 ALLOCA
730 liblockfile
731 LIBOBJS
732 NEED_SETGID
733 KMEM_GROUP
734 GETLOADAVG_LIBS
735 GETOPT_H
736 GETOPTOBJS
737 version
738 configuration
739 canonical
740 srcdir
741 lispdir
742 locallisppath
743 lisppath
744 x_default_search_path
745 etcdir
746 archlibdir
747 bitmapdir
748 gamedir
749 gameuser
750 c_switch_system
751 c_switch_machine
752 LD_SWITCH_X_SITE
753 LD_SWITCH_X_SITE_AUX
754 C_SWITCH_X_SITE
755 X_TOOLKIT_TYPE
756 machfile
757 opsysfile
758 ns_appdir
759 ns_appbindir
760 ns_appresdir
761 ns_appsrc
762 GNUSTEP_MAKEFILES
763 GNUSTEP_SYSTEM_HEADERS
764 GNUSTEP_SYSTEM_LIBRARIES
765 GNU_OBJC_CFLAGS
766 LIB_SRC_EXTRA_INSTALLABLES
767 OTHER_FILES
768 LTLIBOBJS'
769 ac_subst_files=''
770 ac_user_opts='
771 enable_option_checking
772 with_pop
773 with_kerberos
774 with_kerberos5
775 with_hesiod
776 with_sound
777 with_sync_input
778 with_x_toolkit
779 with_xpm
780 with_jpeg
781 with_tiff
782 with_gif
783 with_png
784 with_rsvg
785 with_xft
786 with_libotf
787 with_m17n_flt
788 with_toolkit_scroll_bars
789 with_xaw3d
790 with_xim
791 with_ns
792 with_gpm
793 with_dbus
794 with_makeinfo
795 with_gtk
796 with_gcc
797 with_pkg_config_prog
798 with_gnustep_conf
799 enable_ns_self_contained
800 enable_asserts
801 enable_maintainer_mode
802 enable_locallisppath
803 enable_checking
804 enable_profiling
805 enable_largefile
806 with_x
807 '
808 ac_precious_vars='build_alias
809 host_alias
810 target_alias
811 CC
812 CFLAGS
813 LDFLAGS
814 LIBS
815 CPPFLAGS
816 CPP
817 XMKMF'
818
819
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 ac_unrecognized_opts=
824 ac_unrecognized_sep=
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
841
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
867
868 ac_prev=
869 ac_dashdash=
870 for ac_option
871 do
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
875 ac_prev=
876 continue
877 fi
878
879 case $ac_option in
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 *) ac_optarg=yes ;;
882 esac
883
884 # Accept the important Cygnus configure options, so we can diagnose typos.
885
886 case $ac_dashdash$ac_option in
887 --)
888 ac_dashdash=yes ;;
889
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
894
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
899
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
906
907 --config-cache | -C)
908 cache_file=config.cache ;;
909
910 -datadir | --datadir | --datadi | --datad)
911 ac_prev=datadir ;;
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
914
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
921
922 -disable-* | --disable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
927 { (exit 1); exit 1; }; }
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
931 *"
932 "enable_$ac_useropt"
933 "*) ;;
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
936 esac
937 eval enable_$ac_useropt=no ;;
938
939 -docdir | --docdir | --docdi | --doc | --do)
940 ac_prev=docdir ;;
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942 docdir=$ac_optarg ;;
943
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 ac_prev=dvidir ;;
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947 dvidir=$ac_optarg ;;
948
949 -enable-* | --enable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
954 { (exit 1); exit 1; }; }
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=\$ac_optarg ;;
965
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
974
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
977 with_gas=yes ;;
978
979 -help | --help | --hel | --he | -h)
980 ac_init_help=long ;;
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
985
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
990
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 ac_prev=htmldir ;;
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 | --ht=*)
995 htmldir=$ac_optarg ;;
996
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1003
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 ac_prev=infodir ;;
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1008
1009 -libdir | --libdir | --libdi | --libd)
1010 ac_prev=libdir ;;
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1013
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1020
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1025
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1032
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 ac_prev=mandir ;;
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1037
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1040 with_fp=no ;;
1041
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1044 no_create=yes ;;
1045
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 no_recursion=yes ;;
1049
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1058
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 ac_prev=prefix ;;
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1063
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1070
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1077
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1094
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 ac_prev=pdfdir ;;
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1099
1100 -psdir | --psdir | --psdi | --psd | --ps)
1101 ac_prev=psdir ;;
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 psdir=$ac_optarg ;;
1104
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 silent=yes ;;
1108
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 ac_prev=sbindir ;;
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 | --sbi=* | --sb=*)
1113 sbindir=$ac_optarg ;;
1114
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1118 | --sha | --sh)
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 | --sha=* | --sh=*)
1124 sharedstatedir=$ac_optarg ;;
1125
1126 -site | --site | --sit)
1127 ac_prev=site ;;
1128 -site=* | --site=* | --sit=*)
1129 site=$ac_optarg ;;
1130
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 ac_prev=srcdir ;;
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1135
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1142
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1147
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 verbose=yes ;;
1150
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1153
1154 -with-* | --with-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1159 { (exit 1); exit 1; }; }
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=\$ac_optarg ;;
1170
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1176 { (exit 1); exit 1; }; }
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=no ;;
1187
1188 --x)
1189 # Obsolete; use --with-x.
1190 with_x=yes ;;
1191
1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193 | --x-incl | --x-inc | --x-in | --x-i)
1194 ac_prev=x_includes ;;
1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197 x_includes=$ac_optarg ;;
1198
1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201 ac_prev=x_libraries ;;
1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204 x_libraries=$ac_optarg ;;
1205
1206 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1207 Try \`$0 --help' for more information." >&2
1208 { (exit 1); exit 1; }; }
1209 ;;
1210
1211 *=*)
1212 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1215 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1216 { (exit 1); exit 1; }; }
1217 eval $ac_envvar=\$ac_optarg
1218 export $ac_envvar ;;
1219
1220 *)
1221 # FIXME: should be removed in autoconf 3.0.
1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1226 ;;
1227
1228 esac
1229 done
1230
1231 if test -n "$ac_prev"; then
1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1234 { (exit 1); exit 1; }; }
1235 fi
1236
1237 if test -n "$ac_unrecognized_opts"; then
1238 case $enable_option_checking in
1239 no) ;;
1240 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1241 { (exit 1); exit 1; }; } ;;
1242 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243 esac
1244 fi
1245
1246 # Check all directory arguments for consistency.
1247 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248 datadir sysconfdir sharedstatedir localstatedir includedir \
1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250 libdir localedir mandir
1251 do
1252 eval ac_val=\$$ac_var
1253 # Remove trailing slashes.
1254 case $ac_val in
1255 */ )
1256 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257 eval $ac_var=\$ac_val;;
1258 esac
1259 # Be sure to have absolute directory names.
1260 case $ac_val in
1261 [\\/$]* | ?:[\\/]* ) continue;;
1262 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1263 esac
1264 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1265 { (exit 1); exit 1; }; }
1266 done
1267
1268 # There might be people who depend on the old broken behavior: `$host'
1269 # used to hold the argument of --host etc.
1270 # FIXME: To remove some day.
1271 build=$build_alias
1272 host=$host_alias
1273 target=$target_alias
1274
1275 # FIXME: To remove some day.
1276 if test "x$host_alias" != x; then
1277 if test "x$build_alias" = x; then
1278 cross_compiling=maybe
1279 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1280 If a cross compiler is detected then cross compile mode will be used." >&2
1281 elif test "x$build_alias" != "x$host_alias"; then
1282 cross_compiling=yes
1283 fi
1284 fi
1285
1286 ac_tool_prefix=
1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288
1289 test "$silent" = yes && exec 6>/dev/null
1290
1291
1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di=`ls -di .` &&
1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1296 { (exit 1); exit 1; }; }
1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1299 { (exit 1); exit 1; }; }
1300
1301
1302 # Find the source files, if location was not specified.
1303 if test -z "$srcdir"; then
1304 ac_srcdir_defaulted=yes
1305 # Try the directory containing this script, then the parent directory.
1306 ac_confdir=`$as_dirname -- "$as_myself" ||
1307 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308 X"$as_myself" : 'X\(//\)[^/]' \| \
1309 X"$as_myself" : 'X\(//\)$' \| \
1310 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311 $as_echo X"$as_myself" |
1312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\/\)[^/].*/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\).*/{
1325 s//\1/
1326 q
1327 }
1328 s/.*/./; q'`
1329 srcdir=$ac_confdir
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331 srcdir=..
1332 fi
1333 else
1334 ac_srcdir_defaulted=no
1335 fi
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1338 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1339 { (exit 1); exit 1; }; }
1340 fi
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 ac_abs_confdir=`(
1343 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1344 { (exit 1); exit 1; }; }
1345 pwd)`
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1349 fi
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1353 case $srcdir in
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 esac
1356 for ac_var in $ac_precious_vars; do
1357 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_${ac_var}_value=\$${ac_var}
1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361 done
1362
1363 #
1364 # Report the --help message.
1365 #
1366 if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1369 cat <<_ACEOF
1370 \`configure' configures emacs 23.1.50 to adapt to many kinds of systems.
1371
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE. See below for descriptions of some of the useful variables.
1376
1377 Defaults for the options are specified in brackets.
1378
1379 Configuration:
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print \`checking...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389
1390 Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 [PREFIX]
1395
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1400
1401 For better control, use the options below.
1402
1403 Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --libdir=DIR object code libraries [EPREFIX/lib]
1411 --includedir=DIR C header files [PREFIX/include]
1412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415 --infodir=DIR info documentation [DATAROOTDIR/info]
1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417 --mandir=DIR man documentation [DATAROOTDIR/man]
1418 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1419 --htmldir=DIR html documentation [DOCDIR]
1420 --dvidir=DIR dvi documentation [DOCDIR]
1421 --pdfdir=DIR pdf documentation [DOCDIR]
1422 --psdir=DIR ps documentation [DOCDIR]
1423 _ACEOF
1424
1425 cat <<\_ACEOF
1426
1427 Program names:
1428 --program-prefix=PREFIX prepend PREFIX to installed program names
1429 --program-suffix=SUFFIX append SUFFIX to installed program names
1430 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1431
1432 X features:
1433 --x-includes=DIR X include files are in DIR
1434 --x-libraries=DIR X library files are in DIR
1435
1436 System types:
1437 --build=BUILD configure for building on BUILD [guessed]
1438 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1439 _ACEOF
1440 fi
1441
1442 if test -n "$ac_init_help"; then
1443 case $ac_init_help in
1444 short | recursive ) echo "Configuration of emacs 23.1.50:";;
1445 esac
1446 cat <<\_ACEOF
1447
1448 Optional Features:
1449 --disable-option-checking ignore unrecognized --enable/--with options
1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1452 --disable-ns-self-contained
1453 disable self contained build under NeXTstep
1454 --enable-asserts compile code with asserts enabled
1455 --enable-maintainer-mode
1456 enable make rules and dependencies not useful (and
1457 sometimes confusing) to the casual installer
1458 --enable-locallisppath=PATH
1459 directories Emacs should search for lisp files
1460 specific to this site
1461 --enable-checking[=LIST]
1462 enable expensive run-time checks. With LIST, enable
1463 only specific categories of checks. Categories are:
1464 all,yes,no. Flags are: stringbytes, stringoverrun,
1465 stringfreelist, xmallocoverrun, conslist
1466 --enable-profiling build emacs with profiling support. This might not
1467 work on all platforms
1468 --disable-largefile omit support for large files
1469
1470 Optional Packages:
1471 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1472 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1473 --without-pop don't support POP mail retrieval with movemail
1474 --with-kerberos support Kerberos-authenticated POP
1475 --with-kerberos5 support Kerberos version 5 authenticated POP
1476 --with-hesiod support Hesiod to get the POP server host
1477 --without-sound don't compile with sound support
1478 --without-sync-input process async input synchronously
1479 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1480 motif, gtk, no)
1481 --without-xpm don't compile with XPM image support
1482 --without-jpeg don't compile with JPEG image support
1483 --without-tiff don't compile with TIFF image support
1484 --without-gif don't compile with GIF image support
1485 --without-png don't compile with PNG image support
1486 --without-rsvg don't compile with SVG image support
1487 --without-xft don't use XFT for anti aliased fonts
1488 --without-libotf don't use libotf for OpenType font support
1489 --without-m17n-flt don't use m17n-flt for text shaping
1490 --without-toolkit-scroll-bars
1491 don't use Motif or Xaw3d scroll bars
1492 --without-xaw3d don't use Xaw3d
1493 --without-xim don't use X11 XIM
1494 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1495 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1496 console
1497 --without-dbus don't compile with D-Bus support
1498 --without-makeinfo don't require makeinfo for building manuals
1499
1500 --with-pkg-config-prog=PATH
1501 path to pkg-config for finding GTK and librsvg
1502 --with-gnustep-conf=PATH
1503 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1504 or /etc/GNUstep/GNUstep.conf
1505 --with-x use the X Window System
1506
1507 Some influential environment variables:
1508 CC C compiler command
1509 CFLAGS C compiler flags
1510 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1511 nonstandard directory <lib dir>
1512 LIBS libraries to pass to the linker, e.g. -l<library>
1513 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1514 you have headers in a nonstandard directory <include dir>
1515 CPP C preprocessor
1516 XMKMF Path to xmkmf, Makefile generator for X Window System
1517
1518 Use these variables to override the choices made by `configure' or to help
1519 it to find libraries and programs with nonstandard names/locations.
1520
1521 _ACEOF
1522 ac_status=$?
1523 fi
1524
1525 if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528 test -d "$ac_dir" ||
1529 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530 continue
1531 ac_builddir=.
1532
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *)
1536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1548
1549 case $srcdir in
1550 .) # We are building in place.
1551 ac_srcdir=.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1558 *) # Relative name.
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1571 echo &&
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1573 else
1574 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 fi || ac_status=$?
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1577 done
1578 fi
1579
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582 cat <<\_ACEOF
1583 emacs configure 23.1.50
1584 generated by GNU Autoconf 2.62
1585
1586 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1587 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1590 _ACEOF
1591 exit
1592 fi
1593 cat >config.log <<_ACEOF
1594 This file contains any messages produced by compilers while
1595 running configure, to aid debugging if configure makes a mistake.
1596
1597 It was created by emacs $as_me 23.1.50, which was
1598 generated by GNU Autoconf 2.62. Invocation command line was
1599
1600 $ $0 $@
1601
1602 _ACEOF
1603 exec 5>>config.log
1604 {
1605 cat <<_ASUNAME
1606 ## --------- ##
1607 ## Platform. ##
1608 ## --------- ##
1609
1610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1615
1616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1617 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1618
1619 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1620 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1622 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1623 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1624 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1625 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1626
1627 _ASUNAME
1628
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 for as_dir in $PATH
1631 do
1632 IFS=$as_save_IFS
1633 test -z "$as_dir" && as_dir=.
1634 $as_echo "PATH: $as_dir"
1635 done
1636 IFS=$as_save_IFS
1637
1638 } >&5
1639
1640 cat >&5 <<_ACEOF
1641
1642
1643 ## ----------- ##
1644 ## Core tests. ##
1645 ## ----------- ##
1646
1647 _ACEOF
1648
1649
1650 # Keep a trace of the command line.
1651 # Strip out --no-create and --no-recursion so they do not pile up.
1652 # Strip out --silent because we don't want to record it for future runs.
1653 # Also quote any args containing shell meta-characters.
1654 # Make two passes to allow for proper duplicate-argument suppression.
1655 ac_configure_args=
1656 ac_configure_args0=
1657 ac_configure_args1=
1658 ac_must_keep_next=false
1659 for ac_pass in 1 2
1660 do
1661 for ac_arg
1662 do
1663 case $ac_arg in
1664 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1665 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1666 | -silent | --silent | --silen | --sile | --sil)
1667 continue ;;
1668 *\'*)
1669 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1670 esac
1671 case $ac_pass in
1672 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1673 2)
1674 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1675 if test $ac_must_keep_next = true; then
1676 ac_must_keep_next=false # Got value, back to normal.
1677 else
1678 case $ac_arg in
1679 *=* | --config-cache | -C | -disable-* | --disable-* \
1680 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1681 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1682 | -with-* | --with-* | -without-* | --without-* | --x)
1683 case "$ac_configure_args0 " in
1684 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1685 esac
1686 ;;
1687 -* ) ac_must_keep_next=true ;;
1688 esac
1689 fi
1690 ac_configure_args="$ac_configure_args '$ac_arg'"
1691 ;;
1692 esac
1693 done
1694 done
1695 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1696 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1697
1698 # When interrupted or exit'd, cleanup temporary files, and complete
1699 # config.log. We remove comments because anyway the quotes in there
1700 # would cause problems or look ugly.
1701 # WARNING: Use '\'' to represent an apostrophe within the trap.
1702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1703 trap 'exit_status=$?
1704 # Save into config.log some information that might help in debugging.
1705 {
1706 echo
1707
1708 cat <<\_ASBOX
1709 ## ---------------- ##
1710 ## Cache variables. ##
1711 ## ---------------- ##
1712 _ASBOX
1713 echo
1714 # The following way of writing the cache mishandles newlines in values,
1715 (
1716 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1717 eval ac_val=\$$ac_var
1718 case $ac_val in #(
1719 *${as_nl}*)
1720 case $ac_var in #(
1721 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1722 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1723 esac
1724 case $ac_var in #(
1725 _ | IFS | as_nl) ;; #(
1726 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1727 *) $as_unset $ac_var ;;
1728 esac ;;
1729 esac
1730 done
1731 (set) 2>&1 |
1732 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1733 *${as_nl}ac_space=\ *)
1734 sed -n \
1735 "s/'\''/'\''\\\\'\'''\''/g;
1736 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1737 ;; #(
1738 *)
1739 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1740 ;;
1741 esac |
1742 sort
1743 )
1744 echo
1745
1746 cat <<\_ASBOX
1747 ## ----------------- ##
1748 ## Output variables. ##
1749 ## ----------------- ##
1750 _ASBOX
1751 echo
1752 for ac_var in $ac_subst_vars
1753 do
1754 eval ac_val=\$$ac_var
1755 case $ac_val in
1756 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 esac
1758 $as_echo "$ac_var='\''$ac_val'\''"
1759 done | sort
1760 echo
1761
1762 if test -n "$ac_subst_files"; then
1763 cat <<\_ASBOX
1764 ## ------------------- ##
1765 ## File substitutions. ##
1766 ## ------------------- ##
1767 _ASBOX
1768 echo
1769 for ac_var in $ac_subst_files
1770 do
1771 eval ac_val=\$$ac_var
1772 case $ac_val in
1773 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774 esac
1775 $as_echo "$ac_var='\''$ac_val'\''"
1776 done | sort
1777 echo
1778 fi
1779
1780 if test -s confdefs.h; then
1781 cat <<\_ASBOX
1782 ## ----------- ##
1783 ## confdefs.h. ##
1784 ## ----------- ##
1785 _ASBOX
1786 echo
1787 cat confdefs.h
1788 echo
1789 fi
1790 test "$ac_signal" != 0 &&
1791 $as_echo "$as_me: caught signal $ac_signal"
1792 $as_echo "$as_me: exit $exit_status"
1793 } >&5
1794 rm -f core *.core core.conftest.* &&
1795 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1796 exit $exit_status
1797 ' 0
1798 for ac_signal in 1 2 13 15; do
1799 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1800 done
1801 ac_signal=0
1802
1803 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1804 rm -f -r conftest* confdefs.h
1805
1806 # Predefined preprocessor variables.
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_NAME "$PACKAGE_NAME"
1810 _ACEOF
1811
1812
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1815 _ACEOF
1816
1817
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1820 _ACEOF
1821
1822
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_STRING "$PACKAGE_STRING"
1825 _ACEOF
1826
1827
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1830 _ACEOF
1831
1832
1833 # Let the site file select an alternate cache file if it wants to.
1834 # Prefer an explicitly selected file to automatically selected ones.
1835 ac_site_file1=NONE
1836 ac_site_file2=NONE
1837 if test -n "$CONFIG_SITE"; then
1838 ac_site_file1=$CONFIG_SITE
1839 elif test "x$prefix" != xNONE; then
1840 ac_site_file1=$prefix/share/config.site
1841 ac_site_file2=$prefix/etc/config.site
1842 else
1843 ac_site_file1=$ac_default_prefix/share/config.site
1844 ac_site_file2=$ac_default_prefix/etc/config.site
1845 fi
1846 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1847 do
1848 test "x$ac_site_file" = xNONE && continue
1849 if test -r "$ac_site_file"; then
1850 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1851 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1852 sed 's/^/| /' "$ac_site_file" >&5
1853 . "$ac_site_file"
1854 fi
1855 done
1856
1857 if test -r "$cache_file"; then
1858 # Some versions of bash will fail to source /dev/null (special
1859 # files actually), so we avoid doing that.
1860 if test -f "$cache_file"; then
1861 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1862 $as_echo "$as_me: loading cache $cache_file" >&6;}
1863 case $cache_file in
1864 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1865 *) . "./$cache_file";;
1866 esac
1867 fi
1868 else
1869 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1870 $as_echo "$as_me: creating cache $cache_file" >&6;}
1871 >$cache_file
1872 fi
1873
1874 ac_header_list="$ac_header_list sys/time.h"
1875 ac_header_list="$ac_header_list unistd.h"
1876 ac_func_list="$ac_func_list alarm"
1877 # Check that the precious variables saved in the cache have kept the same
1878 # value.
1879 ac_cache_corrupted=false
1880 for ac_var in $ac_precious_vars; do
1881 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1882 eval ac_new_set=\$ac_env_${ac_var}_set
1883 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1884 eval ac_new_val=\$ac_env_${ac_var}_value
1885 case $ac_old_set,$ac_new_set in
1886 set,)
1887 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1888 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1889 ac_cache_corrupted=: ;;
1890 ,set)
1891 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1892 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1893 ac_cache_corrupted=: ;;
1894 ,);;
1895 *)
1896 if test "x$ac_old_val" != "x$ac_new_val"; then
1897 # differences in whitespace do not lead to failure.
1898 ac_old_val_w=`echo x $ac_old_val`
1899 ac_new_val_w=`echo x $ac_new_val`
1900 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1901 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1902 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1903 ac_cache_corrupted=:
1904 else
1905 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1906 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1907 eval $ac_var=\$ac_old_val
1908 fi
1909 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1910 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1911 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1912 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1913 fi;;
1914 esac
1915 # Pass precious variables to config.status.
1916 if test "$ac_new_set" = set; then
1917 case $ac_new_val in
1918 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1919 *) ac_arg=$ac_var=$ac_new_val ;;
1920 esac
1921 case " $ac_configure_args " in
1922 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1923 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1924 esac
1925 fi
1926 done
1927 if $ac_cache_corrupted; then
1928 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1929 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1930 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1931 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1932 { (exit 1); exit 1; }; }
1933 fi
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
1959 ac_ext=c
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964
1965
1966 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1967
1968
1969
1970 test "$program_prefix" != NONE &&
1971 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1972 # Use a double $ so make ignores it.
1973 test "$program_suffix" != NONE &&
1974 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1975 # Double any \ or $.
1976 # By default was `s,x,x', remove it if useless.
1977 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1978 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1979
1980
1981 lispdir='${datadir}/emacs/${version}/lisp'
1982 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1983 '${datadir}/emacs/site-lisp'
1984 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1985 etcdir='${datadir}/emacs/${version}/etc'
1986 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1987 docdir='${datadir}/emacs/${version}/etc'
1988 gamedir='${localstatedir}/games/emacs'
1989
1990 gameuser=games
1991
1992
1993
1994
1995 # Check whether --with-pop was given.
1996 if test "${with_pop+set}" = set; then
1997 withval=$with_pop;
1998 else
1999 with_pop=yes
2000 fi
2001
2002 if test "$with_pop" = yes; then
2003 cat >>confdefs.h <<\_ACEOF
2004 #define MAIL_USE_POP 1
2005 _ACEOF
2006
2007 fi
2008
2009
2010
2011 # Check whether --with-kerberos was given.
2012 if test "${with_kerberos+set}" = set; then
2013 withval=$with_kerberos;
2014 else
2015 with_kerberos=no
2016 fi
2017
2018 if test "$with_kerberos" != no; then
2019 cat >>confdefs.h <<\_ACEOF
2020 #define KERBEROS 1
2021 _ACEOF
2022
2023 fi
2024
2025
2026
2027 # Check whether --with-kerberos5 was given.
2028 if test "${with_kerberos5+set}" = set; then
2029 withval=$with_kerberos5;
2030 else
2031 with_kerberos5=no
2032 fi
2033
2034 if test "${with_kerberos5}" != no; then
2035 if test "${with_kerberos}" = no; then
2036 with_kerberos=yes
2037 cat >>confdefs.h <<\_ACEOF
2038 #define KERBEROS 1
2039 _ACEOF
2040
2041 fi
2042
2043 cat >>confdefs.h <<\_ACEOF
2044 #define KERBEROS5 1
2045 _ACEOF
2046
2047 fi
2048
2049
2050 # Check whether --with-hesiod was given.
2051 if test "${with_hesiod+set}" = set; then
2052 withval=$with_hesiod;
2053 else
2054 with_hesiod=no
2055 fi
2056
2057 if test "$with_hesiod" != no; then
2058
2059 cat >>confdefs.h <<\_ACEOF
2060 #define HESIOD 1
2061 _ACEOF
2062
2063 fi
2064
2065
2066 # Check whether --with-sound was given.
2067 if test "${with_sound+set}" = set; then
2068 withval=$with_sound;
2069 else
2070 with_sound=yes
2071 fi
2072
2073
2074
2075 # Check whether --with-sync-input was given.
2076 if test "${with_sync_input+set}" = set; then
2077 withval=$with_sync_input;
2078 else
2079 with_sync_input=yes
2080 fi
2081
2082 if test "$with_sync_input" = yes; then
2083
2084 cat >>confdefs.h <<\_ACEOF
2085 #define SYNC_INPUT 1
2086 _ACEOF
2087
2088 fi
2089
2090
2091 # Check whether --with-x-toolkit was given.
2092 if test "${with_x_toolkit+set}" = set; then
2093 withval=$with_x_toolkit; case "${withval}" in
2094 y | ye | yes ) val=gtk ;;
2095 n | no ) val=no ;;
2096 l | lu | luc | luci | lucid ) val=lucid ;;
2097 a | at | ath | athe | athen | athena ) val=athena ;;
2098 m | mo | mot | moti | motif ) val=motif ;;
2099 g | gt | gtk ) val=gtk ;;
2100 * )
2101 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2102 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2103 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2104 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2105 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2106 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2107 { (exit 1); exit 1; }; }
2108 ;;
2109 esac
2110 with_x_toolkit=$val
2111
2112 fi
2113
2114
2115
2116 # Check whether --with-xpm was given.
2117 if test "${with_xpm+set}" = set; then
2118 withval=$with_xpm;
2119 else
2120 with_xpm=yes
2121 fi
2122
2123
2124 # Check whether --with-jpeg was given.
2125 if test "${with_jpeg+set}" = set; then
2126 withval=$with_jpeg;
2127 else
2128 with_jpeg=yes
2129 fi
2130
2131
2132 # Check whether --with-tiff was given.
2133 if test "${with_tiff+set}" = set; then
2134 withval=$with_tiff;
2135 else
2136 with_tiff=yes
2137 fi
2138
2139
2140 # Check whether --with-gif was given.
2141 if test "${with_gif+set}" = set; then
2142 withval=$with_gif;
2143 else
2144 with_gif=yes
2145 fi
2146
2147
2148 # Check whether --with-png was given.
2149 if test "${with_png+set}" = set; then
2150 withval=$with_png;
2151 else
2152 with_png=yes
2153 fi
2154
2155
2156 # Check whether --with-rsvg was given.
2157 if test "${with_rsvg+set}" = set; then
2158 withval=$with_rsvg;
2159 else
2160 with_rsvg=yes
2161 fi
2162
2163
2164
2165 # Check whether --with-xft was given.
2166 if test "${with_xft+set}" = set; then
2167 withval=$with_xft;
2168 else
2169 with_xft=yes
2170 fi
2171
2172
2173 # Check whether --with-libotf was given.
2174 if test "${with_libotf+set}" = set; then
2175 withval=$with_libotf;
2176 else
2177 with_libotf=yes
2178 fi
2179
2180
2181 # Check whether --with-m17n-flt was given.
2182 if test "${with_m17n_flt+set}" = set; then
2183 withval=$with_m17n_flt;
2184 else
2185 with_m17n_flt=yes
2186 fi
2187
2188
2189
2190 # Check whether --with-toolkit-scroll-bars was given.
2191 if test "${with_toolkit_scroll_bars+set}" = set; then
2192 withval=$with_toolkit_scroll_bars;
2193 else
2194 with_toolkit_scroll_bars=yes
2195 fi
2196
2197
2198 # Check whether --with-xaw3d was given.
2199 if test "${with_xaw3d+set}" = set; then
2200 withval=$with_xaw3d;
2201 else
2202 with_xaw3d=yes
2203 fi
2204
2205
2206 # Check whether --with-xim was given.
2207 if test "${with_xim+set}" = set; then
2208 withval=$with_xim;
2209 else
2210 with_xim=yes
2211 fi
2212
2213
2214 # Check whether --with-ns was given.
2215 if test "${with_ns+set}" = set; then
2216 withval=$with_ns;
2217 else
2218 with_ns=no
2219 fi
2220
2221
2222
2223 # Check whether --with-gpm was given.
2224 if test "${with_gpm+set}" = set; then
2225 withval=$with_gpm;
2226 else
2227 with_gpm=yes
2228 fi
2229
2230
2231 # Check whether --with-dbus was given.
2232 if test "${with_dbus+set}" = set; then
2233 withval=$with_dbus;
2234 else
2235 with_dbus=yes
2236 fi
2237
2238
2239 ## For the times when you want to build Emacs but don't have
2240 ## a suitable makeinfo, and can live without the manuals.
2241
2242 # Check whether --with-makeinfo was given.
2243 if test "${with_makeinfo+set}" = set; then
2244 withval=$with_makeinfo;
2245 else
2246 with_makeinfo=yes
2247 fi
2248
2249
2250
2251 # Check whether --with-gtk was given.
2252 if test "${with_gtk+set}" = set; then
2253 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2254 specify a toolkit." >&5
2255 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2256 specify a toolkit." >&2;}
2257 { (exit 1); exit 1; }; }
2258 fi
2259
2260
2261
2262 # Check whether --with-gcc was given.
2263 if test "${with_gcc+set}" = set; then
2264 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2265 variable to specify a compiler." >&5
2266 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2267 variable to specify a compiler." >&2;}
2268 { (exit 1); exit 1; }; }
2269 fi
2270
2271
2272
2273 # Check whether --with-pkg-config-prog was given.
2274 if test "${with_pkg_config_prog+set}" = set; then
2275 withval=$with_pkg_config_prog;
2276 fi
2277
2278 if test "X${with_pkg_config_prog}" != X; then
2279 if test "${with_pkg_config_prog}" != yes; then
2280 PKG_CONFIG="${with_pkg_config_prog}"
2281 fi
2282 fi
2283
2284
2285 # Check whether --with-gnustep-conf was given.
2286 if test "${with_gnustep_conf+set}" = set; then
2287 withval=$with_gnustep_conf;
2288 fi
2289
2290 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2291 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2292 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2293 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2294
2295 # Check whether --enable-ns-self-contained was given.
2296 if test "${enable_ns_self_contained+set}" = set; then
2297 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2298 else
2299 EN_NS_SELF_CONTAINED=yes
2300 fi
2301
2302
2303 # Check whether --enable-asserts was given.
2304 if test "${enable_asserts+set}" = set; then
2305 enableval=$enable_asserts; USE_XASSERTS=$enableval
2306 else
2307 USE_XASSERTS=no
2308 fi
2309
2310
2311 # Check whether --enable-maintainer-mode was given.
2312 if test "${enable_maintainer_mode+set}" = set; then
2313 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2314 else
2315 USE_MAINTAINER_MODE=no
2316 fi
2317
2318 if test $USE_MAINTAINER_MODE = yes; then
2319 MAINT=
2320 else
2321 MAINT=#
2322 fi
2323
2324
2325 # Check whether --enable-locallisppath was given.
2326 if test "${enable_locallisppath+set}" = set; then
2327 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2328 locallisppath=
2329 elif test "${enableval}" != "yes"; then
2330 locallisppath=${enableval}
2331 fi
2332 fi
2333
2334
2335 # Check whether --enable-checking was given.
2336 if test "${enable_checking+set}" = set; then
2337 enableval=$enable_checking; ac_checking_flags="${enableval}"
2338 fi
2339
2340 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2341 for check in $ac_checking_flags
2342 do
2343 case $check in
2344 # these set all the flags to specific states
2345 yes) ac_enable_checking=1 ;;
2346 no) ac_enable_checking= ;
2347 ac_gc_check_stringbytes= ;
2348 ac_gc_check_string_overrun= ;
2349 ac_gc_check_string_free_list= ;
2350 ac_xmalloc_overrun= ;
2351 ac_gc_check_cons_list= ;;
2352 all) ac_enable_checking=1 ;
2353 ac_gc_check_stringbytes=1 ;
2354 ac_gc_check_string_overrun=1 ;
2355 ac_gc_check_string_free_list=1 ;
2356 ac_xmalloc_overrun=1 ;
2357 ac_gc_check_cons_list=1 ;;
2358 # these enable particular checks
2359 stringbytes) ac_gc_check_stringbytes=1 ;;
2360 stringoverrun) ac_gc_check_string_overrun=1 ;;
2361 stringfreelist) ac_gc_check_string_free_list=1 ;;
2362 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2363 conslist) ac_gc_check_cons_list=1 ;;
2364 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2365 $as_echo "$as_me: error: unknown check category $check" >&2;}
2366 { (exit 1); exit 1; }; } ;;
2367 esac
2368 done
2369 IFS="$ac_save_IFS"
2370
2371 if test x$ac_enable_checking != x ; then
2372
2373 cat >>confdefs.h <<\_ACEOF
2374 #define ENABLE_CHECKING 1
2375 _ACEOF
2376
2377 fi
2378 if test x$ac_gc_check_stringbytes != x ; then
2379
2380 cat >>confdefs.h <<\_ACEOF
2381 #define GC_CHECK_STRING_BYTES 1
2382 _ACEOF
2383
2384 fi
2385 if test x$ac_gc_check_stringoverrun != x ; then
2386
2387 cat >>confdefs.h <<\_ACEOF
2388 #define GC_CHECK_STRING_OVERRUN 1
2389 _ACEOF
2390
2391 fi
2392 if test x$ac_gc_check_string_free_list != x ; then
2393
2394 cat >>confdefs.h <<\_ACEOF
2395 #define GC_CHECK_STRING_FREE_LIST 1
2396 _ACEOF
2397
2398 fi
2399 if test x$ac_xmalloc_overrun != x ; then
2400
2401 cat >>confdefs.h <<\_ACEOF
2402 #define XMALLOC_OVERRUN_CHECK 1
2403 _ACEOF
2404
2405 fi
2406 if test x$ac_gc_check_cons_list != x ; then
2407
2408 cat >>confdefs.h <<\_ACEOF
2409 #define GC_CHECK_CONS_LIST 1
2410 _ACEOF
2411
2412 fi
2413
2414 # Check whether --enable-profiling was given.
2415 if test "${enable_profiling+set}" = set; then
2416 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2417 fi
2418
2419 if test x$ac_enable_profiling != x ; then
2420 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2421 PROFILING_LDFLAGS="-pg"
2422 else
2423 PROFILING_CFLAGS=
2424 PROFILING_LDFLAGS=
2425 fi
2426
2427 #### Make srcdir absolute, if it isn't already. It's important to
2428 #### avoid running the path through pwd unnecessarily, since pwd can
2429 #### give you automounter prefixes, which can go away. We do all this
2430 #### so Emacs can find its files when run uninstalled.
2431 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2432 unset CDPATH
2433 case "${srcdir}" in
2434 /* ) ;;
2435 . )
2436 ## We may be able to use the $PWD environment variable to make this
2437 ## absolute. But sometimes PWD is inaccurate.
2438 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2439 ## but that tested only for a well-formed and valid PWD,
2440 ## it did not object when PWD was well-formed and valid but just wrong.
2441 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2442 then
2443 srcdir="$PWD"
2444 else
2445 srcdir="`(cd ${srcdir}; pwd)`"
2446 fi
2447 ;;
2448 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2449 esac
2450
2451 #### Check if the source directory already has a configured system in it.
2452 if test `pwd` != `(cd ${srcdir} && pwd)` \
2453 && test -f "${srcdir}/src/config.h" ; then
2454 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2455 as a build directory right now; it has been configured in its own
2456 right. To configure in another directory as well, you MUST
2457 use GNU make. If you do not have GNU make, then you must
2458 now do \`make distclean' in ${srcdir},
2459 and then run $0 again." >&5
2460 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2461 as a build directory right now; it has been configured in its own
2462 right. To configure in another directory as well, you MUST
2463 use GNU make. If you do not have GNU make, then you must
2464 now do \`make distclean' in ${srcdir},
2465 and then run $0 again." >&2;}
2466 fi
2467
2468 #### Given the configuration name, set machfile and opsysfile to the
2469 #### names of the m/*.h and s/*.h files we should use.
2470
2471 ### Canonicalize the configuration name.
2472
2473 ac_aux_dir=
2474 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2475 if test -f "$ac_dir/install-sh"; then
2476 ac_aux_dir=$ac_dir
2477 ac_install_sh="$ac_aux_dir/install-sh -c"
2478 break
2479 elif test -f "$ac_dir/install.sh"; then
2480 ac_aux_dir=$ac_dir
2481 ac_install_sh="$ac_aux_dir/install.sh -c"
2482 break
2483 elif test -f "$ac_dir/shtool"; then
2484 ac_aux_dir=$ac_dir
2485 ac_install_sh="$ac_aux_dir/shtool install -c"
2486 break
2487 fi
2488 done
2489 if test -z "$ac_aux_dir"; then
2490 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2491 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2492 { (exit 1); exit 1; }; }
2493 fi
2494
2495 # These three variables are undocumented and unsupported,
2496 # and are intended to be withdrawn in a future Autoconf release.
2497 # They can cause serious problems if a builder's source tree is in a directory
2498 # whose full name contains unusual characters.
2499 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2500 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2501 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2502
2503
2504 # Make sure we can run config.sub.
2505 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2506 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2507 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2508 { (exit 1); exit 1; }; }
2509
2510 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2511 $as_echo_n "checking build system type... " >&6; }
2512 if test "${ac_cv_build+set}" = set; then
2513 $as_echo_n "(cached) " >&6
2514 else
2515 ac_build_alias=$build_alias
2516 test "x$ac_build_alias" = x &&
2517 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2518 test "x$ac_build_alias" = x &&
2519 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2520 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2521 { (exit 1); exit 1; }; }
2522 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2523 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2524 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2525 { (exit 1); exit 1; }; }
2526
2527 fi
2528 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2529 $as_echo "$ac_cv_build" >&6; }
2530 case $ac_cv_build in
2531 *-*-*) ;;
2532 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2533 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2534 { (exit 1); exit 1; }; };;
2535 esac
2536 build=$ac_cv_build
2537 ac_save_IFS=$IFS; IFS='-'
2538 set x $ac_cv_build
2539 shift
2540 build_cpu=$1
2541 build_vendor=$2
2542 shift; shift
2543 # Remember, the first character of IFS is used to create $*,
2544 # except with old shells:
2545 build_os=$*
2546 IFS=$ac_save_IFS
2547 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2548
2549
2550 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2551 $as_echo_n "checking host system type... " >&6; }
2552 if test "${ac_cv_host+set}" = set; then
2553 $as_echo_n "(cached) " >&6
2554 else
2555 if test "x$host_alias" = x; then
2556 ac_cv_host=$ac_cv_build
2557 else
2558 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2559 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2560 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2561 { (exit 1); exit 1; }; }
2562 fi
2563
2564 fi
2565 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2566 $as_echo "$ac_cv_host" >&6; }
2567 case $ac_cv_host in
2568 *-*-*) ;;
2569 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2570 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2571 { (exit 1); exit 1; }; };;
2572 esac
2573 host=$ac_cv_host
2574 ac_save_IFS=$IFS; IFS='-'
2575 set x $ac_cv_host
2576 shift
2577 host_cpu=$1
2578 host_vendor=$2
2579 shift; shift
2580 # Remember, the first character of IFS is used to create $*,
2581 # except with old shells:
2582 host_os=$*
2583 IFS=$ac_save_IFS
2584 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2585
2586
2587 canonical=$host
2588 configuration=${host_alias-${build_alias-$host}}
2589
2590
2591
2592 ### If you add support for a new configuration, add code to this
2593 ### switch statement to recognize your configuration name and select
2594 ### the appropriate operating system and machine description files.
2595
2596 ### You would hope that you could choose an m/*.h file pretty much
2597 ### based on the machine portion of the configuration name, and an s-
2598 ### file based on the operating system portion. However, it turns out
2599 ### that each m/*.h file is pretty manufacturer-specific - for
2600 ### example mips.h is MIPS
2601 ### So we basically have to have a special case for each
2602 ### configuration name.
2603 ###
2604 ### As far as handling version numbers on operating systems is
2605 ### concerned, make sure things will fail in a fixable way. If
2606 ### /etc/MACHINES doesn't say anything about version numbers, be
2607 ### prepared to handle anything reasonably. If version numbers
2608 ### matter, be sure /etc/MACHINES says something about it.
2609 ###
2610 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2611 ### "System V Release 4"; he writes, "The old convention encouraged
2612 ### confusion between `system' and `release' levels'."
2613
2614 machine='' opsys='' unported=no
2615 case "${canonical}" in
2616
2617 ## FreeBSD ports
2618 *-*-freebsd* )
2619 opsys=freebsd
2620 case "${canonical}" in
2621 alpha*-*-freebsd*) machine=alpha ;;
2622 arm*-*-freebsd*) machine=arm ;;
2623 ia64-*-freebsd*) machine=ia64 ;;
2624 sparc-*-freebsd*) machine=sparc ;;
2625 sparc64-*-freebsd*) machine=sparc ;;
2626 powerpc-*-freebsd*) machine=macppc ;;
2627 i[3456]86-*-freebsd*) machine=intel386 ;;
2628 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2629 esac
2630 ;;
2631
2632 ## FreeBSD kernel + glibc based userland
2633 *-*-kfreebsd*gnu* )
2634 opsys=gnu-kfreebsd
2635 case "${canonical}" in
2636 alpha*-*-kfreebsd*) machine=alpha ;;
2637 ia64-*-kfreebsd*) machine=ia64 ;;
2638 sparc-*-kfreebsd*) machine=sparc ;;
2639 sparc64-*-kfreebsd*) machine=sparc ;;
2640 powerpc-*-kfreebsd*) machine=macppc ;;
2641 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2642 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2643 esac
2644 ;;
2645
2646 ## NetBSD ports
2647 *-*-netbsd* )
2648 opsys=netbsd
2649 if test -f /usr/lib/crti.o; then
2650
2651 cat >>confdefs.h <<\_ACEOF
2652 #define HAVE_CRTIN /**/
2653 _ACEOF
2654
2655 fi
2656
2657 case "${canonical}" in
2658 alpha*-*-netbsd*) machine=alpha ;;
2659 i[3456]86-*-netbsd*) machine=intel386 ;;
2660 mips-*-netbsd*) machine=mips ;;
2661 mipsel-*-netbsd*) machine=mips ;;
2662 mipseb-*-netbsd*) machine=mips ;;
2663 powerpc-*-netbsd*) machine=macppc ;;
2664 sparc*-*-netbsd*) machine=sparc ;;
2665 vax-*-netbsd*) machine=vax ;;
2666 arm-*-netbsd*) machine=arm ;;
2667 x86_64-*-netbsd*) machine=amdx86-64 ;;
2668 hppa-*-netbsd*) machine=hp800 ;;
2669 m68k-*-netbsd*) machine=m68k ;;
2670 esac
2671 ;;
2672
2673 ## OpenBSD ports
2674 *-*-openbsd* )
2675 opsys=openbsd
2676 case "${canonical}" in
2677 alpha*-*-openbsd*) machine=alpha ;;
2678 arm-*-openbsd*) machine=arm ;;
2679 i386-*-openbsd*) machine=intel386 ;;
2680 powerpc-*-openbsd*) machine=macppc ;;
2681 sparc*-*-openbsd*) machine=sparc ;;
2682 vax-*-openbsd*) machine=vax ;;
2683 x86_64-*-openbsd*) machine=amdx86-64 ;;
2684 hppa-*-openbsd*) machine=hp800 ;;
2685 esac
2686 ;;
2687
2688 ## LynxOS ports
2689 *-*-lynxos* )
2690 opsys=lynxos
2691 case "${canonical}" in
2692 i[3456]86-*-lynxos*) machine=intel386 ;;
2693 powerpc-*-lynxos*) machine=powerpc ;;
2694 esac
2695 ;;
2696
2697 alpha*-*-linux-gnu* )
2698 machine=alpha opsys=gnu-linux
2699 ;;
2700
2701 arm*-*-linux-gnu* )
2702 machine=arm opsys=gnu-linux
2703 ;;
2704
2705 ## Apple Darwin / Mac OS X
2706 *-apple-darwin* )
2707 case "${canonical}" in
2708 i[3456]86-* ) machine=intel386 ;;
2709 powerpc-* ) machine=macppc ;;
2710 * ) unported=yes ;;
2711 esac
2712 opsys=darwin
2713 # Define CPP as follows to make autoconf work correctly.
2714 CPP="${CC-cc} -E -no-cpp-precomp"
2715 # Use fink packages if available.
2716 if test -d /sw/include && test -d /sw/lib; then
2717 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2718 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2719 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2720 fi
2721 ;;
2722
2723 ## HP 9000 series 700 and 800, running HP/UX
2724 hppa*-hp-hpux10.2* )
2725 machine=hp800 opsys=hpux10-20
2726 ;;
2727 hppa*-hp-hpux1[1-9]* )
2728 machine=hp800 opsys=hpux11
2729 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2730 ;;
2731
2732 hppa*-*-linux-gnu* )
2733 machine=hp800 opsys=gnu-linux
2734 ;;
2735
2736 ## IBM machines
2737 s390-*-linux-gnu* )
2738 machine=ibms390 opsys=gnu-linux
2739 ;;
2740 s390x-*-linux-gnu* )
2741 machine=ibms390x opsys=gnu-linux
2742 ;;
2743 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2744 machine=ibmrs6000 opsys=aix4-2
2745 ;;
2746 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2747 machine=ibmrs6000 opsys=aix4-2
2748 ;;
2749 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2750 machine=ibmrs6000 opsys=aix4-2
2751 ;;
2752 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2753 machine=ibmrs6000 opsys=aix4-2
2754 ;;
2755
2756 ## Macintosh PowerPC
2757 powerpc*-*-linux-gnu* )
2758 machine=macppc opsys=gnu-linux
2759 ;;
2760
2761 ## Silicon Graphics machines
2762 ## Iris 4D
2763 mips-sgi-irix6.5 )
2764 machine=iris4d opsys=irix6-5
2765 # Without defining _LANGUAGE_C, things get masked out in the headers
2766 # so that, for instance, grepping for `free' in stdlib.h fails and
2767 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2768 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2769 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2770 ;;
2771
2772 ## Suns
2773 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2774 machine=sparc opsys=gnu-linux
2775 ;;
2776
2777 *-sun-solaris* \
2778 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2779 | x86_64-*-solaris2* | x86_64-*-sunos5* \
2780 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
2781 case "${canonical}" in
2782 i[3456]86-*-* ) machine=intel386 ;;
2783 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2784 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2785 sparc* ) machine=sparc ;;
2786 * ) unported=yes ;;
2787 esac
2788 case "${canonical}" in
2789 *-sunos5.3* | *-solaris2.3* )
2790 opsys=sol2-3
2791 NON_GNU_CPP=/usr/ccs/lib/cpp
2792 ;;
2793 *-sunos5.4* | *-solaris2.4* )
2794 opsys=sol2-4
2795 NON_GNU_CPP=/usr/ccs/lib/cpp
2796 RANLIB="ar -ts"
2797 ;;
2798 *-sunos5.5* | *-solaris2.5* )
2799 opsys=sol2-5
2800 NON_GNU_CPP=/usr/ccs/lib/cpp
2801 RANLIB="ar -ts"
2802 ;;
2803 *-sunos5.6* | *-solaris2.6* )
2804 opsys=sol2-6
2805 NON_GNU_CPP=/usr/ccs/lib/cpp
2806 RANLIB="ar -ts"
2807 ;;
2808 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2809 opsys=sol2-6
2810 emacs_check_sunpro_c=yes
2811 NON_GNU_CPP=/usr/ccs/lib/cpp
2812 ;;
2813 *-sunos5* | *-solaris* )
2814 opsys=sol2-10
2815 emacs_check_sunpro_c=yes
2816 NON_GNU_CPP=/usr/ccs/lib/cpp
2817 ;;
2818 esac
2819 ## Watch out for a compiler that we know will not work.
2820 case "${canonical}" in
2821 *-solaris* | *-sunos5* )
2822 if [ "x$CC" = x/usr/ucb/cc ]; then
2823 ## /usr/ucb/cc doesn't work;
2824 ## we should find some other compiler that does work.
2825 unset CC
2826 fi
2827 ;;
2828 *) ;;
2829 esac
2830 ;;
2831
2832 ## Vaxen.
2833 vax-dec-* )
2834 machine=vax
2835 case "${canonical}" in
2836 *-vms* ) opsys=vms ;;
2837 * ) unported=yes
2838 esac
2839 ;;
2840
2841 ## IA-64
2842 ia64*-*-linux* )
2843 machine=ia64 opsys=gnu-linux
2844 ;;
2845
2846 ## Intel 386 machines where we don't care about the manufacturer
2847 i[3456]86-*-* )
2848 machine=intel386
2849 case "${canonical}" in
2850 *-cygwin ) opsys=cygwin ;;
2851 *-darwin* ) opsys=darwin
2852 CPP="${CC-cc} -E -no-cpp-precomp"
2853 ;;
2854 *-linux-gnu* ) opsys=gnu-linux ;;
2855 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2856 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2857 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2858 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2859 esac
2860 ;;
2861
2862 ## m68k Linux-based GNU system
2863 m68k-*-linux-gnu* )
2864 machine=m68k opsys=gnu-linux
2865 ;;
2866
2867 ## Mips Linux-based GNU system
2868 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2869 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2870 machine=mips opsys=gnu-linux
2871 ;;
2872
2873 ## AMD x86-64 Linux-based GNU system
2874 x86_64-*-linux-gnu* )
2875 machine=amdx86-64 opsys=gnu-linux
2876 ;;
2877
2878 ## Tensilica Xtensa Linux-based GNU system
2879 xtensa*-*-linux-gnu* )
2880 machine=xtensa opsys=gnu-linux
2881 ;;
2882
2883 ## SuperH Linux-based GNU system
2884 sh[34]*-*-linux-gnu* )
2885 machine=sh3 opsys=gnu-linux
2886 ;;
2887
2888 * )
2889 unported=yes
2890 ;;
2891 esac
2892
2893 ### If the code above didn't choose an operating system, just choose
2894 ### an operating system based on the configuration name. You really
2895 ### only want to use this when you have no idea what the right
2896 ### operating system is; if you know what operating systems a machine
2897 ### runs, it's cleaner to make it explicit in the case statement
2898 ### above.
2899 if test x"${opsys}" = x; then
2900 case "${canonical}" in
2901 *-gnu* ) opsys=gnu ;;
2902 *-sysv4.2uw* ) opsys=unixware ;;
2903 *-sysv5uw* ) opsys=unixware ;;
2904 *-sysv5OpenUNIX* ) opsys=unixware ;;
2905 *-sysv4.1* | *-sysvr4.1* )
2906 NON_GNU_CPP=/usr/lib/cpp
2907 opsys=usg5-4 ;;
2908 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2909 if [ x$NON_GNU_CPP = x ]; then
2910 if [ -f /usr/ccs/lib/cpp ]; then
2911 NON_GNU_CPP=/usr/ccs/lib/cpp
2912 else
2913 NON_GNU_CPP=/lib/cpp
2914 fi
2915 fi
2916 opsys=usg5-4-2 ;;
2917 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2918 * )
2919 unported=yes
2920 ;;
2921 esac
2922 fi
2923
2924
2925
2926 if test $unported = yes; then
2927 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2928 Check \`etc/MACHINES' for recognized configuration names." >&5
2929 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2930 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2931 { (exit 1); exit 1; }; }
2932 fi
2933
2934 machfile="m/${machine}.h"
2935 opsysfile="s/${opsys}.h"
2936
2937
2938 #### Choose a compiler.
2939 test -n "$CC" && cc_specified=yes
2940
2941 # Save the value of CFLAGS that the user specified.
2942 SPECIFIED_CFLAGS="$CFLAGS"
2943
2944 ac_ext=c
2945 ac_cpp='$CPP $CPPFLAGS'
2946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2949 if test -n "$ac_tool_prefix"; then
2950 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2951 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2952 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if test "${ac_cv_prog_CC+set}" = set; then
2955 $as_echo_n "(cached) " >&6
2956 else
2957 if test -n "$CC"; then
2958 ac_cv_prog_CC="$CC" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2962 do
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2968 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2970 fi
2971 done
2972 done
2973 IFS=$as_save_IFS
2974
2975 fi
2976 fi
2977 CC=$ac_cv_prog_CC
2978 if test -n "$CC"; then
2979 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2980 $as_echo "$CC" >&6; }
2981 else
2982 { $as_echo "$as_me:$LINENO: result: no" >&5
2983 $as_echo "no" >&6; }
2984 fi
2985
2986
2987 fi
2988 if test -z "$ac_cv_prog_CC"; then
2989 ac_ct_CC=$CC
2990 # Extract the first word of "gcc", so it can be a program name with args.
2991 set dummy gcc; ac_word=$2
2992 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2995 $as_echo_n "(cached) " >&6
2996 else
2997 if test -n "$ac_ct_CC"; then
2998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2999 else
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3002 do
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007 ac_cv_prog_ac_ct_CC="gcc"
3008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 break 2
3010 fi
3011 done
3012 done
3013 IFS=$as_save_IFS
3014
3015 fi
3016 fi
3017 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3018 if test -n "$ac_ct_CC"; then
3019 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3020 $as_echo "$ac_ct_CC" >&6; }
3021 else
3022 { $as_echo "$as_me:$LINENO: result: no" >&5
3023 $as_echo "no" >&6; }
3024 fi
3025
3026 if test "x$ac_ct_CC" = x; then
3027 CC=""
3028 else
3029 case $cross_compiling:$ac_tool_warned in
3030 yes:)
3031 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3032 whose name does not start with the host triplet. If you think this
3033 configuration is useful to you, please write to autoconf@gnu.org." >&5
3034 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3035 whose name does not start with the host triplet. If you think this
3036 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3037 ac_tool_warned=yes ;;
3038 esac
3039 CC=$ac_ct_CC
3040 fi
3041 else
3042 CC="$ac_cv_prog_CC"
3043 fi
3044
3045 if test -z "$CC"; then
3046 if test -n "$ac_tool_prefix"; then
3047 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3048 set dummy ${ac_tool_prefix}cc; ac_word=$2
3049 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if test "${ac_cv_prog_CC+set}" = set; then
3052 $as_echo_n "(cached) " >&6
3053 else
3054 if test -n "$CC"; then
3055 ac_cv_prog_CC="$CC" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3059 do
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064 ac_cv_prog_CC="${ac_tool_prefix}cc"
3065 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 break 2
3067 fi
3068 done
3069 done
3070 IFS=$as_save_IFS
3071
3072 fi
3073 fi
3074 CC=$ac_cv_prog_CC
3075 if test -n "$CC"; then
3076 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3077 $as_echo "$CC" >&6; }
3078 else
3079 { $as_echo "$as_me:$LINENO: result: no" >&5
3080 $as_echo "no" >&6; }
3081 fi
3082
3083
3084 fi
3085 fi
3086 if test -z "$CC"; then
3087 # Extract the first word of "cc", so it can be a program name with args.
3088 set dummy cc; ac_word=$2
3089 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if test "${ac_cv_prog_CC+set}" = set; then
3092 $as_echo_n "(cached) " >&6
3093 else
3094 if test -n "$CC"; then
3095 ac_cv_prog_CC="$CC" # Let the user override the test.
3096 else
3097 ac_prog_rejected=no
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3100 do
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3106 ac_prog_rejected=yes
3107 continue
3108 fi
3109 ac_cv_prog_CC="cc"
3110 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 break 2
3112 fi
3113 done
3114 done
3115 IFS=$as_save_IFS
3116
3117 if test $ac_prog_rejected = yes; then
3118 # We found a bogon in the path, so make sure we never use it.
3119 set dummy $ac_cv_prog_CC
3120 shift
3121 if test $# != 0; then
3122 # We chose a different compiler from the bogus one.
3123 # However, it has the same basename, so the bogon will be chosen
3124 # first if we set CC to just the basename; use the full file name.
3125 shift
3126 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3127 fi
3128 fi
3129 fi
3130 fi
3131 CC=$ac_cv_prog_CC
3132 if test -n "$CC"; then
3133 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3134 $as_echo "$CC" >&6; }
3135 else
3136 { $as_echo "$as_me:$LINENO: result: no" >&5
3137 $as_echo "no" >&6; }
3138 fi
3139
3140
3141 fi
3142 if test -z "$CC"; then
3143 if test -n "$ac_tool_prefix"; then
3144 for ac_prog in cl.exe
3145 do
3146 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3147 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3148 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if test "${ac_cv_prog_CC+set}" = set; then
3151 $as_echo_n "(cached) " >&6
3152 else
3153 if test -n "$CC"; then
3154 ac_cv_prog_CC="$CC" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3158 do
3159 IFS=$as_save_IFS
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3163 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3164 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 break 2
3166 fi
3167 done
3168 done
3169 IFS=$as_save_IFS
3170
3171 fi
3172 fi
3173 CC=$ac_cv_prog_CC
3174 if test -n "$CC"; then
3175 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3176 $as_echo "$CC" >&6; }
3177 else
3178 { $as_echo "$as_me:$LINENO: result: no" >&5
3179 $as_echo "no" >&6; }
3180 fi
3181
3182
3183 test -n "$CC" && break
3184 done
3185 fi
3186 if test -z "$CC"; then
3187 ac_ct_CC=$CC
3188 for ac_prog in cl.exe
3189 do
3190 # Extract the first word of "$ac_prog", so it can be a program name with args.
3191 set dummy $ac_prog; ac_word=$2
3192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3195 $as_echo_n "(cached) " >&6
3196 else
3197 if test -n "$ac_ct_CC"; then
3198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203 IFS=$as_save_IFS
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_ac_ct_CC="$ac_prog"
3208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 break 2
3210 fi
3211 done
3212 done
3213 IFS=$as_save_IFS
3214
3215 fi
3216 fi
3217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3218 if test -n "$ac_ct_CC"; then
3219 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3220 $as_echo "$ac_ct_CC" >&6; }
3221 else
3222 { $as_echo "$as_me:$LINENO: result: no" >&5
3223 $as_echo "no" >&6; }
3224 fi
3225
3226
3227 test -n "$ac_ct_CC" && break
3228 done
3229
3230 if test "x$ac_ct_CC" = x; then
3231 CC=""
3232 else
3233 case $cross_compiling:$ac_tool_warned in
3234 yes:)
3235 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3236 whose name does not start with the host triplet. If you think this
3237 configuration is useful to you, please write to autoconf@gnu.org." >&5
3238 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3239 whose name does not start with the host triplet. If you think this
3240 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3241 ac_tool_warned=yes ;;
3242 esac
3243 CC=$ac_ct_CC
3244 fi
3245 fi
3246
3247 fi
3248
3249
3250 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3251 See \`config.log' for more details." >&5
3252 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3253 See \`config.log' for more details." >&2;}
3254 { (exit 1); exit 1; }; }
3255
3256 # Provide some information about the compiler.
3257 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3258 set X $ac_compile
3259 ac_compiler=$2
3260 { (ac_try="$ac_compiler --version >&5"
3261 case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264 esac
3265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3266 $as_echo "$ac_try_echo") >&5
3267 (eval "$ac_compiler --version >&5") 2>&5
3268 ac_status=$?
3269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }
3271 { (ac_try="$ac_compiler -v >&5"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3277 $as_echo "$ac_try_echo") >&5
3278 (eval "$ac_compiler -v >&5") 2>&5
3279 ac_status=$?
3280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }
3282 { (ac_try="$ac_compiler -V >&5"
3283 case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286 esac
3287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3288 $as_echo "$ac_try_echo") >&5
3289 (eval "$ac_compiler -V >&5") 2>&5
3290 ac_status=$?
3291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }
3293
3294 cat >conftest.$ac_ext <<_ACEOF
3295 /* confdefs.h. */
3296 _ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3300
3301 int
3302 main ()
3303 {
3304
3305 ;
3306 return 0;
3307 }
3308 _ACEOF
3309 ac_clean_files_save=$ac_clean_files
3310 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3311 # Try to create an executable without -o first, disregard a.out.
3312 # It will help us diagnose broken compilers, and finding out an intuition
3313 # of exeext.
3314 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3315 $as_echo_n "checking for C compiler default output file name... " >&6; }
3316 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3317
3318 # The possible output files:
3319 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3320
3321 ac_rmfiles=
3322 for ac_file in $ac_files
3323 do
3324 case $ac_file in
3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3326 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3327 esac
3328 done
3329 rm -f $ac_rmfiles
3330
3331 if { (ac_try="$ac_link_default"
3332 case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335 esac
3336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3337 $as_echo "$ac_try_echo") >&5
3338 (eval "$ac_link_default") 2>&5
3339 ac_status=$?
3340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; then
3342 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3343 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3344 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3345 # so that the user can short-circuit this test for compilers unknown to
3346 # Autoconf.
3347 for ac_file in $ac_files ''
3348 do
3349 test -f "$ac_file" || continue
3350 case $ac_file in
3351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3352 ;;
3353 [ab].out )
3354 # We found the default executable, but exeext='' is most
3355 # certainly right.
3356 break;;
3357 *.* )
3358 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3359 then :; else
3360 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3361 fi
3362 # We set ac_cv_exeext here because the later test for it is not
3363 # safe: cross compilers may not add the suffix if given an `-o'
3364 # argument, so we may need to know it at that point already.
3365 # Even if this section looks crufty: it has the advantage of
3366 # actually working.
3367 break;;
3368 * )
3369 break;;
3370 esac
3371 done
3372 test "$ac_cv_exeext" = no && ac_cv_exeext=
3373
3374 else
3375 ac_file=''
3376 fi
3377
3378 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3379 $as_echo "$ac_file" >&6; }
3380 if test -z "$ac_file"; then
3381 $as_echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3383
3384 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3385 See \`config.log' for more details." >&5
3386 $as_echo "$as_me: error: C compiler cannot create executables
3387 See \`config.log' for more details." >&2;}
3388 { (exit 77); exit 77; }; }
3389 fi
3390
3391 ac_exeext=$ac_cv_exeext
3392
3393 # Check that the compiler produces executables we can run. If not, either
3394 # the compiler is broken, or we cross compile.
3395 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3396 $as_echo_n "checking whether the C compiler works... " >&6; }
3397 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3398 # If not cross compiling, check that we can run a simple program.
3399 if test "$cross_compiling" != yes; then
3400 if { ac_try='./$ac_file'
3401 { (case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404 esac
3405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3406 $as_echo "$ac_try_echo") >&5
3407 (eval "$ac_try") 2>&5
3408 ac_status=$?
3409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; }; then
3411 cross_compiling=no
3412 else
3413 if test "$cross_compiling" = maybe; then
3414 cross_compiling=yes
3415 else
3416 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3417 If you meant to cross compile, use \`--host'.
3418 See \`config.log' for more details." >&5
3419 $as_echo "$as_me: error: cannot run C compiled programs.
3420 If you meant to cross compile, use \`--host'.
3421 See \`config.log' for more details." >&2;}
3422 { (exit 1); exit 1; }; }
3423 fi
3424 fi
3425 fi
3426 { $as_echo "$as_me:$LINENO: result: yes" >&5
3427 $as_echo "yes" >&6; }
3428
3429 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3430 ac_clean_files=$ac_clean_files_save
3431 # Check that the compiler produces executables we can run. If not, either
3432 # the compiler is broken, or we cross compile.
3433 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3434 $as_echo_n "checking whether we are cross compiling... " >&6; }
3435 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3436 $as_echo "$cross_compiling" >&6; }
3437
3438 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3439 $as_echo_n "checking for suffix of executables... " >&6; }
3440 if { (ac_try="$ac_link"
3441 case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3446 $as_echo "$ac_try_echo") >&5
3447 (eval "$ac_link") 2>&5
3448 ac_status=$?
3449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; then
3451 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3452 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3453 # work properly (i.e., refer to `conftest.exe'), while it won't with
3454 # `rm'.
3455 for ac_file in conftest.exe conftest conftest.*; do
3456 test -f "$ac_file" || continue
3457 case $ac_file in
3458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3459 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3460 break;;
3461 * ) break;;
3462 esac
3463 done
3464 else
3465 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3466 See \`config.log' for more details." >&5
3467 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3468 See \`config.log' for more details." >&2;}
3469 { (exit 1); exit 1; }; }
3470 fi
3471
3472 rm -f conftest$ac_cv_exeext
3473 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3474 $as_echo "$ac_cv_exeext" >&6; }
3475
3476 rm -f conftest.$ac_ext
3477 EXEEXT=$ac_cv_exeext
3478 ac_exeext=$EXEEXT
3479 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3480 $as_echo_n "checking for suffix of object files... " >&6; }
3481 if test "${ac_cv_objext+set}" = set; then
3482 $as_echo_n "(cached) " >&6
3483 else
3484 cat >conftest.$ac_ext <<_ACEOF
3485 /* confdefs.h. */
3486 _ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3490
3491 int
3492 main ()
3493 {
3494
3495 ;
3496 return 0;
3497 }
3498 _ACEOF
3499 rm -f conftest.o conftest.obj
3500 if { (ac_try="$ac_compile"
3501 case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3504 esac
3505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3506 $as_echo "$ac_try_echo") >&5
3507 (eval "$ac_compile") 2>&5
3508 ac_status=$?
3509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; then
3511 for ac_file in conftest.o conftest.obj conftest.*; do
3512 test -f "$ac_file" || continue;
3513 case $ac_file in
3514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3515 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3516 break;;
3517 esac
3518 done
3519 else
3520 $as_echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3522
3523 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3524 See \`config.log' for more details." >&5
3525 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3526 See \`config.log' for more details." >&2;}
3527 { (exit 1); exit 1; }; }
3528 fi
3529
3530 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3531 fi
3532 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3533 $as_echo "$ac_cv_objext" >&6; }
3534 OBJEXT=$ac_cv_objext
3535 ac_objext=$OBJEXT
3536 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3537 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3538 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3539 $as_echo_n "(cached) " >&6
3540 else
3541 cat >conftest.$ac_ext <<_ACEOF
3542 /* confdefs.h. */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3547
3548 int
3549 main ()
3550 {
3551 #ifndef __GNUC__
3552 choke me
3553 #endif
3554
3555 ;
3556 return 0;
3557 }
3558 _ACEOF
3559 rm -f conftest.$ac_objext
3560 if { (ac_try="$ac_compile"
3561 case "(($ac_try" in
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3564 esac
3565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3566 $as_echo "$ac_try_echo") >&5
3567 (eval "$ac_compile") 2>conftest.er1
3568 ac_status=$?
3569 grep -v '^ *+' conftest.er1 >conftest.err
3570 rm -f conftest.er1
3571 cat conftest.err >&5
3572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } && {
3574 test -z "$ac_c_werror_flag" ||
3575 test ! -s conftest.err
3576 } && test -s conftest.$ac_objext; then
3577 ac_compiler_gnu=yes
3578 else
3579 $as_echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3581
3582 ac_compiler_gnu=no
3583 fi
3584
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3587
3588 fi
3589 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3590 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3591 if test $ac_compiler_gnu = yes; then
3592 GCC=yes
3593 else
3594 GCC=
3595 fi
3596 ac_test_CFLAGS=${CFLAGS+set}
3597 ac_save_CFLAGS=$CFLAGS
3598 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3599 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3600 if test "${ac_cv_prog_cc_g+set}" = set; then
3601 $as_echo_n "(cached) " >&6
3602 else
3603 ac_save_c_werror_flag=$ac_c_werror_flag
3604 ac_c_werror_flag=yes
3605 ac_cv_prog_cc_g=no
3606 CFLAGS="-g"
3607 cat >conftest.$ac_ext <<_ACEOF
3608 /* confdefs.h. */
3609 _ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3613
3614 int
3615 main ()
3616 {
3617
3618 ;
3619 return 0;
3620 }
3621 _ACEOF
3622 rm -f conftest.$ac_objext
3623 if { (ac_try="$ac_compile"
3624 case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3627 esac
3628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3629 $as_echo "$ac_try_echo") >&5
3630 (eval "$ac_compile") 2>conftest.er1
3631 ac_status=$?
3632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
3634 cat conftest.err >&5
3635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } && {
3637 test -z "$ac_c_werror_flag" ||
3638 test ! -s conftest.err
3639 } && test -s conftest.$ac_objext; then
3640 ac_cv_prog_cc_g=yes
3641 else
3642 $as_echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3644
3645 CFLAGS=""
3646 cat >conftest.$ac_ext <<_ACEOF
3647 /* confdefs.h. */
3648 _ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3652
3653 int
3654 main ()
3655 {
3656
3657 ;
3658 return 0;
3659 }
3660 _ACEOF
3661 rm -f conftest.$ac_objext
3662 if { (ac_try="$ac_compile"
3663 case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666 esac
3667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3668 $as_echo "$ac_try_echo") >&5
3669 (eval "$ac_compile") 2>conftest.er1
3670 ac_status=$?
3671 grep -v '^ *+' conftest.er1 >conftest.err
3672 rm -f conftest.er1
3673 cat conftest.err >&5
3674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } && {
3676 test -z "$ac_c_werror_flag" ||
3677 test ! -s conftest.err
3678 } && test -s conftest.$ac_objext; then
3679 :
3680 else
3681 $as_echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3683
3684 ac_c_werror_flag=$ac_save_c_werror_flag
3685 CFLAGS="-g"
3686 cat >conftest.$ac_ext <<_ACEOF
3687 /* confdefs.h. */
3688 _ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3692
3693 int
3694 main ()
3695 {
3696
3697 ;
3698 return 0;
3699 }
3700 _ACEOF
3701 rm -f conftest.$ac_objext
3702 if { (ac_try="$ac_compile"
3703 case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3706 esac
3707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3708 $as_echo "$ac_try_echo") >&5
3709 (eval "$ac_compile") 2>conftest.er1
3710 ac_status=$?
3711 grep -v '^ *+' conftest.er1 >conftest.err
3712 rm -f conftest.er1
3713 cat conftest.err >&5
3714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } && {
3716 test -z "$ac_c_werror_flag" ||
3717 test ! -s conftest.err
3718 } && test -s conftest.$ac_objext; then
3719 ac_cv_prog_cc_g=yes
3720 else
3721 $as_echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3723
3724
3725 fi
3726
3727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 fi
3729
3730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3731 fi
3732
3733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 ac_c_werror_flag=$ac_save_c_werror_flag
3735 fi
3736 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3737 $as_echo "$ac_cv_prog_cc_g" >&6; }
3738 if test "$ac_test_CFLAGS" = set; then
3739 CFLAGS=$ac_save_CFLAGS
3740 elif test $ac_cv_prog_cc_g = yes; then
3741 if test "$GCC" = yes; then
3742 CFLAGS="-g -O2"
3743 else
3744 CFLAGS="-g"
3745 fi
3746 else
3747 if test "$GCC" = yes; then
3748 CFLAGS="-O2"
3749 else
3750 CFLAGS=
3751 fi
3752 fi
3753 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3754 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3755 if test "${ac_cv_prog_cc_c89+set}" = set; then
3756 $as_echo_n "(cached) " >&6
3757 else
3758 ac_cv_prog_cc_c89=no
3759 ac_save_CC=$CC
3760 cat >conftest.$ac_ext <<_ACEOF
3761 /* confdefs.h. */
3762 _ACEOF
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h. */
3766 #include <stdarg.h>
3767 #include <stdio.h>
3768 #include <sys/types.h>
3769 #include <sys/stat.h>
3770 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3771 struct buf { int x; };
3772 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3773 static char *e (p, i)
3774 char **p;
3775 int i;
3776 {
3777 return p[i];
3778 }
3779 static char *f (char * (*g) (char **, int), char **p, ...)
3780 {
3781 char *s;
3782 va_list v;
3783 va_start (v,p);
3784 s = g (p, va_arg (v,int));
3785 va_end (v);
3786 return s;
3787 }
3788
3789 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3790 function prototypes and stuff, but not '\xHH' hex character constants.
3791 These don't provoke an error unfortunately, instead are silently treated
3792 as 'x'. The following induces an error, until -std is added to get
3793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3794 array size at least. It's necessary to write '\x00'==0 to get something
3795 that's true only with -std. */
3796 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3797
3798 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3799 inside strings and character constants. */
3800 #define FOO(x) 'x'
3801 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3802
3803 int test (int i, double x);
3804 struct s1 {int (*f) (int a);};
3805 struct s2 {int (*f) (double a);};
3806 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3807 int argc;
3808 char **argv;
3809 int
3810 main ()
3811 {
3812 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3813 ;
3814 return 0;
3815 }
3816 _ACEOF
3817 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3818 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3819 do
3820 CC="$ac_save_CC $ac_arg"
3821 rm -f conftest.$ac_objext
3822 if { (ac_try="$ac_compile"
3823 case "(($ac_try" in
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3826 esac
3827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3828 $as_echo "$ac_try_echo") >&5
3829 (eval "$ac_compile") 2>conftest.er1
3830 ac_status=$?
3831 grep -v '^ *+' conftest.er1 >conftest.err
3832 rm -f conftest.er1
3833 cat conftest.err >&5
3834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } && {
3836 test -z "$ac_c_werror_flag" ||
3837 test ! -s conftest.err
3838 } && test -s conftest.$ac_objext; then
3839 ac_cv_prog_cc_c89=$ac_arg
3840 else
3841 $as_echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3843
3844
3845 fi
3846
3847 rm -f core conftest.err conftest.$ac_objext
3848 test "x$ac_cv_prog_cc_c89" != "xno" && break
3849 done
3850 rm -f conftest.$ac_ext
3851 CC=$ac_save_CC
3852
3853 fi
3854 # AC_CACHE_VAL
3855 case "x$ac_cv_prog_cc_c89" in
3856 x)
3857 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3858 $as_echo "none needed" >&6; } ;;
3859 xno)
3860 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3861 $as_echo "unsupported" >&6; } ;;
3862 *)
3863 CC="$CC $ac_cv_prog_cc_c89"
3864 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3865 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3866 esac
3867
3868
3869 ac_ext=c
3870 ac_cpp='$CPP $CPPFLAGS'
3871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3874
3875
3876 # On Suns, sometimes $CPP names a directory.
3877 if test -n "$CPP" && test -d "$CPP"; then
3878 CPP=
3879 fi
3880
3881 ## If not using gcc, and on Solaris, and no CPP specified, see if
3882 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3883 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3884 test x"$CPP" = x; then
3885 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3886 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3887
3888 if test "${emacs_cv_sunpro_c+set}" = set; then
3889 $as_echo_n "(cached) " >&6
3890 else
3891 cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h. */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3897
3898 int
3899 main ()
3900 {
3901 #ifndef __SUNPRO_C
3902 fail;
3903 #endif
3904
3905 ;
3906 return 0;
3907 }
3908 _ACEOF
3909 rm -f conftest.$ac_objext conftest$ac_exeext
3910 if { (ac_try="$ac_link"
3911 case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914 esac
3915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3916 $as_echo "$ac_try_echo") >&5
3917 (eval "$ac_link") 2>conftest.er1
3918 ac_status=$?
3919 grep -v '^ *+' conftest.er1 >conftest.err
3920 rm -f conftest.er1
3921 cat conftest.err >&5
3922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } && {
3924 test -z "$ac_c_werror_flag" ||
3925 test ! -s conftest.err
3926 } && test -s conftest$ac_exeext && {
3927 test "$cross_compiling" = yes ||
3928 $as_test_x conftest$ac_exeext
3929 }; then
3930 emacs_cv_sunpro_c=yes
3931 else
3932 $as_echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3934
3935 emacs_cv_sunpro_c=no
3936 fi
3937
3938 rm -rf conftest.dSYM
3939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3940 conftest$ac_exeext conftest.$ac_ext
3941 fi
3942
3943 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3944 $as_echo "$emacs_cv_sunpro_c" >&6; }
3945
3946 if test x"$emacs_cv_sunpro_c" = xyes; then
3947 NON_GNU_CPP="$CC -E -Xs"
3948 fi
3949 fi
3950
3951 #### Some systems specify a CPP to use unless we are using GCC.
3952 #### Now that we know whether we are using GCC, we can decide whether
3953 #### to use that one.
3954 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3955 then
3956 CPP="$NON_GNU_CPP"
3957 fi
3958
3959 #### Some systems specify a CC to use unless we are using GCC.
3960 #### Now that we know whether we are using GCC, we can decide whether
3961 #### to use that one.
3962 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3963 test x$cc_specified != xyes
3964 then
3965 CC="$NON_GNU_CC"
3966 fi
3967
3968 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3969 then
3970 CC="$CC $GCC_TEST_OPTIONS"
3971 fi
3972
3973 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3974 then
3975 CC="$CC $NON_GCC_TEST_OPTIONS"
3976 fi
3977
3978 ac_ext=c
3979 ac_cpp='$CPP $CPPFLAGS'
3980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3983 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3984 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3985 # On Suns, sometimes $CPP names a directory.
3986 if test -n "$CPP" && test -d "$CPP"; then
3987 CPP=
3988 fi
3989 if test -z "$CPP"; then
3990 if test "${ac_cv_prog_CPP+set}" = set; then
3991 $as_echo_n "(cached) " >&6
3992 else
3993 # Double quotes because CPP needs to be expanded
3994 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3995 do
3996 ac_preproc_ok=false
3997 for ac_c_preproc_warn_flag in '' yes
3998 do
3999 # Use a header file that comes with gcc, so configuring glibc
4000 # with a fresh cross-compiler works.
4001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4002 # <limits.h> exists even on freestanding compilers.
4003 # On the NeXT, cc -E runs the code through the compiler's parser,
4004 # not just through cpp. "Syntax error" is here to catch this case.
4005 cat >conftest.$ac_ext <<_ACEOF
4006 /* confdefs.h. */
4007 _ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4011 #ifdef __STDC__
4012 # include <limits.h>
4013 #else
4014 # include <assert.h>
4015 #endif
4016 Syntax error
4017 _ACEOF
4018 if { (ac_try="$ac_cpp conftest.$ac_ext"
4019 case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4022 esac
4023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4024 $as_echo "$ac_try_echo") >&5
4025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4026 ac_status=$?
4027 grep -v '^ *+' conftest.er1 >conftest.err
4028 rm -f conftest.er1
4029 cat conftest.err >&5
4030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } >/dev/null && {
4032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4033 test ! -s conftest.err
4034 }; then
4035 :
4036 else
4037 $as_echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4039
4040 # Broken: fails on valid input.
4041 continue
4042 fi
4043
4044 rm -f conftest.err conftest.$ac_ext
4045
4046 # OK, works on sane cases. Now check whether nonexistent headers
4047 # can be detected and how.
4048 cat >conftest.$ac_ext <<_ACEOF
4049 /* confdefs.h. */
4050 _ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4054 #include <ac_nonexistent.h>
4055 _ACEOF
4056 if { (ac_try="$ac_cpp conftest.$ac_ext"
4057 case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060 esac
4061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4062 $as_echo "$ac_try_echo") >&5
4063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4064 ac_status=$?
4065 grep -v '^ *+' conftest.er1 >conftest.err
4066 rm -f conftest.er1
4067 cat conftest.err >&5
4068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } >/dev/null && {
4070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4071 test ! -s conftest.err
4072 }; then
4073 # Broken: success on invalid input.
4074 continue
4075 else
4076 $as_echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4078
4079 # Passes both tests.
4080 ac_preproc_ok=:
4081 break
4082 fi
4083
4084 rm -f conftest.err conftest.$ac_ext
4085
4086 done
4087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4088 rm -f conftest.err conftest.$ac_ext
4089 if $ac_preproc_ok; then
4090 break
4091 fi
4092
4093 done
4094 ac_cv_prog_CPP=$CPP
4095
4096 fi
4097 CPP=$ac_cv_prog_CPP
4098 else
4099 ac_cv_prog_CPP=$CPP
4100 fi
4101 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4102 $as_echo "$CPP" >&6; }
4103 ac_preproc_ok=false
4104 for ac_c_preproc_warn_flag in '' yes
4105 do
4106 # Use a header file that comes with gcc, so configuring glibc
4107 # with a fresh cross-compiler works.
4108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4109 # <limits.h> exists even on freestanding compilers.
4110 # On the NeXT, cc -E runs the code through the compiler's parser,
4111 # not just through cpp. "Syntax error" is here to catch this case.
4112 cat >conftest.$ac_ext <<_ACEOF
4113 /* confdefs.h. */
4114 _ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4118 #ifdef __STDC__
4119 # include <limits.h>
4120 #else
4121 # include <assert.h>
4122 #endif
4123 Syntax error
4124 _ACEOF
4125 if { (ac_try="$ac_cpp conftest.$ac_ext"
4126 case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4129 esac
4130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4131 $as_echo "$ac_try_echo") >&5
4132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4133 ac_status=$?
4134 grep -v '^ *+' conftest.er1 >conftest.err
4135 rm -f conftest.er1
4136 cat conftest.err >&5
4137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } >/dev/null && {
4139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4140 test ! -s conftest.err
4141 }; then
4142 :
4143 else
4144 $as_echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4146
4147 # Broken: fails on valid input.
4148 continue
4149 fi
4150
4151 rm -f conftest.err conftest.$ac_ext
4152
4153 # OK, works on sane cases. Now check whether nonexistent headers
4154 # can be detected and how.
4155 cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h. */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161 #include <ac_nonexistent.h>
4162 _ACEOF
4163 if { (ac_try="$ac_cpp conftest.$ac_ext"
4164 case "(($ac_try" in
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4167 esac
4168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4169 $as_echo "$ac_try_echo") >&5
4170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4171 ac_status=$?
4172 grep -v '^ *+' conftest.er1 >conftest.err
4173 rm -f conftest.er1
4174 cat conftest.err >&5
4175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } >/dev/null && {
4177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4178 test ! -s conftest.err
4179 }; then
4180 # Broken: success on invalid input.
4181 continue
4182 else
4183 $as_echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4185
4186 # Passes both tests.
4187 ac_preproc_ok=:
4188 break
4189 fi
4190
4191 rm -f conftest.err conftest.$ac_ext
4192
4193 done
4194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4195 rm -f conftest.err conftest.$ac_ext
4196 if $ac_preproc_ok; then
4197 :
4198 else
4199 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4200 See \`config.log' for more details." >&5
4201 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4202 See \`config.log' for more details." >&2;}
4203 { (exit 1); exit 1; }; }
4204 fi
4205
4206 ac_ext=c
4207 ac_cpp='$CPP $CPPFLAGS'
4208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4211
4212
4213 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4214 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4215 if test "${ac_cv_path_GREP+set}" = set; then
4216 $as_echo_n "(cached) " >&6
4217 else
4218 if test -z "$GREP"; then
4219 ac_path_GREP_found=false
4220 # Loop through the user's path and test for each of PROGNAME-LIST
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4223 do
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_prog in grep ggrep; do
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4229 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4230 # Check for GNU ac_path_GREP and select it if it is found.
4231 # Check for GNU $ac_path_GREP
4232 case `"$ac_path_GREP" --version 2>&1` in
4233 *GNU*)
4234 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4235 *)
4236 ac_count=0
4237 $as_echo_n 0123456789 >"conftest.in"
4238 while :
4239 do
4240 cat "conftest.in" "conftest.in" >"conftest.tmp"
4241 mv "conftest.tmp" "conftest.in"
4242 cp "conftest.in" "conftest.nl"
4243 $as_echo 'GREP' >> "conftest.nl"
4244 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4246 ac_count=`expr $ac_count + 1`
4247 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4248 # Best one so far, save it but keep looking for a better one
4249 ac_cv_path_GREP="$ac_path_GREP"
4250 ac_path_GREP_max=$ac_count
4251 fi
4252 # 10*(2^10) chars as input seems more than enough
4253 test $ac_count -gt 10 && break
4254 done
4255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4256 esac
4257
4258 $ac_path_GREP_found && break 3
4259 done
4260 done
4261 done
4262 IFS=$as_save_IFS
4263 if test -z "$ac_cv_path_GREP"; then
4264 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4265 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4266 { (exit 1); exit 1; }; }
4267 fi
4268 else
4269 ac_cv_path_GREP=$GREP
4270 fi
4271
4272 fi
4273 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4274 $as_echo "$ac_cv_path_GREP" >&6; }
4275 GREP="$ac_cv_path_GREP"
4276
4277
4278 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4279 $as_echo_n "checking for egrep... " >&6; }
4280 if test "${ac_cv_path_EGREP+set}" = set; then
4281 $as_echo_n "(cached) " >&6
4282 else
4283 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4284 then ac_cv_path_EGREP="$GREP -E"
4285 else
4286 if test -z "$EGREP"; then
4287 ac_path_EGREP_found=false
4288 # Loop through the user's path and test for each of PROGNAME-LIST
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4291 do
4292 IFS=$as_save_IFS
4293 test -z "$as_dir" && as_dir=.
4294 for ac_prog in egrep; do
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4297 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4298 # Check for GNU ac_path_EGREP and select it if it is found.
4299 # Check for GNU $ac_path_EGREP
4300 case `"$ac_path_EGREP" --version 2>&1` in
4301 *GNU*)
4302 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4303 *)
4304 ac_count=0
4305 $as_echo_n 0123456789 >"conftest.in"
4306 while :
4307 do
4308 cat "conftest.in" "conftest.in" >"conftest.tmp"
4309 mv "conftest.tmp" "conftest.in"
4310 cp "conftest.in" "conftest.nl"
4311 $as_echo 'EGREP' >> "conftest.nl"
4312 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4314 ac_count=`expr $ac_count + 1`
4315 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4316 # Best one so far, save it but keep looking for a better one
4317 ac_cv_path_EGREP="$ac_path_EGREP"
4318 ac_path_EGREP_max=$ac_count
4319 fi
4320 # 10*(2^10) chars as input seems more than enough
4321 test $ac_count -gt 10 && break
4322 done
4323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4324 esac
4325
4326 $ac_path_EGREP_found && break 3
4327 done
4328 done
4329 done
4330 IFS=$as_save_IFS
4331 if test -z "$ac_cv_path_EGREP"; then
4332 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4333 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4334 { (exit 1); exit 1; }; }
4335 fi
4336 else
4337 ac_cv_path_EGREP=$EGREP
4338 fi
4339
4340 fi
4341 fi
4342 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4343 $as_echo "$ac_cv_path_EGREP" >&6; }
4344 EGREP="$ac_cv_path_EGREP"
4345
4346
4347 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4348 $as_echo_n "checking for ANSI C header files... " >&6; }
4349 if test "${ac_cv_header_stdc+set}" = set; then
4350 $as_echo_n "(cached) " >&6
4351 else
4352 cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h. */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4358 #include <stdlib.h>
4359 #include <stdarg.h>
4360 #include <string.h>
4361 #include <float.h>
4362
4363 int
4364 main ()
4365 {
4366
4367 ;
4368 return 0;
4369 }
4370 _ACEOF
4371 rm -f conftest.$ac_objext
4372 if { (ac_try="$ac_compile"
4373 case "(($ac_try" in
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4376 esac
4377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4378 $as_echo "$ac_try_echo") >&5
4379 (eval "$ac_compile") 2>conftest.er1
4380 ac_status=$?
4381 grep -v '^ *+' conftest.er1 >conftest.err
4382 rm -f conftest.er1
4383 cat conftest.err >&5
4384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } && {
4386 test -z "$ac_c_werror_flag" ||
4387 test ! -s conftest.err
4388 } && test -s conftest.$ac_objext; then
4389 ac_cv_header_stdc=yes
4390 else
4391 $as_echo "$as_me: failed program was:" >&5
4392 sed 's/^/| /' conftest.$ac_ext >&5
4393
4394 ac_cv_header_stdc=no
4395 fi
4396
4397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398
4399 if test $ac_cv_header_stdc = yes; then
4400 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4401 cat >conftest.$ac_ext <<_ACEOF
4402 /* confdefs.h. */
4403 _ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h. */
4407 #include <string.h>
4408
4409 _ACEOF
4410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4411 $EGREP "memchr" >/dev/null 2>&1; then
4412 :
4413 else
4414 ac_cv_header_stdc=no
4415 fi
4416 rm -f conftest*
4417
4418 fi
4419
4420 if test $ac_cv_header_stdc = yes; then
4421 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4422 cat >conftest.$ac_ext <<_ACEOF
4423 /* confdefs.h. */
4424 _ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4428 #include <stdlib.h>
4429
4430 _ACEOF
4431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4432 $EGREP "free" >/dev/null 2>&1; then
4433 :
4434 else
4435 ac_cv_header_stdc=no
4436 fi
4437 rm -f conftest*
4438
4439 fi
4440
4441 if test $ac_cv_header_stdc = yes; then
4442 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4443 if test "$cross_compiling" = yes; then
4444 :
4445 else
4446 cat >conftest.$ac_ext <<_ACEOF
4447 /* confdefs.h. */
4448 _ACEOF
4449 cat confdefs.h >>conftest.$ac_ext
4450 cat >>conftest.$ac_ext <<_ACEOF
4451 /* end confdefs.h. */
4452 #include <ctype.h>
4453 #include <stdlib.h>
4454 #if ((' ' & 0x0FF) == 0x020)
4455 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4456 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4457 #else
4458 # define ISLOWER(c) \
4459 (('a' <= (c) && (c) <= 'i') \
4460 || ('j' <= (c) && (c) <= 'r') \
4461 || ('s' <= (c) && (c) <= 'z'))
4462 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4463 #endif
4464
4465 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4466 int
4467 main ()
4468 {
4469 int i;
4470 for (i = 0; i < 256; i++)
4471 if (XOR (islower (i), ISLOWER (i))
4472 || toupper (i) != TOUPPER (i))
4473 return 2;
4474 return 0;
4475 }
4476 _ACEOF
4477 rm -f conftest$ac_exeext
4478 if { (ac_try="$ac_link"
4479 case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482 esac
4483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4484 $as_echo "$ac_try_echo") >&5
4485 (eval "$ac_link") 2>&5
4486 ac_status=$?
4487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4489 { (case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4492 esac
4493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4494 $as_echo "$ac_try_echo") >&5
4495 (eval "$ac_try") 2>&5
4496 ac_status=$?
4497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 :
4500 else
4501 $as_echo "$as_me: program exited with status $ac_status" >&5
4502 $as_echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.$ac_ext >&5
4504
4505 ( exit $ac_status )
4506 ac_cv_header_stdc=no
4507 fi
4508 rm -rf conftest.dSYM
4509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4510 fi
4511
4512
4513 fi
4514 fi
4515 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4516 $as_echo "$ac_cv_header_stdc" >&6; }
4517 if test $ac_cv_header_stdc = yes; then
4518
4519 cat >>confdefs.h <<\_ACEOF
4520 #define STDC_HEADERS 1
4521 _ACEOF
4522
4523 fi
4524
4525 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4536 inttypes.h stdint.h unistd.h
4537 do
4538 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4539 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4540 $as_echo_n "checking for $ac_header... " >&6; }
4541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4542 $as_echo_n "(cached) " >&6
4543 else
4544 cat >conftest.$ac_ext <<_ACEOF
4545 /* confdefs.h. */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550 $ac_includes_default
4551
4552 #include <$ac_header>
4553 _ACEOF
4554 rm -f conftest.$ac_objext
4555 if { (ac_try="$ac_compile"
4556 case "(($ac_try" in
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4559 esac
4560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4561 $as_echo "$ac_try_echo") >&5
4562 (eval "$ac_compile") 2>conftest.er1
4563 ac_status=$?
4564 grep -v '^ *+' conftest.er1 >conftest.err
4565 rm -f conftest.er1
4566 cat conftest.err >&5
4567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } && {
4569 test -z "$ac_c_werror_flag" ||
4570 test ! -s conftest.err
4571 } && test -s conftest.$ac_objext; then
4572 eval "$as_ac_Header=yes"
4573 else
4574 $as_echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4576
4577 eval "$as_ac_Header=no"
4578 fi
4579
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 fi
4582 ac_res=`eval 'as_val=${'$as_ac_Header'}
4583 $as_echo "$as_val"'`
4584 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4585 $as_echo "$ac_res" >&6; }
4586 if test `eval 'as_val=${'$as_ac_Header'}
4587 $as_echo "$as_val"'` = yes; then
4588 cat >>confdefs.h <<_ACEOF
4589 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4590 _ACEOF
4591
4592 fi
4593
4594 done
4595
4596
4597
4598 if test "${ac_cv_header_minix_config_h+set}" = set; then
4599 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4600 $as_echo_n "checking for minix/config.h... " >&6; }
4601 if test "${ac_cv_header_minix_config_h+set}" = set; then
4602 $as_echo_n "(cached) " >&6
4603 fi
4604 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4605 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4606 else
4607 # Is the header compilable?
4608 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4609 $as_echo_n "checking minix/config.h usability... " >&6; }
4610 cat >conftest.$ac_ext <<_ACEOF
4611 /* confdefs.h. */
4612 _ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4616 $ac_includes_default
4617 #include <minix/config.h>
4618 _ACEOF
4619 rm -f conftest.$ac_objext
4620 if { (ac_try="$ac_compile"
4621 case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4624 esac
4625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4626 $as_echo "$ac_try_echo") >&5
4627 (eval "$ac_compile") 2>conftest.er1
4628 ac_status=$?
4629 grep -v '^ *+' conftest.er1 >conftest.err
4630 rm -f conftest.er1
4631 cat conftest.err >&5
4632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } && {
4634 test -z "$ac_c_werror_flag" ||
4635 test ! -s conftest.err
4636 } && test -s conftest.$ac_objext; then
4637 ac_header_compiler=yes
4638 else
4639 $as_echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4641
4642 ac_header_compiler=no
4643 fi
4644
4645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4647 $as_echo "$ac_header_compiler" >&6; }
4648
4649 # Is the header present?
4650 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4651 $as_echo_n "checking minix/config.h presence... " >&6; }
4652 cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h. */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 #include <minix/config.h>
4659 _ACEOF
4660 if { (ac_try="$ac_cpp conftest.$ac_ext"
4661 case "(($ac_try" in
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4664 esac
4665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4666 $as_echo "$ac_try_echo") >&5
4667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4668 ac_status=$?
4669 grep -v '^ *+' conftest.er1 >conftest.err
4670 rm -f conftest.er1
4671 cat conftest.err >&5
4672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } >/dev/null && {
4674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4675 test ! -s conftest.err
4676 }; then
4677 ac_header_preproc=yes
4678 else
4679 $as_echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4681
4682 ac_header_preproc=no
4683 fi
4684
4685 rm -f conftest.err conftest.$ac_ext
4686 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4687 $as_echo "$ac_header_preproc" >&6; }
4688
4689 # So? What about this header?
4690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4691 yes:no: )
4692 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4693 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4694 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4695 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4696 ac_header_preproc=yes
4697 ;;
4698 no:yes:* )
4699 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4700 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4701 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4702 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4703 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4704 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4705 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4706 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4707 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4708 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4709 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4710 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4711
4712 ;;
4713 esac
4714 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4715 $as_echo_n "checking for minix/config.h... " >&6; }
4716 if test "${ac_cv_header_minix_config_h+set}" = set; then
4717 $as_echo_n "(cached) " >&6
4718 else
4719 ac_cv_header_minix_config_h=$ac_header_preproc
4720 fi
4721 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4722 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4723
4724 fi
4725 if test $ac_cv_header_minix_config_h = yes; then
4726 MINIX=yes
4727 else
4728 MINIX=
4729 fi
4730
4731
4732 if test "$MINIX" = yes; then
4733
4734 cat >>confdefs.h <<\_ACEOF
4735 #define _POSIX_SOURCE 1
4736 _ACEOF
4737
4738
4739 cat >>confdefs.h <<\_ACEOF
4740 #define _POSIX_1_SOURCE 2
4741 _ACEOF
4742
4743
4744 cat >>confdefs.h <<\_ACEOF
4745 #define _MINIX 1
4746 _ACEOF
4747
4748 fi
4749
4750
4751
4752 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4753 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4754 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4755 $as_echo_n "(cached) " >&6
4756 else
4757 cat >conftest.$ac_ext <<_ACEOF
4758 /* confdefs.h. */
4759 _ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4763
4764 # define __EXTENSIONS__ 1
4765 $ac_includes_default
4766 int
4767 main ()
4768 {
4769
4770 ;
4771 return 0;
4772 }
4773 _ACEOF
4774 rm -f conftest.$ac_objext
4775 if { (ac_try="$ac_compile"
4776 case "(($ac_try" in
4777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778 *) ac_try_echo=$ac_try;;
4779 esac
4780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4781 $as_echo "$ac_try_echo") >&5
4782 (eval "$ac_compile") 2>conftest.er1
4783 ac_status=$?
4784 grep -v '^ *+' conftest.er1 >conftest.err
4785 rm -f conftest.er1
4786 cat conftest.err >&5
4787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } && {
4789 test -z "$ac_c_werror_flag" ||
4790 test ! -s conftest.err
4791 } && test -s conftest.$ac_objext; then
4792 ac_cv_safe_to_define___extensions__=yes
4793 else
4794 $as_echo "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.$ac_ext >&5
4796
4797 ac_cv_safe_to_define___extensions__=no
4798 fi
4799
4800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801 fi
4802 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4803 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4804 test $ac_cv_safe_to_define___extensions__ = yes &&
4805 cat >>confdefs.h <<\_ACEOF
4806 #define __EXTENSIONS__ 1
4807 _ACEOF
4808
4809 cat >>confdefs.h <<\_ACEOF
4810 #define _ALL_SOURCE 1
4811 _ACEOF
4812
4813 cat >>confdefs.h <<\_ACEOF
4814 #define _GNU_SOURCE 1
4815 _ACEOF
4816
4817 cat >>confdefs.h <<\_ACEOF
4818 #define _POSIX_PTHREAD_SEMANTICS 1
4819 _ACEOF
4820
4821 cat >>confdefs.h <<\_ACEOF
4822 #define _TANDEM_SOURCE 1
4823 _ACEOF
4824
4825
4826
4827 ### Use -Wno-pointer-sign if the compiler supports it
4828 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4829 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4830 SAVE_CFLAGS="$CFLAGS"
4831 CFLAGS="$CFLAGS -Wno-pointer-sign"
4832 cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h. */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4838
4839 int
4840 main ()
4841 {
4842
4843 ;
4844 return 0;
4845 }
4846 _ACEOF
4847 rm -f conftest.$ac_objext
4848 if { (ac_try="$ac_compile"
4849 case "(($ac_try" in
4850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4852 esac
4853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4854 $as_echo "$ac_try_echo") >&5
4855 (eval "$ac_compile") 2>conftest.er1
4856 ac_status=$?
4857 grep -v '^ *+' conftest.er1 >conftest.err
4858 rm -f conftest.er1
4859 cat conftest.err >&5
4860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } && {
4862 test -z "$ac_c_werror_flag" ||
4863 test ! -s conftest.err
4864 } && test -s conftest.$ac_objext; then
4865 has_option=yes
4866 else
4867 $as_echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4869
4870 has_option=no
4871 fi
4872
4873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874 if test $has_option = yes; then
4875 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4876 fi
4877 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4878 $as_echo "$has_option" >&6; }
4879 CFLAGS="$SAVE_CFLAGS"
4880 unset has_option
4881 unset SAVE_CFLAGS
4882
4883 #### Some other nice autoconf tests.
4884
4885 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4886 $as_echo_n "checking whether ln -s works... " >&6; }
4887 LN_S=$as_ln_s
4888 if test "$LN_S" = "ln -s"; then
4889 { $as_echo "$as_me:$LINENO: result: yes" >&5
4890 $as_echo "yes" >&6; }
4891 else
4892 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4893 $as_echo "no, using $LN_S" >&6; }
4894 fi
4895
4896 ac_ext=c
4897 ac_cpp='$CPP $CPPFLAGS'
4898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4901 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4902 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4903 # On Suns, sometimes $CPP names a directory.
4904 if test -n "$CPP" && test -d "$CPP"; then
4905 CPP=
4906 fi
4907 if test -z "$CPP"; then
4908 if test "${ac_cv_prog_CPP+set}" = set; then
4909 $as_echo_n "(cached) " >&6
4910 else
4911 # Double quotes because CPP needs to be expanded
4912 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4913 do
4914 ac_preproc_ok=false
4915 for ac_c_preproc_warn_flag in '' yes
4916 do
4917 # Use a header file that comes with gcc, so configuring glibc
4918 # with a fresh cross-compiler works.
4919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4920 # <limits.h> exists even on freestanding compilers.
4921 # On the NeXT, cc -E runs the code through the compiler's parser,
4922 # not just through cpp. "Syntax error" is here to catch this case.
4923 cat >conftest.$ac_ext <<_ACEOF
4924 /* confdefs.h. */
4925 _ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h. */
4929 #ifdef __STDC__
4930 # include <limits.h>
4931 #else
4932 # include <assert.h>
4933 #endif
4934 Syntax error
4935 _ACEOF
4936 if { (ac_try="$ac_cpp conftest.$ac_ext"
4937 case "(($ac_try" in
4938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4939 *) ac_try_echo=$ac_try;;
4940 esac
4941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4942 $as_echo "$ac_try_echo") >&5
4943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4944 ac_status=$?
4945 grep -v '^ *+' conftest.er1 >conftest.err
4946 rm -f conftest.er1
4947 cat conftest.err >&5
4948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } >/dev/null && {
4950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4951 test ! -s conftest.err
4952 }; then
4953 :
4954 else
4955 $as_echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4957
4958 # Broken: fails on valid input.
4959 continue
4960 fi
4961
4962 rm -f conftest.err conftest.$ac_ext
4963
4964 # OK, works on sane cases. Now check whether nonexistent headers
4965 # can be detected and how.
4966 cat >conftest.$ac_ext <<_ACEOF
4967 /* confdefs.h. */
4968 _ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4972 #include <ac_nonexistent.h>
4973 _ACEOF
4974 if { (ac_try="$ac_cpp conftest.$ac_ext"
4975 case "(($ac_try" in
4976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977 *) ac_try_echo=$ac_try;;
4978 esac
4979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4980 $as_echo "$ac_try_echo") >&5
4981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4982 ac_status=$?
4983 grep -v '^ *+' conftest.er1 >conftest.err
4984 rm -f conftest.er1
4985 cat conftest.err >&5
4986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } >/dev/null && {
4988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4989 test ! -s conftest.err
4990 }; then
4991 # Broken: success on invalid input.
4992 continue
4993 else
4994 $as_echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4996
4997 # Passes both tests.
4998 ac_preproc_ok=:
4999 break
5000 fi
5001
5002 rm -f conftest.err conftest.$ac_ext
5003
5004 done
5005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5006 rm -f conftest.err conftest.$ac_ext
5007 if $ac_preproc_ok; then
5008 break
5009 fi
5010
5011 done
5012 ac_cv_prog_CPP=$CPP
5013
5014 fi
5015 CPP=$ac_cv_prog_CPP
5016 else
5017 ac_cv_prog_CPP=$CPP
5018 fi
5019 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5020 $as_echo "$CPP" >&6; }
5021 ac_preproc_ok=false
5022 for ac_c_preproc_warn_flag in '' yes
5023 do
5024 # Use a header file that comes with gcc, so configuring glibc
5025 # with a fresh cross-compiler works.
5026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5027 # <limits.h> exists even on freestanding compilers.
5028 # On the NeXT, cc -E runs the code through the compiler's parser,
5029 # not just through cpp. "Syntax error" is here to catch this case.
5030 cat >conftest.$ac_ext <<_ACEOF
5031 /* confdefs.h. */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5036 #ifdef __STDC__
5037 # include <limits.h>
5038 #else
5039 # include <assert.h>
5040 #endif
5041 Syntax error
5042 _ACEOF
5043 if { (ac_try="$ac_cpp conftest.$ac_ext"
5044 case "(($ac_try" in
5045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046 *) ac_try_echo=$ac_try;;
5047 esac
5048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5049 $as_echo "$ac_try_echo") >&5
5050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5051 ac_status=$?
5052 grep -v '^ *+' conftest.er1 >conftest.err
5053 rm -f conftest.er1
5054 cat conftest.err >&5
5055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } >/dev/null && {
5057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5058 test ! -s conftest.err
5059 }; then
5060 :
5061 else
5062 $as_echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065 # Broken: fails on valid input.
5066 continue
5067 fi
5068
5069 rm -f conftest.err conftest.$ac_ext
5070
5071 # OK, works on sane cases. Now check whether nonexistent headers
5072 # can be detected and how.
5073 cat >conftest.$ac_ext <<_ACEOF
5074 /* confdefs.h. */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079 #include <ac_nonexistent.h>
5080 _ACEOF
5081 if { (ac_try="$ac_cpp conftest.$ac_ext"
5082 case "(($ac_try" in
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5085 esac
5086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5087 $as_echo "$ac_try_echo") >&5
5088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } >/dev/null && {
5095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5096 test ! -s conftest.err
5097 }; then
5098 # Broken: success on invalid input.
5099 continue
5100 else
5101 $as_echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5103
5104 # Passes both tests.
5105 ac_preproc_ok=:
5106 break
5107 fi
5108
5109 rm -f conftest.err conftest.$ac_ext
5110
5111 done
5112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5113 rm -f conftest.err conftest.$ac_ext
5114 if $ac_preproc_ok; then
5115 :
5116 else
5117 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5118 See \`config.log' for more details." >&5
5119 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5120 See \`config.log' for more details." >&2;}
5121 { (exit 1); exit 1; }; }
5122 fi
5123
5124 ac_ext=c
5125 ac_cpp='$CPP $CPPFLAGS'
5126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5129
5130 # Find a good install program. We prefer a C program (faster),
5131 # so one script is as good as another. But avoid the broken or
5132 # incompatible versions:
5133 # SysV /etc/install, /usr/sbin/install
5134 # SunOS /usr/etc/install
5135 # IRIX /sbin/install
5136 # AIX /bin/install
5137 # AmigaOS /C/install, which installs bootblocks on floppy discs
5138 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5139 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5140 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5141 # OS/2's system install, which has a completely different semantic
5142 # ./install, which can be erroneously created by make from ./install.sh.
5143 # Reject install programs that cannot install multiple files.
5144 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5145 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5146 if test -z "$INSTALL"; then
5147 if test "${ac_cv_path_install+set}" = set; then
5148 $as_echo_n "(cached) " >&6
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 # Account for people who put trailing slashes in PATH elements.
5156 case $as_dir/ in
5157 ./ | .// | /cC/* | \
5158 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5159 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5160 /usr/ucb/* ) ;;
5161 *)
5162 # OSF1 and SCO ODT 3.0 have their own names for install.
5163 # Don't use installbsd from OSF since it installs stuff as root
5164 # by default.
5165 for ac_prog in ginstall scoinst install; do
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5168 if test $ac_prog = install &&
5169 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5170 # AIX install. It has an incompatible calling convention.
5171 :
5172 elif test $ac_prog = install &&
5173 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5174 # program-specific install script used by HP pwplus--don't use.
5175 :
5176 else
5177 rm -rf conftest.one conftest.two conftest.dir
5178 echo one > conftest.one
5179 echo two > conftest.two
5180 mkdir conftest.dir
5181 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5182 test -s conftest.one && test -s conftest.two &&
5183 test -s conftest.dir/conftest.one &&
5184 test -s conftest.dir/conftest.two
5185 then
5186 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5187 break 3
5188 fi
5189 fi
5190 fi
5191 done
5192 done
5193 ;;
5194 esac
5195
5196 done
5197 IFS=$as_save_IFS
5198
5199 rm -rf conftest.one conftest.two conftest.dir
5200
5201 fi
5202 if test "${ac_cv_path_install+set}" = set; then
5203 INSTALL=$ac_cv_path_install
5204 else
5205 # As a last resort, use the slow shell script. Don't cache a
5206 # value for INSTALL within a source directory, because that will
5207 # break other packages using the cache if that directory is
5208 # removed, or if the value is a relative name.
5209 INSTALL=$ac_install_sh
5210 fi
5211 fi
5212 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5213 $as_echo "$INSTALL" >&6; }
5214
5215 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5216 # It thinks the first close brace ends the variable substitution.
5217 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5218
5219 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5220
5221 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5222
5223 if test "x$RANLIB" = x; then
5224 if test -n "$ac_tool_prefix"; then
5225 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5226 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5227 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5228 $as_echo_n "checking for $ac_word... " >&6; }
5229 if test "${ac_cv_prog_RANLIB+set}" = set; then
5230 $as_echo_n "(cached) " >&6
5231 else
5232 if test -n "$RANLIB"; then
5233 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5234 else
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH
5237 do
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5243 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 break 2
5245 fi
5246 done
5247 done
5248 IFS=$as_save_IFS
5249
5250 fi
5251 fi
5252 RANLIB=$ac_cv_prog_RANLIB
5253 if test -n "$RANLIB"; then
5254 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5255 $as_echo "$RANLIB" >&6; }
5256 else
5257 { $as_echo "$as_me:$LINENO: result: no" >&5
5258 $as_echo "no" >&6; }
5259 fi
5260
5261
5262 fi
5263 if test -z "$ac_cv_prog_RANLIB"; then
5264 ac_ct_RANLIB=$RANLIB
5265 # Extract the first word of "ranlib", so it can be a program name with args.
5266 set dummy ranlib; ac_word=$2
5267 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5270 $as_echo_n "(cached) " >&6
5271 else
5272 if test -n "$ac_ct_RANLIB"; then
5273 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_prog_ac_ct_RANLIB="ranlib"
5283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5285 fi
5286 done
5287 done
5288 IFS=$as_save_IFS
5289
5290 fi
5291 fi
5292 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5293 if test -n "$ac_ct_RANLIB"; then
5294 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5295 $as_echo "$ac_ct_RANLIB" >&6; }
5296 else
5297 { $as_echo "$as_me:$LINENO: result: no" >&5
5298 $as_echo "no" >&6; }
5299 fi
5300
5301 if test "x$ac_ct_RANLIB" = x; then
5302 RANLIB=":"
5303 else
5304 case $cross_compiling:$ac_tool_warned in
5305 yes:)
5306 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5307 whose name does not start with the host triplet. If you think this
5308 configuration is useful to you, please write to autoconf@gnu.org." >&5
5309 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5310 whose name does not start with the host triplet. If you think this
5311 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5312 ac_tool_warned=yes ;;
5313 esac
5314 RANLIB=$ac_ct_RANLIB
5315 fi
5316 else
5317 RANLIB="$ac_cv_prog_RANLIB"
5318 fi
5319
5320 fi
5321 # Extract the first word of "install-info", so it can be a program name with args.
5322 set dummy install-info; ac_word=$2
5323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 $as_echo_n "checking for $ac_word... " >&6; }
5325 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5326 $as_echo_n "(cached) " >&6
5327 else
5328 case $INSTALL_INFO in
5329 [\\/]* | ?:[\\/]*)
5330 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5331 ;;
5332 *)
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5335 do
5336 IFS=$as_save_IFS
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5340 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 break 2
5343 fi
5344 done
5345 done
5346 IFS=$as_save_IFS
5347
5348 ;;
5349 esac
5350 fi
5351 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5352 if test -n "$INSTALL_INFO"; then
5353 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5354 $as_echo "$INSTALL_INFO" >&6; }
5355 else
5356 { $as_echo "$as_me:$LINENO: result: no" >&5
5357 $as_echo "no" >&6; }
5358 fi
5359
5360
5361 # Extract the first word of "install-info", so it can be a program name with args.
5362 set dummy install-info; ac_word=$2
5363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5366 $as_echo_n "(cached) " >&6
5367 else
5368 case $INSTALL_INFO in
5369 [\\/]* | ?:[\\/]*)
5370 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5371 ;;
5372 *)
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in /usr/sbin
5375 do
5376 IFS=$as_save_IFS
5377 test -z "$as_dir" && as_dir=.
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5380 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5381 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 break 2
5383 fi
5384 done
5385 done
5386 IFS=$as_save_IFS
5387
5388 ;;
5389 esac
5390 fi
5391 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5392 if test -n "$INSTALL_INFO"; then
5393 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5394 $as_echo "$INSTALL_INFO" >&6; }
5395 else
5396 { $as_echo "$as_me:$LINENO: result: no" >&5
5397 $as_echo "no" >&6; }
5398 fi
5399
5400
5401 # Extract the first word of "install-info", so it can be a program name with args.
5402 set dummy install-info; ac_word=$2
5403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5406 $as_echo_n "(cached) " >&6
5407 else
5408 case $INSTALL_INFO in
5409 [\\/]* | ?:[\\/]*)
5410 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5411 ;;
5412 *)
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in /sbin
5415 do
5416 IFS=$as_save_IFS
5417 test -z "$as_dir" && as_dir=.
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5420 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5421 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 break 2
5423 fi
5424 done
5425 done
5426 IFS=$as_save_IFS
5427
5428 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5429 ;;
5430 esac
5431 fi
5432 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5433 if test -n "$INSTALL_INFO"; then
5434 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5435 $as_echo "$INSTALL_INFO" >&6; }
5436 else
5437 { $as_echo "$as_me:$LINENO: result: no" >&5
5438 $as_echo "no" >&6; }
5439 fi
5440
5441
5442 # Extract the first word of "gzip", so it can be a program name with args.
5443 set dummy gzip; ac_word=$2
5444 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5445 $as_echo_n "checking for $ac_word... " >&6; }
5446 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5447 $as_echo_n "(cached) " >&6
5448 else
5449 case $GZIP_PROG in
5450 [\\/]* | ?:[\\/]*)
5451 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5452 ;;
5453 *)
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH
5456 do
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5461 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5462 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 break 2
5464 fi
5465 done
5466 done
5467 IFS=$as_save_IFS
5468
5469 ;;
5470 esac
5471 fi
5472 GZIP_PROG=$ac_cv_path_GZIP_PROG
5473 if test -n "$GZIP_PROG"; then
5474 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5475 $as_echo "$GZIP_PROG" >&6; }
5476 else
5477 { $as_echo "$as_me:$LINENO: result: no" >&5
5478 $as_echo "no" >&6; }
5479 fi
5480
5481
5482
5483
5484 ## Need makeinfo >= 4.6 (?) to build the manuals.
5485 # Extract the first word of "makeinfo", so it can be a program name with args.
5486 set dummy makeinfo; ac_word=$2
5487 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5490 $as_echo_n "(cached) " >&6
5491 else
5492 case $MAKEINFO in
5493 [\\/]* | ?:[\\/]*)
5494 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5495 ;;
5496 *)
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH
5499 do
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 break 2
5507 fi
5508 done
5509 done
5510 IFS=$as_save_IFS
5511
5512 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5513 ;;
5514 esac
5515 fi
5516 MAKEINFO=$ac_cv_path_MAKEINFO
5517 if test -n "$MAKEINFO"; then
5518 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5519 $as_echo "$MAKEINFO" >&6; }
5520 else
5521 { $as_echo "$as_me:$LINENO: result: no" >&5
5522 $as_echo "no" >&6; }
5523 fi
5524
5525
5526 if test "$MAKEINFO" != "no" && \
5527 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
5528 MAKEINFO=no
5529 fi
5530
5531 ## Makeinfo is unusual. For a released Emacs, the manuals are
5532 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5533 ## therefore in the category of "special tools" not normally required, which
5534 ## configure does not have to check for (eg autoconf itself).
5535 ## In a CVS checkout on the other hand, the manuals are not included.
5536 ## So makeinfo is a requirement to build from CVS, and configure
5537 ## should test for it as it does for any other build requirement.
5538 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5539 ## with pre-built manuals, from a CVS checkout.
5540 if test "$MAKEINFO" = "no"; then
5541 if test "x${with_makeinfo}" = "xno"; then
5542 MAKEINFO=off
5543 elif ! test -e $srcdir/info/emacs; then
5544 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5545 source tree does not seem to have pre-built manuals in the \`info' directory.
5546 Either install a suitable version of makeinfo, or re-run configure
5547 with the \`--without-makeinfo' option to build without the manuals. " >&5
5548 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5549 source tree does not seem to have pre-built manuals in the \`info' directory.
5550 Either install a suitable version of makeinfo, or re-run configure
5551 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5552 { (exit 1); exit 1; }; }
5553 fi
5554 fi
5555
5556
5557 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5558 then
5559 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5560 fi
5561
5562 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5563 then
5564 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5565 fi
5566
5567
5568 late_LDFLAGS=$LDFLAGS
5569 if test "$GCC" = yes; then
5570 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5571 else
5572 LDFLAGS="$LDFLAGS -znocombreloc"
5573 fi
5574
5575 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5576 $as_echo_n "checking for -znocombreloc... " >&6; }
5577 cat >conftest.$ac_ext <<_ACEOF
5578 main(){return 0;}
5579 _ACEOF
5580 rm -f conftest.$ac_objext conftest$ac_exeext
5581 if { (ac_try="$ac_link"
5582 case "(($ac_try" in
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5585 esac
5586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5587 $as_echo "$ac_try_echo") >&5
5588 (eval "$ac_link") 2>conftest.er1
5589 ac_status=$?
5590 grep -v '^ *+' conftest.er1 >conftest.err
5591 rm -f conftest.er1
5592 cat conftest.err >&5
5593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } && {
5595 test -z "$ac_c_werror_flag" ||
5596 test ! -s conftest.err
5597 } && test -s conftest$ac_exeext && {
5598 test "$cross_compiling" = yes ||
5599 $as_test_x conftest$ac_exeext
5600 }; then
5601 { $as_echo "$as_me:$LINENO: result: yes" >&5
5602 $as_echo "yes" >&6; }
5603 else
5604 $as_echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.$ac_ext >&5
5606
5607 LDFLAGS=$late_LDFLAGS
5608 { $as_echo "$as_me:$LINENO: result: no" >&5
5609 $as_echo "no" >&6; }
5610 fi
5611
5612 rm -rf conftest.dSYM
5613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5614 conftest$ac_exeext conftest.$ac_ext
5615
5616 #### Extract some information from the operating system and machine files.
5617
5618 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5619 - which libraries the lib-src programs will want, and
5620 - whether the GNU malloc routines are usable..." >&5
5621 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5622 - which libraries the lib-src programs will want, and
5623 - whether the GNU malloc routines are usable..." >&6;}
5624
5625 ### First figure out CFLAGS (which we use for running the compiler here)
5626 ### and REAL_CFLAGS (which we use for real compilation).
5627 ### The two are the same except on a few systems, where they are made
5628 ### different to work around various lossages. For example,
5629 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5630 ### as implying static linking.
5631
5632 ### If the CFLAGS env var is specified, we use that value
5633 ### instead of the default.
5634
5635 ### It's not important that this name contain the PID; you can't run
5636 ### two configures in the same directory and have anything work
5637 ### anyway.
5638 tempcname="conftest.c"
5639
5640 echo '
5641 #include "'${srcdir}'/src/'${opsysfile}'"
5642 #include "'${srcdir}'/src/'${machfile}'"
5643 #ifndef LIBS_MACHINE
5644 #define LIBS_MACHINE
5645 #endif
5646 #ifndef LIBS_SYSTEM
5647 #define LIBS_SYSTEM
5648 #endif
5649 #ifndef C_SWITCH_SYSTEM
5650 #define C_SWITCH_SYSTEM
5651 #endif
5652 #ifndef C_SWITCH_MACHINE
5653 #define C_SWITCH_MACHINE
5654 #endif
5655 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5656 configure___ c_switch_system=C_SWITCH_SYSTEM
5657 configure___ c_switch_machine=C_SWITCH_MACHINE
5658
5659 #ifndef LIB_X11_LIB
5660 #define LIB_X11_LIB -lX11
5661 #endif
5662
5663 #ifndef LIBX11_SYSTEM
5664 #define LIBX11_SYSTEM
5665 #endif
5666 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5667
5668 #ifdef UNEXEC
5669 configure___ unexec=UNEXEC
5670 #else
5671 configure___ unexec=unexec.o
5672 #endif
5673
5674 #ifdef SYSTEM_MALLOC
5675 configure___ system_malloc=yes
5676 #else
5677 configure___ system_malloc=no
5678 #endif
5679
5680 #ifdef USE_MMAP_FOR_BUFFERS
5681 configure___ use_mmap_for_buffers=yes
5682 #else
5683 configure___ use_mmap_for_buffers=no
5684 #endif
5685
5686 #ifndef C_DEBUG_SWITCH
5687 #define C_DEBUG_SWITCH -g
5688 #endif
5689
5690 #ifndef C_OPTIMIZE_SWITCH
5691 #ifdef __GNUC__
5692 #define C_OPTIMIZE_SWITCH -O2
5693 #else
5694 #define C_OPTIMIZE_SWITCH -O
5695 #endif
5696 #endif
5697
5698 #ifndef C_WARNINGS_SWITCH
5699 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5700 #endif
5701
5702 #ifndef LD_SWITCH_MACHINE
5703 #define LD_SWITCH_MACHINE
5704 #endif
5705
5706 #ifndef LD_SWITCH_SYSTEM
5707 #define LD_SWITCH_SYSTEM
5708 #endif
5709
5710 #ifndef LD_SWITCH_X_SITE_AUX
5711 #define LD_SWITCH_X_SITE_AUX
5712 #endif
5713
5714 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5715 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5716
5717 #ifdef THIS_IS_CONFIGURE
5718
5719 /* Get the CFLAGS for tests in configure. */
5720 #ifdef __GNUC__
5721 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5722 #else
5723 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5724 #endif
5725
5726 #else /* not THIS_IS_CONFIGURE */
5727
5728 /* Get the CFLAGS for real compilation. */
5729 #ifdef __GNUC__
5730 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5731 #else
5732 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5733 #endif
5734
5735 #endif /* not THIS_IS_CONFIGURE */
5736 ' > ${tempcname}
5737
5738 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5739
5740 # The value of CPP is a quoted variable reference, so we need to do this
5741 # to get its actual value...
5742 CPP=`eval "echo $CPP"`
5743 eval `${CPP} -Isrc ${tempcname} \
5744 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5745 if test "x$SPECIFIED_CFLAGS" = x; then
5746 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5747 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5748 else
5749 REAL_CFLAGS="$CFLAGS"
5750 fi
5751 rm ${tempcname}
5752
5753 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5754
5755 ### Make sure subsequent tests use flags consistent with the build flags.
5756
5757 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5758 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5759 else
5760 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5761 fi
5762
5763
5764
5765 # Check whether --enable-largefile was given.
5766 if test "${enable_largefile+set}" = set; then
5767 enableval=$enable_largefile;
5768 fi
5769
5770 if test "$enable_largefile" != no; then
5771
5772 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5773 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5774 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5775 $as_echo_n "(cached) " >&6
5776 else
5777 ac_cv_sys_largefile_CC=no
5778 if test "$GCC" != yes; then
5779 ac_save_CC=$CC
5780 while :; do
5781 # IRIX 6.2 and later do not support large files by default,
5782 # so use the C compiler's -n32 option if that helps.
5783 cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h. */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 #include <sys/types.h>
5790 /* Check that off_t can represent 2**63 - 1 correctly.
5791 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5792 since some C++ compilers masquerading as C compilers
5793 incorrectly reject 9223372036854775807. */
5794 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5795 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5796 && LARGE_OFF_T % 2147483647 == 1)
5797 ? 1 : -1];
5798 int
5799 main ()
5800 {
5801
5802 ;
5803 return 0;
5804 }
5805 _ACEOF
5806 rm -f conftest.$ac_objext
5807 if { (ac_try="$ac_compile"
5808 case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811 esac
5812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5813 $as_echo "$ac_try_echo") >&5
5814 (eval "$ac_compile") 2>conftest.er1
5815 ac_status=$?
5816 grep -v '^ *+' conftest.er1 >conftest.err
5817 rm -f conftest.er1
5818 cat conftest.err >&5
5819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } && {
5821 test -z "$ac_c_werror_flag" ||
5822 test ! -s conftest.err
5823 } && test -s conftest.$ac_objext; then
5824 break
5825 else
5826 $as_echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829
5830 fi
5831
5832 rm -f core conftest.err conftest.$ac_objext
5833 CC="$CC -n32"
5834 rm -f conftest.$ac_objext
5835 if { (ac_try="$ac_compile"
5836 case "(($ac_try" in
5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5839 esac
5840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5841 $as_echo "$ac_try_echo") >&5
5842 (eval "$ac_compile") 2>conftest.er1
5843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } && {
5849 test -z "$ac_c_werror_flag" ||
5850 test ! -s conftest.err
5851 } && test -s conftest.$ac_objext; then
5852 ac_cv_sys_largefile_CC=' -n32'; break
5853 else
5854 $as_echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5856
5857
5858 fi
5859
5860 rm -f core conftest.err conftest.$ac_objext
5861 break
5862 done
5863 CC=$ac_save_CC
5864 rm -f conftest.$ac_ext
5865 fi
5866 fi
5867 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5868 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5869 if test "$ac_cv_sys_largefile_CC" != no; then
5870 CC=$CC$ac_cv_sys_largefile_CC
5871 fi
5872
5873 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5874 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5875 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5876 $as_echo_n "(cached) " >&6
5877 else
5878 while :; do
5879 cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h. */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885 #include <sys/types.h>
5886 /* Check that off_t can represent 2**63 - 1 correctly.
5887 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5888 since some C++ compilers masquerading as C compilers
5889 incorrectly reject 9223372036854775807. */
5890 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5891 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5892 && LARGE_OFF_T % 2147483647 == 1)
5893 ? 1 : -1];
5894 int
5895 main ()
5896 {
5897
5898 ;
5899 return 0;
5900 }
5901 _ACEOF
5902 rm -f conftest.$ac_objext
5903 if { (ac_try="$ac_compile"
5904 case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907 esac
5908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5909 $as_echo "$ac_try_echo") >&5
5910 (eval "$ac_compile") 2>conftest.er1
5911 ac_status=$?
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
5915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } && {
5917 test -z "$ac_c_werror_flag" ||
5918 test ! -s conftest.err
5919 } && test -s conftest.$ac_objext; then
5920 ac_cv_sys_file_offset_bits=no; break
5921 else
5922 $as_echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5924
5925
5926 fi
5927
5928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5929 cat >conftest.$ac_ext <<_ACEOF
5930 /* confdefs.h. */
5931 _ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5935 #define _FILE_OFFSET_BITS 64
5936 #include <sys/types.h>
5937 /* Check that off_t can represent 2**63 - 1 correctly.
5938 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5939 since some C++ compilers masquerading as C compilers
5940 incorrectly reject 9223372036854775807. */
5941 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5942 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5943 && LARGE_OFF_T % 2147483647 == 1)
5944 ? 1 : -1];
5945 int
5946 main ()
5947 {
5948
5949 ;
5950 return 0;
5951 }
5952 _ACEOF
5953 rm -f conftest.$ac_objext
5954 if { (ac_try="$ac_compile"
5955 case "(($ac_try" in
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5958 esac
5959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5960 $as_echo "$ac_try_echo") >&5
5961 (eval "$ac_compile") 2>conftest.er1
5962 ac_status=$?
5963 grep -v '^ *+' conftest.er1 >conftest.err
5964 rm -f conftest.er1
5965 cat conftest.err >&5
5966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } && {
5968 test -z "$ac_c_werror_flag" ||
5969 test ! -s conftest.err
5970 } && test -s conftest.$ac_objext; then
5971 ac_cv_sys_file_offset_bits=64; break
5972 else
5973 $as_echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5975
5976
5977 fi
5978
5979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980 ac_cv_sys_file_offset_bits=unknown
5981 break
5982 done
5983 fi
5984 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5985 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5986 case $ac_cv_sys_file_offset_bits in #(
5987 no | unknown) ;;
5988 *)
5989 cat >>confdefs.h <<_ACEOF
5990 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5991 _ACEOF
5992 ;;
5993 esac
5994 rm -rf conftest*
5995 if test $ac_cv_sys_file_offset_bits = unknown; then
5996 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5997 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5998 if test "${ac_cv_sys_large_files+set}" = set; then
5999 $as_echo_n "(cached) " >&6
6000 else
6001 while :; do
6002 cat >conftest.$ac_ext <<_ACEOF
6003 /* confdefs.h. */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6008 #include <sys/types.h>
6009 /* Check that off_t can represent 2**63 - 1 correctly.
6010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6011 since some C++ compilers masquerading as C compilers
6012 incorrectly reject 9223372036854775807. */
6013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6015 && LARGE_OFF_T % 2147483647 == 1)
6016 ? 1 : -1];
6017 int
6018 main ()
6019 {
6020
6021 ;
6022 return 0;
6023 }
6024 _ACEOF
6025 rm -f conftest.$ac_objext
6026 if { (ac_try="$ac_compile"
6027 case "(($ac_try" in
6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029 *) ac_try_echo=$ac_try;;
6030 esac
6031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6032 $as_echo "$ac_try_echo") >&5
6033 (eval "$ac_compile") 2>conftest.er1
6034 ac_status=$?
6035 grep -v '^ *+' conftest.er1 >conftest.err
6036 rm -f conftest.er1
6037 cat conftest.err >&5
6038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } && {
6040 test -z "$ac_c_werror_flag" ||
6041 test ! -s conftest.err
6042 } && test -s conftest.$ac_objext; then
6043 ac_cv_sys_large_files=no; break
6044 else
6045 $as_echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6047
6048
6049 fi
6050
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h. */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6058 #define _LARGE_FILES 1
6059 #include <sys/types.h>
6060 /* Check that off_t can represent 2**63 - 1 correctly.
6061 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6062 since some C++ compilers masquerading as C compilers
6063 incorrectly reject 9223372036854775807. */
6064 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6065 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6066 && LARGE_OFF_T % 2147483647 == 1)
6067 ? 1 : -1];
6068 int
6069 main ()
6070 {
6071
6072 ;
6073 return 0;
6074 }
6075 _ACEOF
6076 rm -f conftest.$ac_objext
6077 if { (ac_try="$ac_compile"
6078 case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6081 esac
6082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6083 $as_echo "$ac_try_echo") >&5
6084 (eval "$ac_compile") 2>conftest.er1
6085 ac_status=$?
6086 grep -v '^ *+' conftest.er1 >conftest.err
6087 rm -f conftest.er1
6088 cat conftest.err >&5
6089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } && {
6091 test -z "$ac_c_werror_flag" ||
6092 test ! -s conftest.err
6093 } && test -s conftest.$ac_objext; then
6094 ac_cv_sys_large_files=1; break
6095 else
6096 $as_echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6098
6099
6100 fi
6101
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103 ac_cv_sys_large_files=unknown
6104 break
6105 done
6106 fi
6107 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6108 $as_echo "$ac_cv_sys_large_files" >&6; }
6109 case $ac_cv_sys_large_files in #(
6110 no | unknown) ;;
6111 *)
6112 cat >>confdefs.h <<_ACEOF
6113 #define _LARGE_FILES $ac_cv_sys_large_files
6114 _ACEOF
6115 ;;
6116 esac
6117 rm -rf conftest*
6118 fi
6119 fi
6120
6121
6122
6123 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6124 ### be located in either /usr/lib64 or /usr/lib.
6125 ### In some rare cases, /usr/lib64 exists but does not contain the
6126 ### relevant files (bug#1287). Hence test for crtn.o.
6127 case "${canonical}" in
6128 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6129 if test -e /usr/lib64/crtn.o; then
6130
6131 cat >>confdefs.h <<\_ACEOF
6132 #define HAVE_LIB64_DIR 1
6133 _ACEOF
6134
6135 fi
6136 esac
6137
6138
6139
6140
6141 if test "${with_sound}" != "no"; then
6142 # Sound support for GNU/Linux and the free BSDs.
6143
6144
6145
6146 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6147 do
6148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6151 $as_echo_n "checking for $ac_header... " >&6; }
6152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6153 $as_echo_n "(cached) " >&6
6154 fi
6155 ac_res=`eval 'as_val=${'$as_ac_Header'}
6156 $as_echo "$as_val"'`
6157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6158 $as_echo "$ac_res" >&6; }
6159 else
6160 # Is the header compilable?
6161 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6162 $as_echo_n "checking $ac_header usability... " >&6; }
6163 cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h. */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 $ac_includes_default
6170 #include <$ac_header>
6171 _ACEOF
6172 rm -f conftest.$ac_objext
6173 if { (ac_try="$ac_compile"
6174 case "(($ac_try" in
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6177 esac
6178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6179 $as_echo "$ac_try_echo") >&5
6180 (eval "$ac_compile") 2>conftest.er1
6181 ac_status=$?
6182 grep -v '^ *+' conftest.er1 >conftest.err
6183 rm -f conftest.er1
6184 cat conftest.err >&5
6185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && {
6187 test -z "$ac_c_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest.$ac_objext; then
6190 ac_header_compiler=yes
6191 else
6192 $as_echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6194
6195 ac_header_compiler=no
6196 fi
6197
6198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6199 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6200 $as_echo "$ac_header_compiler" >&6; }
6201
6202 # Is the header present?
6203 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6204 $as_echo_n "checking $ac_header presence... " >&6; }
6205 cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h. */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 #include <$ac_header>
6212 _ACEOF
6213 if { (ac_try="$ac_cpp conftest.$ac_ext"
6214 case "(($ac_try" in
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6217 esac
6218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6219 $as_echo "$ac_try_echo") >&5
6220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6221 ac_status=$?
6222 grep -v '^ *+' conftest.er1 >conftest.err
6223 rm -f conftest.er1
6224 cat conftest.err >&5
6225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } >/dev/null && {
6227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6228 test ! -s conftest.err
6229 }; then
6230 ac_header_preproc=yes
6231 else
6232 $as_echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6234
6235 ac_header_preproc=no
6236 fi
6237
6238 rm -f conftest.err conftest.$ac_ext
6239 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6240 $as_echo "$ac_header_preproc" >&6; }
6241
6242 # So? What about this header?
6243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6244 yes:no: )
6245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6246 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6248 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6249 ac_header_preproc=yes
6250 ;;
6251 no:yes:* )
6252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6253 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6255 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6257 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6259 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6261 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6263 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6264
6265 ;;
6266 esac
6267 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6268 $as_echo_n "checking for $ac_header... " >&6; }
6269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6270 $as_echo_n "(cached) " >&6
6271 else
6272 eval "$as_ac_Header=\$ac_header_preproc"
6273 fi
6274 ac_res=`eval 'as_val=${'$as_ac_Header'}
6275 $as_echo "$as_val"'`
6276 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6277 $as_echo "$ac_res" >&6; }
6278
6279 fi
6280 if test `eval 'as_val=${'$as_ac_Header'}
6281 $as_echo "$as_val"'` = yes; then
6282 cat >>confdefs.h <<_ACEOF
6283 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6284 _ACEOF
6285
6286 fi
6287
6288 done
6289
6290 # Emulation library used on NetBSD.
6291 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6292 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6293 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6294 $as_echo_n "(cached) " >&6
6295 else
6296 ac_check_lib_save_LIBS=$LIBS
6297 LIBS="-lossaudio $LIBS"
6298 cat >conftest.$ac_ext <<_ACEOF
6299 /* confdefs.h. */
6300 _ACEOF
6301 cat confdefs.h >>conftest.$ac_ext
6302 cat >>conftest.$ac_ext <<_ACEOF
6303 /* end confdefs.h. */
6304
6305 /* Override any GCC internal prototype to avoid an error.
6306 Use char because int might match the return type of a GCC
6307 builtin and then its argument prototype would still apply. */
6308 #ifdef __cplusplus
6309 extern "C"
6310 #endif
6311 char _oss_ioctl ();
6312 int
6313 main ()
6314 {
6315 return _oss_ioctl ();
6316 ;
6317 return 0;
6318 }
6319 _ACEOF
6320 rm -f conftest.$ac_objext conftest$ac_exeext
6321 if { (ac_try="$ac_link"
6322 case "(($ac_try" in
6323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324 *) ac_try_echo=$ac_try;;
6325 esac
6326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6327 $as_echo "$ac_try_echo") >&5
6328 (eval "$ac_link") 2>conftest.er1
6329 ac_status=$?
6330 grep -v '^ *+' conftest.er1 >conftest.err
6331 rm -f conftest.er1
6332 cat conftest.err >&5
6333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } && {
6335 test -z "$ac_c_werror_flag" ||
6336 test ! -s conftest.err
6337 } && test -s conftest$ac_exeext && {
6338 test "$cross_compiling" = yes ||
6339 $as_test_x conftest$ac_exeext
6340 }; then
6341 ac_cv_lib_ossaudio__oss_ioctl=yes
6342 else
6343 $as_echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6345
6346 ac_cv_lib_ossaudio__oss_ioctl=no
6347 fi
6348
6349 rm -rf conftest.dSYM
6350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6351 conftest$ac_exeext conftest.$ac_ext
6352 LIBS=$ac_check_lib_save_LIBS
6353 fi
6354 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6355 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6356 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6357 LIBSOUND=-lossaudio
6358 else
6359 LIBSOUND=
6360 fi
6361
6362
6363
6364 ALSA_REQUIRED=1.0.0
6365 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6366
6367 succeeded=no
6368
6369 # Extract the first word of "pkg-config", so it can be a program name with args.
6370 set dummy pkg-config; ac_word=$2
6371 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6372 $as_echo_n "checking for $ac_word... " >&6; }
6373 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6374 $as_echo_n "(cached) " >&6
6375 else
6376 case $PKG_CONFIG in
6377 [\\/]* | ?:[\\/]*)
6378 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6379 ;;
6380 *)
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 for as_dir in $PATH
6383 do
6384 IFS=$as_save_IFS
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6388 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 break 2
6391 fi
6392 done
6393 done
6394 IFS=$as_save_IFS
6395
6396 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6397 ;;
6398 esac
6399 fi
6400 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6401 if test -n "$PKG_CONFIG"; then
6402 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6403 $as_echo "$PKG_CONFIG" >&6; }
6404 else
6405 { $as_echo "$as_me:$LINENO: result: no" >&5
6406 $as_echo "no" >&6; }
6407 fi
6408
6409
6410
6411 if test "$PKG_CONFIG" = "no" ; then
6412 HAVE_ALSA=no
6413 else
6414 PKG_CONFIG_MIN_VERSION=0.9.0
6415 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6416 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6417 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6418
6419 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6420 { $as_echo "$as_me:$LINENO: result: yes" >&5
6421 $as_echo "yes" >&6; }
6422 succeeded=yes
6423
6424 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6425 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6426 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6427 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6428 $as_echo "$ALSA_CFLAGS" >&6; }
6429
6430 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6431 $as_echo_n "checking ALSA_LIBS... " >&6; }
6432 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6433 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6434 $as_echo "$ALSA_LIBS" >&6; }
6435 else
6436 { $as_echo "$as_me:$LINENO: result: no" >&5
6437 $as_echo "no" >&6; }
6438 ALSA_CFLAGS=""
6439 ALSA_LIBS=""
6440 ## If we have a custom action on failure, don't print errors, but
6441 ## do set a variable so people can do so.
6442 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6443
6444 fi
6445
6446
6447
6448 else
6449 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6450 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6451 fi
6452 fi
6453
6454 if test $succeeded = yes; then
6455 HAVE_ALSA=yes
6456 else
6457 HAVE_ALSA=no
6458 fi
6459
6460 if test $HAVE_ALSA = yes; then
6461 SAVE_CFLAGS="$CFLAGS"
6462 SAVE_LDFLAGS="$LDFLAGS"
6463 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6464 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6465 cat >conftest.$ac_ext <<_ACEOF
6466 /* confdefs.h. */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6471 #include <asoundlib.h>
6472 int
6473 main ()
6474 {
6475 snd_lib_error_set_handler (0);
6476 ;
6477 return 0;
6478 }
6479 _ACEOF
6480 rm -f conftest.$ac_objext
6481 if { (ac_try="$ac_compile"
6482 case "(($ac_try" in
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6485 esac
6486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6487 $as_echo "$ac_try_echo") >&5
6488 (eval "$ac_compile") 2>conftest.er1
6489 ac_status=$?
6490 grep -v '^ *+' conftest.er1 >conftest.err
6491 rm -f conftest.er1
6492 cat conftest.err >&5
6493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } && {
6495 test -z "$ac_c_werror_flag" ||
6496 test ! -s conftest.err
6497 } && test -s conftest.$ac_objext; then
6498 emacs_alsa_normal=yes
6499 else
6500 $as_echo "$as_me: failed program was:" >&5
6501 sed 's/^/| /' conftest.$ac_ext >&5
6502
6503 emacs_alsa_normal=no
6504 fi
6505
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 if test "$emacs_alsa_normal" != yes; then
6508 cat >conftest.$ac_ext <<_ACEOF
6509 /* confdefs.h. */
6510 _ACEOF
6511 cat confdefs.h >>conftest.$ac_ext
6512 cat >>conftest.$ac_ext <<_ACEOF
6513 /* end confdefs.h. */
6514 #include <alsa/asoundlib.h>
6515 int
6516 main ()
6517 {
6518 snd_lib_error_set_handler (0);
6519 ;
6520 return 0;
6521 }
6522 _ACEOF
6523 rm -f conftest.$ac_objext
6524 if { (ac_try="$ac_compile"
6525 case "(($ac_try" in
6526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527 *) ac_try_echo=$ac_try;;
6528 esac
6529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6530 $as_echo "$ac_try_echo") >&5
6531 (eval "$ac_compile") 2>conftest.er1
6532 ac_status=$?
6533 grep -v '^ *+' conftest.er1 >conftest.err
6534 rm -f conftest.er1
6535 cat conftest.err >&5
6536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } && {
6538 test -z "$ac_c_werror_flag" ||
6539 test ! -s conftest.err
6540 } && test -s conftest.$ac_objext; then
6541 emacs_alsa_subdir=yes
6542 else
6543 $as_echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6545
6546 emacs_alsa_subdir=no
6547 fi
6548
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6550 if test "$emacs_alsa_subdir" != yes; then
6551 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6552 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6553 { (exit 1); exit 1; }; }
6554 fi
6555 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6556 fi
6557
6558 CFLAGS="$SAVE_CFLAGS"
6559 LDFLAGS="$SAVE_LDFLAGS"
6560 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6561 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6562
6563 cat >>confdefs.h <<\_ACEOF
6564 #define HAVE_ALSA 1
6565 _ACEOF
6566
6567 fi
6568
6569 fi
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
6596 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6597 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6598 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6599 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6600 sys/utsname.h pwd.h
6601 do
6602 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6604 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6605 $as_echo_n "checking for $ac_header... " >&6; }
6606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6607 $as_echo_n "(cached) " >&6
6608 fi
6609 ac_res=`eval 'as_val=${'$as_ac_Header'}
6610 $as_echo "$as_val"'`
6611 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6612 $as_echo "$ac_res" >&6; }
6613 else
6614 # Is the header compilable?
6615 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6616 $as_echo_n "checking $ac_header usability... " >&6; }
6617 cat >conftest.$ac_ext <<_ACEOF
6618 /* confdefs.h. */
6619 _ACEOF
6620 cat confdefs.h >>conftest.$ac_ext
6621 cat >>conftest.$ac_ext <<_ACEOF
6622 /* end confdefs.h. */
6623 $ac_includes_default
6624 #include <$ac_header>
6625 _ACEOF
6626 rm -f conftest.$ac_objext
6627 if { (ac_try="$ac_compile"
6628 case "(($ac_try" in
6629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6630 *) ac_try_echo=$ac_try;;
6631 esac
6632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6633 $as_echo "$ac_try_echo") >&5
6634 (eval "$ac_compile") 2>conftest.er1
6635 ac_status=$?
6636 grep -v '^ *+' conftest.er1 >conftest.err
6637 rm -f conftest.er1
6638 cat conftest.err >&5
6639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } && {
6641 test -z "$ac_c_werror_flag" ||
6642 test ! -s conftest.err
6643 } && test -s conftest.$ac_objext; then
6644 ac_header_compiler=yes
6645 else
6646 $as_echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6648
6649 ac_header_compiler=no
6650 fi
6651
6652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6653 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6654 $as_echo "$ac_header_compiler" >&6; }
6655
6656 # Is the header present?
6657 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6658 $as_echo_n "checking $ac_header presence... " >&6; }
6659 cat >conftest.$ac_ext <<_ACEOF
6660 /* confdefs.h. */
6661 _ACEOF
6662 cat confdefs.h >>conftest.$ac_ext
6663 cat >>conftest.$ac_ext <<_ACEOF
6664 /* end confdefs.h. */
6665 #include <$ac_header>
6666 _ACEOF
6667 if { (ac_try="$ac_cpp conftest.$ac_ext"
6668 case "(($ac_try" in
6669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6671 esac
6672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6673 $as_echo "$ac_try_echo") >&5
6674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6675 ac_status=$?
6676 grep -v '^ *+' conftest.er1 >conftest.err
6677 rm -f conftest.er1
6678 cat conftest.err >&5
6679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } >/dev/null && {
6681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6682 test ! -s conftest.err
6683 }; then
6684 ac_header_preproc=yes
6685 else
6686 $as_echo "$as_me: failed program was:" >&5
6687 sed 's/^/| /' conftest.$ac_ext >&5
6688
6689 ac_header_preproc=no
6690 fi
6691
6692 rm -f conftest.err conftest.$ac_ext
6693 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6694 $as_echo "$ac_header_preproc" >&6; }
6695
6696 # So? What about this header?
6697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6698 yes:no: )
6699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6700 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6702 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6703 ac_header_preproc=yes
6704 ;;
6705 no:yes:* )
6706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6707 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6709 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6711 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6713 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6715 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6717 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6718
6719 ;;
6720 esac
6721 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6722 $as_echo_n "checking for $ac_header... " >&6; }
6723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6724 $as_echo_n "(cached) " >&6
6725 else
6726 eval "$as_ac_Header=\$ac_header_preproc"
6727 fi
6728 ac_res=`eval 'as_val=${'$as_ac_Header'}
6729 $as_echo "$as_val"'`
6730 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6731 $as_echo "$ac_res" >&6; }
6732
6733 fi
6734 if test `eval 'as_val=${'$as_ac_Header'}
6735 $as_echo "$as_val"'` = yes; then
6736 cat >>confdefs.h <<_ACEOF
6737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6738 _ACEOF
6739
6740 fi
6741
6742 done
6743
6744
6745 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6746 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6747 cat >conftest.$ac_ext <<_ACEOF
6748 /* confdefs.h. */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 #include <sys/personality.h>
6754 int
6755 main ()
6756 {
6757 personality (PER_LINUX32)
6758 ;
6759 return 0;
6760 }
6761 _ACEOF
6762 rm -f conftest.$ac_objext
6763 if { (ac_try="$ac_compile"
6764 case "(($ac_try" in
6765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6766 *) ac_try_echo=$ac_try;;
6767 esac
6768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6769 $as_echo "$ac_try_echo") >&5
6770 (eval "$ac_compile") 2>conftest.er1
6771 ac_status=$?
6772 grep -v '^ *+' conftest.er1 >conftest.err
6773 rm -f conftest.er1
6774 cat conftest.err >&5
6775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } && {
6777 test -z "$ac_c_werror_flag" ||
6778 test ! -s conftest.err
6779 } && test -s conftest.$ac_objext; then
6780 emacs_cv_personality_linux32=yes
6781 else
6782 $as_echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6784
6785 emacs_cv_personality_linux32=no
6786 fi
6787
6788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6790 $as_echo "$emacs_cv_personality_linux32" >&6; }
6791
6792 if test $emacs_cv_personality_linux32 = yes; then
6793
6794 cat >>confdefs.h <<\_ACEOF
6795 #define HAVE_PERSONALITY_LINUX32 1
6796 _ACEOF
6797
6798 fi
6799
6800
6801 for ac_header in term.h
6802 do
6803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6804 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6805 $as_echo_n "checking for $ac_header... " >&6; }
6806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6807 $as_echo_n "(cached) " >&6
6808 else
6809 cat >conftest.$ac_ext <<_ACEOF
6810 /* confdefs.h. */
6811 _ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6815 #include <$ac_header>
6816 _ACEOF
6817 if { (ac_try="$ac_cpp conftest.$ac_ext"
6818 case "(($ac_try" in
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6821 esac
6822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6823 $as_echo "$ac_try_echo") >&5
6824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } >/dev/null && {
6831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 }; then
6834 eval "$as_ac_Header=yes"
6835 else
6836 $as_echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6838
6839 eval "$as_ac_Header=no"
6840 fi
6841
6842 rm -f conftest.err conftest.$ac_ext
6843 fi
6844 ac_res=`eval 'as_val=${'$as_ac_Header'}
6845 $as_echo "$as_val"'`
6846 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6847 $as_echo "$ac_res" >&6; }
6848 if test `eval 'as_val=${'$as_ac_Header'}
6849 $as_echo "$as_val"'` = yes; then
6850 cat >>confdefs.h <<_ACEOF
6851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6852 _ACEOF
6853
6854 fi
6855
6856 done
6857
6858 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6859 $as_echo_n "checking for ANSI C header files... " >&6; }
6860 if test "${ac_cv_header_stdc+set}" = set; then
6861 $as_echo_n "(cached) " >&6
6862 else
6863 cat >conftest.$ac_ext <<_ACEOF
6864 /* confdefs.h. */
6865 _ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h. */
6869 #include <stdlib.h>
6870 #include <stdarg.h>
6871 #include <string.h>
6872 #include <float.h>
6873
6874 int
6875 main ()
6876 {
6877
6878 ;
6879 return 0;
6880 }
6881 _ACEOF
6882 rm -f conftest.$ac_objext
6883 if { (ac_try="$ac_compile"
6884 case "(($ac_try" in
6885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886 *) ac_try_echo=$ac_try;;
6887 esac
6888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6889 $as_echo "$ac_try_echo") >&5
6890 (eval "$ac_compile") 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest.$ac_objext; then
6900 ac_cv_header_stdc=yes
6901 else
6902 $as_echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6904
6905 ac_cv_header_stdc=no
6906 fi
6907
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909
6910 if test $ac_cv_header_stdc = yes; then
6911 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6912 cat >conftest.$ac_ext <<_ACEOF
6913 /* confdefs.h. */
6914 _ACEOF
6915 cat confdefs.h >>conftest.$ac_ext
6916 cat >>conftest.$ac_ext <<_ACEOF
6917 /* end confdefs.h. */
6918 #include <string.h>
6919
6920 _ACEOF
6921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6922 $EGREP "memchr" >/dev/null 2>&1; then
6923 :
6924 else
6925 ac_cv_header_stdc=no
6926 fi
6927 rm -f conftest*
6928
6929 fi
6930
6931 if test $ac_cv_header_stdc = yes; then
6932 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6933 cat >conftest.$ac_ext <<_ACEOF
6934 /* confdefs.h. */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h. */
6939 #include <stdlib.h>
6940
6941 _ACEOF
6942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6943 $EGREP "free" >/dev/null 2>&1; then
6944 :
6945 else
6946 ac_cv_header_stdc=no
6947 fi
6948 rm -f conftest*
6949
6950 fi
6951
6952 if test $ac_cv_header_stdc = yes; then
6953 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6954 if test "$cross_compiling" = yes; then
6955 :
6956 else
6957 cat >conftest.$ac_ext <<_ACEOF
6958 /* confdefs.h. */
6959 _ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6963 #include <ctype.h>
6964 #include <stdlib.h>
6965 #if ((' ' & 0x0FF) == 0x020)
6966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6968 #else
6969 # define ISLOWER(c) \
6970 (('a' <= (c) && (c) <= 'i') \
6971 || ('j' <= (c) && (c) <= 'r') \
6972 || ('s' <= (c) && (c) <= 'z'))
6973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6974 #endif
6975
6976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6977 int
6978 main ()
6979 {
6980 int i;
6981 for (i = 0; i < 256; i++)
6982 if (XOR (islower (i), ISLOWER (i))
6983 || toupper (i) != TOUPPER (i))
6984 return 2;
6985 return 0;
6986 }
6987 _ACEOF
6988 rm -f conftest$ac_exeext
6989 if { (ac_try="$ac_link"
6990 case "(($ac_try" in
6991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6992 *) ac_try_echo=$ac_try;;
6993 esac
6994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6995 $as_echo "$ac_try_echo") >&5
6996 (eval "$ac_link") 2>&5
6997 ac_status=$?
6998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7000 { (case "(($ac_try" in
7001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7002 *) ac_try_echo=$ac_try;;
7003 esac
7004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7005 $as_echo "$ac_try_echo") >&5
7006 (eval "$ac_try") 2>&5
7007 ac_status=$?
7008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7010 :
7011 else
7012 $as_echo "$as_me: program exited with status $ac_status" >&5
7013 $as_echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7015
7016 ( exit $ac_status )
7017 ac_cv_header_stdc=no
7018 fi
7019 rm -rf conftest.dSYM
7020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7021 fi
7022
7023
7024 fi
7025 fi
7026 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7027 $as_echo "$ac_cv_header_stdc" >&6; }
7028 if test $ac_cv_header_stdc = yes; then
7029
7030 cat >>confdefs.h <<\_ACEOF
7031 #define STDC_HEADERS 1
7032 _ACEOF
7033
7034 fi
7035
7036 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7037 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7038 if test "${ac_cv_header_time+set}" = set; then
7039 $as_echo_n "(cached) " >&6
7040 else
7041 cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h. */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 #include <sys/types.h>
7048 #include <sys/time.h>
7049 #include <time.h>
7050
7051 int
7052 main ()
7053 {
7054 if ((struct tm *) 0)
7055 return 0;
7056 ;
7057 return 0;
7058 }
7059 _ACEOF
7060 rm -f conftest.$ac_objext
7061 if { (ac_try="$ac_compile"
7062 case "(($ac_try" in
7063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7064 *) ac_try_echo=$ac_try;;
7065 esac
7066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7067 $as_echo "$ac_try_echo") >&5
7068 (eval "$ac_compile") 2>conftest.er1
7069 ac_status=$?
7070 grep -v '^ *+' conftest.er1 >conftest.err
7071 rm -f conftest.er1
7072 cat conftest.err >&5
7073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } && {
7075 test -z "$ac_c_werror_flag" ||
7076 test ! -s conftest.err
7077 } && test -s conftest.$ac_objext; then
7078 ac_cv_header_time=yes
7079 else
7080 $as_echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7082
7083 ac_cv_header_time=no
7084 fi
7085
7086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7087 fi
7088 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7089 $as_echo "$ac_cv_header_time" >&6; }
7090 if test $ac_cv_header_time = yes; then
7091
7092 cat >>confdefs.h <<\_ACEOF
7093 #define TIME_WITH_SYS_TIME 1
7094 _ACEOF
7095
7096 fi
7097
7098 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7099 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7100 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7101 $as_echo_n "(cached) " >&6
7102 else
7103 cat >conftest.$ac_ext <<_ACEOF
7104 /* confdefs.h. */
7105 _ACEOF
7106 cat confdefs.h >>conftest.$ac_ext
7107 cat >>conftest.$ac_ext <<_ACEOF
7108 /* end confdefs.h. */
7109 $ac_includes_default
7110 int
7111 main ()
7112 {
7113 #ifndef sys_siglist
7114 (void) sys_siglist;
7115 #endif
7116
7117 ;
7118 return 0;
7119 }
7120 _ACEOF
7121 rm -f conftest.$ac_objext
7122 if { (ac_try="$ac_compile"
7123 case "(($ac_try" in
7124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7125 *) ac_try_echo=$ac_try;;
7126 esac
7127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7128 $as_echo "$ac_try_echo") >&5
7129 (eval "$ac_compile") 2>conftest.er1
7130 ac_status=$?
7131 grep -v '^ *+' conftest.er1 >conftest.err
7132 rm -f conftest.er1
7133 cat conftest.err >&5
7134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && {
7136 test -z "$ac_c_werror_flag" ||
7137 test ! -s conftest.err
7138 } && test -s conftest.$ac_objext; then
7139 ac_cv_have_decl_sys_siglist=yes
7140 else
7141 $as_echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7143
7144 ac_cv_have_decl_sys_siglist=no
7145 fi
7146
7147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148 fi
7149 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7150 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7151 if test $ac_cv_have_decl_sys_siglist = yes; then
7152
7153 cat >>confdefs.h <<_ACEOF
7154 #define HAVE_DECL_SYS_SIGLIST 1
7155 _ACEOF
7156
7157
7158 else
7159 cat >>confdefs.h <<_ACEOF
7160 #define HAVE_DECL_SYS_SIGLIST 0
7161 _ACEOF
7162
7163
7164 fi
7165
7166
7167 if test $ac_cv_have_decl_sys_siglist != yes; then
7168 # For Tru64, at least:
7169 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7170 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7171 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7172 $as_echo_n "(cached) " >&6
7173 else
7174 cat >conftest.$ac_ext <<_ACEOF
7175 /* confdefs.h. */
7176 _ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 $ac_includes_default
7181 int
7182 main ()
7183 {
7184 #ifndef __sys_siglist
7185 (void) __sys_siglist;
7186 #endif
7187
7188 ;
7189 return 0;
7190 }
7191 _ACEOF
7192 rm -f conftest.$ac_objext
7193 if { (ac_try="$ac_compile"
7194 case "(($ac_try" in
7195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7196 *) ac_try_echo=$ac_try;;
7197 esac
7198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7199 $as_echo "$ac_try_echo") >&5
7200 (eval "$ac_compile") 2>conftest.er1
7201 ac_status=$?
7202 grep -v '^ *+' conftest.er1 >conftest.err
7203 rm -f conftest.er1
7204 cat conftest.err >&5
7205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } && {
7207 test -z "$ac_c_werror_flag" ||
7208 test ! -s conftest.err
7209 } && test -s conftest.$ac_objext; then
7210 ac_cv_have_decl___sys_siglist=yes
7211 else
7212 $as_echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7214
7215 ac_cv_have_decl___sys_siglist=no
7216 fi
7217
7218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219 fi
7220 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7221 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7222 if test $ac_cv_have_decl___sys_siglist = yes; then
7223
7224 cat >>confdefs.h <<_ACEOF
7225 #define HAVE_DECL___SYS_SIGLIST 1
7226 _ACEOF
7227
7228
7229 else
7230 cat >>confdefs.h <<_ACEOF
7231 #define HAVE_DECL___SYS_SIGLIST 0
7232 _ACEOF
7233
7234
7235 fi
7236
7237
7238 if test $ac_cv_have_decl___sys_siglist = yes; then
7239
7240 cat >>confdefs.h <<\_ACEOF
7241 #define sys_siglist __sys_siglist
7242 _ACEOF
7243
7244 fi
7245 fi
7246 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7247 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7248 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7249 $as_echo_n "(cached) " >&6
7250 else
7251 cat >conftest.$ac_ext <<_ACEOF
7252 /* confdefs.h. */
7253 _ACEOF
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h. */
7257 #include <sys/types.h>
7258 #include <sys/wait.h>
7259 #ifndef WEXITSTATUS
7260 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7261 #endif
7262 #ifndef WIFEXITED
7263 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7264 #endif
7265
7266 int
7267 main ()
7268 {
7269 int s;
7270 wait (&s);
7271 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7272 ;
7273 return 0;
7274 }
7275 _ACEOF
7276 rm -f conftest.$ac_objext
7277 if { (ac_try="$ac_compile"
7278 case "(($ac_try" in
7279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280 *) ac_try_echo=$ac_try;;
7281 esac
7282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7283 $as_echo "$ac_try_echo") >&5
7284 (eval "$ac_compile") 2>conftest.er1
7285 ac_status=$?
7286 grep -v '^ *+' conftest.er1 >conftest.err
7287 rm -f conftest.er1
7288 cat conftest.err >&5
7289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } && {
7291 test -z "$ac_c_werror_flag" ||
7292 test ! -s conftest.err
7293 } && test -s conftest.$ac_objext; then
7294 ac_cv_header_sys_wait_h=yes
7295 else
7296 $as_echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7298
7299 ac_cv_header_sys_wait_h=no
7300 fi
7301
7302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303 fi
7304 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7305 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7306 if test $ac_cv_header_sys_wait_h = yes; then
7307
7308 cat >>confdefs.h <<\_ACEOF
7309 #define HAVE_SYS_WAIT_H 1
7310 _ACEOF
7311
7312 fi
7313
7314
7315 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7316 $as_echo_n "checking for struct utimbuf... " >&6; }
7317 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7318 $as_echo_n "(cached) " >&6
7319 else
7320 cat >conftest.$ac_ext <<_ACEOF
7321 /* confdefs.h. */
7322 _ACEOF
7323 cat confdefs.h >>conftest.$ac_ext
7324 cat >>conftest.$ac_ext <<_ACEOF
7325 /* end confdefs.h. */
7326 #ifdef TIME_WITH_SYS_TIME
7327 #include <sys/time.h>
7328 #include <time.h>
7329 #else
7330 #ifdef HAVE_SYS_TIME_H
7331 #include <sys/time.h>
7332 #else
7333 #include <time.h>
7334 #endif
7335 #endif
7336 #ifdef HAVE_UTIME_H
7337 #include <utime.h>
7338 #endif
7339 int
7340 main ()
7341 {
7342 static struct utimbuf x; x.actime = x.modtime;
7343 ;
7344 return 0;
7345 }
7346 _ACEOF
7347 rm -f conftest.$ac_objext
7348 if { (ac_try="$ac_compile"
7349 case "(($ac_try" in
7350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7351 *) ac_try_echo=$ac_try;;
7352 esac
7353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7354 $as_echo "$ac_try_echo") >&5
7355 (eval "$ac_compile") 2>conftest.er1
7356 ac_status=$?
7357 grep -v '^ *+' conftest.er1 >conftest.err
7358 rm -f conftest.er1
7359 cat conftest.err >&5
7360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_c_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest.$ac_objext; then
7365 emacs_cv_struct_utimbuf=yes
7366 else
7367 $as_echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370 emacs_cv_struct_utimbuf=no
7371 fi
7372
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374 fi
7375 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7376 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7377 if test $emacs_cv_struct_utimbuf = yes; then
7378
7379 cat >>confdefs.h <<\_ACEOF
7380 #define HAVE_STRUCT_UTIMBUF 1
7381 _ACEOF
7382
7383 fi
7384
7385 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7386 $as_echo_n "checking return type of signal handlers... " >&6; }
7387 if test "${ac_cv_type_signal+set}" = set; then
7388 $as_echo_n "(cached) " >&6
7389 else
7390 cat >conftest.$ac_ext <<_ACEOF
7391 /* confdefs.h. */
7392 _ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h. */
7396 #include <sys/types.h>
7397 #include <signal.h>
7398
7399 int
7400 main ()
7401 {
7402 return *(signal (0, 0)) (0) == 1;
7403 ;
7404 return 0;
7405 }
7406 _ACEOF
7407 rm -f conftest.$ac_objext
7408 if { (ac_try="$ac_compile"
7409 case "(($ac_try" in
7410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7411 *) ac_try_echo=$ac_try;;
7412 esac
7413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7414 $as_echo "$ac_try_echo") >&5
7415 (eval "$ac_compile") 2>conftest.er1
7416 ac_status=$?
7417 grep -v '^ *+' conftest.er1 >conftest.err
7418 rm -f conftest.er1
7419 cat conftest.err >&5
7420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } && {
7422 test -z "$ac_c_werror_flag" ||
7423 test ! -s conftest.err
7424 } && test -s conftest.$ac_objext; then
7425 ac_cv_type_signal=int
7426 else
7427 $as_echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7429
7430 ac_cv_type_signal=void
7431 fi
7432
7433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 fi
7435 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7436 $as_echo "$ac_cv_type_signal" >&6; }
7437
7438 cat >>confdefs.h <<_ACEOF
7439 #define RETSIGTYPE $ac_cv_type_signal
7440 _ACEOF
7441
7442
7443
7444 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7445 $as_echo_n "checking for speed_t... " >&6; }
7446 if test "${emacs_cv_speed_t+set}" = set; then
7447 $as_echo_n "(cached) " >&6
7448 else
7449 cat >conftest.$ac_ext <<_ACEOF
7450 /* confdefs.h. */
7451 _ACEOF
7452 cat confdefs.h >>conftest.$ac_ext
7453 cat >>conftest.$ac_ext <<_ACEOF
7454 /* end confdefs.h. */
7455 #include <termios.h>
7456 int
7457 main ()
7458 {
7459 speed_t x = 1;
7460 ;
7461 return 0;
7462 }
7463 _ACEOF
7464 rm -f conftest.$ac_objext
7465 if { (ac_try="$ac_compile"
7466 case "(($ac_try" in
7467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7468 *) ac_try_echo=$ac_try;;
7469 esac
7470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7471 $as_echo "$ac_try_echo") >&5
7472 (eval "$ac_compile") 2>conftest.er1
7473 ac_status=$?
7474 grep -v '^ *+' conftest.er1 >conftest.err
7475 rm -f conftest.er1
7476 cat conftest.err >&5
7477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); } && {
7479 test -z "$ac_c_werror_flag" ||
7480 test ! -s conftest.err
7481 } && test -s conftest.$ac_objext; then
7482 emacs_cv_speed_t=yes
7483 else
7484 $as_echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7486
7487 emacs_cv_speed_t=no
7488 fi
7489
7490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491 fi
7492 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7493 $as_echo "$emacs_cv_speed_t" >&6; }
7494 if test $emacs_cv_speed_t = yes; then
7495
7496 cat >>confdefs.h <<\_ACEOF
7497 #define HAVE_SPEED_T 1
7498 _ACEOF
7499
7500 fi
7501
7502 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7503 $as_echo_n "checking for struct timeval... " >&6; }
7504 if test "${emacs_cv_struct_timeval+set}" = set; then
7505 $as_echo_n "(cached) " >&6
7506 else
7507 cat >conftest.$ac_ext <<_ACEOF
7508 /* confdefs.h. */
7509 _ACEOF
7510 cat confdefs.h >>conftest.$ac_ext
7511 cat >>conftest.$ac_ext <<_ACEOF
7512 /* end confdefs.h. */
7513 #ifdef TIME_WITH_SYS_TIME
7514 #include <sys/time.h>
7515 #include <time.h>
7516 #else
7517 #ifdef HAVE_SYS_TIME_H
7518 #include <sys/time.h>
7519 #else
7520 #include <time.h>
7521 #endif
7522 #endif
7523 int
7524 main ()
7525 {
7526 static struct timeval x; x.tv_sec = x.tv_usec;
7527 ;
7528 return 0;
7529 }
7530 _ACEOF
7531 rm -f conftest.$ac_objext
7532 if { (ac_try="$ac_compile"
7533 case "(($ac_try" in
7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7536 esac
7537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7538 $as_echo "$ac_try_echo") >&5
7539 (eval "$ac_compile") 2>conftest.er1
7540 ac_status=$?
7541 grep -v '^ *+' conftest.er1 >conftest.err
7542 rm -f conftest.er1
7543 cat conftest.err >&5
7544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } && {
7546 test -z "$ac_c_werror_flag" ||
7547 test ! -s conftest.err
7548 } && test -s conftest.$ac_objext; then
7549 emacs_cv_struct_timeval=yes
7550 else
7551 $as_echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7553
7554 emacs_cv_struct_timeval=no
7555 fi
7556
7557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558 fi
7559 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7560 $as_echo "$emacs_cv_struct_timeval" >&6; }
7561 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7562 if test $emacs_cv_struct_timeval = yes; then
7563
7564 cat >>confdefs.h <<\_ACEOF
7565 #define HAVE_TIMEVAL 1
7566 _ACEOF
7567
7568 fi
7569
7570 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7571 $as_echo_n "checking for struct exception... " >&6; }
7572 if test "${emacs_cv_struct_exception+set}" = set; then
7573 $as_echo_n "(cached) " >&6
7574 else
7575 cat >conftest.$ac_ext <<_ACEOF
7576 /* confdefs.h. */
7577 _ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7581 #include <math.h>
7582 int
7583 main ()
7584 {
7585 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7586 ;
7587 return 0;
7588 }
7589 _ACEOF
7590 rm -f conftest.$ac_objext
7591 if { (ac_try="$ac_compile"
7592 case "(($ac_try" in
7593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7594 *) ac_try_echo=$ac_try;;
7595 esac
7596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7597 $as_echo "$ac_try_echo") >&5
7598 (eval "$ac_compile") 2>conftest.er1
7599 ac_status=$?
7600 grep -v '^ *+' conftest.er1 >conftest.err
7601 rm -f conftest.er1
7602 cat conftest.err >&5
7603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } && {
7605 test -z "$ac_c_werror_flag" ||
7606 test ! -s conftest.err
7607 } && test -s conftest.$ac_objext; then
7608 emacs_cv_struct_exception=yes
7609 else
7610 $as_echo "$as_me: failed program was:" >&5
7611 sed 's/^/| /' conftest.$ac_ext >&5
7612
7613 emacs_cv_struct_exception=no
7614 fi
7615
7616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617 fi
7618 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7619 $as_echo "$emacs_cv_struct_exception" >&6; }
7620 HAVE_EXCEPTION=$emacs_cv_struct_exception
7621 if test $emacs_cv_struct_exception != yes; then
7622
7623 cat >>confdefs.h <<\_ACEOF
7624 #define NO_MATHERR 1
7625 _ACEOF
7626
7627 fi
7628
7629
7630 for ac_header in sys/socket.h
7631 do
7632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7634 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7635 $as_echo_n "checking for $ac_header... " >&6; }
7636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7637 $as_echo_n "(cached) " >&6
7638 fi
7639 ac_res=`eval 'as_val=${'$as_ac_Header'}
7640 $as_echo "$as_val"'`
7641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7642 $as_echo "$ac_res" >&6; }
7643 else
7644 # Is the header compilable?
7645 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7646 $as_echo_n "checking $ac_header usability... " >&6; }
7647 cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h. */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7653 $ac_includes_default
7654 #include <$ac_header>
7655 _ACEOF
7656 rm -f conftest.$ac_objext
7657 if { (ac_try="$ac_compile"
7658 case "(($ac_try" in
7659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7660 *) ac_try_echo=$ac_try;;
7661 esac
7662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7663 $as_echo "$ac_try_echo") >&5
7664 (eval "$ac_compile") 2>conftest.er1
7665 ac_status=$?
7666 grep -v '^ *+' conftest.er1 >conftest.err
7667 rm -f conftest.er1
7668 cat conftest.err >&5
7669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } && {
7671 test -z "$ac_c_werror_flag" ||
7672 test ! -s conftest.err
7673 } && test -s conftest.$ac_objext; then
7674 ac_header_compiler=yes
7675 else
7676 $as_echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7678
7679 ac_header_compiler=no
7680 fi
7681
7682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7683 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7684 $as_echo "$ac_header_compiler" >&6; }
7685
7686 # Is the header present?
7687 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7688 $as_echo_n "checking $ac_header presence... " >&6; }
7689 cat >conftest.$ac_ext <<_ACEOF
7690 /* confdefs.h. */
7691 _ACEOF
7692 cat confdefs.h >>conftest.$ac_ext
7693 cat >>conftest.$ac_ext <<_ACEOF
7694 /* end confdefs.h. */
7695 #include <$ac_header>
7696 _ACEOF
7697 if { (ac_try="$ac_cpp conftest.$ac_ext"
7698 case "(($ac_try" in
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7701 esac
7702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7703 $as_echo "$ac_try_echo") >&5
7704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7705 ac_status=$?
7706 grep -v '^ *+' conftest.er1 >conftest.err
7707 rm -f conftest.er1
7708 cat conftest.err >&5
7709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } >/dev/null && {
7711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7712 test ! -s conftest.err
7713 }; then
7714 ac_header_preproc=yes
7715 else
7716 $as_echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.$ac_ext >&5
7718
7719 ac_header_preproc=no
7720 fi
7721
7722 rm -f conftest.err conftest.$ac_ext
7723 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7724 $as_echo "$ac_header_preproc" >&6; }
7725
7726 # So? What about this header?
7727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7728 yes:no: )
7729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7730 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7732 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7733 ac_header_preproc=yes
7734 ;;
7735 no:yes:* )
7736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7737 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7739 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7741 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7743 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7745 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7747 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7748
7749 ;;
7750 esac
7751 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7752 $as_echo_n "checking for $ac_header... " >&6; }
7753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7754 $as_echo_n "(cached) " >&6
7755 else
7756 eval "$as_ac_Header=\$ac_header_preproc"
7757 fi
7758 ac_res=`eval 'as_val=${'$as_ac_Header'}
7759 $as_echo "$as_val"'`
7760 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7761 $as_echo "$ac_res" >&6; }
7762
7763 fi
7764 if test `eval 'as_val=${'$as_ac_Header'}
7765 $as_echo "$as_val"'` = yes; then
7766 cat >>confdefs.h <<_ACEOF
7767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7768 _ACEOF
7769
7770 fi
7771
7772 done
7773
7774
7775 for ac_header in net/if.h
7776 do
7777 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7778 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7779 $as_echo_n "checking for $ac_header... " >&6; }
7780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7781 $as_echo_n "(cached) " >&6
7782 else
7783 cat >conftest.$ac_ext <<_ACEOF
7784 /* confdefs.h. */
7785 _ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7789 $ac_includes_default
7790 #if HAVE_SYS_SOCKET_H
7791 #include <sys/socket.h>
7792 #endif
7793
7794 #include <$ac_header>
7795 _ACEOF
7796 rm -f conftest.$ac_objext
7797 if { (ac_try="$ac_compile"
7798 case "(($ac_try" in
7799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7800 *) ac_try_echo=$ac_try;;
7801 esac
7802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7803 $as_echo "$ac_try_echo") >&5
7804 (eval "$ac_compile") 2>conftest.er1
7805 ac_status=$?
7806 grep -v '^ *+' conftest.er1 >conftest.err
7807 rm -f conftest.er1
7808 cat conftest.err >&5
7809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } && {
7811 test -z "$ac_c_werror_flag" ||
7812 test ! -s conftest.err
7813 } && test -s conftest.$ac_objext; then
7814 eval "$as_ac_Header=yes"
7815 else
7816 $as_echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7818
7819 eval "$as_ac_Header=no"
7820 fi
7821
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823 fi
7824 ac_res=`eval 'as_val=${'$as_ac_Header'}
7825 $as_echo "$as_val"'`
7826 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7827 $as_echo "$ac_res" >&6; }
7828 if test `eval 'as_val=${'$as_ac_Header'}
7829 $as_echo "$as_val"'` = yes; then
7830 cat >>confdefs.h <<_ACEOF
7831 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7832 _ACEOF
7833
7834 fi
7835
7836 done
7837
7838
7839 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7840 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7841 if test "${ac_cv_struct_tm+set}" = set; then
7842 $as_echo_n "(cached) " >&6
7843 else
7844 cat >conftest.$ac_ext <<_ACEOF
7845 /* confdefs.h. */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7850 #include <sys/types.h>
7851 #include <time.h>
7852
7853 int
7854 main ()
7855 {
7856 struct tm tm;
7857 int *p = &tm.tm_sec;
7858 return !p;
7859 ;
7860 return 0;
7861 }
7862 _ACEOF
7863 rm -f conftest.$ac_objext
7864 if { (ac_try="$ac_compile"
7865 case "(($ac_try" in
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7868 esac
7869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7870 $as_echo "$ac_try_echo") >&5
7871 (eval "$ac_compile") 2>conftest.er1
7872 ac_status=$?
7873 grep -v '^ *+' conftest.er1 >conftest.err
7874 rm -f conftest.er1
7875 cat conftest.err >&5
7876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); } && {
7878 test -z "$ac_c_werror_flag" ||
7879 test ! -s conftest.err
7880 } && test -s conftest.$ac_objext; then
7881 ac_cv_struct_tm=time.h
7882 else
7883 $as_echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7885
7886 ac_cv_struct_tm=sys/time.h
7887 fi
7888
7889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890 fi
7891 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7892 $as_echo "$ac_cv_struct_tm" >&6; }
7893 if test $ac_cv_struct_tm = sys/time.h; then
7894
7895 cat >>confdefs.h <<\_ACEOF
7896 #define TM_IN_SYS_TIME 1
7897 _ACEOF
7898
7899 fi
7900
7901 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7902 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7903 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7904 $as_echo_n "(cached) " >&6
7905 else
7906 cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h. */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7912 #include <sys/types.h>
7913 #include <$ac_cv_struct_tm>
7914
7915
7916 int
7917 main ()
7918 {
7919 static struct tm ac_aggr;
7920 if (ac_aggr.tm_zone)
7921 return 0;
7922 ;
7923 return 0;
7924 }
7925 _ACEOF
7926 rm -f conftest.$ac_objext
7927 if { (ac_try="$ac_compile"
7928 case "(($ac_try" in
7929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7930 *) ac_try_echo=$ac_try;;
7931 esac
7932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7933 $as_echo "$ac_try_echo") >&5
7934 (eval "$ac_compile") 2>conftest.er1
7935 ac_status=$?
7936 grep -v '^ *+' conftest.er1 >conftest.err
7937 rm -f conftest.er1
7938 cat conftest.err >&5
7939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } && {
7941 test -z "$ac_c_werror_flag" ||
7942 test ! -s conftest.err
7943 } && test -s conftest.$ac_objext; then
7944 ac_cv_member_struct_tm_tm_zone=yes
7945 else
7946 $as_echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7948
7949 cat >conftest.$ac_ext <<_ACEOF
7950 /* confdefs.h. */
7951 _ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h. */
7955 #include <sys/types.h>
7956 #include <$ac_cv_struct_tm>
7957
7958
7959 int
7960 main ()
7961 {
7962 static struct tm ac_aggr;
7963 if (sizeof ac_aggr.tm_zone)
7964 return 0;
7965 ;
7966 return 0;
7967 }
7968 _ACEOF
7969 rm -f conftest.$ac_objext
7970 if { (ac_try="$ac_compile"
7971 case "(($ac_try" in
7972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973 *) ac_try_echo=$ac_try;;
7974 esac
7975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7976 $as_echo "$ac_try_echo") >&5
7977 (eval "$ac_compile") 2>conftest.er1
7978 ac_status=$?
7979 grep -v '^ *+' conftest.er1 >conftest.err
7980 rm -f conftest.er1
7981 cat conftest.err >&5
7982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && {
7984 test -z "$ac_c_werror_flag" ||
7985 test ! -s conftest.err
7986 } && test -s conftest.$ac_objext; then
7987 ac_cv_member_struct_tm_tm_zone=yes
7988 else
7989 $as_echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7991
7992 ac_cv_member_struct_tm_tm_zone=no
7993 fi
7994
7995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7996 fi
7997
7998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7999 fi
8000 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8001 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8002 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8003
8004 cat >>confdefs.h <<_ACEOF
8005 #define HAVE_STRUCT_TM_TM_ZONE 1
8006 _ACEOF
8007
8008
8009 fi
8010
8011 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8012
8013 cat >>confdefs.h <<\_ACEOF
8014 #define HAVE_TM_ZONE 1
8015 _ACEOF
8016
8017 else
8018 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8019 $as_echo_n "checking whether tzname is declared... " >&6; }
8020 if test "${ac_cv_have_decl_tzname+set}" = set; then
8021 $as_echo_n "(cached) " >&6
8022 else
8023 cat >conftest.$ac_ext <<_ACEOF
8024 /* confdefs.h. */
8025 _ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h. */
8029 #include <time.h>
8030
8031 int
8032 main ()
8033 {
8034 #ifndef tzname
8035 (void) tzname;
8036 #endif
8037
8038 ;
8039 return 0;
8040 }
8041 _ACEOF
8042 rm -f conftest.$ac_objext
8043 if { (ac_try="$ac_compile"
8044 case "(($ac_try" in
8045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046 *) ac_try_echo=$ac_try;;
8047 esac
8048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8049 $as_echo "$ac_try_echo") >&5
8050 (eval "$ac_compile") 2>conftest.er1
8051 ac_status=$?
8052 grep -v '^ *+' conftest.er1 >conftest.err
8053 rm -f conftest.er1
8054 cat conftest.err >&5
8055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } && {
8057 test -z "$ac_c_werror_flag" ||
8058 test ! -s conftest.err
8059 } && test -s conftest.$ac_objext; then
8060 ac_cv_have_decl_tzname=yes
8061 else
8062 $as_echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8064
8065 ac_cv_have_decl_tzname=no
8066 fi
8067
8068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069 fi
8070 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8071 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8072 if test $ac_cv_have_decl_tzname = yes; then
8073
8074 cat >>confdefs.h <<_ACEOF
8075 #define HAVE_DECL_TZNAME 1
8076 _ACEOF
8077
8078
8079 else
8080 cat >>confdefs.h <<_ACEOF
8081 #define HAVE_DECL_TZNAME 0
8082 _ACEOF
8083
8084
8085 fi
8086
8087
8088 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8089 $as_echo_n "checking for tzname... " >&6; }
8090 if test "${ac_cv_var_tzname+set}" = set; then
8091 $as_echo_n "(cached) " >&6
8092 else
8093 cat >conftest.$ac_ext <<_ACEOF
8094 /* confdefs.h. */
8095 _ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h. */
8099 #include <time.h>
8100 #if !HAVE_DECL_TZNAME
8101 extern char *tzname[];
8102 #endif
8103
8104 int
8105 main ()
8106 {
8107 return tzname[0][0];
8108 ;
8109 return 0;
8110 }
8111 _ACEOF
8112 rm -f conftest.$ac_objext conftest$ac_exeext
8113 if { (ac_try="$ac_link"
8114 case "(($ac_try" in
8115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116 *) ac_try_echo=$ac_try;;
8117 esac
8118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8119 $as_echo "$ac_try_echo") >&5
8120 (eval "$ac_link") 2>conftest.er1
8121 ac_status=$?
8122 grep -v '^ *+' conftest.er1 >conftest.err
8123 rm -f conftest.er1
8124 cat conftest.err >&5
8125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } && {
8127 test -z "$ac_c_werror_flag" ||
8128 test ! -s conftest.err
8129 } && test -s conftest$ac_exeext && {
8130 test "$cross_compiling" = yes ||
8131 $as_test_x conftest$ac_exeext
8132 }; then
8133 ac_cv_var_tzname=yes
8134 else
8135 $as_echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8137
8138 ac_cv_var_tzname=no
8139 fi
8140
8141 rm -rf conftest.dSYM
8142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8143 conftest$ac_exeext conftest.$ac_ext
8144 fi
8145 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8146 $as_echo "$ac_cv_var_tzname" >&6; }
8147 if test $ac_cv_var_tzname = yes; then
8148
8149 cat >>confdefs.h <<\_ACEOF
8150 #define HAVE_TZNAME 1
8151 _ACEOF
8152
8153 fi
8154 fi
8155
8156 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8157 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8158 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8159 $as_echo_n "(cached) " >&6
8160 else
8161 cat >conftest.$ac_ext <<_ACEOF
8162 /* confdefs.h. */
8163 _ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h. */
8167 #include <time.h>
8168
8169 int
8170 main ()
8171 {
8172 static struct tm ac_aggr;
8173 if (ac_aggr.tm_gmtoff)
8174 return 0;
8175 ;
8176 return 0;
8177 }
8178 _ACEOF
8179 rm -f conftest.$ac_objext
8180 if { (ac_try="$ac_compile"
8181 case "(($ac_try" in
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8184 esac
8185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8186 $as_echo "$ac_try_echo") >&5
8187 (eval "$ac_compile") 2>conftest.er1
8188 ac_status=$?
8189 grep -v '^ *+' conftest.er1 >conftest.err
8190 rm -f conftest.er1
8191 cat conftest.err >&5
8192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } && {
8194 test -z "$ac_c_werror_flag" ||
8195 test ! -s conftest.err
8196 } && test -s conftest.$ac_objext; then
8197 ac_cv_member_struct_tm_tm_gmtoff=yes
8198 else
8199 $as_echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8201
8202 cat >conftest.$ac_ext <<_ACEOF
8203 /* confdefs.h. */
8204 _ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8208 #include <time.h>
8209
8210 int
8211 main ()
8212 {
8213 static struct tm ac_aggr;
8214 if (sizeof ac_aggr.tm_gmtoff)
8215 return 0;
8216 ;
8217 return 0;
8218 }
8219 _ACEOF
8220 rm -f conftest.$ac_objext
8221 if { (ac_try="$ac_compile"
8222 case "(($ac_try" in
8223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224 *) ac_try_echo=$ac_try;;
8225 esac
8226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8227 $as_echo "$ac_try_echo") >&5
8228 (eval "$ac_compile") 2>conftest.er1
8229 ac_status=$?
8230 grep -v '^ *+' conftest.er1 >conftest.err
8231 rm -f conftest.er1
8232 cat conftest.err >&5
8233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } && {
8235 test -z "$ac_c_werror_flag" ||
8236 test ! -s conftest.err
8237 } && test -s conftest.$ac_objext; then
8238 ac_cv_member_struct_tm_tm_gmtoff=yes
8239 else
8240 $as_echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8242
8243 ac_cv_member_struct_tm_tm_gmtoff=no
8244 fi
8245
8246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247 fi
8248
8249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250 fi
8251 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8252 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8253 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8254
8255 cat >>confdefs.h <<\_ACEOF
8256 #define HAVE_TM_GMTOFF 1
8257 _ACEOF
8258
8259 fi
8260
8261 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8262 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8263 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8264 $as_echo_n "(cached) " >&6
8265 else
8266 cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h. */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 $ac_includes_default
8273 #if HAVE_SYS_SOCKET_H
8274 #include <sys/socket.h>
8275 #endif
8276 #if HAVE_NET_IF_H
8277 #include <net/if.h>
8278 #endif
8279
8280 int
8281 main ()
8282 {
8283 static struct ifreq ac_aggr;
8284 if (ac_aggr.ifr_flags)
8285 return 0;
8286 ;
8287 return 0;
8288 }
8289 _ACEOF
8290 rm -f conftest.$ac_objext
8291 if { (ac_try="$ac_compile"
8292 case "(($ac_try" in
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8295 esac
8296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8297 $as_echo "$ac_try_echo") >&5
8298 (eval "$ac_compile") 2>conftest.er1
8299 ac_status=$?
8300 grep -v '^ *+' conftest.er1 >conftest.err
8301 rm -f conftest.er1
8302 cat conftest.err >&5
8303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } && {
8305 test -z "$ac_c_werror_flag" ||
8306 test ! -s conftest.err
8307 } && test -s conftest.$ac_objext; then
8308 ac_cv_member_struct_ifreq_ifr_flags=yes
8309 else
8310 $as_echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8312
8313 cat >conftest.$ac_ext <<_ACEOF
8314 /* confdefs.h. */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 $ac_includes_default
8320 #if HAVE_SYS_SOCKET_H
8321 #include <sys/socket.h>
8322 #endif
8323 #if HAVE_NET_IF_H
8324 #include <net/if.h>
8325 #endif
8326
8327 int
8328 main ()
8329 {
8330 static struct ifreq ac_aggr;
8331 if (sizeof ac_aggr.ifr_flags)
8332 return 0;
8333 ;
8334 return 0;
8335 }
8336 _ACEOF
8337 rm -f conftest.$ac_objext
8338 if { (ac_try="$ac_compile"
8339 case "(($ac_try" in
8340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8341 *) ac_try_echo=$ac_try;;
8342 esac
8343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8344 $as_echo "$ac_try_echo") >&5
8345 (eval "$ac_compile") 2>conftest.er1
8346 ac_status=$?
8347 grep -v '^ *+' conftest.er1 >conftest.err
8348 rm -f conftest.er1
8349 cat conftest.err >&5
8350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } && {
8352 test -z "$ac_c_werror_flag" ||
8353 test ! -s conftest.err
8354 } && test -s conftest.$ac_objext; then
8355 ac_cv_member_struct_ifreq_ifr_flags=yes
8356 else
8357 $as_echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.$ac_ext >&5
8359
8360 ac_cv_member_struct_ifreq_ifr_flags=no
8361 fi
8362
8363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8364 fi
8365
8366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8367 fi
8368 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8369 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8370 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8371
8372 cat >>confdefs.h <<_ACEOF
8373 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8374 _ACEOF
8375
8376
8377 fi
8378 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8379 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8380 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8381 $as_echo_n "(cached) " >&6
8382 else
8383 cat >conftest.$ac_ext <<_ACEOF
8384 /* confdefs.h. */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 $ac_includes_default
8390 #if HAVE_SYS_SOCKET_H
8391 #include <sys/socket.h>
8392 #endif
8393 #if HAVE_NET_IF_H
8394 #include <net/if.h>
8395 #endif
8396
8397 int
8398 main ()
8399 {
8400 static struct ifreq ac_aggr;
8401 if (ac_aggr.ifr_hwaddr)
8402 return 0;
8403 ;
8404 return 0;
8405 }
8406 _ACEOF
8407 rm -f conftest.$ac_objext
8408 if { (ac_try="$ac_compile"
8409 case "(($ac_try" in
8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8412 esac
8413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8414 $as_echo "$ac_try_echo") >&5
8415 (eval "$ac_compile") 2>conftest.er1
8416 ac_status=$?
8417 grep -v '^ *+' conftest.er1 >conftest.err
8418 rm -f conftest.er1
8419 cat conftest.err >&5
8420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } && {
8422 test -z "$ac_c_werror_flag" ||
8423 test ! -s conftest.err
8424 } && test -s conftest.$ac_objext; then
8425 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8426 else
8427 $as_echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8429
8430 cat >conftest.$ac_ext <<_ACEOF
8431 /* confdefs.h. */
8432 _ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h. */
8436 $ac_includes_default
8437 #if HAVE_SYS_SOCKET_H
8438 #include <sys/socket.h>
8439 #endif
8440 #if HAVE_NET_IF_H
8441 #include <net/if.h>
8442 #endif
8443
8444 int
8445 main ()
8446 {
8447 static struct ifreq ac_aggr;
8448 if (sizeof ac_aggr.ifr_hwaddr)
8449 return 0;
8450 ;
8451 return 0;
8452 }
8453 _ACEOF
8454 rm -f conftest.$ac_objext
8455 if { (ac_try="$ac_compile"
8456 case "(($ac_try" in
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8459 esac
8460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8461 $as_echo "$ac_try_echo") >&5
8462 (eval "$ac_compile") 2>conftest.er1
8463 ac_status=$?
8464 grep -v '^ *+' conftest.er1 >conftest.err
8465 rm -f conftest.er1
8466 cat conftest.err >&5
8467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } && {
8469 test -z "$ac_c_werror_flag" ||
8470 test ! -s conftest.err
8471 } && test -s conftest.$ac_objext; then
8472 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8473 else
8474 $as_echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8476
8477 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8478 fi
8479
8480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481 fi
8482
8483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484 fi
8485 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8486 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8487 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8488
8489 cat >>confdefs.h <<_ACEOF
8490 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8491 _ACEOF
8492
8493
8494 fi
8495 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8496 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8497 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8498 $as_echo_n "(cached) " >&6
8499 else
8500 cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h. */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506 $ac_includes_default
8507 #if HAVE_SYS_SOCKET_H
8508 #include <sys/socket.h>
8509 #endif
8510 #if HAVE_NET_IF_H
8511 #include <net/if.h>
8512 #endif
8513
8514 int
8515 main ()
8516 {
8517 static struct ifreq ac_aggr;
8518 if (ac_aggr.ifr_netmask)
8519 return 0;
8520 ;
8521 return 0;
8522 }
8523 _ACEOF
8524 rm -f conftest.$ac_objext
8525 if { (ac_try="$ac_compile"
8526 case "(($ac_try" in
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8529 esac
8530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8531 $as_echo "$ac_try_echo") >&5
8532 (eval "$ac_compile") 2>conftest.er1
8533 ac_status=$?
8534 grep -v '^ *+' conftest.er1 >conftest.err
8535 rm -f conftest.er1
8536 cat conftest.err >&5
8537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } && {
8539 test -z "$ac_c_werror_flag" ||
8540 test ! -s conftest.err
8541 } && test -s conftest.$ac_objext; then
8542 ac_cv_member_struct_ifreq_ifr_netmask=yes
8543 else
8544 $as_echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8546
8547 cat >conftest.$ac_ext <<_ACEOF
8548 /* confdefs.h. */
8549 _ACEOF
8550 cat confdefs.h >>conftest.$ac_ext
8551 cat >>conftest.$ac_ext <<_ACEOF
8552 /* end confdefs.h. */
8553 $ac_includes_default
8554 #if HAVE_SYS_SOCKET_H
8555 #include <sys/socket.h>
8556 #endif
8557 #if HAVE_NET_IF_H
8558 #include <net/if.h>
8559 #endif
8560
8561 int
8562 main ()
8563 {
8564 static struct ifreq ac_aggr;
8565 if (sizeof ac_aggr.ifr_netmask)
8566 return 0;
8567 ;
8568 return 0;
8569 }
8570 _ACEOF
8571 rm -f conftest.$ac_objext
8572 if { (ac_try="$ac_compile"
8573 case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8576 esac
8577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8578 $as_echo "$ac_try_echo") >&5
8579 (eval "$ac_compile") 2>conftest.er1
8580 ac_status=$?
8581 grep -v '^ *+' conftest.er1 >conftest.err
8582 rm -f conftest.er1
8583 cat conftest.err >&5
8584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } && {
8586 test -z "$ac_c_werror_flag" ||
8587 test ! -s conftest.err
8588 } && test -s conftest.$ac_objext; then
8589 ac_cv_member_struct_ifreq_ifr_netmask=yes
8590 else
8591 $as_echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8593
8594 ac_cv_member_struct_ifreq_ifr_netmask=no
8595 fi
8596
8597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598 fi
8599
8600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601 fi
8602 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8603 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8604 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8605
8606 cat >>confdefs.h <<_ACEOF
8607 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8608 _ACEOF
8609
8610
8611 fi
8612 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8613 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8614 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8615 $as_echo_n "(cached) " >&6
8616 else
8617 cat >conftest.$ac_ext <<_ACEOF
8618 /* confdefs.h. */
8619 _ACEOF
8620 cat confdefs.h >>conftest.$ac_ext
8621 cat >>conftest.$ac_ext <<_ACEOF
8622 /* end confdefs.h. */
8623 $ac_includes_default
8624 #if HAVE_SYS_SOCKET_H
8625 #include <sys/socket.h>
8626 #endif
8627 #if HAVE_NET_IF_H
8628 #include <net/if.h>
8629 #endif
8630
8631 int
8632 main ()
8633 {
8634 static struct ifreq ac_aggr;
8635 if (ac_aggr.ifr_broadaddr)
8636 return 0;
8637 ;
8638 return 0;
8639 }
8640 _ACEOF
8641 rm -f conftest.$ac_objext
8642 if { (ac_try="$ac_compile"
8643 case "(($ac_try" in
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8646 esac
8647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8648 $as_echo "$ac_try_echo") >&5
8649 (eval "$ac_compile") 2>conftest.er1
8650 ac_status=$?
8651 grep -v '^ *+' conftest.er1 >conftest.err
8652 rm -f conftest.er1
8653 cat conftest.err >&5
8654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } && {
8656 test -z "$ac_c_werror_flag" ||
8657 test ! -s conftest.err
8658 } && test -s conftest.$ac_objext; then
8659 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8660 else
8661 $as_echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8663
8664 cat >conftest.$ac_ext <<_ACEOF
8665 /* confdefs.h. */
8666 _ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8670 $ac_includes_default
8671 #if HAVE_SYS_SOCKET_H
8672 #include <sys/socket.h>
8673 #endif
8674 #if HAVE_NET_IF_H
8675 #include <net/if.h>
8676 #endif
8677
8678 int
8679 main ()
8680 {
8681 static struct ifreq ac_aggr;
8682 if (sizeof ac_aggr.ifr_broadaddr)
8683 return 0;
8684 ;
8685 return 0;
8686 }
8687 _ACEOF
8688 rm -f conftest.$ac_objext
8689 if { (ac_try="$ac_compile"
8690 case "(($ac_try" in
8691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692 *) ac_try_echo=$ac_try;;
8693 esac
8694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8695 $as_echo "$ac_try_echo") >&5
8696 (eval "$ac_compile") 2>conftest.er1
8697 ac_status=$?
8698 grep -v '^ *+' conftest.er1 >conftest.err
8699 rm -f conftest.er1
8700 cat conftest.err >&5
8701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } && {
8703 test -z "$ac_c_werror_flag" ||
8704 test ! -s conftest.err
8705 } && test -s conftest.$ac_objext; then
8706 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8707 else
8708 $as_echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8710
8711 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8712 fi
8713
8714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715 fi
8716
8717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8718 fi
8719 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8720 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8721 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8722
8723 cat >>confdefs.h <<_ACEOF
8724 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8725 _ACEOF
8726
8727
8728 fi
8729 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8730 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8731 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8732 $as_echo_n "(cached) " >&6
8733 else
8734 cat >conftest.$ac_ext <<_ACEOF
8735 /* confdefs.h. */
8736 _ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h. */
8740 $ac_includes_default
8741 #if HAVE_SYS_SOCKET_H
8742 #include <sys/socket.h>
8743 #endif
8744 #if HAVE_NET_IF_H
8745 #include <net/if.h>
8746 #endif
8747
8748 int
8749 main ()
8750 {
8751 static struct ifreq ac_aggr;
8752 if (ac_aggr.ifr_addr)
8753 return 0;
8754 ;
8755 return 0;
8756 }
8757 _ACEOF
8758 rm -f conftest.$ac_objext
8759 if { (ac_try="$ac_compile"
8760 case "(($ac_try" in
8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8763 esac
8764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8765 $as_echo "$ac_try_echo") >&5
8766 (eval "$ac_compile") 2>conftest.er1
8767 ac_status=$?
8768 grep -v '^ *+' conftest.er1 >conftest.err
8769 rm -f conftest.er1
8770 cat conftest.err >&5
8771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } && {
8773 test -z "$ac_c_werror_flag" ||
8774 test ! -s conftest.err
8775 } && test -s conftest.$ac_objext; then
8776 ac_cv_member_struct_ifreq_ifr_addr=yes
8777 else
8778 $as_echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.$ac_ext >&5
8780
8781 cat >conftest.$ac_ext <<_ACEOF
8782 /* confdefs.h. */
8783 _ACEOF
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h. */
8787 $ac_includes_default
8788 #if HAVE_SYS_SOCKET_H
8789 #include <sys/socket.h>
8790 #endif
8791 #if HAVE_NET_IF_H
8792 #include <net/if.h>
8793 #endif
8794
8795 int
8796 main ()
8797 {
8798 static struct ifreq ac_aggr;
8799 if (sizeof ac_aggr.ifr_addr)
8800 return 0;
8801 ;
8802 return 0;
8803 }
8804 _ACEOF
8805 rm -f conftest.$ac_objext
8806 if { (ac_try="$ac_compile"
8807 case "(($ac_try" in
8808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8809 *) ac_try_echo=$ac_try;;
8810 esac
8811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8812 $as_echo "$ac_try_echo") >&5
8813 (eval "$ac_compile") 2>conftest.er1
8814 ac_status=$?
8815 grep -v '^ *+' conftest.er1 >conftest.err
8816 rm -f conftest.er1
8817 cat conftest.err >&5
8818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } && {
8820 test -z "$ac_c_werror_flag" ||
8821 test ! -s conftest.err
8822 } && test -s conftest.$ac_objext; then
8823 ac_cv_member_struct_ifreq_ifr_addr=yes
8824 else
8825 $as_echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.$ac_ext >&5
8827
8828 ac_cv_member_struct_ifreq_ifr_addr=no
8829 fi
8830
8831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8832 fi
8833
8834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8835 fi
8836 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8837 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8838 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8839
8840 cat >>confdefs.h <<_ACEOF
8841 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8842 _ACEOF
8843
8844
8845 fi
8846
8847
8848
8849 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8850 $as_echo_n "checking for function prototypes... " >&6; }
8851 if test "$ac_cv_prog_cc_c89" != no; then
8852 { $as_echo "$as_me:$LINENO: result: yes" >&5
8853 $as_echo "yes" >&6; }
8854
8855 cat >>confdefs.h <<\_ACEOF
8856 #define PROTOTYPES 1
8857 _ACEOF
8858
8859
8860 cat >>confdefs.h <<\_ACEOF
8861 #define __PROTOTYPES 1
8862 _ACEOF
8863
8864 else
8865 { $as_echo "$as_me:$LINENO: result: no" >&5
8866 $as_echo "no" >&6; }
8867 fi
8868
8869 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8870 $as_echo_n "checking for working volatile... " >&6; }
8871 if test "${ac_cv_c_volatile+set}" = set; then
8872 $as_echo_n "(cached) " >&6
8873 else
8874 cat >conftest.$ac_ext <<_ACEOF
8875 /* confdefs.h. */
8876 _ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8880
8881 int
8882 main ()
8883 {
8884
8885 volatile int x;
8886 int * volatile y = (int *) 0;
8887 return !x && !y;
8888 ;
8889 return 0;
8890 }
8891 _ACEOF
8892 rm -f conftest.$ac_objext
8893 if { (ac_try="$ac_compile"
8894 case "(($ac_try" in
8895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8896 *) ac_try_echo=$ac_try;;
8897 esac
8898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8899 $as_echo "$ac_try_echo") >&5
8900 (eval "$ac_compile") 2>conftest.er1
8901 ac_status=$?
8902 grep -v '^ *+' conftest.er1 >conftest.err
8903 rm -f conftest.er1
8904 cat conftest.err >&5
8905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } && {
8907 test -z "$ac_c_werror_flag" ||
8908 test ! -s conftest.err
8909 } && test -s conftest.$ac_objext; then
8910 ac_cv_c_volatile=yes
8911 else
8912 $as_echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8914
8915 ac_cv_c_volatile=no
8916 fi
8917
8918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8919 fi
8920 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8921 $as_echo "$ac_cv_c_volatile" >&6; }
8922 if test $ac_cv_c_volatile = no; then
8923
8924 cat >>confdefs.h <<\_ACEOF
8925 #define volatile /**/
8926 _ACEOF
8927
8928 fi
8929
8930 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8931 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8932 if test "${ac_cv_c_const+set}" = set; then
8933 $as_echo_n "(cached) " >&6
8934 else
8935 cat >conftest.$ac_ext <<_ACEOF
8936 /* confdefs.h. */
8937 _ACEOF
8938 cat confdefs.h >>conftest.$ac_ext
8939 cat >>conftest.$ac_ext <<_ACEOF
8940 /* end confdefs.h. */
8941
8942 int
8943 main ()
8944 {
8945 /* FIXME: Include the comments suggested by Paul. */
8946 #ifndef __cplusplus
8947 /* Ultrix mips cc rejects this. */
8948 typedef int charset[2];
8949 const charset cs;
8950 /* SunOS 4.1.1 cc rejects this. */
8951 char const *const *pcpcc;
8952 char **ppc;
8953 /* NEC SVR4.0.2 mips cc rejects this. */
8954 struct point {int x, y;};
8955 static struct point const zero = {0,0};
8956 /* AIX XL C 1.02.0.0 rejects this.
8957 It does not let you subtract one const X* pointer from another in
8958 an arm of an if-expression whose if-part is not a constant
8959 expression */
8960 const char *g = "string";
8961 pcpcc = &g + (g ? g-g : 0);
8962 /* HPUX 7.0 cc rejects these. */
8963 ++pcpcc;
8964 ppc = (char**) pcpcc;
8965 pcpcc = (char const *const *) ppc;
8966 { /* SCO 3.2v4 cc rejects this. */
8967 char *t;
8968 char const *s = 0 ? (char *) 0 : (char const *) 0;
8969
8970 *t++ = 0;
8971 if (s) return 0;
8972 }
8973 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8974 int x[] = {25, 17};
8975 const int *foo = &x[0];
8976 ++foo;
8977 }
8978 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8979 typedef const int *iptr;
8980 iptr p = 0;
8981 ++p;
8982 }
8983 { /* AIX XL C 1.02.0.0 rejects this saying
8984 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8985 struct s { int j; const int *ap[3]; };
8986 struct s *b; b->j = 5;
8987 }
8988 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8989 const int foo = 10;
8990 if (!foo) return 0;
8991 }
8992 return !cs[0] && !zero.x;
8993 #endif
8994
8995 ;
8996 return 0;
8997 }
8998 _ACEOF
8999 rm -f conftest.$ac_objext
9000 if { (ac_try="$ac_compile"
9001 case "(($ac_try" in
9002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9003 *) ac_try_echo=$ac_try;;
9004 esac
9005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9006 $as_echo "$ac_try_echo") >&5
9007 (eval "$ac_compile") 2>conftest.er1
9008 ac_status=$?
9009 grep -v '^ *+' conftest.er1 >conftest.err
9010 rm -f conftest.er1
9011 cat conftest.err >&5
9012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } && {
9014 test -z "$ac_c_werror_flag" ||
9015 test ! -s conftest.err
9016 } && test -s conftest.$ac_objext; then
9017 ac_cv_c_const=yes
9018 else
9019 $as_echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9021
9022 ac_cv_c_const=no
9023 fi
9024
9025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026 fi
9027 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9028 $as_echo "$ac_cv_c_const" >&6; }
9029 if test $ac_cv_c_const = no; then
9030
9031 cat >>confdefs.h <<\_ACEOF
9032 #define const /**/
9033 _ACEOF
9034
9035 fi
9036
9037 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9038 $as_echo_n "checking for void * support... " >&6; }
9039 if test "${emacs_cv_void_star+set}" = set; then
9040 $as_echo_n "(cached) " >&6
9041 else
9042 cat >conftest.$ac_ext <<_ACEOF
9043 /* confdefs.h. */
9044 _ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9048
9049 int
9050 main ()
9051 {
9052 void * foo;
9053 ;
9054 return 0;
9055 }
9056 _ACEOF
9057 rm -f conftest.$ac_objext
9058 if { (ac_try="$ac_compile"
9059 case "(($ac_try" in
9060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061 *) ac_try_echo=$ac_try;;
9062 esac
9063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9064 $as_echo "$ac_try_echo") >&5
9065 (eval "$ac_compile") 2>conftest.er1
9066 ac_status=$?
9067 grep -v '^ *+' conftest.er1 >conftest.err
9068 rm -f conftest.er1
9069 cat conftest.err >&5
9070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } && {
9072 test -z "$ac_c_werror_flag" ||
9073 test ! -s conftest.err
9074 } && test -s conftest.$ac_objext; then
9075 emacs_cv_void_star=yes
9076 else
9077 $as_echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9079
9080 emacs_cv_void_star=no
9081 fi
9082
9083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9084 fi
9085 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9086 $as_echo "$emacs_cv_void_star" >&6; }
9087 if test $emacs_cv_void_star = yes; then
9088 cat >>confdefs.h <<\_ACEOF
9089 #define POINTER_TYPE void
9090 _ACEOF
9091
9092 else
9093 cat >>confdefs.h <<\_ACEOF
9094 #define POINTER_TYPE char
9095 _ACEOF
9096
9097 fi
9098
9099
9100
9101
9102
9103 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9104 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9105 set x ${MAKE-make}
9106 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9107 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9108 $as_echo_n "(cached) " >&6
9109 else
9110 cat >conftest.make <<\_ACEOF
9111 SHELL = /bin/sh
9112 all:
9113 @echo '@@@%%%=$(MAKE)=@@@%%%'
9114 _ACEOF
9115 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9116 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9117 *@@@%%%=?*=@@@%%%*)
9118 eval ac_cv_prog_make_${ac_make}_set=yes;;
9119 *)
9120 eval ac_cv_prog_make_${ac_make}_set=no;;
9121 esac
9122 rm -f conftest.make
9123 fi
9124 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9125 { $as_echo "$as_me:$LINENO: result: yes" >&5
9126 $as_echo "yes" >&6; }
9127 SET_MAKE=
9128 else
9129 { $as_echo "$as_me:$LINENO: result: no" >&5
9130 $as_echo "no" >&6; }
9131 SET_MAKE="MAKE=${MAKE-make}"
9132 fi
9133
9134
9135 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9136 $as_echo_n "checking for long file names... " >&6; }
9137 if test "${ac_cv_sys_long_file_names+set}" = set; then
9138 $as_echo_n "(cached) " >&6
9139 else
9140 ac_cv_sys_long_file_names=yes
9141 # Test for long file names in all the places we know might matter:
9142 # . the current directory, where building will happen
9143 # $prefix/lib where we will be installing things
9144 # $exec_prefix/lib likewise
9145 # $TMPDIR if set, where it might want to write temporary files
9146 # /tmp where it might want to write temporary files
9147 # /var/tmp likewise
9148 # /usr/tmp likewise
9149 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9150 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9151 # in the usual case where exec_prefix is '${prefix}'.
9152 case $ac_dir in #(
9153 . | /* | ?:[\\/]*) ;; #(
9154 *) continue;;
9155 esac
9156 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9157 ac_xdir=$ac_dir/cf$$
9158 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9159 ac_tf1=$ac_xdir/conftest9012345
9160 ac_tf2=$ac_xdir/conftest9012346
9161 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9162 ac_cv_sys_long_file_names=no
9163 rm -f -r "$ac_xdir" 2>/dev/null
9164 test $ac_cv_sys_long_file_names = no && break
9165 done
9166 fi
9167 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9168 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9169 if test $ac_cv_sys_long_file_names = yes; then
9170
9171 cat >>confdefs.h <<\_ACEOF
9172 #define HAVE_LONG_FILE_NAMES 1
9173 _ACEOF
9174
9175 fi
9176
9177
9178 #### Choose a window system.
9179
9180 { $as_echo "$as_me:$LINENO: checking for X" >&5
9181 $as_echo_n "checking for X... " >&6; }
9182
9183
9184 # Check whether --with-x was given.
9185 if test "${with_x+set}" = set; then
9186 withval=$with_x;
9187 fi
9188
9189 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9190 if test "x$with_x" = xno; then
9191 # The user explicitly disabled X.
9192 have_x=disabled
9193 else
9194 case $x_includes,$x_libraries in #(
9195 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9196 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9197 { (exit 1); exit 1; }; };; #(
9198 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9199 $as_echo_n "(cached) " >&6
9200 else
9201 # One or both of the vars are not set, and there is no cached value.
9202 ac_x_includes=no ac_x_libraries=no
9203 rm -f -r conftest.dir
9204 if mkdir conftest.dir; then
9205 cd conftest.dir
9206 cat >Imakefile <<'_ACEOF'
9207 incroot:
9208 @echo incroot='${INCROOT}'
9209 usrlibdir:
9210 @echo usrlibdir='${USRLIBDIR}'
9211 libdir:
9212 @echo libdir='${LIBDIR}'
9213 _ACEOF
9214 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9215 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9216 for ac_var in incroot usrlibdir libdir; do
9217 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9218 done
9219 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9220 for ac_extension in a so sl dylib la dll; do
9221 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9222 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9223 ac_im_usrlibdir=$ac_im_libdir; break
9224 fi
9225 done
9226 # Screen out bogus values from the imake configuration. They are
9227 # bogus both because they are the default anyway, and because
9228 # using them would break gcc on systems where it needs fixed includes.
9229 case $ac_im_incroot in
9230 /usr/include) ac_x_includes= ;;
9231 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9232 esac
9233 case $ac_im_usrlibdir in
9234 /usr/lib | /lib) ;;
9235 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9236 esac
9237 fi
9238 cd ..
9239 rm -f -r conftest.dir
9240 fi
9241
9242 # Standard set of common directories for X headers.
9243 # Check X11 before X11Rn because it is often a symlink to the current release.
9244 ac_x_header_dirs='
9245 /usr/X11/include
9246 /usr/X11R6/include
9247 /usr/X11R5/include
9248 /usr/X11R4/include
9249
9250 /usr/include/X11
9251 /usr/include/X11R6
9252 /usr/include/X11R5
9253 /usr/include/X11R4
9254
9255 /usr/local/X11/include
9256 /usr/local/X11R6/include
9257 /usr/local/X11R5/include
9258 /usr/local/X11R4/include
9259
9260 /usr/local/include/X11
9261 /usr/local/include/X11R6
9262 /usr/local/include/X11R5
9263 /usr/local/include/X11R4
9264
9265 /usr/X386/include
9266 /usr/x386/include
9267 /usr/XFree86/include/X11
9268
9269 /usr/include
9270 /usr/local/include
9271 /usr/unsupported/include
9272 /usr/athena/include
9273 /usr/local/x11r5/include
9274 /usr/lpp/Xamples/include
9275
9276 /usr/openwin/include
9277 /usr/openwin/share/include'
9278
9279 if test "$ac_x_includes" = no; then
9280 # Guess where to find include files, by looking for Xlib.h.
9281 # First, try using that file with no special directory specified.
9282 cat >conftest.$ac_ext <<_ACEOF
9283 /* confdefs.h. */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9288 #include <X11/Xlib.h>
9289 _ACEOF
9290 if { (ac_try="$ac_cpp conftest.$ac_ext"
9291 case "(($ac_try" in
9292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9293 *) ac_try_echo=$ac_try;;
9294 esac
9295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9296 $as_echo "$ac_try_echo") >&5
9297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9298 ac_status=$?
9299 grep -v '^ *+' conftest.er1 >conftest.err
9300 rm -f conftest.er1
9301 cat conftest.err >&5
9302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } >/dev/null && {
9304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9305 test ! -s conftest.err
9306 }; then
9307 # We can compile using X headers with no special include directory.
9308 ac_x_includes=
9309 else
9310 $as_echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9312
9313 for ac_dir in $ac_x_header_dirs; do
9314 if test -r "$ac_dir/X11/Xlib.h"; then
9315 ac_x_includes=$ac_dir
9316 break
9317 fi
9318 done
9319 fi
9320
9321 rm -f conftest.err conftest.$ac_ext
9322 fi # $ac_x_includes = no
9323
9324 if test "$ac_x_libraries" = no; then
9325 # Check for the libraries.
9326 # See if we find them without any special options.
9327 # Don't add to $LIBS permanently.
9328 ac_save_LIBS=$LIBS
9329 LIBS="-lX11 $LIBS"
9330 cat >conftest.$ac_ext <<_ACEOF
9331 /* confdefs.h. */
9332 _ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9336 #include <X11/Xlib.h>
9337 int
9338 main ()
9339 {
9340 XrmInitialize ()
9341 ;
9342 return 0;
9343 }
9344 _ACEOF
9345 rm -f conftest.$ac_objext conftest$ac_exeext
9346 if { (ac_try="$ac_link"
9347 case "(($ac_try" in
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9350 esac
9351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9352 $as_echo "$ac_try_echo") >&5
9353 (eval "$ac_link") 2>conftest.er1
9354 ac_status=$?
9355 grep -v '^ *+' conftest.er1 >conftest.err
9356 rm -f conftest.er1
9357 cat conftest.err >&5
9358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } && {
9360 test -z "$ac_c_werror_flag" ||
9361 test ! -s conftest.err
9362 } && test -s conftest$ac_exeext && {
9363 test "$cross_compiling" = yes ||
9364 $as_test_x conftest$ac_exeext
9365 }; then
9366 LIBS=$ac_save_LIBS
9367 # We can link X programs with no special library path.
9368 ac_x_libraries=
9369 else
9370 $as_echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9372
9373 LIBS=$ac_save_LIBS
9374 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9375 do
9376 # Don't even attempt the hair of trying to link an X program!
9377 for ac_extension in a so sl dylib la dll; do
9378 if test -r "$ac_dir/libX11.$ac_extension"; then
9379 ac_x_libraries=$ac_dir
9380 break 2
9381 fi
9382 done
9383 done
9384 fi
9385
9386 rm -rf conftest.dSYM
9387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9388 conftest$ac_exeext conftest.$ac_ext
9389 fi # $ac_x_libraries = no
9390
9391 case $ac_x_includes,$ac_x_libraries in #(
9392 no,* | *,no | *\'*)
9393 # Didn't find X, or a directory has "'" in its name.
9394 ac_cv_have_x="have_x=no";; #(
9395 *)
9396 # Record where we found X for the cache.
9397 ac_cv_have_x="have_x=yes\
9398 ac_x_includes='$ac_x_includes'\
9399 ac_x_libraries='$ac_x_libraries'"
9400 esac
9401 fi
9402 ;; #(
9403 *) have_x=yes;;
9404 esac
9405 eval "$ac_cv_have_x"
9406 fi # $with_x != no
9407
9408 if test "$have_x" != yes; then
9409 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9410 $as_echo "$have_x" >&6; }
9411 no_x=yes
9412 else
9413 # If each of the values was on the command line, it overrides each guess.
9414 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9415 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9416 # Update the cache value to reflect the command line values.
9417 ac_cv_have_x="have_x=yes\
9418 ac_x_includes='$x_includes'\
9419 ac_x_libraries='$x_libraries'"
9420 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9421 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9422 fi
9423
9424 if test "$no_x" = yes; then
9425 window_system=none
9426 else
9427 window_system=x11
9428 fi
9429
9430 ## Workaround for bug in autoconf <= 2.62.
9431 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9432 ## No need to do anything special for these standard directories.
9433 ## This is an experiment, take it out if it causes problems.
9434 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9435
9436 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9437
9438 fi
9439
9440 if test "${x_libraries}" != NONE; then
9441 if test -n "${x_libraries}"; then
9442 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9443 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9444 fi
9445 x_default_search_path=""
9446 x_search_path=${x_libraries}
9447 if test -z "${x_search_path}"; then
9448 x_search_path=/usr/lib
9449 fi
9450 for x_library in `echo ${x_search_path}: | \
9451 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9452 x_search_path="\
9453 ${x_library}/X11/%L/%T/%N%C%S:\
9454 ${x_library}/X11/%l/%T/%N%C%S:\
9455 ${x_library}/X11/%T/%N%C%S:\
9456 ${x_library}/X11/%L/%T/%N%S:\
9457 ${x_library}/X11/%l/%T/%N%S:\
9458 ${x_library}/X11/%T/%N%S"
9459 if test x"${x_default_search_path}" = x; then
9460 x_default_search_path=${x_search_path}
9461 else
9462 x_default_search_path="${x_search_path}:${x_default_search_path}"
9463 fi
9464 done
9465 fi
9466 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9467 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9468 fi
9469
9470 if test x"${x_includes}" = x; then
9471 bitmapdir=/usr/include/X11/bitmaps
9472 else
9473 # accumulate include directories that have X11 bitmap subdirectories
9474 bmd_acc="dummyval"
9475 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9476 if test -d "${bmd}/X11/bitmaps"; then
9477 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9478 fi
9479 if test -d "${bmd}/bitmaps"; then
9480 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9481 fi
9482 done
9483 if test ${bmd_acc} != "dummyval"; then
9484 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9485 fi
9486 fi
9487
9488 HAVE_NS=no
9489 NS_IMPL_COCOA=no
9490 NS_IMPL_GNUSTEP=no
9491 tmp_CPPFLAGS="$CPPFLAGS"
9492 tmp_CFLAGS="$CFLAGS"
9493 CPPFLAGS="$CPPFLAGS -x objective-c"
9494 CFLAGS="$CFLAGS -x objective-c"
9495 if test "${with_ns}" != no; then
9496 if test "${opsys}" = darwin; then
9497 NS_IMPL_COCOA=yes
9498 ns_appdir=`pwd`/nextstep/Emacs.app
9499 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9500 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9501 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9502 elif test -f $GNUSTEP_CONFIG_FILE; then
9503 NS_IMPL_GNUSTEP=yes
9504 ns_appdir=`pwd`/nextstep/Emacs.app
9505 ns_appbindir=`pwd`/nextstep/Emacs.app
9506 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9507 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9508 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9509 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9510 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9511 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9512 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9513 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9514 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9515 fi
9516 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9517 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9518 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9519 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9520 $as_echo_n "(cached) " >&6
9521 fi
9522 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9523 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9524 else
9525 # Is the header compilable?
9526 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9527 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9528 cat >conftest.$ac_ext <<_ACEOF
9529 /* confdefs.h. */
9530 _ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9534 $ac_includes_default
9535 #include <AppKit/AppKit.h>
9536 _ACEOF
9537 rm -f conftest.$ac_objext
9538 if { (ac_try="$ac_compile"
9539 case "(($ac_try" in
9540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9541 *) ac_try_echo=$ac_try;;
9542 esac
9543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9544 $as_echo "$ac_try_echo") >&5
9545 (eval "$ac_compile") 2>conftest.er1
9546 ac_status=$?
9547 grep -v '^ *+' conftest.er1 >conftest.err
9548 rm -f conftest.er1
9549 cat conftest.err >&5
9550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); } && {
9552 test -z "$ac_c_werror_flag" ||
9553 test ! -s conftest.err
9554 } && test -s conftest.$ac_objext; then
9555 ac_header_compiler=yes
9556 else
9557 $as_echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9559
9560 ac_header_compiler=no
9561 fi
9562
9563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9565 $as_echo "$ac_header_compiler" >&6; }
9566
9567 # Is the header present?
9568 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9569 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9570 cat >conftest.$ac_ext <<_ACEOF
9571 /* confdefs.h. */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h. */
9576 #include <AppKit/AppKit.h>
9577 _ACEOF
9578 if { (ac_try="$ac_cpp conftest.$ac_ext"
9579 case "(($ac_try" in
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9582 esac
9583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9584 $as_echo "$ac_try_echo") >&5
9585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9586 ac_status=$?
9587 grep -v '^ *+' conftest.er1 >conftest.err
9588 rm -f conftest.er1
9589 cat conftest.err >&5
9590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } >/dev/null && {
9592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9593 test ! -s conftest.err
9594 }; then
9595 ac_header_preproc=yes
9596 else
9597 $as_echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9599
9600 ac_header_preproc=no
9601 fi
9602
9603 rm -f conftest.err conftest.$ac_ext
9604 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9605 $as_echo "$ac_header_preproc" >&6; }
9606
9607 # So? What about this header?
9608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9609 yes:no: )
9610 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9611 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9612 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9613 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9614 ac_header_preproc=yes
9615 ;;
9616 no:yes:* )
9617 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9618 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9619 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9620 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9621 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9622 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9623 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9624 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9625 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9626 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9627 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9628 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9629
9630 ;;
9631 esac
9632 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9633 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9634 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9635 $as_echo_n "(cached) " >&6
9636 else
9637 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9638 fi
9639 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9640 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9641
9642 fi
9643 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9644 HAVE_NS=yes
9645 else
9646 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9647 files are missing or cannot be compiled." >&5
9648 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9649 files are missing or cannot be compiled." >&2;}
9650 { (exit 1); exit 1; }; }
9651 fi
9652
9653
9654 NS_HAVE_NSINTEGER=yes
9655 cat >conftest.$ac_ext <<_ACEOF
9656 /* confdefs.h. */
9657 _ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9661 #include <Foundation/NSObjCRuntime.h>
9662 int
9663 main ()
9664 {
9665 NSInteger i;
9666 ;
9667 return 0;
9668 }
9669 _ACEOF
9670 rm -f conftest.$ac_objext
9671 if { (ac_try="$ac_compile"
9672 case "(($ac_try" in
9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 *) ac_try_echo=$ac_try;;
9675 esac
9676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9677 $as_echo "$ac_try_echo") >&5
9678 (eval "$ac_compile") 2>conftest.er1
9679 ac_status=$?
9680 grep -v '^ *+' conftest.er1 >conftest.err
9681 rm -f conftest.er1
9682 cat conftest.err >&5
9683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } && {
9685 test -z "$ac_c_werror_flag" ||
9686 test ! -s conftest.err
9687 } && test -s conftest.$ac_objext; then
9688 ns_have_nsinteger=yes
9689 else
9690 $as_echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9692
9693 ns_have_nsinteger=no
9694 fi
9695
9696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9697 if test $ns_have_nsinteger = no; then
9698 NS_HAVE_NSINTEGER=no
9699 fi
9700 fi
9701 if test "${HAVE_NS}" = yes; then
9702 window_system=nextstep
9703 with_xft=no
9704 # set up packaging dirs
9705 exec_prefix=${ns_appbindir}
9706 libexecdir=${ns_appbindir}/libexec
9707 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9708 prefix=${ns_appresdir}
9709 fi
9710 fi
9711 CFLAGS="$tmp_CFLAGS"
9712 CPPFLAGS="$tmp_CPPFLAGS"
9713
9714 case "${window_system}" in
9715 x11 )
9716 HAVE_X_WINDOWS=yes
9717 HAVE_X11=yes
9718 case "${with_x_toolkit}" in
9719 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9720 motif ) USE_X_TOOLKIT=MOTIF ;;
9721 gtk ) with_gtk=yes
9722 USE_X_TOOLKIT=none ;;
9723 no ) USE_X_TOOLKIT=none ;;
9724 * ) USE_X_TOOLKIT=maybe ;;
9725 esac
9726 ;;
9727 nextstep | none )
9728 HAVE_X_WINDOWS=no
9729 HAVE_X11=no
9730 USE_X_TOOLKIT=none
9731 ;;
9732 esac
9733
9734 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9735 # Extract the first word of "X", so it can be a program name with args.
9736 set dummy X; ac_word=$2
9737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9738 $as_echo_n "checking for $ac_word... " >&6; }
9739 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9740 $as_echo_n "(cached) " >&6
9741 else
9742 if test -n "$HAVE_XSERVER"; then
9743 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9744 else
9745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9746 for as_dir in $PATH
9747 do
9748 IFS=$as_save_IFS
9749 test -z "$as_dir" && as_dir=.
9750 for ac_exec_ext in '' $ac_executable_extensions; do
9751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9752 ac_cv_prog_HAVE_XSERVER="true"
9753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9754 break 2
9755 fi
9756 done
9757 done
9758 IFS=$as_save_IFS
9759
9760 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9761 fi
9762 fi
9763 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9764 if test -n "$HAVE_XSERVER"; then
9765 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9766 $as_echo "$HAVE_XSERVER" >&6; }
9767 else
9768 { $as_echo "$as_me:$LINENO: result: no" >&5
9769 $as_echo "no" >&6; }
9770 fi
9771
9772
9773 if test "$HAVE_XSERVER" = true ||
9774 test -n "$DISPLAY" ||
9775 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9776 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9777 were found. You should install the relevant development files for X
9778 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9779 sure you have development files for image handling, i.e.
9780 tiff, gif, jpeg, png and xpm.
9781 If you are sure you want Emacs compiled without X window support, pass
9782 --without-x
9783 to configure." >&5
9784 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9785 were found. You should install the relevant development files for X
9786 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9787 sure you have development files for image handling, i.e.
9788 tiff, gif, jpeg, png and xpm.
9789 If you are sure you want Emacs compiled without X window support, pass
9790 --without-x
9791 to configure." >&2;}
9792 { (exit 1); exit 1; }; }
9793 fi
9794 fi
9795
9796 ### If we're using X11, we should use the X menu package.
9797 HAVE_MENUS=no
9798 case ${HAVE_X11} in
9799 yes ) HAVE_MENUS=yes ;;
9800 esac
9801
9802 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9803 # Assume not, until told otherwise.
9804 GNU_MALLOC=yes
9805 doug_lea_malloc=yes
9806 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9807 $as_echo_n "checking for malloc_get_state... " >&6; }
9808 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9809 $as_echo_n "(cached) " >&6
9810 else
9811 cat >conftest.$ac_ext <<_ACEOF
9812 /* confdefs.h. */
9813 _ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h. */
9817 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9819 #define malloc_get_state innocuous_malloc_get_state
9820
9821 /* System header to define __stub macros and hopefully few prototypes,
9822 which can conflict with char malloc_get_state (); below.
9823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9824 <limits.h> exists even on freestanding compilers. */
9825
9826 #ifdef __STDC__
9827 # include <limits.h>
9828 #else
9829 # include <assert.h>
9830 #endif
9831
9832 #undef malloc_get_state
9833
9834 /* Override any GCC internal prototype to avoid an error.
9835 Use char because int might match the return type of a GCC
9836 builtin and then its argument prototype would still apply. */
9837 #ifdef __cplusplus
9838 extern "C"
9839 #endif
9840 char malloc_get_state ();
9841 /* The GNU C library defines this for functions which it implements
9842 to always fail with ENOSYS. Some functions are actually named
9843 something starting with __ and the normal name is an alias. */
9844 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9845 choke me
9846 #endif
9847
9848 int
9849 main ()
9850 {
9851 return malloc_get_state ();
9852 ;
9853 return 0;
9854 }
9855 _ACEOF
9856 rm -f conftest.$ac_objext conftest$ac_exeext
9857 if { (ac_try="$ac_link"
9858 case "(($ac_try" in
9859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860 *) ac_try_echo=$ac_try;;
9861 esac
9862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9863 $as_echo "$ac_try_echo") >&5
9864 (eval "$ac_link") 2>conftest.er1
9865 ac_status=$?
9866 grep -v '^ *+' conftest.er1 >conftest.err
9867 rm -f conftest.er1
9868 cat conftest.err >&5
9869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } && {
9871 test -z "$ac_c_werror_flag" ||
9872 test ! -s conftest.err
9873 } && test -s conftest$ac_exeext && {
9874 test "$cross_compiling" = yes ||
9875 $as_test_x conftest$ac_exeext
9876 }; then
9877 ac_cv_func_malloc_get_state=yes
9878 else
9879 $as_echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9881
9882 ac_cv_func_malloc_get_state=no
9883 fi
9884
9885 rm -rf conftest.dSYM
9886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9887 conftest$ac_exeext conftest.$ac_ext
9888 fi
9889 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9890 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
9891 if test $ac_cv_func_malloc_get_state = yes; then
9892 :
9893 else
9894 doug_lea_malloc=no
9895 fi
9896
9897 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9898 $as_echo_n "checking for malloc_set_state... " >&6; }
9899 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9900 $as_echo_n "(cached) " >&6
9901 else
9902 cat >conftest.$ac_ext <<_ACEOF
9903 /* confdefs.h. */
9904 _ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h. */
9908 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9910 #define malloc_set_state innocuous_malloc_set_state
9911
9912 /* System header to define __stub macros and hopefully few prototypes,
9913 which can conflict with char malloc_set_state (); below.
9914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9915 <limits.h> exists even on freestanding compilers. */
9916
9917 #ifdef __STDC__
9918 # include <limits.h>
9919 #else
9920 # include <assert.h>
9921 #endif
9922
9923 #undef malloc_set_state
9924
9925 /* Override any GCC internal prototype to avoid an error.
9926 Use char because int might match the return type of a GCC
9927 builtin and then its argument prototype would still apply. */
9928 #ifdef __cplusplus
9929 extern "C"
9930 #endif
9931 char malloc_set_state ();
9932 /* The GNU C library defines this for functions which it implements
9933 to always fail with ENOSYS. Some functions are actually named
9934 something starting with __ and the normal name is an alias. */
9935 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9936 choke me
9937 #endif
9938
9939 int
9940 main ()
9941 {
9942 return malloc_set_state ();
9943 ;
9944 return 0;
9945 }
9946 _ACEOF
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (ac_try="$ac_link"
9949 case "(($ac_try" in
9950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951 *) ac_try_echo=$ac_try;;
9952 esac
9953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9954 $as_echo "$ac_try_echo") >&5
9955 (eval "$ac_link") 2>conftest.er1
9956 ac_status=$?
9957 grep -v '^ *+' conftest.er1 >conftest.err
9958 rm -f conftest.er1
9959 cat conftest.err >&5
9960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } && {
9962 test -z "$ac_c_werror_flag" ||
9963 test ! -s conftest.err
9964 } && test -s conftest$ac_exeext && {
9965 test "$cross_compiling" = yes ||
9966 $as_test_x conftest$ac_exeext
9967 }; then
9968 ac_cv_func_malloc_set_state=yes
9969 else
9970 $as_echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9972
9973 ac_cv_func_malloc_set_state=no
9974 fi
9975
9976 rm -rf conftest.dSYM
9977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9978 conftest$ac_exeext conftest.$ac_ext
9979 fi
9980 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9981 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
9982 if test $ac_cv_func_malloc_set_state = yes; then
9983 :
9984 else
9985 doug_lea_malloc=no
9986 fi
9987
9988 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9989 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9990 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9991 $as_echo_n "(cached) " >&6
9992 else
9993 cat >conftest.$ac_ext <<_ACEOF
9994 /* confdefs.h. */
9995 _ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h. */
9999 extern void (* __after_morecore_hook)();
10000 int
10001 main ()
10002 {
10003 __after_morecore_hook = 0
10004 ;
10005 return 0;
10006 }
10007 _ACEOF
10008 rm -f conftest.$ac_objext conftest$ac_exeext
10009 if { (ac_try="$ac_link"
10010 case "(($ac_try" in
10011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012 *) ac_try_echo=$ac_try;;
10013 esac
10014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10015 $as_echo "$ac_try_echo") >&5
10016 (eval "$ac_link") 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } && {
10023 test -z "$ac_c_werror_flag" ||
10024 test ! -s conftest.err
10025 } && test -s conftest$ac_exeext && {
10026 test "$cross_compiling" = yes ||
10027 $as_test_x conftest$ac_exeext
10028 }; then
10029 emacs_cv_var___after_morecore_hook=yes
10030 else
10031 $as_echo "$as_me: failed program was:" >&5
10032 sed 's/^/| /' conftest.$ac_ext >&5
10033
10034 emacs_cv_var___after_morecore_hook=no
10035 fi
10036
10037 rm -rf conftest.dSYM
10038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10039 conftest$ac_exeext conftest.$ac_ext
10040 fi
10041 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10042 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10043 if test $emacs_cv_var___after_morecore_hook = no; then
10044 doug_lea_malloc=no
10045 fi
10046 if test "${system_malloc}" = "yes"; then
10047 GNU_MALLOC=no
10048 GNU_MALLOC_reason="
10049 (The GNU allocators don't work with this system configuration.)"
10050 fi
10051 if test "$doug_lea_malloc" = "yes" ; then
10052 if test "$GNU_MALLOC" = yes ; then
10053 GNU_MALLOC_reason="
10054 (Using Doug Lea's new malloc from the GNU C Library.)"
10055 fi
10056
10057 cat >>confdefs.h <<\_ACEOF
10058 #define DOUG_LEA_MALLOC 1
10059 _ACEOF
10060
10061 fi
10062
10063 if test x"${REL_ALLOC}" = x; then
10064 REL_ALLOC=${GNU_MALLOC}
10065 fi
10066
10067
10068
10069
10070 for ac_header in stdlib.h unistd.h
10071 do
10072 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10074 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10075 $as_echo_n "checking for $ac_header... " >&6; }
10076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10077 $as_echo_n "(cached) " >&6
10078 fi
10079 ac_res=`eval 'as_val=${'$as_ac_Header'}
10080 $as_echo "$as_val"'`
10081 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10082 $as_echo "$ac_res" >&6; }
10083 else
10084 # Is the header compilable?
10085 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10086 $as_echo_n "checking $ac_header usability... " >&6; }
10087 cat >conftest.$ac_ext <<_ACEOF
10088 /* confdefs.h. */
10089 _ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10093 $ac_includes_default
10094 #include <$ac_header>
10095 _ACEOF
10096 rm -f conftest.$ac_objext
10097 if { (ac_try="$ac_compile"
10098 case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10101 esac
10102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10103 $as_echo "$ac_try_echo") >&5
10104 (eval "$ac_compile") 2>conftest.er1
10105 ac_status=$?
10106 grep -v '^ *+' conftest.er1 >conftest.err
10107 rm -f conftest.er1
10108 cat conftest.err >&5
10109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); } && {
10111 test -z "$ac_c_werror_flag" ||
10112 test ! -s conftest.err
10113 } && test -s conftest.$ac_objext; then
10114 ac_header_compiler=yes
10115 else
10116 $as_echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10118
10119 ac_header_compiler=no
10120 fi
10121
10122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10123 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10124 $as_echo "$ac_header_compiler" >&6; }
10125
10126 # Is the header present?
10127 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10128 $as_echo_n "checking $ac_header presence... " >&6; }
10129 cat >conftest.$ac_ext <<_ACEOF
10130 /* confdefs.h. */
10131 _ACEOF
10132 cat confdefs.h >>conftest.$ac_ext
10133 cat >>conftest.$ac_ext <<_ACEOF
10134 /* end confdefs.h. */
10135 #include <$ac_header>
10136 _ACEOF
10137 if { (ac_try="$ac_cpp conftest.$ac_ext"
10138 case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10141 esac
10142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10143 $as_echo "$ac_try_echo") >&5
10144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10145 ac_status=$?
10146 grep -v '^ *+' conftest.er1 >conftest.err
10147 rm -f conftest.er1
10148 cat conftest.err >&5
10149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } >/dev/null && {
10151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10152 test ! -s conftest.err
10153 }; then
10154 ac_header_preproc=yes
10155 else
10156 $as_echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10158
10159 ac_header_preproc=no
10160 fi
10161
10162 rm -f conftest.err conftest.$ac_ext
10163 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10164 $as_echo "$ac_header_preproc" >&6; }
10165
10166 # So? What about this header?
10167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10168 yes:no: )
10169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10170 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10171 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10172 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10173 ac_header_preproc=yes
10174 ;;
10175 no:yes:* )
10176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10177 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10179 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10181 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10183 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10185 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10187 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10188
10189 ;;
10190 esac
10191 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10192 $as_echo_n "checking for $ac_header... " >&6; }
10193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10194 $as_echo_n "(cached) " >&6
10195 else
10196 eval "$as_ac_Header=\$ac_header_preproc"
10197 fi
10198 ac_res=`eval 'as_val=${'$as_ac_Header'}
10199 $as_echo "$as_val"'`
10200 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10201 $as_echo "$ac_res" >&6; }
10202
10203 fi
10204 if test `eval 'as_val=${'$as_ac_Header'}
10205 $as_echo "$as_val"'` = yes; then
10206 cat >>confdefs.h <<_ACEOF
10207 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10208 _ACEOF
10209
10210 fi
10211
10212 done
10213
10214
10215 for ac_func in getpagesize
10216 do
10217 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10218 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10219 $as_echo_n "checking for $ac_func... " >&6; }
10220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10221 $as_echo_n "(cached) " >&6
10222 else
10223 cat >conftest.$ac_ext <<_ACEOF
10224 /* confdefs.h. */
10225 _ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10231 #define $ac_func innocuous_$ac_func
10232
10233 /* System header to define __stub macros and hopefully few prototypes,
10234 which can conflict with char $ac_func (); below.
10235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10236 <limits.h> exists even on freestanding compilers. */
10237
10238 #ifdef __STDC__
10239 # include <limits.h>
10240 #else
10241 # include <assert.h>
10242 #endif
10243
10244 #undef $ac_func
10245
10246 /* Override any GCC internal prototype to avoid an error.
10247 Use char because int might match the return type of a GCC
10248 builtin and then its argument prototype would still apply. */
10249 #ifdef __cplusplus
10250 extern "C"
10251 #endif
10252 char $ac_func ();
10253 /* The GNU C library defines this for functions which it implements
10254 to always fail with ENOSYS. Some functions are actually named
10255 something starting with __ and the normal name is an alias. */
10256 #if defined __stub_$ac_func || defined __stub___$ac_func
10257 choke me
10258 #endif
10259
10260 int
10261 main ()
10262 {
10263 return $ac_func ();
10264 ;
10265 return 0;
10266 }
10267 _ACEOF
10268 rm -f conftest.$ac_objext conftest$ac_exeext
10269 if { (ac_try="$ac_link"
10270 case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10273 esac
10274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10275 $as_echo "$ac_try_echo") >&5
10276 (eval "$ac_link") 2>conftest.er1
10277 ac_status=$?
10278 grep -v '^ *+' conftest.er1 >conftest.err
10279 rm -f conftest.er1
10280 cat conftest.err >&5
10281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } && {
10283 test -z "$ac_c_werror_flag" ||
10284 test ! -s conftest.err
10285 } && test -s conftest$ac_exeext && {
10286 test "$cross_compiling" = yes ||
10287 $as_test_x conftest$ac_exeext
10288 }; then
10289 eval "$as_ac_var=yes"
10290 else
10291 $as_echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10293
10294 eval "$as_ac_var=no"
10295 fi
10296
10297 rm -rf conftest.dSYM
10298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10299 conftest$ac_exeext conftest.$ac_ext
10300 fi
10301 ac_res=`eval 'as_val=${'$as_ac_var'}
10302 $as_echo "$as_val"'`
10303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10304 $as_echo "$ac_res" >&6; }
10305 if test `eval 'as_val=${'$as_ac_var'}
10306 $as_echo "$as_val"'` = yes; then
10307 cat >>confdefs.h <<_ACEOF
10308 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10309 _ACEOF
10310
10311 fi
10312 done
10313
10314 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10315 $as_echo_n "checking for working mmap... " >&6; }
10316 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10317 $as_echo_n "(cached) " >&6
10318 else
10319 if test "$cross_compiling" = yes; then
10320 ac_cv_func_mmap_fixed_mapped=no
10321 else
10322 cat >conftest.$ac_ext <<_ACEOF
10323 /* confdefs.h. */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10328 $ac_includes_default
10329 /* malloc might have been renamed as rpl_malloc. */
10330 #undef malloc
10331
10332 /* Thanks to Mike Haertel and Jim Avera for this test.
10333 Here is a matrix of mmap possibilities:
10334 mmap private not fixed
10335 mmap private fixed at somewhere currently unmapped
10336 mmap private fixed at somewhere already mapped
10337 mmap shared not fixed
10338 mmap shared fixed at somewhere currently unmapped
10339 mmap shared fixed at somewhere already mapped
10340 For private mappings, we should verify that changes cannot be read()
10341 back from the file, nor mmap's back from the file at a different
10342 address. (There have been systems where private was not correctly
10343 implemented like the infamous i386 svr4.0, and systems where the
10344 VM page cache was not coherent with the file system buffer cache
10345 like early versions of FreeBSD and possibly contemporary NetBSD.)
10346 For shared mappings, we should conversely verify that changes get
10347 propagated back to all the places they're supposed to be.
10348
10349 Grep wants private fixed already mapped.
10350 The main things grep needs to know about mmap are:
10351 * does it exist and is it safe to write into the mmap'd area
10352 * how to use it (BSD variants) */
10353
10354 #include <fcntl.h>
10355 #include <sys/mman.h>
10356
10357 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10358 char *malloc ();
10359 #endif
10360
10361 /* This mess was copied from the GNU getpagesize.h. */
10362 #ifndef HAVE_GETPAGESIZE
10363 /* Assume that all systems that can run configure have sys/param.h. */
10364 # ifndef HAVE_SYS_PARAM_H
10365 # define HAVE_SYS_PARAM_H 1
10366 # endif
10367
10368 # ifdef _SC_PAGESIZE
10369 # define getpagesize() sysconf(_SC_PAGESIZE)
10370 # else /* no _SC_PAGESIZE */
10371 # ifdef HAVE_SYS_PARAM_H
10372 # include <sys/param.h>
10373 # ifdef EXEC_PAGESIZE
10374 # define getpagesize() EXEC_PAGESIZE
10375 # else /* no EXEC_PAGESIZE */
10376 # ifdef NBPG
10377 # define getpagesize() NBPG * CLSIZE
10378 # ifndef CLSIZE
10379 # define CLSIZE 1
10380 # endif /* no CLSIZE */
10381 # else /* no NBPG */
10382 # ifdef NBPC
10383 # define getpagesize() NBPC
10384 # else /* no NBPC */
10385 # ifdef PAGESIZE
10386 # define getpagesize() PAGESIZE
10387 # endif /* PAGESIZE */
10388 # endif /* no NBPC */
10389 # endif /* no NBPG */
10390 # endif /* no EXEC_PAGESIZE */
10391 # else /* no HAVE_SYS_PARAM_H */
10392 # define getpagesize() 8192 /* punt totally */
10393 # endif /* no HAVE_SYS_PARAM_H */
10394 # endif /* no _SC_PAGESIZE */
10395
10396 #endif /* no HAVE_GETPAGESIZE */
10397
10398 int
10399 main ()
10400 {
10401 char *data, *data2, *data3;
10402 int i, pagesize;
10403 int fd;
10404
10405 pagesize = getpagesize ();
10406
10407 /* First, make a file with some known garbage in it. */
10408 data = (char *) malloc (pagesize);
10409 if (!data)
10410 return 1;
10411 for (i = 0; i < pagesize; ++i)
10412 *(data + i) = rand ();
10413 umask (0);
10414 fd = creat ("conftest.mmap", 0600);
10415 if (fd < 0)
10416 return 1;
10417 if (write (fd, data, pagesize) != pagesize)
10418 return 1;
10419 close (fd);
10420
10421 /* Next, try to mmap the file at a fixed address which already has
10422 something else allocated at it. If we can, also make sure that
10423 we see the same garbage. */
10424 fd = open ("conftest.mmap", O_RDWR);
10425 if (fd < 0)
10426 return 1;
10427 data2 = (char *) malloc (2 * pagesize);
10428 if (!data2)
10429 return 1;
10430 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10431 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10432 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10433 return 1;
10434 for (i = 0; i < pagesize; ++i)
10435 if (*(data + i) != *(data2 + i))
10436 return 1;
10437
10438 /* Finally, make sure that changes to the mapped area do not
10439 percolate back to the file as seen by read(). (This is a bug on
10440 some variants of i386 svr4.0.) */
10441 for (i = 0; i < pagesize; ++i)
10442 *(data2 + i) = *(data2 + i) + 1;
10443 data3 = (char *) malloc (pagesize);
10444 if (!data3)
10445 return 1;
10446 if (read (fd, data3, pagesize) != pagesize)
10447 return 1;
10448 for (i = 0; i < pagesize; ++i)
10449 if (*(data + i) != *(data3 + i))
10450 return 1;
10451 close (fd);
10452 return 0;
10453 }
10454 _ACEOF
10455 rm -f conftest$ac_exeext
10456 if { (ac_try="$ac_link"
10457 case "(($ac_try" in
10458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459 *) ac_try_echo=$ac_try;;
10460 esac
10461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10462 $as_echo "$ac_try_echo") >&5
10463 (eval "$ac_link") 2>&5
10464 ac_status=$?
10465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10467 { (case "(($ac_try" in
10468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10469 *) ac_try_echo=$ac_try;;
10470 esac
10471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10472 $as_echo "$ac_try_echo") >&5
10473 (eval "$ac_try") 2>&5
10474 ac_status=$?
10475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; }; then
10477 ac_cv_func_mmap_fixed_mapped=yes
10478 else
10479 $as_echo "$as_me: program exited with status $ac_status" >&5
10480 $as_echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10482
10483 ( exit $ac_status )
10484 ac_cv_func_mmap_fixed_mapped=no
10485 fi
10486 rm -rf conftest.dSYM
10487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10488 fi
10489
10490
10491 fi
10492 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10493 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10494 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10495
10496 cat >>confdefs.h <<\_ACEOF
10497 #define HAVE_MMAP 1
10498 _ACEOF
10499
10500 fi
10501 rm -f conftest.mmap
10502
10503 if test $use_mmap_for_buffers = yes; then
10504 REL_ALLOC=no
10505 fi
10506
10507 LIBS="$libsrc_libs $LIBS"
10508
10509
10510 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10511 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10512 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10513 $as_echo_n "(cached) " >&6
10514 else
10515 ac_check_lib_save_LIBS=$LIBS
10516 LIBS="-ldnet $LIBS"
10517 cat >conftest.$ac_ext <<_ACEOF
10518 /* confdefs.h. */
10519 _ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h. */
10523
10524 /* Override any GCC internal prototype to avoid an error.
10525 Use char because int might match the return type of a GCC
10526 builtin and then its argument prototype would still apply. */
10527 #ifdef __cplusplus
10528 extern "C"
10529 #endif
10530 char dnet_ntoa ();
10531 int
10532 main ()
10533 {
10534 return dnet_ntoa ();
10535 ;
10536 return 0;
10537 }
10538 _ACEOF
10539 rm -f conftest.$ac_objext conftest$ac_exeext
10540 if { (ac_try="$ac_link"
10541 case "(($ac_try" in
10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543 *) ac_try_echo=$ac_try;;
10544 esac
10545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10546 $as_echo "$ac_try_echo") >&5
10547 (eval "$ac_link") 2>conftest.er1
10548 ac_status=$?
10549 grep -v '^ *+' conftest.er1 >conftest.err
10550 rm -f conftest.er1
10551 cat conftest.err >&5
10552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } && {
10554 test -z "$ac_c_werror_flag" ||
10555 test ! -s conftest.err
10556 } && test -s conftest$ac_exeext && {
10557 test "$cross_compiling" = yes ||
10558 $as_test_x conftest$ac_exeext
10559 }; then
10560 ac_cv_lib_dnet_dnet_ntoa=yes
10561 else
10562 $as_echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10564
10565 ac_cv_lib_dnet_dnet_ntoa=no
10566 fi
10567
10568 rm -rf conftest.dSYM
10569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10570 conftest$ac_exeext conftest.$ac_ext
10571 LIBS=$ac_check_lib_save_LIBS
10572 fi
10573 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10574 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10575 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10576 cat >>confdefs.h <<_ACEOF
10577 #define HAVE_LIBDNET 1
10578 _ACEOF
10579
10580 LIBS="-ldnet $LIBS"
10581
10582 fi
10583
10584
10585 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10586 $as_echo_n "checking for main in -lXbsd... " >&6; }
10587 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10588 $as_echo_n "(cached) " >&6
10589 else
10590 ac_check_lib_save_LIBS=$LIBS
10591 LIBS="-lXbsd $LIBS"
10592 cat >conftest.$ac_ext <<_ACEOF
10593 /* confdefs.h. */
10594 _ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10598
10599
10600 int
10601 main ()
10602 {
10603 return main ();
10604 ;
10605 return 0;
10606 }
10607 _ACEOF
10608 rm -f conftest.$ac_objext conftest$ac_exeext
10609 if { (ac_try="$ac_link"
10610 case "(($ac_try" in
10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612 *) ac_try_echo=$ac_try;;
10613 esac
10614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10615 $as_echo "$ac_try_echo") >&5
10616 (eval "$ac_link") 2>conftest.er1
10617 ac_status=$?
10618 grep -v '^ *+' conftest.er1 >conftest.err
10619 rm -f conftest.er1
10620 cat conftest.err >&5
10621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } && {
10623 test -z "$ac_c_werror_flag" ||
10624 test ! -s conftest.err
10625 } && test -s conftest$ac_exeext && {
10626 test "$cross_compiling" = yes ||
10627 $as_test_x conftest$ac_exeext
10628 }; then
10629 ac_cv_lib_Xbsd_main=yes
10630 else
10631 $as_echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10633
10634 ac_cv_lib_Xbsd_main=no
10635 fi
10636
10637 rm -rf conftest.dSYM
10638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10639 conftest$ac_exeext conftest.$ac_ext
10640 LIBS=$ac_check_lib_save_LIBS
10641 fi
10642 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10643 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10644 if test $ac_cv_lib_Xbsd_main = yes; then
10645 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10646 fi
10647
10648
10649
10650 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10651 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10652 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10653 $as_echo_n "(cached) " >&6
10654 else
10655 ac_check_lib_save_LIBS=$LIBS
10656 LIBS="-lpthreads $LIBS"
10657 cat >conftest.$ac_ext <<_ACEOF
10658 /* confdefs.h. */
10659 _ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h. */
10663
10664 /* Override any GCC internal prototype to avoid an error.
10665 Use char because int might match the return type of a GCC
10666 builtin and then its argument prototype would still apply. */
10667 #ifdef __cplusplus
10668 extern "C"
10669 #endif
10670 char cma_open ();
10671 int
10672 main ()
10673 {
10674 return cma_open ();
10675 ;
10676 return 0;
10677 }
10678 _ACEOF
10679 rm -f conftest.$ac_objext conftest$ac_exeext
10680 if { (ac_try="$ac_link"
10681 case "(($ac_try" in
10682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683 *) ac_try_echo=$ac_try;;
10684 esac
10685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10686 $as_echo "$ac_try_echo") >&5
10687 (eval "$ac_link") 2>conftest.er1
10688 ac_status=$?
10689 grep -v '^ *+' conftest.er1 >conftest.err
10690 rm -f conftest.er1
10691 cat conftest.err >&5
10692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); } && {
10694 test -z "$ac_c_werror_flag" ||
10695 test ! -s conftest.err
10696 } && test -s conftest$ac_exeext && {
10697 test "$cross_compiling" = yes ||
10698 $as_test_x conftest$ac_exeext
10699 }; then
10700 ac_cv_lib_pthreads_cma_open=yes
10701 else
10702 $as_echo "$as_me: failed program was:" >&5
10703 sed 's/^/| /' conftest.$ac_ext >&5
10704
10705 ac_cv_lib_pthreads_cma_open=no
10706 fi
10707
10708 rm -rf conftest.dSYM
10709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10710 conftest$ac_exeext conftest.$ac_ext
10711 LIBS=$ac_check_lib_save_LIBS
10712 fi
10713 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10714 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10715 if test $ac_cv_lib_pthreads_cma_open = yes; then
10716 cat >>confdefs.h <<_ACEOF
10717 #define HAVE_LIBPTHREADS 1
10718 _ACEOF
10719
10720 LIBS="-lpthreads $LIBS"
10721
10722 fi
10723
10724
10725
10726 case ${host_os} in
10727 aix*)
10728 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10729 $as_echo_n "checking for -bbigtoc option... " >&6; }
10730 if test "${gdb_cv_bigtoc+set}" = set; then
10731 $as_echo_n "(cached) " >&6
10732 else
10733
10734 case $GCC in
10735 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10736 *) gdb_cv_bigtoc=-bbigtoc ;;
10737 esac
10738
10739 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10740 cat >conftest.$ac_ext <<_ACEOF
10741 /* confdefs.h. */
10742 _ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10746
10747 int
10748 main ()
10749 {
10750 int i;
10751 ;
10752 return 0;
10753 }
10754 _ACEOF
10755 rm -f conftest.$ac_objext conftest$ac_exeext
10756 if { (ac_try="$ac_link"
10757 case "(($ac_try" in
10758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759 *) ac_try_echo=$ac_try;;
10760 esac
10761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10762 $as_echo "$ac_try_echo") >&5
10763 (eval "$ac_link") 2>conftest.er1
10764 ac_status=$?
10765 grep -v '^ *+' conftest.er1 >conftest.err
10766 rm -f conftest.er1
10767 cat conftest.err >&5
10768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } && {
10770 test -z "$ac_c_werror_flag" ||
10771 test ! -s conftest.err
10772 } && test -s conftest$ac_exeext && {
10773 test "$cross_compiling" = yes ||
10774 $as_test_x conftest$ac_exeext
10775 }; then
10776 :
10777 else
10778 $as_echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10780
10781 gdb_cv_bigtoc=
10782 fi
10783
10784 rm -rf conftest.dSYM
10785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10786 conftest$ac_exeext conftest.$ac_ext
10787
10788 fi
10789 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10790 $as_echo "$gdb_cv_bigtoc" >&6; }
10791 ;;
10792 esac
10793
10794 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10795 # used for the tests that follow. We set them back to REAL_CFLAGS and
10796 # REAL_CPPFLAGS later on.
10797
10798 REAL_CPPFLAGS="$CPPFLAGS"
10799
10800 if test "${HAVE_X11}" = "yes"; then
10801 DEFS="$C_SWITCH_X_SITE $DEFS"
10802 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10803 LIBS="$LIBX $LIBS"
10804 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10805 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10806
10807 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10808 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10809 # but it's more convenient here to set LD_RUN_PATH
10810 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10811 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10812 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10813 export LD_RUN_PATH
10814 fi
10815
10816 if test "${opsys}" = "gnu-linux"; then
10817 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10818 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10819 cat >conftest.$ac_ext <<_ACEOF
10820 /* confdefs.h. */
10821 _ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10825
10826 int
10827 main ()
10828 {
10829 XOpenDisplay ("foo");
10830 ;
10831 return 0;
10832 }
10833 _ACEOF
10834 rm -f conftest.$ac_objext conftest$ac_exeext
10835 if { (ac_try="$ac_link"
10836 case "(($ac_try" in
10837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10838 *) ac_try_echo=$ac_try;;
10839 esac
10840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10841 $as_echo "$ac_try_echo") >&5
10842 (eval "$ac_link") 2>conftest.er1
10843 ac_status=$?
10844 grep -v '^ *+' conftest.er1 >conftest.err
10845 rm -f conftest.er1
10846 cat conftest.err >&5
10847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } && {
10849 test -z "$ac_c_werror_flag" ||
10850 test ! -s conftest.err
10851 } && test -s conftest$ac_exeext && {
10852 test "$cross_compiling" = yes ||
10853 $as_test_x conftest$ac_exeext
10854 }; then
10855 xlinux_first_failure=no
10856 else
10857 $as_echo "$as_me: failed program was:" >&5
10858 sed 's/^/| /' conftest.$ac_ext >&5
10859
10860 xlinux_first_failure=yes
10861 fi
10862
10863 rm -rf conftest.dSYM
10864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10865 conftest$ac_exeext conftest.$ac_ext
10866 if test "${xlinux_first_failure}" = "yes"; then
10867 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10868 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10869 OLD_CPPFLAGS="$CPPFLAGS"
10870 OLD_LIBS="$LIBS"
10871 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10872 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10873 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10874 LIBS="$LIBS -b i486-linuxaout"
10875 cat >conftest.$ac_ext <<_ACEOF
10876 /* confdefs.h. */
10877 _ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10881
10882 int
10883 main ()
10884 {
10885 XOpenDisplay ("foo");
10886 ;
10887 return 0;
10888 }
10889 _ACEOF
10890 rm -f conftest.$ac_objext conftest$ac_exeext
10891 if { (ac_try="$ac_link"
10892 case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10895 esac
10896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10897 $as_echo "$ac_try_echo") >&5
10898 (eval "$ac_link") 2>conftest.er1
10899 ac_status=$?
10900 grep -v '^ *+' conftest.er1 >conftest.err
10901 rm -f conftest.er1
10902 cat conftest.err >&5
10903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } && {
10905 test -z "$ac_c_werror_flag" ||
10906 test ! -s conftest.err
10907 } && test -s conftest$ac_exeext && {
10908 test "$cross_compiling" = yes ||
10909 $as_test_x conftest$ac_exeext
10910 }; then
10911 xlinux_second_failure=no
10912 else
10913 $as_echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.$ac_ext >&5
10915
10916 xlinux_second_failure=yes
10917 fi
10918
10919 rm -rf conftest.dSYM
10920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10921 conftest$ac_exeext conftest.$ac_ext
10922 if test "${xlinux_second_failure}" = "yes"; then
10923 # If we get the same failure with -b, there is no use adding -b.
10924 # So take it out. This plays safe.
10925 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10926 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10927 CPPFLAGS="$OLD_CPPFLAGS"
10928 LIBS="$OLD_LIBS"
10929 { $as_echo "$as_me:$LINENO: result: no" >&5
10930 $as_echo "no" >&6; }
10931 else
10932 { $as_echo "$as_me:$LINENO: result: yes" >&5
10933 $as_echo "yes" >&6; }
10934 fi
10935 else
10936 { $as_echo "$as_me:$LINENO: result: no" >&5
10937 $as_echo "no" >&6; }
10938 fi
10939 fi
10940
10941 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10942 # header files included from there.
10943 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
10944 $as_echo_n "checking for Xkb... " >&6; }
10945 cat >conftest.$ac_ext <<_ACEOF
10946 /* confdefs.h. */
10947 _ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10951 #include <X11/Xlib.h>
10952 #include <X11/XKBlib.h>
10953 int
10954 main ()
10955 {
10956 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10957 ;
10958 return 0;
10959 }
10960 _ACEOF
10961 rm -f conftest.$ac_objext conftest$ac_exeext
10962 if { (ac_try="$ac_link"
10963 case "(($ac_try" in
10964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965 *) ac_try_echo=$ac_try;;
10966 esac
10967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10968 $as_echo "$ac_try_echo") >&5
10969 (eval "$ac_link") 2>conftest.er1
10970 ac_status=$?
10971 grep -v '^ *+' conftest.er1 >conftest.err
10972 rm -f conftest.er1
10973 cat conftest.err >&5
10974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } && {
10976 test -z "$ac_c_werror_flag" ||
10977 test ! -s conftest.err
10978 } && test -s conftest$ac_exeext && {
10979 test "$cross_compiling" = yes ||
10980 $as_test_x conftest$ac_exeext
10981 }; then
10982 emacs_xkb=yes
10983 else
10984 $as_echo "$as_me: failed program was:" >&5
10985 sed 's/^/| /' conftest.$ac_ext >&5
10986
10987 emacs_xkb=no
10988 fi
10989
10990 rm -rf conftest.dSYM
10991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10992 conftest$ac_exeext conftest.$ac_ext
10993 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10994 $as_echo "$emacs_xkb" >&6; }
10995 if test $emacs_xkb = yes; then
10996
10997 cat >>confdefs.h <<\_ACEOF
10998 #define HAVE_XKBGETKEYBOARD 1
10999 _ACEOF
11000
11001 fi
11002
11003
11004
11005
11006
11007 for ac_func in XrmSetDatabase XScreenResourceString \
11008 XScreenNumberOfScreen XSetWMProtocols
11009 do
11010 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11011 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11012 $as_echo_n "checking for $ac_func... " >&6; }
11013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11014 $as_echo_n "(cached) " >&6
11015 else
11016 cat >conftest.$ac_ext <<_ACEOF
11017 /* confdefs.h. */
11018 _ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11024 #define $ac_func innocuous_$ac_func
11025
11026 /* System header to define __stub macros and hopefully few prototypes,
11027 which can conflict with char $ac_func (); below.
11028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11029 <limits.h> exists even on freestanding compilers. */
11030
11031 #ifdef __STDC__
11032 # include <limits.h>
11033 #else
11034 # include <assert.h>
11035 #endif
11036
11037 #undef $ac_func
11038
11039 /* Override any GCC internal prototype to avoid an error.
11040 Use char because int might match the return type of a GCC
11041 builtin and then its argument prototype would still apply. */
11042 #ifdef __cplusplus
11043 extern "C"
11044 #endif
11045 char $ac_func ();
11046 /* The GNU C library defines this for functions which it implements
11047 to always fail with ENOSYS. Some functions are actually named
11048 something starting with __ and the normal name is an alias. */
11049 #if defined __stub_$ac_func || defined __stub___$ac_func
11050 choke me
11051 #endif
11052
11053 int
11054 main ()
11055 {
11056 return $ac_func ();
11057 ;
11058 return 0;
11059 }
11060 _ACEOF
11061 rm -f conftest.$ac_objext conftest$ac_exeext
11062 if { (ac_try="$ac_link"
11063 case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066 esac
11067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11068 $as_echo "$ac_try_echo") >&5
11069 (eval "$ac_link") 2>conftest.er1
11070 ac_status=$?
11071 grep -v '^ *+' conftest.er1 >conftest.err
11072 rm -f conftest.er1
11073 cat conftest.err >&5
11074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); } && {
11076 test -z "$ac_c_werror_flag" ||
11077 test ! -s conftest.err
11078 } && test -s conftest$ac_exeext && {
11079 test "$cross_compiling" = yes ||
11080 $as_test_x conftest$ac_exeext
11081 }; then
11082 eval "$as_ac_var=yes"
11083 else
11084 $as_echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11086
11087 eval "$as_ac_var=no"
11088 fi
11089
11090 rm -rf conftest.dSYM
11091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11092 conftest$ac_exeext conftest.$ac_ext
11093 fi
11094 ac_res=`eval 'as_val=${'$as_ac_var'}
11095 $as_echo "$as_val"'`
11096 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11097 $as_echo "$ac_res" >&6; }
11098 if test `eval 'as_val=${'$as_ac_var'}
11099 $as_echo "$as_val"'` = yes; then
11100 cat >>confdefs.h <<_ACEOF
11101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11102 _ACEOF
11103
11104 fi
11105 done
11106
11107 fi
11108
11109 if test "${window_system}" = "x11"; then
11110 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11111 $as_echo_n "checking X11 version 6... " >&6; }
11112 if test "${emacs_cv_x11_version_6+set}" = set; then
11113 $as_echo_n "(cached) " >&6
11114 else
11115 cat >conftest.$ac_ext <<_ACEOF
11116 /* confdefs.h. */
11117 _ACEOF
11118 cat confdefs.h >>conftest.$ac_ext
11119 cat >>conftest.$ac_ext <<_ACEOF
11120 /* end confdefs.h. */
11121 #include <X11/Xlib.h>
11122 int
11123 main ()
11124 {
11125 #if XlibSpecificationRelease < 6
11126 fail;
11127 #endif
11128
11129 ;
11130 return 0;
11131 }
11132 _ACEOF
11133 rm -f conftest.$ac_objext conftest$ac_exeext
11134 if { (ac_try="$ac_link"
11135 case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11138 esac
11139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11140 $as_echo "$ac_try_echo") >&5
11141 (eval "$ac_link") 2>conftest.er1
11142 ac_status=$?
11143 grep -v '^ *+' conftest.er1 >conftest.err
11144 rm -f conftest.er1
11145 cat conftest.err >&5
11146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } && {
11148 test -z "$ac_c_werror_flag" ||
11149 test ! -s conftest.err
11150 } && test -s conftest$ac_exeext && {
11151 test "$cross_compiling" = yes ||
11152 $as_test_x conftest$ac_exeext
11153 }; then
11154 emacs_cv_x11_version_6=yes
11155 else
11156 $as_echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11158
11159 emacs_cv_x11_version_6=no
11160 fi
11161
11162 rm -rf conftest.dSYM
11163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11164 conftest$ac_exeext conftest.$ac_ext
11165 fi
11166
11167 if test $emacs_cv_x11_version_6 = yes; then
11168 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11169 $as_echo "6 or newer" >&6; }
11170
11171 cat >>confdefs.h <<\_ACEOF
11172 #define HAVE_X11R6 1
11173 _ACEOF
11174
11175 else
11176 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11177 $as_echo "before 6" >&6; }
11178 fi
11179 fi
11180
11181
11182 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11183 HAVE_RSVG=no
11184 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11185 if test "${with_rsvg}" != "no"; then
11186 RSVG_REQUIRED=2.11.0
11187 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11188
11189
11190 succeeded=no
11191
11192 # Extract the first word of "pkg-config", so it can be a program name with args.
11193 set dummy pkg-config; ac_word=$2
11194 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11195 $as_echo_n "checking for $ac_word... " >&6; }
11196 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11197 $as_echo_n "(cached) " >&6
11198 else
11199 case $PKG_CONFIG in
11200 [\\/]* | ?:[\\/]*)
11201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11202 ;;
11203 *)
11204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205 for as_dir in $PATH
11206 do
11207 IFS=$as_save_IFS
11208 test -z "$as_dir" && as_dir=.
11209 for ac_exec_ext in '' $ac_executable_extensions; do
11210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11211 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11212 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11213 break 2
11214 fi
11215 done
11216 done
11217 IFS=$as_save_IFS
11218
11219 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11220 ;;
11221 esac
11222 fi
11223 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11224 if test -n "$PKG_CONFIG"; then
11225 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11226 $as_echo "$PKG_CONFIG" >&6; }
11227 else
11228 { $as_echo "$as_me:$LINENO: result: no" >&5
11229 $as_echo "no" >&6; }
11230 fi
11231
11232
11233
11234 if test "$PKG_CONFIG" = "no" ; then
11235 :
11236 else
11237 PKG_CONFIG_MIN_VERSION=0.9.0
11238 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11239 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11240 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11241
11242 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11243 { $as_echo "$as_me:$LINENO: result: yes" >&5
11244 $as_echo "yes" >&6; }
11245 succeeded=yes
11246
11247 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11248 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11249 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11250 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11251 $as_echo "$RSVG_CFLAGS" >&6; }
11252
11253 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11254 $as_echo_n "checking RSVG_LIBS... " >&6; }
11255 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11256 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11257 $as_echo "$RSVG_LIBS" >&6; }
11258 else
11259 { $as_echo "$as_me:$LINENO: result: no" >&5
11260 $as_echo "no" >&6; }
11261 RSVG_CFLAGS=""
11262 RSVG_LIBS=""
11263 ## If we have a custom action on failure, don't print errors, but
11264 ## do set a variable so people can do so.
11265 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11266
11267 fi
11268
11269
11270
11271 else
11272 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11273 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11274 fi
11275 fi
11276
11277 if test $succeeded = yes; then
11278 :
11279 else
11280 :
11281 fi
11282
11283
11284
11285
11286 if test ".${RSVG_CFLAGS}" != "."; then
11287 HAVE_RSVG=yes
11288
11289 cat >>confdefs.h <<\_ACEOF
11290 #define HAVE_RSVG 1
11291 _ACEOF
11292
11293 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11294 LIBS="$RSVG_LIBS $LIBS"
11295 fi
11296 fi
11297 fi
11298
11299
11300 HAVE_GTK=no
11301 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11302 GLIB_REQUIRED=2.6
11303 GTK_REQUIRED=2.6
11304 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11305
11306
11307 succeeded=no
11308
11309 # Extract the first word of "pkg-config", so it can be a program name with args.
11310 set dummy pkg-config; ac_word=$2
11311 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11312 $as_echo_n "checking for $ac_word... " >&6; }
11313 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11314 $as_echo_n "(cached) " >&6
11315 else
11316 case $PKG_CONFIG in
11317 [\\/]* | ?:[\\/]*)
11318 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11319 ;;
11320 *)
11321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11322 for as_dir in $PATH
11323 do
11324 IFS=$as_save_IFS
11325 test -z "$as_dir" && as_dir=.
11326 for ac_exec_ext in '' $ac_executable_extensions; do
11327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11328 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11330 break 2
11331 fi
11332 done
11333 done
11334 IFS=$as_save_IFS
11335
11336 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11337 ;;
11338 esac
11339 fi
11340 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11341 if test -n "$PKG_CONFIG"; then
11342 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11343 $as_echo "$PKG_CONFIG" >&6; }
11344 else
11345 { $as_echo "$as_me:$LINENO: result: no" >&5
11346 $as_echo "no" >&6; }
11347 fi
11348
11349
11350
11351 if test "$PKG_CONFIG" = "no" ; then
11352 pkg_check_gtk=no
11353 else
11354 PKG_CONFIG_MIN_VERSION=0.9.0
11355 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11356 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11357 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11358
11359 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11360 { $as_echo "$as_me:$LINENO: result: yes" >&5
11361 $as_echo "yes" >&6; }
11362 succeeded=yes
11363
11364 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11365 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11366 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11367 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11368 $as_echo "$GTK_CFLAGS" >&6; }
11369
11370 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11371 $as_echo_n "checking GTK_LIBS... " >&6; }
11372 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11373 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11374 $as_echo "$GTK_LIBS" >&6; }
11375 else
11376 { $as_echo "$as_me:$LINENO: result: no" >&5
11377 $as_echo "no" >&6; }
11378 GTK_CFLAGS=""
11379 GTK_LIBS=""
11380 ## If we have a custom action on failure, don't print errors, but
11381 ## do set a variable so people can do so.
11382 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11383
11384 fi
11385
11386
11387
11388 else
11389 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11390 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11391 fi
11392 fi
11393
11394 if test $succeeded = yes; then
11395 pkg_check_gtk=yes
11396 else
11397 pkg_check_gtk=no
11398 fi
11399
11400 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11401 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11402 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11403 { (exit 1); exit 1; }; }
11404 fi
11405 fi
11406
11407
11408 if test x"$pkg_check_gtk" = xyes; then
11409
11410
11411
11412 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11413 CFLAGS="$CFLAGS $GTK_CFLAGS"
11414 LIBS="$GTK_LIBS $LIBS"
11415 GTK_COMPILES=no
11416
11417 for ac_func in gtk_main
11418 do
11419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11420 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11421 $as_echo_n "checking for $ac_func... " >&6; }
11422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11423 $as_echo_n "(cached) " >&6
11424 else
11425 cat >conftest.$ac_ext <<_ACEOF
11426 /* confdefs.h. */
11427 _ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11433 #define $ac_func innocuous_$ac_func
11434
11435 /* System header to define __stub macros and hopefully few prototypes,
11436 which can conflict with char $ac_func (); below.
11437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11438 <limits.h> exists even on freestanding compilers. */
11439
11440 #ifdef __STDC__
11441 # include <limits.h>
11442 #else
11443 # include <assert.h>
11444 #endif
11445
11446 #undef $ac_func
11447
11448 /* Override any GCC internal prototype to avoid an error.
11449 Use char because int might match the return type of a GCC
11450 builtin and then its argument prototype would still apply. */
11451 #ifdef __cplusplus
11452 extern "C"
11453 #endif
11454 char $ac_func ();
11455 /* The GNU C library defines this for functions which it implements
11456 to always fail with ENOSYS. Some functions are actually named
11457 something starting with __ and the normal name is an alias. */
11458 #if defined __stub_$ac_func || defined __stub___$ac_func
11459 choke me
11460 #endif
11461
11462 int
11463 main ()
11464 {
11465 return $ac_func ();
11466 ;
11467 return 0;
11468 }
11469 _ACEOF
11470 rm -f conftest.$ac_objext conftest$ac_exeext
11471 if { (ac_try="$ac_link"
11472 case "(($ac_try" in
11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11475 esac
11476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11477 $as_echo "$ac_try_echo") >&5
11478 (eval "$ac_link") 2>conftest.er1
11479 ac_status=$?
11480 grep -v '^ *+' conftest.er1 >conftest.err
11481 rm -f conftest.er1
11482 cat conftest.err >&5
11483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); } && {
11485 test -z "$ac_c_werror_flag" ||
11486 test ! -s conftest.err
11487 } && test -s conftest$ac_exeext && {
11488 test "$cross_compiling" = yes ||
11489 $as_test_x conftest$ac_exeext
11490 }; then
11491 eval "$as_ac_var=yes"
11492 else
11493 $as_echo "$as_me: failed program was:" >&5
11494 sed 's/^/| /' conftest.$ac_ext >&5
11495
11496 eval "$as_ac_var=no"
11497 fi
11498
11499 rm -rf conftest.dSYM
11500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11501 conftest$ac_exeext conftest.$ac_ext
11502 fi
11503 ac_res=`eval 'as_val=${'$as_ac_var'}
11504 $as_echo "$as_val"'`
11505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11506 $as_echo "$ac_res" >&6; }
11507 if test `eval 'as_val=${'$as_ac_var'}
11508 $as_echo "$as_val"'` = yes; then
11509 cat >>confdefs.h <<_ACEOF
11510 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11511 _ACEOF
11512 GTK_COMPILES=yes
11513 fi
11514 done
11515
11516 if test "${GTK_COMPILES}" != "yes"; then
11517 if test "$USE_X_TOOLKIT" != "maybe"; then
11518 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11519 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11520 { (exit 1); exit 1; }; };
11521 fi
11522 else
11523 HAVE_GTK=yes
11524
11525 cat >>confdefs.h <<\_ACEOF
11526 #define USE_GTK 1
11527 _ACEOF
11528
11529 USE_X_TOOLKIT=none
11530 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11531 :
11532 else
11533 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11534 closing open displays. This is no problem if you just use
11535 one display, but if you use more than one and close one of them
11536 Emacs may crash." >&5
11537 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11538 closing open displays. This is no problem if you just use
11539 one display, but if you use more than one and close one of them
11540 Emacs may crash." >&2;}
11541 sleep 3
11542 fi
11543 fi
11544
11545 fi
11546
11547
11548 if test "${HAVE_GTK}" = "yes"; then
11549
11550 if test "$with_toolkit_scroll_bars" != no; then
11551 with_toolkit_scroll_bars=yes
11552 fi
11553
11554 HAVE_GTK_MULTIDISPLAY=no
11555
11556 for ac_func in gdk_display_open
11557 do
11558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11559 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11560 $as_echo_n "checking for $ac_func... " >&6; }
11561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11562 $as_echo_n "(cached) " >&6
11563 else
11564 cat >conftest.$ac_ext <<_ACEOF
11565 /* confdefs.h. */
11566 _ACEOF
11567 cat confdefs.h >>conftest.$ac_ext
11568 cat >>conftest.$ac_ext <<_ACEOF
11569 /* end confdefs.h. */
11570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11572 #define $ac_func innocuous_$ac_func
11573
11574 /* System header to define __stub macros and hopefully few prototypes,
11575 which can conflict with char $ac_func (); below.
11576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11577 <limits.h> exists even on freestanding compilers. */
11578
11579 #ifdef __STDC__
11580 # include <limits.h>
11581 #else
11582 # include <assert.h>
11583 #endif
11584
11585 #undef $ac_func
11586
11587 /* Override any GCC internal prototype to avoid an error.
11588 Use char because int might match the return type of a GCC
11589 builtin and then its argument prototype would still apply. */
11590 #ifdef __cplusplus
11591 extern "C"
11592 #endif
11593 char $ac_func ();
11594 /* The GNU C library defines this for functions which it implements
11595 to always fail with ENOSYS. Some functions are actually named
11596 something starting with __ and the normal name is an alias. */
11597 #if defined __stub_$ac_func || defined __stub___$ac_func
11598 choke me
11599 #endif
11600
11601 int
11602 main ()
11603 {
11604 return $ac_func ();
11605 ;
11606 return 0;
11607 }
11608 _ACEOF
11609 rm -f conftest.$ac_objext conftest$ac_exeext
11610 if { (ac_try="$ac_link"
11611 case "(($ac_try" in
11612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11613 *) ac_try_echo=$ac_try;;
11614 esac
11615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11616 $as_echo "$ac_try_echo") >&5
11617 (eval "$ac_link") 2>conftest.er1
11618 ac_status=$?
11619 grep -v '^ *+' conftest.er1 >conftest.err
11620 rm -f conftest.er1
11621 cat conftest.err >&5
11622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } && {
11624 test -z "$ac_c_werror_flag" ||
11625 test ! -s conftest.err
11626 } && test -s conftest$ac_exeext && {
11627 test "$cross_compiling" = yes ||
11628 $as_test_x conftest$ac_exeext
11629 }; then
11630 eval "$as_ac_var=yes"
11631 else
11632 $as_echo "$as_me: failed program was:" >&5
11633 sed 's/^/| /' conftest.$ac_ext >&5
11634
11635 eval "$as_ac_var=no"
11636 fi
11637
11638 rm -rf conftest.dSYM
11639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11640 conftest$ac_exeext conftest.$ac_ext
11641 fi
11642 ac_res=`eval 'as_val=${'$as_ac_var'}
11643 $as_echo "$as_val"'`
11644 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11645 $as_echo "$ac_res" >&6; }
11646 if test `eval 'as_val=${'$as_ac_var'}
11647 $as_echo "$as_val"'` = yes; then
11648 cat >>confdefs.h <<_ACEOF
11649 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11650 _ACEOF
11651 HAVE_GTK_MULTIDISPLAY=yes
11652 fi
11653 done
11654
11655 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11656
11657 cat >>confdefs.h <<\_ACEOF
11658 #define HAVE_GTK_MULTIDISPLAY 1
11659 _ACEOF
11660
11661 fi
11662
11663 HAVE_GTK_FILE_SELECTION=no
11664 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11665 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11666 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11667 $as_echo_n "(cached) " >&6
11668 else
11669 cat >conftest.$ac_ext <<_ACEOF
11670 /* confdefs.h. */
11671 _ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11675 $ac_includes_default
11676 #include <gtk/gtk.h>
11677
11678 int
11679 main ()
11680 {
11681 #ifndef GTK_TYPE_FILE_SELECTION
11682 (void) GTK_TYPE_FILE_SELECTION;
11683 #endif
11684
11685 ;
11686 return 0;
11687 }
11688 _ACEOF
11689 rm -f conftest.$ac_objext
11690 if { (ac_try="$ac_compile"
11691 case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11694 esac
11695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11696 $as_echo "$ac_try_echo") >&5
11697 (eval "$ac_compile") 2>conftest.er1
11698 ac_status=$?
11699 grep -v '^ *+' conftest.er1 >conftest.err
11700 rm -f conftest.er1
11701 cat conftest.err >&5
11702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } && {
11704 test -z "$ac_c_werror_flag" ||
11705 test ! -s conftest.err
11706 } && test -s conftest.$ac_objext; then
11707 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11708 else
11709 $as_echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11711
11712 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11713 fi
11714
11715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11716 fi
11717 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11718 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11719 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11720 HAVE_GTK_FILE_SELECTION=yes
11721 else
11722 HAVE_GTK_FILE_SELECTION=no
11723 fi
11724
11725 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11726
11727 for ac_func in gtk_file_selection_new
11728 do
11729 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11730 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11731 $as_echo_n "checking for $ac_func... " >&6; }
11732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11733 $as_echo_n "(cached) " >&6
11734 else
11735 cat >conftest.$ac_ext <<_ACEOF
11736 /* confdefs.h. */
11737 _ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11743 #define $ac_func innocuous_$ac_func
11744
11745 /* System header to define __stub macros and hopefully few prototypes,
11746 which can conflict with char $ac_func (); below.
11747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11748 <limits.h> exists even on freestanding compilers. */
11749
11750 #ifdef __STDC__
11751 # include <limits.h>
11752 #else
11753 # include <assert.h>
11754 #endif
11755
11756 #undef $ac_func
11757
11758 /* Override any GCC internal prototype to avoid an error.
11759 Use char because int might match the return type of a GCC
11760 builtin and then its argument prototype would still apply. */
11761 #ifdef __cplusplus
11762 extern "C"
11763 #endif
11764 char $ac_func ();
11765 /* The GNU C library defines this for functions which it implements
11766 to always fail with ENOSYS. Some functions are actually named
11767 something starting with __ and the normal name is an alias. */
11768 #if defined __stub_$ac_func || defined __stub___$ac_func
11769 choke me
11770 #endif
11771
11772 int
11773 main ()
11774 {
11775 return $ac_func ();
11776 ;
11777 return 0;
11778 }
11779 _ACEOF
11780 rm -f conftest.$ac_objext conftest$ac_exeext
11781 if { (ac_try="$ac_link"
11782 case "(($ac_try" in
11783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11785 esac
11786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11787 $as_echo "$ac_try_echo") >&5
11788 (eval "$ac_link") 2>conftest.er1
11789 ac_status=$?
11790 grep -v '^ *+' conftest.er1 >conftest.err
11791 rm -f conftest.er1
11792 cat conftest.err >&5
11793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } && {
11795 test -z "$ac_c_werror_flag" ||
11796 test ! -s conftest.err
11797 } && test -s conftest$ac_exeext && {
11798 test "$cross_compiling" = yes ||
11799 $as_test_x conftest$ac_exeext
11800 }; then
11801 eval "$as_ac_var=yes"
11802 else
11803 $as_echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11805
11806 eval "$as_ac_var=no"
11807 fi
11808
11809 rm -rf conftest.dSYM
11810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11811 conftest$ac_exeext conftest.$ac_ext
11812 fi
11813 ac_res=`eval 'as_val=${'$as_ac_var'}
11814 $as_echo "$as_val"'`
11815 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11816 $as_echo "$ac_res" >&6; }
11817 if test `eval 'as_val=${'$as_ac_var'}
11818 $as_echo "$as_val"'` = yes; then
11819 cat >>confdefs.h <<_ACEOF
11820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11821 _ACEOF
11822 HAVE_GTK_FILE_SELECTION=yes
11823 else
11824 HAVE_GTK_FILE_SELECTION=no
11825 fi
11826 done
11827
11828 fi
11829
11830 HAVE_GTK_FILE_CHOOSER=no
11831 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
11832 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
11833 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11834 $as_echo_n "(cached) " >&6
11835 else
11836 cat >conftest.$ac_ext <<_ACEOF
11837 /* confdefs.h. */
11838 _ACEOF
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h. */
11842 $ac_includes_default
11843 #include <gtk/gtk.h>
11844
11845 int
11846 main ()
11847 {
11848 #ifndef GTK_TYPE_FILE_CHOOSER
11849 (void) GTK_TYPE_FILE_CHOOSER;
11850 #endif
11851
11852 ;
11853 return 0;
11854 }
11855 _ACEOF
11856 rm -f conftest.$ac_objext
11857 if { (ac_try="$ac_compile"
11858 case "(($ac_try" in
11859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860 *) ac_try_echo=$ac_try;;
11861 esac
11862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11863 $as_echo "$ac_try_echo") >&5
11864 (eval "$ac_compile") 2>conftest.er1
11865 ac_status=$?
11866 grep -v '^ *+' conftest.er1 >conftest.err
11867 rm -f conftest.er1
11868 cat conftest.err >&5
11869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } && {
11871 test -z "$ac_c_werror_flag" ||
11872 test ! -s conftest.err
11873 } && test -s conftest.$ac_objext; then
11874 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
11875 else
11876 $as_echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11878
11879 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
11880 fi
11881
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883 fi
11884 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
11885 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
11886 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
11887 HAVE_GTK_FILE_CHOOSER=yes
11888 else
11889 HAVE_GTK_FILE_CHOOSER=no
11890 fi
11891
11892 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11893
11894 for ac_func in gtk_file_chooser_dialog_new
11895 do
11896 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11897 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11898 $as_echo_n "checking for $ac_func... " >&6; }
11899 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11900 $as_echo_n "(cached) " >&6
11901 else
11902 cat >conftest.$ac_ext <<_ACEOF
11903 /* confdefs.h. */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11910 #define $ac_func innocuous_$ac_func
11911
11912 /* System header to define __stub macros and hopefully few prototypes,
11913 which can conflict with char $ac_func (); below.
11914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11915 <limits.h> exists even on freestanding compilers. */
11916
11917 #ifdef __STDC__
11918 # include <limits.h>
11919 #else
11920 # include <assert.h>
11921 #endif
11922
11923 #undef $ac_func
11924
11925 /* Override any GCC internal prototype to avoid an error.
11926 Use char because int might match the return type of a GCC
11927 builtin and then its argument prototype would still apply. */
11928 #ifdef __cplusplus
11929 extern "C"
11930 #endif
11931 char $ac_func ();
11932 /* The GNU C library defines this for functions which it implements
11933 to always fail with ENOSYS. Some functions are actually named
11934 something starting with __ and the normal name is an alias. */
11935 #if defined __stub_$ac_func || defined __stub___$ac_func
11936 choke me
11937 #endif
11938
11939 int
11940 main ()
11941 {
11942 return $ac_func ();
11943 ;
11944 return 0;
11945 }
11946 _ACEOF
11947 rm -f conftest.$ac_objext conftest$ac_exeext
11948 if { (ac_try="$ac_link"
11949 case "(($ac_try" in
11950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951 *) ac_try_echo=$ac_try;;
11952 esac
11953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11954 $as_echo "$ac_try_echo") >&5
11955 (eval "$ac_link") 2>conftest.er1
11956 ac_status=$?
11957 grep -v '^ *+' conftest.er1 >conftest.err
11958 rm -f conftest.er1
11959 cat conftest.err >&5
11960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } && {
11962 test -z "$ac_c_werror_flag" ||
11963 test ! -s conftest.err
11964 } && test -s conftest$ac_exeext && {
11965 test "$cross_compiling" = yes ||
11966 $as_test_x conftest$ac_exeext
11967 }; then
11968 eval "$as_ac_var=yes"
11969 else
11970 $as_echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11972
11973 eval "$as_ac_var=no"
11974 fi
11975
11976 rm -rf conftest.dSYM
11977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11978 conftest$ac_exeext conftest.$ac_ext
11979 fi
11980 ac_res=`eval 'as_val=${'$as_ac_var'}
11981 $as_echo "$as_val"'`
11982 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11983 $as_echo "$ac_res" >&6; }
11984 if test `eval 'as_val=${'$as_ac_var'}
11985 $as_echo "$as_val"'` = yes; then
11986 cat >>confdefs.h <<_ACEOF
11987 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11988 _ACEOF
11989 HAVE_GTK_FILE_CHOOSER=yes
11990 else
11991 HAVE_GTK_FILE_CHOOSER=no
11992 fi
11993 done
11994
11995 fi
11996
11997 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11998 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11999
12000 cat >>confdefs.h <<\_ACEOF
12001 #define HAVE_GTK_FILE_BOTH 1
12002 _ACEOF
12003
12004 fi
12005
12006 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12007 HAVE_GTK_AND_PTHREAD=no
12008
12009 for ac_header in pthread.h
12010 do
12011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12013 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12014 $as_echo_n "checking for $ac_header... " >&6; }
12015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12016 $as_echo_n "(cached) " >&6
12017 fi
12018 ac_res=`eval 'as_val=${'$as_ac_Header'}
12019 $as_echo "$as_val"'`
12020 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12021 $as_echo "$ac_res" >&6; }
12022 else
12023 # Is the header compilable?
12024 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12025 $as_echo_n "checking $ac_header usability... " >&6; }
12026 cat >conftest.$ac_ext <<_ACEOF
12027 /* confdefs.h. */
12028 _ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12032 $ac_includes_default
12033 #include <$ac_header>
12034 _ACEOF
12035 rm -f conftest.$ac_objext
12036 if { (ac_try="$ac_compile"
12037 case "(($ac_try" in
12038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039 *) ac_try_echo=$ac_try;;
12040 esac
12041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12042 $as_echo "$ac_try_echo") >&5
12043 (eval "$ac_compile") 2>conftest.er1
12044 ac_status=$?
12045 grep -v '^ *+' conftest.er1 >conftest.err
12046 rm -f conftest.er1
12047 cat conftest.err >&5
12048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } && {
12050 test -z "$ac_c_werror_flag" ||
12051 test ! -s conftest.err
12052 } && test -s conftest.$ac_objext; then
12053 ac_header_compiler=yes
12054 else
12055 $as_echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12057
12058 ac_header_compiler=no
12059 fi
12060
12061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12062 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12063 $as_echo "$ac_header_compiler" >&6; }
12064
12065 # Is the header present?
12066 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12067 $as_echo_n "checking $ac_header presence... " >&6; }
12068 cat >conftest.$ac_ext <<_ACEOF
12069 /* confdefs.h. */
12070 _ACEOF
12071 cat confdefs.h >>conftest.$ac_ext
12072 cat >>conftest.$ac_ext <<_ACEOF
12073 /* end confdefs.h. */
12074 #include <$ac_header>
12075 _ACEOF
12076 if { (ac_try="$ac_cpp conftest.$ac_ext"
12077 case "(($ac_try" in
12078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12080 esac
12081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12082 $as_echo "$ac_try_echo") >&5
12083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12084 ac_status=$?
12085 grep -v '^ *+' conftest.er1 >conftest.err
12086 rm -f conftest.er1
12087 cat conftest.err >&5
12088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } >/dev/null && {
12090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12091 test ! -s conftest.err
12092 }; then
12093 ac_header_preproc=yes
12094 else
12095 $as_echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12097
12098 ac_header_preproc=no
12099 fi
12100
12101 rm -f conftest.err conftest.$ac_ext
12102 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12103 $as_echo "$ac_header_preproc" >&6; }
12104
12105 # So? What about this header?
12106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12107 yes:no: )
12108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12109 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12112 ac_header_preproc=yes
12113 ;;
12114 no:yes:* )
12115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12116 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12118 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12120 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12122 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12124 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12126 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12127
12128 ;;
12129 esac
12130 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12131 $as_echo_n "checking for $ac_header... " >&6; }
12132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12133 $as_echo_n "(cached) " >&6
12134 else
12135 eval "$as_ac_Header=\$ac_header_preproc"
12136 fi
12137 ac_res=`eval 'as_val=${'$as_ac_Header'}
12138 $as_echo "$as_val"'`
12139 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12140 $as_echo "$ac_res" >&6; }
12141
12142 fi
12143 if test `eval 'as_val=${'$as_ac_Header'}
12144 $as_echo "$as_val"'` = yes; then
12145 cat >>confdefs.h <<_ACEOF
12146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12147 _ACEOF
12148
12149 fi
12150
12151 done
12152
12153 if test "$ac_cv_header_pthread_h"; then
12154 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12155 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12156 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12157 $as_echo_n "(cached) " >&6
12158 else
12159 ac_check_lib_save_LIBS=$LIBS
12160 LIBS="-lpthread $LIBS"
12161 cat >conftest.$ac_ext <<_ACEOF
12162 /* confdefs.h. */
12163 _ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h. */
12167
12168 /* Override any GCC internal prototype to avoid an error.
12169 Use char because int might match the return type of a GCC
12170 builtin and then its argument prototype would still apply. */
12171 #ifdef __cplusplus
12172 extern "C"
12173 #endif
12174 char pthread_self ();
12175 int
12176 main ()
12177 {
12178 return pthread_self ();
12179 ;
12180 return 0;
12181 }
12182 _ACEOF
12183 rm -f conftest.$ac_objext conftest$ac_exeext
12184 if { (ac_try="$ac_link"
12185 case "(($ac_try" in
12186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12188 esac
12189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12190 $as_echo "$ac_try_echo") >&5
12191 (eval "$ac_link") 2>conftest.er1
12192 ac_status=$?
12193 grep -v '^ *+' conftest.er1 >conftest.err
12194 rm -f conftest.er1
12195 cat conftest.err >&5
12196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } && {
12198 test -z "$ac_c_werror_flag" ||
12199 test ! -s conftest.err
12200 } && test -s conftest$ac_exeext && {
12201 test "$cross_compiling" = yes ||
12202 $as_test_x conftest$ac_exeext
12203 }; then
12204 ac_cv_lib_pthread_pthread_self=yes
12205 else
12206 $as_echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12208
12209 ac_cv_lib_pthread_pthread_self=no
12210 fi
12211
12212 rm -rf conftest.dSYM
12213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12214 conftest$ac_exeext conftest.$ac_ext
12215 LIBS=$ac_check_lib_save_LIBS
12216 fi
12217 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12218 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12219 if test $ac_cv_lib_pthread_pthread_self = yes; then
12220 HAVE_GTK_AND_PTHREAD=yes
12221 fi
12222
12223 fi
12224 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12225 case "${canonical}" in
12226 *-hpux*) ;;
12227 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12228 esac
12229
12230 cat >>confdefs.h <<\_ACEOF
12231 #define HAVE_GTK_AND_PTHREAD 1
12232 _ACEOF
12233
12234 fi
12235 fi
12236 fi
12237
12238 HAVE_DBUS=no
12239 if test "${with_dbus}" = "yes"; then
12240
12241 succeeded=no
12242
12243 # Extract the first word of "pkg-config", so it can be a program name with args.
12244 set dummy pkg-config; ac_word=$2
12245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12246 $as_echo_n "checking for $ac_word... " >&6; }
12247 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12248 $as_echo_n "(cached) " >&6
12249 else
12250 case $PKG_CONFIG in
12251 [\\/]* | ?:[\\/]*)
12252 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12253 ;;
12254 *)
12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12257 do
12258 IFS=$as_save_IFS
12259 test -z "$as_dir" && as_dir=.
12260 for ac_exec_ext in '' $ac_executable_extensions; do
12261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12262 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12264 break 2
12265 fi
12266 done
12267 done
12268 IFS=$as_save_IFS
12269
12270 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12271 ;;
12272 esac
12273 fi
12274 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12275 if test -n "$PKG_CONFIG"; then
12276 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12277 $as_echo "$PKG_CONFIG" >&6; }
12278 else
12279 { $as_echo "$as_me:$LINENO: result: no" >&5
12280 $as_echo "no" >&6; }
12281 fi
12282
12283
12284
12285 if test "$PKG_CONFIG" = "no" ; then
12286 HAVE_DBUS=no
12287 else
12288 PKG_CONFIG_MIN_VERSION=0.9.0
12289 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12290 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12291 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12292
12293 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12294 { $as_echo "$as_me:$LINENO: result: yes" >&5
12295 $as_echo "yes" >&6; }
12296 succeeded=yes
12297
12298 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12299 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12300 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12301 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12302 $as_echo "$DBUS_CFLAGS" >&6; }
12303
12304 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12305 $as_echo_n "checking DBUS_LIBS... " >&6; }
12306 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12307 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12308 $as_echo "$DBUS_LIBS" >&6; }
12309 else
12310 { $as_echo "$as_me:$LINENO: result: no" >&5
12311 $as_echo "no" >&6; }
12312 DBUS_CFLAGS=""
12313 DBUS_LIBS=""
12314 ## If we have a custom action on failure, don't print errors, but
12315 ## do set a variable so people can do so.
12316 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12317
12318 fi
12319
12320
12321
12322 else
12323 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12324 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12325 fi
12326 fi
12327
12328 if test $succeeded = yes; then
12329 HAVE_DBUS=yes
12330 else
12331 HAVE_DBUS=no
12332 fi
12333
12334 if test "$HAVE_DBUS" = yes; then
12335 LIBS="$LIBS $DBUS_LIBS"
12336
12337 cat >>confdefs.h <<\_ACEOF
12338 #define HAVE_DBUS 1
12339 _ACEOF
12340
12341
12342 for ac_func in dbus_watch_get_unix_fd
12343 do
12344 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12345 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12346 $as_echo_n "checking for $ac_func... " >&6; }
12347 if { as_var=$as_ac_var; eval "test \"\${$as_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12358 #define $ac_func innocuous_$ac_func
12359
12360 /* System header to define __stub macros and hopefully few prototypes,
12361 which can conflict with char $ac_func (); below.
12362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12363 <limits.h> exists even on freestanding compilers. */
12364
12365 #ifdef __STDC__
12366 # include <limits.h>
12367 #else
12368 # include <assert.h>
12369 #endif
12370
12371 #undef $ac_func
12372
12373 /* Override any GCC internal prototype to avoid an error.
12374 Use char because int might match the return type of a GCC
12375 builtin and then its argument prototype would still apply. */
12376 #ifdef __cplusplus
12377 extern "C"
12378 #endif
12379 char $ac_func ();
12380 /* The GNU C library defines this for functions which it implements
12381 to always fail with ENOSYS. Some functions are actually named
12382 something starting with __ and the normal name is an alias. */
12383 #if defined __stub_$ac_func || defined __stub___$ac_func
12384 choke me
12385 #endif
12386
12387 int
12388 main ()
12389 {
12390 return $ac_func ();
12391 ;
12392 return 0;
12393 }
12394 _ACEOF
12395 rm -f conftest.$ac_objext conftest$ac_exeext
12396 if { (ac_try="$ac_link"
12397 case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12400 esac
12401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12402 $as_echo "$ac_try_echo") >&5
12403 (eval "$ac_link") 2>conftest.er1
12404 ac_status=$?
12405 grep -v '^ *+' conftest.er1 >conftest.err
12406 rm -f conftest.er1
12407 cat conftest.err >&5
12408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); } && {
12410 test -z "$ac_c_werror_flag" ||
12411 test ! -s conftest.err
12412 } && test -s conftest$ac_exeext && {
12413 test "$cross_compiling" = yes ||
12414 $as_test_x conftest$ac_exeext
12415 }; then
12416 eval "$as_ac_var=yes"
12417 else
12418 $as_echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12420
12421 eval "$as_ac_var=no"
12422 fi
12423
12424 rm -rf conftest.dSYM
12425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12426 conftest$ac_exeext conftest.$ac_ext
12427 fi
12428 ac_res=`eval 'as_val=${'$as_ac_var'}
12429 $as_echo "$as_val"'`
12430 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12431 $as_echo "$ac_res" >&6; }
12432 if test `eval 'as_val=${'$as_ac_var'}
12433 $as_echo "$as_val"'` = yes; then
12434 cat >>confdefs.h <<_ACEOF
12435 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12436 _ACEOF
12437
12438 fi
12439 done
12440
12441 fi
12442 fi
12443
12444 HAVE_XAW3D=no
12445 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12446 if test "$with_xaw3d" != no; then
12447 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12448 $as_echo_n "checking for xaw3d... " >&6; }
12449 if test "${emacs_cv_xaw3d+set}" = set; then
12450 $as_echo_n "(cached) " >&6
12451 else
12452 cat >conftest.$ac_ext <<_ACEOF
12453 /* confdefs.h. */
12454 _ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h. */
12458
12459 #include <X11/Intrinsic.h>
12460 #include <X11/Xaw3d/Simple.h>
12461 int
12462 main ()
12463 {
12464
12465 ;
12466 return 0;
12467 }
12468 _ACEOF
12469 rm -f conftest.$ac_objext conftest$ac_exeext
12470 if { (ac_try="$ac_link"
12471 case "(($ac_try" in
12472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12473 *) ac_try_echo=$ac_try;;
12474 esac
12475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12476 $as_echo "$ac_try_echo") >&5
12477 (eval "$ac_link") 2>conftest.er1
12478 ac_status=$?
12479 grep -v '^ *+' conftest.er1 >conftest.err
12480 rm -f conftest.er1
12481 cat conftest.err >&5
12482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); } && {
12484 test -z "$ac_c_werror_flag" ||
12485 test ! -s conftest.err
12486 } && test -s conftest$ac_exeext && {
12487 test "$cross_compiling" = yes ||
12488 $as_test_x conftest$ac_exeext
12489 }; then
12490 emacs_cv_xaw3d=yes
12491 else
12492 $as_echo "$as_me: failed program was:" >&5
12493 sed 's/^/| /' conftest.$ac_ext >&5
12494
12495 emacs_cv_xaw3d=no
12496 fi
12497
12498 rm -rf conftest.dSYM
12499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12500 conftest$ac_exeext conftest.$ac_ext
12501 fi
12502
12503 else
12504 emacs_cv_xaw3d=no
12505 fi
12506 if test $emacs_cv_xaw3d = yes; then
12507 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12508 $as_echo "yes; using Lucid toolkit" >&6; }
12509 USE_X_TOOLKIT=LUCID
12510 HAVE_XAW3D=yes
12511
12512 cat >>confdefs.h <<\_ACEOF
12513 #define HAVE_XAW3D 1
12514 _ACEOF
12515
12516 else
12517 { $as_echo "$as_me:$LINENO: result: no" >&5
12518 $as_echo "no" >&6; }
12519 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12520 $as_echo_n "checking for libXaw... " >&6; }
12521 if test "${emacs_cv_xaw+set}" = set; then
12522 $as_echo_n "(cached) " >&6
12523 else
12524 cat >conftest.$ac_ext <<_ACEOF
12525 /* confdefs.h. */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12530
12531 #include <X11/Intrinsic.h>
12532 #include <X11/Xaw/Simple.h>
12533 int
12534 main ()
12535 {
12536
12537 ;
12538 return 0;
12539 }
12540 _ACEOF
12541 rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (ac_try="$ac_link"
12543 case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12546 esac
12547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12548 $as_echo "$ac_try_echo") >&5
12549 (eval "$ac_link") 2>conftest.er1
12550 ac_status=$?
12551 grep -v '^ *+' conftest.er1 >conftest.err
12552 rm -f conftest.er1
12553 cat conftest.err >&5
12554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } && {
12556 test -z "$ac_c_werror_flag" ||
12557 test ! -s conftest.err
12558 } && test -s conftest$ac_exeext && {
12559 test "$cross_compiling" = yes ||
12560 $as_test_x conftest$ac_exeext
12561 }; then
12562 emacs_cv_xaw=yes
12563 else
12564 $as_echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12566
12567 emacs_cv_xaw=no
12568 fi
12569
12570 rm -rf conftest.dSYM
12571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12572 conftest$ac_exeext conftest.$ac_ext
12573 fi
12574
12575 if test $emacs_cv_xaw = yes; then
12576 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12577 $as_echo "yes; using Lucid toolkit" >&6; }
12578 USE_X_TOOLKIT=LUCID
12579 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12580 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12581 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12582 { (exit 1); exit 1; }; }
12583 else
12584 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12585 $as_echo "no; do not use toolkit by default" >&6; }
12586 USE_X_TOOLKIT=none
12587 fi
12588 fi
12589 fi
12590
12591 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12592
12593 if test "${USE_X_TOOLKIT}" != "none"; then
12594 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12595 $as_echo_n "checking X11 toolkit version... " >&6; }
12596 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12597 $as_echo_n "(cached) " >&6
12598 else
12599 cat >conftest.$ac_ext <<_ACEOF
12600 /* confdefs.h. */
12601 _ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12605 #include <X11/Intrinsic.h>
12606 int
12607 main ()
12608 {
12609 #if XtSpecificationRelease < 6
12610 fail;
12611 #endif
12612
12613 ;
12614 return 0;
12615 }
12616 _ACEOF
12617 rm -f conftest.$ac_objext conftest$ac_exeext
12618 if { (ac_try="$ac_link"
12619 case "(($ac_try" in
12620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621 *) ac_try_echo=$ac_try;;
12622 esac
12623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12624 $as_echo "$ac_try_echo") >&5
12625 (eval "$ac_link") 2>conftest.er1
12626 ac_status=$?
12627 grep -v '^ *+' conftest.er1 >conftest.err
12628 rm -f conftest.er1
12629 cat conftest.err >&5
12630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } && {
12632 test -z "$ac_c_werror_flag" ||
12633 test ! -s conftest.err
12634 } && test -s conftest$ac_exeext && {
12635 test "$cross_compiling" = yes ||
12636 $as_test_x conftest$ac_exeext
12637 }; then
12638 emacs_cv_x11_toolkit_version_6=yes
12639 else
12640 $as_echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12642
12643 emacs_cv_x11_toolkit_version_6=no
12644 fi
12645
12646 rm -rf conftest.dSYM
12647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12648 conftest$ac_exeext conftest.$ac_ext
12649 fi
12650
12651 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12652 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12653 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
12654 $as_echo "6 or newer" >&6; }
12655
12656 cat >>confdefs.h <<\_ACEOF
12657 #define HAVE_X11XTR6 1
12658 _ACEOF
12659
12660 else
12661 { $as_echo "$as_me:$LINENO: result: before 6" >&5
12662 $as_echo "before 6" >&6; }
12663 fi
12664
12665 OLDLIBS="$LIBS"
12666 if test x$HAVE_X11XTR6 = xyes; then
12667 LIBS="-lXt -lSM -lICE $LIBS"
12668 else
12669 LIBS="-lXt $LIBS"
12670 fi
12671
12672 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12673 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12674 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12675 $as_echo_n "(cached) " >&6
12676 else
12677 ac_check_lib_save_LIBS=$LIBS
12678 LIBS="-lXmu $LIBS"
12679 cat >conftest.$ac_ext <<_ACEOF
12680 /* confdefs.h. */
12681 _ACEOF
12682 cat confdefs.h >>conftest.$ac_ext
12683 cat >>conftest.$ac_ext <<_ACEOF
12684 /* end confdefs.h. */
12685
12686 /* Override any GCC internal prototype to avoid an error.
12687 Use char because int might match the return type of a GCC
12688 builtin and then its argument prototype would still apply. */
12689 #ifdef __cplusplus
12690 extern "C"
12691 #endif
12692 char XmuConvertStandardSelection ();
12693 int
12694 main ()
12695 {
12696 return XmuConvertStandardSelection ();
12697 ;
12698 return 0;
12699 }
12700 _ACEOF
12701 rm -f conftest.$ac_objext conftest$ac_exeext
12702 if { (ac_try="$ac_link"
12703 case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12706 esac
12707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12708 $as_echo "$ac_try_echo") >&5
12709 (eval "$ac_link") 2>conftest.er1
12710 ac_status=$?
12711 grep -v '^ *+' conftest.er1 >conftest.err
12712 rm -f conftest.er1
12713 cat conftest.err >&5
12714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } && {
12716 test -z "$ac_c_werror_flag" ||
12717 test ! -s conftest.err
12718 } && test -s conftest$ac_exeext && {
12719 test "$cross_compiling" = yes ||
12720 $as_test_x conftest$ac_exeext
12721 }; then
12722 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12723 else
12724 $as_echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.$ac_ext >&5
12726
12727 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12728 fi
12729
12730 rm -rf conftest.dSYM
12731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12732 conftest$ac_exeext conftest.$ac_ext
12733 LIBS=$ac_check_lib_save_LIBS
12734 fi
12735 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12736 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12737 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12738 cat >>confdefs.h <<_ACEOF
12739 #define HAVE_LIBXMU 1
12740 _ACEOF
12741
12742 LIBS="-lXmu $LIBS"
12743
12744 fi
12745
12746 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12747 fi
12748
12749 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12750 if test "${HAVE_X11}" = "yes"; then
12751 if test "${USE_X_TOOLKIT}" != "none"; then
12752
12753 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12754 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12755 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12756 $as_echo_n "(cached) " >&6
12757 else
12758 ac_check_lib_save_LIBS=$LIBS
12759 LIBS="-lXext $LIBS"
12760 cat >conftest.$ac_ext <<_ACEOF
12761 /* confdefs.h. */
12762 _ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12766
12767 /* Override any GCC internal prototype to avoid an error.
12768 Use char because int might match the return type of a GCC
12769 builtin and then its argument prototype would still apply. */
12770 #ifdef __cplusplus
12771 extern "C"
12772 #endif
12773 char XShapeQueryExtension ();
12774 int
12775 main ()
12776 {
12777 return XShapeQueryExtension ();
12778 ;
12779 return 0;
12780 }
12781 _ACEOF
12782 rm -f conftest.$ac_objext conftest$ac_exeext
12783 if { (ac_try="$ac_link"
12784 case "(($ac_try" in
12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12787 esac
12788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12789 $as_echo "$ac_try_echo") >&5
12790 (eval "$ac_link") 2>conftest.er1
12791 ac_status=$?
12792 grep -v '^ *+' conftest.er1 >conftest.err
12793 rm -f conftest.er1
12794 cat conftest.err >&5
12795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } && {
12797 test -z "$ac_c_werror_flag" ||
12798 test ! -s conftest.err
12799 } && test -s conftest$ac_exeext && {
12800 test "$cross_compiling" = yes ||
12801 $as_test_x conftest$ac_exeext
12802 }; then
12803 ac_cv_lib_Xext_XShapeQueryExtension=yes
12804 else
12805 $as_echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12807
12808 ac_cv_lib_Xext_XShapeQueryExtension=no
12809 fi
12810
12811 rm -rf conftest.dSYM
12812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12813 conftest$ac_exeext conftest.$ac_ext
12814 LIBS=$ac_check_lib_save_LIBS
12815 fi
12816 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12817 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12818 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12819 cat >>confdefs.h <<_ACEOF
12820 #define HAVE_LIBXEXT 1
12821 _ACEOF
12822
12823 LIBS="-lXext $LIBS"
12824
12825 fi
12826
12827 fi
12828 fi
12829
12830 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12831 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12832 $as_echo_n "checking for Motif version 2.1... " >&6; }
12833 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12834 $as_echo_n "(cached) " >&6
12835 else
12836 cat >conftest.$ac_ext <<_ACEOF
12837 /* confdefs.h. */
12838 _ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h. */
12842 #include <Xm/Xm.h>
12843 int
12844 main ()
12845 {
12846 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12847 int x = 5;
12848 #else
12849 Motif version prior to 2.1.
12850 #endif
12851 ;
12852 return 0;
12853 }
12854 _ACEOF
12855 rm -f conftest.$ac_objext
12856 if { (ac_try="$ac_compile"
12857 case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12860 esac
12861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12862 $as_echo "$ac_try_echo") >&5
12863 (eval "$ac_compile") 2>conftest.er1
12864 ac_status=$?
12865 grep -v '^ *+' conftest.er1 >conftest.err
12866 rm -f conftest.er1
12867 cat conftest.err >&5
12868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } && {
12870 test -z "$ac_c_werror_flag" ||
12871 test ! -s conftest.err
12872 } && test -s conftest.$ac_objext; then
12873 emacs_cv_motif_version_2_1=yes
12874 else
12875 $as_echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.$ac_ext >&5
12877
12878 emacs_cv_motif_version_2_1=no
12879 fi
12880
12881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12882 fi
12883 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12884 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12885 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12886 if test $emacs_cv_motif_version_2_1 = yes; then
12887 HAVE_LIBXP=no
12888
12889 cat >>confdefs.h <<\_ACEOF
12890 #define HAVE_MOTIF_2_1 1
12891 _ACEOF
12892
12893 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12894 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12895 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12896 $as_echo_n "(cached) " >&6
12897 else
12898 ac_check_lib_save_LIBS=$LIBS
12899 LIBS="-lXp $LIBS"
12900 cat >conftest.$ac_ext <<_ACEOF
12901 /* confdefs.h. */
12902 _ACEOF
12903 cat confdefs.h >>conftest.$ac_ext
12904 cat >>conftest.$ac_ext <<_ACEOF
12905 /* end confdefs.h. */
12906
12907 /* Override any GCC internal prototype to avoid an error.
12908 Use char because int might match the return type of a GCC
12909 builtin and then its argument prototype would still apply. */
12910 #ifdef __cplusplus
12911 extern "C"
12912 #endif
12913 char XpCreateContext ();
12914 int
12915 main ()
12916 {
12917 return XpCreateContext ();
12918 ;
12919 return 0;
12920 }
12921 _ACEOF
12922 rm -f conftest.$ac_objext conftest$ac_exeext
12923 if { (ac_try="$ac_link"
12924 case "(($ac_try" in
12925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12926 *) ac_try_echo=$ac_try;;
12927 esac
12928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12929 $as_echo "$ac_try_echo") >&5
12930 (eval "$ac_link") 2>conftest.er1
12931 ac_status=$?
12932 grep -v '^ *+' conftest.er1 >conftest.err
12933 rm -f conftest.er1
12934 cat conftest.err >&5
12935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } && {
12937 test -z "$ac_c_werror_flag" ||
12938 test ! -s conftest.err
12939 } && test -s conftest$ac_exeext && {
12940 test "$cross_compiling" = yes ||
12941 $as_test_x conftest$ac_exeext
12942 }; then
12943 ac_cv_lib_Xp_XpCreateContext=yes
12944 else
12945 $as_echo "$as_me: failed program was:" >&5
12946 sed 's/^/| /' conftest.$ac_ext >&5
12947
12948 ac_cv_lib_Xp_XpCreateContext=no
12949 fi
12950
12951 rm -rf conftest.dSYM
12952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12953 conftest$ac_exeext conftest.$ac_ext
12954 LIBS=$ac_check_lib_save_LIBS
12955 fi
12956 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12957 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12958 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12959 HAVE_LIBXP=yes
12960 fi
12961
12962 if test ${HAVE_LIBXP} = yes; then
12963
12964 cat >>confdefs.h <<\_ACEOF
12965 #define HAVE_LIBXP 1
12966 _ACEOF
12967
12968 fi
12969 else
12970 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12971 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12972 if test "${emacs_cv_lesstif+set}" = set; then
12973 $as_echo_n "(cached) " >&6
12974 else
12975 # We put this in CFLAGS temporarily to precede other -I options
12976 # that might be in CFLAGS temporarily.
12977 # We put this in CPPFLAGS where it precedes the other -I options.
12978 OLD_CPPFLAGS=$CPPFLAGS
12979 OLD_CFLAGS=$CFLAGS
12980 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12981 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12982 cat >conftest.$ac_ext <<_ACEOF
12983 /* confdefs.h. */
12984 _ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h. */
12988 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12989 int
12990 main ()
12991 {
12992 int x = 5;
12993 ;
12994 return 0;
12995 }
12996 _ACEOF
12997 rm -f conftest.$ac_objext
12998 if { (ac_try="$ac_compile"
12999 case "(($ac_try" in
13000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001 *) ac_try_echo=$ac_try;;
13002 esac
13003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13004 $as_echo "$ac_try_echo") >&5
13005 (eval "$ac_compile") 2>conftest.er1
13006 ac_status=$?
13007 grep -v '^ *+' conftest.er1 >conftest.err
13008 rm -f conftest.er1
13009 cat conftest.err >&5
13010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); } && {
13012 test -z "$ac_c_werror_flag" ||
13013 test ! -s conftest.err
13014 } && test -s conftest.$ac_objext; then
13015 emacs_cv_lesstif=yes
13016 else
13017 $as_echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13019
13020 emacs_cv_lesstif=no
13021 fi
13022
13023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13024 fi
13025 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13026 $as_echo "$emacs_cv_lesstif" >&6; }
13027 if test $emacs_cv_lesstif = yes; then
13028 # Make sure this -I option remains in CPPFLAGS after it is set
13029 # back to REAL_CPPFLAGS.
13030 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13031 # have those other -I options anyway. Ultimately, having this
13032 # directory ultimately in CPPFLAGS will be enough.
13033 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13034 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13035 else
13036 CFLAGS=$OLD_CFLAGS
13037 CPPFLAGS=$OLD_CPPFLAGS
13038 fi
13039 fi
13040 fi
13041
13042
13043
13044 USE_TOOLKIT_SCROLL_BARS=no
13045 if test "${with_toolkit_scroll_bars}" != "no"; then
13046 if test "${USE_X_TOOLKIT}" != "none"; then
13047 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13048 cat >>confdefs.h <<\_ACEOF
13049 #define USE_TOOLKIT_SCROLL_BARS 1
13050 _ACEOF
13051
13052 HAVE_XAW3D=no
13053 USE_TOOLKIT_SCROLL_BARS=yes
13054 elif test "${HAVE_XAW3D}" = "yes"; then
13055 cat >>confdefs.h <<\_ACEOF
13056 #define USE_TOOLKIT_SCROLL_BARS 1
13057 _ACEOF
13058
13059 USE_TOOLKIT_SCROLL_BARS=yes
13060 fi
13061 elif test "${HAVE_GTK}" = "yes"; then
13062 cat >>confdefs.h <<\_ACEOF
13063 #define USE_TOOLKIT_SCROLL_BARS 1
13064 _ACEOF
13065
13066 USE_TOOLKIT_SCROLL_BARS=yes
13067 elif test "${HAVE_NS}" = "yes"; then
13068 cat >>confdefs.h <<\_ACEOF
13069 #define USE_TOOLKIT_SCROLL_BARS 1
13070 _ACEOF
13071
13072 USE_TOOLKIT_SCROLL_BARS=yes
13073 fi
13074 fi
13075
13076 cat >conftest.$ac_ext <<_ACEOF
13077 /* confdefs.h. */
13078 _ACEOF
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h. */
13082
13083 #include <X11/Xlib.h>
13084 #include <X11/Xresource.h>
13085 int
13086 main ()
13087 {
13088 XIMProc callback;
13089 ;
13090 return 0;
13091 }
13092 _ACEOF
13093 rm -f conftest.$ac_objext
13094 if { (ac_try="$ac_compile"
13095 case "(($ac_try" in
13096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13097 *) ac_try_echo=$ac_try;;
13098 esac
13099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13100 $as_echo "$ac_try_echo") >&5
13101 (eval "$ac_compile") 2>conftest.er1
13102 ac_status=$?
13103 grep -v '^ *+' conftest.er1 >conftest.err
13104 rm -f conftest.er1
13105 cat conftest.err >&5
13106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); } && {
13108 test -z "$ac_c_werror_flag" ||
13109 test ! -s conftest.err
13110 } && test -s conftest.$ac_objext; then
13111 HAVE_XIM=yes
13112
13113 cat >>confdefs.h <<\_ACEOF
13114 #define HAVE_XIM 1
13115 _ACEOF
13116
13117 else
13118 $as_echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13120
13121 HAVE_XIM=no
13122 fi
13123
13124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13125
13126
13127 if test "${with_xim}" != "no"; then
13128
13129 cat >>confdefs.h <<\_ACEOF
13130 #define USE_XIM 1
13131 _ACEOF
13132
13133 fi
13134
13135
13136 if test "${HAVE_XIM}" != "no"; then
13137 late_CFLAGS=$CFLAGS
13138 if test "$GCC" = yes; then
13139 CFLAGS="$CFLAGS --pedantic-errors"
13140 fi
13141 cat >conftest.$ac_ext <<_ACEOF
13142 /* confdefs.h. */
13143 _ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147
13148 #include <X11/Xlib.h>
13149 #include <X11/Xresource.h>
13150 int
13151 main ()
13152 {
13153 Display *display;
13154 XrmDatabase db;
13155 char *res_name;
13156 char *res_class;
13157 XIMProc callback;
13158 XPointer *client_data;
13159 #ifndef __GNUC__
13160 /* If we're not using GCC, it's probably not XFree86, and this is
13161 probably right, but we can't use something like --pedantic-errors. */
13162 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13163 char*, XIMProc, XPointer*);
13164 #endif
13165 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13166 client_data);
13167 ;
13168 return 0;
13169 }
13170 _ACEOF
13171 rm -f conftest.$ac_objext
13172 if { (ac_try="$ac_compile"
13173 case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13176 esac
13177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13178 $as_echo "$ac_try_echo") >&5
13179 (eval "$ac_compile") 2>conftest.er1
13180 ac_status=$?
13181 grep -v '^ *+' conftest.er1 >conftest.err
13182 rm -f conftest.er1
13183 cat conftest.err >&5
13184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } && {
13186 test -z "$ac_c_werror_flag" ||
13187 test ! -s conftest.err
13188 } && test -s conftest.$ac_objext; then
13189 emacs_cv_arg6_star=yes
13190 else
13191 $as_echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13193
13194
13195 fi
13196
13197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13198
13199 if test "$emacs_cv_arg6_star" = yes; then
13200 cat >>confdefs.h <<\_ACEOF
13201 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13202 _ACEOF
13203
13204 else
13205 cat >>confdefs.h <<\_ACEOF
13206 #define XRegisterIMInstantiateCallback_arg6 XPointer
13207 _ACEOF
13208
13209 fi
13210 CFLAGS=$late_CFLAGS
13211 fi
13212
13213 ### Start of font-backend (under any platform) section.
13214 # (nothing here yet -- this is a placeholder)
13215 ### End of font-backend (under any platform) section.
13216
13217 ### Start of font-backend (under X11) section.
13218 if test "${HAVE_X11}" = "yes"; then
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_FC=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 fontconfig >= 2.2.0" >&5
13270 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13271
13272 if $PKG_CONFIG --exists "fontconfig >= 2.2.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 FONTCONFIG_CFLAGS" >&5
13278 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13279 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13280 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13281 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13282
13283 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13284 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13285 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13286 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13287 $as_echo "$FONTCONFIG_LIBS" >&6; }
13288 else
13289 { $as_echo "$as_me:$LINENO: result: no" >&5
13290 $as_echo "no" >&6; }
13291 FONTCONFIG_CFLAGS=""
13292 FONTCONFIG_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 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.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 HAVE_FC=yes
13309 else
13310 HAVE_FC=no
13311 fi
13312
13313
13314 ## Use -lXft if available, unless `--with-xft=no'.
13315 HAVE_XFT=maybe
13316 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13317 with_xft="no";
13318 fi
13319 if test "x${with_xft}" != "xno"; then
13320
13321
13322 succeeded=no
13323
13324 # Extract the first word of "pkg-config", so it can be a program name with args.
13325 set dummy pkg-config; ac_word=$2
13326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13327 $as_echo_n "checking for $ac_word... " >&6; }
13328 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13329 $as_echo_n "(cached) " >&6
13330 else
13331 case $PKG_CONFIG in
13332 [\\/]* | ?:[\\/]*)
13333 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13334 ;;
13335 *)
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337 for as_dir in $PATH
13338 do
13339 IFS=$as_save_IFS
13340 test -z "$as_dir" && as_dir=.
13341 for ac_exec_ext in '' $ac_executable_extensions; do
13342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13343 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13344 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13345 break 2
13346 fi
13347 done
13348 done
13349 IFS=$as_save_IFS
13350
13351 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13352 ;;
13353 esac
13354 fi
13355 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13356 if test -n "$PKG_CONFIG"; then
13357 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13358 $as_echo "$PKG_CONFIG" >&6; }
13359 else
13360 { $as_echo "$as_me:$LINENO: result: no" >&5
13361 $as_echo "no" >&6; }
13362 fi
13363
13364
13365
13366 if test "$PKG_CONFIG" = "no" ; then
13367 HAVE_XFT=no
13368 else
13369 PKG_CONFIG_MIN_VERSION=0.9.0
13370 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13371 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13372 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13373
13374 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13375 { $as_echo "$as_me:$LINENO: result: yes" >&5
13376 $as_echo "yes" >&6; }
13377 succeeded=yes
13378
13379 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13380 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13381 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13382 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13383 $as_echo "$XFT_CFLAGS" >&6; }
13384
13385 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13386 $as_echo_n "checking XFT_LIBS... " >&6; }
13387 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13388 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13389 $as_echo "$XFT_LIBS" >&6; }
13390 else
13391 { $as_echo "$as_me:$LINENO: result: no" >&5
13392 $as_echo "no" >&6; }
13393 XFT_CFLAGS=""
13394 XFT_LIBS=""
13395 ## If we have a custom action on failure, don't print errors, but
13396 ## do set a variable so people can do so.
13397 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13398
13399 fi
13400
13401
13402
13403 else
13404 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13405 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13406 fi
13407 fi
13408
13409 if test $succeeded = yes; then
13410 :
13411 else
13412 HAVE_XFT=no
13413 fi
13414
13415 if test "$HAVE_XFT" != no; then
13416 OLD_CPPFLAGS="$CPPFLAGS"
13417 OLD_CFLAGS="$CFLAGS"
13418 OLD_LIBS="$LIBS"
13419 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13420 CFLAGS="$CFLAGS $XFT_CFLAGS"
13421 LIBS="$XFT_LIBS $LIBS"
13422 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13423 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13424 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13425 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13426 $as_echo_n "(cached) " >&6
13427 fi
13428 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13429 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13430 else
13431 # Is the header compilable?
13432 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13433 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13434 cat >conftest.$ac_ext <<_ACEOF
13435 /* confdefs.h. */
13436 _ACEOF
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h. */
13440 $ac_includes_default
13441 #include <X11/Xft/Xft.h>
13442 _ACEOF
13443 rm -f conftest.$ac_objext
13444 if { (ac_try="$ac_compile"
13445 case "(($ac_try" in
13446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13447 *) ac_try_echo=$ac_try;;
13448 esac
13449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13450 $as_echo "$ac_try_echo") >&5
13451 (eval "$ac_compile") 2>conftest.er1
13452 ac_status=$?
13453 grep -v '^ *+' conftest.er1 >conftest.err
13454 rm -f conftest.er1
13455 cat conftest.err >&5
13456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } && {
13458 test -z "$ac_c_werror_flag" ||
13459 test ! -s conftest.err
13460 } && test -s conftest.$ac_objext; then
13461 ac_header_compiler=yes
13462 else
13463 $as_echo "$as_me: failed program was:" >&5
13464 sed 's/^/| /' conftest.$ac_ext >&5
13465
13466 ac_header_compiler=no
13467 fi
13468
13469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13470 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13471 $as_echo "$ac_header_compiler" >&6; }
13472
13473 # Is the header present?
13474 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13475 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13476 cat >conftest.$ac_ext <<_ACEOF
13477 /* confdefs.h. */
13478 _ACEOF
13479 cat confdefs.h >>conftest.$ac_ext
13480 cat >>conftest.$ac_ext <<_ACEOF
13481 /* end confdefs.h. */
13482 #include <X11/Xft/Xft.h>
13483 _ACEOF
13484 if { (ac_try="$ac_cpp conftest.$ac_ext"
13485 case "(($ac_try" in
13486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487 *) ac_try_echo=$ac_try;;
13488 esac
13489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13490 $as_echo "$ac_try_echo") >&5
13491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13492 ac_status=$?
13493 grep -v '^ *+' conftest.er1 >conftest.err
13494 rm -f conftest.er1
13495 cat conftest.err >&5
13496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); } >/dev/null && {
13498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13499 test ! -s conftest.err
13500 }; then
13501 ac_header_preproc=yes
13502 else
13503 $as_echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13505
13506 ac_header_preproc=no
13507 fi
13508
13509 rm -f conftest.err conftest.$ac_ext
13510 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13511 $as_echo "$ac_header_preproc" >&6; }
13512
13513 # So? What about this header?
13514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13515 yes:no: )
13516 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13517 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13518 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13519 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13520 ac_header_preproc=yes
13521 ;;
13522 no:yes:* )
13523 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13524 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13525 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13526 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13527 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13528 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13529 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13530 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13531 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13532 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13533 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13534 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13535
13536 ;;
13537 esac
13538 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13539 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13540 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13541 $as_echo_n "(cached) " >&6
13542 else
13543 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13544 fi
13545 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13546 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13547
13548 fi
13549 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13550 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13551 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13552 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13553 $as_echo_n "(cached) " >&6
13554 else
13555 ac_check_lib_save_LIBS=$LIBS
13556 LIBS="-lXft $XFT_LIBS $LIBS"
13557 cat >conftest.$ac_ext <<_ACEOF
13558 /* confdefs.h. */
13559 _ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13563
13564 /* Override any GCC internal prototype to avoid an error.
13565 Use char because int might match the return type of a GCC
13566 builtin and then its argument prototype would still apply. */
13567 #ifdef __cplusplus
13568 extern "C"
13569 #endif
13570 char XftFontOpen ();
13571 int
13572 main ()
13573 {
13574 return XftFontOpen ();
13575 ;
13576 return 0;
13577 }
13578 _ACEOF
13579 rm -f conftest.$ac_objext conftest$ac_exeext
13580 if { (ac_try="$ac_link"
13581 case "(($ac_try" in
13582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583 *) ac_try_echo=$ac_try;;
13584 esac
13585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13586 $as_echo "$ac_try_echo") >&5
13587 (eval "$ac_link") 2>conftest.er1
13588 ac_status=$?
13589 grep -v '^ *+' conftest.er1 >conftest.err
13590 rm -f conftest.er1
13591 cat conftest.err >&5
13592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); } && {
13594 test -z "$ac_c_werror_flag" ||
13595 test ! -s conftest.err
13596 } && test -s conftest$ac_exeext && {
13597 test "$cross_compiling" = yes ||
13598 $as_test_x conftest$ac_exeext
13599 }; then
13600 ac_cv_lib_Xft_XftFontOpen=yes
13601 else
13602 $as_echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13604
13605 ac_cv_lib_Xft_XftFontOpen=no
13606 fi
13607
13608 rm -rf conftest.dSYM
13609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13610 conftest$ac_exeext conftest.$ac_ext
13611 LIBS=$ac_check_lib_save_LIBS
13612 fi
13613 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13614 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13615 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13616 HAVE_XFT=yes
13617 fi
13618
13619 fi
13620
13621
13622
13623 if test "${HAVE_XFT}" = "yes"; then
13624
13625 cat >>confdefs.h <<\_ACEOF
13626 #define HAVE_XFT 1
13627 _ACEOF
13628
13629
13630 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13631 else
13632 CPPFLAGS="$OLD_CPPFLAGS"
13633 CFLAGS="$OLD_CFLAGS"
13634 LIBS="$OLD_LIBS"
13635 fi # "${HAVE_XFT}" = "yes"
13636 fi # "$HAVE_XFT" != no
13637 fi # "x${with_xft}" != "xno"
13638
13639 if test "$HAVE_XFT" != "yes"; then
13640 HAVE_XFT=no
13641 fi
13642
13643
13644 HAVE_FREETYPE=no
13645 ## We used to allow building with FreeType and without Xft.
13646 ## However, the ftx font backend driver is not in good shape.
13647 if test "${HAVE_XFT}" = "yes"; then
13648 HAVE_FREETYPE=yes
13649 FONTCONFIG_CFLAGS=
13650 FONTCONFIG_LIBS=
13651 fi
13652
13653 HAVE_LIBOTF=no
13654 if test "${HAVE_FREETYPE}" = "yes"; then
13655
13656 cat >>confdefs.h <<\_ACEOF
13657 #define HAVE_FREETYPE 1
13658 _ACEOF
13659
13660 if test "${with_libotf}" != "no"; then
13661
13662 succeeded=no
13663
13664 # Extract the first word of "pkg-config", so it can be a program name with args.
13665 set dummy pkg-config; ac_word=$2
13666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13667 $as_echo_n "checking for $ac_word... " >&6; }
13668 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13669 $as_echo_n "(cached) " >&6
13670 else
13671 case $PKG_CONFIG in
13672 [\\/]* | ?:[\\/]*)
13673 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13674 ;;
13675 *)
13676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13677 for as_dir in $PATH
13678 do
13679 IFS=$as_save_IFS
13680 test -z "$as_dir" && as_dir=.
13681 for ac_exec_ext in '' $ac_executable_extensions; do
13682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13683 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13684 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13685 break 2
13686 fi
13687 done
13688 done
13689 IFS=$as_save_IFS
13690
13691 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13692 ;;
13693 esac
13694 fi
13695 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13696 if test -n "$PKG_CONFIG"; then
13697 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13698 $as_echo "$PKG_CONFIG" >&6; }
13699 else
13700 { $as_echo "$as_me:$LINENO: result: no" >&5
13701 $as_echo "no" >&6; }
13702 fi
13703
13704
13705
13706 if test "$PKG_CONFIG" = "no" ; then
13707 HAVE_LIBOTF=no
13708 else
13709 PKG_CONFIG_MIN_VERSION=0.9.0
13710 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13711 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
13712 $as_echo_n "checking for libotf... " >&6; }
13713
13714 if $PKG_CONFIG --exists "libotf" 2>&5; then
13715 { $as_echo "$as_me:$LINENO: result: yes" >&5
13716 $as_echo "yes" >&6; }
13717 succeeded=yes
13718
13719 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13720 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
13721 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13722 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13723 $as_echo "$LIBOTF_CFLAGS" >&6; }
13724
13725 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13726 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
13727 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13728 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13729 $as_echo "$LIBOTF_LIBS" >&6; }
13730 else
13731 { $as_echo "$as_me:$LINENO: result: no" >&5
13732 $as_echo "no" >&6; }
13733 LIBOTF_CFLAGS=""
13734 LIBOTF_LIBS=""
13735 ## If we have a custom action on failure, don't print errors, but
13736 ## do set a variable so people can do so.
13737 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13738
13739 fi
13740
13741
13742
13743 else
13744 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13745 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13746 fi
13747 fi
13748
13749 if test $succeeded = yes; then
13750 HAVE_LIBOTF=yes
13751 else
13752 HAVE_LIBOTF=no
13753 fi
13754
13755 if test "$HAVE_LIBOTF" = "yes"; then
13756
13757 cat >>confdefs.h <<\_ACEOF
13758 #define HAVE_LIBOTF 1
13759 _ACEOF
13760
13761 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
13762 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13763 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13764 $as_echo_n "(cached) " >&6
13765 else
13766 ac_check_lib_save_LIBS=$LIBS
13767 LIBS="-lotf $LIBS"
13768 cat >conftest.$ac_ext <<_ACEOF
13769 /* confdefs.h. */
13770 _ACEOF
13771 cat confdefs.h >>conftest.$ac_ext
13772 cat >>conftest.$ac_ext <<_ACEOF
13773 /* end confdefs.h. */
13774
13775 /* Override any GCC internal prototype to avoid an error.
13776 Use char because int might match the return type of a GCC
13777 builtin and then its argument prototype would still apply. */
13778 #ifdef __cplusplus
13779 extern "C"
13780 #endif
13781 char OTF_get_variation_glyphs ();
13782 int
13783 main ()
13784 {
13785 return OTF_get_variation_glyphs ();
13786 ;
13787 return 0;
13788 }
13789 _ACEOF
13790 rm -f conftest.$ac_objext conftest$ac_exeext
13791 if { (ac_try="$ac_link"
13792 case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13795 esac
13796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13797 $as_echo "$ac_try_echo") >&5
13798 (eval "$ac_link") 2>conftest.er1
13799 ac_status=$?
13800 grep -v '^ *+' conftest.er1 >conftest.err
13801 rm -f conftest.er1
13802 cat conftest.err >&5
13803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } && {
13805 test -z "$ac_c_werror_flag" ||
13806 test ! -s conftest.err
13807 } && test -s conftest$ac_exeext && {
13808 test "$cross_compiling" = yes ||
13809 $as_test_x conftest$ac_exeext
13810 }; then
13811 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13812 else
13813 $as_echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.$ac_ext >&5
13815
13816 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13817 fi
13818
13819 rm -rf conftest.dSYM
13820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13821 conftest$ac_exeext conftest.$ac_ext
13822 LIBS=$ac_check_lib_save_LIBS
13823 fi
13824 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13825 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13826 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13827 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13828 else
13829 HAVE_OTF_GET_VARIATION_GLYPHS=no
13830 fi
13831
13832 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13833
13834 cat >>confdefs.h <<\_ACEOF
13835 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13836 _ACEOF
13837
13838 fi
13839 fi
13840 fi
13841 fi
13842
13843 HAVE_M17N_FLT=no
13844 if test "${HAVE_LIBOTF}" = yes; then
13845 if test "${with_m17n_flt}" != "no"; then
13846
13847 succeeded=no
13848
13849 # Extract the first word of "pkg-config", so it can be a program name with args.
13850 set dummy pkg-config; ac_word=$2
13851 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13852 $as_echo_n "checking for $ac_word... " >&6; }
13853 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13854 $as_echo_n "(cached) " >&6
13855 else
13856 case $PKG_CONFIG in
13857 [\\/]* | ?:[\\/]*)
13858 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13859 ;;
13860 *)
13861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13862 for as_dir in $PATH
13863 do
13864 IFS=$as_save_IFS
13865 test -z "$as_dir" && as_dir=.
13866 for ac_exec_ext in '' $ac_executable_extensions; do
13867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13868 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13869 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13870 break 2
13871 fi
13872 done
13873 done
13874 IFS=$as_save_IFS
13875
13876 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13877 ;;
13878 esac
13879 fi
13880 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13881 if test -n "$PKG_CONFIG"; then
13882 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13883 $as_echo "$PKG_CONFIG" >&6; }
13884 else
13885 { $as_echo "$as_me:$LINENO: result: no" >&5
13886 $as_echo "no" >&6; }
13887 fi
13888
13889
13890
13891 if test "$PKG_CONFIG" = "no" ; then
13892 HAVE_M17N_FLT=no
13893 else
13894 PKG_CONFIG_MIN_VERSION=0.9.0
13895 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13896 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
13897 $as_echo_n "checking for m17n-flt... " >&6; }
13898
13899 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13900 { $as_echo "$as_me:$LINENO: result: yes" >&5
13901 $as_echo "yes" >&6; }
13902 succeeded=yes
13903
13904 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13905 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
13906 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13907 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13908 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13909
13910 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13911 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
13912 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13913 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13914 $as_echo "$M17N_FLT_LIBS" >&6; }
13915 else
13916 { $as_echo "$as_me:$LINENO: result: no" >&5
13917 $as_echo "no" >&6; }
13918 M17N_FLT_CFLAGS=""
13919 M17N_FLT_LIBS=""
13920 ## If we have a custom action on failure, don't print errors, but
13921 ## do set a variable so people can do so.
13922 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13923
13924 fi
13925
13926
13927
13928 else
13929 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13930 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13931 fi
13932 fi
13933
13934 if test $succeeded = yes; then
13935 HAVE_M17N_FLT=yes
13936 else
13937 HAVE_M17N_FLT=no
13938 fi
13939
13940 if test "$HAVE_M17N_FLT" = "yes"; then
13941
13942 cat >>confdefs.h <<\_ACEOF
13943 #define HAVE_M17N_FLT 1
13944 _ACEOF
13945
13946 fi
13947 fi
13948 fi
13949 else
13950 HAVE_XFT=no
13951 HAVE_FREETYPE=no
13952 HAVE_LIBOTF=no
13953 HAVE_M17N_FLT=no
13954 fi
13955 ### End of font-backend (under X11) section.
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966 ### Use -lXpm if available, unless `--with-xpm=no'.
13967 HAVE_XPM=no
13968 if test "${HAVE_X11}" = "yes"; then
13969 if test "${with_xpm}" != "no"; then
13970 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13971 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13972 $as_echo_n "checking for X11/xpm.h... " >&6; }
13973 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13974 $as_echo_n "(cached) " >&6
13975 fi
13976 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13977 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
13978 else
13979 # Is the header compilable?
13980 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13981 $as_echo_n "checking X11/xpm.h usability... " >&6; }
13982 cat >conftest.$ac_ext <<_ACEOF
13983 /* confdefs.h. */
13984 _ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 $ac_includes_default
13989 #include <X11/xpm.h>
13990 _ACEOF
13991 rm -f conftest.$ac_objext
13992 if { (ac_try="$ac_compile"
13993 case "(($ac_try" in
13994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13995 *) ac_try_echo=$ac_try;;
13996 esac
13997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13998 $as_echo "$ac_try_echo") >&5
13999 (eval "$ac_compile") 2>conftest.er1
14000 ac_status=$?
14001 grep -v '^ *+' conftest.er1 >conftest.err
14002 rm -f conftest.er1
14003 cat conftest.err >&5
14004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); } && {
14006 test -z "$ac_c_werror_flag" ||
14007 test ! -s conftest.err
14008 } && test -s conftest.$ac_objext; then
14009 ac_header_compiler=yes
14010 else
14011 $as_echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14013
14014 ac_header_compiler=no
14015 fi
14016
14017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14018 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14019 $as_echo "$ac_header_compiler" >&6; }
14020
14021 # Is the header present?
14022 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14023 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14024 cat >conftest.$ac_ext <<_ACEOF
14025 /* confdefs.h. */
14026 _ACEOF
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h. */
14030 #include <X11/xpm.h>
14031 _ACEOF
14032 if { (ac_try="$ac_cpp conftest.$ac_ext"
14033 case "(($ac_try" in
14034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14035 *) ac_try_echo=$ac_try;;
14036 esac
14037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14038 $as_echo "$ac_try_echo") >&5
14039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14040 ac_status=$?
14041 grep -v '^ *+' conftest.er1 >conftest.err
14042 rm -f conftest.er1
14043 cat conftest.err >&5
14044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } >/dev/null && {
14046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14047 test ! -s conftest.err
14048 }; then
14049 ac_header_preproc=yes
14050 else
14051 $as_echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14053
14054 ac_header_preproc=no
14055 fi
14056
14057 rm -f conftest.err conftest.$ac_ext
14058 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14059 $as_echo "$ac_header_preproc" >&6; }
14060
14061 # So? What about this header?
14062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14063 yes:no: )
14064 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14065 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14066 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14067 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14068 ac_header_preproc=yes
14069 ;;
14070 no:yes:* )
14071 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14072 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14073 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14074 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14075 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14076 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14077 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14078 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14079 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14080 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14081 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14082 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14083
14084 ;;
14085 esac
14086 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14087 $as_echo_n "checking for X11/xpm.h... " >&6; }
14088 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14089 $as_echo_n "(cached) " >&6
14090 else
14091 ac_cv_header_X11_xpm_h=$ac_header_preproc
14092 fi
14093 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14094 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14095
14096 fi
14097 if test $ac_cv_header_X11_xpm_h = yes; then
14098 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14099 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14100 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14101 $as_echo_n "(cached) " >&6
14102 else
14103 ac_check_lib_save_LIBS=$LIBS
14104 LIBS="-lXpm -lX11 $LIBS"
14105 cat >conftest.$ac_ext <<_ACEOF
14106 /* confdefs.h. */
14107 _ACEOF
14108 cat confdefs.h >>conftest.$ac_ext
14109 cat >>conftest.$ac_ext <<_ACEOF
14110 /* end confdefs.h. */
14111
14112 /* Override any GCC internal prototype to avoid an error.
14113 Use char because int might match the return type of a GCC
14114 builtin and then its argument prototype would still apply. */
14115 #ifdef __cplusplus
14116 extern "C"
14117 #endif
14118 char XpmReadFileToPixmap ();
14119 int
14120 main ()
14121 {
14122 return XpmReadFileToPixmap ();
14123 ;
14124 return 0;
14125 }
14126 _ACEOF
14127 rm -f conftest.$ac_objext conftest$ac_exeext
14128 if { (ac_try="$ac_link"
14129 case "(($ac_try" in
14130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131 *) ac_try_echo=$ac_try;;
14132 esac
14133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14134 $as_echo "$ac_try_echo") >&5
14135 (eval "$ac_link") 2>conftest.er1
14136 ac_status=$?
14137 grep -v '^ *+' conftest.er1 >conftest.err
14138 rm -f conftest.er1
14139 cat conftest.err >&5
14140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } && {
14142 test -z "$ac_c_werror_flag" ||
14143 test ! -s conftest.err
14144 } && test -s conftest$ac_exeext && {
14145 test "$cross_compiling" = yes ||
14146 $as_test_x conftest$ac_exeext
14147 }; then
14148 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14149 else
14150 $as_echo "$as_me: failed program was:" >&5
14151 sed 's/^/| /' conftest.$ac_ext >&5
14152
14153 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14154 fi
14155
14156 rm -rf conftest.dSYM
14157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14158 conftest$ac_exeext conftest.$ac_ext
14159 LIBS=$ac_check_lib_save_LIBS
14160 fi
14161 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14162 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14163 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14164 HAVE_XPM=yes
14165 fi
14166
14167 fi
14168
14169
14170 if test "${HAVE_XPM}" = "yes"; then
14171 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14172 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14173 cat >conftest.$ac_ext <<_ACEOF
14174 /* confdefs.h. */
14175 _ACEOF
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h. */
14179 #include "X11/xpm.h"
14180 #ifndef XpmReturnAllocPixels
14181 no_return_alloc_pixels
14182 #endif
14183
14184 _ACEOF
14185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14186 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14187 HAVE_XPM=no
14188 else
14189 HAVE_XPM=yes
14190 fi
14191 rm -f conftest*
14192
14193
14194 if test "${HAVE_XPM}" = "yes"; then
14195 { $as_echo "$as_me:$LINENO: result: yes" >&5
14196 $as_echo "yes" >&6; }
14197 else
14198 { $as_echo "$as_me:$LINENO: result: no" >&5
14199 $as_echo "no" >&6; }
14200 fi
14201 fi
14202 fi
14203
14204 if test "${HAVE_XPM}" = "yes"; then
14205
14206 cat >>confdefs.h <<\_ACEOF
14207 #define HAVE_XPM 1
14208 _ACEOF
14209
14210 fi
14211 fi
14212
14213 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14214 HAVE_JPEG=no
14215 if test "${HAVE_X11}" = "yes"; then
14216 if test "${with_jpeg}" != "no"; then
14217 if test "${ac_cv_header_jerror_h+set}" = set; then
14218 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14219 $as_echo_n "checking for jerror.h... " >&6; }
14220 if test "${ac_cv_header_jerror_h+set}" = set; then
14221 $as_echo_n "(cached) " >&6
14222 fi
14223 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14224 $as_echo "$ac_cv_header_jerror_h" >&6; }
14225 else
14226 # Is the header compilable?
14227 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14228 $as_echo_n "checking jerror.h usability... " >&6; }
14229 cat >conftest.$ac_ext <<_ACEOF
14230 /* confdefs.h. */
14231 _ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14235 $ac_includes_default
14236 #include <jerror.h>
14237 _ACEOF
14238 rm -f conftest.$ac_objext
14239 if { (ac_try="$ac_compile"
14240 case "(($ac_try" in
14241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242 *) ac_try_echo=$ac_try;;
14243 esac
14244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14245 $as_echo "$ac_try_echo") >&5
14246 (eval "$ac_compile") 2>conftest.er1
14247 ac_status=$?
14248 grep -v '^ *+' conftest.er1 >conftest.err
14249 rm -f conftest.er1
14250 cat conftest.err >&5
14251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } && {
14253 test -z "$ac_c_werror_flag" ||
14254 test ! -s conftest.err
14255 } && test -s conftest.$ac_objext; then
14256 ac_header_compiler=yes
14257 else
14258 $as_echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14260
14261 ac_header_compiler=no
14262 fi
14263
14264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14266 $as_echo "$ac_header_compiler" >&6; }
14267
14268 # Is the header present?
14269 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14270 $as_echo_n "checking jerror.h presence... " >&6; }
14271 cat >conftest.$ac_ext <<_ACEOF
14272 /* confdefs.h. */
14273 _ACEOF
14274 cat confdefs.h >>conftest.$ac_ext
14275 cat >>conftest.$ac_ext <<_ACEOF
14276 /* end confdefs.h. */
14277 #include <jerror.h>
14278 _ACEOF
14279 if { (ac_try="$ac_cpp conftest.$ac_ext"
14280 case "(($ac_try" in
14281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282 *) ac_try_echo=$ac_try;;
14283 esac
14284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14285 $as_echo "$ac_try_echo") >&5
14286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14287 ac_status=$?
14288 grep -v '^ *+' conftest.er1 >conftest.err
14289 rm -f conftest.er1
14290 cat conftest.err >&5
14291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } >/dev/null && {
14293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14294 test ! -s conftest.err
14295 }; then
14296 ac_header_preproc=yes
14297 else
14298 $as_echo "$as_me: failed program was:" >&5
14299 sed 's/^/| /' conftest.$ac_ext >&5
14300
14301 ac_header_preproc=no
14302 fi
14303
14304 rm -f conftest.err conftest.$ac_ext
14305 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14306 $as_echo "$ac_header_preproc" >&6; }
14307
14308 # So? What about this header?
14309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14310 yes:no: )
14311 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14312 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14313 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14314 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14315 ac_header_preproc=yes
14316 ;;
14317 no:yes:* )
14318 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14319 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14320 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14321 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14322 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14323 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14324 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14325 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14326 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14327 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14328 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14329 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14330
14331 ;;
14332 esac
14333 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14334 $as_echo_n "checking for jerror.h... " >&6; }
14335 if test "${ac_cv_header_jerror_h+set}" = set; then
14336 $as_echo_n "(cached) " >&6
14337 else
14338 ac_cv_header_jerror_h=$ac_header_preproc
14339 fi
14340 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14341 $as_echo "$ac_cv_header_jerror_h" >&6; }
14342
14343 fi
14344 if test $ac_cv_header_jerror_h = yes; then
14345 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14346 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14347 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14348 $as_echo_n "(cached) " >&6
14349 else
14350 ac_check_lib_save_LIBS=$LIBS
14351 LIBS="-ljpeg $LIBS"
14352 cat >conftest.$ac_ext <<_ACEOF
14353 /* confdefs.h. */
14354 _ACEOF
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h. */
14358
14359 /* Override any GCC internal prototype to avoid an error.
14360 Use char because int might match the return type of a GCC
14361 builtin and then its argument prototype would still apply. */
14362 #ifdef __cplusplus
14363 extern "C"
14364 #endif
14365 char jpeg_destroy_compress ();
14366 int
14367 main ()
14368 {
14369 return jpeg_destroy_compress ();
14370 ;
14371 return 0;
14372 }
14373 _ACEOF
14374 rm -f conftest.$ac_objext conftest$ac_exeext
14375 if { (ac_try="$ac_link"
14376 case "(($ac_try" in
14377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14378 *) ac_try_echo=$ac_try;;
14379 esac
14380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14381 $as_echo "$ac_try_echo") >&5
14382 (eval "$ac_link") 2>conftest.er1
14383 ac_status=$?
14384 grep -v '^ *+' conftest.er1 >conftest.err
14385 rm -f conftest.er1
14386 cat conftest.err >&5
14387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } && {
14389 test -z "$ac_c_werror_flag" ||
14390 test ! -s conftest.err
14391 } && test -s conftest$ac_exeext && {
14392 test "$cross_compiling" = yes ||
14393 $as_test_x conftest$ac_exeext
14394 }; then
14395 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14396 else
14397 $as_echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14399
14400 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14401 fi
14402
14403 rm -rf conftest.dSYM
14404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14405 conftest$ac_exeext conftest.$ac_ext
14406 LIBS=$ac_check_lib_save_LIBS
14407 fi
14408 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14409 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14410 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14411 HAVE_JPEG=yes
14412 fi
14413
14414 fi
14415
14416
14417 fi
14418
14419
14420 if test "${HAVE_JPEG}" = "yes"; then
14421 cat >>confdefs.h <<\_ACEOF
14422 #define HAVE_JPEG 1
14423 _ACEOF
14424
14425 cat >conftest.$ac_ext <<_ACEOF
14426 /* confdefs.h. */
14427 _ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14431 #include <jpeglib.h>
14432 version=JPEG_LIB_VERSION
14433
14434 _ACEOF
14435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14436 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14437 cat >>confdefs.h <<\_ACEOF
14438 #define HAVE_JPEG 1
14439 _ACEOF
14440
14441 else
14442 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14443 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14444 HAVE_JPEG=no
14445 fi
14446 rm -f conftest*
14447
14448 fi
14449 fi
14450
14451 ### Use -lpng if available, unless `--with-png=no'.
14452 HAVE_PNG=no
14453 if test "${HAVE_X11}" = "yes"; then
14454 if test "${with_png}" != "no"; then
14455 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14456 # in /usr/include/libpng.
14457
14458
14459 for ac_header in png.h libpng/png.h
14460 do
14461 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14463 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14464 $as_echo_n "checking for $ac_header... " >&6; }
14465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14466 $as_echo_n "(cached) " >&6
14467 fi
14468 ac_res=`eval 'as_val=${'$as_ac_Header'}
14469 $as_echo "$as_val"'`
14470 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14471 $as_echo "$ac_res" >&6; }
14472 else
14473 # Is the header compilable?
14474 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14475 $as_echo_n "checking $ac_header usability... " >&6; }
14476 cat >conftest.$ac_ext <<_ACEOF
14477 /* confdefs.h. */
14478 _ACEOF
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h. */
14482 $ac_includes_default
14483 #include <$ac_header>
14484 _ACEOF
14485 rm -f conftest.$ac_objext
14486 if { (ac_try="$ac_compile"
14487 case "(($ac_try" in
14488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14489 *) ac_try_echo=$ac_try;;
14490 esac
14491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14492 $as_echo "$ac_try_echo") >&5
14493 (eval "$ac_compile") 2>conftest.er1
14494 ac_status=$?
14495 grep -v '^ *+' conftest.er1 >conftest.err
14496 rm -f conftest.er1
14497 cat conftest.err >&5
14498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); } && {
14500 test -z "$ac_c_werror_flag" ||
14501 test ! -s conftest.err
14502 } && test -s conftest.$ac_objext; then
14503 ac_header_compiler=yes
14504 else
14505 $as_echo "$as_me: failed program was:" >&5
14506 sed 's/^/| /' conftest.$ac_ext >&5
14507
14508 ac_header_compiler=no
14509 fi
14510
14511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14512 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14513 $as_echo "$ac_header_compiler" >&6; }
14514
14515 # Is the header present?
14516 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14517 $as_echo_n "checking $ac_header presence... " >&6; }
14518 cat >conftest.$ac_ext <<_ACEOF
14519 /* confdefs.h. */
14520 _ACEOF
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h. */
14524 #include <$ac_header>
14525 _ACEOF
14526 if { (ac_try="$ac_cpp conftest.$ac_ext"
14527 case "(($ac_try" in
14528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529 *) ac_try_echo=$ac_try;;
14530 esac
14531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14532 $as_echo "$ac_try_echo") >&5
14533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14534 ac_status=$?
14535 grep -v '^ *+' conftest.er1 >conftest.err
14536 rm -f conftest.er1
14537 cat conftest.err >&5
14538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } >/dev/null && {
14540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14541 test ! -s conftest.err
14542 }; then
14543 ac_header_preproc=yes
14544 else
14545 $as_echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14547
14548 ac_header_preproc=no
14549 fi
14550
14551 rm -f conftest.err conftest.$ac_ext
14552 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14553 $as_echo "$ac_header_preproc" >&6; }
14554
14555 # So? What about this header?
14556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14557 yes:no: )
14558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14559 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14561 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14562 ac_header_preproc=yes
14563 ;;
14564 no:yes:* )
14565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14566 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14568 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14570 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14572 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14573 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14574 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14575 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14576 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14577
14578 ;;
14579 esac
14580 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14581 $as_echo_n "checking for $ac_header... " >&6; }
14582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14583 $as_echo_n "(cached) " >&6
14584 else
14585 eval "$as_ac_Header=\$ac_header_preproc"
14586 fi
14587 ac_res=`eval 'as_val=${'$as_ac_Header'}
14588 $as_echo "$as_val"'`
14589 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14590 $as_echo "$ac_res" >&6; }
14591
14592 fi
14593 if test `eval 'as_val=${'$as_ac_Header'}
14594 $as_echo "$as_val"'` = yes; then
14595 cat >>confdefs.h <<_ACEOF
14596 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14597 _ACEOF
14598
14599 fi
14600
14601 done
14602
14603 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14604 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14605 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
14606 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14607 $as_echo_n "(cached) " >&6
14608 else
14609 ac_check_lib_save_LIBS=$LIBS
14610 LIBS="-lpng -lz -lm $LIBS"
14611 cat >conftest.$ac_ext <<_ACEOF
14612 /* confdefs.h. */
14613 _ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h. */
14617
14618 /* Override any GCC internal prototype to avoid an error.
14619 Use char because int might match the return type of a GCC
14620 builtin and then its argument prototype would still apply. */
14621 #ifdef __cplusplus
14622 extern "C"
14623 #endif
14624 char png_get_channels ();
14625 int
14626 main ()
14627 {
14628 return png_get_channels ();
14629 ;
14630 return 0;
14631 }
14632 _ACEOF
14633 rm -f conftest.$ac_objext conftest$ac_exeext
14634 if { (ac_try="$ac_link"
14635 case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14638 esac
14639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14640 $as_echo "$ac_try_echo") >&5
14641 (eval "$ac_link") 2>conftest.er1
14642 ac_status=$?
14643 grep -v '^ *+' conftest.er1 >conftest.err
14644 rm -f conftest.er1
14645 cat conftest.err >&5
14646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } && {
14648 test -z "$ac_c_werror_flag" ||
14649 test ! -s conftest.err
14650 } && test -s conftest$ac_exeext && {
14651 test "$cross_compiling" = yes ||
14652 $as_test_x conftest$ac_exeext
14653 }; then
14654 ac_cv_lib_png_png_get_channels=yes
14655 else
14656 $as_echo "$as_me: failed program was:" >&5
14657 sed 's/^/| /' conftest.$ac_ext >&5
14658
14659 ac_cv_lib_png_png_get_channels=no
14660 fi
14661
14662 rm -rf conftest.dSYM
14663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14664 conftest$ac_exeext conftest.$ac_ext
14665 LIBS=$ac_check_lib_save_LIBS
14666 fi
14667 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14668 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14669 if test $ac_cv_lib_png_png_get_channels = yes; then
14670 HAVE_PNG=yes
14671 fi
14672
14673 fi
14674 fi
14675
14676 if test "${HAVE_PNG}" = "yes"; then
14677
14678 cat >>confdefs.h <<\_ACEOF
14679 #define HAVE_PNG 1
14680 _ACEOF
14681
14682 fi
14683 fi
14684
14685 ### Use -ltiff if available, unless `--with-tiff=no'.
14686 HAVE_TIFF=no
14687 if test "${HAVE_X11}" = "yes"; then
14688 if test "${with_tiff}" != "no"; then
14689 if test "${ac_cv_header_tiffio_h+set}" = set; then
14690 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14691 $as_echo_n "checking for tiffio.h... " >&6; }
14692 if test "${ac_cv_header_tiffio_h+set}" = set; then
14693 $as_echo_n "(cached) " >&6
14694 fi
14695 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14696 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14697 else
14698 # Is the header compilable?
14699 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14700 $as_echo_n "checking tiffio.h usability... " >&6; }
14701 cat >conftest.$ac_ext <<_ACEOF
14702 /* confdefs.h. */
14703 _ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14707 $ac_includes_default
14708 #include <tiffio.h>
14709 _ACEOF
14710 rm -f conftest.$ac_objext
14711 if { (ac_try="$ac_compile"
14712 case "(($ac_try" in
14713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714 *) ac_try_echo=$ac_try;;
14715 esac
14716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14717 $as_echo "$ac_try_echo") >&5
14718 (eval "$ac_compile") 2>conftest.er1
14719 ac_status=$?
14720 grep -v '^ *+' conftest.er1 >conftest.err
14721 rm -f conftest.er1
14722 cat conftest.err >&5
14723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } && {
14725 test -z "$ac_c_werror_flag" ||
14726 test ! -s conftest.err
14727 } && test -s conftest.$ac_objext; then
14728 ac_header_compiler=yes
14729 else
14730 $as_echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.$ac_ext >&5
14732
14733 ac_header_compiler=no
14734 fi
14735
14736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14737 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14738 $as_echo "$ac_header_compiler" >&6; }
14739
14740 # Is the header present?
14741 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14742 $as_echo_n "checking tiffio.h presence... " >&6; }
14743 cat >conftest.$ac_ext <<_ACEOF
14744 /* confdefs.h. */
14745 _ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14749 #include <tiffio.h>
14750 _ACEOF
14751 if { (ac_try="$ac_cpp conftest.$ac_ext"
14752 case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14755 esac
14756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14757 $as_echo "$ac_try_echo") >&5
14758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14759 ac_status=$?
14760 grep -v '^ *+' conftest.er1 >conftest.err
14761 rm -f conftest.er1
14762 cat conftest.err >&5
14763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } >/dev/null && {
14765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14766 test ! -s conftest.err
14767 }; then
14768 ac_header_preproc=yes
14769 else
14770 $as_echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14772
14773 ac_header_preproc=no
14774 fi
14775
14776 rm -f conftest.err conftest.$ac_ext
14777 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14778 $as_echo "$ac_header_preproc" >&6; }
14779
14780 # So? What about this header?
14781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14782 yes:no: )
14783 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14784 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14785 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14786 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14787 ac_header_preproc=yes
14788 ;;
14789 no:yes:* )
14790 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14791 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14792 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14793 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14794 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14795 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14796 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14797 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14798 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14799 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14800 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14801 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14802
14803 ;;
14804 esac
14805 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14806 $as_echo_n "checking for tiffio.h... " >&6; }
14807 if test "${ac_cv_header_tiffio_h+set}" = set; then
14808 $as_echo_n "(cached) " >&6
14809 else
14810 ac_cv_header_tiffio_h=$ac_header_preproc
14811 fi
14812 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14813 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14814
14815 fi
14816 if test $ac_cv_header_tiffio_h = yes; then
14817 tifflibs="-lz -lm"
14818 # At least one tiff package requires the jpeg library.
14819 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14820 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14821 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
14822 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14823 $as_echo_n "(cached) " >&6
14824 else
14825 ac_check_lib_save_LIBS=$LIBS
14826 LIBS="-ltiff $tifflibs $LIBS"
14827 cat >conftest.$ac_ext <<_ACEOF
14828 /* confdefs.h. */
14829 _ACEOF
14830 cat confdefs.h >>conftest.$ac_ext
14831 cat >>conftest.$ac_ext <<_ACEOF
14832 /* end confdefs.h. */
14833
14834 /* Override any GCC internal prototype to avoid an error.
14835 Use char because int might match the return type of a GCC
14836 builtin and then its argument prototype would still apply. */
14837 #ifdef __cplusplus
14838 extern "C"
14839 #endif
14840 char TIFFGetVersion ();
14841 int
14842 main ()
14843 {
14844 return TIFFGetVersion ();
14845 ;
14846 return 0;
14847 }
14848 _ACEOF
14849 rm -f conftest.$ac_objext conftest$ac_exeext
14850 if { (ac_try="$ac_link"
14851 case "(($ac_try" in
14852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14853 *) ac_try_echo=$ac_try;;
14854 esac
14855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14856 $as_echo "$ac_try_echo") >&5
14857 (eval "$ac_link") 2>conftest.er1
14858 ac_status=$?
14859 grep -v '^ *+' conftest.er1 >conftest.err
14860 rm -f conftest.er1
14861 cat conftest.err >&5
14862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } && {
14864 test -z "$ac_c_werror_flag" ||
14865 test ! -s conftest.err
14866 } && test -s conftest$ac_exeext && {
14867 test "$cross_compiling" = yes ||
14868 $as_test_x conftest$ac_exeext
14869 }; then
14870 ac_cv_lib_tiff_TIFFGetVersion=yes
14871 else
14872 $as_echo "$as_me: failed program was:" >&5
14873 sed 's/^/| /' conftest.$ac_ext >&5
14874
14875 ac_cv_lib_tiff_TIFFGetVersion=no
14876 fi
14877
14878 rm -rf conftest.dSYM
14879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14880 conftest$ac_exeext conftest.$ac_ext
14881 LIBS=$ac_check_lib_save_LIBS
14882 fi
14883 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14884 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14885 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14886 HAVE_TIFF=yes
14887 fi
14888
14889 fi
14890
14891
14892 fi
14893
14894 if test "${HAVE_TIFF}" = "yes"; then
14895
14896 cat >>confdefs.h <<\_ACEOF
14897 #define HAVE_TIFF 1
14898 _ACEOF
14899
14900 fi
14901 fi
14902
14903 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14904 HAVE_GIF=no
14905 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14906 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14907 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14908 $as_echo_n "checking for gif_lib.h... " >&6; }
14909 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14910 $as_echo_n "(cached) " >&6
14911 fi
14912 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14913 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14914 else
14915 # Is the header compilable?
14916 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14917 $as_echo_n "checking gif_lib.h usability... " >&6; }
14918 cat >conftest.$ac_ext <<_ACEOF
14919 /* confdefs.h. */
14920 _ACEOF
14921 cat confdefs.h >>conftest.$ac_ext
14922 cat >>conftest.$ac_ext <<_ACEOF
14923 /* end confdefs.h. */
14924 $ac_includes_default
14925 #include <gif_lib.h>
14926 _ACEOF
14927 rm -f conftest.$ac_objext
14928 if { (ac_try="$ac_compile"
14929 case "(($ac_try" in
14930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931 *) ac_try_echo=$ac_try;;
14932 esac
14933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14934 $as_echo "$ac_try_echo") >&5
14935 (eval "$ac_compile") 2>conftest.er1
14936 ac_status=$?
14937 grep -v '^ *+' conftest.er1 >conftest.err
14938 rm -f conftest.er1
14939 cat conftest.err >&5
14940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } && {
14942 test -z "$ac_c_werror_flag" ||
14943 test ! -s conftest.err
14944 } && test -s conftest.$ac_objext; then
14945 ac_header_compiler=yes
14946 else
14947 $as_echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14949
14950 ac_header_compiler=no
14951 fi
14952
14953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14954 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14955 $as_echo "$ac_header_compiler" >&6; }
14956
14957 # Is the header present?
14958 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14959 $as_echo_n "checking gif_lib.h presence... " >&6; }
14960 cat >conftest.$ac_ext <<_ACEOF
14961 /* confdefs.h. */
14962 _ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14966 #include <gif_lib.h>
14967 _ACEOF
14968 if { (ac_try="$ac_cpp conftest.$ac_ext"
14969 case "(($ac_try" in
14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971 *) ac_try_echo=$ac_try;;
14972 esac
14973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14974 $as_echo "$ac_try_echo") >&5
14975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14976 ac_status=$?
14977 grep -v '^ *+' conftest.er1 >conftest.err
14978 rm -f conftest.er1
14979 cat conftest.err >&5
14980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } >/dev/null && {
14982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14983 test ! -s conftest.err
14984 }; then
14985 ac_header_preproc=yes
14986 else
14987 $as_echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14989
14990 ac_header_preproc=no
14991 fi
14992
14993 rm -f conftest.err conftest.$ac_ext
14994 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14995 $as_echo "$ac_header_preproc" >&6; }
14996
14997 # So? What about this header?
14998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14999 yes:no: )
15000 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15001 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15002 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15003 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15004 ac_header_preproc=yes
15005 ;;
15006 no:yes:* )
15007 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15008 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15009 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15010 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15011 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15012 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15013 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15014 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15015 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15016 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15017 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15018 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15019
15020 ;;
15021 esac
15022 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15023 $as_echo_n "checking for gif_lib.h... " >&6; }
15024 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15025 $as_echo_n "(cached) " >&6
15026 else
15027 ac_cv_header_gif_lib_h=$ac_header_preproc
15028 fi
15029 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15030 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15031
15032 fi
15033 if test $ac_cv_header_gif_lib_h = yes; then
15034 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15035 # Earlier versions can crash Emacs.
15036 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15037 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15038 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15039 $as_echo_n "(cached) " >&6
15040 else
15041 ac_check_lib_save_LIBS=$LIBS
15042 LIBS="-lgif $LIBS"
15043 cat >conftest.$ac_ext <<_ACEOF
15044 /* confdefs.h. */
15045 _ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h. */
15049
15050 /* Override any GCC internal prototype to avoid an error.
15051 Use char because int might match the return type of a GCC
15052 builtin and then its argument prototype would still apply. */
15053 #ifdef __cplusplus
15054 extern "C"
15055 #endif
15056 char EGifPutExtensionLast ();
15057 int
15058 main ()
15059 {
15060 return EGifPutExtensionLast ();
15061 ;
15062 return 0;
15063 }
15064 _ACEOF
15065 rm -f conftest.$ac_objext conftest$ac_exeext
15066 if { (ac_try="$ac_link"
15067 case "(($ac_try" in
15068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15070 esac
15071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15072 $as_echo "$ac_try_echo") >&5
15073 (eval "$ac_link") 2>conftest.er1
15074 ac_status=$?
15075 grep -v '^ *+' conftest.er1 >conftest.err
15076 rm -f conftest.er1
15077 cat conftest.err >&5
15078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } && {
15080 test -z "$ac_c_werror_flag" ||
15081 test ! -s conftest.err
15082 } && test -s conftest$ac_exeext && {
15083 test "$cross_compiling" = yes ||
15084 $as_test_x conftest$ac_exeext
15085 }; then
15086 ac_cv_lib_gif_EGifPutExtensionLast=yes
15087 else
15088 $as_echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15090
15091 ac_cv_lib_gif_EGifPutExtensionLast=no
15092 fi
15093
15094 rm -rf conftest.dSYM
15095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15096 conftest$ac_exeext conftest.$ac_ext
15097 LIBS=$ac_check_lib_save_LIBS
15098 fi
15099 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15100 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15101 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15102 HAVE_GIF=yes
15103 else
15104 try_libungif=yes
15105 fi
15106
15107 fi
15108
15109
15110
15111 if test "$HAVE_GIF" = yes; then
15112 ac_gif_lib_name="-lgif"
15113 fi
15114
15115 # If gif_lib.h but no libgif, try libungif.
15116 if test x"$try_libungif" = xyes; then
15117 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15118 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15119 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15120 $as_echo_n "(cached) " >&6
15121 else
15122 ac_check_lib_save_LIBS=$LIBS
15123 LIBS="-lungif $LIBS"
15124 cat >conftest.$ac_ext <<_ACEOF
15125 /* confdefs.h. */
15126 _ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h. */
15130
15131 /* Override any GCC internal prototype to avoid an error.
15132 Use char because int might match the return type of a GCC
15133 builtin and then its argument prototype would still apply. */
15134 #ifdef __cplusplus
15135 extern "C"
15136 #endif
15137 char EGifPutExtensionLast ();
15138 int
15139 main ()
15140 {
15141 return EGifPutExtensionLast ();
15142 ;
15143 return 0;
15144 }
15145 _ACEOF
15146 rm -f conftest.$ac_objext conftest$ac_exeext
15147 if { (ac_try="$ac_link"
15148 case "(($ac_try" in
15149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150 *) ac_try_echo=$ac_try;;
15151 esac
15152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15153 $as_echo "$ac_try_echo") >&5
15154 (eval "$ac_link") 2>conftest.er1
15155 ac_status=$?
15156 grep -v '^ *+' conftest.er1 >conftest.err
15157 rm -f conftest.er1
15158 cat conftest.err >&5
15159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } && {
15161 test -z "$ac_c_werror_flag" ||
15162 test ! -s conftest.err
15163 } && test -s conftest$ac_exeext && {
15164 test "$cross_compiling" = yes ||
15165 $as_test_x conftest$ac_exeext
15166 }; then
15167 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15168 else
15169 $as_echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15171
15172 ac_cv_lib_ungif_EGifPutExtensionLast=no
15173 fi
15174
15175 rm -rf conftest.dSYM
15176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15177 conftest$ac_exeext conftest.$ac_ext
15178 LIBS=$ac_check_lib_save_LIBS
15179 fi
15180 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15181 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15182 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15183 HAVE_GIF=yes
15184 fi
15185
15186
15187 if test "$HAVE_GIF" = yes; then
15188
15189 cat >>confdefs.h <<\_ACEOF
15190 #define LIBGIF -lungif
15191 _ACEOF
15192
15193 ac_gif_lib_name="-lungif"
15194 fi
15195 fi
15196
15197 if test "${HAVE_GIF}" = "yes"; then
15198
15199 cat >>confdefs.h <<\_ACEOF
15200 #define HAVE_GIF 1
15201 _ACEOF
15202
15203 fi
15204 fi
15205
15206 if test "${HAVE_X11}" = "yes"; then
15207 MISSING=""
15208 WITH_NO=""
15209 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15210 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15211 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15212 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15213 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15214 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15215 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15216 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15217 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15218 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15219
15220 if test "X${MISSING}" != X; then
15221 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15222 $MISSING
15223 Maybe some development libraries/packages are missing?
15224 If you don't want to link with them give
15225 $WITH_NO
15226 as options to configure" >&5
15227 $as_echo "$as_me: error: The following required libraries were not found:
15228 $MISSING
15229 Maybe some development libraries/packages are missing?
15230 If you don't want to link with them give
15231 $WITH_NO
15232 as options to configure" >&2;}
15233 { (exit 1); exit 1; }; }
15234 fi
15235 fi
15236
15237 ### Use -lgpm if available, unless `--with-gpm=no'.
15238 HAVE_GPM=no
15239 if test "${with_gpm}" != "no"; then
15240 if test "${ac_cv_header_gpm_h+set}" = set; then
15241 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15242 $as_echo_n "checking for gpm.h... " >&6; }
15243 if test "${ac_cv_header_gpm_h+set}" = set; then
15244 $as_echo_n "(cached) " >&6
15245 fi
15246 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15247 $as_echo "$ac_cv_header_gpm_h" >&6; }
15248 else
15249 # Is the header compilable?
15250 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15251 $as_echo_n "checking gpm.h usability... " >&6; }
15252 cat >conftest.$ac_ext <<_ACEOF
15253 /* confdefs.h. */
15254 _ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h. */
15258 $ac_includes_default
15259 #include <gpm.h>
15260 _ACEOF
15261 rm -f conftest.$ac_objext
15262 if { (ac_try="$ac_compile"
15263 case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15266 esac
15267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15268 $as_echo "$ac_try_echo") >&5
15269 (eval "$ac_compile") 2>conftest.er1
15270 ac_status=$?
15271 grep -v '^ *+' conftest.er1 >conftest.err
15272 rm -f conftest.er1
15273 cat conftest.err >&5
15274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); } && {
15276 test -z "$ac_c_werror_flag" ||
15277 test ! -s conftest.err
15278 } && test -s conftest.$ac_objext; then
15279 ac_header_compiler=yes
15280 else
15281 $as_echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15283
15284 ac_header_compiler=no
15285 fi
15286
15287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15288 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15289 $as_echo "$ac_header_compiler" >&6; }
15290
15291 # Is the header present?
15292 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15293 $as_echo_n "checking gpm.h presence... " >&6; }
15294 cat >conftest.$ac_ext <<_ACEOF
15295 /* confdefs.h. */
15296 _ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h. */
15300 #include <gpm.h>
15301 _ACEOF
15302 if { (ac_try="$ac_cpp conftest.$ac_ext"
15303 case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15306 esac
15307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15308 $as_echo "$ac_try_echo") >&5
15309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15310 ac_status=$?
15311 grep -v '^ *+' conftest.er1 >conftest.err
15312 rm -f conftest.er1
15313 cat conftest.err >&5
15314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } >/dev/null && {
15316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15317 test ! -s conftest.err
15318 }; then
15319 ac_header_preproc=yes
15320 else
15321 $as_echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15323
15324 ac_header_preproc=no
15325 fi
15326
15327 rm -f conftest.err conftest.$ac_ext
15328 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15329 $as_echo "$ac_header_preproc" >&6; }
15330
15331 # So? What about this header?
15332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15333 yes:no: )
15334 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15335 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15336 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15337 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15338 ac_header_preproc=yes
15339 ;;
15340 no:yes:* )
15341 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15342 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15343 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15344 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15345 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15346 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15347 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15348 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15349 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15350 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15351 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15352 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15353
15354 ;;
15355 esac
15356 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15357 $as_echo_n "checking for gpm.h... " >&6; }
15358 if test "${ac_cv_header_gpm_h+set}" = set; then
15359 $as_echo_n "(cached) " >&6
15360 else
15361 ac_cv_header_gpm_h=$ac_header_preproc
15362 fi
15363 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15364 $as_echo "$ac_cv_header_gpm_h" >&6; }
15365
15366 fi
15367 if test $ac_cv_header_gpm_h = yes; then
15368 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15369 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15370 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15371 $as_echo_n "(cached) " >&6
15372 else
15373 ac_check_lib_save_LIBS=$LIBS
15374 LIBS="-lgpm $LIBS"
15375 cat >conftest.$ac_ext <<_ACEOF
15376 /* confdefs.h. */
15377 _ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15381
15382 /* Override any GCC internal prototype to avoid an error.
15383 Use char because int might match the return type of a GCC
15384 builtin and then its argument prototype would still apply. */
15385 #ifdef __cplusplus
15386 extern "C"
15387 #endif
15388 char Gpm_Open ();
15389 int
15390 main ()
15391 {
15392 return Gpm_Open ();
15393 ;
15394 return 0;
15395 }
15396 _ACEOF
15397 rm -f conftest.$ac_objext conftest$ac_exeext
15398 if { (ac_try="$ac_link"
15399 case "(($ac_try" in
15400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401 *) ac_try_echo=$ac_try;;
15402 esac
15403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15404 $as_echo "$ac_try_echo") >&5
15405 (eval "$ac_link") 2>conftest.er1
15406 ac_status=$?
15407 grep -v '^ *+' conftest.er1 >conftest.err
15408 rm -f conftest.er1
15409 cat conftest.err >&5
15410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); } && {
15412 test -z "$ac_c_werror_flag" ||
15413 test ! -s conftest.err
15414 } && test -s conftest$ac_exeext && {
15415 test "$cross_compiling" = yes ||
15416 $as_test_x conftest$ac_exeext
15417 }; then
15418 ac_cv_lib_gpm_Gpm_Open=yes
15419 else
15420 $as_echo "$as_me: failed program was:" >&5
15421 sed 's/^/| /' conftest.$ac_ext >&5
15422
15423 ac_cv_lib_gpm_Gpm_Open=no
15424 fi
15425
15426 rm -rf conftest.dSYM
15427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15428 conftest$ac_exeext conftest.$ac_ext
15429 LIBS=$ac_check_lib_save_LIBS
15430 fi
15431 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15432 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15433 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15434 HAVE_GPM=yes
15435 fi
15436
15437 fi
15438
15439
15440 fi
15441
15442 if test "${HAVE_GPM}" = "yes"; then
15443
15444 cat >>confdefs.h <<\_ACEOF
15445 #define HAVE_GPM 1
15446 _ACEOF
15447
15448 fi
15449
15450 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15451 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15452 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15453 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15454 $as_echo_n "(cached) " >&6
15455 fi
15456 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15457 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15458 else
15459 # Is the header compilable?
15460 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15461 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15462 cat >conftest.$ac_ext <<_ACEOF
15463 /* confdefs.h. */
15464 _ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h. */
15468 $ac_includes_default
15469 #include <malloc/malloc.h>
15470 _ACEOF
15471 rm -f conftest.$ac_objext
15472 if { (ac_try="$ac_compile"
15473 case "(($ac_try" in
15474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15475 *) ac_try_echo=$ac_try;;
15476 esac
15477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15478 $as_echo "$ac_try_echo") >&5
15479 (eval "$ac_compile") 2>conftest.er1
15480 ac_status=$?
15481 grep -v '^ *+' conftest.er1 >conftest.err
15482 rm -f conftest.er1
15483 cat conftest.err >&5
15484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); } && {
15486 test -z "$ac_c_werror_flag" ||
15487 test ! -s conftest.err
15488 } && test -s conftest.$ac_objext; then
15489 ac_header_compiler=yes
15490 else
15491 $as_echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15493
15494 ac_header_compiler=no
15495 fi
15496
15497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15498 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15499 $as_echo "$ac_header_compiler" >&6; }
15500
15501 # Is the header present?
15502 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15503 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15504 cat >conftest.$ac_ext <<_ACEOF
15505 /* confdefs.h. */
15506 _ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15510 #include <malloc/malloc.h>
15511 _ACEOF
15512 if { (ac_try="$ac_cpp conftest.$ac_ext"
15513 case "(($ac_try" in
15514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515 *) ac_try_echo=$ac_try;;
15516 esac
15517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15518 $as_echo "$ac_try_echo") >&5
15519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15520 ac_status=$?
15521 grep -v '^ *+' conftest.er1 >conftest.err
15522 rm -f conftest.er1
15523 cat conftest.err >&5
15524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } >/dev/null && {
15526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15527 test ! -s conftest.err
15528 }; then
15529 ac_header_preproc=yes
15530 else
15531 $as_echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15533
15534 ac_header_preproc=no
15535 fi
15536
15537 rm -f conftest.err conftest.$ac_ext
15538 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15539 $as_echo "$ac_header_preproc" >&6; }
15540
15541 # So? What about this header?
15542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15543 yes:no: )
15544 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15545 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15546 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15547 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15548 ac_header_preproc=yes
15549 ;;
15550 no:yes:* )
15551 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15552 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15553 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15554 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15555 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15556 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15557 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15558 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15559 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15560 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15561 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15562 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15563
15564 ;;
15565 esac
15566 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15567 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15568 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15569 $as_echo_n "(cached) " >&6
15570 else
15571 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15572 fi
15573 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15574 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15575
15576 fi
15577 if test $ac_cv_header_malloc_malloc_h = yes; then
15578
15579 cat >>confdefs.h <<\_ACEOF
15580 #define HAVE_MALLOC_MALLOC_H 1
15581 _ACEOF
15582
15583 fi
15584
15585
15586
15587 ### Use NeXTstep API to implement GUI.
15588 if test "${HAVE_NS}" = "yes"; then
15589
15590 cat >>confdefs.h <<\_ACEOF
15591 #define HAVE_NS 1
15592 _ACEOF
15593
15594 if test "${NS_IMPL_COCOA}" = "yes"; then
15595
15596 cat >>confdefs.h <<\_ACEOF
15597 #define NS_IMPL_COCOA 1
15598 _ACEOF
15599
15600 GNU_OBJC_CFLAGS=
15601 fi
15602 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15603
15604 cat >>confdefs.h <<\_ACEOF
15605 #define NS_IMPL_GNUSTEP 1
15606 _ACEOF
15607
15608 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15609 fi
15610 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15611
15612 cat >>confdefs.h <<\_ACEOF
15613 #define NS_HAVE_NSINTEGER 1
15614 _ACEOF
15615
15616 fi
15617 # We also have mouse menus.
15618 HAVE_MENUS=yes
15619 OTHER_FILES=ns-app
15620 fi
15621
15622
15623 ### Use session management (-lSM -lICE) if available
15624 HAVE_X_SM=no
15625 if test "${HAVE_X11}" = "yes"; then
15626 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15627 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15628 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15629 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15630 $as_echo_n "(cached) " >&6
15631 fi
15632 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15633 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15634 else
15635 # Is the header compilable?
15636 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15637 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
15638 cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h. */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 $ac_includes_default
15645 #include <X11/SM/SMlib.h>
15646 _ACEOF
15647 rm -f conftest.$ac_objext
15648 if { (ac_try="$ac_compile"
15649 case "(($ac_try" in
15650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15651 *) ac_try_echo=$ac_try;;
15652 esac
15653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15654 $as_echo "$ac_try_echo") >&5
15655 (eval "$ac_compile") 2>conftest.er1
15656 ac_status=$?
15657 grep -v '^ *+' conftest.er1 >conftest.err
15658 rm -f conftest.er1
15659 cat conftest.err >&5
15660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); } && {
15662 test -z "$ac_c_werror_flag" ||
15663 test ! -s conftest.err
15664 } && test -s conftest.$ac_objext; then
15665 ac_header_compiler=yes
15666 else
15667 $as_echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15669
15670 ac_header_compiler=no
15671 fi
15672
15673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15674 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15675 $as_echo "$ac_header_compiler" >&6; }
15676
15677 # Is the header present?
15678 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15679 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
15680 cat >conftest.$ac_ext <<_ACEOF
15681 /* confdefs.h. */
15682 _ACEOF
15683 cat confdefs.h >>conftest.$ac_ext
15684 cat >>conftest.$ac_ext <<_ACEOF
15685 /* end confdefs.h. */
15686 #include <X11/SM/SMlib.h>
15687 _ACEOF
15688 if { (ac_try="$ac_cpp conftest.$ac_ext"
15689 case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15692 esac
15693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15694 $as_echo "$ac_try_echo") >&5
15695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15696 ac_status=$?
15697 grep -v '^ *+' conftest.er1 >conftest.err
15698 rm -f conftest.er1
15699 cat conftest.err >&5
15700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } >/dev/null && {
15702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15703 test ! -s conftest.err
15704 }; then
15705 ac_header_preproc=yes
15706 else
15707 $as_echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15709
15710 ac_header_preproc=no
15711 fi
15712
15713 rm -f conftest.err conftest.$ac_ext
15714 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15715 $as_echo "$ac_header_preproc" >&6; }
15716
15717 # So? What about this header?
15718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15719 yes:no: )
15720 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15721 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15722 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15723 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15724 ac_header_preproc=yes
15725 ;;
15726 no:yes:* )
15727 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15728 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15729 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15730 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15731 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15732 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15733 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15734 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15735 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15736 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15737 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15738 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15739
15740 ;;
15741 esac
15742 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15743 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15744 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15745 $as_echo_n "(cached) " >&6
15746 else
15747 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15748 fi
15749 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15750 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15751
15752 fi
15753 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15754 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15755 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
15756 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15757 $as_echo_n "(cached) " >&6
15758 else
15759 ac_check_lib_save_LIBS=$LIBS
15760 LIBS="-lSM -lICE $LIBS"
15761 cat >conftest.$ac_ext <<_ACEOF
15762 /* confdefs.h. */
15763 _ACEOF
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h. */
15767
15768 /* Override any GCC internal prototype to avoid an error.
15769 Use char because int might match the return type of a GCC
15770 builtin and then its argument prototype would still apply. */
15771 #ifdef __cplusplus
15772 extern "C"
15773 #endif
15774 char SmcOpenConnection ();
15775 int
15776 main ()
15777 {
15778 return SmcOpenConnection ();
15779 ;
15780 return 0;
15781 }
15782 _ACEOF
15783 rm -f conftest.$ac_objext conftest$ac_exeext
15784 if { (ac_try="$ac_link"
15785 case "(($ac_try" in
15786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15787 *) ac_try_echo=$ac_try;;
15788 esac
15789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15790 $as_echo "$ac_try_echo") >&5
15791 (eval "$ac_link") 2>conftest.er1
15792 ac_status=$?
15793 grep -v '^ *+' conftest.er1 >conftest.err
15794 rm -f conftest.er1
15795 cat conftest.err >&5
15796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); } && {
15798 test -z "$ac_c_werror_flag" ||
15799 test ! -s conftest.err
15800 } && test -s conftest$ac_exeext && {
15801 test "$cross_compiling" = yes ||
15802 $as_test_x conftest$ac_exeext
15803 }; then
15804 ac_cv_lib_SM_SmcOpenConnection=yes
15805 else
15806 $as_echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15808
15809 ac_cv_lib_SM_SmcOpenConnection=no
15810 fi
15811
15812 rm -rf conftest.dSYM
15813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15814 conftest$ac_exeext conftest.$ac_ext
15815 LIBS=$ac_check_lib_save_LIBS
15816 fi
15817 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15818 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15819 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15820 HAVE_X_SM=yes
15821 fi
15822
15823 fi
15824
15825
15826
15827 if test "${HAVE_X_SM}" = "yes"; then
15828
15829 cat >>confdefs.h <<\_ACEOF
15830 #define HAVE_X_SM 1
15831 _ACEOF
15832
15833 case "$LIBS" in
15834 *-lSM*) ;;
15835 *) LIBS="-lSM -lICE $LIBS" ;;
15836 esac
15837 fi
15838 fi
15839
15840 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15841 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15842 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
15843 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15844 $as_echo_n "(cached) " >&6
15845 else
15846 cat >conftest.$ac_ext <<_ACEOF
15847 /* confdefs.h. */
15848 _ACEOF
15849 cat confdefs.h >>conftest.$ac_ext
15850 cat >>conftest.$ac_ext <<_ACEOF
15851 /* end confdefs.h. */
15852 #include <netdb.h>
15853 int
15854 main ()
15855 {
15856 return h_errno;
15857 ;
15858 return 0;
15859 }
15860 _ACEOF
15861 rm -f conftest.$ac_objext conftest$ac_exeext
15862 if { (ac_try="$ac_link"
15863 case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15866 esac
15867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15868 $as_echo "$ac_try_echo") >&5
15869 (eval "$ac_link") 2>conftest.er1
15870 ac_status=$?
15871 grep -v '^ *+' conftest.er1 >conftest.err
15872 rm -f conftest.er1
15873 cat conftest.err >&5
15874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } && {
15876 test -z "$ac_c_werror_flag" ||
15877 test ! -s conftest.err
15878 } && test -s conftest$ac_exeext && {
15879 test "$cross_compiling" = yes ||
15880 $as_test_x conftest$ac_exeext
15881 }; then
15882 emacs_cv_netdb_declares_h_errno=yes
15883 else
15884 $as_echo "$as_me: failed program was:" >&5
15885 sed 's/^/| /' conftest.$ac_ext >&5
15886
15887 emacs_cv_netdb_declares_h_errno=no
15888 fi
15889
15890 rm -rf conftest.dSYM
15891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15892 conftest$ac_exeext conftest.$ac_ext
15893 fi
15894 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15895 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
15896 if test $emacs_cv_netdb_declares_h_errno = yes; then
15897
15898 cat >>confdefs.h <<\_ACEOF
15899 #define HAVE_H_ERRNO 1
15900 _ACEOF
15901
15902 fi
15903
15904 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15905 # for constant arguments. Useless!
15906 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
15907 $as_echo_n "checking for working alloca.h... " >&6; }
15908 if test "${ac_cv_working_alloca_h+set}" = set; then
15909 $as_echo_n "(cached) " >&6
15910 else
15911 cat >conftest.$ac_ext <<_ACEOF
15912 /* confdefs.h. */
15913 _ACEOF
15914 cat confdefs.h >>conftest.$ac_ext
15915 cat >>conftest.$ac_ext <<_ACEOF
15916 /* end confdefs.h. */
15917 #include <alloca.h>
15918 int
15919 main ()
15920 {
15921 char *p = (char *) alloca (2 * sizeof (int));
15922 if (p) return 0;
15923 ;
15924 return 0;
15925 }
15926 _ACEOF
15927 rm -f conftest.$ac_objext conftest$ac_exeext
15928 if { (ac_try="$ac_link"
15929 case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15932 esac
15933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15934 $as_echo "$ac_try_echo") >&5
15935 (eval "$ac_link") 2>conftest.er1
15936 ac_status=$?
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
15940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } && {
15942 test -z "$ac_c_werror_flag" ||
15943 test ! -s conftest.err
15944 } && test -s conftest$ac_exeext && {
15945 test "$cross_compiling" = yes ||
15946 $as_test_x conftest$ac_exeext
15947 }; then
15948 ac_cv_working_alloca_h=yes
15949 else
15950 $as_echo "$as_me: failed program was:" >&5
15951 sed 's/^/| /' conftest.$ac_ext >&5
15952
15953 ac_cv_working_alloca_h=no
15954 fi
15955
15956 rm -rf conftest.dSYM
15957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15958 conftest$ac_exeext conftest.$ac_ext
15959 fi
15960 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15961 $as_echo "$ac_cv_working_alloca_h" >&6; }
15962 if test $ac_cv_working_alloca_h = yes; then
15963
15964 cat >>confdefs.h <<\_ACEOF
15965 #define HAVE_ALLOCA_H 1
15966 _ACEOF
15967
15968 fi
15969
15970 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
15971 $as_echo_n "checking for alloca... " >&6; }
15972 if test "${ac_cv_func_alloca_works+set}" = set; then
15973 $as_echo_n "(cached) " >&6
15974 else
15975 cat >conftest.$ac_ext <<_ACEOF
15976 /* confdefs.h. */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15981 #ifdef __GNUC__
15982 # define alloca __builtin_alloca
15983 #else
15984 # ifdef _MSC_VER
15985 # include <malloc.h>
15986 # define alloca _alloca
15987 # else
15988 # ifdef HAVE_ALLOCA_H
15989 # include <alloca.h>
15990 # else
15991 # ifdef _AIX
15992 #pragma alloca
15993 # else
15994 # ifndef alloca /* predefined by HP cc +Olibcalls */
15995 char *alloca ();
15996 # endif
15997 # endif
15998 # endif
15999 # endif
16000 #endif
16001
16002 int
16003 main ()
16004 {
16005 char *p = (char *) alloca (1);
16006 if (p) return 0;
16007 ;
16008 return 0;
16009 }
16010 _ACEOF
16011 rm -f conftest.$ac_objext conftest$ac_exeext
16012 if { (ac_try="$ac_link"
16013 case "(($ac_try" in
16014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16015 *) ac_try_echo=$ac_try;;
16016 esac
16017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16018 $as_echo "$ac_try_echo") >&5
16019 (eval "$ac_link") 2>conftest.er1
16020 ac_status=$?
16021 grep -v '^ *+' conftest.er1 >conftest.err
16022 rm -f conftest.er1
16023 cat conftest.err >&5
16024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } && {
16026 test -z "$ac_c_werror_flag" ||
16027 test ! -s conftest.err
16028 } && test -s conftest$ac_exeext && {
16029 test "$cross_compiling" = yes ||
16030 $as_test_x conftest$ac_exeext
16031 }; then
16032 ac_cv_func_alloca_works=yes
16033 else
16034 $as_echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.$ac_ext >&5
16036
16037 ac_cv_func_alloca_works=no
16038 fi
16039
16040 rm -rf conftest.dSYM
16041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16042 conftest$ac_exeext conftest.$ac_ext
16043 fi
16044 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16045 $as_echo "$ac_cv_func_alloca_works" >&6; }
16046
16047 if test $ac_cv_func_alloca_works = yes; then
16048
16049 cat >>confdefs.h <<\_ACEOF
16050 #define HAVE_ALLOCA 1
16051 _ACEOF
16052
16053 else
16054 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16055 # that cause trouble. Some versions do not even contain alloca or
16056 # contain a buggy version. If you still want to use their alloca,
16057 # use ar to extract alloca.o from them instead of compiling alloca.c.
16058
16059 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16060
16061 cat >>confdefs.h <<\_ACEOF
16062 #define C_ALLOCA 1
16063 _ACEOF
16064
16065
16066 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16067 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16068 if test "${ac_cv_os_cray+set}" = set; then
16069 $as_echo_n "(cached) " >&6
16070 else
16071 cat >conftest.$ac_ext <<_ACEOF
16072 /* confdefs.h. */
16073 _ACEOF
16074 cat confdefs.h >>conftest.$ac_ext
16075 cat >>conftest.$ac_ext <<_ACEOF
16076 /* end confdefs.h. */
16077 #if defined CRAY && ! defined CRAY2
16078 webecray
16079 #else
16080 wenotbecray
16081 #endif
16082
16083 _ACEOF
16084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16085 $EGREP "webecray" >/dev/null 2>&1; then
16086 ac_cv_os_cray=yes
16087 else
16088 ac_cv_os_cray=no
16089 fi
16090 rm -f conftest*
16091
16092 fi
16093 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16094 $as_echo "$ac_cv_os_cray" >&6; }
16095 if test $ac_cv_os_cray = yes; then
16096 for ac_func in _getb67 GETB67 getb67; do
16097 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16098 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16099 $as_echo_n "checking for $ac_func... " >&6; }
16100 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16101 $as_echo_n "(cached) " >&6
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16111 #define $ac_func innocuous_$ac_func
16112
16113 /* System header to define __stub macros and hopefully few prototypes,
16114 which can conflict with char $ac_func (); below.
16115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16116 <limits.h> exists even on freestanding compilers. */
16117
16118 #ifdef __STDC__
16119 # include <limits.h>
16120 #else
16121 # include <assert.h>
16122 #endif
16123
16124 #undef $ac_func
16125
16126 /* Override any GCC internal prototype to avoid an error.
16127 Use char because int might match the return type of a GCC
16128 builtin and then its argument prototype would still apply. */
16129 #ifdef __cplusplus
16130 extern "C"
16131 #endif
16132 char $ac_func ();
16133 /* The GNU C library defines this for functions which it implements
16134 to always fail with ENOSYS. Some functions are actually named
16135 something starting with __ and the normal name is an alias. */
16136 #if defined __stub_$ac_func || defined __stub___$ac_func
16137 choke me
16138 #endif
16139
16140 int
16141 main ()
16142 {
16143 return $ac_func ();
16144 ;
16145 return 0;
16146 }
16147 _ACEOF
16148 rm -f conftest.$ac_objext conftest$ac_exeext
16149 if { (ac_try="$ac_link"
16150 case "(($ac_try" in
16151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152 *) ac_try_echo=$ac_try;;
16153 esac
16154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16155 $as_echo "$ac_try_echo") >&5
16156 (eval "$ac_link") 2>conftest.er1
16157 ac_status=$?
16158 grep -v '^ *+' conftest.er1 >conftest.err
16159 rm -f conftest.er1
16160 cat conftest.err >&5
16161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } && {
16163 test -z "$ac_c_werror_flag" ||
16164 test ! -s conftest.err
16165 } && test -s conftest$ac_exeext && {
16166 test "$cross_compiling" = yes ||
16167 $as_test_x conftest$ac_exeext
16168 }; then
16169 eval "$as_ac_var=yes"
16170 else
16171 $as_echo "$as_me: failed program was:" >&5
16172 sed 's/^/| /' conftest.$ac_ext >&5
16173
16174 eval "$as_ac_var=no"
16175 fi
16176
16177 rm -rf conftest.dSYM
16178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16179 conftest$ac_exeext conftest.$ac_ext
16180 fi
16181 ac_res=`eval 'as_val=${'$as_ac_var'}
16182 $as_echo "$as_val"'`
16183 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16184 $as_echo "$ac_res" >&6; }
16185 if test `eval 'as_val=${'$as_ac_var'}
16186 $as_echo "$as_val"'` = yes; then
16187
16188 cat >>confdefs.h <<_ACEOF
16189 #define CRAY_STACKSEG_END $ac_func
16190 _ACEOF
16191
16192 break
16193 fi
16194
16195 done
16196 fi
16197
16198 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16199 $as_echo_n "checking stack direction for C alloca... " >&6; }
16200 if test "${ac_cv_c_stack_direction+set}" = set; then
16201 $as_echo_n "(cached) " >&6
16202 else
16203 if test "$cross_compiling" = yes; then
16204 ac_cv_c_stack_direction=0
16205 else
16206 cat >conftest.$ac_ext <<_ACEOF
16207 /* confdefs.h. */
16208 _ACEOF
16209 cat confdefs.h >>conftest.$ac_ext
16210 cat >>conftest.$ac_ext <<_ACEOF
16211 /* end confdefs.h. */
16212 $ac_includes_default
16213 int
16214 find_stack_direction ()
16215 {
16216 static char *addr = 0;
16217 auto char dummy;
16218 if (addr == 0)
16219 {
16220 addr = &dummy;
16221 return find_stack_direction ();
16222 }
16223 else
16224 return (&dummy > addr) ? 1 : -1;
16225 }
16226
16227 int
16228 main ()
16229 {
16230 return find_stack_direction () < 0;
16231 }
16232 _ACEOF
16233 rm -f conftest$ac_exeext
16234 if { (ac_try="$ac_link"
16235 case "(($ac_try" in
16236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16237 *) ac_try_echo=$ac_try;;
16238 esac
16239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16240 $as_echo "$ac_try_echo") >&5
16241 (eval "$ac_link") 2>&5
16242 ac_status=$?
16243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16245 { (case "(($ac_try" in
16246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16247 *) ac_try_echo=$ac_try;;
16248 esac
16249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16250 $as_echo "$ac_try_echo") >&5
16251 (eval "$ac_try") 2>&5
16252 ac_status=$?
16253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; }; then
16255 ac_cv_c_stack_direction=1
16256 else
16257 $as_echo "$as_me: program exited with status $ac_status" >&5
16258 $as_echo "$as_me: failed program was:" >&5
16259 sed 's/^/| /' conftest.$ac_ext >&5
16260
16261 ( exit $ac_status )
16262 ac_cv_c_stack_direction=-1
16263 fi
16264 rm -rf conftest.dSYM
16265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16266 fi
16267
16268
16269 fi
16270 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16271 $as_echo "$ac_cv_c_stack_direction" >&6; }
16272
16273 cat >>confdefs.h <<_ACEOF
16274 #define STACK_DIRECTION $ac_cv_c_stack_direction
16275 _ACEOF
16276
16277
16278 fi
16279
16280
16281 if test x"$ac_cv_func_alloca_works" != xyes; then
16282 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16283 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16284 { (exit 1); exit 1; }; }
16285 fi
16286
16287 # fmod, logb, and frexp are found in -lm on most systems.
16288 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16289
16290 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16291 $as_echo_n "checking for sqrt in -lm... " >&6; }
16292 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16293 $as_echo_n "(cached) " >&6
16294 else
16295 ac_check_lib_save_LIBS=$LIBS
16296 LIBS="-lm $LIBS"
16297 cat >conftest.$ac_ext <<_ACEOF
16298 /* confdefs.h. */
16299 _ACEOF
16300 cat confdefs.h >>conftest.$ac_ext
16301 cat >>conftest.$ac_ext <<_ACEOF
16302 /* end confdefs.h. */
16303
16304 /* Override any GCC internal prototype to avoid an error.
16305 Use char because int might match the return type of a GCC
16306 builtin and then its argument prototype would still apply. */
16307 #ifdef __cplusplus
16308 extern "C"
16309 #endif
16310 char sqrt ();
16311 int
16312 main ()
16313 {
16314 return sqrt ();
16315 ;
16316 return 0;
16317 }
16318 _ACEOF
16319 rm -f conftest.$ac_objext conftest$ac_exeext
16320 if { (ac_try="$ac_link"
16321 case "(($ac_try" in
16322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16323 *) ac_try_echo=$ac_try;;
16324 esac
16325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16326 $as_echo "$ac_try_echo") >&5
16327 (eval "$ac_link") 2>conftest.er1
16328 ac_status=$?
16329 grep -v '^ *+' conftest.er1 >conftest.err
16330 rm -f conftest.er1
16331 cat conftest.err >&5
16332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } && {
16334 test -z "$ac_c_werror_flag" ||
16335 test ! -s conftest.err
16336 } && test -s conftest$ac_exeext && {
16337 test "$cross_compiling" = yes ||
16338 $as_test_x conftest$ac_exeext
16339 }; then
16340 ac_cv_lib_m_sqrt=yes
16341 else
16342 $as_echo "$as_me: failed program was:" >&5
16343 sed 's/^/| /' conftest.$ac_ext >&5
16344
16345 ac_cv_lib_m_sqrt=no
16346 fi
16347
16348 rm -rf conftest.dSYM
16349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16350 conftest$ac_exeext conftest.$ac_ext
16351 LIBS=$ac_check_lib_save_LIBS
16352 fi
16353 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16354 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16355 if test $ac_cv_lib_m_sqrt = yes; then
16356 cat >>confdefs.h <<_ACEOF
16357 #define HAVE_LIBM 1
16358 _ACEOF
16359
16360 LIBS="-lm $LIBS"
16361
16362 fi
16363
16364
16365 # Check for mail-locking functions in a "mail" library. Probably this should
16366 # have the same check as for liblockfile below.
16367
16368 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16369 $as_echo_n "checking for maillock in -lmail... " >&6; }
16370 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16371 $as_echo_n "(cached) " >&6
16372 else
16373 ac_check_lib_save_LIBS=$LIBS
16374 LIBS="-lmail $LIBS"
16375 cat >conftest.$ac_ext <<_ACEOF
16376 /* confdefs.h. */
16377 _ACEOF
16378 cat confdefs.h >>conftest.$ac_ext
16379 cat >>conftest.$ac_ext <<_ACEOF
16380 /* end confdefs.h. */
16381
16382 /* Override any GCC internal prototype to avoid an error.
16383 Use char because int might match the return type of a GCC
16384 builtin and then its argument prototype would still apply. */
16385 #ifdef __cplusplus
16386 extern "C"
16387 #endif
16388 char maillock ();
16389 int
16390 main ()
16391 {
16392 return maillock ();
16393 ;
16394 return 0;
16395 }
16396 _ACEOF
16397 rm -f conftest.$ac_objext conftest$ac_exeext
16398 if { (ac_try="$ac_link"
16399 case "(($ac_try" in
16400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16401 *) ac_try_echo=$ac_try;;
16402 esac
16403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16404 $as_echo "$ac_try_echo") >&5
16405 (eval "$ac_link") 2>conftest.er1
16406 ac_status=$?
16407 grep -v '^ *+' conftest.er1 >conftest.err
16408 rm -f conftest.er1
16409 cat conftest.err >&5
16410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } && {
16412 test -z "$ac_c_werror_flag" ||
16413 test ! -s conftest.err
16414 } && test -s conftest$ac_exeext && {
16415 test "$cross_compiling" = yes ||
16416 $as_test_x conftest$ac_exeext
16417 }; then
16418 ac_cv_lib_mail_maillock=yes
16419 else
16420 $as_echo "$as_me: failed program was:" >&5
16421 sed 's/^/| /' conftest.$ac_ext >&5
16422
16423 ac_cv_lib_mail_maillock=no
16424 fi
16425
16426 rm -rf conftest.dSYM
16427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16428 conftest$ac_exeext conftest.$ac_ext
16429 LIBS=$ac_check_lib_save_LIBS
16430 fi
16431 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16432 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16433 if test $ac_cv_lib_mail_maillock = yes; then
16434 cat >>confdefs.h <<_ACEOF
16435 #define HAVE_LIBMAIL 1
16436 _ACEOF
16437
16438 LIBS="-lmail $LIBS"
16439
16440 fi
16441
16442
16443 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16444 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16445 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16446 $as_echo_n "(cached) " >&6
16447 else
16448 ac_check_lib_save_LIBS=$LIBS
16449 LIBS="-llockfile $LIBS"
16450 cat >conftest.$ac_ext <<_ACEOF
16451 /* confdefs.h. */
16452 _ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16456
16457 /* Override any GCC internal prototype to avoid an error.
16458 Use char because int might match the return type of a GCC
16459 builtin and then its argument prototype would still apply. */
16460 #ifdef __cplusplus
16461 extern "C"
16462 #endif
16463 char maillock ();
16464 int
16465 main ()
16466 {
16467 return maillock ();
16468 ;
16469 return 0;
16470 }
16471 _ACEOF
16472 rm -f conftest.$ac_objext conftest$ac_exeext
16473 if { (ac_try="$ac_link"
16474 case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16477 esac
16478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16479 $as_echo "$ac_try_echo") >&5
16480 (eval "$ac_link") 2>conftest.er1
16481 ac_status=$?
16482 grep -v '^ *+' conftest.er1 >conftest.err
16483 rm -f conftest.er1
16484 cat conftest.err >&5
16485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } && {
16487 test -z "$ac_c_werror_flag" ||
16488 test ! -s conftest.err
16489 } && test -s conftest$ac_exeext && {
16490 test "$cross_compiling" = yes ||
16491 $as_test_x conftest$ac_exeext
16492 }; then
16493 ac_cv_lib_lockfile_maillock=yes
16494 else
16495 $as_echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16497
16498 ac_cv_lib_lockfile_maillock=no
16499 fi
16500
16501 rm -rf conftest.dSYM
16502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16503 conftest$ac_exeext conftest.$ac_ext
16504 LIBS=$ac_check_lib_save_LIBS
16505 fi
16506 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16507 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16508 if test $ac_cv_lib_lockfile_maillock = yes; then
16509 cat >>confdefs.h <<_ACEOF
16510 #define HAVE_LIBLOCKFILE 1
16511 _ACEOF
16512
16513 LIBS="-llockfile $LIBS"
16514
16515 fi
16516
16517 # If we have the shared liblockfile, assume we must use it for mail
16518 # locking (e.g. Debian). If we couldn't link against liblockfile
16519 # (no liblockfile.a installed), ensure that we don't need to.
16520 if test "$ac_cv_lib_lockfile_maillock" = no; then
16521 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16522 set dummy liblockfile.so; ac_word=$2
16523 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16524 $as_echo_n "checking for $ac_word... " >&6; }
16525 if test "${ac_cv_prog_liblockfile+set}" = set; then
16526 $as_echo_n "(cached) " >&6
16527 else
16528 if test -n "$liblockfile"; then
16529 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16530 else
16531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16532 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16533 for as_dir in $as_dummy
16534 do
16535 IFS=$as_save_IFS
16536 test -z "$as_dir" && as_dir=.
16537 for ac_exec_ext in '' $ac_executable_extensions; do
16538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16539 ac_cv_prog_liblockfile="yes"
16540 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16541 break 2
16542 fi
16543 done
16544 done
16545 IFS=$as_save_IFS
16546
16547 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16548 fi
16549 fi
16550 liblockfile=$ac_cv_prog_liblockfile
16551 if test -n "$liblockfile"; then
16552 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
16553 $as_echo "$liblockfile" >&6; }
16554 else
16555 { $as_echo "$as_me:$LINENO: result: no" >&5
16556 $as_echo "no" >&6; }
16557 fi
16558
16559
16560 if test $ac_cv_prog_liblockfile = yes; then
16561 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16562 This probably means that movemail could lose mail.
16563 There may be a \`development' package to install containing liblockfile." >&5
16564 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
16565 This probably means that movemail could lose mail.
16566 There may be a \`development' package to install containing liblockfile." >&2;}
16567 { (exit 1); exit 1; }; }
16568 else :
16569 fi
16570 fi
16571
16572 for ac_func in touchlock
16573 do
16574 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16575 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16576 $as_echo_n "checking for $ac_func... " >&6; }
16577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16578 $as_echo_n "(cached) " >&6
16579 else
16580 cat >conftest.$ac_ext <<_ACEOF
16581 /* confdefs.h. */
16582 _ACEOF
16583 cat confdefs.h >>conftest.$ac_ext
16584 cat >>conftest.$ac_ext <<_ACEOF
16585 /* end confdefs.h. */
16586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16588 #define $ac_func innocuous_$ac_func
16589
16590 /* System header to define __stub macros and hopefully few prototypes,
16591 which can conflict with char $ac_func (); below.
16592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16593 <limits.h> exists even on freestanding compilers. */
16594
16595 #ifdef __STDC__
16596 # include <limits.h>
16597 #else
16598 # include <assert.h>
16599 #endif
16600
16601 #undef $ac_func
16602
16603 /* Override any GCC internal prototype to avoid an error.
16604 Use char because int might match the return type of a GCC
16605 builtin and then its argument prototype would still apply. */
16606 #ifdef __cplusplus
16607 extern "C"
16608 #endif
16609 char $ac_func ();
16610 /* The GNU C library defines this for functions which it implements
16611 to always fail with ENOSYS. Some functions are actually named
16612 something starting with __ and the normal name is an alias. */
16613 #if defined __stub_$ac_func || defined __stub___$ac_func
16614 choke me
16615 #endif
16616
16617 int
16618 main ()
16619 {
16620 return $ac_func ();
16621 ;
16622 return 0;
16623 }
16624 _ACEOF
16625 rm -f conftest.$ac_objext conftest$ac_exeext
16626 if { (ac_try="$ac_link"
16627 case "(($ac_try" in
16628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16629 *) ac_try_echo=$ac_try;;
16630 esac
16631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16632 $as_echo "$ac_try_echo") >&5
16633 (eval "$ac_link") 2>conftest.er1
16634 ac_status=$?
16635 grep -v '^ *+' conftest.er1 >conftest.err
16636 rm -f conftest.er1
16637 cat conftest.err >&5
16638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } && {
16640 test -z "$ac_c_werror_flag" ||
16641 test ! -s conftest.err
16642 } && test -s conftest$ac_exeext && {
16643 test "$cross_compiling" = yes ||
16644 $as_test_x conftest$ac_exeext
16645 }; then
16646 eval "$as_ac_var=yes"
16647 else
16648 $as_echo "$as_me: failed program was:" >&5
16649 sed 's/^/| /' conftest.$ac_ext >&5
16650
16651 eval "$as_ac_var=no"
16652 fi
16653
16654 rm -rf conftest.dSYM
16655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16656 conftest$ac_exeext conftest.$ac_ext
16657 fi
16658 ac_res=`eval 'as_val=${'$as_ac_var'}
16659 $as_echo "$as_val"'`
16660 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16661 $as_echo "$ac_res" >&6; }
16662 if test `eval 'as_val=${'$as_ac_var'}
16663 $as_echo "$as_val"'` = yes; then
16664 cat >>confdefs.h <<_ACEOF
16665 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16666 _ACEOF
16667
16668 fi
16669 done
16670
16671
16672 for ac_header in maillock.h
16673 do
16674 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16676 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16677 $as_echo_n "checking for $ac_header... " >&6; }
16678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16679 $as_echo_n "(cached) " >&6
16680 fi
16681 ac_res=`eval 'as_val=${'$as_ac_Header'}
16682 $as_echo "$as_val"'`
16683 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16684 $as_echo "$ac_res" >&6; }
16685 else
16686 # Is the header compilable?
16687 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16688 $as_echo_n "checking $ac_header usability... " >&6; }
16689 cat >conftest.$ac_ext <<_ACEOF
16690 /* confdefs.h. */
16691 _ACEOF
16692 cat confdefs.h >>conftest.$ac_ext
16693 cat >>conftest.$ac_ext <<_ACEOF
16694 /* end confdefs.h. */
16695 $ac_includes_default
16696 #include <$ac_header>
16697 _ACEOF
16698 rm -f conftest.$ac_objext
16699 if { (ac_try="$ac_compile"
16700 case "(($ac_try" in
16701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702 *) ac_try_echo=$ac_try;;
16703 esac
16704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16705 $as_echo "$ac_try_echo") >&5
16706 (eval "$ac_compile") 2>conftest.er1
16707 ac_status=$?
16708 grep -v '^ *+' conftest.er1 >conftest.err
16709 rm -f conftest.er1
16710 cat conftest.err >&5
16711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } && {
16713 test -z "$ac_c_werror_flag" ||
16714 test ! -s conftest.err
16715 } && test -s conftest.$ac_objext; then
16716 ac_header_compiler=yes
16717 else
16718 $as_echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16720
16721 ac_header_compiler=no
16722 fi
16723
16724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16725 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16726 $as_echo "$ac_header_compiler" >&6; }
16727
16728 # Is the header present?
16729 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16730 $as_echo_n "checking $ac_header presence... " >&6; }
16731 cat >conftest.$ac_ext <<_ACEOF
16732 /* confdefs.h. */
16733 _ACEOF
16734 cat confdefs.h >>conftest.$ac_ext
16735 cat >>conftest.$ac_ext <<_ACEOF
16736 /* end confdefs.h. */
16737 #include <$ac_header>
16738 _ACEOF
16739 if { (ac_try="$ac_cpp conftest.$ac_ext"
16740 case "(($ac_try" in
16741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742 *) ac_try_echo=$ac_try;;
16743 esac
16744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16745 $as_echo "$ac_try_echo") >&5
16746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16747 ac_status=$?
16748 grep -v '^ *+' conftest.er1 >conftest.err
16749 rm -f conftest.er1
16750 cat conftest.err >&5
16751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } >/dev/null && {
16753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16754 test ! -s conftest.err
16755 }; then
16756 ac_header_preproc=yes
16757 else
16758 $as_echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16760
16761 ac_header_preproc=no
16762 fi
16763
16764 rm -f conftest.err conftest.$ac_ext
16765 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16766 $as_echo "$ac_header_preproc" >&6; }
16767
16768 # So? What about this header?
16769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16770 yes:no: )
16771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16772 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16774 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16775 ac_header_preproc=yes
16776 ;;
16777 no:yes:* )
16778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16779 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16781 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16783 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16785 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16787 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16789 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16790
16791 ;;
16792 esac
16793 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16794 $as_echo_n "checking for $ac_header... " >&6; }
16795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16796 $as_echo_n "(cached) " >&6
16797 else
16798 eval "$as_ac_Header=\$ac_header_preproc"
16799 fi
16800 ac_res=`eval 'as_val=${'$as_ac_Header'}
16801 $as_echo "$as_val"'`
16802 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16803 $as_echo "$ac_res" >&6; }
16804
16805 fi
16806 if test `eval 'as_val=${'$as_ac_Header'}
16807 $as_echo "$as_val"'` = yes; then
16808 cat >>confdefs.h <<_ACEOF
16809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16810 _ACEOF
16811
16812 fi
16813
16814 done
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888 for ac_func in gethostname getdomainname dup2 \
16889 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16890 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16891 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16892 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16893 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16894 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16895 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16896 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16897 cfmakeraw cfsetspeed
16898 do
16899 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16900 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16901 $as_echo_n "checking for $ac_func... " >&6; }
16902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16903 $as_echo_n "(cached) " >&6
16904 else
16905 cat >conftest.$ac_ext <<_ACEOF
16906 /* confdefs.h. */
16907 _ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16913 #define $ac_func innocuous_$ac_func
16914
16915 /* System header to define __stub macros and hopefully few prototypes,
16916 which can conflict with char $ac_func (); below.
16917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16918 <limits.h> exists even on freestanding compilers. */
16919
16920 #ifdef __STDC__
16921 # include <limits.h>
16922 #else
16923 # include <assert.h>
16924 #endif
16925
16926 #undef $ac_func
16927
16928 /* Override any GCC internal prototype to avoid an error.
16929 Use char because int might match the return type of a GCC
16930 builtin and then its argument prototype would still apply. */
16931 #ifdef __cplusplus
16932 extern "C"
16933 #endif
16934 char $ac_func ();
16935 /* The GNU C library defines this for functions which it implements
16936 to always fail with ENOSYS. Some functions are actually named
16937 something starting with __ and the normal name is an alias. */
16938 #if defined __stub_$ac_func || defined __stub___$ac_func
16939 choke me
16940 #endif
16941
16942 int
16943 main ()
16944 {
16945 return $ac_func ();
16946 ;
16947 return 0;
16948 }
16949 _ACEOF
16950 rm -f conftest.$ac_objext conftest$ac_exeext
16951 if { (ac_try="$ac_link"
16952 case "(($ac_try" in
16953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16954 *) ac_try_echo=$ac_try;;
16955 esac
16956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16957 $as_echo "$ac_try_echo") >&5
16958 (eval "$ac_link") 2>conftest.er1
16959 ac_status=$?
16960 grep -v '^ *+' conftest.er1 >conftest.err
16961 rm -f conftest.er1
16962 cat conftest.err >&5
16963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } && {
16965 test -z "$ac_c_werror_flag" ||
16966 test ! -s conftest.err
16967 } && test -s conftest$ac_exeext && {
16968 test "$cross_compiling" = yes ||
16969 $as_test_x conftest$ac_exeext
16970 }; then
16971 eval "$as_ac_var=yes"
16972 else
16973 $as_echo "$as_me: failed program was:" >&5
16974 sed 's/^/| /' conftest.$ac_ext >&5
16975
16976 eval "$as_ac_var=no"
16977 fi
16978
16979 rm -rf conftest.dSYM
16980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16981 conftest$ac_exeext conftest.$ac_ext
16982 fi
16983 ac_res=`eval 'as_val=${'$as_ac_var'}
16984 $as_echo "$as_val"'`
16985 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16986 $as_echo "$ac_res" >&6; }
16987 if test `eval 'as_val=${'$as_ac_var'}
16988 $as_echo "$as_val"'` = yes; then
16989 cat >>confdefs.h <<_ACEOF
16990 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16991 _ACEOF
16992
16993 fi
16994 done
16995
16996
16997
16998 for ac_header in sys/un.h
16999 do
17000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17002 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17003 $as_echo_n "checking for $ac_header... " >&6; }
17004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17005 $as_echo_n "(cached) " >&6
17006 fi
17007 ac_res=`eval 'as_val=${'$as_ac_Header'}
17008 $as_echo "$as_val"'`
17009 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17010 $as_echo "$ac_res" >&6; }
17011 else
17012 # Is the header compilable?
17013 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17014 $as_echo_n "checking $ac_header usability... " >&6; }
17015 cat >conftest.$ac_ext <<_ACEOF
17016 /* confdefs.h. */
17017 _ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17021 $ac_includes_default
17022 #include <$ac_header>
17023 _ACEOF
17024 rm -f conftest.$ac_objext
17025 if { (ac_try="$ac_compile"
17026 case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17029 esac
17030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17031 $as_echo "$ac_try_echo") >&5
17032 (eval "$ac_compile") 2>conftest.er1
17033 ac_status=$?
17034 grep -v '^ *+' conftest.er1 >conftest.err
17035 rm -f conftest.er1
17036 cat conftest.err >&5
17037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } && {
17039 test -z "$ac_c_werror_flag" ||
17040 test ! -s conftest.err
17041 } && test -s conftest.$ac_objext; then
17042 ac_header_compiler=yes
17043 else
17044 $as_echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17046
17047 ac_header_compiler=no
17048 fi
17049
17050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17051 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17052 $as_echo "$ac_header_compiler" >&6; }
17053
17054 # Is the header present?
17055 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17056 $as_echo_n "checking $ac_header presence... " >&6; }
17057 cat >conftest.$ac_ext <<_ACEOF
17058 /* confdefs.h. */
17059 _ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17063 #include <$ac_header>
17064 _ACEOF
17065 if { (ac_try="$ac_cpp conftest.$ac_ext"
17066 case "(($ac_try" in
17067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068 *) ac_try_echo=$ac_try;;
17069 esac
17070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17071 $as_echo "$ac_try_echo") >&5
17072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17073 ac_status=$?
17074 grep -v '^ *+' conftest.er1 >conftest.err
17075 rm -f conftest.er1
17076 cat conftest.err >&5
17077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } >/dev/null && {
17079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17080 test ! -s conftest.err
17081 }; then
17082 ac_header_preproc=yes
17083 else
17084 $as_echo "$as_me: failed program was:" >&5
17085 sed 's/^/| /' conftest.$ac_ext >&5
17086
17087 ac_header_preproc=no
17088 fi
17089
17090 rm -f conftest.err conftest.$ac_ext
17091 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17092 $as_echo "$ac_header_preproc" >&6; }
17093
17094 # So? What about this header?
17095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17096 yes:no: )
17097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17098 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17100 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17101 ac_header_preproc=yes
17102 ;;
17103 no:yes:* )
17104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17105 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17107 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17109 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17111 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17113 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17115 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17116
17117 ;;
17118 esac
17119 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17120 $as_echo_n "checking for $ac_header... " >&6; }
17121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17122 $as_echo_n "(cached) " >&6
17123 else
17124 eval "$as_ac_Header=\$ac_header_preproc"
17125 fi
17126 ac_res=`eval 'as_val=${'$as_ac_Header'}
17127 $as_echo "$as_val"'`
17128 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17129 $as_echo "$ac_res" >&6; }
17130
17131 fi
17132 if test `eval 'as_val=${'$as_ac_Header'}
17133 $as_echo "$as_val"'` = yes; then
17134 cat >>confdefs.h <<_ACEOF
17135 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17136 _ACEOF
17137
17138 fi
17139
17140 done
17141
17142
17143
17144
17145
17146
17147 for ac_header in $ac_header_list
17148 do
17149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17151 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17152 $as_echo_n "checking for $ac_header... " >&6; }
17153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17154 $as_echo_n "(cached) " >&6
17155 fi
17156 ac_res=`eval 'as_val=${'$as_ac_Header'}
17157 $as_echo "$as_val"'`
17158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17159 $as_echo "$ac_res" >&6; }
17160 else
17161 # Is the header compilable?
17162 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17163 $as_echo_n "checking $ac_header usability... " >&6; }
17164 cat >conftest.$ac_ext <<_ACEOF
17165 /* confdefs.h. */
17166 _ACEOF
17167 cat confdefs.h >>conftest.$ac_ext
17168 cat >>conftest.$ac_ext <<_ACEOF
17169 /* end confdefs.h. */
17170 $ac_includes_default
17171 #include <$ac_header>
17172 _ACEOF
17173 rm -f conftest.$ac_objext
17174 if { (ac_try="$ac_compile"
17175 case "(($ac_try" in
17176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17178 esac
17179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17180 $as_echo "$ac_try_echo") >&5
17181 (eval "$ac_compile") 2>conftest.er1
17182 ac_status=$?
17183 grep -v '^ *+' conftest.er1 >conftest.err
17184 rm -f conftest.er1
17185 cat conftest.err >&5
17186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); } && {
17188 test -z "$ac_c_werror_flag" ||
17189 test ! -s conftest.err
17190 } && test -s conftest.$ac_objext; then
17191 ac_header_compiler=yes
17192 else
17193 $as_echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.$ac_ext >&5
17195
17196 ac_header_compiler=no
17197 fi
17198
17199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17200 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17201 $as_echo "$ac_header_compiler" >&6; }
17202
17203 # Is the header present?
17204 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17205 $as_echo_n "checking $ac_header presence... " >&6; }
17206 cat >conftest.$ac_ext <<_ACEOF
17207 /* confdefs.h. */
17208 _ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h. */
17212 #include <$ac_header>
17213 _ACEOF
17214 if { (ac_try="$ac_cpp conftest.$ac_ext"
17215 case "(($ac_try" in
17216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217 *) ac_try_echo=$ac_try;;
17218 esac
17219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17220 $as_echo "$ac_try_echo") >&5
17221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17222 ac_status=$?
17223 grep -v '^ *+' conftest.er1 >conftest.err
17224 rm -f conftest.er1
17225 cat conftest.err >&5
17226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); } >/dev/null && {
17228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17229 test ! -s conftest.err
17230 }; then
17231 ac_header_preproc=yes
17232 else
17233 $as_echo "$as_me: failed program was:" >&5
17234 sed 's/^/| /' conftest.$ac_ext >&5
17235
17236 ac_header_preproc=no
17237 fi
17238
17239 rm -f conftest.err conftest.$ac_ext
17240 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17241 $as_echo "$ac_header_preproc" >&6; }
17242
17243 # So? What about this header?
17244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17245 yes:no: )
17246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17247 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17249 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17250 ac_header_preproc=yes
17251 ;;
17252 no:yes:* )
17253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17254 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17256 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17258 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17260 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17262 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17264 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17265
17266 ;;
17267 esac
17268 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17269 $as_echo_n "checking for $ac_header... " >&6; }
17270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17271 $as_echo_n "(cached) " >&6
17272 else
17273 eval "$as_ac_Header=\$ac_header_preproc"
17274 fi
17275 ac_res=`eval 'as_val=${'$as_ac_Header'}
17276 $as_echo "$as_val"'`
17277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17278 $as_echo "$ac_res" >&6; }
17279
17280 fi
17281 if test `eval 'as_val=${'$as_ac_Header'}
17282 $as_echo "$as_val"'` = yes; then
17283 cat >>confdefs.h <<_ACEOF
17284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17285 _ACEOF
17286
17287 fi
17288
17289 done
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299 for ac_func in $ac_func_list
17300 do
17301 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17302 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17303 $as_echo_n "checking for $ac_func... " >&6; }
17304 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17305 $as_echo_n "(cached) " >&6
17306 else
17307 cat >conftest.$ac_ext <<_ACEOF
17308 /* confdefs.h. */
17309 _ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17315 #define $ac_func innocuous_$ac_func
17316
17317 /* System header to define __stub macros and hopefully few prototypes,
17318 which can conflict with char $ac_func (); below.
17319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17320 <limits.h> exists even on freestanding compilers. */
17321
17322 #ifdef __STDC__
17323 # include <limits.h>
17324 #else
17325 # include <assert.h>
17326 #endif
17327
17328 #undef $ac_func
17329
17330 /* Override any GCC internal prototype to avoid an error.
17331 Use char because int might match the return type of a GCC
17332 builtin and then its argument prototype would still apply. */
17333 #ifdef __cplusplus
17334 extern "C"
17335 #endif
17336 char $ac_func ();
17337 /* The GNU C library defines this for functions which it implements
17338 to always fail with ENOSYS. Some functions are actually named
17339 something starting with __ and the normal name is an alias. */
17340 #if defined __stub_$ac_func || defined __stub___$ac_func
17341 choke me
17342 #endif
17343
17344 int
17345 main ()
17346 {
17347 return $ac_func ();
17348 ;
17349 return 0;
17350 }
17351 _ACEOF
17352 rm -f conftest.$ac_objext conftest$ac_exeext
17353 if { (ac_try="$ac_link"
17354 case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17357 esac
17358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17359 $as_echo "$ac_try_echo") >&5
17360 (eval "$ac_link") 2>conftest.er1
17361 ac_status=$?
17362 grep -v '^ *+' conftest.er1 >conftest.err
17363 rm -f conftest.er1
17364 cat conftest.err >&5
17365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } && {
17367 test -z "$ac_c_werror_flag" ||
17368 test ! -s conftest.err
17369 } && test -s conftest$ac_exeext && {
17370 test "$cross_compiling" = yes ||
17371 $as_test_x conftest$ac_exeext
17372 }; then
17373 eval "$as_ac_var=yes"
17374 else
17375 $as_echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17377
17378 eval "$as_ac_var=no"
17379 fi
17380
17381 rm -rf conftest.dSYM
17382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17383 conftest$ac_exeext conftest.$ac_ext
17384 fi
17385 ac_res=`eval 'as_val=${'$as_ac_var'}
17386 $as_echo "$as_val"'`
17387 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17388 $as_echo "$ac_res" >&6; }
17389 if test `eval 'as_val=${'$as_ac_var'}
17390 $as_echo "$as_val"'` = yes; then
17391 cat >>confdefs.h <<_ACEOF
17392 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17393 _ACEOF
17394
17395 fi
17396 done
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17415 $as_echo_n "checking for working mktime... " >&6; }
17416 if test "${ac_cv_func_working_mktime+set}" = set; then
17417 $as_echo_n "(cached) " >&6
17418 else
17419 if test "$cross_compiling" = yes; then
17420 ac_cv_func_working_mktime=no
17421 else
17422 cat >conftest.$ac_ext <<_ACEOF
17423 /* confdefs.h. */
17424 _ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17428 /* Test program from Paul Eggert and Tony Leneis. */
17429 #ifdef TIME_WITH_SYS_TIME
17430 # include <sys/time.h>
17431 # include <time.h>
17432 #else
17433 # ifdef HAVE_SYS_TIME_H
17434 # include <sys/time.h>
17435 # else
17436 # include <time.h>
17437 # endif
17438 #endif
17439
17440 #include <limits.h>
17441 #include <stdlib.h>
17442
17443 #ifdef HAVE_UNISTD_H
17444 # include <unistd.h>
17445 #endif
17446
17447 #ifndef HAVE_ALARM
17448 # define alarm(X) /* empty */
17449 #endif
17450
17451 /* Work around redefinition to rpl_putenv by other config tests. */
17452 #undef putenv
17453
17454 static time_t time_t_max;
17455 static time_t time_t_min;
17456
17457 /* Values we'll use to set the TZ environment variable. */
17458 static char *tz_strings[] = {
17459 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17460 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17461 };
17462 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17463
17464 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17465 Based on a problem report from Andreas Jaeger. */
17466 static int
17467 spring_forward_gap ()
17468 {
17469 /* glibc (up to about 1998-10-07) failed this test. */
17470 struct tm tm;
17471
17472 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17473 instead of "TZ=America/Vancouver" in order to detect the bug even
17474 on systems that don't support the Olson extension, or don't have the
17475 full zoneinfo tables installed. */
17476 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17477
17478 tm.tm_year = 98;
17479 tm.tm_mon = 3;
17480 tm.tm_mday = 5;
17481 tm.tm_hour = 2;
17482 tm.tm_min = 0;
17483 tm.tm_sec = 0;
17484 tm.tm_isdst = -1;
17485 return mktime (&tm) != (time_t) -1;
17486 }
17487
17488 static int
17489 mktime_test1 (now)
17490 time_t now;
17491 {
17492 struct tm *lt;
17493 return ! (lt = localtime (&now)) || mktime (lt) == now;
17494 }
17495
17496 static int
17497 mktime_test (now)
17498 time_t now;
17499 {
17500 return (mktime_test1 (now)
17501 && mktime_test1 ((time_t) (time_t_max - now))
17502 && mktime_test1 ((time_t) (time_t_min + now)));
17503 }
17504
17505 static int
17506 irix_6_4_bug ()
17507 {
17508 /* Based on code from Ariel Faigon. */
17509 struct tm tm;
17510 tm.tm_year = 96;
17511 tm.tm_mon = 3;
17512 tm.tm_mday = 0;
17513 tm.tm_hour = 0;
17514 tm.tm_min = 0;
17515 tm.tm_sec = 0;
17516 tm.tm_isdst = -1;
17517 mktime (&tm);
17518 return tm.tm_mon == 2 && tm.tm_mday == 31;
17519 }
17520
17521 static int
17522 bigtime_test (j)
17523 int j;
17524 {
17525 struct tm tm;
17526 time_t now;
17527 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17528 now = mktime (&tm);
17529 if (now != (time_t) -1)
17530 {
17531 struct tm *lt = localtime (&now);
17532 if (! (lt
17533 && lt->tm_year == tm.tm_year
17534 && lt->tm_mon == tm.tm_mon
17535 && lt->tm_mday == tm.tm_mday
17536 && lt->tm_hour == tm.tm_hour
17537 && lt->tm_min == tm.tm_min
17538 && lt->tm_sec == tm.tm_sec
17539 && lt->tm_yday == tm.tm_yday
17540 && lt->tm_wday == tm.tm_wday
17541 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17542 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17543 return 0;
17544 }
17545 return 1;
17546 }
17547
17548 static int
17549 year_2050_test ()
17550 {
17551 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17552 ignoring leap seconds. */
17553 unsigned long int answer = 2527315200UL;
17554
17555 struct tm tm;
17556 time_t t;
17557 tm.tm_year = 2050 - 1900;
17558 tm.tm_mon = 2 - 1;
17559 tm.tm_mday = 1;
17560 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17561 tm.tm_isdst = -1;
17562
17563 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17564 instead of "TZ=America/Vancouver" in order to detect the bug even
17565 on systems that don't support the Olson extension, or don't have the
17566 full zoneinfo tables installed. */
17567 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17568
17569 t = mktime (&tm);
17570
17571 /* Check that the result is either a failure, or close enough
17572 to the correct answer that we can assume the discrepancy is
17573 due to leap seconds. */
17574 return (t == (time_t) -1
17575 || (0 < t && answer - 120 <= t && t <= answer + 120));
17576 }
17577
17578 int
17579 main ()
17580 {
17581 time_t t, delta;
17582 int i, j;
17583
17584 /* This test makes some buggy mktime implementations loop.
17585 Give up after 60 seconds; a mktime slower than that
17586 isn't worth using anyway. */
17587 alarm (60);
17588
17589 for (;;)
17590 {
17591 t = (time_t_max << 1) + 1;
17592 if (t <= time_t_max)
17593 break;
17594 time_t_max = t;
17595 }
17596 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17597
17598 delta = time_t_max / 997; /* a suitable prime number */
17599 for (i = 0; i < N_STRINGS; i++)
17600 {
17601 if (tz_strings[i])
17602 putenv (tz_strings[i]);
17603
17604 for (t = 0; t <= time_t_max - delta; t += delta)
17605 if (! mktime_test (t))
17606 return 1;
17607 if (! (mktime_test ((time_t) 1)
17608 && mktime_test ((time_t) (60 * 60))
17609 && mktime_test ((time_t) (60 * 60 * 24))))
17610 return 1;
17611
17612 for (j = 1; ; j <<= 1)
17613 if (! bigtime_test (j))
17614 return 1;
17615 else if (INT_MAX / 2 < j)
17616 break;
17617 if (! bigtime_test (INT_MAX))
17618 return 1;
17619 }
17620 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17621 }
17622 _ACEOF
17623 rm -f conftest$ac_exeext
17624 if { (ac_try="$ac_link"
17625 case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17628 esac
17629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17630 $as_echo "$ac_try_echo") >&5
17631 (eval "$ac_link") 2>&5
17632 ac_status=$?
17633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17635 { (case "(($ac_try" in
17636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17637 *) ac_try_echo=$ac_try;;
17638 esac
17639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17640 $as_echo "$ac_try_echo") >&5
17641 (eval "$ac_try") 2>&5
17642 ac_status=$?
17643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; }; then
17645 ac_cv_func_working_mktime=yes
17646 else
17647 $as_echo "$as_me: program exited with status $ac_status" >&5
17648 $as_echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17650
17651 ( exit $ac_status )
17652 ac_cv_func_working_mktime=no
17653 fi
17654 rm -rf conftest.dSYM
17655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17656 fi
17657
17658
17659 fi
17660 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17661 $as_echo "$ac_cv_func_working_mktime" >&6; }
17662 if test $ac_cv_func_working_mktime = no; then
17663 case " $LIBOBJS " in
17664 *" mktime.$ac_objext "* ) ;;
17665 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17666 ;;
17667 esac
17668
17669 fi
17670
17671 if test "$ac_cv_func_working_mktime" = no; then
17672
17673 cat >>confdefs.h <<\_ACEOF
17674 #define BROKEN_MKTIME 1
17675 _ACEOF
17676
17677 fi
17678
17679 ac_have_func=no # yes means we've found a way to get the load average.
17680
17681 # Make sure getloadavg.c is where it belongs, at configure-time.
17682 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17683 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17684 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17685 { (exit 1); exit 1; }; }
17686
17687 ac_save_LIBS=$LIBS
17688
17689 # Check for getloadavg, but be sure not to touch the cache variable.
17690 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
17691 $as_echo_n "checking for getloadavg... " >&6; }
17692 if test "${ac_cv_func_getloadavg+set}" = set; then
17693 $as_echo_n "(cached) " >&6
17694 else
17695 cat >conftest.$ac_ext <<_ACEOF
17696 /* confdefs.h. */
17697 _ACEOF
17698 cat confdefs.h >>conftest.$ac_ext
17699 cat >>conftest.$ac_ext <<_ACEOF
17700 /* end confdefs.h. */
17701 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17703 #define getloadavg innocuous_getloadavg
17704
17705 /* System header to define __stub macros and hopefully few prototypes,
17706 which can conflict with char getloadavg (); below.
17707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17708 <limits.h> exists even on freestanding compilers. */
17709
17710 #ifdef __STDC__
17711 # include <limits.h>
17712 #else
17713 # include <assert.h>
17714 #endif
17715
17716 #undef getloadavg
17717
17718 /* Override any GCC internal prototype to avoid an error.
17719 Use char because int might match the return type of a GCC
17720 builtin and then its argument prototype would still apply. */
17721 #ifdef __cplusplus
17722 extern "C"
17723 #endif
17724 char getloadavg ();
17725 /* The GNU C library defines this for functions which it implements
17726 to always fail with ENOSYS. Some functions are actually named
17727 something starting with __ and the normal name is an alias. */
17728 #if defined __stub_getloadavg || defined __stub___getloadavg
17729 choke me
17730 #endif
17731
17732 int
17733 main ()
17734 {
17735 return getloadavg ();
17736 ;
17737 return 0;
17738 }
17739 _ACEOF
17740 rm -f conftest.$ac_objext conftest$ac_exeext
17741 if { (ac_try="$ac_link"
17742 case "(($ac_try" in
17743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17744 *) ac_try_echo=$ac_try;;
17745 esac
17746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17747 $as_echo "$ac_try_echo") >&5
17748 (eval "$ac_link") 2>conftest.er1
17749 ac_status=$?
17750 grep -v '^ *+' conftest.er1 >conftest.err
17751 rm -f conftest.er1
17752 cat conftest.err >&5
17753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } && {
17755 test -z "$ac_c_werror_flag" ||
17756 test ! -s conftest.err
17757 } && test -s conftest$ac_exeext && {
17758 test "$cross_compiling" = yes ||
17759 $as_test_x conftest$ac_exeext
17760 }; then
17761 ac_cv_func_getloadavg=yes
17762 else
17763 $as_echo "$as_me: failed program was:" >&5
17764 sed 's/^/| /' conftest.$ac_ext >&5
17765
17766 ac_cv_func_getloadavg=no
17767 fi
17768
17769 rm -rf conftest.dSYM
17770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17771 conftest$ac_exeext conftest.$ac_ext
17772 fi
17773 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17774 $as_echo "$ac_cv_func_getloadavg" >&6; }
17775 if test $ac_cv_func_getloadavg = yes; then
17776 exit 0
17777 else
17778 exit 1
17779 fi
17780 ) && ac_have_func=yes
17781
17782 # On HPUX9, an unprivileged user can get load averages through this function.
17783
17784 for ac_func in pstat_getdynamic
17785 do
17786 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17787 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17788 $as_echo_n "checking for $ac_func... " >&6; }
17789 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17790 $as_echo_n "(cached) " >&6
17791 else
17792 cat >conftest.$ac_ext <<_ACEOF
17793 /* confdefs.h. */
17794 _ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h. */
17798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17800 #define $ac_func innocuous_$ac_func
17801
17802 /* System header to define __stub macros and hopefully few prototypes,
17803 which can conflict with char $ac_func (); below.
17804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17805 <limits.h> exists even on freestanding compilers. */
17806
17807 #ifdef __STDC__
17808 # include <limits.h>
17809 #else
17810 # include <assert.h>
17811 #endif
17812
17813 #undef $ac_func
17814
17815 /* Override any GCC internal prototype to avoid an error.
17816 Use char because int might match the return type of a GCC
17817 builtin and then its argument prototype would still apply. */
17818 #ifdef __cplusplus
17819 extern "C"
17820 #endif
17821 char $ac_func ();
17822 /* The GNU C library defines this for functions which it implements
17823 to always fail with ENOSYS. Some functions are actually named
17824 something starting with __ and the normal name is an alias. */
17825 #if defined __stub_$ac_func || defined __stub___$ac_func
17826 choke me
17827 #endif
17828
17829 int
17830 main ()
17831 {
17832 return $ac_func ();
17833 ;
17834 return 0;
17835 }
17836 _ACEOF
17837 rm -f conftest.$ac_objext conftest$ac_exeext
17838 if { (ac_try="$ac_link"
17839 case "(($ac_try" in
17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841 *) ac_try_echo=$ac_try;;
17842 esac
17843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17844 $as_echo "$ac_try_echo") >&5
17845 (eval "$ac_link") 2>conftest.er1
17846 ac_status=$?
17847 grep -v '^ *+' conftest.er1 >conftest.err
17848 rm -f conftest.er1
17849 cat conftest.err >&5
17850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } && {
17852 test -z "$ac_c_werror_flag" ||
17853 test ! -s conftest.err
17854 } && test -s conftest$ac_exeext && {
17855 test "$cross_compiling" = yes ||
17856 $as_test_x conftest$ac_exeext
17857 }; then
17858 eval "$as_ac_var=yes"
17859 else
17860 $as_echo "$as_me: failed program was:" >&5
17861 sed 's/^/| /' conftest.$ac_ext >&5
17862
17863 eval "$as_ac_var=no"
17864 fi
17865
17866 rm -rf conftest.dSYM
17867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17868 conftest$ac_exeext conftest.$ac_ext
17869 fi
17870 ac_res=`eval 'as_val=${'$as_ac_var'}
17871 $as_echo "$as_val"'`
17872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17873 $as_echo "$ac_res" >&6; }
17874 if test `eval 'as_val=${'$as_ac_var'}
17875 $as_echo "$as_val"'` = yes; then
17876 cat >>confdefs.h <<_ACEOF
17877 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17878 _ACEOF
17879
17880 fi
17881 done
17882
17883
17884 # Solaris has libkstat which does not require root.
17885
17886 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17887 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
17888 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17889 $as_echo_n "(cached) " >&6
17890 else
17891 ac_check_lib_save_LIBS=$LIBS
17892 LIBS="-lkstat $LIBS"
17893 cat >conftest.$ac_ext <<_ACEOF
17894 /* confdefs.h. */
17895 _ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17899
17900 /* Override any GCC internal prototype to avoid an error.
17901 Use char because int might match the return type of a GCC
17902 builtin and then its argument prototype would still apply. */
17903 #ifdef __cplusplus
17904 extern "C"
17905 #endif
17906 char kstat_open ();
17907 int
17908 main ()
17909 {
17910 return kstat_open ();
17911 ;
17912 return 0;
17913 }
17914 _ACEOF
17915 rm -f conftest.$ac_objext conftest$ac_exeext
17916 if { (ac_try="$ac_link"
17917 case "(($ac_try" in
17918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919 *) ac_try_echo=$ac_try;;
17920 esac
17921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17922 $as_echo "$ac_try_echo") >&5
17923 (eval "$ac_link") 2>conftest.er1
17924 ac_status=$?
17925 grep -v '^ *+' conftest.er1 >conftest.err
17926 rm -f conftest.er1
17927 cat conftest.err >&5
17928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); } && {
17930 test -z "$ac_c_werror_flag" ||
17931 test ! -s conftest.err
17932 } && test -s conftest$ac_exeext && {
17933 test "$cross_compiling" = yes ||
17934 $as_test_x conftest$ac_exeext
17935 }; then
17936 ac_cv_lib_kstat_kstat_open=yes
17937 else
17938 $as_echo "$as_me: failed program was:" >&5
17939 sed 's/^/| /' conftest.$ac_ext >&5
17940
17941 ac_cv_lib_kstat_kstat_open=no
17942 fi
17943
17944 rm -rf conftest.dSYM
17945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17946 conftest$ac_exeext conftest.$ac_ext
17947 LIBS=$ac_check_lib_save_LIBS
17948 fi
17949 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17950 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
17951 if test $ac_cv_lib_kstat_kstat_open = yes; then
17952 cat >>confdefs.h <<_ACEOF
17953 #define HAVE_LIBKSTAT 1
17954 _ACEOF
17955
17956 LIBS="-lkstat $LIBS"
17957
17958 fi
17959
17960 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17961
17962 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17963 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17964 # to get the right answer into the cache.
17965 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17966 if test $ac_have_func = no; then
17967 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17968 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
17969 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17970 $as_echo_n "(cached) " >&6
17971 else
17972 ac_check_lib_save_LIBS=$LIBS
17973 LIBS="-lelf $LIBS"
17974 cat >conftest.$ac_ext <<_ACEOF
17975 /* confdefs.h. */
17976 _ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h. */
17980
17981 /* Override any GCC internal prototype to avoid an error.
17982 Use char because int might match the return type of a GCC
17983 builtin and then its argument prototype would still apply. */
17984 #ifdef __cplusplus
17985 extern "C"
17986 #endif
17987 char elf_begin ();
17988 int
17989 main ()
17990 {
17991 return elf_begin ();
17992 ;
17993 return 0;
17994 }
17995 _ACEOF
17996 rm -f conftest.$ac_objext conftest$ac_exeext
17997 if { (ac_try="$ac_link"
17998 case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18001 esac
18002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18003 $as_echo "$ac_try_echo") >&5
18004 (eval "$ac_link") 2>conftest.er1
18005 ac_status=$?
18006 grep -v '^ *+' conftest.er1 >conftest.err
18007 rm -f conftest.er1
18008 cat conftest.err >&5
18009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } && {
18011 test -z "$ac_c_werror_flag" ||
18012 test ! -s conftest.err
18013 } && test -s conftest$ac_exeext && {
18014 test "$cross_compiling" = yes ||
18015 $as_test_x conftest$ac_exeext
18016 }; then
18017 ac_cv_lib_elf_elf_begin=yes
18018 else
18019 $as_echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18021
18022 ac_cv_lib_elf_elf_begin=no
18023 fi
18024
18025 rm -rf conftest.dSYM
18026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18027 conftest$ac_exeext conftest.$ac_ext
18028 LIBS=$ac_check_lib_save_LIBS
18029 fi
18030 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18031 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18032 if test $ac_cv_lib_elf_elf_begin = yes; then
18033 LIBS="-lelf $LIBS"
18034 fi
18035
18036 fi
18037 if test $ac_have_func = no; then
18038 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18039 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18040 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18041 $as_echo_n "(cached) " >&6
18042 else
18043 ac_check_lib_save_LIBS=$LIBS
18044 LIBS="-lkvm $LIBS"
18045 cat >conftest.$ac_ext <<_ACEOF
18046 /* confdefs.h. */
18047 _ACEOF
18048 cat confdefs.h >>conftest.$ac_ext
18049 cat >>conftest.$ac_ext <<_ACEOF
18050 /* end confdefs.h. */
18051
18052 /* Override any GCC internal prototype to avoid an error.
18053 Use char because int might match the return type of a GCC
18054 builtin and then its argument prototype would still apply. */
18055 #ifdef __cplusplus
18056 extern "C"
18057 #endif
18058 char kvm_open ();
18059 int
18060 main ()
18061 {
18062 return kvm_open ();
18063 ;
18064 return 0;
18065 }
18066 _ACEOF
18067 rm -f conftest.$ac_objext conftest$ac_exeext
18068 if { (ac_try="$ac_link"
18069 case "(($ac_try" in
18070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071 *) ac_try_echo=$ac_try;;
18072 esac
18073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18074 $as_echo "$ac_try_echo") >&5
18075 (eval "$ac_link") 2>conftest.er1
18076 ac_status=$?
18077 grep -v '^ *+' conftest.er1 >conftest.err
18078 rm -f conftest.er1
18079 cat conftest.err >&5
18080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); } && {
18082 test -z "$ac_c_werror_flag" ||
18083 test ! -s conftest.err
18084 } && test -s conftest$ac_exeext && {
18085 test "$cross_compiling" = yes ||
18086 $as_test_x conftest$ac_exeext
18087 }; then
18088 ac_cv_lib_kvm_kvm_open=yes
18089 else
18090 $as_echo "$as_me: failed program was:" >&5
18091 sed 's/^/| /' conftest.$ac_ext >&5
18092
18093 ac_cv_lib_kvm_kvm_open=no
18094 fi
18095
18096 rm -rf conftest.dSYM
18097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18098 conftest$ac_exeext conftest.$ac_ext
18099 LIBS=$ac_check_lib_save_LIBS
18100 fi
18101 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18102 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18103 if test $ac_cv_lib_kvm_kvm_open = yes; then
18104 LIBS="-lkvm $LIBS"
18105 fi
18106
18107 # Check for the 4.4BSD definition of getloadavg.
18108 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18109 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18110 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18111 $as_echo_n "(cached) " >&6
18112 else
18113 ac_check_lib_save_LIBS=$LIBS
18114 LIBS="-lutil $LIBS"
18115 cat >conftest.$ac_ext <<_ACEOF
18116 /* confdefs.h. */
18117 _ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h. */
18121
18122 /* Override any GCC internal prototype to avoid an error.
18123 Use char because int might match the return type of a GCC
18124 builtin and then its argument prototype would still apply. */
18125 #ifdef __cplusplus
18126 extern "C"
18127 #endif
18128 char getloadavg ();
18129 int
18130 main ()
18131 {
18132 return getloadavg ();
18133 ;
18134 return 0;
18135 }
18136 _ACEOF
18137 rm -f conftest.$ac_objext conftest$ac_exeext
18138 if { (ac_try="$ac_link"
18139 case "(($ac_try" in
18140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18141 *) ac_try_echo=$ac_try;;
18142 esac
18143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18144 $as_echo "$ac_try_echo") >&5
18145 (eval "$ac_link") 2>conftest.er1
18146 ac_status=$?
18147 grep -v '^ *+' conftest.er1 >conftest.err
18148 rm -f conftest.er1
18149 cat conftest.err >&5
18150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } && {
18152 test -z "$ac_c_werror_flag" ||
18153 test ! -s conftest.err
18154 } && test -s conftest$ac_exeext && {
18155 test "$cross_compiling" = yes ||
18156 $as_test_x conftest$ac_exeext
18157 }; then
18158 ac_cv_lib_util_getloadavg=yes
18159 else
18160 $as_echo "$as_me: failed program was:" >&5
18161 sed 's/^/| /' conftest.$ac_ext >&5
18162
18163 ac_cv_lib_util_getloadavg=no
18164 fi
18165
18166 rm -rf conftest.dSYM
18167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18168 conftest$ac_exeext conftest.$ac_ext
18169 LIBS=$ac_check_lib_save_LIBS
18170 fi
18171 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18172 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18173 if test $ac_cv_lib_util_getloadavg = yes; then
18174 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18175 fi
18176
18177 fi
18178
18179 if test $ac_have_func = no; then
18180 # There is a commonly available library for RS/6000 AIX.
18181 # Since it is not a standard part of AIX, it might be installed locally.
18182 ac_getloadavg_LIBS=$LIBS
18183 LIBS="-L/usr/local/lib $LIBS"
18184 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18185 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18186 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18187 $as_echo_n "(cached) " >&6
18188 else
18189 ac_check_lib_save_LIBS=$LIBS
18190 LIBS="-lgetloadavg $LIBS"
18191 cat >conftest.$ac_ext <<_ACEOF
18192 /* confdefs.h. */
18193 _ACEOF
18194 cat confdefs.h >>conftest.$ac_ext
18195 cat >>conftest.$ac_ext <<_ACEOF
18196 /* end confdefs.h. */
18197
18198 /* Override any GCC internal prototype to avoid an error.
18199 Use char because int might match the return type of a GCC
18200 builtin and then its argument prototype would still apply. */
18201 #ifdef __cplusplus
18202 extern "C"
18203 #endif
18204 char getloadavg ();
18205 int
18206 main ()
18207 {
18208 return getloadavg ();
18209 ;
18210 return 0;
18211 }
18212 _ACEOF
18213 rm -f conftest.$ac_objext conftest$ac_exeext
18214 if { (ac_try="$ac_link"
18215 case "(($ac_try" in
18216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217 *) ac_try_echo=$ac_try;;
18218 esac
18219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18220 $as_echo "$ac_try_echo") >&5
18221 (eval "$ac_link") 2>conftest.er1
18222 ac_status=$?
18223 grep -v '^ *+' conftest.er1 >conftest.err
18224 rm -f conftest.er1
18225 cat conftest.err >&5
18226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); } && {
18228 test -z "$ac_c_werror_flag" ||
18229 test ! -s conftest.err
18230 } && test -s conftest$ac_exeext && {
18231 test "$cross_compiling" = yes ||
18232 $as_test_x conftest$ac_exeext
18233 }; then
18234 ac_cv_lib_getloadavg_getloadavg=yes
18235 else
18236 $as_echo "$as_me: failed program was:" >&5
18237 sed 's/^/| /' conftest.$ac_ext >&5
18238
18239 ac_cv_lib_getloadavg_getloadavg=no
18240 fi
18241
18242 rm -rf conftest.dSYM
18243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18244 conftest$ac_exeext conftest.$ac_ext
18245 LIBS=$ac_check_lib_save_LIBS
18246 fi
18247 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18248 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18249 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18250 LIBS="-lgetloadavg $LIBS"
18251 else
18252 LIBS=$ac_getloadavg_LIBS
18253 fi
18254
18255 fi
18256
18257 # Make sure it is really in the library, if we think we found it,
18258 # otherwise set up the replacement function.
18259
18260 for ac_func in getloadavg
18261 do
18262 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18263 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18264 $as_echo_n "checking for $ac_func... " >&6; }
18265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18266 $as_echo_n "(cached) " >&6
18267 else
18268 cat >conftest.$ac_ext <<_ACEOF
18269 /* confdefs.h. */
18270 _ACEOF
18271 cat confdefs.h >>conftest.$ac_ext
18272 cat >>conftest.$ac_ext <<_ACEOF
18273 /* end confdefs.h. */
18274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18276 #define $ac_func innocuous_$ac_func
18277
18278 /* System header to define __stub macros and hopefully few prototypes,
18279 which can conflict with char $ac_func (); below.
18280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18281 <limits.h> exists even on freestanding compilers. */
18282
18283 #ifdef __STDC__
18284 # include <limits.h>
18285 #else
18286 # include <assert.h>
18287 #endif
18288
18289 #undef $ac_func
18290
18291 /* Override any GCC internal prototype to avoid an error.
18292 Use char because int might match the return type of a GCC
18293 builtin and then its argument prototype would still apply. */
18294 #ifdef __cplusplus
18295 extern "C"
18296 #endif
18297 char $ac_func ();
18298 /* The GNU C library defines this for functions which it implements
18299 to always fail with ENOSYS. Some functions are actually named
18300 something starting with __ and the normal name is an alias. */
18301 #if defined __stub_$ac_func || defined __stub___$ac_func
18302 choke me
18303 #endif
18304
18305 int
18306 main ()
18307 {
18308 return $ac_func ();
18309 ;
18310 return 0;
18311 }
18312 _ACEOF
18313 rm -f conftest.$ac_objext conftest$ac_exeext
18314 if { (ac_try="$ac_link"
18315 case "(($ac_try" in
18316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18317 *) ac_try_echo=$ac_try;;
18318 esac
18319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18320 $as_echo "$ac_try_echo") >&5
18321 (eval "$ac_link") 2>conftest.er1
18322 ac_status=$?
18323 grep -v '^ *+' conftest.er1 >conftest.err
18324 rm -f conftest.er1
18325 cat conftest.err >&5
18326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } && {
18328 test -z "$ac_c_werror_flag" ||
18329 test ! -s conftest.err
18330 } && test -s conftest$ac_exeext && {
18331 test "$cross_compiling" = yes ||
18332 $as_test_x conftest$ac_exeext
18333 }; then
18334 eval "$as_ac_var=yes"
18335 else
18336 $as_echo "$as_me: failed program was:" >&5
18337 sed 's/^/| /' conftest.$ac_ext >&5
18338
18339 eval "$as_ac_var=no"
18340 fi
18341
18342 rm -rf conftest.dSYM
18343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18344 conftest$ac_exeext conftest.$ac_ext
18345 fi
18346 ac_res=`eval 'as_val=${'$as_ac_var'}
18347 $as_echo "$as_val"'`
18348 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18349 $as_echo "$ac_res" >&6; }
18350 if test `eval 'as_val=${'$as_ac_var'}
18351 $as_echo "$as_val"'` = yes; then
18352 cat >>confdefs.h <<_ACEOF
18353 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18354 _ACEOF
18355
18356 else
18357 case " $LIBOBJS " in
18358 *" getloadavg.$ac_objext "* ) ;;
18359 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18360 ;;
18361 esac
18362
18363
18364 cat >>confdefs.h <<\_ACEOF
18365 #define C_GETLOADAVG 1
18366 _ACEOF
18367
18368 # Figure out what our getloadavg.c needs.
18369 ac_have_func=no
18370 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18371 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18372 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18373 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18374 $as_echo_n "(cached) " >&6
18375 fi
18376 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18377 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18378 else
18379 # Is the header compilable?
18380 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18381 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18382 cat >conftest.$ac_ext <<_ACEOF
18383 /* confdefs.h. */
18384 _ACEOF
18385 cat confdefs.h >>conftest.$ac_ext
18386 cat >>conftest.$ac_ext <<_ACEOF
18387 /* end confdefs.h. */
18388 $ac_includes_default
18389 #include <sys/dg_sys_info.h>
18390 _ACEOF
18391 rm -f conftest.$ac_objext
18392 if { (ac_try="$ac_compile"
18393 case "(($ac_try" in
18394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395 *) ac_try_echo=$ac_try;;
18396 esac
18397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18398 $as_echo "$ac_try_echo") >&5
18399 (eval "$ac_compile") 2>conftest.er1
18400 ac_status=$?
18401 grep -v '^ *+' conftest.er1 >conftest.err
18402 rm -f conftest.er1
18403 cat conftest.err >&5
18404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); } && {
18406 test -z "$ac_c_werror_flag" ||
18407 test ! -s conftest.err
18408 } && test -s conftest.$ac_objext; then
18409 ac_header_compiler=yes
18410 else
18411 $as_echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18413
18414 ac_header_compiler=no
18415 fi
18416
18417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18418 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18419 $as_echo "$ac_header_compiler" >&6; }
18420
18421 # Is the header present?
18422 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18423 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18424 cat >conftest.$ac_ext <<_ACEOF
18425 /* confdefs.h. */
18426 _ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h. */
18430 #include <sys/dg_sys_info.h>
18431 _ACEOF
18432 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
18446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18447 test ! -s conftest.err
18448 }; then
18449 ac_header_preproc=yes
18450 else
18451 $as_echo "$as_me: failed program was:" >&5
18452 sed 's/^/| /' conftest.$ac_ext >&5
18453
18454 ac_header_preproc=no
18455 fi
18456
18457 rm -f conftest.err conftest.$ac_ext
18458 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18459 $as_echo "$ac_header_preproc" >&6; }
18460
18461 # So? What about this header?
18462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18463 yes:no: )
18464 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18465 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18466 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18467 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18468 ac_header_preproc=yes
18469 ;;
18470 no:yes:* )
18471 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18472 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18473 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18474 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18475 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18476 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18477 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18478 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18479 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18480 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18481 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18482 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18483
18484 ;;
18485 esac
18486 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18487 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18488 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18489 $as_echo_n "(cached) " >&6
18490 else
18491 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18492 fi
18493 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18494 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18495
18496 fi
18497 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18498 ac_have_func=yes
18499
18500 cat >>confdefs.h <<\_ACEOF
18501 #define DGUX 1
18502 _ACEOF
18503
18504
18505 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18506 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18507 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18508 $as_echo_n "(cached) " >&6
18509 else
18510 ac_check_lib_save_LIBS=$LIBS
18511 LIBS="-ldgc $LIBS"
18512 cat >conftest.$ac_ext <<_ACEOF
18513 /* confdefs.h. */
18514 _ACEOF
18515 cat confdefs.h >>conftest.$ac_ext
18516 cat >>conftest.$ac_ext <<_ACEOF
18517 /* end confdefs.h. */
18518
18519 /* Override any GCC internal prototype to avoid an error.
18520 Use char because int might match the return type of a GCC
18521 builtin and then its argument prototype would still apply. */
18522 #ifdef __cplusplus
18523 extern "C"
18524 #endif
18525 char dg_sys_info ();
18526 int
18527 main ()
18528 {
18529 return dg_sys_info ();
18530 ;
18531 return 0;
18532 }
18533 _ACEOF
18534 rm -f conftest.$ac_objext conftest$ac_exeext
18535 if { (ac_try="$ac_link"
18536 case "(($ac_try" in
18537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538 *) ac_try_echo=$ac_try;;
18539 esac
18540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18541 $as_echo "$ac_try_echo") >&5
18542 (eval "$ac_link") 2>conftest.er1
18543 ac_status=$?
18544 grep -v '^ *+' conftest.er1 >conftest.err
18545 rm -f conftest.er1
18546 cat conftest.err >&5
18547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } && {
18549 test -z "$ac_c_werror_flag" ||
18550 test ! -s conftest.err
18551 } && test -s conftest$ac_exeext && {
18552 test "$cross_compiling" = yes ||
18553 $as_test_x conftest$ac_exeext
18554 }; then
18555 ac_cv_lib_dgc_dg_sys_info=yes
18556 else
18557 $as_echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18559
18560 ac_cv_lib_dgc_dg_sys_info=no
18561 fi
18562
18563 rm -rf conftest.dSYM
18564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18565 conftest$ac_exeext conftest.$ac_ext
18566 LIBS=$ac_check_lib_save_LIBS
18567 fi
18568 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18569 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18570 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18571 cat >>confdefs.h <<_ACEOF
18572 #define HAVE_LIBDGC 1
18573 _ACEOF
18574
18575 LIBS="-ldgc $LIBS"
18576
18577 fi
18578
18579 fi
18580
18581
18582
18583 if test "${ac_cv_header_locale_h+set}" = set; then
18584 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18585 $as_echo_n "checking for locale.h... " >&6; }
18586 if test "${ac_cv_header_locale_h+set}" = set; then
18587 $as_echo_n "(cached) " >&6
18588 fi
18589 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18590 $as_echo "$ac_cv_header_locale_h" >&6; }
18591 else
18592 # Is the header compilable?
18593 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
18594 $as_echo_n "checking locale.h usability... " >&6; }
18595 cat >conftest.$ac_ext <<_ACEOF
18596 /* confdefs.h. */
18597 _ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18601 $ac_includes_default
18602 #include <locale.h>
18603 _ACEOF
18604 rm -f conftest.$ac_objext
18605 if { (ac_try="$ac_compile"
18606 case "(($ac_try" in
18607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18608 *) ac_try_echo=$ac_try;;
18609 esac
18610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18611 $as_echo "$ac_try_echo") >&5
18612 (eval "$ac_compile") 2>conftest.er1
18613 ac_status=$?
18614 grep -v '^ *+' conftest.er1 >conftest.err
18615 rm -f conftest.er1
18616 cat conftest.err >&5
18617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); } && {
18619 test -z "$ac_c_werror_flag" ||
18620 test ! -s conftest.err
18621 } && test -s conftest.$ac_objext; then
18622 ac_header_compiler=yes
18623 else
18624 $as_echo "$as_me: failed program was:" >&5
18625 sed 's/^/| /' conftest.$ac_ext >&5
18626
18627 ac_header_compiler=no
18628 fi
18629
18630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18631 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18632 $as_echo "$ac_header_compiler" >&6; }
18633
18634 # Is the header present?
18635 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
18636 $as_echo_n "checking locale.h presence... " >&6; }
18637 cat >conftest.$ac_ext <<_ACEOF
18638 /* confdefs.h. */
18639 _ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18643 #include <locale.h>
18644 _ACEOF
18645 if { (ac_try="$ac_cpp conftest.$ac_ext"
18646 case "(($ac_try" in
18647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18648 *) ac_try_echo=$ac_try;;
18649 esac
18650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18651 $as_echo "$ac_try_echo") >&5
18652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18653 ac_status=$?
18654 grep -v '^ *+' conftest.er1 >conftest.err
18655 rm -f conftest.er1
18656 cat conftest.err >&5
18657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); } >/dev/null && {
18659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18660 test ! -s conftest.err
18661 }; then
18662 ac_header_preproc=yes
18663 else
18664 $as_echo "$as_me: failed program was:" >&5
18665 sed 's/^/| /' conftest.$ac_ext >&5
18666
18667 ac_header_preproc=no
18668 fi
18669
18670 rm -f conftest.err conftest.$ac_ext
18671 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18672 $as_echo "$ac_header_preproc" >&6; }
18673
18674 # So? What about this header?
18675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18676 yes:no: )
18677 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18678 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18679 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18680 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18681 ac_header_preproc=yes
18682 ;;
18683 no:yes:* )
18684 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18685 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18686 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18687 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18688 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18689 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18690 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18691 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18692 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18693 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18694 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18695 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18696
18697 ;;
18698 esac
18699 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18700 $as_echo_n "checking for locale.h... " >&6; }
18701 if test "${ac_cv_header_locale_h+set}" = set; then
18702 $as_echo_n "(cached) " >&6
18703 else
18704 ac_cv_header_locale_h=$ac_header_preproc
18705 fi
18706 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18707 $as_echo "$ac_cv_header_locale_h" >&6; }
18708
18709 fi
18710
18711
18712
18713 for ac_func in setlocale
18714 do
18715 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18716 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18717 $as_echo_n "checking for $ac_func... " >&6; }
18718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18719 $as_echo_n "(cached) " >&6
18720 else
18721 cat >conftest.$ac_ext <<_ACEOF
18722 /* confdefs.h. */
18723 _ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18729 #define $ac_func innocuous_$ac_func
18730
18731 /* System header to define __stub macros and hopefully few prototypes,
18732 which can conflict with char $ac_func (); below.
18733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18734 <limits.h> exists even on freestanding compilers. */
18735
18736 #ifdef __STDC__
18737 # include <limits.h>
18738 #else
18739 # include <assert.h>
18740 #endif
18741
18742 #undef $ac_func
18743
18744 /* Override any GCC internal prototype to avoid an error.
18745 Use char because int might match the return type of a GCC
18746 builtin and then its argument prototype would still apply. */
18747 #ifdef __cplusplus
18748 extern "C"
18749 #endif
18750 char $ac_func ();
18751 /* The GNU C library defines this for functions which it implements
18752 to always fail with ENOSYS. Some functions are actually named
18753 something starting with __ and the normal name is an alias. */
18754 #if defined __stub_$ac_func || defined __stub___$ac_func
18755 choke me
18756 #endif
18757
18758 int
18759 main ()
18760 {
18761 return $ac_func ();
18762 ;
18763 return 0;
18764 }
18765 _ACEOF
18766 rm -f conftest.$ac_objext conftest$ac_exeext
18767 if { (ac_try="$ac_link"
18768 case "(($ac_try" in
18769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770 *) ac_try_echo=$ac_try;;
18771 esac
18772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18773 $as_echo "$ac_try_echo") >&5
18774 (eval "$ac_link") 2>conftest.er1
18775 ac_status=$?
18776 grep -v '^ *+' conftest.er1 >conftest.err
18777 rm -f conftest.er1
18778 cat conftest.err >&5
18779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } && {
18781 test -z "$ac_c_werror_flag" ||
18782 test ! -s conftest.err
18783 } && test -s conftest$ac_exeext && {
18784 test "$cross_compiling" = yes ||
18785 $as_test_x conftest$ac_exeext
18786 }; then
18787 eval "$as_ac_var=yes"
18788 else
18789 $as_echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18791
18792 eval "$as_ac_var=no"
18793 fi
18794
18795 rm -rf conftest.dSYM
18796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18797 conftest$ac_exeext conftest.$ac_ext
18798 fi
18799 ac_res=`eval 'as_val=${'$as_ac_var'}
18800 $as_echo "$as_val"'`
18801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18802 $as_echo "$ac_res" >&6; }
18803 if test `eval 'as_val=${'$as_ac_var'}
18804 $as_echo "$as_val"'` = yes; then
18805 cat >>confdefs.h <<_ACEOF
18806 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18807 _ACEOF
18808
18809 fi
18810 done
18811
18812
18813 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18814 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18815 # Irix 4.0.5F has the header but not the library.
18816 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18817 ac_have_func=yes
18818
18819 cat >>confdefs.h <<\_ACEOF
18820 #define SVR4 1
18821 _ACEOF
18822
18823 fi
18824
18825 if test $ac_have_func = no; then
18826 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18827 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18828 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18829 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18830 $as_echo_n "(cached) " >&6
18831 fi
18832 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18833 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18834 else
18835 # Is the header compilable?
18836 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18837 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
18838 cat >conftest.$ac_ext <<_ACEOF
18839 /* confdefs.h. */
18840 _ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h. */
18844 $ac_includes_default
18845 #include <inq_stats/cpustats.h>
18846 _ACEOF
18847 rm -f conftest.$ac_objext
18848 if { (ac_try="$ac_compile"
18849 case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18852 esac
18853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18854 $as_echo "$ac_try_echo") >&5
18855 (eval "$ac_compile") 2>conftest.er1
18856 ac_status=$?
18857 grep -v '^ *+' conftest.er1 >conftest.err
18858 rm -f conftest.er1
18859 cat conftest.err >&5
18860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); } && {
18862 test -z "$ac_c_werror_flag" ||
18863 test ! -s conftest.err
18864 } && test -s conftest.$ac_objext; then
18865 ac_header_compiler=yes
18866 else
18867 $as_echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18869
18870 ac_header_compiler=no
18871 fi
18872
18873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18874 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18875 $as_echo "$ac_header_compiler" >&6; }
18876
18877 # Is the header present?
18878 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18879 $as_echo_n "checking inq_stats/cpustats.h presence... " >&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 #include <inq_stats/cpustats.h>
18887 _ACEOF
18888 if { (ac_try="$ac_cpp conftest.$ac_ext"
18889 case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18892 esac
18893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18894 $as_echo "$ac_try_echo") >&5
18895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18896 ac_status=$?
18897 grep -v '^ *+' conftest.er1 >conftest.err
18898 rm -f conftest.er1
18899 cat conftest.err >&5
18900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); } >/dev/null && {
18902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18903 test ! -s conftest.err
18904 }; then
18905 ac_header_preproc=yes
18906 else
18907 $as_echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18909
18910 ac_header_preproc=no
18911 fi
18912
18913 rm -f conftest.err conftest.$ac_ext
18914 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18915 $as_echo "$ac_header_preproc" >&6; }
18916
18917 # So? What about this header?
18918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18919 yes:no: )
18920 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18921 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18922 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18923 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18924 ac_header_preproc=yes
18925 ;;
18926 no:yes:* )
18927 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18928 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18929 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18930 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18931 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18932 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18933 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18934 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18935 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18936 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18937 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18938 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18939
18940 ;;
18941 esac
18942 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18943 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18944 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18945 $as_echo_n "(cached) " >&6
18946 else
18947 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18948 fi
18949 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18950 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18951
18952 fi
18953 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18954 ac_have_func=yes
18955
18956 cat >>confdefs.h <<\_ACEOF
18957 #define UMAX 1
18958 _ACEOF
18959
18960
18961 cat >>confdefs.h <<\_ACEOF
18962 #define UMAX4_3 1
18963 _ACEOF
18964
18965 fi
18966
18967
18968 fi
18969
18970 if test $ac_have_func = no; then
18971 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18972 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18973 $as_echo_n "checking for sys/cpustats.h... " >&6; }
18974 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18975 $as_echo_n "(cached) " >&6
18976 fi
18977 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18978 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
18979 else
18980 # Is the header compilable?
18981 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18982 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
18983 cat >conftest.$ac_ext <<_ACEOF
18984 /* confdefs.h. */
18985 _ACEOF
18986 cat confdefs.h >>conftest.$ac_ext
18987 cat >>conftest.$ac_ext <<_ACEOF
18988 /* end confdefs.h. */
18989 $ac_includes_default
18990 #include <sys/cpustats.h>
18991 _ACEOF
18992 rm -f conftest.$ac_objext
18993 if { (ac_try="$ac_compile"
18994 case "(($ac_try" in
18995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18996 *) ac_try_echo=$ac_try;;
18997 esac
18998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18999 $as_echo "$ac_try_echo") >&5
19000 (eval "$ac_compile") 2>conftest.er1
19001 ac_status=$?
19002 grep -v '^ *+' conftest.er1 >conftest.err
19003 rm -f conftest.er1
19004 cat conftest.err >&5
19005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); } && {
19007 test -z "$ac_c_werror_flag" ||
19008 test ! -s conftest.err
19009 } && test -s conftest.$ac_objext; then
19010 ac_header_compiler=yes
19011 else
19012 $as_echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.$ac_ext >&5
19014
19015 ac_header_compiler=no
19016 fi
19017
19018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19019 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19020 $as_echo "$ac_header_compiler" >&6; }
19021
19022 # Is the header present?
19023 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19024 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19025 cat >conftest.$ac_ext <<_ACEOF
19026 /* confdefs.h. */
19027 _ACEOF
19028 cat confdefs.h >>conftest.$ac_ext
19029 cat >>conftest.$ac_ext <<_ACEOF
19030 /* end confdefs.h. */
19031 #include <sys/cpustats.h>
19032 _ACEOF
19033 if { (ac_try="$ac_cpp conftest.$ac_ext"
19034 case "(($ac_try" in
19035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036 *) ac_try_echo=$ac_try;;
19037 esac
19038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19039 $as_echo "$ac_try_echo") >&5
19040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19041 ac_status=$?
19042 grep -v '^ *+' conftest.er1 >conftest.err
19043 rm -f conftest.er1
19044 cat conftest.err >&5
19045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } >/dev/null && {
19047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19048 test ! -s conftest.err
19049 }; then
19050 ac_header_preproc=yes
19051 else
19052 $as_echo "$as_me: failed program was:" >&5
19053 sed 's/^/| /' conftest.$ac_ext >&5
19054
19055 ac_header_preproc=no
19056 fi
19057
19058 rm -f conftest.err conftest.$ac_ext
19059 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19060 $as_echo "$ac_header_preproc" >&6; }
19061
19062 # So? What about this header?
19063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19064 yes:no: )
19065 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19066 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19067 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19068 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19069 ac_header_preproc=yes
19070 ;;
19071 no:yes:* )
19072 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19073 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19074 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19075 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19076 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19077 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19078 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19079 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19080 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19081 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19082 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19083 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19084
19085 ;;
19086 esac
19087 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19088 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19089 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19090 $as_echo_n "(cached) " >&6
19091 else
19092 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19093 fi
19094 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19095 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19096
19097 fi
19098 if test $ac_cv_header_sys_cpustats_h = yes; then
19099 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19100 #define UMAX 1
19101 _ACEOF
19102
19103 fi
19104
19105
19106 fi
19107
19108 if test $ac_have_func = no; then
19109
19110 for ac_header in mach/mach.h
19111 do
19112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19114 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19115 $as_echo_n "checking for $ac_header... " >&6; }
19116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19117 $as_echo_n "(cached) " >&6
19118 fi
19119 ac_res=`eval 'as_val=${'$as_ac_Header'}
19120 $as_echo "$as_val"'`
19121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19122 $as_echo "$ac_res" >&6; }
19123 else
19124 # Is the header compilable?
19125 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19126 $as_echo_n "checking $ac_header usability... " >&6; }
19127 cat >conftest.$ac_ext <<_ACEOF
19128 /* confdefs.h. */
19129 _ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h. */
19133 $ac_includes_default
19134 #include <$ac_header>
19135 _ACEOF
19136 rm -f conftest.$ac_objext
19137 if { (ac_try="$ac_compile"
19138 case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19141 esac
19142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19143 $as_echo "$ac_try_echo") >&5
19144 (eval "$ac_compile") 2>conftest.er1
19145 ac_status=$?
19146 grep -v '^ *+' conftest.er1 >conftest.err
19147 rm -f conftest.er1
19148 cat conftest.err >&5
19149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); } && {
19151 test -z "$ac_c_werror_flag" ||
19152 test ! -s conftest.err
19153 } && test -s conftest.$ac_objext; then
19154 ac_header_compiler=yes
19155 else
19156 $as_echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19158
19159 ac_header_compiler=no
19160 fi
19161
19162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19163 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19164 $as_echo "$ac_header_compiler" >&6; }
19165
19166 # Is the header present?
19167 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19168 $as_echo_n "checking $ac_header presence... " >&6; }
19169 cat >conftest.$ac_ext <<_ACEOF
19170 /* confdefs.h. */
19171 _ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h. */
19175 #include <$ac_header>
19176 _ACEOF
19177 if { (ac_try="$ac_cpp conftest.$ac_ext"
19178 case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19181 esac
19182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19183 $as_echo "$ac_try_echo") >&5
19184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19185 ac_status=$?
19186 grep -v '^ *+' conftest.er1 >conftest.err
19187 rm -f conftest.er1
19188 cat conftest.err >&5
19189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } >/dev/null && {
19191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19192 test ! -s conftest.err
19193 }; then
19194 ac_header_preproc=yes
19195 else
19196 $as_echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.$ac_ext >&5
19198
19199 ac_header_preproc=no
19200 fi
19201
19202 rm -f conftest.err conftest.$ac_ext
19203 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19204 $as_echo "$ac_header_preproc" >&6; }
19205
19206 # So? What about this header?
19207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19208 yes:no: )
19209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19210 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19212 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19213 ac_header_preproc=yes
19214 ;;
19215 no:yes:* )
19216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19217 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19219 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19221 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19223 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19227 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19228
19229 ;;
19230 esac
19231 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19232 $as_echo_n "checking for $ac_header... " >&6; }
19233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19234 $as_echo_n "(cached) " >&6
19235 else
19236 eval "$as_ac_Header=\$ac_header_preproc"
19237 fi
19238 ac_res=`eval 'as_val=${'$as_ac_Header'}
19239 $as_echo "$as_val"'`
19240 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19241 $as_echo "$ac_res" >&6; }
19242
19243 fi
19244 if test `eval 'as_val=${'$as_ac_Header'}
19245 $as_echo "$as_val"'` = yes; then
19246 cat >>confdefs.h <<_ACEOF
19247 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19248 _ACEOF
19249
19250 fi
19251
19252 done
19253
19254 fi
19255
19256
19257 for ac_header in nlist.h
19258 do
19259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19261 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19262 $as_echo_n "checking for $ac_header... " >&6; }
19263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19264 $as_echo_n "(cached) " >&6
19265 fi
19266 ac_res=`eval 'as_val=${'$as_ac_Header'}
19267 $as_echo "$as_val"'`
19268 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19269 $as_echo "$ac_res" >&6; }
19270 else
19271 # Is the header compilable?
19272 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19273 $as_echo_n "checking $ac_header usability... " >&6; }
19274 cat >conftest.$ac_ext <<_ACEOF
19275 /* confdefs.h. */
19276 _ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h. */
19280 $ac_includes_default
19281 #include <$ac_header>
19282 _ACEOF
19283 rm -f conftest.$ac_objext
19284 if { (ac_try="$ac_compile"
19285 case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19288 esac
19289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19290 $as_echo "$ac_try_echo") >&5
19291 (eval "$ac_compile") 2>conftest.er1
19292 ac_status=$?
19293 grep -v '^ *+' conftest.er1 >conftest.err
19294 rm -f conftest.er1
19295 cat conftest.err >&5
19296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } && {
19298 test -z "$ac_c_werror_flag" ||
19299 test ! -s conftest.err
19300 } && test -s conftest.$ac_objext; then
19301 ac_header_compiler=yes
19302 else
19303 $as_echo "$as_me: failed program was:" >&5
19304 sed 's/^/| /' conftest.$ac_ext >&5
19305
19306 ac_header_compiler=no
19307 fi
19308
19309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19310 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19311 $as_echo "$ac_header_compiler" >&6; }
19312
19313 # Is the header present?
19314 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19315 $as_echo_n "checking $ac_header presence... " >&6; }
19316 cat >conftest.$ac_ext <<_ACEOF
19317 /* confdefs.h. */
19318 _ACEOF
19319 cat confdefs.h >>conftest.$ac_ext
19320 cat >>conftest.$ac_ext <<_ACEOF
19321 /* end confdefs.h. */
19322 #include <$ac_header>
19323 _ACEOF
19324 if { (ac_try="$ac_cpp conftest.$ac_ext"
19325 case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19328 esac
19329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19330 $as_echo "$ac_try_echo") >&5
19331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19332 ac_status=$?
19333 grep -v '^ *+' conftest.er1 >conftest.err
19334 rm -f conftest.er1
19335 cat conftest.err >&5
19336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); } >/dev/null && {
19338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19339 test ! -s conftest.err
19340 }; then
19341 ac_header_preproc=yes
19342 else
19343 $as_echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19345
19346 ac_header_preproc=no
19347 fi
19348
19349 rm -f conftest.err conftest.$ac_ext
19350 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19351 $as_echo "$ac_header_preproc" >&6; }
19352
19353 # So? What about this header?
19354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19355 yes:no: )
19356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19357 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19359 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19360 ac_header_preproc=yes
19361 ;;
19362 no:yes:* )
19363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19364 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19366 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19368 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19370 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19372 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19374 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19375
19376 ;;
19377 esac
19378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19379 $as_echo_n "checking for $ac_header... " >&6; }
19380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19381 $as_echo_n "(cached) " >&6
19382 else
19383 eval "$as_ac_Header=\$ac_header_preproc"
19384 fi
19385 ac_res=`eval 'as_val=${'$as_ac_Header'}
19386 $as_echo "$as_val"'`
19387 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19388 $as_echo "$ac_res" >&6; }
19389
19390 fi
19391 if test `eval 'as_val=${'$as_ac_Header'}
19392 $as_echo "$as_val"'` = yes; then
19393 cat >>confdefs.h <<_ACEOF
19394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19395 _ACEOF
19396 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19397 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19398 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19399 $as_echo_n "(cached) " >&6
19400 else
19401 cat >conftest.$ac_ext <<_ACEOF
19402 /* confdefs.h. */
19403 _ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19407 #include <nlist.h>
19408
19409 int
19410 main ()
19411 {
19412 static struct nlist ac_aggr;
19413 if (ac_aggr.n_un.n_name)
19414 return 0;
19415 ;
19416 return 0;
19417 }
19418 _ACEOF
19419 rm -f conftest.$ac_objext
19420 if { (ac_try="$ac_compile"
19421 case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19424 esac
19425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19426 $as_echo "$ac_try_echo") >&5
19427 (eval "$ac_compile") 2>conftest.er1
19428 ac_status=$?
19429 grep -v '^ *+' conftest.er1 >conftest.err
19430 rm -f conftest.er1
19431 cat conftest.err >&5
19432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); } && {
19434 test -z "$ac_c_werror_flag" ||
19435 test ! -s conftest.err
19436 } && test -s conftest.$ac_objext; then
19437 ac_cv_member_struct_nlist_n_un_n_name=yes
19438 else
19439 $as_echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.$ac_ext >&5
19441
19442 cat >conftest.$ac_ext <<_ACEOF
19443 /* confdefs.h. */
19444 _ACEOF
19445 cat confdefs.h >>conftest.$ac_ext
19446 cat >>conftest.$ac_ext <<_ACEOF
19447 /* end confdefs.h. */
19448 #include <nlist.h>
19449
19450 int
19451 main ()
19452 {
19453 static struct nlist ac_aggr;
19454 if (sizeof ac_aggr.n_un.n_name)
19455 return 0;
19456 ;
19457 return 0;
19458 }
19459 _ACEOF
19460 rm -f conftest.$ac_objext
19461 if { (ac_try="$ac_compile"
19462 case "(($ac_try" in
19463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464 *) ac_try_echo=$ac_try;;
19465 esac
19466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19467 $as_echo "$ac_try_echo") >&5
19468 (eval "$ac_compile") 2>conftest.er1
19469 ac_status=$?
19470 grep -v '^ *+' conftest.er1 >conftest.err
19471 rm -f conftest.er1
19472 cat conftest.err >&5
19473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } && {
19475 test -z "$ac_c_werror_flag" ||
19476 test ! -s conftest.err
19477 } && test -s conftest.$ac_objext; then
19478 ac_cv_member_struct_nlist_n_un_n_name=yes
19479 else
19480 $as_echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19482
19483 ac_cv_member_struct_nlist_n_un_n_name=no
19484 fi
19485
19486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19487 fi
19488
19489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19490 fi
19491 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19492 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19493 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19494
19495 cat >>confdefs.h <<_ACEOF
19496 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19497 _ACEOF
19498
19499
19500 cat >>confdefs.h <<\_ACEOF
19501 #define NLIST_NAME_UNION 1
19502 _ACEOF
19503
19504 fi
19505
19506
19507 fi
19508
19509 done
19510
19511 fi
19512 done
19513
19514
19515 # Some definitions of getloadavg require that the program be installed setgid.
19516 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19517 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19518 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19519 $as_echo_n "(cached) " >&6
19520 else
19521 cat >conftest.$ac_ext <<_ACEOF
19522 /* confdefs.h. */
19523 _ACEOF
19524 cat confdefs.h >>conftest.$ac_ext
19525 cat >>conftest.$ac_ext <<_ACEOF
19526 /* end confdefs.h. */
19527 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19528 #ifdef LDAV_PRIVILEGED
19529 Yowza Am I SETGID yet
19530 #endif
19531 _ACEOF
19532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19533 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19534 ac_cv_func_getloadavg_setgid=yes
19535 else
19536 ac_cv_func_getloadavg_setgid=no
19537 fi
19538 rm -f conftest*
19539
19540 fi
19541 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19542 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19543 if test $ac_cv_func_getloadavg_setgid = yes; then
19544 NEED_SETGID=true
19545
19546 cat >>confdefs.h <<\_ACEOF
19547 #define GETLOADAVG_PRIVILEGED 1
19548 _ACEOF
19549
19550 else
19551 NEED_SETGID=false
19552 fi
19553
19554 if test $ac_cv_func_getloadavg_setgid = yes; then
19555 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19556 $as_echo_n "checking group of /dev/kmem... " >&6; }
19557 if test "${ac_cv_group_kmem+set}" = set; then
19558 $as_echo_n "(cached) " >&6
19559 else
19560 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19561 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19562 # If we got an error (system does not support symlinks), try without -L.
19563 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19564 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19565 | sed -ne 's/[ ][ ]*/ /g;
19566 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19567 / /s/.* //;p;'`
19568
19569 fi
19570 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19571 $as_echo "$ac_cv_group_kmem" >&6; }
19572 KMEM_GROUP=$ac_cv_group_kmem
19573 fi
19574 if test "x$ac_save_LIBS" = x; then
19575 GETLOADAVG_LIBS=$LIBS
19576 else
19577 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
19578 fi
19579 LIBS=$ac_save_LIBS
19580
19581
19582
19583 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19584 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19585 if test "${ac_cv_sys_largefile_source+set}" = set; then
19586 $as_echo_n "(cached) " >&6
19587 else
19588 while :; do
19589 cat >conftest.$ac_ext <<_ACEOF
19590 /* confdefs.h. */
19591 _ACEOF
19592 cat confdefs.h >>conftest.$ac_ext
19593 cat >>conftest.$ac_ext <<_ACEOF
19594 /* end confdefs.h. */
19595 #include <sys/types.h> /* for off_t */
19596 #include <stdio.h>
19597 int
19598 main ()
19599 {
19600 int (*fp) (FILE *, off_t, int) = fseeko;
19601 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19602 ;
19603 return 0;
19604 }
19605 _ACEOF
19606 rm -f conftest.$ac_objext conftest$ac_exeext
19607 if { (ac_try="$ac_link"
19608 case "(($ac_try" in
19609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610 *) ac_try_echo=$ac_try;;
19611 esac
19612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19613 $as_echo "$ac_try_echo") >&5
19614 (eval "$ac_link") 2>conftest.er1
19615 ac_status=$?
19616 grep -v '^ *+' conftest.er1 >conftest.err
19617 rm -f conftest.er1
19618 cat conftest.err >&5
19619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } && {
19621 test -z "$ac_c_werror_flag" ||
19622 test ! -s conftest.err
19623 } && test -s conftest$ac_exeext && {
19624 test "$cross_compiling" = yes ||
19625 $as_test_x conftest$ac_exeext
19626 }; then
19627 ac_cv_sys_largefile_source=no; break
19628 else
19629 $as_echo "$as_me: failed program was:" >&5
19630 sed 's/^/| /' conftest.$ac_ext >&5
19631
19632
19633 fi
19634
19635 rm -rf conftest.dSYM
19636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19637 conftest$ac_exeext conftest.$ac_ext
19638 cat >conftest.$ac_ext <<_ACEOF
19639 /* confdefs.h. */
19640 _ACEOF
19641 cat confdefs.h >>conftest.$ac_ext
19642 cat >>conftest.$ac_ext <<_ACEOF
19643 /* end confdefs.h. */
19644 #define _LARGEFILE_SOURCE 1
19645 #include <sys/types.h> /* for off_t */
19646 #include <stdio.h>
19647 int
19648 main ()
19649 {
19650 int (*fp) (FILE *, off_t, int) = fseeko;
19651 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19652 ;
19653 return 0;
19654 }
19655 _ACEOF
19656 rm -f conftest.$ac_objext conftest$ac_exeext
19657 if { (ac_try="$ac_link"
19658 case "(($ac_try" in
19659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660 *) ac_try_echo=$ac_try;;
19661 esac
19662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19663 $as_echo "$ac_try_echo") >&5
19664 (eval "$ac_link") 2>conftest.er1
19665 ac_status=$?
19666 grep -v '^ *+' conftest.er1 >conftest.err
19667 rm -f conftest.er1
19668 cat conftest.err >&5
19669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } && {
19671 test -z "$ac_c_werror_flag" ||
19672 test ! -s conftest.err
19673 } && test -s conftest$ac_exeext && {
19674 test "$cross_compiling" = yes ||
19675 $as_test_x conftest$ac_exeext
19676 }; then
19677 ac_cv_sys_largefile_source=1; break
19678 else
19679 $as_echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.$ac_ext >&5
19681
19682
19683 fi
19684
19685 rm -rf conftest.dSYM
19686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19687 conftest$ac_exeext conftest.$ac_ext
19688 ac_cv_sys_largefile_source=unknown
19689 break
19690 done
19691 fi
19692 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19693 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19694 case $ac_cv_sys_largefile_source in #(
19695 no | unknown) ;;
19696 *)
19697 cat >>confdefs.h <<_ACEOF
19698 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19699 _ACEOF
19700 ;;
19701 esac
19702 rm -rf conftest*
19703
19704 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19705 # in glibc 2.1.3, but that breaks too many other things.
19706 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19707 if test $ac_cv_sys_largefile_source != unknown; then
19708
19709 cat >>confdefs.h <<\_ACEOF
19710 #define HAVE_FSEEKO 1
19711 _ACEOF
19712
19713 fi
19714
19715
19716 # Configure getopt.
19717 # getopt.m4 serial 10
19718
19719 # The getopt module assume you want GNU getopt, with getopt_long etc,
19720 # rather than vanilla POSIX getopt. This means your your code should
19721 # always include <getopt.h> for the getopt prototypes.
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733 # Prerequisites of lib/getopt*.
19734
19735
19736
19737
19738 GETOPT_H=
19739
19740 for ac_header in getopt.h
19741 do
19742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19744 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19745 $as_echo_n "checking for $ac_header... " >&6; }
19746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19747 $as_echo_n "(cached) " >&6
19748 fi
19749 ac_res=`eval 'as_val=${'$as_ac_Header'}
19750 $as_echo "$as_val"'`
19751 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19752 $as_echo "$ac_res" >&6; }
19753 else
19754 # Is the header compilable?
19755 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19756 $as_echo_n "checking $ac_header usability... " >&6; }
19757 cat >conftest.$ac_ext <<_ACEOF
19758 /* confdefs.h. */
19759 _ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h. */
19763 $ac_includes_default
19764 #include <$ac_header>
19765 _ACEOF
19766 rm -f conftest.$ac_objext
19767 if { (ac_try="$ac_compile"
19768 case "(($ac_try" in
19769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770 *) ac_try_echo=$ac_try;;
19771 esac
19772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19773 $as_echo "$ac_try_echo") >&5
19774 (eval "$ac_compile") 2>conftest.er1
19775 ac_status=$?
19776 grep -v '^ *+' conftest.er1 >conftest.err
19777 rm -f conftest.er1
19778 cat conftest.err >&5
19779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } && {
19781 test -z "$ac_c_werror_flag" ||
19782 test ! -s conftest.err
19783 } && test -s conftest.$ac_objext; then
19784 ac_header_compiler=yes
19785 else
19786 $as_echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19788
19789 ac_header_compiler=no
19790 fi
19791
19792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19793 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19794 $as_echo "$ac_header_compiler" >&6; }
19795
19796 # Is the header present?
19797 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19798 $as_echo_n "checking $ac_header presence... " >&6; }
19799 cat >conftest.$ac_ext <<_ACEOF
19800 /* confdefs.h. */
19801 _ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19805 #include <$ac_header>
19806 _ACEOF
19807 if { (ac_try="$ac_cpp conftest.$ac_ext"
19808 case "(($ac_try" in
19809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810 *) ac_try_echo=$ac_try;;
19811 esac
19812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19813 $as_echo "$ac_try_echo") >&5
19814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19815 ac_status=$?
19816 grep -v '^ *+' conftest.er1 >conftest.err
19817 rm -f conftest.er1
19818 cat conftest.err >&5
19819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); } >/dev/null && {
19821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19822 test ! -s conftest.err
19823 }; then
19824 ac_header_preproc=yes
19825 else
19826 $as_echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19828
19829 ac_header_preproc=no
19830 fi
19831
19832 rm -f conftest.err conftest.$ac_ext
19833 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19834 $as_echo "$ac_header_preproc" >&6; }
19835
19836 # So? What about this header?
19837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19838 yes:no: )
19839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19840 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19842 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19843 ac_header_preproc=yes
19844 ;;
19845 no:yes:* )
19846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19847 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19849 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19851 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19853 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19855 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19857 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19858
19859 ;;
19860 esac
19861 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19862 $as_echo_n "checking for $ac_header... " >&6; }
19863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19864 $as_echo_n "(cached) " >&6
19865 else
19866 eval "$as_ac_Header=\$ac_header_preproc"
19867 fi
19868 ac_res=`eval 'as_val=${'$as_ac_Header'}
19869 $as_echo "$as_val"'`
19870 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19871 $as_echo "$ac_res" >&6; }
19872
19873 fi
19874 if test `eval 'as_val=${'$as_ac_Header'}
19875 $as_echo "$as_val"'` = yes; then
19876 cat >>confdefs.h <<_ACEOF
19877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19878 _ACEOF
19879
19880 else
19881 GETOPT_H=getopt.h
19882 fi
19883
19884 done
19885
19886 if test -z "$GETOPT_H"; then
19887
19888 for ac_func in getopt_long_only
19889 do
19890 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19891 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19892 $as_echo_n "checking for $ac_func... " >&6; }
19893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19894 $as_echo_n "(cached) " >&6
19895 else
19896 cat >conftest.$ac_ext <<_ACEOF
19897 /* confdefs.h. */
19898 _ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19904 #define $ac_func innocuous_$ac_func
19905
19906 /* System header to define __stub macros and hopefully few prototypes,
19907 which can conflict with char $ac_func (); below.
19908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19909 <limits.h> exists even on freestanding compilers. */
19910
19911 #ifdef __STDC__
19912 # include <limits.h>
19913 #else
19914 # include <assert.h>
19915 #endif
19916
19917 #undef $ac_func
19918
19919 /* Override any GCC internal prototype to avoid an error.
19920 Use char because int might match the return type of a GCC
19921 builtin and then its argument prototype would still apply. */
19922 #ifdef __cplusplus
19923 extern "C"
19924 #endif
19925 char $ac_func ();
19926 /* The GNU C library defines this for functions which it implements
19927 to always fail with ENOSYS. Some functions are actually named
19928 something starting with __ and the normal name is an alias. */
19929 #if defined __stub_$ac_func || defined __stub___$ac_func
19930 choke me
19931 #endif
19932
19933 int
19934 main ()
19935 {
19936 return $ac_func ();
19937 ;
19938 return 0;
19939 }
19940 _ACEOF
19941 rm -f conftest.$ac_objext conftest$ac_exeext
19942 if { (ac_try="$ac_link"
19943 case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19946 esac
19947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19948 $as_echo "$ac_try_echo") >&5
19949 (eval "$ac_link") 2>conftest.er1
19950 ac_status=$?
19951 grep -v '^ *+' conftest.er1 >conftest.err
19952 rm -f conftest.er1
19953 cat conftest.err >&5
19954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); } && {
19956 test -z "$ac_c_werror_flag" ||
19957 test ! -s conftest.err
19958 } && test -s conftest$ac_exeext && {
19959 test "$cross_compiling" = yes ||
19960 $as_test_x conftest$ac_exeext
19961 }; then
19962 eval "$as_ac_var=yes"
19963 else
19964 $as_echo "$as_me: failed program was:" >&5
19965 sed 's/^/| /' conftest.$ac_ext >&5
19966
19967 eval "$as_ac_var=no"
19968 fi
19969
19970 rm -rf conftest.dSYM
19971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19972 conftest$ac_exeext conftest.$ac_ext
19973 fi
19974 ac_res=`eval 'as_val=${'$as_ac_var'}
19975 $as_echo "$as_val"'`
19976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19977 $as_echo "$ac_res" >&6; }
19978 if test `eval 'as_val=${'$as_ac_var'}
19979 $as_echo "$as_val"'` = yes; then
19980 cat >>confdefs.h <<_ACEOF
19981 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19982 _ACEOF
19983
19984 else
19985 GETOPT_H=getopt.h
19986 fi
19987 done
19988
19989 fi
19990
19991 if test -z "$GETOPT_H"; then
19992 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19993 $as_echo_n "checking whether optreset is declared... " >&6; }
19994 if test "${ac_cv_have_decl_optreset+set}" = set; then
19995 $as_echo_n "(cached) " >&6
19996 else
19997 cat >conftest.$ac_ext <<_ACEOF
19998 /* confdefs.h. */
19999 _ACEOF
20000 cat confdefs.h >>conftest.$ac_ext
20001 cat >>conftest.$ac_ext <<_ACEOF
20002 /* end confdefs.h. */
20003 #include <getopt.h>
20004
20005 int
20006 main ()
20007 {
20008 #ifndef optreset
20009 (void) optreset;
20010 #endif
20011
20012 ;
20013 return 0;
20014 }
20015 _ACEOF
20016 rm -f conftest.$ac_objext
20017 if { (ac_try="$ac_compile"
20018 case "(($ac_try" in
20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020 *) ac_try_echo=$ac_try;;
20021 esac
20022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20023 $as_echo "$ac_try_echo") >&5
20024 (eval "$ac_compile") 2>conftest.er1
20025 ac_status=$?
20026 grep -v '^ *+' conftest.er1 >conftest.err
20027 rm -f conftest.er1
20028 cat conftest.err >&5
20029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } && {
20031 test -z "$ac_c_werror_flag" ||
20032 test ! -s conftest.err
20033 } && test -s conftest.$ac_objext; then
20034 ac_cv_have_decl_optreset=yes
20035 else
20036 $as_echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20038
20039 ac_cv_have_decl_optreset=no
20040 fi
20041
20042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20043 fi
20044 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20045 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20046 if test $ac_cv_have_decl_optreset = yes; then
20047 GETOPT_H=getopt.h
20048 fi
20049
20050 fi
20051
20052 if test -z "$GETOPT_H"; then
20053 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20054 $as_echo_n "checking for working GNU getopt function... " >&6; }
20055 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20056 $as_echo_n "(cached) " >&6
20057 else
20058 if test "$cross_compiling" = yes; then
20059 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20060 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20061 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20062 $as_echo_n "(cached) " >&6
20063 else
20064 cat >conftest.$ac_ext <<_ACEOF
20065 /* confdefs.h. */
20066 _ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h. */
20070 #include <getopt.h>
20071
20072 int
20073 main ()
20074 {
20075 #ifndef getopt_clip
20076 (void) getopt_clip;
20077 #endif
20078
20079 ;
20080 return 0;
20081 }
20082 _ACEOF
20083 rm -f conftest.$ac_objext
20084 if { (ac_try="$ac_compile"
20085 case "(($ac_try" in
20086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20087 *) ac_try_echo=$ac_try;;
20088 esac
20089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20090 $as_echo "$ac_try_echo") >&5
20091 (eval "$ac_compile") 2>conftest.er1
20092 ac_status=$?
20093 grep -v '^ *+' conftest.er1 >conftest.err
20094 rm -f conftest.er1
20095 cat conftest.err >&5
20096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); } && {
20098 test -z "$ac_c_werror_flag" ||
20099 test ! -s conftest.err
20100 } && test -s conftest.$ac_objext; then
20101 ac_cv_have_decl_getopt_clip=yes
20102 else
20103 $as_echo "$as_me: failed program was:" >&5
20104 sed 's/^/| /' conftest.$ac_ext >&5
20105
20106 ac_cv_have_decl_getopt_clip=no
20107 fi
20108
20109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20110 fi
20111 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20112 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20113 if test $ac_cv_have_decl_getopt_clip = yes; then
20114 gl_cv_func_gnu_getopt=no
20115 else
20116 gl_cv_func_gnu_getopt=yes
20117 fi
20118
20119 else
20120 cat >conftest.$ac_ext <<_ACEOF
20121 /* confdefs.h. */
20122 _ACEOF
20123 cat confdefs.h >>conftest.$ac_ext
20124 cat >>conftest.$ac_ext <<_ACEOF
20125 /* end confdefs.h. */
20126 #include <getopt.h>
20127 int
20128 main ()
20129 {
20130
20131 char *myargv[3];
20132 myargv[0] = "conftest";
20133 myargv[1] = "-+";
20134 myargv[2] = 0;
20135 return getopt (2, myargv, "+a") != '?';
20136
20137 ;
20138 return 0;
20139 }
20140 _ACEOF
20141 rm -f conftest$ac_exeext
20142 if { (ac_try="$ac_link"
20143 case "(($ac_try" in
20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20146 esac
20147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20148 $as_echo "$ac_try_echo") >&5
20149 (eval "$ac_link") 2>&5
20150 ac_status=$?
20151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20153 { (case "(($ac_try" in
20154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20155 *) ac_try_echo=$ac_try;;
20156 esac
20157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20158 $as_echo "$ac_try_echo") >&5
20159 (eval "$ac_try") 2>&5
20160 ac_status=$?
20161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; }; then
20163 gl_cv_func_gnu_getopt=yes
20164 else
20165 $as_echo "$as_me: program exited with status $ac_status" >&5
20166 $as_echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20168
20169 ( exit $ac_status )
20170 gl_cv_func_gnu_getopt=no
20171 fi
20172 rm -rf conftest.dSYM
20173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20174 fi
20175
20176
20177 fi
20178 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20179 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20180 if test "$gl_cv_func_gnu_getopt" = "no"; then
20181 GETOPT_H=getopt.h
20182 fi
20183 fi
20184
20185
20186
20187 if test -n "$GETOPT_H"; then
20188
20189
20190 GETOPT_H=getopt.h
20191
20192 cat >>confdefs.h <<\_ACEOF
20193 #define __GETOPT_PREFIX rpl_
20194 _ACEOF
20195
20196
20197
20198 :
20199 GETOPTOBJS='getopt.o getopt1.o'
20200
20201 fi
20202
20203
20204
20205
20206 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20207 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20208 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20209 $as_echo_n "(cached) " >&6
20210 else
20211 # Use it with a single arg.
20212 cat >conftest.$ac_ext <<_ACEOF
20213 /* confdefs.h. */
20214 _ACEOF
20215 cat confdefs.h >>conftest.$ac_ext
20216 cat >>conftest.$ac_ext <<_ACEOF
20217 /* end confdefs.h. */
20218 $ac_includes_default
20219 int
20220 main ()
20221 {
20222 getpgrp (0);
20223 ;
20224 return 0;
20225 }
20226 _ACEOF
20227 rm -f conftest.$ac_objext
20228 if { (ac_try="$ac_compile"
20229 case "(($ac_try" in
20230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231 *) ac_try_echo=$ac_try;;
20232 esac
20233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20234 $as_echo "$ac_try_echo") >&5
20235 (eval "$ac_compile") 2>conftest.er1
20236 ac_status=$?
20237 grep -v '^ *+' conftest.er1 >conftest.err
20238 rm -f conftest.er1
20239 cat conftest.err >&5
20240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } && {
20242 test -z "$ac_c_werror_flag" ||
20243 test ! -s conftest.err
20244 } && test -s conftest.$ac_objext; then
20245 ac_cv_func_getpgrp_void=no
20246 else
20247 $as_echo "$as_me: failed program was:" >&5
20248 sed 's/^/| /' conftest.$ac_ext >&5
20249
20250 ac_cv_func_getpgrp_void=yes
20251 fi
20252
20253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20254
20255 fi
20256 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20257 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20258 if test $ac_cv_func_getpgrp_void = yes; then
20259
20260 cat >>confdefs.h <<\_ACEOF
20261 #define GETPGRP_VOID 1
20262 _ACEOF
20263
20264 fi
20265
20266
20267
20268 for ac_func in strftime
20269 do
20270 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20271 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20272 $as_echo_n "checking for $ac_func... " >&6; }
20273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20274 $as_echo_n "(cached) " >&6
20275 else
20276 cat >conftest.$ac_ext <<_ACEOF
20277 /* confdefs.h. */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20284 #define $ac_func innocuous_$ac_func
20285
20286 /* System header to define __stub macros and hopefully few prototypes,
20287 which can conflict with char $ac_func (); below.
20288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20289 <limits.h> exists even on freestanding compilers. */
20290
20291 #ifdef __STDC__
20292 # include <limits.h>
20293 #else
20294 # include <assert.h>
20295 #endif
20296
20297 #undef $ac_func
20298
20299 /* Override any GCC internal prototype to avoid an error.
20300 Use char because int might match the return type of a GCC
20301 builtin and then its argument prototype would still apply. */
20302 #ifdef __cplusplus
20303 extern "C"
20304 #endif
20305 char $ac_func ();
20306 /* The GNU C library defines this for functions which it implements
20307 to always fail with ENOSYS. Some functions are actually named
20308 something starting with __ and the normal name is an alias. */
20309 #if defined __stub_$ac_func || defined __stub___$ac_func
20310 choke me
20311 #endif
20312
20313 int
20314 main ()
20315 {
20316 return $ac_func ();
20317 ;
20318 return 0;
20319 }
20320 _ACEOF
20321 rm -f conftest.$ac_objext conftest$ac_exeext
20322 if { (ac_try="$ac_link"
20323 case "(($ac_try" in
20324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20325 *) ac_try_echo=$ac_try;;
20326 esac
20327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20328 $as_echo "$ac_try_echo") >&5
20329 (eval "$ac_link") 2>conftest.er1
20330 ac_status=$?
20331 grep -v '^ *+' conftest.er1 >conftest.err
20332 rm -f conftest.er1
20333 cat conftest.err >&5
20334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } && {
20336 test -z "$ac_c_werror_flag" ||
20337 test ! -s conftest.err
20338 } && test -s conftest$ac_exeext && {
20339 test "$cross_compiling" = yes ||
20340 $as_test_x conftest$ac_exeext
20341 }; then
20342 eval "$as_ac_var=yes"
20343 else
20344 $as_echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20346
20347 eval "$as_ac_var=no"
20348 fi
20349
20350 rm -rf conftest.dSYM
20351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20352 conftest$ac_exeext conftest.$ac_ext
20353 fi
20354 ac_res=`eval 'as_val=${'$as_ac_var'}
20355 $as_echo "$as_val"'`
20356 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20357 $as_echo "$ac_res" >&6; }
20358 if test `eval 'as_val=${'$as_ac_var'}
20359 $as_echo "$as_val"'` = yes; then
20360 cat >>confdefs.h <<_ACEOF
20361 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20362 _ACEOF
20363
20364 else
20365 # strftime is in -lintl on SCO UNIX.
20366 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20367 $as_echo_n "checking for strftime in -lintl... " >&6; }
20368 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20369 $as_echo_n "(cached) " >&6
20370 else
20371 ac_check_lib_save_LIBS=$LIBS
20372 LIBS="-lintl $LIBS"
20373 cat >conftest.$ac_ext <<_ACEOF
20374 /* confdefs.h. */
20375 _ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h. */
20379
20380 /* Override any GCC internal prototype to avoid an error.
20381 Use char because int might match the return type of a GCC
20382 builtin and then its argument prototype would still apply. */
20383 #ifdef __cplusplus
20384 extern "C"
20385 #endif
20386 char strftime ();
20387 int
20388 main ()
20389 {
20390 return strftime ();
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 ac_cv_lib_intl_strftime=yes
20417 else
20418 $as_echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20420
20421 ac_cv_lib_intl_strftime=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 LIBS=$ac_check_lib_save_LIBS
20428 fi
20429 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20430 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20431 if test $ac_cv_lib_intl_strftime = yes; then
20432 cat >>confdefs.h <<\_ACEOF
20433 #define HAVE_STRFTIME 1
20434 _ACEOF
20435
20436 LIBS="-lintl $LIBS"
20437 fi
20438
20439 fi
20440 done
20441
20442
20443 # UNIX98 PTYs.
20444
20445 for ac_func in grantpt
20446 do
20447 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20448 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20449 $as_echo_n "checking for $ac_func... " >&6; }
20450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20451 $as_echo_n "(cached) " >&6
20452 else
20453 cat >conftest.$ac_ext <<_ACEOF
20454 /* confdefs.h. */
20455 _ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h. */
20459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20461 #define $ac_func innocuous_$ac_func
20462
20463 /* System header to define __stub macros and hopefully few prototypes,
20464 which can conflict with char $ac_func (); below.
20465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20466 <limits.h> exists even on freestanding compilers. */
20467
20468 #ifdef __STDC__
20469 # include <limits.h>
20470 #else
20471 # include <assert.h>
20472 #endif
20473
20474 #undef $ac_func
20475
20476 /* Override any GCC internal prototype to avoid an error.
20477 Use char because int might match the return type of a GCC
20478 builtin and then its argument prototype would still apply. */
20479 #ifdef __cplusplus
20480 extern "C"
20481 #endif
20482 char $ac_func ();
20483 /* The GNU C library defines this for functions which it implements
20484 to always fail with ENOSYS. Some functions are actually named
20485 something starting with __ and the normal name is an alias. */
20486 #if defined __stub_$ac_func || defined __stub___$ac_func
20487 choke me
20488 #endif
20489
20490 int
20491 main ()
20492 {
20493 return $ac_func ();
20494 ;
20495 return 0;
20496 }
20497 _ACEOF
20498 rm -f conftest.$ac_objext conftest$ac_exeext
20499 if { (ac_try="$ac_link"
20500 case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20503 esac
20504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20505 $as_echo "$ac_try_echo") >&5
20506 (eval "$ac_link") 2>conftest.er1
20507 ac_status=$?
20508 grep -v '^ *+' conftest.er1 >conftest.err
20509 rm -f conftest.er1
20510 cat conftest.err >&5
20511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); } && {
20513 test -z "$ac_c_werror_flag" ||
20514 test ! -s conftest.err
20515 } && test -s conftest$ac_exeext && {
20516 test "$cross_compiling" = yes ||
20517 $as_test_x conftest$ac_exeext
20518 }; then
20519 eval "$as_ac_var=yes"
20520 else
20521 $as_echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20523
20524 eval "$as_ac_var=no"
20525 fi
20526
20527 rm -rf conftest.dSYM
20528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20529 conftest$ac_exeext conftest.$ac_ext
20530 fi
20531 ac_res=`eval 'as_val=${'$as_ac_var'}
20532 $as_echo "$as_val"'`
20533 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20534 $as_echo "$ac_res" >&6; }
20535 if test `eval 'as_val=${'$as_ac_var'}
20536 $as_echo "$as_val"'` = yes; then
20537 cat >>confdefs.h <<_ACEOF
20538 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20539 _ACEOF
20540
20541 fi
20542 done
20543
20544
20545 # PTY-related GNU extensions.
20546
20547 for ac_func in getpt
20548 do
20549 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20550 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20551 $as_echo_n "checking for $ac_func... " >&6; }
20552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20553 $as_echo_n "(cached) " >&6
20554 else
20555 cat >conftest.$ac_ext <<_ACEOF
20556 /* confdefs.h. */
20557 _ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20563 #define $ac_func innocuous_$ac_func
20564
20565 /* System header to define __stub macros and hopefully few prototypes,
20566 which can conflict with char $ac_func (); below.
20567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20568 <limits.h> exists even on freestanding compilers. */
20569
20570 #ifdef __STDC__
20571 # include <limits.h>
20572 #else
20573 # include <assert.h>
20574 #endif
20575
20576 #undef $ac_func
20577
20578 /* Override any GCC internal prototype to avoid an error.
20579 Use char because int might match the return type of a GCC
20580 builtin and then its argument prototype would still apply. */
20581 #ifdef __cplusplus
20582 extern "C"
20583 #endif
20584 char $ac_func ();
20585 /* The GNU C library defines this for functions which it implements
20586 to always fail with ENOSYS. Some functions are actually named
20587 something starting with __ and the normal name is an alias. */
20588 #if defined __stub_$ac_func || defined __stub___$ac_func
20589 choke me
20590 #endif
20591
20592 int
20593 main ()
20594 {
20595 return $ac_func ();
20596 ;
20597 return 0;
20598 }
20599 _ACEOF
20600 rm -f conftest.$ac_objext conftest$ac_exeext
20601 if { (ac_try="$ac_link"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20605 esac
20606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20607 $as_echo "$ac_try_echo") >&5
20608 (eval "$ac_link") 2>conftest.er1
20609 ac_status=$?
20610 grep -v '^ *+' conftest.er1 >conftest.err
20611 rm -f conftest.er1
20612 cat conftest.err >&5
20613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } && {
20615 test -z "$ac_c_werror_flag" ||
20616 test ! -s conftest.err
20617 } && test -s conftest$ac_exeext && {
20618 test "$cross_compiling" = yes ||
20619 $as_test_x conftest$ac_exeext
20620 }; then
20621 eval "$as_ac_var=yes"
20622 else
20623 $as_echo "$as_me: failed program was:" >&5
20624 sed 's/^/| /' conftest.$ac_ext >&5
20625
20626 eval "$as_ac_var=no"
20627 fi
20628
20629 rm -rf conftest.dSYM
20630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20631 conftest$ac_exeext conftest.$ac_ext
20632 fi
20633 ac_res=`eval 'as_val=${'$as_ac_var'}
20634 $as_echo "$as_val"'`
20635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20636 $as_echo "$ac_res" >&6; }
20637 if test `eval 'as_val=${'$as_ac_var'}
20638 $as_echo "$as_val"'` = yes; then
20639 cat >>confdefs.h <<_ACEOF
20640 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20641 _ACEOF
20642
20643 fi
20644 done
20645
20646
20647 # Check this now, so that we will NOT find the above functions in ncurses.
20648 # That is because we have not set up to link ncurses in lib-src.
20649 # It's better to believe a function is not available
20650 # than to expect to find it in ncurses.
20651
20652 { $as_echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20653 $as_echo_n "checking for tparm in -lncurses... " >&6; }
20654 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20655 $as_echo_n "(cached) " >&6
20656 else
20657 ac_check_lib_save_LIBS=$LIBS
20658 LIBS="-lncurses $LIBS"
20659 cat >conftest.$ac_ext <<_ACEOF
20660 /* confdefs.h. */
20661 _ACEOF
20662 cat confdefs.h >>conftest.$ac_ext
20663 cat >>conftest.$ac_ext <<_ACEOF
20664 /* end confdefs.h. */
20665
20666 /* Override any GCC internal prototype to avoid an error.
20667 Use char because int might match the return type of a GCC
20668 builtin and then its argument prototype would still apply. */
20669 #ifdef __cplusplus
20670 extern "C"
20671 #endif
20672 char tparm ();
20673 int
20674 main ()
20675 {
20676 return tparm ();
20677 ;
20678 return 0;
20679 }
20680 _ACEOF
20681 rm -f conftest.$ac_objext conftest$ac_exeext
20682 if { (ac_try="$ac_link"
20683 case "(($ac_try" in
20684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685 *) ac_try_echo=$ac_try;;
20686 esac
20687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20688 $as_echo "$ac_try_echo") >&5
20689 (eval "$ac_link") 2>conftest.er1
20690 ac_status=$?
20691 grep -v '^ *+' conftest.er1 >conftest.err
20692 rm -f conftest.er1
20693 cat conftest.err >&5
20694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); } && {
20696 test -z "$ac_c_werror_flag" ||
20697 test ! -s conftest.err
20698 } && test -s conftest$ac_exeext && {
20699 test "$cross_compiling" = yes ||
20700 $as_test_x conftest$ac_exeext
20701 }; then
20702 ac_cv_lib_ncurses_tparm=yes
20703 else
20704 $as_echo "$as_me: failed program was:" >&5
20705 sed 's/^/| /' conftest.$ac_ext >&5
20706
20707 ac_cv_lib_ncurses_tparm=no
20708 fi
20709
20710 rm -rf conftest.dSYM
20711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20712 conftest$ac_exeext conftest.$ac_ext
20713 LIBS=$ac_check_lib_save_LIBS
20714 fi
20715 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20716 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
20717 if test $ac_cv_lib_ncurses_tparm = yes; then
20718 cat >>confdefs.h <<_ACEOF
20719 #define HAVE_LIBNCURSES 1
20720 _ACEOF
20721
20722 LIBS="-lncurses $LIBS"
20723
20724 fi
20725
20726
20727 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20728
20729 resolv=no
20730 cat >conftest.$ac_ext <<_ACEOF
20731 /* confdefs.h. */
20732 _ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h. */
20736 #include <netinet/in.h>
20737 #include <arpa/nameser.h>
20738 #include <resolv.h>
20739 int
20740 main ()
20741 {
20742 return res_init();
20743 ;
20744 return 0;
20745 }
20746 _ACEOF
20747 rm -f conftest.$ac_objext conftest$ac_exeext
20748 if { (ac_try="$ac_link"
20749 case "(($ac_try" in
20750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751 *) ac_try_echo=$ac_try;;
20752 esac
20753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20754 $as_echo "$ac_try_echo") >&5
20755 (eval "$ac_link") 2>conftest.er1
20756 ac_status=$?
20757 grep -v '^ *+' conftest.er1 >conftest.err
20758 rm -f conftest.er1
20759 cat conftest.err >&5
20760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); } && {
20762 test -z "$ac_c_werror_flag" ||
20763 test ! -s conftest.err
20764 } && test -s conftest$ac_exeext && {
20765 test "$cross_compiling" = yes ||
20766 $as_test_x conftest$ac_exeext
20767 }; then
20768 have_res_init=yes
20769 else
20770 $as_echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20772
20773 have_res_init=no
20774 fi
20775
20776 rm -rf conftest.dSYM
20777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20778 conftest$ac_exeext conftest.$ac_ext
20779 if test "$have_res_init" = no; then
20780 OLIBS="$LIBS"
20781 LIBS="$LIBS -lresolv"
20782 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20783 $as_echo_n "checking for res_init with -lresolv... " >&6; }
20784 cat >conftest.$ac_ext <<_ACEOF
20785 /* confdefs.h. */
20786 _ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h. */
20790 #include <netinet/in.h>
20791 #include <arpa/nameser.h>
20792 #include <resolv.h>
20793 int
20794 main ()
20795 {
20796 return res_init();
20797 ;
20798 return 0;
20799 }
20800 _ACEOF
20801 rm -f conftest.$ac_objext conftest$ac_exeext
20802 if { (ac_try="$ac_link"
20803 case "(($ac_try" in
20804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805 *) ac_try_echo=$ac_try;;
20806 esac
20807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20808 $as_echo "$ac_try_echo") >&5
20809 (eval "$ac_link") 2>conftest.er1
20810 ac_status=$?
20811 grep -v '^ *+' conftest.er1 >conftest.err
20812 rm -f conftest.er1
20813 cat conftest.err >&5
20814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } && {
20816 test -z "$ac_c_werror_flag" ||
20817 test ! -s conftest.err
20818 } && test -s conftest$ac_exeext && {
20819 test "$cross_compiling" = yes ||
20820 $as_test_x conftest$ac_exeext
20821 }; then
20822 have_res_init=yes
20823 else
20824 $as_echo "$as_me: failed program was:" >&5
20825 sed 's/^/| /' conftest.$ac_ext >&5
20826
20827 have_res_init=no
20828 fi
20829
20830 rm -rf conftest.dSYM
20831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20832 conftest$ac_exeext conftest.$ac_ext
20833 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
20834 $as_echo "$have_res_init" >&6; }
20835 if test "$have_res_init" = yes ; then
20836 resolv=yes
20837 fi
20838 LIBS="$OLIBS"
20839 fi
20840
20841 if test "$have_res_init" = yes; then
20842
20843 cat >>confdefs.h <<\_ACEOF
20844 #define HAVE_RES_INIT 1
20845 _ACEOF
20846
20847 fi
20848
20849 # Do we need the Hesiod library to provide the support routines?
20850 if test "$with_hesiod" != no ; then
20851 # Don't set $LIBS here -- see comments above.
20852 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
20853 $as_echo_n "checking for res_send... " >&6; }
20854 if test "${ac_cv_func_res_send+set}" = set; then
20855 $as_echo_n "(cached) " >&6
20856 else
20857 cat >conftest.$ac_ext <<_ACEOF
20858 /* confdefs.h. */
20859 _ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h. */
20863 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20865 #define res_send innocuous_res_send
20866
20867 /* System header to define __stub macros and hopefully few prototypes,
20868 which can conflict with char res_send (); below.
20869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20870 <limits.h> exists even on freestanding compilers. */
20871
20872 #ifdef __STDC__
20873 # include <limits.h>
20874 #else
20875 # include <assert.h>
20876 #endif
20877
20878 #undef res_send
20879
20880 /* Override any GCC internal prototype to avoid an error.
20881 Use char because int might match the return type of a GCC
20882 builtin and then its argument prototype would still apply. */
20883 #ifdef __cplusplus
20884 extern "C"
20885 #endif
20886 char res_send ();
20887 /* The GNU C library defines this for functions which it implements
20888 to always fail with ENOSYS. Some functions are actually named
20889 something starting with __ and the normal name is an alias. */
20890 #if defined __stub_res_send || defined __stub___res_send
20891 choke me
20892 #endif
20893
20894 int
20895 main ()
20896 {
20897 return res_send ();
20898 ;
20899 return 0;
20900 }
20901 _ACEOF
20902 rm -f conftest.$ac_objext conftest$ac_exeext
20903 if { (ac_try="$ac_link"
20904 case "(($ac_try" in
20905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20906 *) ac_try_echo=$ac_try;;
20907 esac
20908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20909 $as_echo "$ac_try_echo") >&5
20910 (eval "$ac_link") 2>conftest.er1
20911 ac_status=$?
20912 grep -v '^ *+' conftest.er1 >conftest.err
20913 rm -f conftest.er1
20914 cat conftest.err >&5
20915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); } && {
20917 test -z "$ac_c_werror_flag" ||
20918 test ! -s conftest.err
20919 } && test -s conftest$ac_exeext && {
20920 test "$cross_compiling" = yes ||
20921 $as_test_x conftest$ac_exeext
20922 }; then
20923 ac_cv_func_res_send=yes
20924 else
20925 $as_echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.$ac_ext >&5
20927
20928 ac_cv_func_res_send=no
20929 fi
20930
20931 rm -rf conftest.dSYM
20932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20933 conftest$ac_exeext conftest.$ac_ext
20934 fi
20935 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20936 $as_echo "$ac_cv_func_res_send" >&6; }
20937 if test $ac_cv_func_res_send = yes; then
20938 :
20939 else
20940 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
20941 $as_echo_n "checking for __res_send... " >&6; }
20942 if test "${ac_cv_func___res_send+set}" = set; then
20943 $as_echo_n "(cached) " >&6
20944 else
20945 cat >conftest.$ac_ext <<_ACEOF
20946 /* confdefs.h. */
20947 _ACEOF
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h. */
20951 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20953 #define __res_send innocuous___res_send
20954
20955 /* System header to define __stub macros and hopefully few prototypes,
20956 which can conflict with char __res_send (); below.
20957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20958 <limits.h> exists even on freestanding compilers. */
20959
20960 #ifdef __STDC__
20961 # include <limits.h>
20962 #else
20963 # include <assert.h>
20964 #endif
20965
20966 #undef __res_send
20967
20968 /* Override any GCC internal prototype to avoid an error.
20969 Use char because int might match the return type of a GCC
20970 builtin and then its argument prototype would still apply. */
20971 #ifdef __cplusplus
20972 extern "C"
20973 #endif
20974 char __res_send ();
20975 /* The GNU C library defines this for functions which it implements
20976 to always fail with ENOSYS. Some functions are actually named
20977 something starting with __ and the normal name is an alias. */
20978 #if defined __stub___res_send || defined __stub_____res_send
20979 choke me
20980 #endif
20981
20982 int
20983 main ()
20984 {
20985 return __res_send ();
20986 ;
20987 return 0;
20988 }
20989 _ACEOF
20990 rm -f conftest.$ac_objext conftest$ac_exeext
20991 if { (ac_try="$ac_link"
20992 case "(($ac_try" in
20993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20994 *) ac_try_echo=$ac_try;;
20995 esac
20996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20997 $as_echo "$ac_try_echo") >&5
20998 (eval "$ac_link") 2>conftest.er1
20999 ac_status=$?
21000 grep -v '^ *+' conftest.er1 >conftest.err
21001 rm -f conftest.er1
21002 cat conftest.err >&5
21003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); } && {
21005 test -z "$ac_c_werror_flag" ||
21006 test ! -s conftest.err
21007 } && test -s conftest$ac_exeext && {
21008 test "$cross_compiling" = yes ||
21009 $as_test_x conftest$ac_exeext
21010 }; then
21011 ac_cv_func___res_send=yes
21012 else
21013 $as_echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.$ac_ext >&5
21015
21016 ac_cv_func___res_send=no
21017 fi
21018
21019 rm -rf conftest.dSYM
21020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21021 conftest$ac_exeext conftest.$ac_ext
21022 fi
21023 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21024 $as_echo "$ac_cv_func___res_send" >&6; }
21025 if test $ac_cv_func___res_send = yes; then
21026 :
21027 else
21028 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21029 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21030 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21031 $as_echo_n "(cached) " >&6
21032 else
21033 ac_check_lib_save_LIBS=$LIBS
21034 LIBS="-lresolv $LIBS"
21035 cat >conftest.$ac_ext <<_ACEOF
21036 /* confdefs.h. */
21037 _ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21041
21042 /* Override any GCC internal prototype to avoid an error.
21043 Use char because int might match the return type of a GCC
21044 builtin and then its argument prototype would still apply. */
21045 #ifdef __cplusplus
21046 extern "C"
21047 #endif
21048 char res_send ();
21049 int
21050 main ()
21051 {
21052 return res_send ();
21053 ;
21054 return 0;
21055 }
21056 _ACEOF
21057 rm -f conftest.$ac_objext conftest$ac_exeext
21058 if { (ac_try="$ac_link"
21059 case "(($ac_try" in
21060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061 *) ac_try_echo=$ac_try;;
21062 esac
21063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21064 $as_echo "$ac_try_echo") >&5
21065 (eval "$ac_link") 2>conftest.er1
21066 ac_status=$?
21067 grep -v '^ *+' conftest.er1 >conftest.err
21068 rm -f conftest.er1
21069 cat conftest.err >&5
21070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } && {
21072 test -z "$ac_c_werror_flag" ||
21073 test ! -s conftest.err
21074 } && test -s conftest$ac_exeext && {
21075 test "$cross_compiling" = yes ||
21076 $as_test_x conftest$ac_exeext
21077 }; then
21078 ac_cv_lib_resolv_res_send=yes
21079 else
21080 $as_echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21082
21083 ac_cv_lib_resolv_res_send=no
21084 fi
21085
21086 rm -rf conftest.dSYM
21087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21088 conftest$ac_exeext conftest.$ac_ext
21089 LIBS=$ac_check_lib_save_LIBS
21090 fi
21091 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21092 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21093 if test $ac_cv_lib_resolv_res_send = yes; then
21094 resolv=yes
21095 else
21096 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21097 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21098 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21099 $as_echo_n "(cached) " >&6
21100 else
21101 ac_check_lib_save_LIBS=$LIBS
21102 LIBS="-lresolv $LIBS"
21103 cat >conftest.$ac_ext <<_ACEOF
21104 /* confdefs.h. */
21105 _ACEOF
21106 cat confdefs.h >>conftest.$ac_ext
21107 cat >>conftest.$ac_ext <<_ACEOF
21108 /* end confdefs.h. */
21109
21110 /* Override any GCC internal prototype to avoid an error.
21111 Use char because int might match the return type of a GCC
21112 builtin and then its argument prototype would still apply. */
21113 #ifdef __cplusplus
21114 extern "C"
21115 #endif
21116 char __res_send ();
21117 int
21118 main ()
21119 {
21120 return __res_send ();
21121 ;
21122 return 0;
21123 }
21124 _ACEOF
21125 rm -f conftest.$ac_objext conftest$ac_exeext
21126 if { (ac_try="$ac_link"
21127 case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21130 esac
21131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21132 $as_echo "$ac_try_echo") >&5
21133 (eval "$ac_link") 2>conftest.er1
21134 ac_status=$?
21135 grep -v '^ *+' conftest.er1 >conftest.err
21136 rm -f conftest.er1
21137 cat conftest.err >&5
21138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } && {
21140 test -z "$ac_c_werror_flag" ||
21141 test ! -s conftest.err
21142 } && test -s conftest$ac_exeext && {
21143 test "$cross_compiling" = yes ||
21144 $as_test_x conftest$ac_exeext
21145 }; then
21146 ac_cv_lib_resolv___res_send=yes
21147 else
21148 $as_echo "$as_me: failed program was:" >&5
21149 sed 's/^/| /' conftest.$ac_ext >&5
21150
21151 ac_cv_lib_resolv___res_send=no
21152 fi
21153
21154 rm -rf conftest.dSYM
21155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21156 conftest$ac_exeext conftest.$ac_ext
21157 LIBS=$ac_check_lib_save_LIBS
21158 fi
21159 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21160 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21161 if test $ac_cv_lib_resolv___res_send = yes; then
21162 resolv=yes
21163 fi
21164
21165 fi
21166
21167 fi
21168
21169 fi
21170
21171 if test "$resolv" = yes ; then
21172 RESOLVLIB=-lresolv
21173 else
21174 RESOLVLIB=
21175 fi
21176 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21177 $as_echo_n "checking for hes_getmailhost... " >&6; }
21178 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21179 $as_echo_n "(cached) " >&6
21180 else
21181 cat >conftest.$ac_ext <<_ACEOF
21182 /* confdefs.h. */
21183 _ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21189 #define hes_getmailhost innocuous_hes_getmailhost
21190
21191 /* System header to define __stub macros and hopefully few prototypes,
21192 which can conflict with char hes_getmailhost (); below.
21193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21194 <limits.h> exists even on freestanding compilers. */
21195
21196 #ifdef __STDC__
21197 # include <limits.h>
21198 #else
21199 # include <assert.h>
21200 #endif
21201
21202 #undef hes_getmailhost
21203
21204 /* Override any GCC internal prototype to avoid an error.
21205 Use char because int might match the return type of a GCC
21206 builtin and then its argument prototype would still apply. */
21207 #ifdef __cplusplus
21208 extern "C"
21209 #endif
21210 char hes_getmailhost ();
21211 /* The GNU C library defines this for functions which it implements
21212 to always fail with ENOSYS. Some functions are actually named
21213 something starting with __ and the normal name is an alias. */
21214 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21215 choke me
21216 #endif
21217
21218 int
21219 main ()
21220 {
21221 return hes_getmailhost ();
21222 ;
21223 return 0;
21224 }
21225 _ACEOF
21226 rm -f conftest.$ac_objext conftest$ac_exeext
21227 if { (ac_try="$ac_link"
21228 case "(($ac_try" in
21229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230 *) ac_try_echo=$ac_try;;
21231 esac
21232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21233 $as_echo "$ac_try_echo") >&5
21234 (eval "$ac_link") 2>conftest.er1
21235 ac_status=$?
21236 grep -v '^ *+' conftest.er1 >conftest.err
21237 rm -f conftest.er1
21238 cat conftest.err >&5
21239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); } && {
21241 test -z "$ac_c_werror_flag" ||
21242 test ! -s conftest.err
21243 } && test -s conftest$ac_exeext && {
21244 test "$cross_compiling" = yes ||
21245 $as_test_x conftest$ac_exeext
21246 }; then
21247 ac_cv_func_hes_getmailhost=yes
21248 else
21249 $as_echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.$ac_ext >&5
21251
21252 ac_cv_func_hes_getmailhost=no
21253 fi
21254
21255 rm -rf conftest.dSYM
21256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21257 conftest$ac_exeext conftest.$ac_ext
21258 fi
21259 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21260 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21261 if test $ac_cv_func_hes_getmailhost = yes; then
21262 :
21263 else
21264 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21265 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21266 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21267 $as_echo_n "(cached) " >&6
21268 else
21269 ac_check_lib_save_LIBS=$LIBS
21270 LIBS="-lhesiod $RESOLVLIB $LIBS"
21271 cat >conftest.$ac_ext <<_ACEOF
21272 /* confdefs.h. */
21273 _ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21277
21278 /* Override any GCC internal prototype to avoid an error.
21279 Use char because int might match the return type of a GCC
21280 builtin and then its argument prototype would still apply. */
21281 #ifdef __cplusplus
21282 extern "C"
21283 #endif
21284 char hes_getmailhost ();
21285 int
21286 main ()
21287 {
21288 return hes_getmailhost ();
21289 ;
21290 return 0;
21291 }
21292 _ACEOF
21293 rm -f conftest.$ac_objext conftest$ac_exeext
21294 if { (ac_try="$ac_link"
21295 case "(($ac_try" in
21296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21297 *) ac_try_echo=$ac_try;;
21298 esac
21299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21300 $as_echo "$ac_try_echo") >&5
21301 (eval "$ac_link") 2>conftest.er1
21302 ac_status=$?
21303 grep -v '^ *+' conftest.er1 >conftest.err
21304 rm -f conftest.er1
21305 cat conftest.err >&5
21306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } && {
21308 test -z "$ac_c_werror_flag" ||
21309 test ! -s conftest.err
21310 } && test -s conftest$ac_exeext && {
21311 test "$cross_compiling" = yes ||
21312 $as_test_x conftest$ac_exeext
21313 }; then
21314 ac_cv_lib_hesiod_hes_getmailhost=yes
21315 else
21316 $as_echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21318
21319 ac_cv_lib_hesiod_hes_getmailhost=no
21320 fi
21321
21322 rm -rf conftest.dSYM
21323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21324 conftest$ac_exeext conftest.$ac_ext
21325 LIBS=$ac_check_lib_save_LIBS
21326 fi
21327 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21328 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21329 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21330
21331 cat >>confdefs.h <<\_ACEOF
21332 #define HAVE_LIBHESIOD 1
21333 _ACEOF
21334
21335 else
21336 :
21337 fi
21338
21339 fi
21340
21341 fi
21342
21343 # Do we need libresolv (due to res_init or Hesiod)?
21344 if test "$resolv" = yes ; then
21345
21346 cat >>confdefs.h <<\_ACEOF
21347 #define HAVE_LIBRESOLV 1
21348 _ACEOF
21349
21350 fi
21351
21352 # These tell us which Kerberos-related libraries to use.
21353 if test "${with_kerberos}" != no; then
21354
21355 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21356 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21357 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21358 $as_echo_n "(cached) " >&6
21359 else
21360 ac_check_lib_save_LIBS=$LIBS
21361 LIBS="-lcom_err $LIBS"
21362 cat >conftest.$ac_ext <<_ACEOF
21363 /* confdefs.h. */
21364 _ACEOF
21365 cat confdefs.h >>conftest.$ac_ext
21366 cat >>conftest.$ac_ext <<_ACEOF
21367 /* end confdefs.h. */
21368
21369 /* Override any GCC internal prototype to avoid an error.
21370 Use char because int might match the return type of a GCC
21371 builtin and then its argument prototype would still apply. */
21372 #ifdef __cplusplus
21373 extern "C"
21374 #endif
21375 char com_err ();
21376 int
21377 main ()
21378 {
21379 return com_err ();
21380 ;
21381 return 0;
21382 }
21383 _ACEOF
21384 rm -f conftest.$ac_objext conftest$ac_exeext
21385 if { (ac_try="$ac_link"
21386 case "(($ac_try" in
21387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21388 *) ac_try_echo=$ac_try;;
21389 esac
21390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21391 $as_echo "$ac_try_echo") >&5
21392 (eval "$ac_link") 2>conftest.er1
21393 ac_status=$?
21394 grep -v '^ *+' conftest.er1 >conftest.err
21395 rm -f conftest.er1
21396 cat conftest.err >&5
21397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } && {
21399 test -z "$ac_c_werror_flag" ||
21400 test ! -s conftest.err
21401 } && test -s conftest$ac_exeext && {
21402 test "$cross_compiling" = yes ||
21403 $as_test_x conftest$ac_exeext
21404 }; then
21405 ac_cv_lib_com_err_com_err=yes
21406 else
21407 $as_echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21409
21410 ac_cv_lib_com_err_com_err=no
21411 fi
21412
21413 rm -rf conftest.dSYM
21414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21415 conftest$ac_exeext conftest.$ac_ext
21416 LIBS=$ac_check_lib_save_LIBS
21417 fi
21418 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21419 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21420 if test $ac_cv_lib_com_err_com_err = yes; then
21421 cat >>confdefs.h <<_ACEOF
21422 #define HAVE_LIBCOM_ERR 1
21423 _ACEOF
21424
21425 LIBS="-lcom_err $LIBS"
21426
21427 fi
21428
21429
21430 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21431 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21432 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21433 $as_echo_n "(cached) " >&6
21434 else
21435 ac_check_lib_save_LIBS=$LIBS
21436 LIBS="-lk5crypto $LIBS"
21437 cat >conftest.$ac_ext <<_ACEOF
21438 /* confdefs.h. */
21439 _ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21443
21444 /* Override any GCC internal prototype to avoid an error.
21445 Use char because int might match the return type of a GCC
21446 builtin and then its argument prototype would still apply. */
21447 #ifdef __cplusplus
21448 extern "C"
21449 #endif
21450 char mit_des_cbc_encrypt ();
21451 int
21452 main ()
21453 {
21454 return mit_des_cbc_encrypt ();
21455 ;
21456 return 0;
21457 }
21458 _ACEOF
21459 rm -f conftest.$ac_objext conftest$ac_exeext
21460 if { (ac_try="$ac_link"
21461 case "(($ac_try" in
21462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21463 *) ac_try_echo=$ac_try;;
21464 esac
21465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21466 $as_echo "$ac_try_echo") >&5
21467 (eval "$ac_link") 2>conftest.er1
21468 ac_status=$?
21469 grep -v '^ *+' conftest.er1 >conftest.err
21470 rm -f conftest.er1
21471 cat conftest.err >&5
21472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); } && {
21474 test -z "$ac_c_werror_flag" ||
21475 test ! -s conftest.err
21476 } && test -s conftest$ac_exeext && {
21477 test "$cross_compiling" = yes ||
21478 $as_test_x conftest$ac_exeext
21479 }; then
21480 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21481 else
21482 $as_echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21484
21485 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21486 fi
21487
21488 rm -rf conftest.dSYM
21489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21490 conftest$ac_exeext conftest.$ac_ext
21491 LIBS=$ac_check_lib_save_LIBS
21492 fi
21493 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21494 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21495 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21496 cat >>confdefs.h <<_ACEOF
21497 #define HAVE_LIBK5CRYPTO 1
21498 _ACEOF
21499
21500 LIBS="-lk5crypto $LIBS"
21501
21502 fi
21503
21504
21505 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21506 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21507 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21508 $as_echo_n "(cached) " >&6
21509 else
21510 ac_check_lib_save_LIBS=$LIBS
21511 LIBS="-lcrypto $LIBS"
21512 cat >conftest.$ac_ext <<_ACEOF
21513 /* confdefs.h. */
21514 _ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21518
21519 /* Override any GCC internal prototype to avoid an error.
21520 Use char because int might match the return type of a GCC
21521 builtin and then its argument prototype would still apply. */
21522 #ifdef __cplusplus
21523 extern "C"
21524 #endif
21525 char mit_des_cbc_encrypt ();
21526 int
21527 main ()
21528 {
21529 return mit_des_cbc_encrypt ();
21530 ;
21531 return 0;
21532 }
21533 _ACEOF
21534 rm -f conftest.$ac_objext conftest$ac_exeext
21535 if { (ac_try="$ac_link"
21536 case "(($ac_try" in
21537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21538 *) ac_try_echo=$ac_try;;
21539 esac
21540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21541 $as_echo "$ac_try_echo") >&5
21542 (eval "$ac_link") 2>conftest.er1
21543 ac_status=$?
21544 grep -v '^ *+' conftest.er1 >conftest.err
21545 rm -f conftest.er1
21546 cat conftest.err >&5
21547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } && {
21549 test -z "$ac_c_werror_flag" ||
21550 test ! -s conftest.err
21551 } && test -s conftest$ac_exeext && {
21552 test "$cross_compiling" = yes ||
21553 $as_test_x conftest$ac_exeext
21554 }; then
21555 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21556 else
21557 $as_echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21559
21560 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21561 fi
21562
21563 rm -rf conftest.dSYM
21564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21565 conftest$ac_exeext conftest.$ac_ext
21566 LIBS=$ac_check_lib_save_LIBS
21567 fi
21568 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21569 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21570 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21571 cat >>confdefs.h <<_ACEOF
21572 #define HAVE_LIBCRYPTO 1
21573 _ACEOF
21574
21575 LIBS="-lcrypto $LIBS"
21576
21577 fi
21578
21579
21580 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
21581 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21582 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21583 $as_echo_n "(cached) " >&6
21584 else
21585 ac_check_lib_save_LIBS=$LIBS
21586 LIBS="-lkrb5 $LIBS"
21587 cat >conftest.$ac_ext <<_ACEOF
21588 /* confdefs.h. */
21589 _ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h. */
21593
21594 /* Override any GCC internal prototype to avoid an error.
21595 Use char because int might match the return type of a GCC
21596 builtin and then its argument prototype would still apply. */
21597 #ifdef __cplusplus
21598 extern "C"
21599 #endif
21600 char krb5_init_context ();
21601 int
21602 main ()
21603 {
21604 return krb5_init_context ();
21605 ;
21606 return 0;
21607 }
21608 _ACEOF
21609 rm -f conftest.$ac_objext conftest$ac_exeext
21610 if { (ac_try="$ac_link"
21611 case "(($ac_try" in
21612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21614 esac
21615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21616 $as_echo "$ac_try_echo") >&5
21617 (eval "$ac_link") 2>conftest.er1
21618 ac_status=$?
21619 grep -v '^ *+' conftest.er1 >conftest.err
21620 rm -f conftest.er1
21621 cat conftest.err >&5
21622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); } && {
21624 test -z "$ac_c_werror_flag" ||
21625 test ! -s conftest.err
21626 } && test -s conftest$ac_exeext && {
21627 test "$cross_compiling" = yes ||
21628 $as_test_x conftest$ac_exeext
21629 }; then
21630 ac_cv_lib_krb5_krb5_init_context=yes
21631 else
21632 $as_echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21634
21635 ac_cv_lib_krb5_krb5_init_context=no
21636 fi
21637
21638 rm -rf conftest.dSYM
21639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21640 conftest$ac_exeext conftest.$ac_ext
21641 LIBS=$ac_check_lib_save_LIBS
21642 fi
21643 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21644 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21645 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21646 cat >>confdefs.h <<_ACEOF
21647 #define HAVE_LIBKRB5 1
21648 _ACEOF
21649
21650 LIBS="-lkrb5 $LIBS"
21651
21652 fi
21653
21654 if test "${with_kerberos5}" = no; then
21655
21656 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
21657 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21658 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21659 $as_echo_n "(cached) " >&6
21660 else
21661 ac_check_lib_save_LIBS=$LIBS
21662 LIBS="-ldes425 $LIBS"
21663 cat >conftest.$ac_ext <<_ACEOF
21664 /* confdefs.h. */
21665 _ACEOF
21666 cat confdefs.h >>conftest.$ac_ext
21667 cat >>conftest.$ac_ext <<_ACEOF
21668 /* end confdefs.h. */
21669
21670 /* Override any GCC internal prototype to avoid an error.
21671 Use char because int might match the return type of a GCC
21672 builtin and then its argument prototype would still apply. */
21673 #ifdef __cplusplus
21674 extern "C"
21675 #endif
21676 char des_cbc_encrypt ();
21677 int
21678 main ()
21679 {
21680 return des_cbc_encrypt ();
21681 ;
21682 return 0;
21683 }
21684 _ACEOF
21685 rm -f conftest.$ac_objext conftest$ac_exeext
21686 if { (ac_try="$ac_link"
21687 case "(($ac_try" in
21688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21689 *) ac_try_echo=$ac_try;;
21690 esac
21691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21692 $as_echo "$ac_try_echo") >&5
21693 (eval "$ac_link") 2>conftest.er1
21694 ac_status=$?
21695 grep -v '^ *+' conftest.er1 >conftest.err
21696 rm -f conftest.er1
21697 cat conftest.err >&5
21698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); } && {
21700 test -z "$ac_c_werror_flag" ||
21701 test ! -s conftest.err
21702 } && test -s conftest$ac_exeext && {
21703 test "$cross_compiling" = yes ||
21704 $as_test_x conftest$ac_exeext
21705 }; then
21706 ac_cv_lib_des425_des_cbc_encrypt=yes
21707 else
21708 $as_echo "$as_me: failed program was:" >&5
21709 sed 's/^/| /' conftest.$ac_ext >&5
21710
21711 ac_cv_lib_des425_des_cbc_encrypt=no
21712 fi
21713
21714 rm -rf conftest.dSYM
21715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21716 conftest$ac_exeext conftest.$ac_ext
21717 LIBS=$ac_check_lib_save_LIBS
21718 fi
21719 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21720 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21721 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21722 cat >>confdefs.h <<_ACEOF
21723 #define HAVE_LIBDES425 1
21724 _ACEOF
21725
21726 LIBS="-ldes425 $LIBS"
21727
21728 else
21729
21730 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21731 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21732 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21733 $as_echo_n "(cached) " >&6
21734 else
21735 ac_check_lib_save_LIBS=$LIBS
21736 LIBS="-ldes $LIBS"
21737 cat >conftest.$ac_ext <<_ACEOF
21738 /* confdefs.h. */
21739 _ACEOF
21740 cat confdefs.h >>conftest.$ac_ext
21741 cat >>conftest.$ac_ext <<_ACEOF
21742 /* end confdefs.h. */
21743
21744 /* Override any GCC internal prototype to avoid an error.
21745 Use char because int might match the return type of a GCC
21746 builtin and then its argument prototype would still apply. */
21747 #ifdef __cplusplus
21748 extern "C"
21749 #endif
21750 char des_cbc_encrypt ();
21751 int
21752 main ()
21753 {
21754 return des_cbc_encrypt ();
21755 ;
21756 return 0;
21757 }
21758 _ACEOF
21759 rm -f conftest.$ac_objext conftest$ac_exeext
21760 if { (ac_try="$ac_link"
21761 case "(($ac_try" in
21762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21763 *) ac_try_echo=$ac_try;;
21764 esac
21765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21766 $as_echo "$ac_try_echo") >&5
21767 (eval "$ac_link") 2>conftest.er1
21768 ac_status=$?
21769 grep -v '^ *+' conftest.er1 >conftest.err
21770 rm -f conftest.er1
21771 cat conftest.err >&5
21772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } && {
21774 test -z "$ac_c_werror_flag" ||
21775 test ! -s conftest.err
21776 } && test -s conftest$ac_exeext && {
21777 test "$cross_compiling" = yes ||
21778 $as_test_x conftest$ac_exeext
21779 }; then
21780 ac_cv_lib_des_des_cbc_encrypt=yes
21781 else
21782 $as_echo "$as_me: failed program was:" >&5
21783 sed 's/^/| /' conftest.$ac_ext >&5
21784
21785 ac_cv_lib_des_des_cbc_encrypt=no
21786 fi
21787
21788 rm -rf conftest.dSYM
21789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21790 conftest$ac_exeext conftest.$ac_ext
21791 LIBS=$ac_check_lib_save_LIBS
21792 fi
21793 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21794 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21795 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21796 cat >>confdefs.h <<_ACEOF
21797 #define HAVE_LIBDES 1
21798 _ACEOF
21799
21800 LIBS="-ldes $LIBS"
21801
21802 fi
21803
21804 fi
21805
21806
21807 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21808 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21809 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21810 $as_echo_n "(cached) " >&6
21811 else
21812 ac_check_lib_save_LIBS=$LIBS
21813 LIBS="-lkrb4 $LIBS"
21814 cat >conftest.$ac_ext <<_ACEOF
21815 /* confdefs.h. */
21816 _ACEOF
21817 cat confdefs.h >>conftest.$ac_ext
21818 cat >>conftest.$ac_ext <<_ACEOF
21819 /* end confdefs.h. */
21820
21821 /* Override any GCC internal prototype to avoid an error.
21822 Use char because int might match the return type of a GCC
21823 builtin and then its argument prototype would still apply. */
21824 #ifdef __cplusplus
21825 extern "C"
21826 #endif
21827 char krb_get_cred ();
21828 int
21829 main ()
21830 {
21831 return krb_get_cred ();
21832 ;
21833 return 0;
21834 }
21835 _ACEOF
21836 rm -f conftest.$ac_objext conftest$ac_exeext
21837 if { (ac_try="$ac_link"
21838 case "(($ac_try" in
21839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21840 *) ac_try_echo=$ac_try;;
21841 esac
21842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21843 $as_echo "$ac_try_echo") >&5
21844 (eval "$ac_link") 2>conftest.er1
21845 ac_status=$?
21846 grep -v '^ *+' conftest.er1 >conftest.err
21847 rm -f conftest.er1
21848 cat conftest.err >&5
21849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); } && {
21851 test -z "$ac_c_werror_flag" ||
21852 test ! -s conftest.err
21853 } && test -s conftest$ac_exeext && {
21854 test "$cross_compiling" = yes ||
21855 $as_test_x conftest$ac_exeext
21856 }; then
21857 ac_cv_lib_krb4_krb_get_cred=yes
21858 else
21859 $as_echo "$as_me: failed program was:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21861
21862 ac_cv_lib_krb4_krb_get_cred=no
21863 fi
21864
21865 rm -rf conftest.dSYM
21866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21867 conftest$ac_exeext conftest.$ac_ext
21868 LIBS=$ac_check_lib_save_LIBS
21869 fi
21870 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21871 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21872 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21873 cat >>confdefs.h <<_ACEOF
21874 #define HAVE_LIBKRB4 1
21875 _ACEOF
21876
21877 LIBS="-lkrb4 $LIBS"
21878
21879 else
21880
21881 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21882 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21883 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21884 $as_echo_n "(cached) " >&6
21885 else
21886 ac_check_lib_save_LIBS=$LIBS
21887 LIBS="-lkrb $LIBS"
21888 cat >conftest.$ac_ext <<_ACEOF
21889 /* confdefs.h. */
21890 _ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h. */
21894
21895 /* Override any GCC internal prototype to avoid an error.
21896 Use char because int might match the return type of a GCC
21897 builtin and then its argument prototype would still apply. */
21898 #ifdef __cplusplus
21899 extern "C"
21900 #endif
21901 char krb_get_cred ();
21902 int
21903 main ()
21904 {
21905 return krb_get_cred ();
21906 ;
21907 return 0;
21908 }
21909 _ACEOF
21910 rm -f conftest.$ac_objext conftest$ac_exeext
21911 if { (ac_try="$ac_link"
21912 case "(($ac_try" in
21913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21914 *) ac_try_echo=$ac_try;;
21915 esac
21916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21917 $as_echo "$ac_try_echo") >&5
21918 (eval "$ac_link") 2>conftest.er1
21919 ac_status=$?
21920 grep -v '^ *+' conftest.er1 >conftest.err
21921 rm -f conftest.er1
21922 cat conftest.err >&5
21923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); } && {
21925 test -z "$ac_c_werror_flag" ||
21926 test ! -s conftest.err
21927 } && test -s conftest$ac_exeext && {
21928 test "$cross_compiling" = yes ||
21929 $as_test_x conftest$ac_exeext
21930 }; then
21931 ac_cv_lib_krb_krb_get_cred=yes
21932 else
21933 $as_echo "$as_me: failed program was:" >&5
21934 sed 's/^/| /' conftest.$ac_ext >&5
21935
21936 ac_cv_lib_krb_krb_get_cred=no
21937 fi
21938
21939 rm -rf conftest.dSYM
21940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21941 conftest$ac_exeext conftest.$ac_ext
21942 LIBS=$ac_check_lib_save_LIBS
21943 fi
21944 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21945 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
21946 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21947 cat >>confdefs.h <<_ACEOF
21948 #define HAVE_LIBKRB 1
21949 _ACEOF
21950
21951 LIBS="-lkrb $LIBS"
21952
21953 fi
21954
21955 fi
21956
21957 fi
21958
21959 if test "${with_kerberos5}" != no; then
21960
21961 for ac_header in krb5.h
21962 do
21963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21965 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21966 $as_echo_n "checking for $ac_header... " >&6; }
21967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21968 $as_echo_n "(cached) " >&6
21969 fi
21970 ac_res=`eval 'as_val=${'$as_ac_Header'}
21971 $as_echo "$as_val"'`
21972 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21973 $as_echo "$ac_res" >&6; }
21974 else
21975 # Is the header compilable?
21976 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21977 $as_echo_n "checking $ac_header usability... " >&6; }
21978 cat >conftest.$ac_ext <<_ACEOF
21979 /* confdefs.h. */
21980 _ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h. */
21984 $ac_includes_default
21985 #include <$ac_header>
21986 _ACEOF
21987 rm -f conftest.$ac_objext
21988 if { (ac_try="$ac_compile"
21989 case "(($ac_try" in
21990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21991 *) ac_try_echo=$ac_try;;
21992 esac
21993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21994 $as_echo "$ac_try_echo") >&5
21995 (eval "$ac_compile") 2>conftest.er1
21996 ac_status=$?
21997 grep -v '^ *+' conftest.er1 >conftest.err
21998 rm -f conftest.er1
21999 cat conftest.err >&5
22000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); } && {
22002 test -z "$ac_c_werror_flag" ||
22003 test ! -s conftest.err
22004 } && test -s conftest.$ac_objext; then
22005 ac_header_compiler=yes
22006 else
22007 $as_echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22009
22010 ac_header_compiler=no
22011 fi
22012
22013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22014 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22015 $as_echo "$ac_header_compiler" >&6; }
22016
22017 # Is the header present?
22018 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22019 $as_echo_n "checking $ac_header presence... " >&6; }
22020 cat >conftest.$ac_ext <<_ACEOF
22021 /* confdefs.h. */
22022 _ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h. */
22026 #include <$ac_header>
22027 _ACEOF
22028 if { (ac_try="$ac_cpp conftest.$ac_ext"
22029 case "(($ac_try" in
22030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031 *) ac_try_echo=$ac_try;;
22032 esac
22033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22034 $as_echo "$ac_try_echo") >&5
22035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22036 ac_status=$?
22037 grep -v '^ *+' conftest.er1 >conftest.err
22038 rm -f conftest.er1
22039 cat conftest.err >&5
22040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } >/dev/null && {
22042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22043 test ! -s conftest.err
22044 }; then
22045 ac_header_preproc=yes
22046 else
22047 $as_echo "$as_me: failed program was:" >&5
22048 sed 's/^/| /' conftest.$ac_ext >&5
22049
22050 ac_header_preproc=no
22051 fi
22052
22053 rm -f conftest.err conftest.$ac_ext
22054 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22055 $as_echo "$ac_header_preproc" >&6; }
22056
22057 # So? What about this header?
22058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22059 yes:no: )
22060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22061 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22063 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22064 ac_header_preproc=yes
22065 ;;
22066 no:yes:* )
22067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22068 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22070 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22072 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22074 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22076 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22078 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22079
22080 ;;
22081 esac
22082 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22083 $as_echo_n "checking for $ac_header... " >&6; }
22084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22085 $as_echo_n "(cached) " >&6
22086 else
22087 eval "$as_ac_Header=\$ac_header_preproc"
22088 fi
22089 ac_res=`eval 'as_val=${'$as_ac_Header'}
22090 $as_echo "$as_val"'`
22091 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22092 $as_echo "$ac_res" >&6; }
22093
22094 fi
22095 if test `eval 'as_val=${'$as_ac_Header'}
22096 $as_echo "$as_val"'` = yes; then
22097 cat >>confdefs.h <<_ACEOF
22098 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22099 _ACEOF
22100 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22101 $as_echo_n "checking for krb5_error.text... " >&6; }
22102 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22103 $as_echo_n "(cached) " >&6
22104 else
22105 cat >conftest.$ac_ext <<_ACEOF
22106 /* confdefs.h. */
22107 _ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h. */
22111 #include <krb5.h>
22112
22113 int
22114 main ()
22115 {
22116 static krb5_error ac_aggr;
22117 if (ac_aggr.text)
22118 return 0;
22119 ;
22120 return 0;
22121 }
22122 _ACEOF
22123 rm -f conftest.$ac_objext
22124 if { (ac_try="$ac_compile"
22125 case "(($ac_try" in
22126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22127 *) ac_try_echo=$ac_try;;
22128 esac
22129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22130 $as_echo "$ac_try_echo") >&5
22131 (eval "$ac_compile") 2>conftest.er1
22132 ac_status=$?
22133 grep -v '^ *+' conftest.er1 >conftest.err
22134 rm -f conftest.er1
22135 cat conftest.err >&5
22136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); } && {
22138 test -z "$ac_c_werror_flag" ||
22139 test ! -s conftest.err
22140 } && test -s conftest.$ac_objext; then
22141 ac_cv_member_krb5_error_text=yes
22142 else
22143 $as_echo "$as_me: failed program was:" >&5
22144 sed 's/^/| /' conftest.$ac_ext >&5
22145
22146 cat >conftest.$ac_ext <<_ACEOF
22147 /* confdefs.h. */
22148 _ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h. */
22152 #include <krb5.h>
22153
22154 int
22155 main ()
22156 {
22157 static krb5_error ac_aggr;
22158 if (sizeof ac_aggr.text)
22159 return 0;
22160 ;
22161 return 0;
22162 }
22163 _ACEOF
22164 rm -f conftest.$ac_objext
22165 if { (ac_try="$ac_compile"
22166 case "(($ac_try" in
22167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22168 *) ac_try_echo=$ac_try;;
22169 esac
22170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22171 $as_echo "$ac_try_echo") >&5
22172 (eval "$ac_compile") 2>conftest.er1
22173 ac_status=$?
22174 grep -v '^ *+' conftest.er1 >conftest.err
22175 rm -f conftest.er1
22176 cat conftest.err >&5
22177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); } && {
22179 test -z "$ac_c_werror_flag" ||
22180 test ! -s conftest.err
22181 } && test -s conftest.$ac_objext; then
22182 ac_cv_member_krb5_error_text=yes
22183 else
22184 $as_echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22186
22187 ac_cv_member_krb5_error_text=no
22188 fi
22189
22190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22191 fi
22192
22193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22194 fi
22195 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22196 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22197 if test $ac_cv_member_krb5_error_text = yes; then
22198
22199 cat >>confdefs.h <<_ACEOF
22200 #define HAVE_KRB5_ERROR_TEXT 1
22201 _ACEOF
22202
22203
22204 fi
22205 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22206 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22207 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22208 $as_echo_n "(cached) " >&6
22209 else
22210 cat >conftest.$ac_ext <<_ACEOF
22211 /* confdefs.h. */
22212 _ACEOF
22213 cat confdefs.h >>conftest.$ac_ext
22214 cat >>conftest.$ac_ext <<_ACEOF
22215 /* end confdefs.h. */
22216 #include <krb5.h>
22217
22218 int
22219 main ()
22220 {
22221 static krb5_error ac_aggr;
22222 if (ac_aggr.e_text)
22223 return 0;
22224 ;
22225 return 0;
22226 }
22227 _ACEOF
22228 rm -f conftest.$ac_objext
22229 if { (ac_try="$ac_compile"
22230 case "(($ac_try" in
22231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22232 *) ac_try_echo=$ac_try;;
22233 esac
22234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22235 $as_echo "$ac_try_echo") >&5
22236 (eval "$ac_compile") 2>conftest.er1
22237 ac_status=$?
22238 grep -v '^ *+' conftest.er1 >conftest.err
22239 rm -f conftest.er1
22240 cat conftest.err >&5
22241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); } && {
22243 test -z "$ac_c_werror_flag" ||
22244 test ! -s conftest.err
22245 } && test -s conftest.$ac_objext; then
22246 ac_cv_member_krb5_error_e_text=yes
22247 else
22248 $as_echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22250
22251 cat >conftest.$ac_ext <<_ACEOF
22252 /* confdefs.h. */
22253 _ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h. */
22257 #include <krb5.h>
22258
22259 int
22260 main ()
22261 {
22262 static krb5_error ac_aggr;
22263 if (sizeof ac_aggr.e_text)
22264 return 0;
22265 ;
22266 return 0;
22267 }
22268 _ACEOF
22269 rm -f conftest.$ac_objext
22270 if { (ac_try="$ac_compile"
22271 case "(($ac_try" in
22272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273 *) ac_try_echo=$ac_try;;
22274 esac
22275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22276 $as_echo "$ac_try_echo") >&5
22277 (eval "$ac_compile") 2>conftest.er1
22278 ac_status=$?
22279 grep -v '^ *+' conftest.er1 >conftest.err
22280 rm -f conftest.er1
22281 cat conftest.err >&5
22282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } && {
22284 test -z "$ac_c_werror_flag" ||
22285 test ! -s conftest.err
22286 } && test -s conftest.$ac_objext; then
22287 ac_cv_member_krb5_error_e_text=yes
22288 else
22289 $as_echo "$as_me: failed program was:" >&5
22290 sed 's/^/| /' conftest.$ac_ext >&5
22291
22292 ac_cv_member_krb5_error_e_text=no
22293 fi
22294
22295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22296 fi
22297
22298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22299 fi
22300 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22301 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22302 if test $ac_cv_member_krb5_error_e_text = yes; then
22303
22304 cat >>confdefs.h <<_ACEOF
22305 #define HAVE_KRB5_ERROR_E_TEXT 1
22306 _ACEOF
22307
22308
22309 fi
22310
22311 fi
22312
22313 done
22314
22315 else
22316
22317 for ac_header in des.h
22318 do
22319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22321 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22322 $as_echo_n "checking for $ac_header... " >&6; }
22323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22324 $as_echo_n "(cached) " >&6
22325 fi
22326 ac_res=`eval 'as_val=${'$as_ac_Header'}
22327 $as_echo "$as_val"'`
22328 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22329 $as_echo "$ac_res" >&6; }
22330 else
22331 # Is the header compilable?
22332 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22333 $as_echo_n "checking $ac_header usability... " >&6; }
22334 cat >conftest.$ac_ext <<_ACEOF
22335 /* confdefs.h. */
22336 _ACEOF
22337 cat confdefs.h >>conftest.$ac_ext
22338 cat >>conftest.$ac_ext <<_ACEOF
22339 /* end confdefs.h. */
22340 $ac_includes_default
22341 #include <$ac_header>
22342 _ACEOF
22343 rm -f conftest.$ac_objext
22344 if { (ac_try="$ac_compile"
22345 case "(($ac_try" in
22346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22347 *) ac_try_echo=$ac_try;;
22348 esac
22349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22350 $as_echo "$ac_try_echo") >&5
22351 (eval "$ac_compile") 2>conftest.er1
22352 ac_status=$?
22353 grep -v '^ *+' conftest.er1 >conftest.err
22354 rm -f conftest.er1
22355 cat conftest.err >&5
22356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); } && {
22358 test -z "$ac_c_werror_flag" ||
22359 test ! -s conftest.err
22360 } && test -s conftest.$ac_objext; then
22361 ac_header_compiler=yes
22362 else
22363 $as_echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.$ac_ext >&5
22365
22366 ac_header_compiler=no
22367 fi
22368
22369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22370 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22371 $as_echo "$ac_header_compiler" >&6; }
22372
22373 # Is the header present?
22374 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22375 $as_echo_n "checking $ac_header presence... " >&6; }
22376 cat >conftest.$ac_ext <<_ACEOF
22377 /* confdefs.h. */
22378 _ACEOF
22379 cat confdefs.h >>conftest.$ac_ext
22380 cat >>conftest.$ac_ext <<_ACEOF
22381 /* end confdefs.h. */
22382 #include <$ac_header>
22383 _ACEOF
22384 if { (ac_try="$ac_cpp conftest.$ac_ext"
22385 case "(($ac_try" in
22386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22387 *) ac_try_echo=$ac_try;;
22388 esac
22389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22390 $as_echo "$ac_try_echo") >&5
22391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22392 ac_status=$?
22393 grep -v '^ *+' conftest.er1 >conftest.err
22394 rm -f conftest.er1
22395 cat conftest.err >&5
22396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); } >/dev/null && {
22398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22399 test ! -s conftest.err
22400 }; then
22401 ac_header_preproc=yes
22402 else
22403 $as_echo "$as_me: failed program was:" >&5
22404 sed 's/^/| /' conftest.$ac_ext >&5
22405
22406 ac_header_preproc=no
22407 fi
22408
22409 rm -f conftest.err conftest.$ac_ext
22410 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22411 $as_echo "$ac_header_preproc" >&6; }
22412
22413 # So? What about this header?
22414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22415 yes:no: )
22416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22417 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22419 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22420 ac_header_preproc=yes
22421 ;;
22422 no:yes:* )
22423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22424 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22426 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22428 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22430 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22432 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22434 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22435
22436 ;;
22437 esac
22438 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22439 $as_echo_n "checking for $ac_header... " >&6; }
22440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22441 $as_echo_n "(cached) " >&6
22442 else
22443 eval "$as_ac_Header=\$ac_header_preproc"
22444 fi
22445 ac_res=`eval 'as_val=${'$as_ac_Header'}
22446 $as_echo "$as_val"'`
22447 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22448 $as_echo "$ac_res" >&6; }
22449
22450 fi
22451 if test `eval 'as_val=${'$as_ac_Header'}
22452 $as_echo "$as_val"'` = yes; then
22453 cat >>confdefs.h <<_ACEOF
22454 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22455 _ACEOF
22456
22457 else
22458
22459 for ac_header in kerberosIV/des.h
22460 do
22461 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22463 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22464 $as_echo_n "checking for $ac_header... " >&6; }
22465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22466 $as_echo_n "(cached) " >&6
22467 fi
22468 ac_res=`eval 'as_val=${'$as_ac_Header'}
22469 $as_echo "$as_val"'`
22470 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22471 $as_echo "$ac_res" >&6; }
22472 else
22473 # Is the header compilable?
22474 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22475 $as_echo_n "checking $ac_header usability... " >&6; }
22476 cat >conftest.$ac_ext <<_ACEOF
22477 /* confdefs.h. */
22478 _ACEOF
22479 cat confdefs.h >>conftest.$ac_ext
22480 cat >>conftest.$ac_ext <<_ACEOF
22481 /* end confdefs.h. */
22482 $ac_includes_default
22483 #include <$ac_header>
22484 _ACEOF
22485 rm -f conftest.$ac_objext
22486 if { (ac_try="$ac_compile"
22487 case "(($ac_try" in
22488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489 *) ac_try_echo=$ac_try;;
22490 esac
22491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22492 $as_echo "$ac_try_echo") >&5
22493 (eval "$ac_compile") 2>conftest.er1
22494 ac_status=$?
22495 grep -v '^ *+' conftest.er1 >conftest.err
22496 rm -f conftest.er1
22497 cat conftest.err >&5
22498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); } && {
22500 test -z "$ac_c_werror_flag" ||
22501 test ! -s conftest.err
22502 } && test -s conftest.$ac_objext; then
22503 ac_header_compiler=yes
22504 else
22505 $as_echo "$as_me: failed program was:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22507
22508 ac_header_compiler=no
22509 fi
22510
22511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22512 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22513 $as_echo "$ac_header_compiler" >&6; }
22514
22515 # Is the header present?
22516 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22517 $as_echo_n "checking $ac_header presence... " >&6; }
22518 cat >conftest.$ac_ext <<_ACEOF
22519 /* confdefs.h. */
22520 _ACEOF
22521 cat confdefs.h >>conftest.$ac_ext
22522 cat >>conftest.$ac_ext <<_ACEOF
22523 /* end confdefs.h. */
22524 #include <$ac_header>
22525 _ACEOF
22526 if { (ac_try="$ac_cpp conftest.$ac_ext"
22527 case "(($ac_try" in
22528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22529 *) ac_try_echo=$ac_try;;
22530 esac
22531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22532 $as_echo "$ac_try_echo") >&5
22533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22534 ac_status=$?
22535 grep -v '^ *+' conftest.er1 >conftest.err
22536 rm -f conftest.er1
22537 cat conftest.err >&5
22538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } >/dev/null && {
22540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22541 test ! -s conftest.err
22542 }; then
22543 ac_header_preproc=yes
22544 else
22545 $as_echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22547
22548 ac_header_preproc=no
22549 fi
22550
22551 rm -f conftest.err conftest.$ac_ext
22552 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22553 $as_echo "$ac_header_preproc" >&6; }
22554
22555 # So? What about this header?
22556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22557 yes:no: )
22558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22559 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22561 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22562 ac_header_preproc=yes
22563 ;;
22564 no:yes:* )
22565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22566 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22568 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22570 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22572 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22573 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22574 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22575 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22576 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22577
22578 ;;
22579 esac
22580 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22581 $as_echo_n "checking for $ac_header... " >&6; }
22582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22583 $as_echo_n "(cached) " >&6
22584 else
22585 eval "$as_ac_Header=\$ac_header_preproc"
22586 fi
22587 ac_res=`eval 'as_val=${'$as_ac_Header'}
22588 $as_echo "$as_val"'`
22589 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22590 $as_echo "$ac_res" >&6; }
22591
22592 fi
22593 if test `eval 'as_val=${'$as_ac_Header'}
22594 $as_echo "$as_val"'` = yes; then
22595 cat >>confdefs.h <<_ACEOF
22596 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22597 _ACEOF
22598
22599 else
22600
22601 for ac_header in kerberos/des.h
22602 do
22603 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22605 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22606 $as_echo_n "checking for $ac_header... " >&6; }
22607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22608 $as_echo_n "(cached) " >&6
22609 fi
22610 ac_res=`eval 'as_val=${'$as_ac_Header'}
22611 $as_echo "$as_val"'`
22612 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22613 $as_echo "$ac_res" >&6; }
22614 else
22615 # Is the header compilable?
22616 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22617 $as_echo_n "checking $ac_header usability... " >&6; }
22618 cat >conftest.$ac_ext <<_ACEOF
22619 /* confdefs.h. */
22620 _ACEOF
22621 cat confdefs.h >>conftest.$ac_ext
22622 cat >>conftest.$ac_ext <<_ACEOF
22623 /* end confdefs.h. */
22624 $ac_includes_default
22625 #include <$ac_header>
22626 _ACEOF
22627 rm -f conftest.$ac_objext
22628 if { (ac_try="$ac_compile"
22629 case "(($ac_try" in
22630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22631 *) ac_try_echo=$ac_try;;
22632 esac
22633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22634 $as_echo "$ac_try_echo") >&5
22635 (eval "$ac_compile") 2>conftest.er1
22636 ac_status=$?
22637 grep -v '^ *+' conftest.er1 >conftest.err
22638 rm -f conftest.er1
22639 cat conftest.err >&5
22640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641 (exit $ac_status); } && {
22642 test -z "$ac_c_werror_flag" ||
22643 test ! -s conftest.err
22644 } && test -s conftest.$ac_objext; then
22645 ac_header_compiler=yes
22646 else
22647 $as_echo "$as_me: failed program was:" >&5
22648 sed 's/^/| /' conftest.$ac_ext >&5
22649
22650 ac_header_compiler=no
22651 fi
22652
22653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22654 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22655 $as_echo "$ac_header_compiler" >&6; }
22656
22657 # Is the header present?
22658 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22659 $as_echo_n "checking $ac_header presence... " >&6; }
22660 cat >conftest.$ac_ext <<_ACEOF
22661 /* confdefs.h. */
22662 _ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h. */
22666 #include <$ac_header>
22667 _ACEOF
22668 if { (ac_try="$ac_cpp conftest.$ac_ext"
22669 case "(($ac_try" in
22670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22671 *) ac_try_echo=$ac_try;;
22672 esac
22673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22674 $as_echo "$ac_try_echo") >&5
22675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22676 ac_status=$?
22677 grep -v '^ *+' conftest.er1 >conftest.err
22678 rm -f conftest.er1
22679 cat conftest.err >&5
22680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); } >/dev/null && {
22682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22683 test ! -s conftest.err
22684 }; then
22685 ac_header_preproc=yes
22686 else
22687 $as_echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22689
22690 ac_header_preproc=no
22691 fi
22692
22693 rm -f conftest.err conftest.$ac_ext
22694 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22695 $as_echo "$ac_header_preproc" >&6; }
22696
22697 # So? What about this header?
22698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22699 yes:no: )
22700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22701 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22703 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22704 ac_header_preproc=yes
22705 ;;
22706 no:yes:* )
22707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22708 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22710 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22712 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22714 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22716 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22718 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22719
22720 ;;
22721 esac
22722 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22723 $as_echo_n "checking for $ac_header... " >&6; }
22724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22725 $as_echo_n "(cached) " >&6
22726 else
22727 eval "$as_ac_Header=\$ac_header_preproc"
22728 fi
22729 ac_res=`eval 'as_val=${'$as_ac_Header'}
22730 $as_echo "$as_val"'`
22731 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22732 $as_echo "$ac_res" >&6; }
22733
22734 fi
22735 if test `eval 'as_val=${'$as_ac_Header'}
22736 $as_echo "$as_val"'` = yes; then
22737 cat >>confdefs.h <<_ACEOF
22738 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22739 _ACEOF
22740
22741 fi
22742
22743 done
22744
22745 fi
22746
22747 done
22748
22749 fi
22750
22751 done
22752
22753
22754 for ac_header in krb.h
22755 do
22756 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22758 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22759 $as_echo_n "checking for $ac_header... " >&6; }
22760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22761 $as_echo_n "(cached) " >&6
22762 fi
22763 ac_res=`eval 'as_val=${'$as_ac_Header'}
22764 $as_echo "$as_val"'`
22765 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22766 $as_echo "$ac_res" >&6; }
22767 else
22768 # Is the header compilable?
22769 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22770 $as_echo_n "checking $ac_header usability... " >&6; }
22771 cat >conftest.$ac_ext <<_ACEOF
22772 /* confdefs.h. */
22773 _ACEOF
22774 cat confdefs.h >>conftest.$ac_ext
22775 cat >>conftest.$ac_ext <<_ACEOF
22776 /* end confdefs.h. */
22777 $ac_includes_default
22778 #include <$ac_header>
22779 _ACEOF
22780 rm -f conftest.$ac_objext
22781 if { (ac_try="$ac_compile"
22782 case "(($ac_try" in
22783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784 *) ac_try_echo=$ac_try;;
22785 esac
22786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22787 $as_echo "$ac_try_echo") >&5
22788 (eval "$ac_compile") 2>conftest.er1
22789 ac_status=$?
22790 grep -v '^ *+' conftest.er1 >conftest.err
22791 rm -f conftest.er1
22792 cat conftest.err >&5
22793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } && {
22795 test -z "$ac_c_werror_flag" ||
22796 test ! -s conftest.err
22797 } && test -s conftest.$ac_objext; then
22798 ac_header_compiler=yes
22799 else
22800 $as_echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22802
22803 ac_header_compiler=no
22804 fi
22805
22806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22807 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22808 $as_echo "$ac_header_compiler" >&6; }
22809
22810 # Is the header present?
22811 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22812 $as_echo_n "checking $ac_header presence... " >&6; }
22813 cat >conftest.$ac_ext <<_ACEOF
22814 /* confdefs.h. */
22815 _ACEOF
22816 cat confdefs.h >>conftest.$ac_ext
22817 cat >>conftest.$ac_ext <<_ACEOF
22818 /* end confdefs.h. */
22819 #include <$ac_header>
22820 _ACEOF
22821 if { (ac_try="$ac_cpp conftest.$ac_ext"
22822 case "(($ac_try" in
22823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22824 *) ac_try_echo=$ac_try;;
22825 esac
22826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22827 $as_echo "$ac_try_echo") >&5
22828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22829 ac_status=$?
22830 grep -v '^ *+' conftest.er1 >conftest.err
22831 rm -f conftest.er1
22832 cat conftest.err >&5
22833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); } >/dev/null && {
22835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22836 test ! -s conftest.err
22837 }; then
22838 ac_header_preproc=yes
22839 else
22840 $as_echo "$as_me: failed program was:" >&5
22841 sed 's/^/| /' conftest.$ac_ext >&5
22842
22843 ac_header_preproc=no
22844 fi
22845
22846 rm -f conftest.err conftest.$ac_ext
22847 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22848 $as_echo "$ac_header_preproc" >&6; }
22849
22850 # So? What about this header?
22851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22852 yes:no: )
22853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22854 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22856 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22857 ac_header_preproc=yes
22858 ;;
22859 no:yes:* )
22860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22861 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22863 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22865 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22867 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22869 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22871 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22872
22873 ;;
22874 esac
22875 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22876 $as_echo_n "checking for $ac_header... " >&6; }
22877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22878 $as_echo_n "(cached) " >&6
22879 else
22880 eval "$as_ac_Header=\$ac_header_preproc"
22881 fi
22882 ac_res=`eval 'as_val=${'$as_ac_Header'}
22883 $as_echo "$as_val"'`
22884 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22885 $as_echo "$ac_res" >&6; }
22886
22887 fi
22888 if test `eval 'as_val=${'$as_ac_Header'}
22889 $as_echo "$as_val"'` = yes; then
22890 cat >>confdefs.h <<_ACEOF
22891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22892 _ACEOF
22893
22894 else
22895
22896 for ac_header in kerberosIV/krb.h
22897 do
22898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22900 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22901 $as_echo_n "checking for $ac_header... " >&6; }
22902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22903 $as_echo_n "(cached) " >&6
22904 fi
22905 ac_res=`eval 'as_val=${'$as_ac_Header'}
22906 $as_echo "$as_val"'`
22907 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22908 $as_echo "$ac_res" >&6; }
22909 else
22910 # Is the header compilable?
22911 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22912 $as_echo_n "checking $ac_header usability... " >&6; }
22913 cat >conftest.$ac_ext <<_ACEOF
22914 /* confdefs.h. */
22915 _ACEOF
22916 cat confdefs.h >>conftest.$ac_ext
22917 cat >>conftest.$ac_ext <<_ACEOF
22918 /* end confdefs.h. */
22919 $ac_includes_default
22920 #include <$ac_header>
22921 _ACEOF
22922 rm -f conftest.$ac_objext
22923 if { (ac_try="$ac_compile"
22924 case "(($ac_try" in
22925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22926 *) ac_try_echo=$ac_try;;
22927 esac
22928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22929 $as_echo "$ac_try_echo") >&5
22930 (eval "$ac_compile") 2>conftest.er1
22931 ac_status=$?
22932 grep -v '^ *+' conftest.er1 >conftest.err
22933 rm -f conftest.er1
22934 cat conftest.err >&5
22935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936 (exit $ac_status); } && {
22937 test -z "$ac_c_werror_flag" ||
22938 test ! -s conftest.err
22939 } && test -s conftest.$ac_objext; then
22940 ac_header_compiler=yes
22941 else
22942 $as_echo "$as_me: failed program was:" >&5
22943 sed 's/^/| /' conftest.$ac_ext >&5
22944
22945 ac_header_compiler=no
22946 fi
22947
22948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22949 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22950 $as_echo "$ac_header_compiler" >&6; }
22951
22952 # Is the header present?
22953 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22954 $as_echo_n "checking $ac_header presence... " >&6; }
22955 cat >conftest.$ac_ext <<_ACEOF
22956 /* confdefs.h. */
22957 _ACEOF
22958 cat confdefs.h >>conftest.$ac_ext
22959 cat >>conftest.$ac_ext <<_ACEOF
22960 /* end confdefs.h. */
22961 #include <$ac_header>
22962 _ACEOF
22963 if { (ac_try="$ac_cpp conftest.$ac_ext"
22964 case "(($ac_try" in
22965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966 *) ac_try_echo=$ac_try;;
22967 esac
22968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22969 $as_echo "$ac_try_echo") >&5
22970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22971 ac_status=$?
22972 grep -v '^ *+' conftest.er1 >conftest.err
22973 rm -f conftest.er1
22974 cat conftest.err >&5
22975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); } >/dev/null && {
22977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22978 test ! -s conftest.err
22979 }; then
22980 ac_header_preproc=yes
22981 else
22982 $as_echo "$as_me: failed program was:" >&5
22983 sed 's/^/| /' conftest.$ac_ext >&5
22984
22985 ac_header_preproc=no
22986 fi
22987
22988 rm -f conftest.err conftest.$ac_ext
22989 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22990 $as_echo "$ac_header_preproc" >&6; }
22991
22992 # So? What about this header?
22993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22994 yes:no: )
22995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22996 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22998 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22999 ac_header_preproc=yes
23000 ;;
23001 no:yes:* )
23002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23003 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23005 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23007 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23009 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23011 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23013 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23014
23015 ;;
23016 esac
23017 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23018 $as_echo_n "checking for $ac_header... " >&6; }
23019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23020 $as_echo_n "(cached) " >&6
23021 else
23022 eval "$as_ac_Header=\$ac_header_preproc"
23023 fi
23024 ac_res=`eval 'as_val=${'$as_ac_Header'}
23025 $as_echo "$as_val"'`
23026 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23027 $as_echo "$ac_res" >&6; }
23028
23029 fi
23030 if test `eval 'as_val=${'$as_ac_Header'}
23031 $as_echo "$as_val"'` = yes; then
23032 cat >>confdefs.h <<_ACEOF
23033 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23034 _ACEOF
23035
23036 else
23037
23038 for ac_header in kerberos/krb.h
23039 do
23040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23042 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23043 $as_echo_n "checking for $ac_header... " >&6; }
23044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23045 $as_echo_n "(cached) " >&6
23046 fi
23047 ac_res=`eval 'as_val=${'$as_ac_Header'}
23048 $as_echo "$as_val"'`
23049 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23050 $as_echo "$ac_res" >&6; }
23051 else
23052 # Is the header compilable?
23053 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23054 $as_echo_n "checking $ac_header usability... " >&6; }
23055 cat >conftest.$ac_ext <<_ACEOF
23056 /* confdefs.h. */
23057 _ACEOF
23058 cat confdefs.h >>conftest.$ac_ext
23059 cat >>conftest.$ac_ext <<_ACEOF
23060 /* end confdefs.h. */
23061 $ac_includes_default
23062 #include <$ac_header>
23063 _ACEOF
23064 rm -f conftest.$ac_objext
23065 if { (ac_try="$ac_compile"
23066 case "(($ac_try" in
23067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23068 *) ac_try_echo=$ac_try;;
23069 esac
23070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23071 $as_echo "$ac_try_echo") >&5
23072 (eval "$ac_compile") 2>conftest.er1
23073 ac_status=$?
23074 grep -v '^ *+' conftest.er1 >conftest.err
23075 rm -f conftest.er1
23076 cat conftest.err >&5
23077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078 (exit $ac_status); } && {
23079 test -z "$ac_c_werror_flag" ||
23080 test ! -s conftest.err
23081 } && test -s conftest.$ac_objext; then
23082 ac_header_compiler=yes
23083 else
23084 $as_echo "$as_me: failed program was:" >&5
23085 sed 's/^/| /' conftest.$ac_ext >&5
23086
23087 ac_header_compiler=no
23088 fi
23089
23090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23091 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23092 $as_echo "$ac_header_compiler" >&6; }
23093
23094 # Is the header present?
23095 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23096 $as_echo_n "checking $ac_header presence... " >&6; }
23097 cat >conftest.$ac_ext <<_ACEOF
23098 /* confdefs.h. */
23099 _ACEOF
23100 cat confdefs.h >>conftest.$ac_ext
23101 cat >>conftest.$ac_ext <<_ACEOF
23102 /* end confdefs.h. */
23103 #include <$ac_header>
23104 _ACEOF
23105 if { (ac_try="$ac_cpp conftest.$ac_ext"
23106 case "(($ac_try" in
23107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23108 *) ac_try_echo=$ac_try;;
23109 esac
23110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23111 $as_echo "$ac_try_echo") >&5
23112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23113 ac_status=$?
23114 grep -v '^ *+' conftest.er1 >conftest.err
23115 rm -f conftest.er1
23116 cat conftest.err >&5
23117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); } >/dev/null && {
23119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23120 test ! -s conftest.err
23121 }; then
23122 ac_header_preproc=yes
23123 else
23124 $as_echo "$as_me: failed program was:" >&5
23125 sed 's/^/| /' conftest.$ac_ext >&5
23126
23127 ac_header_preproc=no
23128 fi
23129
23130 rm -f conftest.err conftest.$ac_ext
23131 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23132 $as_echo "$ac_header_preproc" >&6; }
23133
23134 # So? What about this header?
23135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23136 yes:no: )
23137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23138 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23140 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23141 ac_header_preproc=yes
23142 ;;
23143 no:yes:* )
23144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23145 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23147 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23149 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23151 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23153 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23155 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23156
23157 ;;
23158 esac
23159 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23160 $as_echo_n "checking for $ac_header... " >&6; }
23161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23162 $as_echo_n "(cached) " >&6
23163 else
23164 eval "$as_ac_Header=\$ac_header_preproc"
23165 fi
23166 ac_res=`eval 'as_val=${'$as_ac_Header'}
23167 $as_echo "$as_val"'`
23168 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23169 $as_echo "$ac_res" >&6; }
23170
23171 fi
23172 if test `eval 'as_val=${'$as_ac_Header'}
23173 $as_echo "$as_val"'` = yes; then
23174 cat >>confdefs.h <<_ACEOF
23175 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23176 _ACEOF
23177
23178 fi
23179
23180 done
23181
23182 fi
23183
23184 done
23185
23186 fi
23187
23188 done
23189
23190 fi
23191
23192 for ac_header in com_err.h
23193 do
23194 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23196 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23197 $as_echo_n "checking for $ac_header... " >&6; }
23198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23199 $as_echo_n "(cached) " >&6
23200 fi
23201 ac_res=`eval 'as_val=${'$as_ac_Header'}
23202 $as_echo "$as_val"'`
23203 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23204 $as_echo "$ac_res" >&6; }
23205 else
23206 # Is the header compilable?
23207 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23208 $as_echo_n "checking $ac_header usability... " >&6; }
23209 cat >conftest.$ac_ext <<_ACEOF
23210 /* confdefs.h. */
23211 _ACEOF
23212 cat confdefs.h >>conftest.$ac_ext
23213 cat >>conftest.$ac_ext <<_ACEOF
23214 /* end confdefs.h. */
23215 $ac_includes_default
23216 #include <$ac_header>
23217 _ACEOF
23218 rm -f conftest.$ac_objext
23219 if { (ac_try="$ac_compile"
23220 case "(($ac_try" in
23221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222 *) ac_try_echo=$ac_try;;
23223 esac
23224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23225 $as_echo "$ac_try_echo") >&5
23226 (eval "$ac_compile") 2>conftest.er1
23227 ac_status=$?
23228 grep -v '^ *+' conftest.er1 >conftest.err
23229 rm -f conftest.er1
23230 cat conftest.err >&5
23231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); } && {
23233 test -z "$ac_c_werror_flag" ||
23234 test ! -s conftest.err
23235 } && test -s conftest.$ac_objext; then
23236 ac_header_compiler=yes
23237 else
23238 $as_echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23240
23241 ac_header_compiler=no
23242 fi
23243
23244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23245 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23246 $as_echo "$ac_header_compiler" >&6; }
23247
23248 # Is the header present?
23249 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23250 $as_echo_n "checking $ac_header presence... " >&6; }
23251 cat >conftest.$ac_ext <<_ACEOF
23252 /* confdefs.h. */
23253 _ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h. */
23257 #include <$ac_header>
23258 _ACEOF
23259 if { (ac_try="$ac_cpp conftest.$ac_ext"
23260 case "(($ac_try" in
23261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23262 *) ac_try_echo=$ac_try;;
23263 esac
23264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23265 $as_echo "$ac_try_echo") >&5
23266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23267 ac_status=$?
23268 grep -v '^ *+' conftest.er1 >conftest.err
23269 rm -f conftest.er1
23270 cat conftest.err >&5
23271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } >/dev/null && {
23273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23274 test ! -s conftest.err
23275 }; then
23276 ac_header_preproc=yes
23277 else
23278 $as_echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23280
23281 ac_header_preproc=no
23282 fi
23283
23284 rm -f conftest.err conftest.$ac_ext
23285 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23286 $as_echo "$ac_header_preproc" >&6; }
23287
23288 # So? What about this header?
23289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23290 yes:no: )
23291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23292 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23294 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23295 ac_header_preproc=yes
23296 ;;
23297 no:yes:* )
23298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23299 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23301 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23303 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23305 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23307 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23309 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23310
23311 ;;
23312 esac
23313 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23314 $as_echo_n "checking for $ac_header... " >&6; }
23315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23316 $as_echo_n "(cached) " >&6
23317 else
23318 eval "$as_ac_Header=\$ac_header_preproc"
23319 fi
23320 ac_res=`eval 'as_val=${'$as_ac_Header'}
23321 $as_echo "$as_val"'`
23322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23323 $as_echo "$ac_res" >&6; }
23324
23325 fi
23326 if test `eval 'as_val=${'$as_ac_Header'}
23327 $as_echo "$as_val"'` = yes; then
23328 cat >>confdefs.h <<_ACEOF
23329 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23330 _ACEOF
23331
23332 fi
23333
23334 done
23335
23336 fi
23337
23338 # Solaris requires -lintl if you want strerror (which calls dgettext)
23339 # to return localized messages.
23340
23341 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23342 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23343 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23344 $as_echo_n "(cached) " >&6
23345 else
23346 ac_check_lib_save_LIBS=$LIBS
23347 LIBS="-lintl $LIBS"
23348 cat >conftest.$ac_ext <<_ACEOF
23349 /* confdefs.h. */
23350 _ACEOF
23351 cat confdefs.h >>conftest.$ac_ext
23352 cat >>conftest.$ac_ext <<_ACEOF
23353 /* end confdefs.h. */
23354
23355 /* Override any GCC internal prototype to avoid an error.
23356 Use char because int might match the return type of a GCC
23357 builtin and then its argument prototype would still apply. */
23358 #ifdef __cplusplus
23359 extern "C"
23360 #endif
23361 char dgettext ();
23362 int
23363 main ()
23364 {
23365 return dgettext ();
23366 ;
23367 return 0;
23368 }
23369 _ACEOF
23370 rm -f conftest.$ac_objext conftest$ac_exeext
23371 if { (ac_try="$ac_link"
23372 case "(($ac_try" in
23373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23374 *) ac_try_echo=$ac_try;;
23375 esac
23376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23377 $as_echo "$ac_try_echo") >&5
23378 (eval "$ac_link") 2>conftest.er1
23379 ac_status=$?
23380 grep -v '^ *+' conftest.er1 >conftest.err
23381 rm -f conftest.er1
23382 cat conftest.err >&5
23383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); } && {
23385 test -z "$ac_c_werror_flag" ||
23386 test ! -s conftest.err
23387 } && test -s conftest$ac_exeext && {
23388 test "$cross_compiling" = yes ||
23389 $as_test_x conftest$ac_exeext
23390 }; then
23391 ac_cv_lib_intl_dgettext=yes
23392 else
23393 $as_echo "$as_me: failed program was:" >&5
23394 sed 's/^/| /' conftest.$ac_ext >&5
23395
23396 ac_cv_lib_intl_dgettext=no
23397 fi
23398
23399 rm -rf conftest.dSYM
23400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23401 conftest$ac_exeext conftest.$ac_ext
23402 LIBS=$ac_check_lib_save_LIBS
23403 fi
23404 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23405 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23406 if test $ac_cv_lib_intl_dgettext = yes; then
23407 cat >>confdefs.h <<_ACEOF
23408 #define HAVE_LIBINTL 1
23409 _ACEOF
23410
23411 LIBS="-lintl $LIBS"
23412
23413 fi
23414
23415
23416 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23417 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23418 if test "${emacs_cv_localtime_cache+set}" = set; then
23419 $as_echo_n "(cached) " >&6
23420 else
23421 if test x$ac_cv_func_tzset = xyes; then
23422 if test "$cross_compiling" = yes; then
23423 # If we have tzset, assume the worst when cross-compiling.
23424 emacs_cv_localtime_cache=yes
23425 else
23426 cat >conftest.$ac_ext <<_ACEOF
23427 /* confdefs.h. */
23428 _ACEOF
23429 cat confdefs.h >>conftest.$ac_ext
23430 cat >>conftest.$ac_ext <<_ACEOF
23431 /* end confdefs.h. */
23432 #include <time.h>
23433 extern char **environ;
23434 unset_TZ ()
23435 {
23436 char **from, **to;
23437 for (to = from = environ; (*to = *from); from++)
23438 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23439 to++;
23440 }
23441 char TZ_GMT0[] = "TZ=GMT0";
23442 char TZ_PST8[] = "TZ=PST8";
23443 main()
23444 {
23445 time_t now = time ((time_t *) 0);
23446 int hour_GMT0, hour_unset;
23447 if (putenv (TZ_GMT0) != 0)
23448 exit (1);
23449 hour_GMT0 = localtime (&now)->tm_hour;
23450 unset_TZ ();
23451 hour_unset = localtime (&now)->tm_hour;
23452 if (putenv (TZ_PST8) != 0)
23453 exit (1);
23454 if (localtime (&now)->tm_hour == hour_GMT0)
23455 exit (1);
23456 unset_TZ ();
23457 if (localtime (&now)->tm_hour != hour_unset)
23458 exit (1);
23459 exit (0);
23460 }
23461 _ACEOF
23462 rm -f conftest$ac_exeext
23463 if { (ac_try="$ac_link"
23464 case "(($ac_try" in
23465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23466 *) ac_try_echo=$ac_try;;
23467 esac
23468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23469 $as_echo "$ac_try_echo") >&5
23470 (eval "$ac_link") 2>&5
23471 ac_status=$?
23472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23474 { (case "(($ac_try" in
23475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476 *) ac_try_echo=$ac_try;;
23477 esac
23478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23479 $as_echo "$ac_try_echo") >&5
23480 (eval "$ac_try") 2>&5
23481 ac_status=$?
23482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483 (exit $ac_status); }; }; then
23484 emacs_cv_localtime_cache=no
23485 else
23486 $as_echo "$as_me: program exited with status $ac_status" >&5
23487 $as_echo "$as_me: failed program was:" >&5
23488 sed 's/^/| /' conftest.$ac_ext >&5
23489
23490 ( exit $ac_status )
23491 emacs_cv_localtime_cache=yes
23492 fi
23493 rm -rf conftest.dSYM
23494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23495 fi
23496
23497
23498 else
23499 # If we lack tzset, report that localtime does not cache TZ,
23500 # since we can't invalidate the cache if we don't have tzset.
23501 emacs_cv_localtime_cache=no
23502 fi
23503 fi
23504 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23505 $as_echo "$emacs_cv_localtime_cache" >&6; }
23506 if test $emacs_cv_localtime_cache = yes; then
23507
23508 cat >>confdefs.h <<\_ACEOF
23509 #define LOCALTIME_CACHE 1
23510 _ACEOF
23511
23512 fi
23513
23514 if test "x$HAVE_TIMEVAL" = xyes; then
23515
23516 for ac_func in gettimeofday
23517 do
23518 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23519 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23520 $as_echo_n "checking for $ac_func... " >&6; }
23521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23522 $as_echo_n "(cached) " >&6
23523 else
23524 cat >conftest.$ac_ext <<_ACEOF
23525 /* confdefs.h. */
23526 _ACEOF
23527 cat confdefs.h >>conftest.$ac_ext
23528 cat >>conftest.$ac_ext <<_ACEOF
23529 /* end confdefs.h. */
23530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23532 #define $ac_func innocuous_$ac_func
23533
23534 /* System header to define __stub macros and hopefully few prototypes,
23535 which can conflict with char $ac_func (); below.
23536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23537 <limits.h> exists even on freestanding compilers. */
23538
23539 #ifdef __STDC__
23540 # include <limits.h>
23541 #else
23542 # include <assert.h>
23543 #endif
23544
23545 #undef $ac_func
23546
23547 /* Override any GCC internal prototype to avoid an error.
23548 Use char because int might match the return type of a GCC
23549 builtin and then its argument prototype would still apply. */
23550 #ifdef __cplusplus
23551 extern "C"
23552 #endif
23553 char $ac_func ();
23554 /* The GNU C library defines this for functions which it implements
23555 to always fail with ENOSYS. Some functions are actually named
23556 something starting with __ and the normal name is an alias. */
23557 #if defined __stub_$ac_func || defined __stub___$ac_func
23558 choke me
23559 #endif
23560
23561 int
23562 main ()
23563 {
23564 return $ac_func ();
23565 ;
23566 return 0;
23567 }
23568 _ACEOF
23569 rm -f conftest.$ac_objext conftest$ac_exeext
23570 if { (ac_try="$ac_link"
23571 case "(($ac_try" in
23572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23573 *) ac_try_echo=$ac_try;;
23574 esac
23575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23576 $as_echo "$ac_try_echo") >&5
23577 (eval "$ac_link") 2>conftest.er1
23578 ac_status=$?
23579 grep -v '^ *+' conftest.er1 >conftest.err
23580 rm -f conftest.er1
23581 cat conftest.err >&5
23582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); } && {
23584 test -z "$ac_c_werror_flag" ||
23585 test ! -s conftest.err
23586 } && test -s conftest$ac_exeext && {
23587 test "$cross_compiling" = yes ||
23588 $as_test_x conftest$ac_exeext
23589 }; then
23590 eval "$as_ac_var=yes"
23591 else
23592 $as_echo "$as_me: failed program was:" >&5
23593 sed 's/^/| /' conftest.$ac_ext >&5
23594
23595 eval "$as_ac_var=no"
23596 fi
23597
23598 rm -rf conftest.dSYM
23599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23600 conftest$ac_exeext conftest.$ac_ext
23601 fi
23602 ac_res=`eval 'as_val=${'$as_ac_var'}
23603 $as_echo "$as_val"'`
23604 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23605 $as_echo "$ac_res" >&6; }
23606 if test `eval 'as_val=${'$as_ac_var'}
23607 $as_echo "$as_val"'` = yes; then
23608 cat >>confdefs.h <<_ACEOF
23609 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23610 _ACEOF
23611
23612 fi
23613 done
23614
23615 if test $ac_cv_func_gettimeofday = yes; then
23616 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
23617 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23618 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23619 $as_echo_n "(cached) " >&6
23620 else
23621 cat >conftest.$ac_ext <<_ACEOF
23622 /* confdefs.h. */
23623 _ACEOF
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h. */
23627
23628 #ifdef TIME_WITH_SYS_TIME
23629 #include <sys/time.h>
23630 #include <time.h>
23631 #else
23632 #ifdef HAVE_SYS_TIME_H
23633 #include <sys/time.h>
23634 #else
23635 #include <time.h>
23636 #endif
23637 #endif
23638 int
23639 main ()
23640 {
23641 struct timeval time;
23642 gettimeofday (&time, 0);
23643 ;
23644 return 0;
23645 }
23646 _ACEOF
23647 rm -f conftest.$ac_objext
23648 if { (ac_try="$ac_compile"
23649 case "(($ac_try" in
23650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23651 *) ac_try_echo=$ac_try;;
23652 esac
23653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23654 $as_echo "$ac_try_echo") >&5
23655 (eval "$ac_compile") 2>conftest.er1
23656 ac_status=$?
23657 grep -v '^ *+' conftest.er1 >conftest.err
23658 rm -f conftest.er1
23659 cat conftest.err >&5
23660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); } && {
23662 test -z "$ac_c_werror_flag" ||
23663 test ! -s conftest.err
23664 } && test -s conftest.$ac_objext; then
23665 emacs_cv_gettimeofday_two_arguments=yes
23666 else
23667 $as_echo "$as_me: failed program was:" >&5
23668 sed 's/^/| /' conftest.$ac_ext >&5
23669
23670 emacs_cv_gettimeofday_two_arguments=no
23671 fi
23672
23673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23674 fi
23675 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
23676 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23677 if test $emacs_cv_gettimeofday_two_arguments = no; then
23678
23679 cat >>confdefs.h <<\_ACEOF
23680 #define GETTIMEOFDAY_ONE_ARGUMENT 1
23681 _ACEOF
23682
23683 fi
23684 fi
23685 fi
23686
23687 ok_so_far=yes
23688 { $as_echo "$as_me:$LINENO: checking for socket" >&5
23689 $as_echo_n "checking for socket... " >&6; }
23690 if test "${ac_cv_func_socket+set}" = set; then
23691 $as_echo_n "(cached) " >&6
23692 else
23693 cat >conftest.$ac_ext <<_ACEOF
23694 /* confdefs.h. */
23695 _ACEOF
23696 cat confdefs.h >>conftest.$ac_ext
23697 cat >>conftest.$ac_ext <<_ACEOF
23698 /* end confdefs.h. */
23699 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23701 #define socket innocuous_socket
23702
23703 /* System header to define __stub macros and hopefully few prototypes,
23704 which can conflict with char socket (); below.
23705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23706 <limits.h> exists even on freestanding compilers. */
23707
23708 #ifdef __STDC__
23709 # include <limits.h>
23710 #else
23711 # include <assert.h>
23712 #endif
23713
23714 #undef socket
23715
23716 /* Override any GCC internal prototype to avoid an error.
23717 Use char because int might match the return type of a GCC
23718 builtin and then its argument prototype would still apply. */
23719 #ifdef __cplusplus
23720 extern "C"
23721 #endif
23722 char socket ();
23723 /* The GNU C library defines this for functions which it implements
23724 to always fail with ENOSYS. Some functions are actually named
23725 something starting with __ and the normal name is an alias. */
23726 #if defined __stub_socket || defined __stub___socket
23727 choke me
23728 #endif
23729
23730 int
23731 main ()
23732 {
23733 return socket ();
23734 ;
23735 return 0;
23736 }
23737 _ACEOF
23738 rm -f conftest.$ac_objext conftest$ac_exeext
23739 if { (ac_try="$ac_link"
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_link") 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); } && {
23753 test -z "$ac_c_werror_flag" ||
23754 test ! -s conftest.err
23755 } && test -s conftest$ac_exeext && {
23756 test "$cross_compiling" = yes ||
23757 $as_test_x conftest$ac_exeext
23758 }; then
23759 ac_cv_func_socket=yes
23760 else
23761 $as_echo "$as_me: failed program was:" >&5
23762 sed 's/^/| /' conftest.$ac_ext >&5
23763
23764 ac_cv_func_socket=no
23765 fi
23766
23767 rm -rf conftest.dSYM
23768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23769 conftest$ac_exeext conftest.$ac_ext
23770 fi
23771 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23772 $as_echo "$ac_cv_func_socket" >&6; }
23773 if test $ac_cv_func_socket = yes; then
23774 :
23775 else
23776 ok_so_far=no
23777 fi
23778
23779 if test $ok_so_far = yes; then
23780 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23781 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23782 $as_echo_n "checking for netinet/in.h... " >&6; }
23783 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23784 $as_echo_n "(cached) " >&6
23785 fi
23786 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23787 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23788 else
23789 # Is the header compilable?
23790 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
23791 $as_echo_n "checking netinet/in.h usability... " >&6; }
23792 cat >conftest.$ac_ext <<_ACEOF
23793 /* confdefs.h. */
23794 _ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h. */
23798 $ac_includes_default
23799 #include <netinet/in.h>
23800 _ACEOF
23801 rm -f conftest.$ac_objext
23802 if { (ac_try="$ac_compile"
23803 case "(($ac_try" in
23804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805 *) ac_try_echo=$ac_try;;
23806 esac
23807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23808 $as_echo "$ac_try_echo") >&5
23809 (eval "$ac_compile") 2>conftest.er1
23810 ac_status=$?
23811 grep -v '^ *+' conftest.er1 >conftest.err
23812 rm -f conftest.er1
23813 cat conftest.err >&5
23814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815 (exit $ac_status); } && {
23816 test -z "$ac_c_werror_flag" ||
23817 test ! -s conftest.err
23818 } && test -s conftest.$ac_objext; then
23819 ac_header_compiler=yes
23820 else
23821 $as_echo "$as_me: failed program was:" >&5
23822 sed 's/^/| /' conftest.$ac_ext >&5
23823
23824 ac_header_compiler=no
23825 fi
23826
23827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23828 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23829 $as_echo "$ac_header_compiler" >&6; }
23830
23831 # Is the header present?
23832 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
23833 $as_echo_n "checking netinet/in.h presence... " >&6; }
23834 cat >conftest.$ac_ext <<_ACEOF
23835 /* confdefs.h. */
23836 _ACEOF
23837 cat confdefs.h >>conftest.$ac_ext
23838 cat >>conftest.$ac_ext <<_ACEOF
23839 /* end confdefs.h. */
23840 #include <netinet/in.h>
23841 _ACEOF
23842 if { (ac_try="$ac_cpp conftest.$ac_ext"
23843 case "(($ac_try" in
23844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23845 *) ac_try_echo=$ac_try;;
23846 esac
23847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23848 $as_echo "$ac_try_echo") >&5
23849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23850 ac_status=$?
23851 grep -v '^ *+' conftest.er1 >conftest.err
23852 rm -f conftest.er1
23853 cat conftest.err >&5
23854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855 (exit $ac_status); } >/dev/null && {
23856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23857 test ! -s conftest.err
23858 }; then
23859 ac_header_preproc=yes
23860 else
23861 $as_echo "$as_me: failed program was:" >&5
23862 sed 's/^/| /' conftest.$ac_ext >&5
23863
23864 ac_header_preproc=no
23865 fi
23866
23867 rm -f conftest.err conftest.$ac_ext
23868 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23869 $as_echo "$ac_header_preproc" >&6; }
23870
23871 # So? What about this header?
23872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23873 yes:no: )
23874 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
23875 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23876 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
23877 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
23878 ac_header_preproc=yes
23879 ;;
23880 no:yes:* )
23881 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
23882 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
23883 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
23884 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
23885 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
23886 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
23887 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
23888 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
23889 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
23890 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
23891 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
23892 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
23893
23894 ;;
23895 esac
23896 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23897 $as_echo_n "checking for netinet/in.h... " >&6; }
23898 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23899 $as_echo_n "(cached) " >&6
23900 else
23901 ac_cv_header_netinet_in_h=$ac_header_preproc
23902 fi
23903 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23904 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23905
23906 fi
23907 if test $ac_cv_header_netinet_in_h = yes; then
23908 :
23909 else
23910 ok_so_far=no
23911 fi
23912
23913
23914 fi
23915 if test $ok_so_far = yes; then
23916 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23917 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23918 $as_echo_n "checking for arpa/inet.h... " >&6; }
23919 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23920 $as_echo_n "(cached) " >&6
23921 fi
23922 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23923 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
23924 else
23925 # Is the header compilable?
23926 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23927 $as_echo_n "checking arpa/inet.h usability... " >&6; }
23928 cat >conftest.$ac_ext <<_ACEOF
23929 /* confdefs.h. */
23930 _ACEOF
23931 cat confdefs.h >>conftest.$ac_ext
23932 cat >>conftest.$ac_ext <<_ACEOF
23933 /* end confdefs.h. */
23934 $ac_includes_default
23935 #include <arpa/inet.h>
23936 _ACEOF
23937 rm -f conftest.$ac_objext
23938 if { (ac_try="$ac_compile"
23939 case "(($ac_try" in
23940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23941 *) ac_try_echo=$ac_try;;
23942 esac
23943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23944 $as_echo "$ac_try_echo") >&5
23945 (eval "$ac_compile") 2>conftest.er1
23946 ac_status=$?
23947 grep -v '^ *+' conftest.er1 >conftest.err
23948 rm -f conftest.er1
23949 cat conftest.err >&5
23950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951 (exit $ac_status); } && {
23952 test -z "$ac_c_werror_flag" ||
23953 test ! -s conftest.err
23954 } && test -s conftest.$ac_objext; then
23955 ac_header_compiler=yes
23956 else
23957 $as_echo "$as_me: failed program was:" >&5
23958 sed 's/^/| /' conftest.$ac_ext >&5
23959
23960 ac_header_compiler=no
23961 fi
23962
23963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23964 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23965 $as_echo "$ac_header_compiler" >&6; }
23966
23967 # Is the header present?
23968 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23969 $as_echo_n "checking arpa/inet.h presence... " >&6; }
23970 cat >conftest.$ac_ext <<_ACEOF
23971 /* confdefs.h. */
23972 _ACEOF
23973 cat confdefs.h >>conftest.$ac_ext
23974 cat >>conftest.$ac_ext <<_ACEOF
23975 /* end confdefs.h. */
23976 #include <arpa/inet.h>
23977 _ACEOF
23978 if { (ac_try="$ac_cpp conftest.$ac_ext"
23979 case "(($ac_try" in
23980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23981 *) ac_try_echo=$ac_try;;
23982 esac
23983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23984 $as_echo "$ac_try_echo") >&5
23985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23986 ac_status=$?
23987 grep -v '^ *+' conftest.er1 >conftest.err
23988 rm -f conftest.er1
23989 cat conftest.err >&5
23990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991 (exit $ac_status); } >/dev/null && {
23992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23993 test ! -s conftest.err
23994 }; then
23995 ac_header_preproc=yes
23996 else
23997 $as_echo "$as_me: failed program was:" >&5
23998 sed 's/^/| /' conftest.$ac_ext >&5
23999
24000 ac_header_preproc=no
24001 fi
24002
24003 rm -f conftest.err conftest.$ac_ext
24004 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24005 $as_echo "$ac_header_preproc" >&6; }
24006
24007 # So? What about this header?
24008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24009 yes:no: )
24010 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24011 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24012 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24013 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24014 ac_header_preproc=yes
24015 ;;
24016 no:yes:* )
24017 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24018 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24019 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24020 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24021 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24022 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24023 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24024 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24025 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24026 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24027 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24028 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24029
24030 ;;
24031 esac
24032 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24033 $as_echo_n "checking for arpa/inet.h... " >&6; }
24034 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24035 $as_echo_n "(cached) " >&6
24036 else
24037 ac_cv_header_arpa_inet_h=$ac_header_preproc
24038 fi
24039 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24040 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24041
24042 fi
24043 if test $ac_cv_header_arpa_inet_h = yes; then
24044 :
24045 else
24046 ok_so_far=no
24047 fi
24048
24049
24050 fi
24051 if test $ok_so_far = yes; then
24052
24053 cat >>confdefs.h <<\_ACEOF
24054 #define HAVE_INET_SOCKETS 1
24055 _ACEOF
24056
24057 fi
24058
24059
24060 for ac_header in sys/ioctl.h
24061 do
24062 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24064 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24065 $as_echo_n "checking for $ac_header... " >&6; }
24066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24067 $as_echo_n "(cached) " >&6
24068 fi
24069 ac_res=`eval 'as_val=${'$as_ac_Header'}
24070 $as_echo "$as_val"'`
24071 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24072 $as_echo "$ac_res" >&6; }
24073 else
24074 # Is the header compilable?
24075 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24076 $as_echo_n "checking $ac_header usability... " >&6; }
24077 cat >conftest.$ac_ext <<_ACEOF
24078 /* confdefs.h. */
24079 _ACEOF
24080 cat confdefs.h >>conftest.$ac_ext
24081 cat >>conftest.$ac_ext <<_ACEOF
24082 /* end confdefs.h. */
24083 $ac_includes_default
24084 #include <$ac_header>
24085 _ACEOF
24086 rm -f conftest.$ac_objext
24087 if { (ac_try="$ac_compile"
24088 case "(($ac_try" in
24089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24090 *) ac_try_echo=$ac_try;;
24091 esac
24092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24093 $as_echo "$ac_try_echo") >&5
24094 (eval "$ac_compile") 2>conftest.er1
24095 ac_status=$?
24096 grep -v '^ *+' conftest.er1 >conftest.err
24097 rm -f conftest.er1
24098 cat conftest.err >&5
24099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100 (exit $ac_status); } && {
24101 test -z "$ac_c_werror_flag" ||
24102 test ! -s conftest.err
24103 } && test -s conftest.$ac_objext; then
24104 ac_header_compiler=yes
24105 else
24106 $as_echo "$as_me: failed program was:" >&5
24107 sed 's/^/| /' conftest.$ac_ext >&5
24108
24109 ac_header_compiler=no
24110 fi
24111
24112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24113 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24114 $as_echo "$ac_header_compiler" >&6; }
24115
24116 # Is the header present?
24117 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24118 $as_echo_n "checking $ac_header presence... " >&6; }
24119 cat >conftest.$ac_ext <<_ACEOF
24120 /* confdefs.h. */
24121 _ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h. */
24125 #include <$ac_header>
24126 _ACEOF
24127 if { (ac_try="$ac_cpp conftest.$ac_ext"
24128 case "(($ac_try" in
24129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24130 *) ac_try_echo=$ac_try;;
24131 esac
24132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24133 $as_echo "$ac_try_echo") >&5
24134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24135 ac_status=$?
24136 grep -v '^ *+' conftest.er1 >conftest.err
24137 rm -f conftest.er1
24138 cat conftest.err >&5
24139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140 (exit $ac_status); } >/dev/null && {
24141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24142 test ! -s conftest.err
24143 }; then
24144 ac_header_preproc=yes
24145 else
24146 $as_echo "$as_me: failed program was:" >&5
24147 sed 's/^/| /' conftest.$ac_ext >&5
24148
24149 ac_header_preproc=no
24150 fi
24151
24152 rm -f conftest.err conftest.$ac_ext
24153 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24154 $as_echo "$ac_header_preproc" >&6; }
24155
24156 # So? What about this header?
24157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24158 yes:no: )
24159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24160 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24162 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24163 ac_header_preproc=yes
24164 ;;
24165 no:yes:* )
24166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24167 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24169 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24171 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24173 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24175 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24177 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24178
24179 ;;
24180 esac
24181 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24182 $as_echo_n "checking for $ac_header... " >&6; }
24183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24184 $as_echo_n "(cached) " >&6
24185 else
24186 eval "$as_ac_Header=\$ac_header_preproc"
24187 fi
24188 ac_res=`eval 'as_val=${'$as_ac_Header'}
24189 $as_echo "$as_val"'`
24190 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24191 $as_echo "$ac_res" >&6; }
24192
24193 fi
24194 if test `eval 'as_val=${'$as_ac_Header'}
24195 $as_echo "$as_val"'` = yes; then
24196 cat >>confdefs.h <<_ACEOF
24197 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24198 _ACEOF
24199
24200 fi
24201
24202 done
24203
24204
24205 if test -f /usr/lpp/X11/bin/smt.exp; then
24206
24207 cat >>confdefs.h <<\_ACEOF
24208 #define HAVE_AIX_SMT_EXP 1
24209 _ACEOF
24210
24211 fi
24212
24213 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24214 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24215 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24216 { $as_echo "$as_me:$LINENO: result: yes" >&5
24217 $as_echo "yes" >&6; }
24218
24219 cat >>confdefs.h <<\_ACEOF
24220 #define HAVE_DEV_PTMX 1
24221 _ACEOF
24222
24223 else
24224 { $as_echo "$as_me:$LINENO: result: no" >&5
24225 $as_echo "no" >&6; }
24226 fi
24227
24228 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24229 $as_echo_n "checking for pid_t... " >&6; }
24230 if test "${ac_cv_type_pid_t+set}" = set; then
24231 $as_echo_n "(cached) " >&6
24232 else
24233 ac_cv_type_pid_t=no
24234 cat >conftest.$ac_ext <<_ACEOF
24235 /* confdefs.h. */
24236 _ACEOF
24237 cat confdefs.h >>conftest.$ac_ext
24238 cat >>conftest.$ac_ext <<_ACEOF
24239 /* end confdefs.h. */
24240 $ac_includes_default
24241 int
24242 main ()
24243 {
24244 if (sizeof (pid_t))
24245 return 0;
24246 ;
24247 return 0;
24248 }
24249 _ACEOF
24250 rm -f conftest.$ac_objext
24251 if { (ac_try="$ac_compile"
24252 case "(($ac_try" in
24253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254 *) ac_try_echo=$ac_try;;
24255 esac
24256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24257 $as_echo "$ac_try_echo") >&5
24258 (eval "$ac_compile") 2>conftest.er1
24259 ac_status=$?
24260 grep -v '^ *+' conftest.er1 >conftest.err
24261 rm -f conftest.er1
24262 cat conftest.err >&5
24263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); } && {
24265 test -z "$ac_c_werror_flag" ||
24266 test ! -s conftest.err
24267 } && test -s conftest.$ac_objext; then
24268 cat >conftest.$ac_ext <<_ACEOF
24269 /* confdefs.h. */
24270 _ACEOF
24271 cat confdefs.h >>conftest.$ac_ext
24272 cat >>conftest.$ac_ext <<_ACEOF
24273 /* end confdefs.h. */
24274 $ac_includes_default
24275 int
24276 main ()
24277 {
24278 if (sizeof ((pid_t)))
24279 return 0;
24280 ;
24281 return 0;
24282 }
24283 _ACEOF
24284 rm -f conftest.$ac_objext
24285 if { (ac_try="$ac_compile"
24286 case "(($ac_try" in
24287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24288 *) ac_try_echo=$ac_try;;
24289 esac
24290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24291 $as_echo "$ac_try_echo") >&5
24292 (eval "$ac_compile") 2>conftest.er1
24293 ac_status=$?
24294 grep -v '^ *+' conftest.er1 >conftest.err
24295 rm -f conftest.er1
24296 cat conftest.err >&5
24297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); } && {
24299 test -z "$ac_c_werror_flag" ||
24300 test ! -s conftest.err
24301 } && test -s conftest.$ac_objext; then
24302 :
24303 else
24304 $as_echo "$as_me: failed program was:" >&5
24305 sed 's/^/| /' conftest.$ac_ext >&5
24306
24307 ac_cv_type_pid_t=yes
24308 fi
24309
24310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24311 else
24312 $as_echo "$as_me: failed program was:" >&5
24313 sed 's/^/| /' conftest.$ac_ext >&5
24314
24315
24316 fi
24317
24318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24319 fi
24320 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24321 $as_echo "$ac_cv_type_pid_t" >&6; }
24322 if test $ac_cv_type_pid_t = yes; then
24323 :
24324 else
24325
24326 cat >>confdefs.h <<_ACEOF
24327 #define pid_t int
24328 _ACEOF
24329
24330 fi
24331
24332
24333 for ac_header in vfork.h
24334 do
24335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24337 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24338 $as_echo_n "checking for $ac_header... " >&6; }
24339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24340 $as_echo_n "(cached) " >&6
24341 fi
24342 ac_res=`eval 'as_val=${'$as_ac_Header'}
24343 $as_echo "$as_val"'`
24344 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24345 $as_echo "$ac_res" >&6; }
24346 else
24347 # Is the header compilable?
24348 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24349 $as_echo_n "checking $ac_header usability... " >&6; }
24350 cat >conftest.$ac_ext <<_ACEOF
24351 /* confdefs.h. */
24352 _ACEOF
24353 cat confdefs.h >>conftest.$ac_ext
24354 cat >>conftest.$ac_ext <<_ACEOF
24355 /* end confdefs.h. */
24356 $ac_includes_default
24357 #include <$ac_header>
24358 _ACEOF
24359 rm -f conftest.$ac_objext
24360 if { (ac_try="$ac_compile"
24361 case "(($ac_try" in
24362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24363 *) ac_try_echo=$ac_try;;
24364 esac
24365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24366 $as_echo "$ac_try_echo") >&5
24367 (eval "$ac_compile") 2>conftest.er1
24368 ac_status=$?
24369 grep -v '^ *+' conftest.er1 >conftest.err
24370 rm -f conftest.er1
24371 cat conftest.err >&5
24372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373 (exit $ac_status); } && {
24374 test -z "$ac_c_werror_flag" ||
24375 test ! -s conftest.err
24376 } && test -s conftest.$ac_objext; then
24377 ac_header_compiler=yes
24378 else
24379 $as_echo "$as_me: failed program was:" >&5
24380 sed 's/^/| /' conftest.$ac_ext >&5
24381
24382 ac_header_compiler=no
24383 fi
24384
24385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24386 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24387 $as_echo "$ac_header_compiler" >&6; }
24388
24389 # Is the header present?
24390 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24391 $as_echo_n "checking $ac_header presence... " >&6; }
24392 cat >conftest.$ac_ext <<_ACEOF
24393 /* confdefs.h. */
24394 _ACEOF
24395 cat confdefs.h >>conftest.$ac_ext
24396 cat >>conftest.$ac_ext <<_ACEOF
24397 /* end confdefs.h. */
24398 #include <$ac_header>
24399 _ACEOF
24400 if { (ac_try="$ac_cpp conftest.$ac_ext"
24401 case "(($ac_try" in
24402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24403 *) ac_try_echo=$ac_try;;
24404 esac
24405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24406 $as_echo "$ac_try_echo") >&5
24407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24408 ac_status=$?
24409 grep -v '^ *+' conftest.er1 >conftest.err
24410 rm -f conftest.er1
24411 cat conftest.err >&5
24412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413 (exit $ac_status); } >/dev/null && {
24414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24415 test ! -s conftest.err
24416 }; then
24417 ac_header_preproc=yes
24418 else
24419 $as_echo "$as_me: failed program was:" >&5
24420 sed 's/^/| /' conftest.$ac_ext >&5
24421
24422 ac_header_preproc=no
24423 fi
24424
24425 rm -f conftest.err conftest.$ac_ext
24426 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24427 $as_echo "$ac_header_preproc" >&6; }
24428
24429 # So? What about this header?
24430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24431 yes:no: )
24432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24433 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24435 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24436 ac_header_preproc=yes
24437 ;;
24438 no:yes:* )
24439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24440 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24442 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24444 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24446 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24448 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24450 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24451
24452 ;;
24453 esac
24454 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24455 $as_echo_n "checking for $ac_header... " >&6; }
24456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24457 $as_echo_n "(cached) " >&6
24458 else
24459 eval "$as_ac_Header=\$ac_header_preproc"
24460 fi
24461 ac_res=`eval 'as_val=${'$as_ac_Header'}
24462 $as_echo "$as_val"'`
24463 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24464 $as_echo "$ac_res" >&6; }
24465
24466 fi
24467 if test `eval 'as_val=${'$as_ac_Header'}
24468 $as_echo "$as_val"'` = yes; then
24469 cat >>confdefs.h <<_ACEOF
24470 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24471 _ACEOF
24472
24473 fi
24474
24475 done
24476
24477
24478
24479 for ac_func in fork vfork
24480 do
24481 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24482 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24483 $as_echo_n "checking for $ac_func... " >&6; }
24484 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24485 $as_echo_n "(cached) " >&6
24486 else
24487 cat >conftest.$ac_ext <<_ACEOF
24488 /* confdefs.h. */
24489 _ACEOF
24490 cat confdefs.h >>conftest.$ac_ext
24491 cat >>conftest.$ac_ext <<_ACEOF
24492 /* end confdefs.h. */
24493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24495 #define $ac_func innocuous_$ac_func
24496
24497 /* System header to define __stub macros and hopefully few prototypes,
24498 which can conflict with char $ac_func (); below.
24499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24500 <limits.h> exists even on freestanding compilers. */
24501
24502 #ifdef __STDC__
24503 # include <limits.h>
24504 #else
24505 # include <assert.h>
24506 #endif
24507
24508 #undef $ac_func
24509
24510 /* Override any GCC internal prototype to avoid an error.
24511 Use char because int might match the return type of a GCC
24512 builtin and then its argument prototype would still apply. */
24513 #ifdef __cplusplus
24514 extern "C"
24515 #endif
24516 char $ac_func ();
24517 /* The GNU C library defines this for functions which it implements
24518 to always fail with ENOSYS. Some functions are actually named
24519 something starting with __ and the normal name is an alias. */
24520 #if defined __stub_$ac_func || defined __stub___$ac_func
24521 choke me
24522 #endif
24523
24524 int
24525 main ()
24526 {
24527 return $ac_func ();
24528 ;
24529 return 0;
24530 }
24531 _ACEOF
24532 rm -f conftest.$ac_objext conftest$ac_exeext
24533 if { (ac_try="$ac_link"
24534 case "(($ac_try" in
24535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24536 *) ac_try_echo=$ac_try;;
24537 esac
24538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24539 $as_echo "$ac_try_echo") >&5
24540 (eval "$ac_link") 2>conftest.er1
24541 ac_status=$?
24542 grep -v '^ *+' conftest.er1 >conftest.err
24543 rm -f conftest.er1
24544 cat conftest.err >&5
24545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); } && {
24547 test -z "$ac_c_werror_flag" ||
24548 test ! -s conftest.err
24549 } && test -s conftest$ac_exeext && {
24550 test "$cross_compiling" = yes ||
24551 $as_test_x conftest$ac_exeext
24552 }; then
24553 eval "$as_ac_var=yes"
24554 else
24555 $as_echo "$as_me: failed program was:" >&5
24556 sed 's/^/| /' conftest.$ac_ext >&5
24557
24558 eval "$as_ac_var=no"
24559 fi
24560
24561 rm -rf conftest.dSYM
24562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24563 conftest$ac_exeext conftest.$ac_ext
24564 fi
24565 ac_res=`eval 'as_val=${'$as_ac_var'}
24566 $as_echo "$as_val"'`
24567 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24568 $as_echo "$ac_res" >&6; }
24569 if test `eval 'as_val=${'$as_ac_var'}
24570 $as_echo "$as_val"'` = yes; then
24571 cat >>confdefs.h <<_ACEOF
24572 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24573 _ACEOF
24574
24575 fi
24576 done
24577
24578 if test "x$ac_cv_func_fork" = xyes; then
24579 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
24580 $as_echo_n "checking for working fork... " >&6; }
24581 if test "${ac_cv_func_fork_works+set}" = set; then
24582 $as_echo_n "(cached) " >&6
24583 else
24584 if test "$cross_compiling" = yes; then
24585 ac_cv_func_fork_works=cross
24586 else
24587 cat >conftest.$ac_ext <<_ACEOF
24588 /* confdefs.h. */
24589 _ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h. */
24593 $ac_includes_default
24594 int
24595 main ()
24596 {
24597
24598 /* By Ruediger Kuhlmann. */
24599 return fork () < 0;
24600
24601 ;
24602 return 0;
24603 }
24604 _ACEOF
24605 rm -f conftest$ac_exeext
24606 if { (ac_try="$ac_link"
24607 case "(($ac_try" in
24608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24609 *) ac_try_echo=$ac_try;;
24610 esac
24611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24612 $as_echo "$ac_try_echo") >&5
24613 (eval "$ac_link") 2>&5
24614 ac_status=$?
24615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24617 { (case "(($ac_try" in
24618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24619 *) ac_try_echo=$ac_try;;
24620 esac
24621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24622 $as_echo "$ac_try_echo") >&5
24623 (eval "$ac_try") 2>&5
24624 ac_status=$?
24625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); }; }; then
24627 ac_cv_func_fork_works=yes
24628 else
24629 $as_echo "$as_me: program exited with status $ac_status" >&5
24630 $as_echo "$as_me: failed program was:" >&5
24631 sed 's/^/| /' conftest.$ac_ext >&5
24632
24633 ( exit $ac_status )
24634 ac_cv_func_fork_works=no
24635 fi
24636 rm -rf conftest.dSYM
24637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24638 fi
24639
24640
24641 fi
24642 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24643 $as_echo "$ac_cv_func_fork_works" >&6; }
24644
24645 else
24646 ac_cv_func_fork_works=$ac_cv_func_fork
24647 fi
24648 if test "x$ac_cv_func_fork_works" = xcross; then
24649 case $host in
24650 *-*-amigaos* | *-*-msdosdjgpp*)
24651 # Override, as these systems have only a dummy fork() stub
24652 ac_cv_func_fork_works=no
24653 ;;
24654 *)
24655 ac_cv_func_fork_works=yes
24656 ;;
24657 esac
24658 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24659 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24660 fi
24661 ac_cv_func_vfork_works=$ac_cv_func_vfork
24662 if test "x$ac_cv_func_vfork" = xyes; then
24663 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
24664 $as_echo_n "checking for working vfork... " >&6; }
24665 if test "${ac_cv_func_vfork_works+set}" = set; then
24666 $as_echo_n "(cached) " >&6
24667 else
24668 if test "$cross_compiling" = yes; then
24669 ac_cv_func_vfork_works=cross
24670 else
24671 cat >conftest.$ac_ext <<_ACEOF
24672 /* confdefs.h. */
24673 _ACEOF
24674 cat confdefs.h >>conftest.$ac_ext
24675 cat >>conftest.$ac_ext <<_ACEOF
24676 /* end confdefs.h. */
24677 /* Thanks to Paul Eggert for this test. */
24678 $ac_includes_default
24679 #include <sys/wait.h>
24680 #ifdef HAVE_VFORK_H
24681 # include <vfork.h>
24682 #endif
24683 /* On some sparc systems, changes by the child to local and incoming
24684 argument registers are propagated back to the parent. The compiler
24685 is told about this with #include <vfork.h>, but some compilers
24686 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24687 static variable whose address is put into a register that is
24688 clobbered by the vfork. */
24689 static void
24690 #ifdef __cplusplus
24691 sparc_address_test (int arg)
24692 # else
24693 sparc_address_test (arg) int arg;
24694 #endif
24695 {
24696 static pid_t child;
24697 if (!child) {
24698 child = vfork ();
24699 if (child < 0) {
24700 perror ("vfork");
24701 _exit(2);
24702 }
24703 if (!child) {
24704 arg = getpid();
24705 write(-1, "", 0);
24706 _exit (arg);
24707 }
24708 }
24709 }
24710
24711 int
24712 main ()
24713 {
24714 pid_t parent = getpid ();
24715 pid_t child;
24716
24717 sparc_address_test (0);
24718
24719 child = vfork ();
24720
24721 if (child == 0) {
24722 /* Here is another test for sparc vfork register problems. This
24723 test uses lots of local variables, at least as many local
24724 variables as main has allocated so far including compiler
24725 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24726 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24727 reuse the register of parent for one of the local variables,
24728 since it will think that parent can't possibly be used any more
24729 in this routine. Assigning to the local variable will thus
24730 munge parent in the parent process. */
24731 pid_t
24732 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24733 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24734 /* Convince the compiler that p..p7 are live; otherwise, it might
24735 use the same hardware register for all 8 local variables. */
24736 if (p != p1 || p != p2 || p != p3 || p != p4
24737 || p != p5 || p != p6 || p != p7)
24738 _exit(1);
24739
24740 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24741 from child file descriptors. If the child closes a descriptor
24742 before it execs or exits, this munges the parent's descriptor
24743 as well. Test for this by closing stdout in the child. */
24744 _exit(close(fileno(stdout)) != 0);
24745 } else {
24746 int status;
24747 struct stat st;
24748
24749 while (wait(&status) != child)
24750 ;
24751 return (
24752 /* Was there some problem with vforking? */
24753 child < 0
24754
24755 /* Did the child fail? (This shouldn't happen.) */
24756 || status
24757
24758 /* Did the vfork/compiler bug occur? */
24759 || parent != getpid()
24760
24761 /* Did the file descriptor bug occur? */
24762 || fstat(fileno(stdout), &st) != 0
24763 );
24764 }
24765 }
24766 _ACEOF
24767 rm -f conftest$ac_exeext
24768 if { (ac_try="$ac_link"
24769 case "(($ac_try" in
24770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24771 *) ac_try_echo=$ac_try;;
24772 esac
24773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24774 $as_echo "$ac_try_echo") >&5
24775 (eval "$ac_link") 2>&5
24776 ac_status=$?
24777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24779 { (case "(($ac_try" in
24780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24781 *) ac_try_echo=$ac_try;;
24782 esac
24783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24784 $as_echo "$ac_try_echo") >&5
24785 (eval "$ac_try") 2>&5
24786 ac_status=$?
24787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); }; }; then
24789 ac_cv_func_vfork_works=yes
24790 else
24791 $as_echo "$as_me: program exited with status $ac_status" >&5
24792 $as_echo "$as_me: failed program was:" >&5
24793 sed 's/^/| /' conftest.$ac_ext >&5
24794
24795 ( exit $ac_status )
24796 ac_cv_func_vfork_works=no
24797 fi
24798 rm -rf conftest.dSYM
24799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24800 fi
24801
24802
24803 fi
24804 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24805 $as_echo "$ac_cv_func_vfork_works" >&6; }
24806
24807 fi;
24808 if test "x$ac_cv_func_fork_works" = xcross; then
24809 ac_cv_func_vfork_works=$ac_cv_func_vfork
24810 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24811 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24812 fi
24813
24814 if test "x$ac_cv_func_vfork_works" = xyes; then
24815
24816 cat >>confdefs.h <<\_ACEOF
24817 #define HAVE_WORKING_VFORK 1
24818 _ACEOF
24819
24820 else
24821
24822 cat >>confdefs.h <<\_ACEOF
24823 #define vfork fork
24824 _ACEOF
24825
24826 fi
24827 if test "x$ac_cv_func_fork_works" = xyes; then
24828
24829 cat >>confdefs.h <<\_ACEOF
24830 #define HAVE_WORKING_FORK 1
24831 _ACEOF
24832
24833 fi
24834
24835
24836 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
24837 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
24838 if test "${emacs_cv_langinfo_codeset+set}" = set; then
24839 $as_echo_n "(cached) " >&6
24840 else
24841 cat >conftest.$ac_ext <<_ACEOF
24842 /* confdefs.h. */
24843 _ACEOF
24844 cat confdefs.h >>conftest.$ac_ext
24845 cat >>conftest.$ac_ext <<_ACEOF
24846 /* end confdefs.h. */
24847 #include <langinfo.h>
24848 int
24849 main ()
24850 {
24851 char* cs = nl_langinfo(CODESET);
24852 ;
24853 return 0;
24854 }
24855 _ACEOF
24856 rm -f conftest.$ac_objext conftest$ac_exeext
24857 if { (ac_try="$ac_link"
24858 case "(($ac_try" in
24859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24860 *) ac_try_echo=$ac_try;;
24861 esac
24862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24863 $as_echo "$ac_try_echo") >&5
24864 (eval "$ac_link") 2>conftest.er1
24865 ac_status=$?
24866 grep -v '^ *+' conftest.er1 >conftest.err
24867 rm -f conftest.er1
24868 cat conftest.err >&5
24869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); } && {
24871 test -z "$ac_c_werror_flag" ||
24872 test ! -s conftest.err
24873 } && test -s conftest$ac_exeext && {
24874 test "$cross_compiling" = yes ||
24875 $as_test_x conftest$ac_exeext
24876 }; then
24877 emacs_cv_langinfo_codeset=yes
24878 else
24879 $as_echo "$as_me: failed program was:" >&5
24880 sed 's/^/| /' conftest.$ac_ext >&5
24881
24882 emacs_cv_langinfo_codeset=no
24883 fi
24884
24885 rm -rf conftest.dSYM
24886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24887 conftest$ac_exeext conftest.$ac_ext
24888
24889 fi
24890 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
24891 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
24892 if test $emacs_cv_langinfo_codeset = yes; then
24893
24894 cat >>confdefs.h <<\_ACEOF
24895 #define HAVE_LANGINFO_CODESET 1
24896 _ACEOF
24897
24898 fi
24899
24900 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
24901 $as_echo_n "checking for size_t... " >&6; }
24902 if test "${ac_cv_type_size_t+set}" = set; then
24903 $as_echo_n "(cached) " >&6
24904 else
24905 ac_cv_type_size_t=no
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 int
24914 main ()
24915 {
24916 if (sizeof (size_t))
24917 return 0;
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 cat >conftest.$ac_ext <<_ACEOF
24941 /* confdefs.h. */
24942 _ACEOF
24943 cat confdefs.h >>conftest.$ac_ext
24944 cat >>conftest.$ac_ext <<_ACEOF
24945 /* end confdefs.h. */
24946 $ac_includes_default
24947 int
24948 main ()
24949 {
24950 if (sizeof ((size_t)))
24951 return 0;
24952 ;
24953 return 0;
24954 }
24955 _ACEOF
24956 rm -f conftest.$ac_objext
24957 if { (ac_try="$ac_compile"
24958 case "(($ac_try" in
24959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24960 *) ac_try_echo=$ac_try;;
24961 esac
24962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24963 $as_echo "$ac_try_echo") >&5
24964 (eval "$ac_compile") 2>conftest.er1
24965 ac_status=$?
24966 grep -v '^ *+' conftest.er1 >conftest.err
24967 rm -f conftest.er1
24968 cat conftest.err >&5
24969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970 (exit $ac_status); } && {
24971 test -z "$ac_c_werror_flag" ||
24972 test ! -s conftest.err
24973 } && test -s conftest.$ac_objext; then
24974 :
24975 else
24976 $as_echo "$as_me: failed program was:" >&5
24977 sed 's/^/| /' conftest.$ac_ext >&5
24978
24979 ac_cv_type_size_t=yes
24980 fi
24981
24982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24983 else
24984 $as_echo "$as_me: failed program was:" >&5
24985 sed 's/^/| /' conftest.$ac_ext >&5
24986
24987
24988 fi
24989
24990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24991 fi
24992 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24993 $as_echo "$ac_cv_type_size_t" >&6; }
24994 if test $ac_cv_type_size_t = yes; then
24995
24996 cat >>confdefs.h <<_ACEOF
24997 #define HAVE_SIZE_T 1
24998 _ACEOF
24999
25000
25001 fi
25002
25003
25004 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25005 $as_echo_n "checking for mbstate_t... " >&6; }
25006 if test "${ac_cv_type_mbstate_t+set}" = set; then
25007 $as_echo_n "(cached) " >&6
25008 else
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 $ac_includes_default
25016 # include <wchar.h>
25017 int
25018 main ()
25019 {
25020 mbstate_t x; return sizeof x;
25021 ;
25022 return 0;
25023 }
25024 _ACEOF
25025 rm -f conftest.$ac_objext
25026 if { (ac_try="$ac_compile"
25027 case "(($ac_try" in
25028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25029 *) ac_try_echo=$ac_try;;
25030 esac
25031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25032 $as_echo "$ac_try_echo") >&5
25033 (eval "$ac_compile") 2>conftest.er1
25034 ac_status=$?
25035 grep -v '^ *+' conftest.er1 >conftest.err
25036 rm -f conftest.er1
25037 cat conftest.err >&5
25038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039 (exit $ac_status); } && {
25040 test -z "$ac_c_werror_flag" ||
25041 test ! -s conftest.err
25042 } && test -s conftest.$ac_objext; then
25043 ac_cv_type_mbstate_t=yes
25044 else
25045 $as_echo "$as_me: failed program was:" >&5
25046 sed 's/^/| /' conftest.$ac_ext >&5
25047
25048 ac_cv_type_mbstate_t=no
25049 fi
25050
25051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25052 fi
25053 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25054 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25055 if test $ac_cv_type_mbstate_t = yes; then
25056
25057 cat >>confdefs.h <<\_ACEOF
25058 #define HAVE_MBSTATE_T 1
25059 _ACEOF
25060
25061 else
25062
25063 cat >>confdefs.h <<\_ACEOF
25064 #define mbstate_t int
25065 _ACEOF
25066
25067 fi
25068
25069 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25070 $as_echo_n "checking for C restrict keyword... " >&6; }
25071 if test "${emacs_cv_c_restrict+set}" = set; then
25072 $as_echo_n "(cached) " >&6
25073 else
25074 cat >conftest.$ac_ext <<_ACEOF
25075 /* confdefs.h. */
25076 _ACEOF
25077 cat confdefs.h >>conftest.$ac_ext
25078 cat >>conftest.$ac_ext <<_ACEOF
25079 /* end confdefs.h. */
25080 void fred (int *restrict x);
25081 int
25082 main ()
25083 {
25084
25085 ;
25086 return 0;
25087 }
25088 _ACEOF
25089 rm -f conftest.$ac_objext
25090 if { (ac_try="$ac_compile"
25091 case "(($ac_try" in
25092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25093 *) ac_try_echo=$ac_try;;
25094 esac
25095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25096 $as_echo "$ac_try_echo") >&5
25097 (eval "$ac_compile") 2>conftest.er1
25098 ac_status=$?
25099 grep -v '^ *+' conftest.er1 >conftest.err
25100 rm -f conftest.er1
25101 cat conftest.err >&5
25102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103 (exit $ac_status); } && {
25104 test -z "$ac_c_werror_flag" ||
25105 test ! -s conftest.err
25106 } && test -s conftest.$ac_objext; then
25107 emacs_cv_c_restrict=yes
25108 else
25109 $as_echo "$as_me: failed program was:" >&5
25110 sed 's/^/| /' conftest.$ac_ext >&5
25111
25112 cat >conftest.$ac_ext <<_ACEOF
25113 /* confdefs.h. */
25114 _ACEOF
25115 cat confdefs.h >>conftest.$ac_ext
25116 cat >>conftest.$ac_ext <<_ACEOF
25117 /* end confdefs.h. */
25118 void fred (int *__restrict x);
25119 int
25120 main ()
25121 {
25122
25123 ;
25124 return 0;
25125 }
25126 _ACEOF
25127 rm -f conftest.$ac_objext
25128 if { (ac_try="$ac_compile"
25129 case "(($ac_try" in
25130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25131 *) ac_try_echo=$ac_try;;
25132 esac
25133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25134 $as_echo "$ac_try_echo") >&5
25135 (eval "$ac_compile") 2>conftest.er1
25136 ac_status=$?
25137 grep -v '^ *+' conftest.er1 >conftest.err
25138 rm -f conftest.er1
25139 cat conftest.err >&5
25140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); } && {
25142 test -z "$ac_c_werror_flag" ||
25143 test ! -s conftest.err
25144 } && test -s conftest.$ac_objext; then
25145 emacs_cv_c_restrict=__restrict
25146 else
25147 $as_echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25149
25150 emacs_cv_c_restrict=no
25151 fi
25152
25153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25154 fi
25155
25156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25157 fi
25158 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25159 $as_echo "$emacs_cv_c_restrict" >&6; }
25160 case "$emacs_cv_c_restrict" in
25161 yes) emacs_restrict=restrict;;
25162 no) emacs_restrict="";;
25163 *) emacs_restrict="$emacs_cv_c_restrict";;
25164 esac
25165 if test "$emacs_restrict" != __restrict; then
25166
25167 cat >>confdefs.h <<_ACEOF
25168 #define __restrict $emacs_restrict
25169 _ACEOF
25170
25171 fi
25172
25173 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25174 $as_echo_n "checking for C restricted array declarations... " >&6; }
25175 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25176 $as_echo_n "(cached) " >&6
25177 else
25178 cat >conftest.$ac_ext <<_ACEOF
25179 /* confdefs.h. */
25180 _ACEOF
25181 cat confdefs.h >>conftest.$ac_ext
25182 cat >>conftest.$ac_ext <<_ACEOF
25183 /* end confdefs.h. */
25184 void fred (int x[__restrict]);
25185 int
25186 main ()
25187 {
25188
25189 ;
25190 return 0;
25191 }
25192 _ACEOF
25193 rm -f conftest.$ac_objext
25194 if { (ac_try="$ac_compile"
25195 case "(($ac_try" in
25196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25197 *) ac_try_echo=$ac_try;;
25198 esac
25199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25200 $as_echo "$ac_try_echo") >&5
25201 (eval "$ac_compile") 2>conftest.er1
25202 ac_status=$?
25203 grep -v '^ *+' conftest.er1 >conftest.err
25204 rm -f conftest.er1
25205 cat conftest.err >&5
25206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); } && {
25208 test -z "$ac_c_werror_flag" ||
25209 test ! -s conftest.err
25210 } && test -s conftest.$ac_objext; then
25211 emacs_cv_c_restrict_arr=yes
25212 else
25213 $as_echo "$as_me: failed program was:" >&5
25214 sed 's/^/| /' conftest.$ac_ext >&5
25215
25216 emacs_cv_c_restrict_arr=no
25217 fi
25218
25219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25220 fi
25221 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25222 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25223 if test "$emacs_cv_c_restrict_arr" = yes; then
25224
25225 cat >>confdefs.h <<\_ACEOF
25226 #define __restrict_arr __restrict
25227 _ACEOF
25228
25229 fi
25230
25231
25232
25233 # Set up the CFLAGS for real compilation, so we can substitute it.
25234 CFLAGS="$REAL_CFLAGS"
25235 CPPFLAGS="$REAL_CPPFLAGS"
25236
25237 #### Find out which version of Emacs this is.
25238 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25239 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25240 if test x"${version}" = x; then
25241 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25242 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25243 { (exit 1); exit 1; }; }
25244 fi
25245 if test x"${version}" != x"$PACKAGE_VERSION"; then
25246 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25247 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25248 fi
25249
25250 ### Specify what sort of things we'll be editing into Makefile and config.h.
25251 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25252
25253
25254
25255
25256
25257
25258
25259
25260
25261
25262
25263
25264
25265
25266
25267
25268
25269
25270
25271
25272
25273
25274
25275
25276
25277
25278
25279
25280
25281
25282
25283
25284
25285
25286
25287
25288
25289
25290
25291
25292
25293
25294
25295 cat >>confdefs.h <<_ACEOF
25296 #define EMACS_CONFIGURATION "${canonical}"
25297 _ACEOF
25298
25299
25300 cat >>confdefs.h <<_ACEOF
25301 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25302 _ACEOF
25303
25304
25305 cat >>confdefs.h <<_ACEOF
25306 #define config_machfile "${machfile}"
25307 _ACEOF
25308
25309
25310 cat >>confdefs.h <<_ACEOF
25311 #define config_opsysfile "${opsysfile}"
25312 _ACEOF
25313
25314
25315 cat >>confdefs.h <<_ACEOF
25316 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25317 _ACEOF
25318
25319
25320 cat >>confdefs.h <<_ACEOF
25321 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25322 _ACEOF
25323
25324
25325 cat >>confdefs.h <<_ACEOF
25326 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25327 _ACEOF
25328
25329
25330 cat >>confdefs.h <<_ACEOF
25331 #define UNEXEC_SRC ${UNEXEC_SRC}
25332 _ACEOF
25333
25334
25335 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25336
25337 cat >>confdefs.h <<\_ACEOF
25338 #define HAVE_X_WINDOWS 1
25339 _ACEOF
25340
25341 fi
25342 if test "${USE_X_TOOLKIT}" != "none" ; then
25343
25344 cat >>confdefs.h <<\_ACEOF
25345 #define USE_X_TOOLKIT 1
25346 _ACEOF
25347
25348 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25349
25350 cat >>confdefs.h <<\_ACEOF
25351 #define USE_LUCID 1
25352 _ACEOF
25353
25354 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25355
25356 cat >>confdefs.h <<\_ACEOF
25357 #define USE_MOTIF 1
25358 _ACEOF
25359
25360 fi
25361 fi
25362 if test "${HAVE_X11}" = "yes" ; then
25363
25364 cat >>confdefs.h <<\_ACEOF
25365 #define HAVE_X11 1
25366 _ACEOF
25367
25368 fi
25369 if test "${HAVE_MENUS}" = "yes" ; then
25370
25371 cat >>confdefs.h <<\_ACEOF
25372 #define HAVE_MENUS 1
25373 _ACEOF
25374
25375 fi
25376 if test "${GNU_MALLOC}" = "yes" ; then
25377
25378 cat >>confdefs.h <<\_ACEOF
25379 #define GNU_MALLOC 1
25380 _ACEOF
25381
25382 fi
25383 if test "${REL_ALLOC}" = "yes" ; then
25384
25385 cat >>confdefs.h <<\_ACEOF
25386 #define REL_ALLOC 1
25387 _ACEOF
25388
25389 fi
25390
25391
25392
25393
25394
25395
25396 #### Report on what we decided to do.
25397 #### Report GTK as a toolkit, even if it doesn't use Xt.
25398 #### It makes printing result more understandable as using GTK sets
25399 #### toolkit_scroll_bars to yes by default.
25400 if test "${HAVE_GTK}" = "yes"; then
25401 USE_X_TOOLKIT=GTK
25402 fi
25403
25404 echo "
25405 Configured for \`${canonical}'.
25406
25407 Where should the build process find the source code? ${srcdir}
25408 What operating system and machine description files should Emacs use?
25409 \`${opsysfile}' and \`${machfile}'
25410 What compiler should emacs be built with? ${CC} ${CFLAGS}
25411 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25412 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25413 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25414 What window system should Emacs use? ${window_system}
25415 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25416
25417 if test -n "${x_includes}"; then
25418 echo " Where do we find X Windows header files? ${x_includes}"
25419 else
25420 echo " Where do we find X Windows header files? Standard dirs"
25421 fi
25422 if test -n "${x_libraries}"; then
25423 echo " Where do we find X Windows libraries? ${x_libraries}"
25424 else
25425 echo " Where do we find X Windows libraries? Standard dirs"
25426 fi
25427
25428 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25429 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25430 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25431 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25432 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
25433 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25434 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25435 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25436 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25437
25438 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25439 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25440 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25441 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25442
25443 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25444 echo
25445
25446 if test $USE_XASSERTS = yes; then
25447 echo " Compiling with asserts turned on."
25448 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
25449 fi
25450
25451 echo
25452
25453 if test "$USE_X_TOOLKIT" = GTK; then
25454 case "$canonical" in
25455 *cygwin*)
25456 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
25457 will probably get a crash on startup. If this happens, please use another
25458 toolkit for Emacs. See etc/PROBLEMS for more information."
25459 ;;
25460 esac
25461 fi
25462
25463 if test "$HAVE_NS" = "yes"; then
25464 echo
25465 echo "You must run \"make install\" in order to test the built application.
25466 The installed application will go to nextstep/Emacs.app and can be
25467 run or moved from there."
25468 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25469 echo "The application will be fully self-contained."
25470 else
25471 echo "The lisp resources for the application will be installed under ${prefix}.
25472 You may need to run \"make install\" with sudo. The application will fail
25473 to run if these resources are not installed."
25474 fi
25475 echo
25476 fi
25477
25478 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25479 echo "D-Bus integration has been tested for GNU/Linux only."
25480 echo
25481 fi
25482
25483
25484 # Remove any trailing slashes in these variables.
25485 test "${prefix}" != NONE &&
25486 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25487 test "${exec_prefix}" != NONE &&
25488 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25489
25490 # Now get this: Some word that is part of the ${srcdir} directory name
25491 # or the ${configuration} value might, just might, happen to be an
25492 # identifier like `sun4' or `i386' or something, and be predefined by
25493 # the C preprocessor to some helpful value like 1, or maybe the empty
25494 # string. Needless to say consequent macro substitutions are less
25495 # than conducive to the makefile finding the correct directory.
25496 cpp_undefs="`echo $srcdir $configuration $canonical |
25497 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25498 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25499
25500 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25501 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25502 ## from Makefile.c can correctly provide the arg `-traditional' to the
25503 ## C preprocessor.
25504
25505 cat >conftest.$ac_ext <<_ACEOF
25506 /* confdefs.h. */
25507 _ACEOF
25508 cat confdefs.h >>conftest.$ac_ext
25509 cat >>conftest.$ac_ext <<_ACEOF
25510 /* end confdefs.h. */
25511 yes..yes
25512 _ACEOF
25513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25514 $EGREP "yes..yes" >/dev/null 2>&1; then
25515 CPP_NEED_TRADITIONAL=no
25516 else
25517 CPP_NEED_TRADITIONAL=yes
25518 fi
25519 rm -f conftest*
25520
25521
25522 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"
25523
25524 ac_config_commands="$ac_config_commands default"
25525
25526 cat >confcache <<\_ACEOF
25527 # This file is a shell script that caches the results of configure
25528 # tests run on this system so they can be shared between configure
25529 # scripts and configure runs, see configure's option --config-cache.
25530 # It is not useful on other systems. If it contains results you don't
25531 # want to keep, you may remove or edit it.
25532 #
25533 # config.status only pays attention to the cache file if you give it
25534 # the --recheck option to rerun configure.
25535 #
25536 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25537 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25538 # following values.
25539
25540 _ACEOF
25541
25542 # The following way of writing the cache mishandles newlines in values,
25543 # but we know of no workaround that is simple, portable, and efficient.
25544 # So, we kill variables containing newlines.
25545 # Ultrix sh set writes to stderr and can't be redirected directly,
25546 # and sets the high bit in the cache file unless we assign to the vars.
25547 (
25548 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25549 eval ac_val=\$$ac_var
25550 case $ac_val in #(
25551 *${as_nl}*)
25552 case $ac_var in #(
25553 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25554 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25555 esac
25556 case $ac_var in #(
25557 _ | IFS | as_nl) ;; #(
25558 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25559 *) $as_unset $ac_var ;;
25560 esac ;;
25561 esac
25562 done
25563
25564 (set) 2>&1 |
25565 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25566 *${as_nl}ac_space=\ *)
25567 # `set' does not quote correctly, so add quotes (double-quote
25568 # substitution turns \\\\ into \\, and sed turns \\ into \).
25569 sed -n \
25570 "s/'/'\\\\''/g;
25571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25572 ;; #(
25573 *)
25574 # `set' quotes correctly as required by POSIX, so do not add quotes.
25575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25576 ;;
25577 esac |
25578 sort
25579 ) |
25580 sed '
25581 /^ac_cv_env_/b end
25582 t clear
25583 :clear
25584 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25585 t end
25586 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25587 :end' >>confcache
25588 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25589 if test -w "$cache_file"; then
25590 test "x$cache_file" != "x/dev/null" &&
25591 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25592 $as_echo "$as_me: updating cache $cache_file" >&6;}
25593 cat confcache >$cache_file
25594 else
25595 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25596 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25597 fi
25598 fi
25599 rm -f confcache
25600
25601 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25602 # Let make expand exec_prefix.
25603 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25604
25605 DEFS=-DHAVE_CONFIG_H
25606
25607 ac_libobjs=
25608 ac_ltlibobjs=
25609 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25610 # 1. Remove the extension, and $U if already installed.
25611 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25612 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25613 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25614 # will be set to the directory where LIBOBJS objects are built.
25615 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25616 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25617 done
25618 LIBOBJS=$ac_libobjs
25619
25620 LTLIBOBJS=$ac_ltlibobjs
25621
25622
25623
25624 : ${CONFIG_STATUS=./config.status}
25625 ac_write_fail=0
25626 ac_clean_files_save=$ac_clean_files
25627 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25628 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25629 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25630 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25631 #! $SHELL
25632 # Generated by $as_me.
25633 # Run this file to recreate the current configuration.
25634 # Compiler output produced by configure, useful for debugging
25635 # configure, is in config.log if it exists.
25636
25637 debug=false
25638 ac_cs_recheck=false
25639 ac_cs_silent=false
25640 SHELL=\${CONFIG_SHELL-$SHELL}
25641 _ACEOF
25642
25643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25644 ## --------------------- ##
25645 ## M4sh Initialization. ##
25646 ## --------------------- ##
25647
25648 # Be more Bourne compatible
25649 DUALCASE=1; export DUALCASE # for MKS sh
25650 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25651 emulate sh
25652 NULLCMD=:
25653 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25654 # is contrary to our usage. Disable this feature.
25655 alias -g '${1+"$@"}'='"$@"'
25656 setopt NO_GLOB_SUBST
25657 else
25658 case `(set -o) 2>/dev/null` in
25659 *posix*) set -o posix ;;
25660 esac
25661
25662 fi
25663
25664
25665
25666
25667 # PATH needs CR
25668 # Avoid depending upon Character Ranges.
25669 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25670 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25671 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25672 as_cr_digits='0123456789'
25673 as_cr_alnum=$as_cr_Letters$as_cr_digits
25674
25675 as_nl='
25676 '
25677 export as_nl
25678 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25679 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25680 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25681 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25682 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25683 as_echo='printf %s\n'
25684 as_echo_n='printf %s'
25685 else
25686 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25687 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25688 as_echo_n='/usr/ucb/echo -n'
25689 else
25690 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25691 as_echo_n_body='eval
25692 arg=$1;
25693 case $arg in
25694 *"$as_nl"*)
25695 expr "X$arg" : "X\\(.*\\)$as_nl";
25696 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25697 esac;
25698 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25699 '
25700 export as_echo_n_body
25701 as_echo_n='sh -c $as_echo_n_body as_echo'
25702 fi
25703 export as_echo_body
25704 as_echo='sh -c $as_echo_body as_echo'
25705 fi
25706
25707 # The user is always right.
25708 if test "${PATH_SEPARATOR+set}" != set; then
25709 PATH_SEPARATOR=:
25710 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25711 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25712 PATH_SEPARATOR=';'
25713 }
25714 fi
25715
25716 # Support unset when possible.
25717 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25718 as_unset=unset
25719 else
25720 as_unset=false
25721 fi
25722
25723
25724 # IFS
25725 # We need space, tab and new line, in precisely that order. Quoting is
25726 # there to prevent editors from complaining about space-tab.
25727 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25728 # splitting by setting IFS to empty value.)
25729 IFS=" "" $as_nl"
25730
25731 # Find who we are. Look in the path if we contain no directory separator.
25732 case $0 in
25733 *[\\/]* ) as_myself=$0 ;;
25734 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25735 for as_dir in $PATH
25736 do
25737 IFS=$as_save_IFS
25738 test -z "$as_dir" && as_dir=.
25739 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25740 done
25741 IFS=$as_save_IFS
25742
25743 ;;
25744 esac
25745 # We did not find ourselves, most probably we were run as `sh COMMAND'
25746 # in which case we are not to be found in the path.
25747 if test "x$as_myself" = x; then
25748 as_myself=$0
25749 fi
25750 if test ! -f "$as_myself"; then
25751 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25752 { (exit 1); exit 1; }
25753 fi
25754
25755 # Work around bugs in pre-3.0 UWIN ksh.
25756 for as_var in ENV MAIL MAILPATH
25757 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25758 done
25759 PS1='$ '
25760 PS2='> '
25761 PS4='+ '
25762
25763 # NLS nuisances.
25764 LC_ALL=C
25765 export LC_ALL
25766 LANGUAGE=C
25767 export LANGUAGE
25768
25769 # Required to use basename.
25770 if expr a : '\(a\)' >/dev/null 2>&1 &&
25771 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25772 as_expr=expr
25773 else
25774 as_expr=false
25775 fi
25776
25777 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25778 as_basename=basename
25779 else
25780 as_basename=false
25781 fi
25782
25783
25784 # Name of the executable.
25785 as_me=`$as_basename -- "$0" ||
25786 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25787 X"$0" : 'X\(//\)$' \| \
25788 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25789 $as_echo X/"$0" |
25790 sed '/^.*\/\([^/][^/]*\)\/*$/{
25791 s//\1/
25792 q
25793 }
25794 /^X\/\(\/\/\)$/{
25795 s//\1/
25796 q
25797 }
25798 /^X\/\(\/\).*/{
25799 s//\1/
25800 q
25801 }
25802 s/.*/./; q'`
25803
25804 # CDPATH.
25805 $as_unset CDPATH
25806
25807
25808
25809 as_lineno_1=$LINENO
25810 as_lineno_2=$LINENO
25811 test "x$as_lineno_1" != "x$as_lineno_2" &&
25812 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25813
25814 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25815 # uniformly replaced by the line number. The first 'sed' inserts a
25816 # line-number line after each line using $LINENO; the second 'sed'
25817 # does the real work. The second script uses 'N' to pair each
25818 # line-number line with the line containing $LINENO, and appends
25819 # trailing '-' during substitution so that $LINENO is not a special
25820 # case at line end.
25821 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25822 # scripts with optimization help from Paolo Bonzini. Blame Lee
25823 # E. McMahon (1931-1989) for sed's syntax. :-)
25824 sed -n '
25825 p
25826 /[$]LINENO/=
25827 ' <$as_myself |
25828 sed '
25829 s/[$]LINENO.*/&-/
25830 t lineno
25831 b
25832 :lineno
25833 N
25834 :loop
25835 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25836 t loop
25837 s/-\n.*//
25838 ' >$as_me.lineno &&
25839 chmod +x "$as_me.lineno" ||
25840 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25841 { (exit 1); exit 1; }; }
25842
25843 # Don't try to exec as it changes $[0], causing all sort of problems
25844 # (the dirname of $[0] is not the place where we might find the
25845 # original and so on. Autoconf is especially sensitive to this).
25846 . "./$as_me.lineno"
25847 # Exit status is that of the last command.
25848 exit
25849 }
25850
25851
25852 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25853 as_dirname=dirname
25854 else
25855 as_dirname=false
25856 fi
25857
25858 ECHO_C= ECHO_N= ECHO_T=
25859 case `echo -n x` in
25860 -n*)
25861 case `echo 'x\c'` in
25862 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25863 *) ECHO_C='\c';;
25864 esac;;
25865 *)
25866 ECHO_N='-n';;
25867 esac
25868 if expr a : '\(a\)' >/dev/null 2>&1 &&
25869 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25870 as_expr=expr
25871 else
25872 as_expr=false
25873 fi
25874
25875 rm -f conf$$ conf$$.exe conf$$.file
25876 if test -d conf$$.dir; then
25877 rm -f conf$$.dir/conf$$.file
25878 else
25879 rm -f conf$$.dir
25880 mkdir conf$$.dir 2>/dev/null
25881 fi
25882 if (echo >conf$$.file) 2>/dev/null; then
25883 if ln -s conf$$.file conf$$ 2>/dev/null; then
25884 as_ln_s='ln -s'
25885 # ... but there are two gotchas:
25886 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25887 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25888 # In both cases, we have to default to `cp -p'.
25889 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25890 as_ln_s='cp -p'
25891 elif ln conf$$.file conf$$ 2>/dev/null; then
25892 as_ln_s=ln
25893 else
25894 as_ln_s='cp -p'
25895 fi
25896 else
25897 as_ln_s='cp -p'
25898 fi
25899 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25900 rmdir conf$$.dir 2>/dev/null
25901
25902 if mkdir -p . 2>/dev/null; then
25903 as_mkdir_p=:
25904 else
25905 test -d ./-p && rmdir ./-p
25906 as_mkdir_p=false
25907 fi
25908
25909 if test -x / >/dev/null 2>&1; then
25910 as_test_x='test -x'
25911 else
25912 if ls -dL / >/dev/null 2>&1; then
25913 as_ls_L_option=L
25914 else
25915 as_ls_L_option=
25916 fi
25917 as_test_x='
25918 eval sh -c '\''
25919 if test -d "$1"; then
25920 test -d "$1/.";
25921 else
25922 case $1 in
25923 -*)set "./$1";;
25924 esac;
25925 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25926 ???[sx]*):;;*)false;;esac;fi
25927 '\'' sh
25928 '
25929 fi
25930 as_executable_p=$as_test_x
25931
25932 # Sed expression to map a string onto a valid CPP name.
25933 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25934
25935 # Sed expression to map a string onto a valid variable name.
25936 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25937
25938
25939 exec 6>&1
25940
25941 # Save the log message, to keep $[0] and so on meaningful, and to
25942 # report actual input values of CONFIG_FILES etc. instead of their
25943 # values after options handling.
25944 ac_log="
25945 This file was extended by emacs $as_me 23.1.50, which was
25946 generated by GNU Autoconf 2.62. Invocation command line was
25947
25948 CONFIG_FILES = $CONFIG_FILES
25949 CONFIG_HEADERS = $CONFIG_HEADERS
25950 CONFIG_LINKS = $CONFIG_LINKS
25951 CONFIG_COMMANDS = $CONFIG_COMMANDS
25952 $ $0 $@
25953
25954 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25955 "
25956
25957 _ACEOF
25958
25959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25960 # Files that config.status was made for.
25961 config_files="$ac_config_files"
25962 config_headers="$ac_config_headers"
25963 config_commands="$ac_config_commands"
25964
25965 _ACEOF
25966
25967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25968 ac_cs_usage="\
25969 \`$as_me' instantiates files from templates according to the
25970 current configuration.
25971
25972 Usage: $0 [OPTIONS] [FILE]...
25973
25974 -h, --help print this help, then exit
25975 -V, --version print version number and configuration settings, then exit
25976 -q, --quiet do not print progress messages
25977 -d, --debug don't remove temporary files
25978 --recheck update $as_me by reconfiguring in the same conditions
25979 --file=FILE[:TEMPLATE]
25980 instantiate the configuration file FILE
25981 --header=FILE[:TEMPLATE]
25982 instantiate the configuration header FILE
25983
25984 Configuration files:
25985 $config_files
25986
25987 Configuration headers:
25988 $config_headers
25989
25990 Configuration commands:
25991 $config_commands
25992
25993 Report bugs to <bug-autoconf@gnu.org>."
25994
25995 _ACEOF
25996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25997 ac_cs_version="\\
25998 emacs config.status 23.1.50
25999 configured by $0, generated by GNU Autoconf 2.62,
26000 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26001
26002 Copyright (C) 2008 Free Software Foundation, Inc.
26003 This config.status script is free software; the Free Software Foundation
26004 gives unlimited permission to copy, distribute and modify it."
26005
26006 ac_pwd='$ac_pwd'
26007 srcdir='$srcdir'
26008 INSTALL='$INSTALL'
26009 test -n "\$AWK" || AWK=awk
26010 _ACEOF
26011
26012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26013 # The default lists apply if the user does not specify any file.
26014 ac_need_defaults=:
26015 while test $# != 0
26016 do
26017 case $1 in
26018 --*=*)
26019 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26020 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26021 ac_shift=:
26022 ;;
26023 *)
26024 ac_option=$1
26025 ac_optarg=$2
26026 ac_shift=shift
26027 ;;
26028 esac
26029
26030 case $ac_option in
26031 # Handling of the options.
26032 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26033 ac_cs_recheck=: ;;
26034 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26035 $as_echo "$ac_cs_version"; exit ;;
26036 --debug | --debu | --deb | --de | --d | -d )
26037 debug=: ;;
26038 --file | --fil | --fi | --f )
26039 $ac_shift
26040 case $ac_optarg in
26041 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26042 esac
26043 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26044 ac_need_defaults=false;;
26045 --header | --heade | --head | --hea )
26046 $ac_shift
26047 case $ac_optarg in
26048 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26049 esac
26050 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26051 ac_need_defaults=false;;
26052 --he | --h)
26053 # Conflict between --help and --header
26054 { $as_echo "$as_me: error: ambiguous option: $1
26055 Try \`$0 --help' for more information." >&2
26056 { (exit 1); exit 1; }; };;
26057 --help | --hel | -h )
26058 $as_echo "$ac_cs_usage"; exit ;;
26059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26060 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26061 ac_cs_silent=: ;;
26062
26063 # This is an error.
26064 -*) { $as_echo "$as_me: error: unrecognized option: $1
26065 Try \`$0 --help' for more information." >&2
26066 { (exit 1); exit 1; }; } ;;
26067
26068 *) ac_config_targets="$ac_config_targets $1"
26069 ac_need_defaults=false ;;
26070
26071 esac
26072 shift
26073 done
26074
26075 ac_configure_extra_args=
26076
26077 if $ac_cs_silent; then
26078 exec 6>/dev/null
26079 ac_configure_extra_args="$ac_configure_extra_args --silent"
26080 fi
26081
26082 _ACEOF
26083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26084 if \$ac_cs_recheck; then
26085 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26086 shift
26087 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26088 CONFIG_SHELL='$SHELL'
26089 export CONFIG_SHELL
26090 exec "\$@"
26091 fi
26092
26093 _ACEOF
26094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26095 exec 5>>config.log
26096 {
26097 echo
26098 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26099 ## Running $as_me. ##
26100 _ASBOX
26101 $as_echo "$ac_log"
26102 } >&5
26103
26104 _ACEOF
26105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26106 #
26107 # INIT-COMMANDS
26108 #
26109 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26110
26111 _ACEOF
26112
26113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26114
26115 # Handling of arguments.
26116 for ac_config_target in $ac_config_targets
26117 do
26118 case $ac_config_target in
26119 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26120 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26121 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26122 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26123 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26124 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26125 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26126 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26127 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26128 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26129 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26130 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26131 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26132
26133 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26134 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26135 { (exit 1); exit 1; }; };;
26136 esac
26137 done
26138
26139
26140 # If the user did not use the arguments to specify the items to instantiate,
26141 # then the envvar interface is used. Set only those that are not.
26142 # We use the long form for the default assignment because of an extremely
26143 # bizarre bug on SunOS 4.1.3.
26144 if $ac_need_defaults; then
26145 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26146 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26147 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26148 fi
26149
26150 # Have a temporary directory for convenience. Make it in the build tree
26151 # simply because there is no reason against having it here, and in addition,
26152 # creating and moving files from /tmp can sometimes cause problems.
26153 # Hook for its removal unless debugging.
26154 # Note that there is a small window in which the directory will not be cleaned:
26155 # after its creation but before its name has been assigned to `$tmp'.
26156 $debug ||
26157 {
26158 tmp=
26159 trap 'exit_status=$?
26160 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26161 ' 0
26162 trap '{ (exit 1); exit 1; }' 1 2 13 15
26163 }
26164 # Create a (secure) tmp directory for tmp files.
26165
26166 {
26167 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26168 test -n "$tmp" && test -d "$tmp"
26169 } ||
26170 {
26171 tmp=./conf$$-$RANDOM
26172 (umask 077 && mkdir "$tmp")
26173 } ||
26174 {
26175 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26176 { (exit 1); exit 1; }
26177 }
26178
26179 # Set up the scripts for CONFIG_FILES section.
26180 # No need to generate them if there are no CONFIG_FILES.
26181 # This happens for instance with `./config.status config.h'.
26182 if test -n "$CONFIG_FILES"; then
26183
26184
26185 ac_cr=' '
26186 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26187 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26188 ac_cs_awk_cr='\\r'
26189 else
26190 ac_cs_awk_cr=$ac_cr
26191 fi
26192
26193 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26194 _ACEOF
26195
26196
26197 {
26198 echo "cat >conf$$subs.awk <<_ACEOF" &&
26199 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26200 echo "_ACEOF"
26201 } >conf$$subs.sh ||
26202 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26203 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26204 { (exit 1); exit 1; }; }
26205 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26206 ac_delim='%!_!# '
26207 for ac_last_try in false false false false false :; do
26208 . ./conf$$subs.sh ||
26209 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26210 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26211 { (exit 1); exit 1; }; }
26212
26213 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26214 break
26215 elif $ac_last_try; then
26216 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26217 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26218 { (exit 1); exit 1; }; }
26219 else
26220 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26221 fi
26222 done
26223 rm -f conf$$subs.sh
26224
26225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26226 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26227 _ACEOF
26228 sed -n '
26229 h
26230 s/^/S["/; s/!.*/"]=/
26231 p
26232 g
26233 s/^[^!]*!//
26234 :repl
26235 t repl
26236 s/'"$ac_delim"'$//
26237 t delim
26238 :nl
26239 h
26240 s/\(.\{148\}\).*/\1/
26241 t more1
26242 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26243 p
26244 n
26245 b repl
26246 :more1
26247 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26248 p
26249 g
26250 s/.\{148\}//
26251 t nl
26252 :delim
26253 h
26254 s/\(.\{148\}\).*/\1/
26255 t more2
26256 s/["\\]/\\&/g; s/^/"/; s/$/"/
26257 p
26258 b
26259 :more2
26260 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26261 p
26262 g
26263 s/.\{148\}//
26264 t delim
26265 ' <conf$$subs.awk | sed '
26266 /^[^""]/{
26267 N
26268 s/\n//
26269 }
26270 ' >>$CONFIG_STATUS || ac_write_fail=1
26271 rm -f conf$$subs.awk
26272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26273 _ACAWK
26274 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26275 for (key in S) S_is_set[key] = 1
26276 FS = "\a"
26277
26278 }
26279 {
26280 line = $ 0
26281 nfields = split(line, field, "@")
26282 substed = 0
26283 len = length(field[1])
26284 for (i = 2; i < nfields; i++) {
26285 key = field[i]
26286 keylen = length(key)
26287 if (S_is_set[key]) {
26288 value = S[key]
26289 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26290 len += length(value) + length(field[++i])
26291 substed = 1
26292 } else
26293 len += 1 + keylen
26294 }
26295
26296 print line
26297 }
26298
26299 _ACAWK
26300 _ACEOF
26301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26302 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26303 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26304 else
26305 cat
26306 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26307 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26308 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26309 { (exit 1); exit 1; }; }
26310 _ACEOF
26311
26312 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26313 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26314 # trailing colons and then remove the whole line if VPATH becomes empty
26315 # (actually we leave an empty line to preserve line numbers).
26316 if test "x$srcdir" = x.; then
26317 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26318 s/:*\$(srcdir):*/:/
26319 s/:*\${srcdir}:*/:/
26320 s/:*@srcdir@:*/:/
26321 s/^\([^=]*=[ ]*\):*/\1/
26322 s/:*$//
26323 s/^[^=]*=[ ]*$//
26324 }'
26325 fi
26326
26327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26328 fi # test -n "$CONFIG_FILES"
26329
26330 # Set up the scripts for CONFIG_HEADERS section.
26331 # No need to generate them if there are no CONFIG_HEADERS.
26332 # This happens for instance with `./config.status Makefile'.
26333 if test -n "$CONFIG_HEADERS"; then
26334 cat >"$tmp/defines.awk" <<\_ACAWK ||
26335 BEGIN {
26336 _ACEOF
26337
26338 # Transform confdefs.h into an awk script `defines.awk', embedded as
26339 # here-document in config.status, that substitutes the proper values into
26340 # config.h.in to produce config.h.
26341
26342 # Create a delimiter string that does not exist in confdefs.h, to ease
26343 # handling of long lines.
26344 ac_delim='%!_!# '
26345 for ac_last_try in false false :; do
26346 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26347 if test -z "$ac_t"; then
26348 break
26349 elif $ac_last_try; then
26350 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26351 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26352 { (exit 1); exit 1; }; }
26353 else
26354 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26355 fi
26356 done
26357
26358 # For the awk script, D is an array of macro values keyed by name,
26359 # likewise P contains macro parameters if any. Preserve backslash
26360 # newline sequences.
26361
26362 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26363 sed -n '
26364 s/.\{148\}/&'"$ac_delim"'/g
26365 t rset
26366 :rset
26367 s/^[ ]*#[ ]*define[ ][ ]*/ /
26368 t def
26369 d
26370 :def
26371 s/\\$//
26372 t bsnl
26373 s/["\\]/\\&/g
26374 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26375 D["\1"]=" \3"/p
26376 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26377 d
26378 :bsnl
26379 s/["\\]/\\&/g
26380 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26381 D["\1"]=" \3\\\\\\n"\\/p
26382 t cont
26383 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26384 t cont
26385 d
26386 :cont
26387 n
26388 s/.\{148\}/&'"$ac_delim"'/g
26389 t clear
26390 :clear
26391 s/\\$//
26392 t bsnlc
26393 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26394 d
26395 :bsnlc
26396 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26397 b cont
26398 ' <confdefs.h | sed '
26399 s/'"$ac_delim"'/"\\\
26400 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26401
26402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26403 for (key in D) D_is_set[key] = 1
26404 FS = "\a"
26405 }
26406 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26407 line = \$ 0
26408 split(line, arg, " ")
26409 if (arg[1] == "#") {
26410 defundef = arg[2]
26411 mac1 = arg[3]
26412 } else {
26413 defundef = substr(arg[1], 2)
26414 mac1 = arg[2]
26415 }
26416 split(mac1, mac2, "(") #)
26417 macro = mac2[1]
26418 if (D_is_set[macro]) {
26419 # Preserve the white space surrounding the "#".
26420 prefix = substr(line, 1, index(line, defundef) - 1)
26421 print prefix "define", macro P[macro] D[macro]
26422 next
26423 } else {
26424 # Replace #undef with comments. This is necessary, for example,
26425 # in the case of _POSIX_SOURCE, which is predefined and required
26426 # on some systems where configure will not decide to define it.
26427 if (defundef == "undef") {
26428 print "/*", line, "*/"
26429 next
26430 }
26431 }
26432 }
26433 { print }
26434 _ACAWK
26435 _ACEOF
26436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26437 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26438 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26439 { (exit 1); exit 1; }; }
26440 fi # test -n "$CONFIG_HEADERS"
26441
26442
26443 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26444 shift
26445 for ac_tag
26446 do
26447 case $ac_tag in
26448 :[FHLC]) ac_mode=$ac_tag; continue;;
26449 esac
26450 case $ac_mode$ac_tag in
26451 :[FHL]*:*);;
26452 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26453 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26454 { (exit 1); exit 1; }; };;
26455 :[FH]-) ac_tag=-:-;;
26456 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26457 esac
26458 ac_save_IFS=$IFS
26459 IFS=:
26460 set x $ac_tag
26461 IFS=$ac_save_IFS
26462 shift
26463 ac_file=$1
26464 shift
26465
26466 case $ac_mode in
26467 :L) ac_source=$1;;
26468 :[FH])
26469 ac_file_inputs=
26470 for ac_f
26471 do
26472 case $ac_f in
26473 -) ac_f="$tmp/stdin";;
26474 *) # Look for the file first in the build tree, then in the source tree
26475 # (if the path is not absolute). The absolute path cannot be DOS-style,
26476 # because $ac_f cannot contain `:'.
26477 test -f "$ac_f" ||
26478 case $ac_f in
26479 [\\/$]*) false;;
26480 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26481 esac ||
26482 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26483 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26484 { (exit 1); exit 1; }; };;
26485 esac
26486 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26487 ac_file_inputs="$ac_file_inputs '$ac_f'"
26488 done
26489
26490 # Let's still pretend it is `configure' which instantiates (i.e., don't
26491 # use $as_me), people would be surprised to read:
26492 # /* config.h. Generated by config.status. */
26493 configure_input='Generated from '`
26494 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26495 `' by configure.'
26496 if test x"$ac_file" != x-; then
26497 configure_input="$ac_file. $configure_input"
26498 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26499 $as_echo "$as_me: creating $ac_file" >&6;}
26500 fi
26501 # Neutralize special characters interpreted by sed in replacement strings.
26502 case $configure_input in #(
26503 *\&* | *\|* | *\\* )
26504 ac_sed_conf_input=`$as_echo "$configure_input" |
26505 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26506 *) ac_sed_conf_input=$configure_input;;
26507 esac
26508
26509 case $ac_tag in
26510 *:-:* | *:-) cat >"$tmp/stdin" \
26511 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26512 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26513 { (exit 1); exit 1; }; } ;;
26514 esac
26515 ;;
26516 esac
26517
26518 ac_dir=`$as_dirname -- "$ac_file" ||
26519 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26520 X"$ac_file" : 'X\(//\)[^/]' \| \
26521 X"$ac_file" : 'X\(//\)$' \| \
26522 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26523 $as_echo X"$ac_file" |
26524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26525 s//\1/
26526 q
26527 }
26528 /^X\(\/\/\)[^/].*/{
26529 s//\1/
26530 q
26531 }
26532 /^X\(\/\/\)$/{
26533 s//\1/
26534 q
26535 }
26536 /^X\(\/\).*/{
26537 s//\1/
26538 q
26539 }
26540 s/.*/./; q'`
26541 { as_dir="$ac_dir"
26542 case $as_dir in #(
26543 -*) as_dir=./$as_dir;;
26544 esac
26545 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26546 as_dirs=
26547 while :; do
26548 case $as_dir in #(
26549 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26550 *) as_qdir=$as_dir;;
26551 esac
26552 as_dirs="'$as_qdir' $as_dirs"
26553 as_dir=`$as_dirname -- "$as_dir" ||
26554 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26555 X"$as_dir" : 'X\(//\)[^/]' \| \
26556 X"$as_dir" : 'X\(//\)$' \| \
26557 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26558 $as_echo X"$as_dir" |
26559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26560 s//\1/
26561 q
26562 }
26563 /^X\(\/\/\)[^/].*/{
26564 s//\1/
26565 q
26566 }
26567 /^X\(\/\/\)$/{
26568 s//\1/
26569 q
26570 }
26571 /^X\(\/\).*/{
26572 s//\1/
26573 q
26574 }
26575 s/.*/./; q'`
26576 test -d "$as_dir" && break
26577 done
26578 test -z "$as_dirs" || eval "mkdir $as_dirs"
26579 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26580 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26581 { (exit 1); exit 1; }; }; }
26582 ac_builddir=.
26583
26584 case "$ac_dir" in
26585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26586 *)
26587 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26588 # A ".." for each directory in $ac_dir_suffix.
26589 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26590 case $ac_top_builddir_sub in
26591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26593 esac ;;
26594 esac
26595 ac_abs_top_builddir=$ac_pwd
26596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26597 # for backward compatibility:
26598 ac_top_builddir=$ac_top_build_prefix
26599
26600 case $srcdir in
26601 .) # We are building in place.
26602 ac_srcdir=.
26603 ac_top_srcdir=$ac_top_builddir_sub
26604 ac_abs_top_srcdir=$ac_pwd ;;
26605 [\\/]* | ?:[\\/]* ) # Absolute name.
26606 ac_srcdir=$srcdir$ac_dir_suffix;
26607 ac_top_srcdir=$srcdir
26608 ac_abs_top_srcdir=$srcdir ;;
26609 *) # Relative name.
26610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26611 ac_top_srcdir=$ac_top_build_prefix$srcdir
26612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26613 esac
26614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26615
26616
26617 case $ac_mode in
26618 :F)
26619 #
26620 # CONFIG_FILE
26621 #
26622
26623 case $INSTALL in
26624 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26625 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26626 esac
26627 _ACEOF
26628
26629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26630 # If the template does not know about datarootdir, expand it.
26631 # FIXME: This hack should be removed a few years after 2.60.
26632 ac_datarootdir_hack=; ac_datarootdir_seen=
26633
26634 ac_sed_dataroot='
26635 /datarootdir/ {
26636 p
26637 q
26638 }
26639 /@datadir@/p
26640 /@docdir@/p
26641 /@infodir@/p
26642 /@localedir@/p
26643 /@mandir@/p
26644 '
26645 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26646 *datarootdir*) ac_datarootdir_seen=yes;;
26647 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26648 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26649 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26650 _ACEOF
26651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26652 ac_datarootdir_hack='
26653 s&@datadir@&$datadir&g
26654 s&@docdir@&$docdir&g
26655 s&@infodir@&$infodir&g
26656 s&@localedir@&$localedir&g
26657 s&@mandir@&$mandir&g
26658 s&\\\${datarootdir}&$datarootdir&g' ;;
26659 esac
26660 _ACEOF
26661
26662 # Neutralize VPATH when `$srcdir' = `.'.
26663 # Shell code in configure.ac might set extrasub.
26664 # FIXME: do we really want to maintain this feature?
26665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26666 ac_sed_extra="$ac_vpsub
26667 $extrasub
26668 _ACEOF
26669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26670 :t
26671 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26672 s|@configure_input@|$ac_sed_conf_input|;t t
26673 s&@top_builddir@&$ac_top_builddir_sub&;t t
26674 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26675 s&@srcdir@&$ac_srcdir&;t t
26676 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26677 s&@top_srcdir@&$ac_top_srcdir&;t t
26678 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26679 s&@builddir@&$ac_builddir&;t t
26680 s&@abs_builddir@&$ac_abs_builddir&;t t
26681 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26682 s&@INSTALL@&$ac_INSTALL&;t t
26683 $ac_datarootdir_hack
26684 "
26685 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26686 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26687 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26688 { (exit 1); exit 1; }; }
26689
26690 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26691 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26692 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26693 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26694 which seems to be undefined. Please make sure it is defined." >&5
26695 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26696 which seems to be undefined. Please make sure it is defined." >&2;}
26697
26698 rm -f "$tmp/stdin"
26699 case $ac_file in
26700 -) cat "$tmp/out" && rm -f "$tmp/out";;
26701 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26702 esac \
26703 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26704 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26705 { (exit 1); exit 1; }; }
26706 ;;
26707 :H)
26708 #
26709 # CONFIG_HEADER
26710 #
26711 if test x"$ac_file" != x-; then
26712 {
26713 $as_echo "/* $configure_input */" \
26714 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26715 } >"$tmp/config.h" \
26716 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26717 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26718 { (exit 1); exit 1; }; }
26719 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26720 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26721 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26722 else
26723 rm -f "$ac_file"
26724 mv "$tmp/config.h" "$ac_file" \
26725 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26726 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26727 { (exit 1); exit 1; }; }
26728 fi
26729 else
26730 $as_echo "/* $configure_input */" \
26731 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26732 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26733 $as_echo "$as_me: error: could not create -" >&2;}
26734 { (exit 1); exit 1; }; }
26735 fi
26736 ;;
26737
26738 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26739 $as_echo "$as_me: executing $ac_file commands" >&6;}
26740 ;;
26741 esac
26742
26743
26744 case $ac_file$ac_mode in
26745 "default":C)
26746
26747 ### Make the necessary directories, if they don't exist.
26748 for dir in etc lisp ; do
26749 test -d ${dir} || mkdir ${dir}
26750 done
26751
26752 # Build src/Makefile from ${srcdir}/src/Makefile.c
26753 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
26754 # This must be done after src/config.h is built, since we rely on that file.
26755
26756 echo creating src/epaths.h
26757 ${MAKE-make} epaths-force
26758
26759 # As of 2000-11-19, newest development versions of GNU cpp preprocess
26760 # `..' to `. .' unless invoked with -traditional
26761
26762 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
26763 CPPFLAGS="$CPPFLAGS -traditional"
26764 fi
26765
26766 echo creating lib-src/Makefile
26767 ( cd lib-src
26768 rm -f junk.c junk1.c junk2.c
26769 sed -e '/start of cpp stuff/q' \
26770 < Makefile.c > junk1.c
26771 sed -e '1,/start of cpp stuff/d'\
26772 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26773 < Makefile.c > junk.c
26774 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
26775 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26776 cat junk1.c junk2.c > Makefile.new
26777 rm -f junk.c junk1.c junk2.c
26778 chmod 444 Makefile.new
26779 mv -f Makefile.new Makefile
26780 )
26781
26782 echo creating src/Makefile
26783 ( cd src
26784 rm -f junk.c junk1.c junk2.c
26785 sed -e '/start of cpp stuff/q' \
26786 < Makefile.c > junk1.c
26787 sed -e '1,/start of cpp stuff/d'\
26788 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26789 < Makefile.c > junk.c
26790 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
26791 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26792 cat junk1.c junk2.c > Makefile.new
26793 rm -f junk.c junk1.c junk2.c
26794 chmod 444 Makefile.new
26795 mv -f Makefile.new Makefile
26796 )
26797
26798 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
26799 echo creating src/.gdbinit
26800 echo source $srcdir/src/.gdbinit > src/.gdbinit
26801 fi
26802
26803 ;;
26804
26805 esac
26806 done # for ac_tag
26807
26808
26809 { (exit 0); exit 0; }
26810 _ACEOF
26811 chmod +x $CONFIG_STATUS
26812 ac_clean_files=$ac_clean_files_save
26813
26814 test $ac_write_fail = 0 ||
26815 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26816 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26817 { (exit 1); exit 1; }; }
26818
26819
26820 # configure is writing to config.log, and then calls config.status.
26821 # config.status does its own redirection, appending to config.log.
26822 # Unfortunately, on DOS this fails, as config.log is still kept open
26823 # by configure, so config.status won't be able to write to it; its
26824 # output is simply discarded. So we exec the FD to /dev/null,
26825 # effectively closing config.log, so it can be properly (re)opened and
26826 # appended to by config.status. When coming back to configure, we
26827 # need to make the FD available again.
26828 if test "$no_create" != yes; then
26829 ac_cs_success=:
26830 ac_config_status_args=
26831 test "$silent" = yes &&
26832 ac_config_status_args="$ac_config_status_args --quiet"
26833 exec 5>/dev/null
26834 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26835 exec 5>>config.log
26836 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26837 # would make configure fail if this is the last instruction.
26838 $ac_cs_success || { (exit 1); exit 1; }
26839 fi
26840 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26841 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
26842 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
26843 fi
26844
26845