]> code.delx.au - gnu-emacs/blob - configure
Regenerate configure.
[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 24.0.50.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME='emacs'
596 PACKAGE_TARNAME='emacs'
597 PACKAGE_VERSION='24.0.50'
598 PACKAGE_STRING='emacs 24.0.50'
599 PACKAGE_BUGREPORT=''
600
601 ac_unique_file="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_config_libobj_dir=src
639 ac_header_list=
640 ac_func_list=
641 ac_subst_vars='SHELL
642 PATH_SEPARATOR
643 PACKAGE_NAME
644 PACKAGE_TARNAME
645 PACKAGE_VERSION
646 PACKAGE_STRING
647 PACKAGE_BUGREPORT
648 exec_prefix
649 prefix
650 program_transform_name
651 bindir
652 sbindir
653 libexecdir
654 datarootdir
655 datadir
656 sysconfdir
657 sharedstatedir
658 localstatedir
659 includedir
660 oldincludedir
661 docdir
662 infodir
663 htmldir
664 dvidir
665 pdfdir
666 psdir
667 libdir
668 localedir
669 mandir
670 DEFS
671 ECHO_C
672 ECHO_N
673 ECHO_T
674 LIBS
675 build_alias
676 host_alias
677 target_alias
678 MAINT
679 build
680 build_cpu
681 build_vendor
682 build_os
683 host
684 host_cpu
685 host_vendor
686 host_os
687 CC
688 CFLAGS
689 LDFLAGS
690 CPPFLAGS
691 ac_ct_CC
692 EXEEXT
693 OBJEXT
694 CPP
695 GREP
696 EGREP
697 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 GCONF_CFLAGS
720 GCONF_LIBS
721 LIBSELINUX_LIBS
722 FONTCONFIG_CFLAGS
723 FONTCONFIG_LIBS
724 XFT_CFLAGS
725 XFT_LIBS
726 LIBOTF_CFLAGS
727 LIBOTF_LIBS
728 M17N_FLT_CFLAGS
729 M17N_FLT_LIBS
730 FREETYPE_CFLAGS
731 FREETYPE_LIBS
732 LIBXPM
733 LIBJPEG
734 LIBPNG
735 LIBTIFF
736 LIBGIF
737 LIBGPM
738 ALLOCA
739 liblockfile
740 LIBS_MAIL
741 LIBOBJS
742 NEED_SETGID
743 KMEM_GROUP
744 GETLOADAVG_LIBS
745 GETOPT_H
746 GETOPTOBJS
747 LIBHESIOD
748 LIBRESOLV
749 COM_ERRLIB
750 CRYPTOLIB
751 KRB5LIB
752 DESLIB
753 KRB4LIB
754 version
755 configuration
756 canonical
757 srcdir
758 lispdir
759 locallisppath
760 lisppath
761 x_default_search_path
762 etcdir
763 archlibdir
764 bitmapdir
765 gamedir
766 gameuser
767 c_switch_system
768 c_switch_machine
769 LD_SWITCH_X_SITE
770 LD_SWITCH_X_SITE_AUX
771 C_SWITCH_X_SITE
772 X_TOOLKIT_TYPE
773 machfile
774 opsysfile
775 ns_appdir
776 ns_appbindir
777 ns_appresdir
778 ns_appsrc
779 GNUSTEP_MAKEFILES
780 GNUSTEP_SYSTEM_HEADERS
781 GNUSTEP_SYSTEM_LIBRARIES
782 GNU_OBJC_CFLAGS
783 LIB_SRC_EXTRA_INSTALLABLES
784 OTHER_FILES
785 LTLIBOBJS'
786 ac_subst_files=''
787 ac_user_opts='
788 enable_option_checking
789 with_pop
790 with_kerberos
791 with_kerberos5
792 with_hesiod
793 with_mmdf
794 with_mail_unlink
795 with_mailhost
796 with_sound
797 with_sync_input
798 with_x_toolkit
799 with_xpm
800 with_jpeg
801 with_tiff
802 with_gif
803 with_png
804 with_rsvg
805 with_xft
806 with_libotf
807 with_m17n_flt
808 with_toolkit_scroll_bars
809 with_xaw3d
810 with_xim
811 with_ns
812 with_gpm
813 with_dbus
814 with_gconf
815 with_selinux
816 with_makeinfo
817 with_gtk
818 with_gcc
819 with_pkg_config_prog
820 with_gnustep_conf
821 enable_ns_self_contained
822 enable_asserts
823 enable_maintainer_mode
824 enable_locallisppath
825 enable_checking
826 enable_profiling
827 enable_autodepend
828 enable_largefile
829 with_x
830 '
831 ac_precious_vars='build_alias
832 host_alias
833 target_alias
834 CC
835 CFLAGS
836 LDFLAGS
837 LIBS
838 CPPFLAGS
839 CPP
840 XMKMF'
841
842
843 # Initialize some variables set by options.
844 ac_init_help=
845 ac_init_version=false
846 ac_unrecognized_opts=
847 ac_unrecognized_sep=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
850 cache_file=/dev/null
851 exec_prefix=NONE
852 no_create=
853 no_recursion=
854 prefix=NONE
855 program_prefix=NONE
856 program_suffix=NONE
857 program_transform_name=s,x,x,
858 silent=
859 site=
860 srcdir=
861 verbose=
862 x_includes=NONE
863 x_libraries=NONE
864
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
890
891 ac_prev=
892 ac_dashdash=
893 for ac_option
894 do
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
898 ac_prev=
899 continue
900 fi
901
902 case $ac_option in
903 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *) ac_optarg=yes ;;
905 esac
906
907 # Accept the important Cygnus configure options, so we can diagnose typos.
908
909 case $ac_dashdash$ac_option in
910 --)
911 ac_dashdash=yes ;;
912
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 ac_prev=bindir ;;
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916 bindir=$ac_optarg ;;
917
918 -build | --build | --buil | --bui | --bu)
919 ac_prev=build_alias ;;
920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921 build_alias=$ac_optarg ;;
922
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928 cache_file=$ac_optarg ;;
929
930 --config-cache | -C)
931 cache_file=config.cache ;;
932
933 -datadir | --datadir | --datadi | --datad)
934 ac_prev=datadir ;;
935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
936 datadir=$ac_optarg ;;
937
938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
944
945 -disable-* | --disable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
950 { (exit 1); exit 1; }; }
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
961
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
966
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
971
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
977 { (exit 1); exit 1; }; }
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
981 *"
982 "enable_$ac_useropt"
983 "*) ;;
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
986 esac
987 eval enable_$ac_useropt=\$ac_optarg ;;
988
989 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991 | --exec | --exe | --ex)
992 ac_prev=exec_prefix ;;
993 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995 | --exec=* | --exe=* | --ex=*)
996 exec_prefix=$ac_optarg ;;
997
998 -gas | --gas | --ga | --g)
999 # Obsolete; use --with-gas.
1000 with_gas=yes ;;
1001
1002 -help | --help | --hel | --he | -h)
1003 ac_init_help=long ;;
1004 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005 ac_init_help=recursive ;;
1006 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007 ac_init_help=short ;;
1008
1009 -host | --host | --hos | --ho)
1010 ac_prev=host_alias ;;
1011 -host=* | --host=* | --hos=* | --ho=*)
1012 host_alias=$ac_optarg ;;
1013
1014 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1015 ac_prev=htmldir ;;
1016 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1017 | --ht=*)
1018 htmldir=$ac_optarg ;;
1019
1020 -includedir | --includedir | --includedi | --included | --include \
1021 | --includ | --inclu | --incl | --inc)
1022 ac_prev=includedir ;;
1023 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024 | --includ=* | --inclu=* | --incl=* | --inc=*)
1025 includedir=$ac_optarg ;;
1026
1027 -infodir | --infodir | --infodi | --infod | --info | --inf)
1028 ac_prev=infodir ;;
1029 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030 infodir=$ac_optarg ;;
1031
1032 -libdir | --libdir | --libdi | --libd)
1033 ac_prev=libdir ;;
1034 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035 libdir=$ac_optarg ;;
1036
1037 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038 | --libexe | --libex | --libe)
1039 ac_prev=libexecdir ;;
1040 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041 | --libexe=* | --libex=* | --libe=*)
1042 libexecdir=$ac_optarg ;;
1043
1044 -localedir | --localedir | --localedi | --localed | --locale)
1045 ac_prev=localedir ;;
1046 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047 localedir=$ac_optarg ;;
1048
1049 -localstatedir | --localstatedir | --localstatedi | --localstated \
1050 | --localstate | --localstat | --localsta | --localst | --locals)
1051 ac_prev=localstatedir ;;
1052 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054 localstatedir=$ac_optarg ;;
1055
1056 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1057 ac_prev=mandir ;;
1058 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059 mandir=$ac_optarg ;;
1060
1061 -nfp | --nfp | --nf)
1062 # Obsolete; use --without-fp.
1063 with_fp=no ;;
1064
1065 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066 | --no-cr | --no-c | -n)
1067 no_create=yes ;;
1068
1069 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071 no_recursion=yes ;;
1072
1073 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075 | --oldin | --oldi | --old | --ol | --o)
1076 ac_prev=oldincludedir ;;
1077 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080 oldincludedir=$ac_optarg ;;
1081
1082 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1083 ac_prev=prefix ;;
1084 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085 prefix=$ac_optarg ;;
1086
1087 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088 | --program-pre | --program-pr | --program-p)
1089 ac_prev=program_prefix ;;
1090 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092 program_prefix=$ac_optarg ;;
1093
1094 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095 | --program-suf | --program-su | --program-s)
1096 ac_prev=program_suffix ;;
1097 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099 program_suffix=$ac_optarg ;;
1100
1101 -program-transform-name | --program-transform-name \
1102 | --program-transform-nam | --program-transform-na \
1103 | --program-transform-n | --program-transform- \
1104 | --program-transform | --program-transfor \
1105 | --program-transfo | --program-transf \
1106 | --program-trans | --program-tran \
1107 | --progr-tra | --program-tr | --program-t)
1108 ac_prev=program_transform_name ;;
1109 -program-transform-name=* | --program-transform-name=* \
1110 | --program-transform-nam=* | --program-transform-na=* \
1111 | --program-transform-n=* | --program-transform-=* \
1112 | --program-transform=* | --program-transfor=* \
1113 | --program-transfo=* | --program-transf=* \
1114 | --program-trans=* | --program-tran=* \
1115 | --progr-tra=* | --program-tr=* | --program-t=*)
1116 program_transform_name=$ac_optarg ;;
1117
1118 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1119 ac_prev=pdfdir ;;
1120 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121 pdfdir=$ac_optarg ;;
1122
1123 -psdir | --psdir | --psdi | --psd | --ps)
1124 ac_prev=psdir ;;
1125 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126 psdir=$ac_optarg ;;
1127
1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129 | -silent | --silent | --silen | --sile | --sil)
1130 silent=yes ;;
1131
1132 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133 ac_prev=sbindir ;;
1134 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135 | --sbi=* | --sb=*)
1136 sbindir=$ac_optarg ;;
1137
1138 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140 | --sharedst | --shareds | --shared | --share | --shar \
1141 | --sha | --sh)
1142 ac_prev=sharedstatedir ;;
1143 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146 | --sha=* | --sh=*)
1147 sharedstatedir=$ac_optarg ;;
1148
1149 -site | --site | --sit)
1150 ac_prev=site ;;
1151 -site=* | --site=* | --sit=*)
1152 site=$ac_optarg ;;
1153
1154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155 ac_prev=srcdir ;;
1156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157 srcdir=$ac_optarg ;;
1158
1159 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160 | --syscon | --sysco | --sysc | --sys | --sy)
1161 ac_prev=sysconfdir ;;
1162 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164 sysconfdir=$ac_optarg ;;
1165
1166 -target | --target | --targe | --targ | --tar | --ta | --t)
1167 ac_prev=target_alias ;;
1168 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169 target_alias=$ac_optarg ;;
1170
1171 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172 verbose=yes ;;
1173
1174 -version | --version | --versio | --versi | --vers | -V)
1175 ac_init_version=: ;;
1176
1177 -with-* | --with-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1182 { (exit 1); exit 1; }; }
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=\$ac_optarg ;;
1193
1194 -without-* | --without-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1199 { (exit 1); exit 1; }; }
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1203 *"
1204 "with_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=no ;;
1210
1211 --x)
1212 # Obsolete; use --with-x.
1213 with_x=yes ;;
1214
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220 x_includes=$ac_optarg ;;
1221
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227 x_libraries=$ac_optarg ;;
1228
1229 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1230 Try \`$0 --help' for more information." >&2
1231 { (exit 1); exit 1; }; }
1232 ;;
1233
1234 *=*)
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1238 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1239 { (exit 1); exit 1; }; }
1240 eval $ac_envvar=\$ac_optarg
1241 export $ac_envvar ;;
1242
1243 *)
1244 # FIXME: should be removed in autoconf 3.0.
1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249 ;;
1250
1251 esac
1252 done
1253
1254 if test -n "$ac_prev"; then
1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1257 { (exit 1); exit 1; }; }
1258 fi
1259
1260 if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1262 no) ;;
1263 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1264 { (exit 1); exit 1; }; } ;;
1265 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266 esac
1267 fi
1268
1269 # Check all directory arguments for consistency.
1270 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir
1274 do
1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1277 case $ac_val in
1278 */ )
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1281 esac
1282 # Be sure to have absolute directory names.
1283 case $ac_val in
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 esac
1287 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1288 { (exit 1); exit 1; }; }
1289 done
1290
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1294 build=$build_alias
1295 host=$host_alias
1296 target=$target_alias
1297
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303 If a cross compiler is detected then cross compile mode will be used." >&2
1304 elif test "x$build_alias" != "x$host_alias"; then
1305 cross_compiling=yes
1306 fi
1307 fi
1308
1309 ac_tool_prefix=
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311
1312 test "$silent" = yes && exec 6>/dev/null
1313
1314
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1319 { (exit 1); exit 1; }; }
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1322 { (exit 1); exit 1; }; }
1323
1324
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327 ac_srcdir_defaulted=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir=`$as_dirname -- "$as_myself" ||
1330 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$as_myself" : 'X\(//\)[^/]' \| \
1332 X"$as_myself" : 'X\(//\)$' \| \
1333 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334 $as_echo X"$as_myself" |
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)[^/].*/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\).*/{
1348 s//\1/
1349 q
1350 }
1351 s/.*/./; q'`
1352 srcdir=$ac_confdir
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 srcdir=..
1355 fi
1356 else
1357 ac_srcdir_defaulted=no
1358 fi
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1362 { (exit 1); exit 1; }; }
1363 fi
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 ac_abs_confdir=`(
1366 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1367 { (exit 1); exit 1; }; }
1368 pwd)`
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 srcdir=.
1372 fi
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1376 case $srcdir in
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 esac
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1385
1386 #
1387 # Report the --help message.
1388 #
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1394
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1399
1400 Defaults for the options are specified in brackets.
1401
1402 Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 [PREFIX]
1418
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1423
1424 For better control, use the options below.
1425
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1446 _ACEOF
1447
1448 cat <<\_ACEOF
1449
1450 Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454
1455 X features:
1456 --x-includes=DIR X include files are in DIR
1457 --x-libraries=DIR X library files are in DIR
1458
1459 System types:
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 _ACEOF
1463 fi
1464
1465 if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1468 esac
1469 cat <<\_ACEOF
1470
1471 Optional Features:
1472 --disable-option-checking ignore unrecognized --enable/--with options
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475 --disable-ns-self-contained
1476 disable self contained build under NeXTstep
1477 --enable-asserts compile code with asserts enabled
1478 --enable-maintainer-mode
1479 enable make rules and dependencies not useful (and
1480 sometimes confusing) to the casual installer
1481 --enable-locallisppath=PATH
1482 directories Emacs should search for lisp files
1483 specific to this site
1484 --enable-checking[=LIST]
1485 enable expensive run-time checks. With LIST, enable
1486 only specific categories of checks. Categories are:
1487 all,yes,no. Flags are: stringbytes, stringoverrun,
1488 stringfreelist, xmallocoverrun, conslist
1489 --enable-profiling build emacs with profiling support. This might not
1490 work on all platforms
1491 --enable-autodepend automatically generate dependencies to .h-files.
1492 Requires GNU Make and Gcc. Enabled if GNU Make and
1493 Gcc is found
1494 --disable-largefile omit support for large files
1495
1496 Optional Packages:
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --without-pop don't support POP mail retrieval with movemail
1500 --with-kerberos support Kerberos-authenticated POP
1501 --with-kerberos5 support Kerberos version 5 authenticated POP
1502 --with-hesiod support Hesiod to get the POP server host
1503 --with-mmdf support MMDF mailboxes
1504 --with-mail-unlink unlink, rather than empty, mail spool after reading
1505 --with-mailhost=HOSTNAME
1506 string giving default POP mail host
1507 --without-sound don't compile with sound support
1508 --without-sync-input process async input synchronously
1509 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1510 athena, motif, no)
1511 --without-xpm don't compile with XPM image support
1512 --without-jpeg don't compile with JPEG image support
1513 --without-tiff don't compile with TIFF image support
1514 --without-gif don't compile with GIF image support
1515 --without-png don't compile with PNG image support
1516 --without-rsvg don't compile with SVG image support
1517 --without-xft don't use XFT for anti aliased fonts
1518 --without-libotf don't use libotf for OpenType font support
1519 --without-m17n-flt don't use m17n-flt for text shaping
1520 --without-toolkit-scroll-bars
1521 don't use Motif or Xaw3d scroll bars
1522 --without-xaw3d don't use Xaw3d
1523 --without-xim don't use X11 XIM
1524 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1525 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1526 console
1527 --without-dbus don't compile with D-Bus support
1528 --without-gconf don't compile with GConf support
1529 --without-selinux don't compile with SELinux support
1530 --without-makeinfo don't require makeinfo for building manuals
1531
1532 --with-pkg-config-prog=PATH
1533 path to pkg-config for finding GTK and librsvg
1534 --with-gnustep-conf=PATH
1535 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1536 or /etc/GNUstep/GNUstep.conf
1537 --with-x use the X Window System
1538
1539 Some influential environment variables:
1540 CC C compiler command
1541 CFLAGS C compiler flags
1542 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1543 nonstandard directory <lib dir>
1544 LIBS libraries to pass to the linker, e.g. -l<library>
1545 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1546 you have headers in a nonstandard directory <include dir>
1547 CPP C preprocessor
1548 XMKMF Path to xmkmf, Makefile generator for X Window System
1549
1550 Use these variables to override the choices made by `configure' or to help
1551 it to find libraries and programs with nonstandard names/locations.
1552
1553 _ACEOF
1554 ac_status=$?
1555 fi
1556
1557 if test "$ac_init_help" = "recursive"; then
1558 # If there are subdirs, report their specific --help.
1559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560 test -d "$ac_dir" ||
1561 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1562 continue
1563 ac_builddir=.
1564
1565 case "$ac_dir" in
1566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *)
1568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1569 # A ".." for each directory in $ac_dir_suffix.
1570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1571 case $ac_top_builddir_sub in
1572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574 esac ;;
1575 esac
1576 ac_abs_top_builddir=$ac_pwd
1577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578 # for backward compatibility:
1579 ac_top_builddir=$ac_top_build_prefix
1580
1581 case $srcdir in
1582 .) # We are building in place.
1583 ac_srcdir=.
1584 ac_top_srcdir=$ac_top_builddir_sub
1585 ac_abs_top_srcdir=$ac_pwd ;;
1586 [\\/]* | ?:[\\/]* ) # Absolute name.
1587 ac_srcdir=$srcdir$ac_dir_suffix;
1588 ac_top_srcdir=$srcdir
1589 ac_abs_top_srcdir=$srcdir ;;
1590 *) # Relative name.
1591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592 ac_top_srcdir=$ac_top_build_prefix$srcdir
1593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1594 esac
1595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1596
1597 cd "$ac_dir" || { ac_status=$?; continue; }
1598 # Check for guested configure.
1599 if test -f "$ac_srcdir/configure.gnu"; then
1600 echo &&
1601 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602 elif test -f "$ac_srcdir/configure"; then
1603 echo &&
1604 $SHELL "$ac_srcdir/configure" --help=recursive
1605 else
1606 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1607 fi || ac_status=$?
1608 cd "$ac_pwd" || { ac_status=$?; break; }
1609 done
1610 fi
1611
1612 test -n "$ac_init_help" && exit $ac_status
1613 if $ac_init_version; then
1614 cat <<\_ACEOF
1615 emacs configure 24.0.50
1616 generated by GNU Autoconf 2.62
1617
1618 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1619 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1620 This configure script is free software; the Free Software Foundation
1621 gives unlimited permission to copy, distribute and modify it.
1622 _ACEOF
1623 exit
1624 fi
1625 cat >config.log <<_ACEOF
1626 This file contains any messages produced by compilers while
1627 running configure, to aid debugging if configure makes a mistake.
1628
1629 It was created by emacs $as_me 24.0.50, which was
1630 generated by GNU Autoconf 2.62. Invocation command line was
1631
1632 $ $0 $@
1633
1634 _ACEOF
1635 exec 5>>config.log
1636 {
1637 cat <<_ASUNAME
1638 ## --------- ##
1639 ## Platform. ##
1640 ## --------- ##
1641
1642 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1643 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1644 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1645 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1646 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1647
1648 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1649 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1650
1651 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1652 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1653 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1654 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1655 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1656 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1657 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1658
1659 _ASUNAME
1660
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 for as_dir in $PATH
1663 do
1664 IFS=$as_save_IFS
1665 test -z "$as_dir" && as_dir=.
1666 $as_echo "PATH: $as_dir"
1667 done
1668 IFS=$as_save_IFS
1669
1670 } >&5
1671
1672 cat >&5 <<_ACEOF
1673
1674
1675 ## ----------- ##
1676 ## Core tests. ##
1677 ## ----------- ##
1678
1679 _ACEOF
1680
1681
1682 # Keep a trace of the command line.
1683 # Strip out --no-create and --no-recursion so they do not pile up.
1684 # Strip out --silent because we don't want to record it for future runs.
1685 # Also quote any args containing shell meta-characters.
1686 # Make two passes to allow for proper duplicate-argument suppression.
1687 ac_configure_args=
1688 ac_configure_args0=
1689 ac_configure_args1=
1690 ac_must_keep_next=false
1691 for ac_pass in 1 2
1692 do
1693 for ac_arg
1694 do
1695 case $ac_arg in
1696 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1698 | -silent | --silent | --silen | --sile | --sil)
1699 continue ;;
1700 *\'*)
1701 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1702 esac
1703 case $ac_pass in
1704 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1705 2)
1706 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1707 if test $ac_must_keep_next = true; then
1708 ac_must_keep_next=false # Got value, back to normal.
1709 else
1710 case $ac_arg in
1711 *=* | --config-cache | -C | -disable-* | --disable-* \
1712 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1713 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1714 | -with-* | --with-* | -without-* | --without-* | --x)
1715 case "$ac_configure_args0 " in
1716 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1717 esac
1718 ;;
1719 -* ) ac_must_keep_next=true ;;
1720 esac
1721 fi
1722 ac_configure_args="$ac_configure_args '$ac_arg'"
1723 ;;
1724 esac
1725 done
1726 done
1727 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1728 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1729
1730 # When interrupted or exit'd, cleanup temporary files, and complete
1731 # config.log. We remove comments because anyway the quotes in there
1732 # would cause problems or look ugly.
1733 # WARNING: Use '\'' to represent an apostrophe within the trap.
1734 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1735 trap 'exit_status=$?
1736 # Save into config.log some information that might help in debugging.
1737 {
1738 echo
1739
1740 cat <<\_ASBOX
1741 ## ---------------- ##
1742 ## Cache variables. ##
1743 ## ---------------- ##
1744 _ASBOX
1745 echo
1746 # The following way of writing the cache mishandles newlines in values,
1747 (
1748 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1749 eval ac_val=\$$ac_var
1750 case $ac_val in #(
1751 *${as_nl}*)
1752 case $ac_var in #(
1753 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1754 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1755 esac
1756 case $ac_var in #(
1757 _ | IFS | as_nl) ;; #(
1758 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1759 *) $as_unset $ac_var ;;
1760 esac ;;
1761 esac
1762 done
1763 (set) 2>&1 |
1764 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1765 *${as_nl}ac_space=\ *)
1766 sed -n \
1767 "s/'\''/'\''\\\\'\'''\''/g;
1768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1769 ;; #(
1770 *)
1771 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1772 ;;
1773 esac |
1774 sort
1775 )
1776 echo
1777
1778 cat <<\_ASBOX
1779 ## ----------------- ##
1780 ## Output variables. ##
1781 ## ----------------- ##
1782 _ASBOX
1783 echo
1784 for ac_var in $ac_subst_vars
1785 do
1786 eval ac_val=\$$ac_var
1787 case $ac_val in
1788 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1789 esac
1790 $as_echo "$ac_var='\''$ac_val'\''"
1791 done | sort
1792 echo
1793
1794 if test -n "$ac_subst_files"; then
1795 cat <<\_ASBOX
1796 ## ------------------- ##
1797 ## File substitutions. ##
1798 ## ------------------- ##
1799 _ASBOX
1800 echo
1801 for ac_var in $ac_subst_files
1802 do
1803 eval ac_val=\$$ac_var
1804 case $ac_val in
1805 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806 esac
1807 $as_echo "$ac_var='\''$ac_val'\''"
1808 done | sort
1809 echo
1810 fi
1811
1812 if test -s confdefs.h; then
1813 cat <<\_ASBOX
1814 ## ----------- ##
1815 ## confdefs.h. ##
1816 ## ----------- ##
1817 _ASBOX
1818 echo
1819 cat confdefs.h
1820 echo
1821 fi
1822 test "$ac_signal" != 0 &&
1823 $as_echo "$as_me: caught signal $ac_signal"
1824 $as_echo "$as_me: exit $exit_status"
1825 } >&5
1826 rm -f core *.core core.conftest.* &&
1827 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1828 exit $exit_status
1829 ' 0
1830 for ac_signal in 1 2 13 15; do
1831 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1832 done
1833 ac_signal=0
1834
1835 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1836 rm -f -r conftest* confdefs.h
1837
1838 # Predefined preprocessor variables.
1839
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_NAME "$PACKAGE_NAME"
1842 _ACEOF
1843
1844
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1847 _ACEOF
1848
1849
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1852 _ACEOF
1853
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_STRING "$PACKAGE_STRING"
1857 _ACEOF
1858
1859
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1862 _ACEOF
1863
1864
1865 # Let the site file select an alternate cache file if it wants to.
1866 # Prefer an explicitly selected file to automatically selected ones.
1867 ac_site_file1=NONE
1868 ac_site_file2=NONE
1869 if test -n "$CONFIG_SITE"; then
1870 ac_site_file1=$CONFIG_SITE
1871 elif test "x$prefix" != xNONE; then
1872 ac_site_file1=$prefix/share/config.site
1873 ac_site_file2=$prefix/etc/config.site
1874 else
1875 ac_site_file1=$ac_default_prefix/share/config.site
1876 ac_site_file2=$ac_default_prefix/etc/config.site
1877 fi
1878 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1879 do
1880 test "x$ac_site_file" = xNONE && continue
1881 if test -r "$ac_site_file"; then
1882 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1883 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1884 sed 's/^/| /' "$ac_site_file" >&5
1885 . "$ac_site_file"
1886 fi
1887 done
1888
1889 if test -r "$cache_file"; then
1890 # Some versions of bash will fail to source /dev/null (special
1891 # files actually), so we avoid doing that.
1892 if test -f "$cache_file"; then
1893 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1894 $as_echo "$as_me: loading cache $cache_file" >&6;}
1895 case $cache_file in
1896 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1897 *) . "./$cache_file";;
1898 esac
1899 fi
1900 else
1901 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1902 $as_echo "$as_me: creating cache $cache_file" >&6;}
1903 >$cache_file
1904 fi
1905
1906 ac_header_list="$ac_header_list sys/time.h"
1907 ac_header_list="$ac_header_list unistd.h"
1908 ac_func_list="$ac_func_list alarm"
1909 # Check that the precious variables saved in the cache have kept the same
1910 # value.
1911 ac_cache_corrupted=false
1912 for ac_var in $ac_precious_vars; do
1913 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1914 eval ac_new_set=\$ac_env_${ac_var}_set
1915 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1916 eval ac_new_val=\$ac_env_${ac_var}_value
1917 case $ac_old_set,$ac_new_set in
1918 set,)
1919 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1920 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1921 ac_cache_corrupted=: ;;
1922 ,set)
1923 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1924 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1925 ac_cache_corrupted=: ;;
1926 ,);;
1927 *)
1928 if test "x$ac_old_val" != "x$ac_new_val"; then
1929 # differences in whitespace do not lead to failure.
1930 ac_old_val_w=`echo x $ac_old_val`
1931 ac_new_val_w=`echo x $ac_new_val`
1932 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1933 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1934 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1935 ac_cache_corrupted=:
1936 else
1937 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1938 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1939 eval $ac_var=\$ac_old_val
1940 fi
1941 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1942 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1943 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1944 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1945 fi;;
1946 esac
1947 # Pass precious variables to config.status.
1948 if test "$ac_new_set" = set; then
1949 case $ac_new_val in
1950 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1951 *) ac_arg=$ac_var=$ac_new_val ;;
1952 esac
1953 case " $ac_configure_args " in
1954 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1955 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1956 esac
1957 fi
1958 done
1959 if $ac_cache_corrupted; then
1960 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1961 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1962 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1963 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1964 { (exit 1); exit 1; }; }
1965 fi
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991 ac_ext=c
1992 ac_cpp='$CPP $CPPFLAGS'
1993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1996
1997
1998 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1999
2000
2001
2002 test "$program_prefix" != NONE &&
2003 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2004 # Use a double $ so make ignores it.
2005 test "$program_suffix" != NONE &&
2006 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2007 # Double any \ or $.
2008 # By default was `s,x,x', remove it if useless.
2009 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2010 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2011
2012
2013 lispdir='${datadir}/emacs/${version}/lisp'
2014 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2015 '${datadir}/emacs/site-lisp'
2016 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2017 etcdir='${datadir}/emacs/${version}/etc'
2018 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2019 docdir='${datadir}/emacs/${version}/etc'
2020 gamedir='${localstatedir}/games/emacs'
2021
2022 gameuser=games
2023
2024
2025
2026
2027 # Check whether --with-pop was given.
2028 if test "${with_pop+set}" = set; then
2029 withval=$with_pop;
2030 else
2031 with_pop=yes
2032 fi
2033
2034 if test "$with_pop" = yes; then
2035 cat >>confdefs.h <<\_ACEOF
2036 #define MAIL_USE_POP 1
2037 _ACEOF
2038
2039 fi
2040
2041
2042
2043 # Check whether --with-kerberos was given.
2044 if test "${with_kerberos+set}" = set; then
2045 withval=$with_kerberos;
2046 else
2047 with_kerberos=no
2048 fi
2049
2050 if test "$with_kerberos" != no; then
2051 cat >>confdefs.h <<\_ACEOF
2052 #define KERBEROS 1
2053 _ACEOF
2054
2055 fi
2056
2057
2058
2059 # Check whether --with-kerberos5 was given.
2060 if test "${with_kerberos5+set}" = set; then
2061 withval=$with_kerberos5;
2062 else
2063 with_kerberos5=no
2064 fi
2065
2066 if test "${with_kerberos5}" != no; then
2067 if test "${with_kerberos}" = no; then
2068 with_kerberos=yes
2069 cat >>confdefs.h <<\_ACEOF
2070 #define KERBEROS 1
2071 _ACEOF
2072
2073 fi
2074
2075 cat >>confdefs.h <<\_ACEOF
2076 #define KERBEROS5 1
2077 _ACEOF
2078
2079 fi
2080
2081
2082 # Check whether --with-hesiod was given.
2083 if test "${with_hesiod+set}" = set; then
2084 withval=$with_hesiod;
2085 else
2086 with_hesiod=no
2087 fi
2088
2089 if test "$with_hesiod" != no; then
2090
2091 cat >>confdefs.h <<\_ACEOF
2092 #define HESIOD 1
2093 _ACEOF
2094
2095 fi
2096
2097
2098 # Check whether --with-mmdf was given.
2099 if test "${with_mmdf+set}" = set; then
2100 withval=$with_mmdf;
2101 else
2102 with_mmdf=no
2103 fi
2104
2105 if test "$with_mmdf" != no; then
2106
2107 cat >>confdefs.h <<\_ACEOF
2108 #define MAIL_USE_MMDF 1
2109 _ACEOF
2110
2111 fi
2112
2113
2114 # Check whether --with-mail-unlink was given.
2115 if test "${with_mail_unlink+set}" = set; then
2116 withval=$with_mail_unlink;
2117 else
2118 with_mail_unlink=no
2119 fi
2120
2121 if test "$with_mail_unlink" != no; then
2122
2123 cat >>confdefs.h <<\_ACEOF
2124 #define MAIL_UNLINK_SPOOL 1
2125 _ACEOF
2126
2127 fi
2128
2129
2130 # Check whether --with-mailhost was given.
2131 if test "${with_mailhost+set}" = set; then
2132 withval=$with_mailhost;
2133 cat >>confdefs.h <<_ACEOF
2134 #define MAILHOST "$withval"
2135 _ACEOF
2136
2137 fi
2138
2139
2140
2141 # Check whether --with-sound was given.
2142 if test "${with_sound+set}" = set; then
2143 withval=$with_sound;
2144 else
2145 with_sound=yes
2146 fi
2147
2148
2149
2150 # Check whether --with-sync-input was given.
2151 if test "${with_sync_input+set}" = set; then
2152 withval=$with_sync_input;
2153 else
2154 with_sync_input=yes
2155 fi
2156
2157 if test "$with_sync_input" = yes; then
2158
2159 cat >>confdefs.h <<\_ACEOF
2160 #define SYNC_INPUT 1
2161 _ACEOF
2162
2163 fi
2164
2165
2166 # Check whether --with-x-toolkit was given.
2167 if test "${with_x_toolkit+set}" = set; then
2168 withval=$with_x_toolkit; case "${withval}" in
2169 y | ye | yes ) val=gtk ;;
2170 n | no ) val=no ;;
2171 l | lu | luc | luci | lucid ) val=lucid ;;
2172 a | at | ath | athe | athen | athena ) val=athena ;;
2173 m | mo | mot | moti | motif ) val=motif ;;
2174 g | gt | gtk ) val=gtk ;;
2175 * )
2176 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2177 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2178 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2179 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2180 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2181 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2182 { (exit 1); exit 1; }; }
2183 ;;
2184 esac
2185 with_x_toolkit=$val
2186
2187 fi
2188
2189
2190
2191 # Check whether --with-xpm was given.
2192 if test "${with_xpm+set}" = set; then
2193 withval=$with_xpm;
2194 else
2195 with_xpm=yes
2196 fi
2197
2198
2199 # Check whether --with-jpeg was given.
2200 if test "${with_jpeg+set}" = set; then
2201 withval=$with_jpeg;
2202 else
2203 with_jpeg=yes
2204 fi
2205
2206
2207 # Check whether --with-tiff was given.
2208 if test "${with_tiff+set}" = set; then
2209 withval=$with_tiff;
2210 else
2211 with_tiff=yes
2212 fi
2213
2214
2215 # Check whether --with-gif was given.
2216 if test "${with_gif+set}" = set; then
2217 withval=$with_gif;
2218 else
2219 with_gif=yes
2220 fi
2221
2222
2223 # Check whether --with-png was given.
2224 if test "${with_png+set}" = set; then
2225 withval=$with_png;
2226 else
2227 with_png=yes
2228 fi
2229
2230
2231 # Check whether --with-rsvg was given.
2232 if test "${with_rsvg+set}" = set; then
2233 withval=$with_rsvg;
2234 else
2235 with_rsvg=yes
2236 fi
2237
2238
2239
2240 # Check whether --with-xft was given.
2241 if test "${with_xft+set}" = set; then
2242 withval=$with_xft;
2243 else
2244 with_xft=yes
2245 fi
2246
2247
2248 # Check whether --with-libotf was given.
2249 if test "${with_libotf+set}" = set; then
2250 withval=$with_libotf;
2251 else
2252 with_libotf=yes
2253 fi
2254
2255
2256 # Check whether --with-m17n-flt was given.
2257 if test "${with_m17n_flt+set}" = set; then
2258 withval=$with_m17n_flt;
2259 else
2260 with_m17n_flt=yes
2261 fi
2262
2263
2264
2265 # Check whether --with-toolkit-scroll-bars was given.
2266 if test "${with_toolkit_scroll_bars+set}" = set; then
2267 withval=$with_toolkit_scroll_bars;
2268 else
2269 with_toolkit_scroll_bars=yes
2270 fi
2271
2272
2273 # Check whether --with-xaw3d was given.
2274 if test "${with_xaw3d+set}" = set; then
2275 withval=$with_xaw3d;
2276 else
2277 with_xaw3d=yes
2278 fi
2279
2280
2281 # Check whether --with-xim was given.
2282 if test "${with_xim+set}" = set; then
2283 withval=$with_xim;
2284 else
2285 with_xim=yes
2286 fi
2287
2288
2289 # Check whether --with-ns was given.
2290 if test "${with_ns+set}" = set; then
2291 withval=$with_ns;
2292 else
2293 with_ns=no
2294 fi
2295
2296
2297
2298 # Check whether --with-gpm was given.
2299 if test "${with_gpm+set}" = set; then
2300 withval=$with_gpm;
2301 else
2302 with_gpm=yes
2303 fi
2304
2305
2306 # Check whether --with-dbus was given.
2307 if test "${with_dbus+set}" = set; then
2308 withval=$with_dbus;
2309 else
2310 with_dbus=yes
2311 fi
2312
2313
2314 # Check whether --with-gconf was given.
2315 if test "${with_gconf+set}" = set; then
2316 withval=$with_gconf;
2317 else
2318 with_gconf=yes
2319 fi
2320
2321
2322 # Check whether --with-selinux was given.
2323 if test "${with_selinux+set}" = set; then
2324 withval=$with_selinux;
2325 else
2326 with_selinux=yes
2327 fi
2328
2329
2330 ## For the times when you want to build Emacs but don't have
2331 ## a suitable makeinfo, and can live without the manuals.
2332
2333 # Check whether --with-makeinfo was given.
2334 if test "${with_makeinfo+set}" = set; then
2335 withval=$with_makeinfo;
2336 else
2337 with_makeinfo=yes
2338 fi
2339
2340
2341
2342 # Check whether --with-gtk was given.
2343 if test "${with_gtk+set}" = set; then
2344 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2345 specify a toolkit." >&5
2346 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2347 specify a toolkit." >&2;}
2348 { (exit 1); exit 1; }; }
2349 fi
2350
2351
2352
2353 # Check whether --with-gcc was given.
2354 if test "${with_gcc+set}" = set; then
2355 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2356 variable to specify a compiler." >&5
2357 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2358 variable to specify a compiler." >&2;}
2359 { (exit 1); exit 1; }; }
2360 fi
2361
2362
2363
2364 # Check whether --with-pkg-config-prog was given.
2365 if test "${with_pkg_config_prog+set}" = set; then
2366 withval=$with_pkg_config_prog;
2367 fi
2368
2369 if test "X${with_pkg_config_prog}" != X; then
2370 if test "${with_pkg_config_prog}" != yes; then
2371 PKG_CONFIG="${with_pkg_config_prog}"
2372 fi
2373 fi
2374
2375
2376 # Check whether --with-gnustep-conf was given.
2377 if test "${with_gnustep_conf+set}" = set; then
2378 withval=$with_gnustep_conf;
2379 fi
2380
2381 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2382 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2383 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2384 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2385
2386 # Check whether --enable-ns-self-contained was given.
2387 if test "${enable_ns_self_contained+set}" = set; then
2388 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2389 else
2390 EN_NS_SELF_CONTAINED=yes
2391 fi
2392
2393
2394 # Check whether --enable-asserts was given.
2395 if test "${enable_asserts+set}" = set; then
2396 enableval=$enable_asserts; USE_XASSERTS=$enableval
2397 else
2398 USE_XASSERTS=no
2399 fi
2400
2401
2402 # Check whether --enable-maintainer-mode was given.
2403 if test "${enable_maintainer_mode+set}" = set; then
2404 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2405 else
2406 USE_MAINTAINER_MODE=no
2407 fi
2408
2409 if test $USE_MAINTAINER_MODE = yes; then
2410 MAINT=
2411 else
2412 MAINT=#
2413 fi
2414
2415
2416 # Check whether --enable-locallisppath was given.
2417 if test "${enable_locallisppath+set}" = set; then
2418 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2419 locallisppath=
2420 elif test "${enableval}" != "yes"; then
2421 locallisppath=${enableval}
2422 fi
2423 fi
2424
2425
2426 # Check whether --enable-checking was given.
2427 if test "${enable_checking+set}" = set; then
2428 enableval=$enable_checking; ac_checking_flags="${enableval}"
2429 fi
2430
2431 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2432 for check in $ac_checking_flags
2433 do
2434 case $check in
2435 # these set all the flags to specific states
2436 yes) ac_enable_checking=1 ;;
2437 no) ac_enable_checking= ;
2438 ac_gc_check_stringbytes= ;
2439 ac_gc_check_string_overrun= ;
2440 ac_gc_check_string_free_list= ;
2441 ac_xmalloc_overrun= ;
2442 ac_gc_check_cons_list= ;;
2443 all) ac_enable_checking=1 ;
2444 ac_gc_check_stringbytes=1 ;
2445 ac_gc_check_string_overrun=1 ;
2446 ac_gc_check_string_free_list=1 ;
2447 ac_xmalloc_overrun=1 ;
2448 ac_gc_check_cons_list=1 ;;
2449 # these enable particular checks
2450 stringbytes) ac_gc_check_stringbytes=1 ;;
2451 stringoverrun) ac_gc_check_string_overrun=1 ;;
2452 stringfreelist) ac_gc_check_string_free_list=1 ;;
2453 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2454 conslist) ac_gc_check_cons_list=1 ;;
2455 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2456 $as_echo "$as_me: error: unknown check category $check" >&2;}
2457 { (exit 1); exit 1; }; } ;;
2458 esac
2459 done
2460 IFS="$ac_save_IFS"
2461
2462 if test x$ac_enable_checking != x ; then
2463
2464 cat >>confdefs.h <<\_ACEOF
2465 #define ENABLE_CHECKING 1
2466 _ACEOF
2467
2468 fi
2469 if test x$ac_gc_check_stringbytes != x ; then
2470
2471 cat >>confdefs.h <<\_ACEOF
2472 #define GC_CHECK_STRING_BYTES 1
2473 _ACEOF
2474
2475 fi
2476 if test x$ac_gc_check_stringoverrun != x ; then
2477
2478 cat >>confdefs.h <<\_ACEOF
2479 #define GC_CHECK_STRING_OVERRUN 1
2480 _ACEOF
2481
2482 fi
2483 if test x$ac_gc_check_string_free_list != x ; then
2484
2485 cat >>confdefs.h <<\_ACEOF
2486 #define GC_CHECK_STRING_FREE_LIST 1
2487 _ACEOF
2488
2489 fi
2490 if test x$ac_xmalloc_overrun != x ; then
2491
2492 cat >>confdefs.h <<\_ACEOF
2493 #define XMALLOC_OVERRUN_CHECK 1
2494 _ACEOF
2495
2496 fi
2497 if test x$ac_gc_check_cons_list != x ; then
2498
2499 cat >>confdefs.h <<\_ACEOF
2500 #define GC_CHECK_CONS_LIST 1
2501 _ACEOF
2502
2503 fi
2504
2505 # Check whether --enable-profiling was given.
2506 if test "${enable_profiling+set}" = set; then
2507 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2508 fi
2509
2510 if test x$ac_enable_profiling != x ; then
2511 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2512 PROFILING_LDFLAGS="-pg"
2513 else
2514 PROFILING_CFLAGS=
2515 PROFILING_LDFLAGS=
2516 fi
2517
2518 # Check whether --enable-autodepend was given.
2519 if test "${enable_autodepend+set}" = set; then
2520 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2521 else
2522 ac_enable_autodepend=yes
2523 fi
2524
2525
2526 #### Make srcdir absolute, if it isn't already. It's important to
2527 #### avoid running the path through pwd unnecessarily, since pwd can
2528 #### give you automounter prefixes, which can go away. We do all this
2529 #### so Emacs can find its files when run uninstalled.
2530 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2531 unset CDPATH
2532 case "${srcdir}" in
2533 /* ) ;;
2534 . )
2535 ## We may be able to use the $PWD environment variable to make this
2536 ## absolute. But sometimes PWD is inaccurate.
2537 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2538 ## but that tested only for a well-formed and valid PWD,
2539 ## it did not object when PWD was well-formed and valid but just wrong.
2540 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2541 then
2542 srcdir="$PWD"
2543 else
2544 srcdir="`(cd ${srcdir}; pwd)`"
2545 fi
2546 ;;
2547 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2548 esac
2549
2550 #### Check if the source directory already has a configured system in it.
2551 if test `pwd` != `(cd ${srcdir} && pwd)` \
2552 && test -f "${srcdir}/src/config.h" ; then
2553 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2554 as a build directory right now; it has been configured in its own
2555 right. To configure in another directory as well, you MUST
2556 use GNU make. If you do not have GNU make, then you must
2557 now do \`make distclean' in ${srcdir},
2558 and then run $0 again." >&5
2559 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2560 as a build directory right now; it has been configured in its own
2561 right. To configure in another directory as well, you MUST
2562 use GNU make. If you do not have GNU make, then you must
2563 now do \`make distclean' in ${srcdir},
2564 and then run $0 again." >&2;}
2565 fi
2566
2567 #### Given the configuration name, set machfile and opsysfile to the
2568 #### names of the m/*.h and s/*.h files we should use.
2569
2570 ### Canonicalize the configuration name.
2571
2572 ac_aux_dir=
2573 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2574 if test -f "$ac_dir/install-sh"; then
2575 ac_aux_dir=$ac_dir
2576 ac_install_sh="$ac_aux_dir/install-sh -c"
2577 break
2578 elif test -f "$ac_dir/install.sh"; then
2579 ac_aux_dir=$ac_dir
2580 ac_install_sh="$ac_aux_dir/install.sh -c"
2581 break
2582 elif test -f "$ac_dir/shtool"; then
2583 ac_aux_dir=$ac_dir
2584 ac_install_sh="$ac_aux_dir/shtool install -c"
2585 break
2586 fi
2587 done
2588 if test -z "$ac_aux_dir"; then
2589 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2590 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2591 { (exit 1); exit 1; }; }
2592 fi
2593
2594 # These three variables are undocumented and unsupported,
2595 # and are intended to be withdrawn in a future Autoconf release.
2596 # They can cause serious problems if a builder's source tree is in a directory
2597 # whose full name contains unusual characters.
2598 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2599 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2600 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2601
2602
2603 # Make sure we can run config.sub.
2604 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2605 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2606 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2607 { (exit 1); exit 1; }; }
2608
2609 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2610 $as_echo_n "checking build system type... " >&6; }
2611 if test "${ac_cv_build+set}" = set; then
2612 $as_echo_n "(cached) " >&6
2613 else
2614 ac_build_alias=$build_alias
2615 test "x$ac_build_alias" = x &&
2616 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2617 test "x$ac_build_alias" = x &&
2618 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2619 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2620 { (exit 1); exit 1; }; }
2621 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2622 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2623 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2624 { (exit 1); exit 1; }; }
2625
2626 fi
2627 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2628 $as_echo "$ac_cv_build" >&6; }
2629 case $ac_cv_build in
2630 *-*-*) ;;
2631 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2632 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2633 { (exit 1); exit 1; }; };;
2634 esac
2635 build=$ac_cv_build
2636 ac_save_IFS=$IFS; IFS='-'
2637 set x $ac_cv_build
2638 shift
2639 build_cpu=$1
2640 build_vendor=$2
2641 shift; shift
2642 # Remember, the first character of IFS is used to create $*,
2643 # except with old shells:
2644 build_os=$*
2645 IFS=$ac_save_IFS
2646 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2647
2648
2649 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2650 $as_echo_n "checking host system type... " >&6; }
2651 if test "${ac_cv_host+set}" = set; then
2652 $as_echo_n "(cached) " >&6
2653 else
2654 if test "x$host_alias" = x; then
2655 ac_cv_host=$ac_cv_build
2656 else
2657 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2658 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2659 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2660 { (exit 1); exit 1; }; }
2661 fi
2662
2663 fi
2664 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2665 $as_echo "$ac_cv_host" >&6; }
2666 case $ac_cv_host in
2667 *-*-*) ;;
2668 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2669 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2670 { (exit 1); exit 1; }; };;
2671 esac
2672 host=$ac_cv_host
2673 ac_save_IFS=$IFS; IFS='-'
2674 set x $ac_cv_host
2675 shift
2676 host_cpu=$1
2677 host_vendor=$2
2678 shift; shift
2679 # Remember, the first character of IFS is used to create $*,
2680 # except with old shells:
2681 host_os=$*
2682 IFS=$ac_save_IFS
2683 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2684
2685
2686 canonical=$host
2687 configuration=${host_alias-${build_alias-$host}}
2688
2689
2690
2691 ### If you add support for a new configuration, add code to this
2692 ### switch statement to recognize your configuration name and select
2693 ### the appropriate operating system and machine description files.
2694
2695 ### You would hope that you could choose an m/*.h file pretty much
2696 ### based on the machine portion of the configuration name, and an s-
2697 ### file based on the operating system portion. However, it turns out
2698 ### that each m/*.h file is pretty manufacturer-specific - for
2699 ### example mips.h is MIPS
2700 ### So we basically have to have a special case for each
2701 ### configuration name.
2702 ###
2703 ### As far as handling version numbers on operating systems is
2704 ### concerned, make sure things will fail in a fixable way. If
2705 ### /etc/MACHINES doesn't say anything about version numbers, be
2706 ### prepared to handle anything reasonably. If version numbers
2707 ### matter, be sure /etc/MACHINES says something about it.
2708 ###
2709 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2710 ### "System V Release 4"; he writes, "The old convention encouraged
2711 ### confusion between `system' and `release' levels'."
2712
2713 machine='' opsys='' unported=no
2714 case "${canonical}" in
2715
2716 ## FreeBSD ports
2717 *-*-freebsd* )
2718 opsys=freebsd
2719 case "${canonical}" in
2720 alpha*-*-freebsd*) machine=alpha ;;
2721 arm*-*-freebsd*) machine=arm ;;
2722 ia64-*-freebsd*) machine=ia64 ;;
2723 sparc-*-freebsd*) machine=sparc ;;
2724 sparc64-*-freebsd*) machine=sparc ;;
2725 powerpc-*-freebsd*) machine=macppc ;;
2726 i[3456]86-*-freebsd*) machine=intel386 ;;
2727 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2728 esac
2729 ;;
2730
2731 ## FreeBSD kernel + glibc based userland
2732 *-*-kfreebsd*gnu* )
2733 opsys=gnu-kfreebsd
2734 case "${canonical}" in
2735 alpha*-*-kfreebsd*) machine=alpha ;;
2736 ia64-*-kfreebsd*) machine=ia64 ;;
2737 sparc-*-kfreebsd*) machine=sparc ;;
2738 sparc64-*-kfreebsd*) machine=sparc ;;
2739 powerpc-*-kfreebsd*) machine=macppc ;;
2740 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2741 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2742 esac
2743 ;;
2744
2745 ## NetBSD ports
2746 *-*-netbsd* )
2747 opsys=netbsd
2748 if test -f /usr/lib/crti.o; then
2749
2750 cat >>confdefs.h <<\_ACEOF
2751 #define HAVE_CRTIN /**/
2752 _ACEOF
2753
2754 fi
2755
2756 case "${canonical}" in
2757 alpha*-*-netbsd*) machine=alpha ;;
2758 i[3456]86-*-netbsd*) machine=intel386 ;;
2759 mips-*-netbsd*) machine=mips ;;
2760 mipsel-*-netbsd*) machine=mips ;;
2761 mipseb-*-netbsd*) machine=mips ;;
2762 powerpc-*-netbsd*) machine=macppc ;;
2763 sparc*-*-netbsd*) machine=sparc ;;
2764 vax-*-netbsd*) machine=vax ;;
2765 arm-*-netbsd*) machine=arm ;;
2766 x86_64-*-netbsd*) machine=amdx86-64 ;;
2767 hppa-*-netbsd*) machine=hp800 ;;
2768 m68k-*-netbsd*) machine=m68k ;;
2769 esac
2770 ;;
2771
2772 ## OpenBSD ports
2773 *-*-openbsd* )
2774 opsys=openbsd
2775 case "${canonical}" in
2776 alpha*-*-openbsd*) machine=alpha ;;
2777 arm-*-openbsd*) machine=arm ;;
2778 i386-*-openbsd*) machine=intel386 ;;
2779 powerpc-*-openbsd*) machine=macppc ;;
2780 sparc*-*-openbsd*) machine=sparc ;;
2781 vax-*-openbsd*) machine=vax ;;
2782 x86_64-*-openbsd*) machine=amdx86-64 ;;
2783 hppa-*-openbsd*) machine=hp800 ;;
2784 esac
2785 ;;
2786
2787 alpha*-*-linux-gnu* )
2788 machine=alpha opsys=gnu-linux
2789 ;;
2790
2791 arm*-*-linux-gnu* )
2792 machine=arm opsys=gnu-linux
2793 ;;
2794
2795 ## Apple Darwin / Mac OS X
2796 *-apple-darwin* )
2797 case "${canonical}" in
2798 i[3456]86-* ) machine=intel386 ;;
2799 powerpc-* ) machine=macppc ;;
2800 x86_64-* ) machine=amdx86-64 ;;
2801 * ) unported=yes ;;
2802 esac
2803 opsys=darwin
2804 # Define CPP as follows to make autoconf work correctly.
2805 CPP="${CC-cc} -E -no-cpp-precomp"
2806 # Use fink packages if available.
2807 if test -d /sw/include && test -d /sw/lib; then
2808 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2809 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2810 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2811 fi
2812 ;;
2813
2814 ## HP 9000 series 700 and 800, running HP/UX
2815 hppa*-hp-hpux10.2* )
2816 machine=hp800 opsys=hpux10-20
2817 ;;
2818 hppa*-hp-hpux1[1-9]* )
2819 machine=hp800 opsys=hpux11
2820 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2821 ;;
2822
2823 hppa*-*-linux-gnu* )
2824 machine=hp800 opsys=gnu-linux
2825 ;;
2826
2827 ## IBM machines
2828 s390-*-linux-gnu* )
2829 machine=ibms390 opsys=gnu-linux
2830 ;;
2831 s390x-*-linux-gnu* )
2832 machine=ibms390x opsys=gnu-linux
2833 ;;
2834 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2835 machine=ibmrs6000 opsys=aix4-2
2836 ;;
2837 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2838 machine=ibmrs6000 opsys=aix4-2
2839 ;;
2840 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2841 machine=ibmrs6000 opsys=aix4-2
2842 ;;
2843 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2844 machine=ibmrs6000 opsys=aix4-2
2845 ;;
2846
2847 ## Macintosh PowerPC
2848 powerpc*-*-linux-gnu* )
2849 machine=macppc opsys=gnu-linux
2850 ;;
2851
2852 ## Silicon Graphics machines
2853 ## Iris 4D
2854 mips-sgi-irix6.5 )
2855 machine=iris4d opsys=irix6-5
2856 # Without defining _LANGUAGE_C, things get masked out in the headers
2857 # so that, for instance, grepping for `free' in stdlib.h fails and
2858 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2859 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2860 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2861 ;;
2862
2863 ## Suns
2864 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2865 machine=sparc opsys=gnu-linux
2866 ;;
2867
2868 *-sun-solaris* \
2869 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2870 | x86_64-*-solaris2* | x86_64-*-sunos5*)
2871 case "${canonical}" in
2872 i[3456]86-*-* ) machine=intel386 ;;
2873 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2874 sparc* ) machine=sparc ;;
2875 * ) unported=yes ;;
2876 esac
2877 case "${canonical}" in
2878 *-sunos5.6* | *-solaris2.6* )
2879 opsys=sol2-6
2880 NON_GNU_CPP=/usr/ccs/lib/cpp
2881 RANLIB="ar -ts"
2882 ;;
2883 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2884 opsys=sol2-6
2885 emacs_check_sunpro_c=yes
2886 NON_GNU_CPP=/usr/ccs/lib/cpp
2887 ;;
2888 *-sunos5* | *-solaris* )
2889 opsys=sol2-10
2890 emacs_check_sunpro_c=yes
2891 NON_GNU_CPP=/usr/ccs/lib/cpp
2892 ;;
2893 esac
2894 ## Watch out for a compiler that we know will not work.
2895 case "${canonical}" in
2896 *-solaris* | *-sunos5* )
2897 if [ "x$CC" = x/usr/ucb/cc ]; then
2898 ## /usr/ucb/cc doesn't work;
2899 ## we should find some other compiler that does work.
2900 unset CC
2901 fi
2902 ;;
2903 *) ;;
2904 esac
2905 ;;
2906
2907 ## IA-64
2908 ia64*-*-linux* )
2909 machine=ia64 opsys=gnu-linux
2910 ;;
2911
2912 ## Intel 386 machines where we don't care about the manufacturer
2913 i[3456]86-*-* )
2914 machine=intel386
2915 case "${canonical}" in
2916 *-cygwin ) opsys=cygwin ;;
2917 *-darwin* ) opsys=darwin
2918 CPP="${CC-cc} -E -no-cpp-precomp"
2919 ;;
2920 *-linux-gnu* ) opsys=gnu-linux ;;
2921 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2922 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2923 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2924 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2925 esac
2926 ;;
2927
2928 ## m68k Linux-based GNU system
2929 m68k-*-linux-gnu* )
2930 machine=m68k opsys=gnu-linux
2931 ;;
2932
2933 ## Mips Linux-based GNU system
2934 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2935 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2936 machine=mips opsys=gnu-linux
2937 ;;
2938
2939 ## AMD x86-64 Linux-based GNU system
2940 x86_64-*-linux-gnu* )
2941 machine=amdx86-64 opsys=gnu-linux
2942 ;;
2943
2944 ## Tensilica Xtensa Linux-based GNU system
2945 xtensa*-*-linux-gnu* )
2946 machine=xtensa opsys=gnu-linux
2947 ;;
2948
2949 ## SuperH Linux-based GNU system
2950 sh[34]*-*-linux-gnu* )
2951 machine=sh3 opsys=gnu-linux
2952 ;;
2953
2954 * )
2955 unported=yes
2956 ;;
2957 esac
2958
2959 ### If the code above didn't choose an operating system, just choose
2960 ### an operating system based on the configuration name. You really
2961 ### only want to use this when you have no idea what the right
2962 ### operating system is; if you know what operating systems a machine
2963 ### runs, it's cleaner to make it explicit in the case statement
2964 ### above.
2965 if test x"${opsys}" = x; then
2966 case "${canonical}" in
2967 *-gnu* ) opsys=gnu ;;
2968 * )
2969 unported=yes
2970 ;;
2971 esac
2972 fi
2973
2974
2975
2976 if test $unported = yes; then
2977 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2978 Check \`etc/MACHINES' for recognized configuration names." >&5
2979 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2980 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2981 { (exit 1); exit 1; }; }
2982 fi
2983
2984 machfile="m/${machine}.h"
2985 opsysfile="s/${opsys}.h"
2986
2987
2988 #### Choose a compiler.
2989 test -n "$CC" && cc_specified=yes
2990
2991 # Save the value of CFLAGS that the user specified.
2992 SPECIFIED_CFLAGS="$CFLAGS"
2993
2994 ac_ext=c
2995 ac_cpp='$CPP $CPPFLAGS'
2996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 if test -n "$ac_tool_prefix"; then
3000 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3001 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3002 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if test "${ac_cv_prog_CC+set}" = set; then
3005 $as_echo_n "(cached) " >&6
3006 else
3007 if test -n "$CC"; then
3008 ac_cv_prog_CC="$CC" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3018 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3020 fi
3021 done
3022 done
3023 IFS=$as_save_IFS
3024
3025 fi
3026 fi
3027 CC=$ac_cv_prog_CC
3028 if test -n "$CC"; then
3029 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3030 $as_echo "$CC" >&6; }
3031 else
3032 { $as_echo "$as_me:$LINENO: result: no" >&5
3033 $as_echo "no" >&6; }
3034 fi
3035
3036
3037 fi
3038 if test -z "$ac_cv_prog_CC"; then
3039 ac_ct_CC=$CC
3040 # Extract the first word of "gcc", so it can be a program name with args.
3041 set dummy gcc; ac_word=$2
3042 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3045 $as_echo_n "(cached) " >&6
3046 else
3047 if test -n "$ac_ct_CC"; then
3048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3052 do
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057 ac_cv_prog_ac_ct_CC="gcc"
3058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3060 fi
3061 done
3062 done
3063 IFS=$as_save_IFS
3064
3065 fi
3066 fi
3067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068 if test -n "$ac_ct_CC"; then
3069 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3070 $as_echo "$ac_ct_CC" >&6; }
3071 else
3072 { $as_echo "$as_me:$LINENO: result: no" >&5
3073 $as_echo "no" >&6; }
3074 fi
3075
3076 if test "x$ac_ct_CC" = x; then
3077 CC=""
3078 else
3079 case $cross_compiling:$ac_tool_warned in
3080 yes:)
3081 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3082 whose name does not start with the host triplet. If you think this
3083 configuration is useful to you, please write to autoconf@gnu.org." >&5
3084 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3085 whose name does not start with the host triplet. If you think this
3086 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3087 ac_tool_warned=yes ;;
3088 esac
3089 CC=$ac_ct_CC
3090 fi
3091 else
3092 CC="$ac_cv_prog_CC"
3093 fi
3094
3095 if test -z "$CC"; then
3096 if test -n "$ac_tool_prefix"; then
3097 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3098 set dummy ${ac_tool_prefix}cc; ac_word=$2
3099 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if test "${ac_cv_prog_CC+set}" = set; then
3102 $as_echo_n "(cached) " >&6
3103 else
3104 if test -n "$CC"; then
3105 ac_cv_prog_CC="$CC" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3109 do
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3114 ac_cv_prog_CC="${ac_tool_prefix}cc"
3115 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3117 fi
3118 done
3119 done
3120 IFS=$as_save_IFS
3121
3122 fi
3123 fi
3124 CC=$ac_cv_prog_CC
3125 if test -n "$CC"; then
3126 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3127 $as_echo "$CC" >&6; }
3128 else
3129 { $as_echo "$as_me:$LINENO: result: no" >&5
3130 $as_echo "no" >&6; }
3131 fi
3132
3133
3134 fi
3135 fi
3136 if test -z "$CC"; then
3137 # Extract the first word of "cc", so it can be a program name with args.
3138 set dummy cc; ac_word=$2
3139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CC+set}" = set; then
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3146 else
3147 ac_prog_rejected=no
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3156 ac_prog_rejected=yes
3157 continue
3158 fi
3159 ac_cv_prog_CC="cc"
3160 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 break 2
3162 fi
3163 done
3164 done
3165 IFS=$as_save_IFS
3166
3167 if test $ac_prog_rejected = yes; then
3168 # We found a bogon in the path, so make sure we never use it.
3169 set dummy $ac_cv_prog_CC
3170 shift
3171 if test $# != 0; then
3172 # We chose a different compiler from the bogus one.
3173 # However, it has the same basename, so the bogon will be chosen
3174 # first if we set CC to just the basename; use the full file name.
3175 shift
3176 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3177 fi
3178 fi
3179 fi
3180 fi
3181 CC=$ac_cv_prog_CC
3182 if test -n "$CC"; then
3183 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3185 else
3186 { $as_echo "$as_me:$LINENO: result: no" >&5
3187 $as_echo "no" >&6; }
3188 fi
3189
3190
3191 fi
3192 if test -z "$CC"; then
3193 if test -n "$ac_tool_prefix"; then
3194 for ac_prog in cl.exe
3195 do
3196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if test "${ac_cv_prog_CC+set}" = set; then
3201 $as_echo_n "(cached) " >&6
3202 else
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC="$CC" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3214 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217 done
3218 done
3219 IFS=$as_save_IFS
3220
3221 fi
3222 fi
3223 CC=$ac_cv_prog_CC
3224 if test -n "$CC"; then
3225 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3226 $as_echo "$CC" >&6; }
3227 else
3228 { $as_echo "$as_me:$LINENO: result: no" >&5
3229 $as_echo "no" >&6; }
3230 fi
3231
3232
3233 test -n "$CC" && break
3234 done
3235 fi
3236 if test -z "$CC"; then
3237 ac_ct_CC=$CC
3238 for ac_prog in cl.exe
3239 do
3240 # Extract the first word of "$ac_prog", so it can be a program name with args.
3241 set dummy $ac_prog; ac_word=$2
3242 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3245 $as_echo_n "(cached) " >&6
3246 else
3247 if test -n "$ac_ct_CC"; then
3248 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3249 else
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3252 do
3253 IFS=$as_save_IFS
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3257 ac_cv_prog_ac_ct_CC="$ac_prog"
3258 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 break 2
3260 fi
3261 done
3262 done
3263 IFS=$as_save_IFS
3264
3265 fi
3266 fi
3267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3268 if test -n "$ac_ct_CC"; then
3269 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3270 $as_echo "$ac_ct_CC" >&6; }
3271 else
3272 { $as_echo "$as_me:$LINENO: result: no" >&5
3273 $as_echo "no" >&6; }
3274 fi
3275
3276
3277 test -n "$ac_ct_CC" && break
3278 done
3279
3280 if test "x$ac_ct_CC" = x; then
3281 CC=""
3282 else
3283 case $cross_compiling:$ac_tool_warned in
3284 yes:)
3285 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3286 whose name does not start with the host triplet. If you think this
3287 configuration is useful to you, please write to autoconf@gnu.org." >&5
3288 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3289 whose name does not start with the host triplet. If you think this
3290 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3291 ac_tool_warned=yes ;;
3292 esac
3293 CC=$ac_ct_CC
3294 fi
3295 fi
3296
3297 fi
3298
3299
3300 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3301 See \`config.log' for more details." >&5
3302 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3303 See \`config.log' for more details." >&2;}
3304 { (exit 1); exit 1; }; }
3305
3306 # Provide some information about the compiler.
3307 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3308 set X $ac_compile
3309 ac_compiler=$2
3310 { (ac_try="$ac_compiler --version >&5"
3311 case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314 esac
3315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3316 $as_echo "$ac_try_echo") >&5
3317 (eval "$ac_compiler --version >&5") 2>&5
3318 ac_status=$?
3319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }
3321 { (ac_try="$ac_compiler -v >&5"
3322 case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325 esac
3326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3327 $as_echo "$ac_try_echo") >&5
3328 (eval "$ac_compiler -v >&5") 2>&5
3329 ac_status=$?
3330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }
3332 { (ac_try="$ac_compiler -V >&5"
3333 case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336 esac
3337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3338 $as_echo "$ac_try_echo") >&5
3339 (eval "$ac_compiler -V >&5") 2>&5
3340 ac_status=$?
3341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }
3343
3344 cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h. */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3350
3351 int
3352 main ()
3353 {
3354
3355 ;
3356 return 0;
3357 }
3358 _ACEOF
3359 ac_clean_files_save=$ac_clean_files
3360 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3361 # Try to create an executable without -o first, disregard a.out.
3362 # It will help us diagnose broken compilers, and finding out an intuition
3363 # of exeext.
3364 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3365 $as_echo_n "checking for C compiler default output file name... " >&6; }
3366 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3367
3368 # The possible output files:
3369 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3370
3371 ac_rmfiles=
3372 for ac_file in $ac_files
3373 do
3374 case $ac_file in
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3376 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3377 esac
3378 done
3379 rm -f $ac_rmfiles
3380
3381 if { (ac_try="$ac_link_default"
3382 case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385 esac
3386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3387 $as_echo "$ac_try_echo") >&5
3388 (eval "$ac_link_default") 2>&5
3389 ac_status=$?
3390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; then
3392 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3393 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3394 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3395 # so that the user can short-circuit this test for compilers unknown to
3396 # Autoconf.
3397 for ac_file in $ac_files ''
3398 do
3399 test -f "$ac_file" || continue
3400 case $ac_file in
3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3402 ;;
3403 [ab].out )
3404 # We found the default executable, but exeext='' is most
3405 # certainly right.
3406 break;;
3407 *.* )
3408 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3409 then :; else
3410 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3411 fi
3412 # We set ac_cv_exeext here because the later test for it is not
3413 # safe: cross compilers may not add the suffix if given an `-o'
3414 # argument, so we may need to know it at that point already.
3415 # Even if this section looks crufty: it has the advantage of
3416 # actually working.
3417 break;;
3418 * )
3419 break;;
3420 esac
3421 done
3422 test "$ac_cv_exeext" = no && ac_cv_exeext=
3423
3424 else
3425 ac_file=''
3426 fi
3427
3428 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3429 $as_echo "$ac_file" >&6; }
3430 if test -z "$ac_file"; then
3431 $as_echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3433
3434 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3435 See \`config.log' for more details." >&5
3436 $as_echo "$as_me: error: C compiler cannot create executables
3437 See \`config.log' for more details." >&2;}
3438 { (exit 77); exit 77; }; }
3439 fi
3440
3441 ac_exeext=$ac_cv_exeext
3442
3443 # Check that the compiler produces executables we can run. If not, either
3444 # the compiler is broken, or we cross compile.
3445 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3446 $as_echo_n "checking whether the C compiler works... " >&6; }
3447 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3448 # If not cross compiling, check that we can run a simple program.
3449 if test "$cross_compiling" != yes; then
3450 if { ac_try='./$ac_file'
3451 { (case "(($ac_try" in
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3454 esac
3455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3456 $as_echo "$ac_try_echo") >&5
3457 (eval "$ac_try") 2>&5
3458 ac_status=$?
3459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; }; then
3461 cross_compiling=no
3462 else
3463 if test "$cross_compiling" = maybe; then
3464 cross_compiling=yes
3465 else
3466 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3467 If you meant to cross compile, use \`--host'.
3468 See \`config.log' for more details." >&5
3469 $as_echo "$as_me: error: cannot run C compiled programs.
3470 If you meant to cross compile, use \`--host'.
3471 See \`config.log' for more details." >&2;}
3472 { (exit 1); exit 1; }; }
3473 fi
3474 fi
3475 fi
3476 { $as_echo "$as_me:$LINENO: result: yes" >&5
3477 $as_echo "yes" >&6; }
3478
3479 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3480 ac_clean_files=$ac_clean_files_save
3481 # Check that the compiler produces executables we can run. If not, either
3482 # the compiler is broken, or we cross compile.
3483 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3484 $as_echo_n "checking whether we are cross compiling... " >&6; }
3485 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3486 $as_echo "$cross_compiling" >&6; }
3487
3488 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3489 $as_echo_n "checking for suffix of executables... " >&6; }
3490 if { (ac_try="$ac_link"
3491 case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494 esac
3495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3496 $as_echo "$ac_try_echo") >&5
3497 (eval "$ac_link") 2>&5
3498 ac_status=$?
3499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; then
3501 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3502 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3503 # work properly (i.e., refer to `conftest.exe'), while it won't with
3504 # `rm'.
3505 for ac_file in conftest.exe conftest conftest.*; do
3506 test -f "$ac_file" || continue
3507 case $ac_file in
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3509 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3510 break;;
3511 * ) break;;
3512 esac
3513 done
3514 else
3515 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3516 See \`config.log' for more details." >&5
3517 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3518 See \`config.log' for more details." >&2;}
3519 { (exit 1); exit 1; }; }
3520 fi
3521
3522 rm -f conftest$ac_cv_exeext
3523 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3524 $as_echo "$ac_cv_exeext" >&6; }
3525
3526 rm -f conftest.$ac_ext
3527 EXEEXT=$ac_cv_exeext
3528 ac_exeext=$EXEEXT
3529 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3530 $as_echo_n "checking for suffix of object files... " >&6; }
3531 if test "${ac_cv_objext+set}" = set; then
3532 $as_echo_n "(cached) " >&6
3533 else
3534 cat >conftest.$ac_ext <<_ACEOF
3535 /* confdefs.h. */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3540
3541 int
3542 main ()
3543 {
3544
3545 ;
3546 return 0;
3547 }
3548 _ACEOF
3549 rm -f conftest.o conftest.obj
3550 if { (ac_try="$ac_compile"
3551 case "(($ac_try" in
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3554 esac
3555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3556 $as_echo "$ac_try_echo") >&5
3557 (eval "$ac_compile") 2>&5
3558 ac_status=$?
3559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; then
3561 for ac_file in conftest.o conftest.obj conftest.*; do
3562 test -f "$ac_file" || continue;
3563 case $ac_file in
3564 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3565 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3566 break;;
3567 esac
3568 done
3569 else
3570 $as_echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3572
3573 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3574 See \`config.log' for more details." >&5
3575 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3576 See \`config.log' for more details." >&2;}
3577 { (exit 1); exit 1; }; }
3578 fi
3579
3580 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3581 fi
3582 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3583 $as_echo "$ac_cv_objext" >&6; }
3584 OBJEXT=$ac_cv_objext
3585 ac_objext=$OBJEXT
3586 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3587 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3588 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3589 $as_echo_n "(cached) " >&6
3590 else
3591 cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h. */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3597
3598 int
3599 main ()
3600 {
3601 #ifndef __GNUC__
3602 choke me
3603 #endif
3604
3605 ;
3606 return 0;
3607 }
3608 _ACEOF
3609 rm -f conftest.$ac_objext
3610 if { (ac_try="$ac_compile"
3611 case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3614 esac
3615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3616 $as_echo "$ac_try_echo") >&5
3617 (eval "$ac_compile") 2>conftest.er1
3618 ac_status=$?
3619 grep -v '^ *+' conftest.er1 >conftest.err
3620 rm -f conftest.er1
3621 cat conftest.err >&5
3622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } && {
3624 test -z "$ac_c_werror_flag" ||
3625 test ! -s conftest.err
3626 } && test -s conftest.$ac_objext; then
3627 ac_compiler_gnu=yes
3628 else
3629 $as_echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3631
3632 ac_compiler_gnu=no
3633 fi
3634
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3637
3638 fi
3639 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3640 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3641 if test $ac_compiler_gnu = yes; then
3642 GCC=yes
3643 else
3644 GCC=
3645 fi
3646 ac_test_CFLAGS=${CFLAGS+set}
3647 ac_save_CFLAGS=$CFLAGS
3648 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3649 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3650 if test "${ac_cv_prog_cc_g+set}" = set; then
3651 $as_echo_n "(cached) " >&6
3652 else
3653 ac_save_c_werror_flag=$ac_c_werror_flag
3654 ac_c_werror_flag=yes
3655 ac_cv_prog_cc_g=no
3656 CFLAGS="-g"
3657 cat >conftest.$ac_ext <<_ACEOF
3658 /* confdefs.h. */
3659 _ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3663
3664 int
3665 main ()
3666 {
3667
3668 ;
3669 return 0;
3670 }
3671 _ACEOF
3672 rm -f conftest.$ac_objext
3673 if { (ac_try="$ac_compile"
3674 case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3677 esac
3678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3679 $as_echo "$ac_try_echo") >&5
3680 (eval "$ac_compile") 2>conftest.er1
3681 ac_status=$?
3682 grep -v '^ *+' conftest.er1 >conftest.err
3683 rm -f conftest.er1
3684 cat conftest.err >&5
3685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } && {
3687 test -z "$ac_c_werror_flag" ||
3688 test ! -s conftest.err
3689 } && test -s conftest.$ac_objext; then
3690 ac_cv_prog_cc_g=yes
3691 else
3692 $as_echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3694
3695 CFLAGS=""
3696 cat >conftest.$ac_ext <<_ACEOF
3697 /* confdefs.h. */
3698 _ACEOF
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3702
3703 int
3704 main ()
3705 {
3706
3707 ;
3708 return 0;
3709 }
3710 _ACEOF
3711 rm -f conftest.$ac_objext
3712 if { (ac_try="$ac_compile"
3713 case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716 esac
3717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3718 $as_echo "$ac_try_echo") >&5
3719 (eval "$ac_compile") 2>conftest.er1
3720 ac_status=$?
3721 grep -v '^ *+' conftest.er1 >conftest.err
3722 rm -f conftest.er1
3723 cat conftest.err >&5
3724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } && {
3726 test -z "$ac_c_werror_flag" ||
3727 test ! -s conftest.err
3728 } && test -s conftest.$ac_objext; then
3729 :
3730 else
3731 $as_echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3733
3734 ac_c_werror_flag=$ac_save_c_werror_flag
3735 CFLAGS="-g"
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h. */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742
3743 int
3744 main ()
3745 {
3746
3747 ;
3748 return 0;
3749 }
3750 _ACEOF
3751 rm -f conftest.$ac_objext
3752 if { (ac_try="$ac_compile"
3753 case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3756 esac
3757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3758 $as_echo "$ac_try_echo") >&5
3759 (eval "$ac_compile") 2>conftest.er1
3760 ac_status=$?
3761 grep -v '^ *+' conftest.er1 >conftest.err
3762 rm -f conftest.er1
3763 cat conftest.err >&5
3764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); } && {
3766 test -z "$ac_c_werror_flag" ||
3767 test ! -s conftest.err
3768 } && test -s conftest.$ac_objext; then
3769 ac_cv_prog_cc_g=yes
3770 else
3771 $as_echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3773
3774
3775 fi
3776
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778 fi
3779
3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781 fi
3782
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 ac_c_werror_flag=$ac_save_c_werror_flag
3785 fi
3786 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3787 $as_echo "$ac_cv_prog_cc_g" >&6; }
3788 if test "$ac_test_CFLAGS" = set; then
3789 CFLAGS=$ac_save_CFLAGS
3790 elif test $ac_cv_prog_cc_g = yes; then
3791 if test "$GCC" = yes; then
3792 CFLAGS="-g -O2"
3793 else
3794 CFLAGS="-g"
3795 fi
3796 else
3797 if test "$GCC" = yes; then
3798 CFLAGS="-O2"
3799 else
3800 CFLAGS=
3801 fi
3802 fi
3803 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3804 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3805 if test "${ac_cv_prog_cc_c89+set}" = set; then
3806 $as_echo_n "(cached) " >&6
3807 else
3808 ac_cv_prog_cc_c89=no
3809 ac_save_CC=$CC
3810 cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h. */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3816 #include <stdarg.h>
3817 #include <stdio.h>
3818 #include <sys/types.h>
3819 #include <sys/stat.h>
3820 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3821 struct buf { int x; };
3822 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3823 static char *e (p, i)
3824 char **p;
3825 int i;
3826 {
3827 return p[i];
3828 }
3829 static char *f (char * (*g) (char **, int), char **p, ...)
3830 {
3831 char *s;
3832 va_list v;
3833 va_start (v,p);
3834 s = g (p, va_arg (v,int));
3835 va_end (v);
3836 return s;
3837 }
3838
3839 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3840 function prototypes and stuff, but not '\xHH' hex character constants.
3841 These don't provoke an error unfortunately, instead are silently treated
3842 as 'x'. The following induces an error, until -std is added to get
3843 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3844 array size at least. It's necessary to write '\x00'==0 to get something
3845 that's true only with -std. */
3846 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3847
3848 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3849 inside strings and character constants. */
3850 #define FOO(x) 'x'
3851 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3852
3853 int test (int i, double x);
3854 struct s1 {int (*f) (int a);};
3855 struct s2 {int (*f) (double a);};
3856 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3857 int argc;
3858 char **argv;
3859 int
3860 main ()
3861 {
3862 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3863 ;
3864 return 0;
3865 }
3866 _ACEOF
3867 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3868 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3869 do
3870 CC="$ac_save_CC $ac_arg"
3871 rm -f conftest.$ac_objext
3872 if { (ac_try="$ac_compile"
3873 case "(($ac_try" in
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3876 esac
3877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3878 $as_echo "$ac_try_echo") >&5
3879 (eval "$ac_compile") 2>conftest.er1
3880 ac_status=$?
3881 grep -v '^ *+' conftest.er1 >conftest.err
3882 rm -f conftest.er1
3883 cat conftest.err >&5
3884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } && {
3886 test -z "$ac_c_werror_flag" ||
3887 test ! -s conftest.err
3888 } && test -s conftest.$ac_objext; then
3889 ac_cv_prog_cc_c89=$ac_arg
3890 else
3891 $as_echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3893
3894
3895 fi
3896
3897 rm -f core conftest.err conftest.$ac_objext
3898 test "x$ac_cv_prog_cc_c89" != "xno" && break
3899 done
3900 rm -f conftest.$ac_ext
3901 CC=$ac_save_CC
3902
3903 fi
3904 # AC_CACHE_VAL
3905 case "x$ac_cv_prog_cc_c89" in
3906 x)
3907 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3908 $as_echo "none needed" >&6; } ;;
3909 xno)
3910 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3911 $as_echo "unsupported" >&6; } ;;
3912 *)
3913 CC="$CC $ac_cv_prog_cc_c89"
3914 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3915 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3916 esac
3917
3918
3919 ac_ext=c
3920 ac_cpp='$CPP $CPPFLAGS'
3921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3924
3925
3926 # On Suns, sometimes $CPP names a directory.
3927 if test -n "$CPP" && test -d "$CPP"; then
3928 CPP=
3929 fi
3930
3931 ## If not using gcc, and on Solaris, and no CPP specified, see if
3932 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3933 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3934 test x"$CPP" = x; then
3935 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3936 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3937
3938 if test "${emacs_cv_sunpro_c+set}" = set; then
3939 $as_echo_n "(cached) " >&6
3940 else
3941 cat >conftest.$ac_ext <<_ACEOF
3942 /* confdefs.h. */
3943 _ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3947
3948 int
3949 main ()
3950 {
3951 #ifndef __SUNPRO_C
3952 fail;
3953 #endif
3954
3955 ;
3956 return 0;
3957 }
3958 _ACEOF
3959 rm -f conftest.$ac_objext conftest$ac_exeext
3960 if { (ac_try="$ac_link"
3961 case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964 esac
3965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3966 $as_echo "$ac_try_echo") >&5
3967 (eval "$ac_link") 2>conftest.er1
3968 ac_status=$?
3969 grep -v '^ *+' conftest.er1 >conftest.err
3970 rm -f conftest.er1
3971 cat conftest.err >&5
3972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } && {
3974 test -z "$ac_c_werror_flag" ||
3975 test ! -s conftest.err
3976 } && test -s conftest$ac_exeext && {
3977 test "$cross_compiling" = yes ||
3978 $as_test_x conftest$ac_exeext
3979 }; then
3980 emacs_cv_sunpro_c=yes
3981 else
3982 $as_echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3984
3985 emacs_cv_sunpro_c=no
3986 fi
3987
3988 rm -rf conftest.dSYM
3989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3990 conftest$ac_exeext conftest.$ac_ext
3991 fi
3992
3993 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3994 $as_echo "$emacs_cv_sunpro_c" >&6; }
3995
3996 if test x"$emacs_cv_sunpro_c" = xyes; then
3997 NON_GNU_CPP="$CC -E -Xs"
3998 fi
3999 fi
4000
4001 #### Some systems specify a CPP to use unless we are using GCC.
4002 #### Now that we know whether we are using GCC, we can decide whether
4003 #### to use that one.
4004 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4005 then
4006 CPP="$NON_GNU_CPP"
4007 fi
4008
4009 #### Some systems specify a CC to use unless we are using GCC.
4010 #### Now that we know whether we are using GCC, we can decide whether
4011 #### to use that one.
4012 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4013 test x$cc_specified != xyes
4014 then
4015 CC="$NON_GNU_CC"
4016 fi
4017
4018 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4019 then
4020 CC="$CC $GCC_TEST_OPTIONS"
4021 fi
4022
4023 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4024 then
4025 CC="$CC $NON_GCC_TEST_OPTIONS"
4026 fi
4027
4028 ac_ext=c
4029 ac_cpp='$CPP $CPPFLAGS'
4030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4034 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4035 # On Suns, sometimes $CPP names a directory.
4036 if test -n "$CPP" && test -d "$CPP"; then
4037 CPP=
4038 fi
4039 if test -z "$CPP"; then
4040 if test "${ac_cv_prog_CPP+set}" = set; then
4041 $as_echo_n "(cached) " >&6
4042 else
4043 # Double quotes because CPP needs to be expanded
4044 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4045 do
4046 ac_preproc_ok=false
4047 for ac_c_preproc_warn_flag in '' yes
4048 do
4049 # Use a header file that comes with gcc, so configuring glibc
4050 # with a fresh cross-compiler works.
4051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4052 # <limits.h> exists even on freestanding compilers.
4053 # On the NeXT, cc -E runs the code through the compiler's parser,
4054 # not just through cpp. "Syntax error" is here to catch this case.
4055 cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h. */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061 #ifdef __STDC__
4062 # include <limits.h>
4063 #else
4064 # include <assert.h>
4065 #endif
4066 Syntax error
4067 _ACEOF
4068 if { (ac_try="$ac_cpp conftest.$ac_ext"
4069 case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4072 esac
4073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4074 $as_echo "$ac_try_echo") >&5
4075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4076 ac_status=$?
4077 grep -v '^ *+' conftest.er1 >conftest.err
4078 rm -f conftest.er1
4079 cat conftest.err >&5
4080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } >/dev/null && {
4082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4083 test ! -s conftest.err
4084 }; then
4085 :
4086 else
4087 $as_echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4089
4090 # Broken: fails on valid input.
4091 continue
4092 fi
4093
4094 rm -f conftest.err conftest.$ac_ext
4095
4096 # OK, works on sane cases. Now check whether nonexistent headers
4097 # can be detected and how.
4098 cat >conftest.$ac_ext <<_ACEOF
4099 /* confdefs.h. */
4100 _ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4104 #include <ac_nonexistent.h>
4105 _ACEOF
4106 if { (ac_try="$ac_cpp conftest.$ac_ext"
4107 case "(($ac_try" in
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4110 esac
4111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4112 $as_echo "$ac_try_echo") >&5
4113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4114 ac_status=$?
4115 grep -v '^ *+' conftest.er1 >conftest.err
4116 rm -f conftest.er1
4117 cat conftest.err >&5
4118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } >/dev/null && {
4120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4121 test ! -s conftest.err
4122 }; then
4123 # Broken: success on invalid input.
4124 continue
4125 else
4126 $as_echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4128
4129 # Passes both tests.
4130 ac_preproc_ok=:
4131 break
4132 fi
4133
4134 rm -f conftest.err conftest.$ac_ext
4135
4136 done
4137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4138 rm -f conftest.err conftest.$ac_ext
4139 if $ac_preproc_ok; then
4140 break
4141 fi
4142
4143 done
4144 ac_cv_prog_CPP=$CPP
4145
4146 fi
4147 CPP=$ac_cv_prog_CPP
4148 else
4149 ac_cv_prog_CPP=$CPP
4150 fi
4151 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4152 $as_echo "$CPP" >&6; }
4153 ac_preproc_ok=false
4154 for ac_c_preproc_warn_flag in '' yes
4155 do
4156 # Use a header file that comes with gcc, so configuring glibc
4157 # with a fresh cross-compiler works.
4158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4159 # <limits.h> exists even on freestanding compilers.
4160 # On the NeXT, cc -E runs the code through the compiler's parser,
4161 # not just through cpp. "Syntax error" is here to catch this case.
4162 cat >conftest.$ac_ext <<_ACEOF
4163 /* confdefs.h. */
4164 _ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4168 #ifdef __STDC__
4169 # include <limits.h>
4170 #else
4171 # include <assert.h>
4172 #endif
4173 Syntax error
4174 _ACEOF
4175 if { (ac_try="$ac_cpp conftest.$ac_ext"
4176 case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179 esac
4180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4181 $as_echo "$ac_try_echo") >&5
4182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4183 ac_status=$?
4184 grep -v '^ *+' conftest.er1 >conftest.err
4185 rm -f conftest.er1
4186 cat conftest.err >&5
4187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } >/dev/null && {
4189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4190 test ! -s conftest.err
4191 }; then
4192 :
4193 else
4194 $as_echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4196
4197 # Broken: fails on valid input.
4198 continue
4199 fi
4200
4201 rm -f conftest.err conftest.$ac_ext
4202
4203 # OK, works on sane cases. Now check whether nonexistent headers
4204 # can be detected and how.
4205 cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h. */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4211 #include <ac_nonexistent.h>
4212 _ACEOF
4213 if { (ac_try="$ac_cpp conftest.$ac_ext"
4214 case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217 esac
4218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4219 $as_echo "$ac_try_echo") >&5
4220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4221 ac_status=$?
4222 grep -v '^ *+' conftest.er1 >conftest.err
4223 rm -f conftest.er1
4224 cat conftest.err >&5
4225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } >/dev/null && {
4227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4228 test ! -s conftest.err
4229 }; then
4230 # Broken: success on invalid input.
4231 continue
4232 else
4233 $as_echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4235
4236 # Passes both tests.
4237 ac_preproc_ok=:
4238 break
4239 fi
4240
4241 rm -f conftest.err conftest.$ac_ext
4242
4243 done
4244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4245 rm -f conftest.err conftest.$ac_ext
4246 if $ac_preproc_ok; then
4247 :
4248 else
4249 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4250 See \`config.log' for more details." >&5
4251 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4252 See \`config.log' for more details." >&2;}
4253 { (exit 1); exit 1; }; }
4254 fi
4255
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
4262
4263 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4264 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4265 if test "${ac_cv_path_GREP+set}" = set; then
4266 $as_echo_n "(cached) " >&6
4267 else
4268 if test -z "$GREP"; then
4269 ac_path_GREP_found=false
4270 # Loop through the user's path and test for each of PROGNAME-LIST
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4273 do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_prog in grep ggrep; do
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4279 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4280 # Check for GNU ac_path_GREP and select it if it is found.
4281 # Check for GNU $ac_path_GREP
4282 case `"$ac_path_GREP" --version 2>&1` in
4283 *GNU*)
4284 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4285 *)
4286 ac_count=0
4287 $as_echo_n 0123456789 >"conftest.in"
4288 while :
4289 do
4290 cat "conftest.in" "conftest.in" >"conftest.tmp"
4291 mv "conftest.tmp" "conftest.in"
4292 cp "conftest.in" "conftest.nl"
4293 $as_echo 'GREP' >> "conftest.nl"
4294 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4295 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4296 ac_count=`expr $ac_count + 1`
4297 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4298 # Best one so far, save it but keep looking for a better one
4299 ac_cv_path_GREP="$ac_path_GREP"
4300 ac_path_GREP_max=$ac_count
4301 fi
4302 # 10*(2^10) chars as input seems more than enough
4303 test $ac_count -gt 10 && break
4304 done
4305 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4306 esac
4307
4308 $ac_path_GREP_found && break 3
4309 done
4310 done
4311 done
4312 IFS=$as_save_IFS
4313 if test -z "$ac_cv_path_GREP"; then
4314 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4315 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4316 { (exit 1); exit 1; }; }
4317 fi
4318 else
4319 ac_cv_path_GREP=$GREP
4320 fi
4321
4322 fi
4323 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4324 $as_echo "$ac_cv_path_GREP" >&6; }
4325 GREP="$ac_cv_path_GREP"
4326
4327
4328 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4329 $as_echo_n "checking for egrep... " >&6; }
4330 if test "${ac_cv_path_EGREP+set}" = set; then
4331 $as_echo_n "(cached) " >&6
4332 else
4333 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4334 then ac_cv_path_EGREP="$GREP -E"
4335 else
4336 if test -z "$EGREP"; then
4337 ac_path_EGREP_found=false
4338 # Loop through the user's path and test for each of PROGNAME-LIST
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4341 do
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_prog in egrep; do
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4347 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4348 # Check for GNU ac_path_EGREP and select it if it is found.
4349 # Check for GNU $ac_path_EGREP
4350 case `"$ac_path_EGREP" --version 2>&1` in
4351 *GNU*)
4352 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4353 *)
4354 ac_count=0
4355 $as_echo_n 0123456789 >"conftest.in"
4356 while :
4357 do
4358 cat "conftest.in" "conftest.in" >"conftest.tmp"
4359 mv "conftest.tmp" "conftest.in"
4360 cp "conftest.in" "conftest.nl"
4361 $as_echo 'EGREP' >> "conftest.nl"
4362 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4364 ac_count=`expr $ac_count + 1`
4365 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4366 # Best one so far, save it but keep looking for a better one
4367 ac_cv_path_EGREP="$ac_path_EGREP"
4368 ac_path_EGREP_max=$ac_count
4369 fi
4370 # 10*(2^10) chars as input seems more than enough
4371 test $ac_count -gt 10 && break
4372 done
4373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4374 esac
4375
4376 $ac_path_EGREP_found && break 3
4377 done
4378 done
4379 done
4380 IFS=$as_save_IFS
4381 if test -z "$ac_cv_path_EGREP"; then
4382 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4383 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4384 { (exit 1); exit 1; }; }
4385 fi
4386 else
4387 ac_cv_path_EGREP=$EGREP
4388 fi
4389
4390 fi
4391 fi
4392 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4393 $as_echo "$ac_cv_path_EGREP" >&6; }
4394 EGREP="$ac_cv_path_EGREP"
4395
4396
4397 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4398 $as_echo_n "checking for ANSI C header files... " >&6; }
4399 if test "${ac_cv_header_stdc+set}" = set; then
4400 $as_echo_n "(cached) " >&6
4401 else
4402 cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h. */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 #include <stdlib.h>
4409 #include <stdarg.h>
4410 #include <string.h>
4411 #include <float.h>
4412
4413 int
4414 main ()
4415 {
4416
4417 ;
4418 return 0;
4419 }
4420 _ACEOF
4421 rm -f conftest.$ac_objext
4422 if { (ac_try="$ac_compile"
4423 case "(($ac_try" in
4424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425 *) ac_try_echo=$ac_try;;
4426 esac
4427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4428 $as_echo "$ac_try_echo") >&5
4429 (eval "$ac_compile") 2>conftest.er1
4430 ac_status=$?
4431 grep -v '^ *+' conftest.er1 >conftest.err
4432 rm -f conftest.er1
4433 cat conftest.err >&5
4434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } && {
4436 test -z "$ac_c_werror_flag" ||
4437 test ! -s conftest.err
4438 } && test -s conftest.$ac_objext; then
4439 ac_cv_header_stdc=yes
4440 else
4441 $as_echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4443
4444 ac_cv_header_stdc=no
4445 fi
4446
4447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448
4449 if test $ac_cv_header_stdc = yes; then
4450 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4451 cat >conftest.$ac_ext <<_ACEOF
4452 /* confdefs.h. */
4453 _ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4457 #include <string.h>
4458
4459 _ACEOF
4460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4461 $EGREP "memchr" >/dev/null 2>&1; then
4462 :
4463 else
4464 ac_cv_header_stdc=no
4465 fi
4466 rm -f conftest*
4467
4468 fi
4469
4470 if test $ac_cv_header_stdc = yes; then
4471 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4472 cat >conftest.$ac_ext <<_ACEOF
4473 /* confdefs.h. */
4474 _ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4478 #include <stdlib.h>
4479
4480 _ACEOF
4481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4482 $EGREP "free" >/dev/null 2>&1; then
4483 :
4484 else
4485 ac_cv_header_stdc=no
4486 fi
4487 rm -f conftest*
4488
4489 fi
4490
4491 if test $ac_cv_header_stdc = yes; then
4492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4493 if test "$cross_compiling" = yes; then
4494 :
4495 else
4496 cat >conftest.$ac_ext <<_ACEOF
4497 /* confdefs.h. */
4498 _ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4502 #include <ctype.h>
4503 #include <stdlib.h>
4504 #if ((' ' & 0x0FF) == 0x020)
4505 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4506 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4507 #else
4508 # define ISLOWER(c) \
4509 (('a' <= (c) && (c) <= 'i') \
4510 || ('j' <= (c) && (c) <= 'r') \
4511 || ('s' <= (c) && (c) <= 'z'))
4512 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4513 #endif
4514
4515 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4516 int
4517 main ()
4518 {
4519 int i;
4520 for (i = 0; i < 256; i++)
4521 if (XOR (islower (i), ISLOWER (i))
4522 || toupper (i) != TOUPPER (i))
4523 return 2;
4524 return 0;
4525 }
4526 _ACEOF
4527 rm -f conftest$ac_exeext
4528 if { (ac_try="$ac_link"
4529 case "(($ac_try" in
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4532 esac
4533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4534 $as_echo "$ac_try_echo") >&5
4535 (eval "$ac_link") 2>&5
4536 ac_status=$?
4537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4539 { (case "(($ac_try" in
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4542 esac
4543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4544 $as_echo "$ac_try_echo") >&5
4545 (eval "$ac_try") 2>&5
4546 ac_status=$?
4547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; }; then
4549 :
4550 else
4551 $as_echo "$as_me: program exited with status $ac_status" >&5
4552 $as_echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4554
4555 ( exit $ac_status )
4556 ac_cv_header_stdc=no
4557 fi
4558 rm -rf conftest.dSYM
4559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4560 fi
4561
4562
4563 fi
4564 fi
4565 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4566 $as_echo "$ac_cv_header_stdc" >&6; }
4567 if test $ac_cv_header_stdc = yes; then
4568
4569 cat >>confdefs.h <<\_ACEOF
4570 #define STDC_HEADERS 1
4571 _ACEOF
4572
4573 fi
4574
4575 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4586 inttypes.h stdint.h unistd.h
4587 do
4588 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4589 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4590 $as_echo_n "checking for $ac_header... " >&6; }
4591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4592 $as_echo_n "(cached) " >&6
4593 else
4594 cat >conftest.$ac_ext <<_ACEOF
4595 /* confdefs.h. */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4600 $ac_includes_default
4601
4602 #include <$ac_header>
4603 _ACEOF
4604 rm -f conftest.$ac_objext
4605 if { (ac_try="$ac_compile"
4606 case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4609 esac
4610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4611 $as_echo "$ac_try_echo") >&5
4612 (eval "$ac_compile") 2>conftest.er1
4613 ac_status=$?
4614 grep -v '^ *+' conftest.er1 >conftest.err
4615 rm -f conftest.er1
4616 cat conftest.err >&5
4617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } && {
4619 test -z "$ac_c_werror_flag" ||
4620 test ! -s conftest.err
4621 } && test -s conftest.$ac_objext; then
4622 eval "$as_ac_Header=yes"
4623 else
4624 $as_echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627 eval "$as_ac_Header=no"
4628 fi
4629
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 fi
4632 ac_res=`eval 'as_val=${'$as_ac_Header'}
4633 $as_echo "$as_val"'`
4634 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4635 $as_echo "$ac_res" >&6; }
4636 if test `eval 'as_val=${'$as_ac_Header'}
4637 $as_echo "$as_val"'` = yes; then
4638 cat >>confdefs.h <<_ACEOF
4639 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4640 _ACEOF
4641
4642 fi
4643
4644 done
4645
4646
4647
4648 if test "${ac_cv_header_minix_config_h+set}" = set; then
4649 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4650 $as_echo_n "checking for minix/config.h... " >&6; }
4651 if test "${ac_cv_header_minix_config_h+set}" = set; then
4652 $as_echo_n "(cached) " >&6
4653 fi
4654 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4655 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4656 else
4657 # Is the header compilable?
4658 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4659 $as_echo_n "checking minix/config.h usability... " >&6; }
4660 cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h. */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 $ac_includes_default
4667 #include <minix/config.h>
4668 _ACEOF
4669 rm -f conftest.$ac_objext
4670 if { (ac_try="$ac_compile"
4671 case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4674 esac
4675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4676 $as_echo "$ac_try_echo") >&5
4677 (eval "$ac_compile") 2>conftest.er1
4678 ac_status=$?
4679 grep -v '^ *+' conftest.er1 >conftest.err
4680 rm -f conftest.er1
4681 cat conftest.err >&5
4682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } && {
4684 test -z "$ac_c_werror_flag" ||
4685 test ! -s conftest.err
4686 } && test -s conftest.$ac_objext; then
4687 ac_header_compiler=yes
4688 else
4689 $as_echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4691
4692 ac_header_compiler=no
4693 fi
4694
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4697 $as_echo "$ac_header_compiler" >&6; }
4698
4699 # Is the header present?
4700 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4701 $as_echo_n "checking minix/config.h presence... " >&6; }
4702 cat >conftest.$ac_ext <<_ACEOF
4703 /* confdefs.h. */
4704 _ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4708 #include <minix/config.h>
4709 _ACEOF
4710 if { (ac_try="$ac_cpp conftest.$ac_ext"
4711 case "(($ac_try" in
4712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713 *) ac_try_echo=$ac_try;;
4714 esac
4715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4716 $as_echo "$ac_try_echo") >&5
4717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4718 ac_status=$?
4719 grep -v '^ *+' conftest.er1 >conftest.err
4720 rm -f conftest.er1
4721 cat conftest.err >&5
4722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } >/dev/null && {
4724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4725 test ! -s conftest.err
4726 }; then
4727 ac_header_preproc=yes
4728 else
4729 $as_echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4731
4732 ac_header_preproc=no
4733 fi
4734
4735 rm -f conftest.err conftest.$ac_ext
4736 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4737 $as_echo "$ac_header_preproc" >&6; }
4738
4739 # So? What about this header?
4740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4741 yes:no: )
4742 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4743 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4744 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4745 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4746 ac_header_preproc=yes
4747 ;;
4748 no:yes:* )
4749 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4750 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4751 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4752 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4753 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4754 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4755 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4756 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4757 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4758 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4759 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4760 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4761
4762 ;;
4763 esac
4764 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4765 $as_echo_n "checking for minix/config.h... " >&6; }
4766 if test "${ac_cv_header_minix_config_h+set}" = set; then
4767 $as_echo_n "(cached) " >&6
4768 else
4769 ac_cv_header_minix_config_h=$ac_header_preproc
4770 fi
4771 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4772 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4773
4774 fi
4775 if test $ac_cv_header_minix_config_h = yes; then
4776 MINIX=yes
4777 else
4778 MINIX=
4779 fi
4780
4781
4782 if test "$MINIX" = yes; then
4783
4784 cat >>confdefs.h <<\_ACEOF
4785 #define _POSIX_SOURCE 1
4786 _ACEOF
4787
4788
4789 cat >>confdefs.h <<\_ACEOF
4790 #define _POSIX_1_SOURCE 2
4791 _ACEOF
4792
4793
4794 cat >>confdefs.h <<\_ACEOF
4795 #define _MINIX 1
4796 _ACEOF
4797
4798 fi
4799
4800
4801
4802 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4803 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4804 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4805 $as_echo_n "(cached) " >&6
4806 else
4807 cat >conftest.$ac_ext <<_ACEOF
4808 /* confdefs.h. */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4813
4814 # define __EXTENSIONS__ 1
4815 $ac_includes_default
4816 int
4817 main ()
4818 {
4819
4820 ;
4821 return 0;
4822 }
4823 _ACEOF
4824 rm -f conftest.$ac_objext
4825 if { (ac_try="$ac_compile"
4826 case "(($ac_try" in
4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828 *) ac_try_echo=$ac_try;;
4829 esac
4830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4831 $as_echo "$ac_try_echo") >&5
4832 (eval "$ac_compile") 2>conftest.er1
4833 ac_status=$?
4834 grep -v '^ *+' conftest.er1 >conftest.err
4835 rm -f conftest.er1
4836 cat conftest.err >&5
4837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } && {
4839 test -z "$ac_c_werror_flag" ||
4840 test ! -s conftest.err
4841 } && test -s conftest.$ac_objext; then
4842 ac_cv_safe_to_define___extensions__=yes
4843 else
4844 $as_echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4846
4847 ac_cv_safe_to_define___extensions__=no
4848 fi
4849
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851 fi
4852 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4853 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4854 test $ac_cv_safe_to_define___extensions__ = yes &&
4855 cat >>confdefs.h <<\_ACEOF
4856 #define __EXTENSIONS__ 1
4857 _ACEOF
4858
4859 cat >>confdefs.h <<\_ACEOF
4860 #define _ALL_SOURCE 1
4861 _ACEOF
4862
4863 cat >>confdefs.h <<\_ACEOF
4864 #define _GNU_SOURCE 1
4865 _ACEOF
4866
4867 cat >>confdefs.h <<\_ACEOF
4868 #define _POSIX_PTHREAD_SEMANTICS 1
4869 _ACEOF
4870
4871 cat >>confdefs.h <<\_ACEOF
4872 #define _TANDEM_SOURCE 1
4873 _ACEOF
4874
4875
4876
4877 ### Use -Wno-pointer-sign if the compiler supports it
4878 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4879 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4880 SAVE_CFLAGS="$CFLAGS"
4881 CFLAGS="$CFLAGS -Wno-pointer-sign"
4882 cat >conftest.$ac_ext <<_ACEOF
4883 /* confdefs.h. */
4884 _ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4888
4889 int
4890 main ()
4891 {
4892
4893 ;
4894 return 0;
4895 }
4896 _ACEOF
4897 rm -f conftest.$ac_objext
4898 if { (ac_try="$ac_compile"
4899 case "(($ac_try" in
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4902 esac
4903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4904 $as_echo "$ac_try_echo") >&5
4905 (eval "$ac_compile") 2>conftest.er1
4906 ac_status=$?
4907 grep -v '^ *+' conftest.er1 >conftest.err
4908 rm -f conftest.er1
4909 cat conftest.err >&5
4910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } && {
4912 test -z "$ac_c_werror_flag" ||
4913 test ! -s conftest.err
4914 } && test -s conftest.$ac_objext; then
4915 has_option=yes
4916 else
4917 $as_echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4919
4920 has_option=no
4921 fi
4922
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 if test $has_option = yes; then
4925 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4926 fi
4927 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4928 $as_echo "$has_option" >&6; }
4929 CFLAGS="$SAVE_CFLAGS"
4930 unset has_option
4931 unset SAVE_CFLAGS
4932
4933 ### Use -Wdeclaration-after-statement if the compiler supports it
4934 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4935 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4936 SAVE_CFLAGS="$CFLAGS"
4937 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4938 cat >conftest.$ac_ext <<_ACEOF
4939 /* confdefs.h. */
4940 _ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4944
4945 int
4946 main ()
4947 {
4948
4949 ;
4950 return 0;
4951 }
4952 _ACEOF
4953 rm -f conftest.$ac_objext
4954 if { (ac_try="$ac_compile"
4955 case "(($ac_try" in
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4958 esac
4959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4960 $as_echo "$ac_try_echo") >&5
4961 (eval "$ac_compile") 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } && {
4968 test -z "$ac_c_werror_flag" ||
4969 test ! -s conftest.err
4970 } && test -s conftest.$ac_objext; then
4971 has_option=yes
4972 else
4973 $as_echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 has_option=no
4977 fi
4978
4979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980 if test $has_option = yes; then
4981 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4982 fi
4983 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4984 $as_echo "$has_option" >&6; }
4985 CFLAGS="$SAVE_CFLAGS"
4986 unset has_option
4987 unset SAVE_CFLAGS
4988
4989 #### Some other nice autoconf tests.
4990
4991 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4992 $as_echo_n "checking whether ln -s works... " >&6; }
4993 LN_S=$as_ln_s
4994 if test "$LN_S" = "ln -s"; then
4995 { $as_echo "$as_me:$LINENO: result: yes" >&5
4996 $as_echo "yes" >&6; }
4997 else
4998 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4999 $as_echo "no, using $LN_S" >&6; }
5000 fi
5001
5002 ac_ext=c
5003 ac_cpp='$CPP $CPPFLAGS'
5004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5007 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5008 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5009 # On Suns, sometimes $CPP names a directory.
5010 if test -n "$CPP" && test -d "$CPP"; then
5011 CPP=
5012 fi
5013 if test -z "$CPP"; then
5014 if test "${ac_cv_prog_CPP+set}" = set; then
5015 $as_echo_n "(cached) " >&6
5016 else
5017 # Double quotes because CPP needs to be expanded
5018 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5019 do
5020 ac_preproc_ok=false
5021 for ac_c_preproc_warn_flag in '' yes
5022 do
5023 # Use a header file that comes with gcc, so configuring glibc
5024 # with a fresh cross-compiler works.
5025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5026 # <limits.h> exists even on freestanding compilers.
5027 # On the NeXT, cc -E runs the code through the compiler's parser,
5028 # not just through cpp. "Syntax error" is here to catch this case.
5029 cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h. */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5035 #ifdef __STDC__
5036 # include <limits.h>
5037 #else
5038 # include <assert.h>
5039 #endif
5040 Syntax error
5041 _ACEOF
5042 if { (ac_try="$ac_cpp conftest.$ac_ext"
5043 case "(($ac_try" in
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5046 esac
5047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5048 $as_echo "$ac_try_echo") >&5
5049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5050 ac_status=$?
5051 grep -v '^ *+' conftest.er1 >conftest.err
5052 rm -f conftest.er1
5053 cat conftest.err >&5
5054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } >/dev/null && {
5056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5057 test ! -s conftest.err
5058 }; then
5059 :
5060 else
5061 $as_echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5063
5064 # Broken: fails on valid input.
5065 continue
5066 fi
5067
5068 rm -f conftest.err conftest.$ac_ext
5069
5070 # OK, works on sane cases. Now check whether nonexistent headers
5071 # can be detected and how.
5072 cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h. */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5078 #include <ac_nonexistent.h>
5079 _ACEOF
5080 if { (ac_try="$ac_cpp conftest.$ac_ext"
5081 case "(($ac_try" in
5082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083 *) ac_try_echo=$ac_try;;
5084 esac
5085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5086 $as_echo "$ac_try_echo") >&5
5087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5088 ac_status=$?
5089 grep -v '^ *+' conftest.er1 >conftest.err
5090 rm -f conftest.er1
5091 cat conftest.err >&5
5092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } >/dev/null && {
5094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5095 test ! -s conftest.err
5096 }; then
5097 # Broken: success on invalid input.
5098 continue
5099 else
5100 $as_echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5102
5103 # Passes both tests.
5104 ac_preproc_ok=:
5105 break
5106 fi
5107
5108 rm -f conftest.err conftest.$ac_ext
5109
5110 done
5111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5112 rm -f conftest.err conftest.$ac_ext
5113 if $ac_preproc_ok; then
5114 break
5115 fi
5116
5117 done
5118 ac_cv_prog_CPP=$CPP
5119
5120 fi
5121 CPP=$ac_cv_prog_CPP
5122 else
5123 ac_cv_prog_CPP=$CPP
5124 fi
5125 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5126 $as_echo "$CPP" >&6; }
5127 ac_preproc_ok=false
5128 for ac_c_preproc_warn_flag in '' yes
5129 do
5130 # Use a header file that comes with gcc, so configuring glibc
5131 # with a fresh cross-compiler works.
5132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5133 # <limits.h> exists even on freestanding compilers.
5134 # On the NeXT, cc -E runs the code through the compiler's parser,
5135 # not just through cpp. "Syntax error" is here to catch this case.
5136 cat >conftest.$ac_ext <<_ACEOF
5137 /* confdefs.h. */
5138 _ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5142 #ifdef __STDC__
5143 # include <limits.h>
5144 #else
5145 # include <assert.h>
5146 #endif
5147 Syntax error
5148 _ACEOF
5149 if { (ac_try="$ac_cpp conftest.$ac_ext"
5150 case "(($ac_try" in
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5153 esac
5154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5155 $as_echo "$ac_try_echo") >&5
5156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5157 ac_status=$?
5158 grep -v '^ *+' conftest.er1 >conftest.err
5159 rm -f conftest.er1
5160 cat conftest.err >&5
5161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } >/dev/null && {
5163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5164 test ! -s conftest.err
5165 }; then
5166 :
5167 else
5168 $as_echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5170
5171 # Broken: fails on valid input.
5172 continue
5173 fi
5174
5175 rm -f conftest.err conftest.$ac_ext
5176
5177 # OK, works on sane cases. Now check whether nonexistent headers
5178 # can be detected and how.
5179 cat >conftest.$ac_ext <<_ACEOF
5180 /* confdefs.h. */
5181 _ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5185 #include <ac_nonexistent.h>
5186 _ACEOF
5187 if { (ac_try="$ac_cpp conftest.$ac_ext"
5188 case "(($ac_try" in
5189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5190 *) ac_try_echo=$ac_try;;
5191 esac
5192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5193 $as_echo "$ac_try_echo") >&5
5194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5195 ac_status=$?
5196 grep -v '^ *+' conftest.er1 >conftest.err
5197 rm -f conftest.er1
5198 cat conftest.err >&5
5199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } >/dev/null && {
5201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5202 test ! -s conftest.err
5203 }; then
5204 # Broken: success on invalid input.
5205 continue
5206 else
5207 $as_echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5209
5210 # Passes both tests.
5211 ac_preproc_ok=:
5212 break
5213 fi
5214
5215 rm -f conftest.err conftest.$ac_ext
5216
5217 done
5218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5219 rm -f conftest.err conftest.$ac_ext
5220 if $ac_preproc_ok; then
5221 :
5222 else
5223 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5224 See \`config.log' for more details." >&5
5225 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5226 See \`config.log' for more details." >&2;}
5227 { (exit 1); exit 1; }; }
5228 fi
5229
5230 ac_ext=c
5231 ac_cpp='$CPP $CPPFLAGS'
5232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5235
5236 # Find a good install program. We prefer a C program (faster),
5237 # so one script is as good as another. But avoid the broken or
5238 # incompatible versions:
5239 # SysV /etc/install, /usr/sbin/install
5240 # SunOS /usr/etc/install
5241 # IRIX /sbin/install
5242 # AIX /bin/install
5243 # AmigaOS /C/install, which installs bootblocks on floppy discs
5244 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5245 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5246 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5247 # OS/2's system install, which has a completely different semantic
5248 # ./install, which can be erroneously created by make from ./install.sh.
5249 # Reject install programs that cannot install multiple files.
5250 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5251 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5252 if test -z "$INSTALL"; then
5253 if test "${ac_cv_path_install+set}" = set; then
5254 $as_echo_n "(cached) " >&6
5255 else
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5258 do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 # Account for people who put trailing slashes in PATH elements.
5262 case $as_dir/ in
5263 ./ | .// | /cC/* | \
5264 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5265 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5266 /usr/ucb/* ) ;;
5267 *)
5268 # OSF1 and SCO ODT 3.0 have their own names for install.
5269 # Don't use installbsd from OSF since it installs stuff as root
5270 # by default.
5271 for ac_prog in ginstall scoinst install; do
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5274 if test $ac_prog = install &&
5275 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5276 # AIX install. It has an incompatible calling convention.
5277 :
5278 elif test $ac_prog = install &&
5279 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5280 # program-specific install script used by HP pwplus--don't use.
5281 :
5282 else
5283 rm -rf conftest.one conftest.two conftest.dir
5284 echo one > conftest.one
5285 echo two > conftest.two
5286 mkdir conftest.dir
5287 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5288 test -s conftest.one && test -s conftest.two &&
5289 test -s conftest.dir/conftest.one &&
5290 test -s conftest.dir/conftest.two
5291 then
5292 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5293 break 3
5294 fi
5295 fi
5296 fi
5297 done
5298 done
5299 ;;
5300 esac
5301
5302 done
5303 IFS=$as_save_IFS
5304
5305 rm -rf conftest.one conftest.two conftest.dir
5306
5307 fi
5308 if test "${ac_cv_path_install+set}" = set; then
5309 INSTALL=$ac_cv_path_install
5310 else
5311 # As a last resort, use the slow shell script. Don't cache a
5312 # value for INSTALL within a source directory, because that will
5313 # break other packages using the cache if that directory is
5314 # removed, or if the value is a relative name.
5315 INSTALL=$ac_install_sh
5316 fi
5317 fi
5318 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5319 $as_echo "$INSTALL" >&6; }
5320
5321 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5322 # It thinks the first close brace ends the variable substitution.
5323 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5324
5325 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5326
5327 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5328
5329 if test "x$RANLIB" = x; then
5330 if test -n "$ac_tool_prefix"; then
5331 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5332 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5333 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if test "${ac_cv_prog_RANLIB+set}" = set; then
5336 $as_echo_n "(cached) " >&6
5337 else
5338 if test -n "$RANLIB"; then
5339 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5340 else
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH
5343 do
5344 IFS=$as_save_IFS
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5349 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 break 2
5351 fi
5352 done
5353 done
5354 IFS=$as_save_IFS
5355
5356 fi
5357 fi
5358 RANLIB=$ac_cv_prog_RANLIB
5359 if test -n "$RANLIB"; then
5360 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5361 $as_echo "$RANLIB" >&6; }
5362 else
5363 { $as_echo "$as_me:$LINENO: result: no" >&5
5364 $as_echo "no" >&6; }
5365 fi
5366
5367
5368 fi
5369 if test -z "$ac_cv_prog_RANLIB"; then
5370 ac_ct_RANLIB=$RANLIB
5371 # Extract the first word of "ranlib", so it can be a program name with args.
5372 set dummy ranlib; ac_word=$2
5373 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5374 $as_echo_n "checking for $ac_word... " >&6; }
5375 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5376 $as_echo_n "(cached) " >&6
5377 else
5378 if test -n "$ac_ct_RANLIB"; then
5379 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5380 else
5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 for as_dir in $PATH
5383 do
5384 IFS=$as_save_IFS
5385 test -z "$as_dir" && as_dir=.
5386 for ac_exec_ext in '' $ac_executable_extensions; do
5387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5388 ac_cv_prog_ac_ct_RANLIB="ranlib"
5389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 break 2
5391 fi
5392 done
5393 done
5394 IFS=$as_save_IFS
5395
5396 fi
5397 fi
5398 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5399 if test -n "$ac_ct_RANLIB"; then
5400 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5401 $as_echo "$ac_ct_RANLIB" >&6; }
5402 else
5403 { $as_echo "$as_me:$LINENO: result: no" >&5
5404 $as_echo "no" >&6; }
5405 fi
5406
5407 if test "x$ac_ct_RANLIB" = x; then
5408 RANLIB=":"
5409 else
5410 case $cross_compiling:$ac_tool_warned in
5411 yes:)
5412 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5413 whose name does not start with the host triplet. If you think this
5414 configuration is useful to you, please write to autoconf@gnu.org." >&5
5415 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5416 whose name does not start with the host triplet. If you think this
5417 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5418 ac_tool_warned=yes ;;
5419 esac
5420 RANLIB=$ac_ct_RANLIB
5421 fi
5422 else
5423 RANLIB="$ac_cv_prog_RANLIB"
5424 fi
5425
5426 fi
5427 # Extract the first word of "install-info", so it can be a program name with args.
5428 set dummy install-info; ac_word=$2
5429 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5430 $as_echo_n "checking for $ac_word... " >&6; }
5431 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5432 $as_echo_n "(cached) " >&6
5433 else
5434 case $INSTALL_INFO in
5435 [\\/]* | ?:[\\/]*)
5436 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5437 ;;
5438 *)
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 for as_dir in $PATH
5441 do
5442 IFS=$as_save_IFS
5443 test -z "$as_dir" && as_dir=.
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5448 break 2
5449 fi
5450 done
5451 done
5452 IFS=$as_save_IFS
5453
5454 ;;
5455 esac
5456 fi
5457 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5458 if test -n "$INSTALL_INFO"; then
5459 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5460 $as_echo "$INSTALL_INFO" >&6; }
5461 else
5462 { $as_echo "$as_me:$LINENO: result: no" >&5
5463 $as_echo "no" >&6; }
5464 fi
5465
5466
5467 # Extract the first word of "install-info", so it can be a program name with args.
5468 set dummy install-info; ac_word=$2
5469 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5472 $as_echo_n "(cached) " >&6
5473 else
5474 case $INSTALL_INFO in
5475 [\\/]* | ?:[\\/]*)
5476 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5477 ;;
5478 *)
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in /usr/sbin
5481 do
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
5489 fi
5490 done
5491 done
5492 IFS=$as_save_IFS
5493
5494 ;;
5495 esac
5496 fi
5497 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5498 if test -n "$INSTALL_INFO"; then
5499 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5500 $as_echo "$INSTALL_INFO" >&6; }
5501 else
5502 { $as_echo "$as_me:$LINENO: result: no" >&5
5503 $as_echo "no" >&6; }
5504 fi
5505
5506
5507 # Extract the first word of "install-info", so it can be a program name with args.
5508 set dummy install-info; ac_word=$2
5509 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5510 $as_echo_n "checking for $ac_word... " >&6; }
5511 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5512 $as_echo_n "(cached) " >&6
5513 else
5514 case $INSTALL_INFO in
5515 [\\/]* | ?:[\\/]*)
5516 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5517 ;;
5518 *)
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 for as_dir in /sbin
5521 do
5522 IFS=$as_save_IFS
5523 test -z "$as_dir" && as_dir=.
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5526 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 break 2
5529 fi
5530 done
5531 done
5532 IFS=$as_save_IFS
5533
5534 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5535 ;;
5536 esac
5537 fi
5538 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5539 if test -n "$INSTALL_INFO"; then
5540 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5541 $as_echo "$INSTALL_INFO" >&6; }
5542 else
5543 { $as_echo "$as_me:$LINENO: result: no" >&5
5544 $as_echo "no" >&6; }
5545 fi
5546
5547
5548 # Extract the first word of "gzip", so it can be a program name with args.
5549 set dummy gzip; ac_word=$2
5550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5551 $as_echo_n "checking for $ac_word... " >&6; }
5552 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5553 $as_echo_n "(cached) " >&6
5554 else
5555 case $GZIP_PROG in
5556 [\\/]* | ?:[\\/]*)
5557 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5558 ;;
5559 *)
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in $PATH
5562 do
5563 IFS=$as_save_IFS
5564 test -z "$as_dir" && as_dir=.
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5567 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5568 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5569 break 2
5570 fi
5571 done
5572 done
5573 IFS=$as_save_IFS
5574
5575 ;;
5576 esac
5577 fi
5578 GZIP_PROG=$ac_cv_path_GZIP_PROG
5579 if test -n "$GZIP_PROG"; then
5580 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5581 $as_echo "$GZIP_PROG" >&6; }
5582 else
5583 { $as_echo "$as_me:$LINENO: result: no" >&5
5584 $as_echo "no" >&6; }
5585 fi
5586
5587
5588
5589
5590 ## Need makeinfo >= 4.6 (?) to build the manuals.
5591 # Extract the first word of "makeinfo", so it can be a program name with args.
5592 set dummy makeinfo; ac_word=$2
5593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5594 $as_echo_n "checking for $ac_word... " >&6; }
5595 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5596 $as_echo_n "(cached) " >&6
5597 else
5598 case $MAKEINFO in
5599 [\\/]* | ?:[\\/]*)
5600 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5601 ;;
5602 *)
5603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 for as_dir in $PATH
5605 do
5606 IFS=$as_save_IFS
5607 test -z "$as_dir" && as_dir=.
5608 for ac_exec_ext in '' $ac_executable_extensions; do
5609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5610 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5611 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5612 break 2
5613 fi
5614 done
5615 done
5616 IFS=$as_save_IFS
5617
5618 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5619 ;;
5620 esac
5621 fi
5622 MAKEINFO=$ac_cv_path_MAKEINFO
5623 if test -n "$MAKEINFO"; then
5624 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5625 $as_echo "$MAKEINFO" >&6; }
5626 else
5627 { $as_echo "$as_me:$LINENO: result: no" >&5
5628 $as_echo "no" >&6; }
5629 fi
5630
5631
5632 if test "$MAKEINFO" != "no" && \
5633 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
5634 MAKEINFO=no
5635 fi
5636
5637 ## Makeinfo is unusual. For a released Emacs, the manuals are
5638 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5639 ## therefore in the category of "special tools" not normally required, which
5640 ## configure does not have to check for (eg autoconf itself).
5641 ## In a Bazaar checkout on the other hand, the manuals are not included.
5642 ## So makeinfo is a requirement to build from Bazaar, and configure
5643 ## should test for it as it does for any other build requirement.
5644 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5645 ## with pre-built manuals, from a Bazaar checkout.
5646 if test "$MAKEINFO" = "no"; then
5647 if test "x${with_makeinfo}" = "xno"; then
5648 MAKEINFO=off
5649 elif ! test -e $srcdir/info/emacs; then
5650 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5651 source tree does not seem to have pre-built manuals in the \`info' directory.
5652 Either install a suitable version of makeinfo, or re-run configure
5653 with the \`--without-makeinfo' option to build without the manuals. " >&5
5654 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5655 source tree does not seem to have pre-built manuals in the \`info' directory.
5656 Either install a suitable version of makeinfo, or re-run configure
5657 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5658 { (exit 1); exit 1; }; }
5659 fi
5660 fi
5661
5662
5663 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5664 then
5665 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5666 fi
5667
5668 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5669 then
5670 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5671 fi
5672
5673
5674 late_LDFLAGS=$LDFLAGS
5675 if test "$GCC" = yes; then
5676 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5677 else
5678 LDFLAGS="$LDFLAGS -znocombreloc"
5679 fi
5680
5681 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5682 $as_echo_n "checking for -znocombreloc... " >&6; }
5683 cat >conftest.$ac_ext <<_ACEOF
5684 main(){return 0;}
5685 _ACEOF
5686 rm -f conftest.$ac_objext conftest$ac_exeext
5687 if { (ac_try="$ac_link"
5688 case "(($ac_try" in
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5691 esac
5692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5693 $as_echo "$ac_try_echo") >&5
5694 (eval "$ac_link") 2>conftest.er1
5695 ac_status=$?
5696 grep -v '^ *+' conftest.er1 >conftest.err
5697 rm -f conftest.er1
5698 cat conftest.err >&5
5699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && {
5701 test -z "$ac_c_werror_flag" ||
5702 test ! -s conftest.err
5703 } && test -s conftest$ac_exeext && {
5704 test "$cross_compiling" = yes ||
5705 $as_test_x conftest$ac_exeext
5706 }; then
5707 { $as_echo "$as_me:$LINENO: result: yes" >&5
5708 $as_echo "yes" >&6; }
5709 else
5710 $as_echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5712
5713 LDFLAGS=$late_LDFLAGS
5714 { $as_echo "$as_me:$LINENO: result: no" >&5
5715 $as_echo "no" >&6; }
5716 fi
5717
5718 rm -rf conftest.dSYM
5719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5720 conftest$ac_exeext conftest.$ac_ext
5721
5722 #### Extract some information from the operating system and machine files.
5723
5724 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5725 - which libraries the lib-src programs will want, and
5726 - whether the GNU malloc routines are usable..." >&5
5727 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5728 - which libraries the lib-src programs will want, and
5729 - whether the GNU malloc routines are usable..." >&6;}
5730
5731 ### First figure out CFLAGS (which we use for running the compiler here)
5732 ### and REAL_CFLAGS (which we use for real compilation).
5733 ### The two are the same except on a few systems, where they are made
5734 ### different to work around various lossages. For example,
5735 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5736 ### as implying static linking.
5737
5738 ### If the CFLAGS env var is specified, we use that value
5739 ### instead of the default.
5740
5741 ### It's not important that this name contain the PID; you can't run
5742 ### two configures in the same directory and have anything work
5743 ### anyway.
5744 tempcname="conftest.c"
5745
5746 echo '
5747 #include "'${srcdir}'/src/'${opsysfile}'"
5748 #include "'${srcdir}'/src/'${machfile}'"
5749 #ifndef LIBS_MACHINE
5750 #define LIBS_MACHINE
5751 #endif
5752 #ifndef LIBS_SYSTEM
5753 #define LIBS_SYSTEM
5754 #endif
5755 #ifndef C_SWITCH_SYSTEM
5756 #define C_SWITCH_SYSTEM
5757 #endif
5758 #ifndef C_SWITCH_MACHINE
5759 #define C_SWITCH_MACHINE
5760 #endif
5761 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5762 configure___ c_switch_system=C_SWITCH_SYSTEM
5763 configure___ c_switch_machine=C_SWITCH_MACHINE
5764
5765 #ifndef LIB_X11_LIB
5766 #define LIB_X11_LIB -lX11
5767 #endif
5768
5769 configure___ LIBX=LIB_X11_LIB
5770
5771 #ifdef UNEXEC
5772 configure___ unexec=UNEXEC
5773 #else
5774 configure___ unexec=unexec.o
5775 #endif
5776
5777 #ifdef SYSTEM_MALLOC
5778 configure___ system_malloc=yes
5779 #else
5780 configure___ system_malloc=no
5781 #endif
5782
5783 #ifdef USE_MMAP_FOR_BUFFERS
5784 configure___ use_mmap_for_buffers=yes
5785 #else
5786 configure___ use_mmap_for_buffers=no
5787 #endif
5788
5789 #ifndef C_OPTIMIZE_SWITCH
5790 #ifdef __GNUC__
5791 #define C_OPTIMIZE_SWITCH -O2
5792 #else
5793 #define C_OPTIMIZE_SWITCH -O
5794 #endif
5795 #endif
5796
5797 #ifndef C_WARNINGS_SWITCH
5798 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5799 #endif
5800
5801 #ifndef LD_SWITCH_MACHINE
5802 #define LD_SWITCH_MACHINE
5803 #endif
5804
5805 #ifndef LD_SWITCH_SYSTEM
5806 #define LD_SWITCH_SYSTEM
5807 #endif
5808
5809 #ifndef LD_SWITCH_X_SITE_AUX
5810 #define LD_SWITCH_X_SITE_AUX
5811 #endif
5812
5813 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5814 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5815
5816 #ifdef THIS_IS_CONFIGURE
5817
5818 /* Get the CFLAGS for tests in configure. */
5819 #ifdef __GNUC__
5820 configure___ CFLAGS=C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5821 #else
5822 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5823 #endif
5824
5825 #else /* not THIS_IS_CONFIGURE */
5826
5827 /* Get the CFLAGS for real compilation. */
5828 #ifdef __GNUC__
5829 configure___ REAL_CFLAGS=C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5830 #else
5831 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5832 #endif
5833
5834 #endif /* not THIS_IS_CONFIGURE */
5835 ' > ${tempcname}
5836
5837 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5838
5839 # The value of CPP is a quoted variable reference, so we need to do this
5840 # to get its actual value...
5841 CPP=`eval "echo $CPP"`
5842 eval `${CPP} -Isrc ${tempcname} \
5843 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5844 if test "x$SPECIFIED_CFLAGS" = x; then
5845 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5846 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5847 else
5848 REAL_CFLAGS="$CFLAGS"
5849 fi
5850 rm ${tempcname}
5851
5852 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5853
5854 ### Make sure subsequent tests use flags consistent with the build flags.
5855
5856 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5857 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5858 else
5859 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5860 fi
5861
5862
5863
5864 # Check whether --enable-largefile was given.
5865 if test "${enable_largefile+set}" = set; then
5866 enableval=$enable_largefile;
5867 fi
5868
5869 if test "$enable_largefile" != no; then
5870
5871 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5872 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5873 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5874 $as_echo_n "(cached) " >&6
5875 else
5876 ac_cv_sys_largefile_CC=no
5877 if test "$GCC" != yes; then
5878 ac_save_CC=$CC
5879 while :; do
5880 # IRIX 6.2 and later do not support large files by default,
5881 # so use the C compiler's -n32 option if that helps.
5882 cat >conftest.$ac_ext <<_ACEOF
5883 /* confdefs.h. */
5884 _ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5888 #include <sys/types.h>
5889 /* Check that off_t can represent 2**63 - 1 correctly.
5890 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5891 since some C++ compilers masquerading as C compilers
5892 incorrectly reject 9223372036854775807. */
5893 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5894 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5895 && LARGE_OFF_T % 2147483647 == 1)
5896 ? 1 : -1];
5897 int
5898 main ()
5899 {
5900
5901 ;
5902 return 0;
5903 }
5904 _ACEOF
5905 rm -f conftest.$ac_objext
5906 if { (ac_try="$ac_compile"
5907 case "(($ac_try" in
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5910 esac
5911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5912 $as_echo "$ac_try_echo") >&5
5913 (eval "$ac_compile") 2>conftest.er1
5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } && {
5920 test -z "$ac_c_werror_flag" ||
5921 test ! -s conftest.err
5922 } && test -s conftest.$ac_objext; then
5923 break
5924 else
5925 $as_echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5927
5928
5929 fi
5930
5931 rm -f core conftest.err conftest.$ac_objext
5932 CC="$CC -n32"
5933 rm -f conftest.$ac_objext
5934 if { (ac_try="$ac_compile"
5935 case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938 esac
5939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5940 $as_echo "$ac_try_echo") >&5
5941 (eval "$ac_compile") 2>conftest.er1
5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
5946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } && {
5948 test -z "$ac_c_werror_flag" ||
5949 test ! -s conftest.err
5950 } && test -s conftest.$ac_objext; then
5951 ac_cv_sys_largefile_CC=' -n32'; break
5952 else
5953 $as_echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5955
5956
5957 fi
5958
5959 rm -f core conftest.err conftest.$ac_objext
5960 break
5961 done
5962 CC=$ac_save_CC
5963 rm -f conftest.$ac_ext
5964 fi
5965 fi
5966 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5967 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5968 if test "$ac_cv_sys_largefile_CC" != no; then
5969 CC=$CC$ac_cv_sys_largefile_CC
5970 fi
5971
5972 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5973 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5974 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5975 $as_echo_n "(cached) " >&6
5976 else
5977 while :; do
5978 cat >conftest.$ac_ext <<_ACEOF
5979 /* confdefs.h. */
5980 _ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5984 #include <sys/types.h>
5985 /* Check that off_t can represent 2**63 - 1 correctly.
5986 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5987 since some C++ compilers masquerading as C compilers
5988 incorrectly reject 9223372036854775807. */
5989 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5990 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5991 && LARGE_OFF_T % 2147483647 == 1)
5992 ? 1 : -1];
5993 int
5994 main ()
5995 {
5996
5997 ;
5998 return 0;
5999 }
6000 _ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (ac_try="$ac_compile"
6003 case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006 esac
6007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6008 $as_echo "$ac_try_echo") >&5
6009 (eval "$ac_compile") 2>conftest.er1
6010 ac_status=$?
6011 grep -v '^ *+' conftest.er1 >conftest.err
6012 rm -f conftest.er1
6013 cat conftest.err >&5
6014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } && {
6016 test -z "$ac_c_werror_flag" ||
6017 test ! -s conftest.err
6018 } && test -s conftest.$ac_objext; then
6019 ac_cv_sys_file_offset_bits=no; break
6020 else
6021 $as_echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6023
6024
6025 fi
6026
6027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028 cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h. */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 #define _FILE_OFFSET_BITS 64
6035 #include <sys/types.h>
6036 /* Check that off_t can represent 2**63 - 1 correctly.
6037 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6038 since some C++ compilers masquerading as C compilers
6039 incorrectly reject 9223372036854775807. */
6040 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6041 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6042 && LARGE_OFF_T % 2147483647 == 1)
6043 ? 1 : -1];
6044 int
6045 main ()
6046 {
6047
6048 ;
6049 return 0;
6050 }
6051 _ACEOF
6052 rm -f conftest.$ac_objext
6053 if { (ac_try="$ac_compile"
6054 case "(($ac_try" in
6055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6056 *) ac_try_echo=$ac_try;;
6057 esac
6058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6059 $as_echo "$ac_try_echo") >&5
6060 (eval "$ac_compile") 2>conftest.er1
6061 ac_status=$?
6062 grep -v '^ *+' conftest.er1 >conftest.err
6063 rm -f conftest.er1
6064 cat conftest.err >&5
6065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } && {
6067 test -z "$ac_c_werror_flag" ||
6068 test ! -s conftest.err
6069 } && test -s conftest.$ac_objext; then
6070 ac_cv_sys_file_offset_bits=64; break
6071 else
6072 $as_echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.$ac_ext >&5
6074
6075
6076 fi
6077
6078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6079 ac_cv_sys_file_offset_bits=unknown
6080 break
6081 done
6082 fi
6083 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6084 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6085 case $ac_cv_sys_file_offset_bits in #(
6086 no | unknown) ;;
6087 *)
6088 cat >>confdefs.h <<_ACEOF
6089 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6090 _ACEOF
6091 ;;
6092 esac
6093 rm -rf conftest*
6094 if test $ac_cv_sys_file_offset_bits = unknown; then
6095 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6096 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6097 if test "${ac_cv_sys_large_files+set}" = set; then
6098 $as_echo_n "(cached) " >&6
6099 else
6100 while :; do
6101 cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h. */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107 #include <sys/types.h>
6108 /* Check that off_t can represent 2**63 - 1 correctly.
6109 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6110 since some C++ compilers masquerading as C compilers
6111 incorrectly reject 9223372036854775807. */
6112 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6113 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6114 && LARGE_OFF_T % 2147483647 == 1)
6115 ? 1 : -1];
6116 int
6117 main ()
6118 {
6119
6120 ;
6121 return 0;
6122 }
6123 _ACEOF
6124 rm -f conftest.$ac_objext
6125 if { (ac_try="$ac_compile"
6126 case "(($ac_try" in
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6129 esac
6130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6131 $as_echo "$ac_try_echo") >&5
6132 (eval "$ac_compile") 2>conftest.er1
6133 ac_status=$?
6134 grep -v '^ *+' conftest.er1 >conftest.err
6135 rm -f conftest.er1
6136 cat conftest.err >&5
6137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } && {
6139 test -z "$ac_c_werror_flag" ||
6140 test ! -s conftest.err
6141 } && test -s conftest.$ac_objext; then
6142 ac_cv_sys_large_files=no; break
6143 else
6144 $as_echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6146
6147
6148 fi
6149
6150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6151 cat >conftest.$ac_ext <<_ACEOF
6152 /* confdefs.h. */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6157 #define _LARGE_FILES 1
6158 #include <sys/types.h>
6159 /* Check that off_t can represent 2**63 - 1 correctly.
6160 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6161 since some C++ compilers masquerading as C compilers
6162 incorrectly reject 9223372036854775807. */
6163 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6164 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6165 && LARGE_OFF_T % 2147483647 == 1)
6166 ? 1 : -1];
6167 int
6168 main ()
6169 {
6170
6171 ;
6172 return 0;
6173 }
6174 _ACEOF
6175 rm -f conftest.$ac_objext
6176 if { (ac_try="$ac_compile"
6177 case "(($ac_try" in
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6180 esac
6181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6182 $as_echo "$ac_try_echo") >&5
6183 (eval "$ac_compile") 2>conftest.er1
6184 ac_status=$?
6185 grep -v '^ *+' conftest.er1 >conftest.err
6186 rm -f conftest.er1
6187 cat conftest.err >&5
6188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } && {
6190 test -z "$ac_c_werror_flag" ||
6191 test ! -s conftest.err
6192 } && test -s conftest.$ac_objext; then
6193 ac_cv_sys_large_files=1; break
6194 else
6195 $as_echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6197
6198
6199 fi
6200
6201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202 ac_cv_sys_large_files=unknown
6203 break
6204 done
6205 fi
6206 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6207 $as_echo "$ac_cv_sys_large_files" >&6; }
6208 case $ac_cv_sys_large_files in #(
6209 no | unknown) ;;
6210 *)
6211 cat >>confdefs.h <<_ACEOF
6212 #define _LARGE_FILES $ac_cv_sys_large_files
6213 _ACEOF
6214 ;;
6215 esac
6216 rm -rf conftest*
6217 fi
6218 fi
6219
6220
6221
6222 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6223 ### be located in either /usr/lib64 or /usr/lib.
6224 ### In some rare cases, /usr/lib64 exists but does not contain the
6225 ### relevant files (bug#1287). Hence test for crtn.o.
6226 case "${canonical}" in
6227 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6228 if test -e /usr/lib64/crtn.o; then
6229
6230 cat >>confdefs.h <<\_ACEOF
6231 #define HAVE_LIB64_DIR 1
6232 _ACEOF
6233
6234 fi
6235 esac
6236
6237
6238
6239
6240 if test "${with_sound}" != "no"; then
6241 # Sound support for GNU/Linux and the free BSDs.
6242
6243
6244
6245 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6246 do
6247 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6249 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6250 $as_echo_n "checking for $ac_header... " >&6; }
6251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6252 $as_echo_n "(cached) " >&6
6253 fi
6254 ac_res=`eval 'as_val=${'$as_ac_Header'}
6255 $as_echo "$as_val"'`
6256 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6257 $as_echo "$ac_res" >&6; }
6258 else
6259 # Is the header compilable?
6260 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6261 $as_echo_n "checking $ac_header usability... " >&6; }
6262 cat >conftest.$ac_ext <<_ACEOF
6263 /* confdefs.h. */
6264 _ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6268 $ac_includes_default
6269 #include <$ac_header>
6270 _ACEOF
6271 rm -f conftest.$ac_objext
6272 if { (ac_try="$ac_compile"
6273 case "(($ac_try" in
6274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6275 *) ac_try_echo=$ac_try;;
6276 esac
6277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6278 $as_echo "$ac_try_echo") >&5
6279 (eval "$ac_compile") 2>conftest.er1
6280 ac_status=$?
6281 grep -v '^ *+' conftest.er1 >conftest.err
6282 rm -f conftest.er1
6283 cat conftest.err >&5
6284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } && {
6286 test -z "$ac_c_werror_flag" ||
6287 test ! -s conftest.err
6288 } && test -s conftest.$ac_objext; then
6289 ac_header_compiler=yes
6290 else
6291 $as_echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6293
6294 ac_header_compiler=no
6295 fi
6296
6297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6298 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6299 $as_echo "$ac_header_compiler" >&6; }
6300
6301 # Is the header present?
6302 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6303 $as_echo_n "checking $ac_header presence... " >&6; }
6304 cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h. */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 #include <$ac_header>
6311 _ACEOF
6312 if { (ac_try="$ac_cpp conftest.$ac_ext"
6313 case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316 esac
6317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6318 $as_echo "$ac_try_echo") >&5
6319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6320 ac_status=$?
6321 grep -v '^ *+' conftest.er1 >conftest.err
6322 rm -f conftest.er1
6323 cat conftest.err >&5
6324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } >/dev/null && {
6326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6327 test ! -s conftest.err
6328 }; then
6329 ac_header_preproc=yes
6330 else
6331 $as_echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6333
6334 ac_header_preproc=no
6335 fi
6336
6337 rm -f conftest.err conftest.$ac_ext
6338 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6339 $as_echo "$ac_header_preproc" >&6; }
6340
6341 # So? What about this header?
6342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6343 yes:no: )
6344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6345 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6347 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6348 ac_header_preproc=yes
6349 ;;
6350 no:yes:* )
6351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6352 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6354 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6356 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6358 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6360 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6362 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6363
6364 ;;
6365 esac
6366 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6367 $as_echo_n "checking for $ac_header... " >&6; }
6368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6369 $as_echo_n "(cached) " >&6
6370 else
6371 eval "$as_ac_Header=\$ac_header_preproc"
6372 fi
6373 ac_res=`eval 'as_val=${'$as_ac_Header'}
6374 $as_echo "$as_val"'`
6375 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6376 $as_echo "$ac_res" >&6; }
6377
6378 fi
6379 if test `eval 'as_val=${'$as_ac_Header'}
6380 $as_echo "$as_val"'` = yes; then
6381 cat >>confdefs.h <<_ACEOF
6382 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6383 _ACEOF
6384
6385 fi
6386
6387 done
6388
6389 # Emulation library used on NetBSD.
6390 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6391 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6392 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6393 $as_echo_n "(cached) " >&6
6394 else
6395 ac_check_lib_save_LIBS=$LIBS
6396 LIBS="-lossaudio $LIBS"
6397 cat >conftest.$ac_ext <<_ACEOF
6398 /* confdefs.h. */
6399 _ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6403
6404 /* Override any GCC internal prototype to avoid an error.
6405 Use char because int might match the return type of a GCC
6406 builtin and then its argument prototype would still apply. */
6407 #ifdef __cplusplus
6408 extern "C"
6409 #endif
6410 char _oss_ioctl ();
6411 int
6412 main ()
6413 {
6414 return _oss_ioctl ();
6415 ;
6416 return 0;
6417 }
6418 _ACEOF
6419 rm -f conftest.$ac_objext conftest$ac_exeext
6420 if { (ac_try="$ac_link"
6421 case "(($ac_try" in
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6424 esac
6425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6426 $as_echo "$ac_try_echo") >&5
6427 (eval "$ac_link") 2>conftest.er1
6428 ac_status=$?
6429 grep -v '^ *+' conftest.er1 >conftest.err
6430 rm -f conftest.er1
6431 cat conftest.err >&5
6432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } && {
6434 test -z "$ac_c_werror_flag" ||
6435 test ! -s conftest.err
6436 } && test -s conftest$ac_exeext && {
6437 test "$cross_compiling" = yes ||
6438 $as_test_x conftest$ac_exeext
6439 }; then
6440 ac_cv_lib_ossaudio__oss_ioctl=yes
6441 else
6442 $as_echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445 ac_cv_lib_ossaudio__oss_ioctl=no
6446 fi
6447
6448 rm -rf conftest.dSYM
6449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6450 conftest$ac_exeext conftest.$ac_ext
6451 LIBS=$ac_check_lib_save_LIBS
6452 fi
6453 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6454 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6455 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6456 LIBSOUND=-lossaudio
6457 else
6458 LIBSOUND=
6459 fi
6460
6461
6462
6463 ALSA_REQUIRED=1.0.0
6464 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6465
6466 succeeded=no
6467
6468 # Extract the first word of "pkg-config", so it can be a program name with args.
6469 set dummy pkg-config; ac_word=$2
6470 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6473 $as_echo_n "(cached) " >&6
6474 else
6475 case $PKG_CONFIG in
6476 [\\/]* | ?:[\\/]*)
6477 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6478 ;;
6479 *)
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483 IFS=$as_save_IFS
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6488 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 break 2
6490 fi
6491 done
6492 done
6493 IFS=$as_save_IFS
6494
6495 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6496 ;;
6497 esac
6498 fi
6499 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6500 if test -n "$PKG_CONFIG"; then
6501 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6502 $as_echo "$PKG_CONFIG" >&6; }
6503 else
6504 { $as_echo "$as_me:$LINENO: result: no" >&5
6505 $as_echo "no" >&6; }
6506 fi
6507
6508
6509
6510 if test "$PKG_CONFIG" = "no" ; then
6511 HAVE_ALSA=no
6512 else
6513 PKG_CONFIG_MIN_VERSION=0.9.0
6514 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6515 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6516 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6517
6518 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6519 { $as_echo "$as_me:$LINENO: result: yes" >&5
6520 $as_echo "yes" >&6; }
6521 succeeded=yes
6522
6523 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6524 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6525 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6526 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6527 $as_echo "$ALSA_CFLAGS" >&6; }
6528
6529 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6530 $as_echo_n "checking ALSA_LIBS... " >&6; }
6531 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6532 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6533 $as_echo "$ALSA_LIBS" >&6; }
6534 else
6535 { $as_echo "$as_me:$LINENO: result: no" >&5
6536 $as_echo "no" >&6; }
6537 ALSA_CFLAGS=""
6538 ALSA_LIBS=""
6539 ## If we have a custom action on failure, don't print errors, but
6540 ## do set a variable so people can do so.
6541 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6542
6543 fi
6544
6545
6546
6547 else
6548 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6549 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6550 fi
6551 fi
6552
6553 if test $succeeded = yes; then
6554 HAVE_ALSA=yes
6555 else
6556 HAVE_ALSA=no
6557 fi
6558
6559 if test $HAVE_ALSA = yes; then
6560 SAVE_CFLAGS="$CFLAGS"
6561 SAVE_LDFLAGS="$LDFLAGS"
6562 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6563 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6564 cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h. */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 #include <asoundlib.h>
6571 int
6572 main ()
6573 {
6574 snd_lib_error_set_handler (0);
6575 ;
6576 return 0;
6577 }
6578 _ACEOF
6579 rm -f conftest.$ac_objext
6580 if { (ac_try="$ac_compile"
6581 case "(($ac_try" in
6582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6583 *) ac_try_echo=$ac_try;;
6584 esac
6585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6586 $as_echo "$ac_try_echo") >&5
6587 (eval "$ac_compile") 2>conftest.er1
6588 ac_status=$?
6589 grep -v '^ *+' conftest.er1 >conftest.err
6590 rm -f conftest.er1
6591 cat conftest.err >&5
6592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } && {
6594 test -z "$ac_c_werror_flag" ||
6595 test ! -s conftest.err
6596 } && test -s conftest.$ac_objext; then
6597 emacs_alsa_normal=yes
6598 else
6599 $as_echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6601
6602 emacs_alsa_normal=no
6603 fi
6604
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 if test "$emacs_alsa_normal" != yes; then
6607 cat >conftest.$ac_ext <<_ACEOF
6608 /* confdefs.h. */
6609 _ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6613 #include <alsa/asoundlib.h>
6614 int
6615 main ()
6616 {
6617 snd_lib_error_set_handler (0);
6618 ;
6619 return 0;
6620 }
6621 _ACEOF
6622 rm -f conftest.$ac_objext
6623 if { (ac_try="$ac_compile"
6624 case "(($ac_try" in
6625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6626 *) ac_try_echo=$ac_try;;
6627 esac
6628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6629 $as_echo "$ac_try_echo") >&5
6630 (eval "$ac_compile") 2>conftest.er1
6631 ac_status=$?
6632 grep -v '^ *+' conftest.er1 >conftest.err
6633 rm -f conftest.er1
6634 cat conftest.err >&5
6635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } && {
6637 test -z "$ac_c_werror_flag" ||
6638 test ! -s conftest.err
6639 } && test -s conftest.$ac_objext; then
6640 emacs_alsa_subdir=yes
6641 else
6642 $as_echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6644
6645 emacs_alsa_subdir=no
6646 fi
6647
6648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6649 if test "$emacs_alsa_subdir" != yes; then
6650 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6651 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6652 { (exit 1); exit 1; }; }
6653 fi
6654 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6655 fi
6656
6657 CFLAGS="$SAVE_CFLAGS"
6658 LDFLAGS="$SAVE_LDFLAGS"
6659 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6660 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6661
6662 cat >>confdefs.h <<\_ACEOF
6663 #define HAVE_ALSA 1
6664 _ACEOF
6665
6666 fi
6667
6668 fi
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6696 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6697 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6698 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6699 sys/utsname.h pwd.h utmp.h
6700 do
6701 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6703 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6704 $as_echo_n "checking for $ac_header... " >&6; }
6705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6706 $as_echo_n "(cached) " >&6
6707 fi
6708 ac_res=`eval 'as_val=${'$as_ac_Header'}
6709 $as_echo "$as_val"'`
6710 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6711 $as_echo "$ac_res" >&6; }
6712 else
6713 # Is the header compilable?
6714 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6715 $as_echo_n "checking $ac_header usability... " >&6; }
6716 cat >conftest.$ac_ext <<_ACEOF
6717 /* confdefs.h. */
6718 _ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h. */
6722 $ac_includes_default
6723 #include <$ac_header>
6724 _ACEOF
6725 rm -f conftest.$ac_objext
6726 if { (ac_try="$ac_compile"
6727 case "(($ac_try" in
6728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6729 *) ac_try_echo=$ac_try;;
6730 esac
6731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6732 $as_echo "$ac_try_echo") >&5
6733 (eval "$ac_compile") 2>conftest.er1
6734 ac_status=$?
6735 grep -v '^ *+' conftest.er1 >conftest.err
6736 rm -f conftest.er1
6737 cat conftest.err >&5
6738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } && {
6740 test -z "$ac_c_werror_flag" ||
6741 test ! -s conftest.err
6742 } && test -s conftest.$ac_objext; then
6743 ac_header_compiler=yes
6744 else
6745 $as_echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6747
6748 ac_header_compiler=no
6749 fi
6750
6751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6752 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6753 $as_echo "$ac_header_compiler" >&6; }
6754
6755 # Is the header present?
6756 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6757 $as_echo_n "checking $ac_header presence... " >&6; }
6758 cat >conftest.$ac_ext <<_ACEOF
6759 /* confdefs.h. */
6760 _ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6764 #include <$ac_header>
6765 _ACEOF
6766 if { (ac_try="$ac_cpp conftest.$ac_ext"
6767 case "(($ac_try" in
6768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769 *) ac_try_echo=$ac_try;;
6770 esac
6771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6772 $as_echo "$ac_try_echo") >&5
6773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6774 ac_status=$?
6775 grep -v '^ *+' conftest.er1 >conftest.err
6776 rm -f conftest.er1
6777 cat conftest.err >&5
6778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } >/dev/null && {
6780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6781 test ! -s conftest.err
6782 }; then
6783 ac_header_preproc=yes
6784 else
6785 $as_echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.$ac_ext >&5
6787
6788 ac_header_preproc=no
6789 fi
6790
6791 rm -f conftest.err conftest.$ac_ext
6792 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6793 $as_echo "$ac_header_preproc" >&6; }
6794
6795 # So? What about this header?
6796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6797 yes:no: )
6798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6799 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6801 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6802 ac_header_preproc=yes
6803 ;;
6804 no:yes:* )
6805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6806 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6807 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6808 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6809 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6810 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6811 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6812 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6813 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6814 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6816 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6817
6818 ;;
6819 esac
6820 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6821 $as_echo_n "checking for $ac_header... " >&6; }
6822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6823 $as_echo_n "(cached) " >&6
6824 else
6825 eval "$as_ac_Header=\$ac_header_preproc"
6826 fi
6827 ac_res=`eval 'as_val=${'$as_ac_Header'}
6828 $as_echo "$as_val"'`
6829 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6830 $as_echo "$ac_res" >&6; }
6831
6832 fi
6833 if test `eval 'as_val=${'$as_ac_Header'}
6834 $as_echo "$as_val"'` = yes; then
6835 cat >>confdefs.h <<_ACEOF
6836 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6837 _ACEOF
6838
6839 fi
6840
6841 done
6842
6843
6844 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6845 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6846 cat >conftest.$ac_ext <<_ACEOF
6847 /* confdefs.h. */
6848 _ACEOF
6849 cat confdefs.h >>conftest.$ac_ext
6850 cat >>conftest.$ac_ext <<_ACEOF
6851 /* end confdefs.h. */
6852 #include <sys/personality.h>
6853 int
6854 main ()
6855 {
6856 personality (PER_LINUX32)
6857 ;
6858 return 0;
6859 }
6860 _ACEOF
6861 rm -f conftest.$ac_objext
6862 if { (ac_try="$ac_compile"
6863 case "(($ac_try" in
6864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6865 *) ac_try_echo=$ac_try;;
6866 esac
6867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6868 $as_echo "$ac_try_echo") >&5
6869 (eval "$ac_compile") 2>conftest.er1
6870 ac_status=$?
6871 grep -v '^ *+' conftest.er1 >conftest.err
6872 rm -f conftest.er1
6873 cat conftest.err >&5
6874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); } && {
6876 test -z "$ac_c_werror_flag" ||
6877 test ! -s conftest.err
6878 } && test -s conftest.$ac_objext; then
6879 emacs_cv_personality_linux32=yes
6880 else
6881 $as_echo "$as_me: failed program was:" >&5
6882 sed 's/^/| /' conftest.$ac_ext >&5
6883
6884 emacs_cv_personality_linux32=no
6885 fi
6886
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6889 $as_echo "$emacs_cv_personality_linux32" >&6; }
6890
6891 if test $emacs_cv_personality_linux32 = yes; then
6892
6893 cat >>confdefs.h <<\_ACEOF
6894 #define HAVE_PERSONALITY_LINUX32 1
6895 _ACEOF
6896
6897 fi
6898
6899
6900 for ac_header in term.h
6901 do
6902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6903 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6904 $as_echo_n "checking for $ac_header... " >&6; }
6905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6906 $as_echo_n "(cached) " >&6
6907 else
6908 cat >conftest.$ac_ext <<_ACEOF
6909 /* confdefs.h. */
6910 _ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h. */
6914 #include <$ac_header>
6915 _ACEOF
6916 if { (ac_try="$ac_cpp conftest.$ac_ext"
6917 case "(($ac_try" in
6918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919 *) ac_try_echo=$ac_try;;
6920 esac
6921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6922 $as_echo "$ac_try_echo") >&5
6923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6924 ac_status=$?
6925 grep -v '^ *+' conftest.er1 >conftest.err
6926 rm -f conftest.er1
6927 cat conftest.err >&5
6928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } >/dev/null && {
6930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6931 test ! -s conftest.err
6932 }; then
6933 eval "$as_ac_Header=yes"
6934 else
6935 $as_echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6937
6938 eval "$as_ac_Header=no"
6939 fi
6940
6941 rm -f conftest.err conftest.$ac_ext
6942 fi
6943 ac_res=`eval 'as_val=${'$as_ac_Header'}
6944 $as_echo "$as_val"'`
6945 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6946 $as_echo "$ac_res" >&6; }
6947 if test `eval 'as_val=${'$as_ac_Header'}
6948 $as_echo "$as_val"'` = yes; then
6949 cat >>confdefs.h <<_ACEOF
6950 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6951 _ACEOF
6952
6953 fi
6954
6955 done
6956
6957 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6958 $as_echo_n "checking for ANSI C header files... " >&6; }
6959 if test "${ac_cv_header_stdc+set}" = set; then
6960 $as_echo_n "(cached) " >&6
6961 else
6962 cat >conftest.$ac_ext <<_ACEOF
6963 /* confdefs.h. */
6964 _ACEOF
6965 cat confdefs.h >>conftest.$ac_ext
6966 cat >>conftest.$ac_ext <<_ACEOF
6967 /* end confdefs.h. */
6968 #include <stdlib.h>
6969 #include <stdarg.h>
6970 #include <string.h>
6971 #include <float.h>
6972
6973 int
6974 main ()
6975 {
6976
6977 ;
6978 return 0;
6979 }
6980 _ACEOF
6981 rm -f conftest.$ac_objext
6982 if { (ac_try="$ac_compile"
6983 case "(($ac_try" in
6984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985 *) ac_try_echo=$ac_try;;
6986 esac
6987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6988 $as_echo "$ac_try_echo") >&5
6989 (eval "$ac_compile") 2>conftest.er1
6990 ac_status=$?
6991 grep -v '^ *+' conftest.er1 >conftest.err
6992 rm -f conftest.er1
6993 cat conftest.err >&5
6994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } && {
6996 test -z "$ac_c_werror_flag" ||
6997 test ! -s conftest.err
6998 } && test -s conftest.$ac_objext; then
6999 ac_cv_header_stdc=yes
7000 else
7001 $as_echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7003
7004 ac_cv_header_stdc=no
7005 fi
7006
7007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7008
7009 if test $ac_cv_header_stdc = yes; then
7010 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7011 cat >conftest.$ac_ext <<_ACEOF
7012 /* confdefs.h. */
7013 _ACEOF
7014 cat confdefs.h >>conftest.$ac_ext
7015 cat >>conftest.$ac_ext <<_ACEOF
7016 /* end confdefs.h. */
7017 #include <string.h>
7018
7019 _ACEOF
7020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7021 $EGREP "memchr" >/dev/null 2>&1; then
7022 :
7023 else
7024 ac_cv_header_stdc=no
7025 fi
7026 rm -f conftest*
7027
7028 fi
7029
7030 if test $ac_cv_header_stdc = yes; then
7031 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7032 cat >conftest.$ac_ext <<_ACEOF
7033 /* confdefs.h. */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 #include <stdlib.h>
7039
7040 _ACEOF
7041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7042 $EGREP "free" >/dev/null 2>&1; then
7043 :
7044 else
7045 ac_cv_header_stdc=no
7046 fi
7047 rm -f conftest*
7048
7049 fi
7050
7051 if test $ac_cv_header_stdc = yes; then
7052 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7053 if test "$cross_compiling" = yes; then
7054 :
7055 else
7056 cat >conftest.$ac_ext <<_ACEOF
7057 /* confdefs.h. */
7058 _ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7062 #include <ctype.h>
7063 #include <stdlib.h>
7064 #if ((' ' & 0x0FF) == 0x020)
7065 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7066 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7067 #else
7068 # define ISLOWER(c) \
7069 (('a' <= (c) && (c) <= 'i') \
7070 || ('j' <= (c) && (c) <= 'r') \
7071 || ('s' <= (c) && (c) <= 'z'))
7072 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7073 #endif
7074
7075 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7076 int
7077 main ()
7078 {
7079 int i;
7080 for (i = 0; i < 256; i++)
7081 if (XOR (islower (i), ISLOWER (i))
7082 || toupper (i) != TOUPPER (i))
7083 return 2;
7084 return 0;
7085 }
7086 _ACEOF
7087 rm -f conftest$ac_exeext
7088 if { (ac_try="$ac_link"
7089 case "(($ac_try" in
7090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7091 *) ac_try_echo=$ac_try;;
7092 esac
7093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7094 $as_echo "$ac_try_echo") >&5
7095 (eval "$ac_link") 2>&5
7096 ac_status=$?
7097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7099 { (case "(($ac_try" in
7100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101 *) ac_try_echo=$ac_try;;
7102 esac
7103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7104 $as_echo "$ac_try_echo") >&5
7105 (eval "$ac_try") 2>&5
7106 ac_status=$?
7107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); }; }; then
7109 :
7110 else
7111 $as_echo "$as_me: program exited with status $ac_status" >&5
7112 $as_echo "$as_me: failed program was:" >&5
7113 sed 's/^/| /' conftest.$ac_ext >&5
7114
7115 ( exit $ac_status )
7116 ac_cv_header_stdc=no
7117 fi
7118 rm -rf conftest.dSYM
7119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7120 fi
7121
7122
7123 fi
7124 fi
7125 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7126 $as_echo "$ac_cv_header_stdc" >&6; }
7127 if test $ac_cv_header_stdc = yes; then
7128
7129 cat >>confdefs.h <<\_ACEOF
7130 #define STDC_HEADERS 1
7131 _ACEOF
7132
7133 fi
7134
7135 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7136 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7137 if test "${ac_cv_header_time+set}" = set; then
7138 $as_echo_n "(cached) " >&6
7139 else
7140 cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h. */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7146 #include <sys/types.h>
7147 #include <sys/time.h>
7148 #include <time.h>
7149
7150 int
7151 main ()
7152 {
7153 if ((struct tm *) 0)
7154 return 0;
7155 ;
7156 return 0;
7157 }
7158 _ACEOF
7159 rm -f conftest.$ac_objext
7160 if { (ac_try="$ac_compile"
7161 case "(($ac_try" in
7162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7163 *) ac_try_echo=$ac_try;;
7164 esac
7165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7166 $as_echo "$ac_try_echo") >&5
7167 (eval "$ac_compile") 2>conftest.er1
7168 ac_status=$?
7169 grep -v '^ *+' conftest.er1 >conftest.err
7170 rm -f conftest.er1
7171 cat conftest.err >&5
7172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); } && {
7174 test -z "$ac_c_werror_flag" ||
7175 test ! -s conftest.err
7176 } && test -s conftest.$ac_objext; then
7177 ac_cv_header_time=yes
7178 else
7179 $as_echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7181
7182 ac_cv_header_time=no
7183 fi
7184
7185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7186 fi
7187 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7188 $as_echo "$ac_cv_header_time" >&6; }
7189 if test $ac_cv_header_time = yes; then
7190
7191 cat >>confdefs.h <<\_ACEOF
7192 #define TIME_WITH_SYS_TIME 1
7193 _ACEOF
7194
7195 fi
7196
7197 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7198 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7199 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7200 $as_echo_n "(cached) " >&6
7201 else
7202 cat >conftest.$ac_ext <<_ACEOF
7203 /* confdefs.h. */
7204 _ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7208 $ac_includes_default
7209 int
7210 main ()
7211 {
7212 #ifndef sys_siglist
7213 (void) sys_siglist;
7214 #endif
7215
7216 ;
7217 return 0;
7218 }
7219 _ACEOF
7220 rm -f conftest.$ac_objext
7221 if { (ac_try="$ac_compile"
7222 case "(($ac_try" in
7223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7224 *) ac_try_echo=$ac_try;;
7225 esac
7226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7227 $as_echo "$ac_try_echo") >&5
7228 (eval "$ac_compile") 2>conftest.er1
7229 ac_status=$?
7230 grep -v '^ *+' conftest.er1 >conftest.err
7231 rm -f conftest.er1
7232 cat conftest.err >&5
7233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } && {
7235 test -z "$ac_c_werror_flag" ||
7236 test ! -s conftest.err
7237 } && test -s conftest.$ac_objext; then
7238 ac_cv_have_decl_sys_siglist=yes
7239 else
7240 $as_echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7242
7243 ac_cv_have_decl_sys_siglist=no
7244 fi
7245
7246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247 fi
7248 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7249 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7250 if test $ac_cv_have_decl_sys_siglist = yes; then
7251
7252 cat >>confdefs.h <<_ACEOF
7253 #define HAVE_DECL_SYS_SIGLIST 1
7254 _ACEOF
7255
7256
7257 else
7258 cat >>confdefs.h <<_ACEOF
7259 #define HAVE_DECL_SYS_SIGLIST 0
7260 _ACEOF
7261
7262
7263 fi
7264
7265
7266 if test $ac_cv_have_decl_sys_siglist != yes; then
7267 # For Tru64, at least:
7268 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7269 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7270 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7271 $as_echo_n "(cached) " >&6
7272 else
7273 cat >conftest.$ac_ext <<_ACEOF
7274 /* confdefs.h. */
7275 _ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7279 $ac_includes_default
7280 int
7281 main ()
7282 {
7283 #ifndef __sys_siglist
7284 (void) __sys_siglist;
7285 #endif
7286
7287 ;
7288 return 0;
7289 }
7290 _ACEOF
7291 rm -f conftest.$ac_objext
7292 if { (ac_try="$ac_compile"
7293 case "(($ac_try" in
7294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295 *) ac_try_echo=$ac_try;;
7296 esac
7297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7298 $as_echo "$ac_try_echo") >&5
7299 (eval "$ac_compile") 2>conftest.er1
7300 ac_status=$?
7301 grep -v '^ *+' conftest.er1 >conftest.err
7302 rm -f conftest.er1
7303 cat conftest.err >&5
7304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } && {
7306 test -z "$ac_c_werror_flag" ||
7307 test ! -s conftest.err
7308 } && test -s conftest.$ac_objext; then
7309 ac_cv_have_decl___sys_siglist=yes
7310 else
7311 $as_echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7313
7314 ac_cv_have_decl___sys_siglist=no
7315 fi
7316
7317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318 fi
7319 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7320 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7321 if test $ac_cv_have_decl___sys_siglist = yes; then
7322
7323 cat >>confdefs.h <<_ACEOF
7324 #define HAVE_DECL___SYS_SIGLIST 1
7325 _ACEOF
7326
7327
7328 else
7329 cat >>confdefs.h <<_ACEOF
7330 #define HAVE_DECL___SYS_SIGLIST 0
7331 _ACEOF
7332
7333
7334 fi
7335
7336
7337 if test $ac_cv_have_decl___sys_siglist = yes; then
7338
7339 cat >>confdefs.h <<\_ACEOF
7340 #define sys_siglist __sys_siglist
7341 _ACEOF
7342
7343 fi
7344 fi
7345 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7346 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7347 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7348 $as_echo_n "(cached) " >&6
7349 else
7350 cat >conftest.$ac_ext <<_ACEOF
7351 /* confdefs.h. */
7352 _ACEOF
7353 cat confdefs.h >>conftest.$ac_ext
7354 cat >>conftest.$ac_ext <<_ACEOF
7355 /* end confdefs.h. */
7356 #include <sys/types.h>
7357 #include <sys/wait.h>
7358 #ifndef WEXITSTATUS
7359 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7360 #endif
7361 #ifndef WIFEXITED
7362 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7363 #endif
7364
7365 int
7366 main ()
7367 {
7368 int s;
7369 wait (&s);
7370 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7371 ;
7372 return 0;
7373 }
7374 _ACEOF
7375 rm -f conftest.$ac_objext
7376 if { (ac_try="$ac_compile"
7377 case "(($ac_try" in
7378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379 *) ac_try_echo=$ac_try;;
7380 esac
7381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7382 $as_echo "$ac_try_echo") >&5
7383 (eval "$ac_compile") 2>conftest.er1
7384 ac_status=$?
7385 grep -v '^ *+' conftest.er1 >conftest.err
7386 rm -f conftest.er1
7387 cat conftest.err >&5
7388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest.$ac_objext; then
7393 ac_cv_header_sys_wait_h=yes
7394 else
7395 $as_echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7397
7398 ac_cv_header_sys_wait_h=no
7399 fi
7400
7401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7402 fi
7403 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7404 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7405 if test $ac_cv_header_sys_wait_h = yes; then
7406
7407 cat >>confdefs.h <<\_ACEOF
7408 #define HAVE_SYS_WAIT_H 1
7409 _ACEOF
7410
7411 fi
7412
7413
7414 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7415 $as_echo_n "checking for struct utimbuf... " >&6; }
7416 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7417 $as_echo_n "(cached) " >&6
7418 else
7419 cat >conftest.$ac_ext <<_ACEOF
7420 /* confdefs.h. */
7421 _ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h. */
7425 #ifdef TIME_WITH_SYS_TIME
7426 #include <sys/time.h>
7427 #include <time.h>
7428 #else
7429 #ifdef HAVE_SYS_TIME_H
7430 #include <sys/time.h>
7431 #else
7432 #include <time.h>
7433 #endif
7434 #endif
7435 #ifdef HAVE_UTIME_H
7436 #include <utime.h>
7437 #endif
7438 int
7439 main ()
7440 {
7441 static struct utimbuf x; x.actime = x.modtime;
7442 ;
7443 return 0;
7444 }
7445 _ACEOF
7446 rm -f conftest.$ac_objext
7447 if { (ac_try="$ac_compile"
7448 case "(($ac_try" in
7449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7450 *) ac_try_echo=$ac_try;;
7451 esac
7452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7453 $as_echo "$ac_try_echo") >&5
7454 (eval "$ac_compile") 2>conftest.er1
7455 ac_status=$?
7456 grep -v '^ *+' conftest.er1 >conftest.err
7457 rm -f conftest.er1
7458 cat conftest.err >&5
7459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } && {
7461 test -z "$ac_c_werror_flag" ||
7462 test ! -s conftest.err
7463 } && test -s conftest.$ac_objext; then
7464 emacs_cv_struct_utimbuf=yes
7465 else
7466 $as_echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7468
7469 emacs_cv_struct_utimbuf=no
7470 fi
7471
7472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7473 fi
7474 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7475 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7476 if test $emacs_cv_struct_utimbuf = yes; then
7477
7478 cat >>confdefs.h <<\_ACEOF
7479 #define HAVE_STRUCT_UTIMBUF 1
7480 _ACEOF
7481
7482 fi
7483
7484 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7485 $as_echo_n "checking return type of signal handlers... " >&6; }
7486 if test "${ac_cv_type_signal+set}" = set; then
7487 $as_echo_n "(cached) " >&6
7488 else
7489 cat >conftest.$ac_ext <<_ACEOF
7490 /* confdefs.h. */
7491 _ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h. */
7495 #include <sys/types.h>
7496 #include <signal.h>
7497
7498 int
7499 main ()
7500 {
7501 return *(signal (0, 0)) (0) == 1;
7502 ;
7503 return 0;
7504 }
7505 _ACEOF
7506 rm -f conftest.$ac_objext
7507 if { (ac_try="$ac_compile"
7508 case "(($ac_try" in
7509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7511 esac
7512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7513 $as_echo "$ac_try_echo") >&5
7514 (eval "$ac_compile") 2>conftest.er1
7515 ac_status=$?
7516 grep -v '^ *+' conftest.er1 >conftest.err
7517 rm -f conftest.er1
7518 cat conftest.err >&5
7519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } && {
7521 test -z "$ac_c_werror_flag" ||
7522 test ! -s conftest.err
7523 } && test -s conftest.$ac_objext; then
7524 ac_cv_type_signal=int
7525 else
7526 $as_echo "$as_me: failed program was:" >&5
7527 sed 's/^/| /' conftest.$ac_ext >&5
7528
7529 ac_cv_type_signal=void
7530 fi
7531
7532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7533 fi
7534 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7535 $as_echo "$ac_cv_type_signal" >&6; }
7536
7537 cat >>confdefs.h <<_ACEOF
7538 #define RETSIGTYPE $ac_cv_type_signal
7539 _ACEOF
7540
7541
7542
7543 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7544 $as_echo_n "checking for speed_t... " >&6; }
7545 if test "${emacs_cv_speed_t+set}" = set; then
7546 $as_echo_n "(cached) " >&6
7547 else
7548 cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h. */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554 #include <termios.h>
7555 int
7556 main ()
7557 {
7558 speed_t x = 1;
7559 ;
7560 return 0;
7561 }
7562 _ACEOF
7563 rm -f conftest.$ac_objext
7564 if { (ac_try="$ac_compile"
7565 case "(($ac_try" in
7566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567 *) ac_try_echo=$ac_try;;
7568 esac
7569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7570 $as_echo "$ac_try_echo") >&5
7571 (eval "$ac_compile") 2>conftest.er1
7572 ac_status=$?
7573 grep -v '^ *+' conftest.er1 >conftest.err
7574 rm -f conftest.er1
7575 cat conftest.err >&5
7576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } && {
7578 test -z "$ac_c_werror_flag" ||
7579 test ! -s conftest.err
7580 } && test -s conftest.$ac_objext; then
7581 emacs_cv_speed_t=yes
7582 else
7583 $as_echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7585
7586 emacs_cv_speed_t=no
7587 fi
7588
7589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7590 fi
7591 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7592 $as_echo "$emacs_cv_speed_t" >&6; }
7593 if test $emacs_cv_speed_t = yes; then
7594
7595 cat >>confdefs.h <<\_ACEOF
7596 #define HAVE_SPEED_T 1
7597 _ACEOF
7598
7599 fi
7600
7601 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7602 $as_echo_n "checking for struct timeval... " >&6; }
7603 if test "${emacs_cv_struct_timeval+set}" = set; then
7604 $as_echo_n "(cached) " >&6
7605 else
7606 cat >conftest.$ac_ext <<_ACEOF
7607 /* confdefs.h. */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7612 #ifdef TIME_WITH_SYS_TIME
7613 #include <sys/time.h>
7614 #include <time.h>
7615 #else
7616 #ifdef HAVE_SYS_TIME_H
7617 #include <sys/time.h>
7618 #else
7619 #include <time.h>
7620 #endif
7621 #endif
7622 int
7623 main ()
7624 {
7625 static struct timeval x; x.tv_sec = x.tv_usec;
7626 ;
7627 return 0;
7628 }
7629 _ACEOF
7630 rm -f conftest.$ac_objext
7631 if { (ac_try="$ac_compile"
7632 case "(($ac_try" in
7633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7634 *) ac_try_echo=$ac_try;;
7635 esac
7636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7637 $as_echo "$ac_try_echo") >&5
7638 (eval "$ac_compile") 2>conftest.er1
7639 ac_status=$?
7640 grep -v '^ *+' conftest.er1 >conftest.err
7641 rm -f conftest.er1
7642 cat conftest.err >&5
7643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } && {
7645 test -z "$ac_c_werror_flag" ||
7646 test ! -s conftest.err
7647 } && test -s conftest.$ac_objext; then
7648 emacs_cv_struct_timeval=yes
7649 else
7650 $as_echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7652
7653 emacs_cv_struct_timeval=no
7654 fi
7655
7656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657 fi
7658 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7659 $as_echo "$emacs_cv_struct_timeval" >&6; }
7660 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7661 if test $emacs_cv_struct_timeval = yes; then
7662
7663 cat >>confdefs.h <<\_ACEOF
7664 #define HAVE_TIMEVAL 1
7665 _ACEOF
7666
7667 fi
7668
7669 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7670 $as_echo_n "checking for struct exception... " >&6; }
7671 if test "${emacs_cv_struct_exception+set}" = set; then
7672 $as_echo_n "(cached) " >&6
7673 else
7674 cat >conftest.$ac_ext <<_ACEOF
7675 /* confdefs.h. */
7676 _ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h. */
7680 #include <math.h>
7681 int
7682 main ()
7683 {
7684 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7685 ;
7686 return 0;
7687 }
7688 _ACEOF
7689 rm -f conftest.$ac_objext
7690 if { (ac_try="$ac_compile"
7691 case "(($ac_try" in
7692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7693 *) ac_try_echo=$ac_try;;
7694 esac
7695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7696 $as_echo "$ac_try_echo") >&5
7697 (eval "$ac_compile") 2>conftest.er1
7698 ac_status=$?
7699 grep -v '^ *+' conftest.er1 >conftest.err
7700 rm -f conftest.er1
7701 cat conftest.err >&5
7702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } && {
7704 test -z "$ac_c_werror_flag" ||
7705 test ! -s conftest.err
7706 } && test -s conftest.$ac_objext; then
7707 emacs_cv_struct_exception=yes
7708 else
7709 $as_echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7711
7712 emacs_cv_struct_exception=no
7713 fi
7714
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716 fi
7717 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7718 $as_echo "$emacs_cv_struct_exception" >&6; }
7719 HAVE_EXCEPTION=$emacs_cv_struct_exception
7720 if test $emacs_cv_struct_exception != yes; then
7721
7722 cat >>confdefs.h <<\_ACEOF
7723 #define NO_MATHERR 1
7724 _ACEOF
7725
7726 fi
7727
7728
7729 for ac_header in sys/socket.h
7730 do
7731 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7733 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7734 $as_echo_n "checking for $ac_header... " >&6; }
7735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7736 $as_echo_n "(cached) " >&6
7737 fi
7738 ac_res=`eval 'as_val=${'$as_ac_Header'}
7739 $as_echo "$as_val"'`
7740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7741 $as_echo "$ac_res" >&6; }
7742 else
7743 # Is the header compilable?
7744 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7745 $as_echo_n "checking $ac_header usability... " >&6; }
7746 cat >conftest.$ac_ext <<_ACEOF
7747 /* confdefs.h. */
7748 _ACEOF
7749 cat confdefs.h >>conftest.$ac_ext
7750 cat >>conftest.$ac_ext <<_ACEOF
7751 /* end confdefs.h. */
7752 $ac_includes_default
7753 #include <$ac_header>
7754 _ACEOF
7755 rm -f conftest.$ac_objext
7756 if { (ac_try="$ac_compile"
7757 case "(($ac_try" in
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7760 esac
7761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7762 $as_echo "$ac_try_echo") >&5
7763 (eval "$ac_compile") 2>conftest.er1
7764 ac_status=$?
7765 grep -v '^ *+' conftest.er1 >conftest.err
7766 rm -f conftest.er1
7767 cat conftest.err >&5
7768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } && {
7770 test -z "$ac_c_werror_flag" ||
7771 test ! -s conftest.err
7772 } && test -s conftest.$ac_objext; then
7773 ac_header_compiler=yes
7774 else
7775 $as_echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7777
7778 ac_header_compiler=no
7779 fi
7780
7781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7782 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7783 $as_echo "$ac_header_compiler" >&6; }
7784
7785 # Is the header present?
7786 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7787 $as_echo_n "checking $ac_header presence... " >&6; }
7788 cat >conftest.$ac_ext <<_ACEOF
7789 /* confdefs.h. */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7794 #include <$ac_header>
7795 _ACEOF
7796 if { (ac_try="$ac_cpp conftest.$ac_ext"
7797 case "(($ac_try" in
7798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799 *) ac_try_echo=$ac_try;;
7800 esac
7801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7802 $as_echo "$ac_try_echo") >&5
7803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7804 ac_status=$?
7805 grep -v '^ *+' conftest.er1 >conftest.err
7806 rm -f conftest.er1
7807 cat conftest.err >&5
7808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } >/dev/null && {
7810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7811 test ! -s conftest.err
7812 }; then
7813 ac_header_preproc=yes
7814 else
7815 $as_echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7817
7818 ac_header_preproc=no
7819 fi
7820
7821 rm -f conftest.err conftest.$ac_ext
7822 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7823 $as_echo "$ac_header_preproc" >&6; }
7824
7825 # So? What about this header?
7826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7827 yes:no: )
7828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7829 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7831 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7832 ac_header_preproc=yes
7833 ;;
7834 no:yes:* )
7835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7836 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7838 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7840 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7842 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7844 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7846 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7847
7848 ;;
7849 esac
7850 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7851 $as_echo_n "checking for $ac_header... " >&6; }
7852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7853 $as_echo_n "(cached) " >&6
7854 else
7855 eval "$as_ac_Header=\$ac_header_preproc"
7856 fi
7857 ac_res=`eval 'as_val=${'$as_ac_Header'}
7858 $as_echo "$as_val"'`
7859 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7860 $as_echo "$ac_res" >&6; }
7861
7862 fi
7863 if test `eval 'as_val=${'$as_ac_Header'}
7864 $as_echo "$as_val"'` = yes; then
7865 cat >>confdefs.h <<_ACEOF
7866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7867 _ACEOF
7868
7869 fi
7870
7871 done
7872
7873
7874 for ac_header in net/if.h
7875 do
7876 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7877 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7878 $as_echo_n "checking for $ac_header... " >&6; }
7879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7880 $as_echo_n "(cached) " >&6
7881 else
7882 cat >conftest.$ac_ext <<_ACEOF
7883 /* confdefs.h. */
7884 _ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h. */
7888 $ac_includes_default
7889 #if HAVE_SYS_SOCKET_H
7890 #include <sys/socket.h>
7891 #endif
7892
7893 #include <$ac_header>
7894 _ACEOF
7895 rm -f conftest.$ac_objext
7896 if { (ac_try="$ac_compile"
7897 case "(($ac_try" in
7898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7900 esac
7901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7902 $as_echo "$ac_try_echo") >&5
7903 (eval "$ac_compile") 2>conftest.er1
7904 ac_status=$?
7905 grep -v '^ *+' conftest.er1 >conftest.err
7906 rm -f conftest.er1
7907 cat conftest.err >&5
7908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } && {
7910 test -z "$ac_c_werror_flag" ||
7911 test ! -s conftest.err
7912 } && test -s conftest.$ac_objext; then
7913 eval "$as_ac_Header=yes"
7914 else
7915 $as_echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7917
7918 eval "$as_ac_Header=no"
7919 fi
7920
7921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7922 fi
7923 ac_res=`eval 'as_val=${'$as_ac_Header'}
7924 $as_echo "$as_val"'`
7925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7926 $as_echo "$ac_res" >&6; }
7927 if test `eval 'as_val=${'$as_ac_Header'}
7928 $as_echo "$as_val"'` = yes; then
7929 cat >>confdefs.h <<_ACEOF
7930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7931 _ACEOF
7932
7933 fi
7934
7935 done
7936
7937
7938 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7939 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7940 if test "${ac_cv_struct_tm+set}" = set; then
7941 $as_echo_n "(cached) " >&6
7942 else
7943 cat >conftest.$ac_ext <<_ACEOF
7944 /* confdefs.h. */
7945 _ACEOF
7946 cat confdefs.h >>conftest.$ac_ext
7947 cat >>conftest.$ac_ext <<_ACEOF
7948 /* end confdefs.h. */
7949 #include <sys/types.h>
7950 #include <time.h>
7951
7952 int
7953 main ()
7954 {
7955 struct tm tm;
7956 int *p = &tm.tm_sec;
7957 return !p;
7958 ;
7959 return 0;
7960 }
7961 _ACEOF
7962 rm -f conftest.$ac_objext
7963 if { (ac_try="$ac_compile"
7964 case "(($ac_try" in
7965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966 *) ac_try_echo=$ac_try;;
7967 esac
7968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7969 $as_echo "$ac_try_echo") >&5
7970 (eval "$ac_compile") 2>conftest.er1
7971 ac_status=$?
7972 grep -v '^ *+' conftest.er1 >conftest.err
7973 rm -f conftest.er1
7974 cat conftest.err >&5
7975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } && {
7977 test -z "$ac_c_werror_flag" ||
7978 test ! -s conftest.err
7979 } && test -s conftest.$ac_objext; then
7980 ac_cv_struct_tm=time.h
7981 else
7982 $as_echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7984
7985 ac_cv_struct_tm=sys/time.h
7986 fi
7987
7988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7989 fi
7990 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7991 $as_echo "$ac_cv_struct_tm" >&6; }
7992 if test $ac_cv_struct_tm = sys/time.h; then
7993
7994 cat >>confdefs.h <<\_ACEOF
7995 #define TM_IN_SYS_TIME 1
7996 _ACEOF
7997
7998 fi
7999
8000 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8001 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8002 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8003 $as_echo_n "(cached) " >&6
8004 else
8005 cat >conftest.$ac_ext <<_ACEOF
8006 /* confdefs.h. */
8007 _ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8011 #include <sys/types.h>
8012 #include <$ac_cv_struct_tm>
8013
8014
8015 int
8016 main ()
8017 {
8018 static struct tm ac_aggr;
8019 if (ac_aggr.tm_zone)
8020 return 0;
8021 ;
8022 return 0;
8023 }
8024 _ACEOF
8025 rm -f conftest.$ac_objext
8026 if { (ac_try="$ac_compile"
8027 case "(($ac_try" in
8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029 *) ac_try_echo=$ac_try;;
8030 esac
8031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8032 $as_echo "$ac_try_echo") >&5
8033 (eval "$ac_compile") 2>conftest.er1
8034 ac_status=$?
8035 grep -v '^ *+' conftest.er1 >conftest.err
8036 rm -f conftest.er1
8037 cat conftest.err >&5
8038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } && {
8040 test -z "$ac_c_werror_flag" ||
8041 test ! -s conftest.err
8042 } && test -s conftest.$ac_objext; then
8043 ac_cv_member_struct_tm_tm_zone=yes
8044 else
8045 $as_echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8047
8048 cat >conftest.$ac_ext <<_ACEOF
8049 /* confdefs.h. */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8054 #include <sys/types.h>
8055 #include <$ac_cv_struct_tm>
8056
8057
8058 int
8059 main ()
8060 {
8061 static struct tm ac_aggr;
8062 if (sizeof ac_aggr.tm_zone)
8063 return 0;
8064 ;
8065 return 0;
8066 }
8067 _ACEOF
8068 rm -f conftest.$ac_objext
8069 if { (ac_try="$ac_compile"
8070 case "(($ac_try" in
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8073 esac
8074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8075 $as_echo "$ac_try_echo") >&5
8076 (eval "$ac_compile") 2>conftest.er1
8077 ac_status=$?
8078 grep -v '^ *+' conftest.er1 >conftest.err
8079 rm -f conftest.er1
8080 cat conftest.err >&5
8081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } && {
8083 test -z "$ac_c_werror_flag" ||
8084 test ! -s conftest.err
8085 } && test -s conftest.$ac_objext; then
8086 ac_cv_member_struct_tm_tm_zone=yes
8087 else
8088 $as_echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8090
8091 ac_cv_member_struct_tm_tm_zone=no
8092 fi
8093
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095 fi
8096
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098 fi
8099 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8100 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8101 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8102
8103 cat >>confdefs.h <<_ACEOF
8104 #define HAVE_STRUCT_TM_TM_ZONE 1
8105 _ACEOF
8106
8107
8108 fi
8109
8110 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8111
8112 cat >>confdefs.h <<\_ACEOF
8113 #define HAVE_TM_ZONE 1
8114 _ACEOF
8115
8116 else
8117 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8118 $as_echo_n "checking whether tzname is declared... " >&6; }
8119 if test "${ac_cv_have_decl_tzname+set}" = set; then
8120 $as_echo_n "(cached) " >&6
8121 else
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h. */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 #include <time.h>
8129
8130 int
8131 main ()
8132 {
8133 #ifndef tzname
8134 (void) tzname;
8135 #endif
8136
8137 ;
8138 return 0;
8139 }
8140 _ACEOF
8141 rm -f conftest.$ac_objext
8142 if { (ac_try="$ac_compile"
8143 case "(($ac_try" in
8144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8145 *) ac_try_echo=$ac_try;;
8146 esac
8147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8148 $as_echo "$ac_try_echo") >&5
8149 (eval "$ac_compile") 2>conftest.er1
8150 ac_status=$?
8151 grep -v '^ *+' conftest.er1 >conftest.err
8152 rm -f conftest.er1
8153 cat conftest.err >&5
8154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } && {
8156 test -z "$ac_c_werror_flag" ||
8157 test ! -s conftest.err
8158 } && test -s conftest.$ac_objext; then
8159 ac_cv_have_decl_tzname=yes
8160 else
8161 $as_echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.$ac_ext >&5
8163
8164 ac_cv_have_decl_tzname=no
8165 fi
8166
8167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8168 fi
8169 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8170 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8171 if test $ac_cv_have_decl_tzname = yes; then
8172
8173 cat >>confdefs.h <<_ACEOF
8174 #define HAVE_DECL_TZNAME 1
8175 _ACEOF
8176
8177
8178 else
8179 cat >>confdefs.h <<_ACEOF
8180 #define HAVE_DECL_TZNAME 0
8181 _ACEOF
8182
8183
8184 fi
8185
8186
8187 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8188 $as_echo_n "checking for tzname... " >&6; }
8189 if test "${ac_cv_var_tzname+set}" = set; then
8190 $as_echo_n "(cached) " >&6
8191 else
8192 cat >conftest.$ac_ext <<_ACEOF
8193 /* confdefs.h. */
8194 _ACEOF
8195 cat confdefs.h >>conftest.$ac_ext
8196 cat >>conftest.$ac_ext <<_ACEOF
8197 /* end confdefs.h. */
8198 #include <time.h>
8199 #if !HAVE_DECL_TZNAME
8200 extern char *tzname[];
8201 #endif
8202
8203 int
8204 main ()
8205 {
8206 return tzname[0][0];
8207 ;
8208 return 0;
8209 }
8210 _ACEOF
8211 rm -f conftest.$ac_objext conftest$ac_exeext
8212 if { (ac_try="$ac_link"
8213 case "(($ac_try" in
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8216 esac
8217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8218 $as_echo "$ac_try_echo") >&5
8219 (eval "$ac_link") 2>conftest.er1
8220 ac_status=$?
8221 grep -v '^ *+' conftest.er1 >conftest.err
8222 rm -f conftest.er1
8223 cat conftest.err >&5
8224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); } && {
8226 test -z "$ac_c_werror_flag" ||
8227 test ! -s conftest.err
8228 } && test -s conftest$ac_exeext && {
8229 test "$cross_compiling" = yes ||
8230 $as_test_x conftest$ac_exeext
8231 }; then
8232 ac_cv_var_tzname=yes
8233 else
8234 $as_echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.$ac_ext >&5
8236
8237 ac_cv_var_tzname=no
8238 fi
8239
8240 rm -rf conftest.dSYM
8241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8242 conftest$ac_exeext conftest.$ac_ext
8243 fi
8244 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8245 $as_echo "$ac_cv_var_tzname" >&6; }
8246 if test $ac_cv_var_tzname = yes; then
8247
8248 cat >>confdefs.h <<\_ACEOF
8249 #define HAVE_TZNAME 1
8250 _ACEOF
8251
8252 fi
8253 fi
8254
8255 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8256 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8257 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8258 $as_echo_n "(cached) " >&6
8259 else
8260 cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h. */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8266 #include <time.h>
8267
8268 int
8269 main ()
8270 {
8271 static struct tm ac_aggr;
8272 if (ac_aggr.tm_gmtoff)
8273 return 0;
8274 ;
8275 return 0;
8276 }
8277 _ACEOF
8278 rm -f conftest.$ac_objext
8279 if { (ac_try="$ac_compile"
8280 case "(($ac_try" in
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8283 esac
8284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8285 $as_echo "$ac_try_echo") >&5
8286 (eval "$ac_compile") 2>conftest.er1
8287 ac_status=$?
8288 grep -v '^ *+' conftest.er1 >conftest.err
8289 rm -f conftest.er1
8290 cat conftest.err >&5
8291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } && {
8293 test -z "$ac_c_werror_flag" ||
8294 test ! -s conftest.err
8295 } && test -s conftest.$ac_objext; then
8296 ac_cv_member_struct_tm_tm_gmtoff=yes
8297 else
8298 $as_echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8300
8301 cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h. */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8307 #include <time.h>
8308
8309 int
8310 main ()
8311 {
8312 static struct tm ac_aggr;
8313 if (sizeof ac_aggr.tm_gmtoff)
8314 return 0;
8315 ;
8316 return 0;
8317 }
8318 _ACEOF
8319 rm -f conftest.$ac_objext
8320 if { (ac_try="$ac_compile"
8321 case "(($ac_try" in
8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323 *) ac_try_echo=$ac_try;;
8324 esac
8325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8326 $as_echo "$ac_try_echo") >&5
8327 (eval "$ac_compile") 2>conftest.er1
8328 ac_status=$?
8329 grep -v '^ *+' conftest.er1 >conftest.err
8330 rm -f conftest.er1
8331 cat conftest.err >&5
8332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } && {
8334 test -z "$ac_c_werror_flag" ||
8335 test ! -s conftest.err
8336 } && test -s conftest.$ac_objext; then
8337 ac_cv_member_struct_tm_tm_gmtoff=yes
8338 else
8339 $as_echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8341
8342 ac_cv_member_struct_tm_tm_gmtoff=no
8343 fi
8344
8345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8346 fi
8347
8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349 fi
8350 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8351 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8352 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8353
8354 cat >>confdefs.h <<\_ACEOF
8355 #define HAVE_TM_GMTOFF 1
8356 _ACEOF
8357
8358 fi
8359
8360 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8361 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8362 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8363 $as_echo_n "(cached) " >&6
8364 else
8365 cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h. */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 #if HAVE_SYS_SOCKET_H
8373 #include <sys/socket.h>
8374 #endif
8375 #if HAVE_NET_IF_H
8376 #include <net/if.h>
8377 #endif
8378
8379 int
8380 main ()
8381 {
8382 static struct ifreq ac_aggr;
8383 if (ac_aggr.ifr_flags)
8384 return 0;
8385 ;
8386 return 0;
8387 }
8388 _ACEOF
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8391 case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394 esac
8395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8396 $as_echo "$ac_try_echo") >&5
8397 (eval "$ac_compile") 2>conftest.er1
8398 ac_status=$?
8399 grep -v '^ *+' conftest.er1 >conftest.err
8400 rm -f conftest.er1
8401 cat conftest.err >&5
8402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } && {
8404 test -z "$ac_c_werror_flag" ||
8405 test ! -s conftest.err
8406 } && test -s conftest.$ac_objext; then
8407 ac_cv_member_struct_ifreq_ifr_flags=yes
8408 else
8409 $as_echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8411
8412 cat >conftest.$ac_ext <<_ACEOF
8413 /* confdefs.h. */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8418 $ac_includes_default
8419 #if HAVE_SYS_SOCKET_H
8420 #include <sys/socket.h>
8421 #endif
8422 #if HAVE_NET_IF_H
8423 #include <net/if.h>
8424 #endif
8425
8426 int
8427 main ()
8428 {
8429 static struct ifreq ac_aggr;
8430 if (sizeof ac_aggr.ifr_flags)
8431 return 0;
8432 ;
8433 return 0;
8434 }
8435 _ACEOF
8436 rm -f conftest.$ac_objext
8437 if { (ac_try="$ac_compile"
8438 case "(($ac_try" in
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8441 esac
8442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8443 $as_echo "$ac_try_echo") >&5
8444 (eval "$ac_compile") 2>conftest.er1
8445 ac_status=$?
8446 grep -v '^ *+' conftest.er1 >conftest.err
8447 rm -f conftest.er1
8448 cat conftest.err >&5
8449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } && {
8451 test -z "$ac_c_werror_flag" ||
8452 test ! -s conftest.err
8453 } && test -s conftest.$ac_objext; then
8454 ac_cv_member_struct_ifreq_ifr_flags=yes
8455 else
8456 $as_echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8458
8459 ac_cv_member_struct_ifreq_ifr_flags=no
8460 fi
8461
8462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463 fi
8464
8465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466 fi
8467 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8468 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8469 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8470
8471 cat >>confdefs.h <<_ACEOF
8472 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8473 _ACEOF
8474
8475
8476 fi
8477 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8478 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8479 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8480 $as_echo_n "(cached) " >&6
8481 else
8482 cat >conftest.$ac_ext <<_ACEOF
8483 /* confdefs.h. */
8484 _ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h. */
8488 $ac_includes_default
8489 #if HAVE_SYS_SOCKET_H
8490 #include <sys/socket.h>
8491 #endif
8492 #if HAVE_NET_IF_H
8493 #include <net/if.h>
8494 #endif
8495
8496 int
8497 main ()
8498 {
8499 static struct ifreq ac_aggr;
8500 if (ac_aggr.ifr_hwaddr)
8501 return 0;
8502 ;
8503 return 0;
8504 }
8505 _ACEOF
8506 rm -f conftest.$ac_objext
8507 if { (ac_try="$ac_compile"
8508 case "(($ac_try" in
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8511 esac
8512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8513 $as_echo "$ac_try_echo") >&5
8514 (eval "$ac_compile") 2>conftest.er1
8515 ac_status=$?
8516 grep -v '^ *+' conftest.er1 >conftest.err
8517 rm -f conftest.er1
8518 cat conftest.err >&5
8519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } && {
8521 test -z "$ac_c_werror_flag" ||
8522 test ! -s conftest.err
8523 } && test -s conftest.$ac_objext; then
8524 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8525 else
8526 $as_echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8528
8529 cat >conftest.$ac_ext <<_ACEOF
8530 /* confdefs.h. */
8531 _ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8535 $ac_includes_default
8536 #if HAVE_SYS_SOCKET_H
8537 #include <sys/socket.h>
8538 #endif
8539 #if HAVE_NET_IF_H
8540 #include <net/if.h>
8541 #endif
8542
8543 int
8544 main ()
8545 {
8546 static struct ifreq ac_aggr;
8547 if (sizeof ac_aggr.ifr_hwaddr)
8548 return 0;
8549 ;
8550 return 0;
8551 }
8552 _ACEOF
8553 rm -f conftest.$ac_objext
8554 if { (ac_try="$ac_compile"
8555 case "(($ac_try" in
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8558 esac
8559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8560 $as_echo "$ac_try_echo") >&5
8561 (eval "$ac_compile") 2>conftest.er1
8562 ac_status=$?
8563 grep -v '^ *+' conftest.er1 >conftest.err
8564 rm -f conftest.er1
8565 cat conftest.err >&5
8566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } && {
8568 test -z "$ac_c_werror_flag" ||
8569 test ! -s conftest.err
8570 } && test -s conftest.$ac_objext; then
8571 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8572 else
8573 $as_echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8575
8576 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8577 fi
8578
8579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8580 fi
8581
8582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8583 fi
8584 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8585 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8586 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8587
8588 cat >>confdefs.h <<_ACEOF
8589 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8590 _ACEOF
8591
8592
8593 fi
8594 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8595 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8596 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8597 $as_echo_n "(cached) " >&6
8598 else
8599 cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h. */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8605 $ac_includes_default
8606 #if HAVE_SYS_SOCKET_H
8607 #include <sys/socket.h>
8608 #endif
8609 #if HAVE_NET_IF_H
8610 #include <net/if.h>
8611 #endif
8612
8613 int
8614 main ()
8615 {
8616 static struct ifreq ac_aggr;
8617 if (ac_aggr.ifr_netmask)
8618 return 0;
8619 ;
8620 return 0;
8621 }
8622 _ACEOF
8623 rm -f conftest.$ac_objext
8624 if { (ac_try="$ac_compile"
8625 case "(($ac_try" in
8626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627 *) ac_try_echo=$ac_try;;
8628 esac
8629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8630 $as_echo "$ac_try_echo") >&5
8631 (eval "$ac_compile") 2>conftest.er1
8632 ac_status=$?
8633 grep -v '^ *+' conftest.er1 >conftest.err
8634 rm -f conftest.er1
8635 cat conftest.err >&5
8636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } && {
8638 test -z "$ac_c_werror_flag" ||
8639 test ! -s conftest.err
8640 } && test -s conftest.$ac_objext; then
8641 ac_cv_member_struct_ifreq_ifr_netmask=yes
8642 else
8643 $as_echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8645
8646 cat >conftest.$ac_ext <<_ACEOF
8647 /* confdefs.h. */
8648 _ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h. */
8652 $ac_includes_default
8653 #if HAVE_SYS_SOCKET_H
8654 #include <sys/socket.h>
8655 #endif
8656 #if HAVE_NET_IF_H
8657 #include <net/if.h>
8658 #endif
8659
8660 int
8661 main ()
8662 {
8663 static struct ifreq ac_aggr;
8664 if (sizeof ac_aggr.ifr_netmask)
8665 return 0;
8666 ;
8667 return 0;
8668 }
8669 _ACEOF
8670 rm -f conftest.$ac_objext
8671 if { (ac_try="$ac_compile"
8672 case "(($ac_try" in
8673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674 *) ac_try_echo=$ac_try;;
8675 esac
8676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8677 $as_echo "$ac_try_echo") >&5
8678 (eval "$ac_compile") 2>conftest.er1
8679 ac_status=$?
8680 grep -v '^ *+' conftest.er1 >conftest.err
8681 rm -f conftest.er1
8682 cat conftest.err >&5
8683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } && {
8685 test -z "$ac_c_werror_flag" ||
8686 test ! -s conftest.err
8687 } && test -s conftest.$ac_objext; then
8688 ac_cv_member_struct_ifreq_ifr_netmask=yes
8689 else
8690 $as_echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8692
8693 ac_cv_member_struct_ifreq_ifr_netmask=no
8694 fi
8695
8696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8697 fi
8698
8699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8700 fi
8701 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8702 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8703 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8704
8705 cat >>confdefs.h <<_ACEOF
8706 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8707 _ACEOF
8708
8709
8710 fi
8711 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8712 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8713 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8714 $as_echo_n "(cached) " >&6
8715 else
8716 cat >conftest.$ac_ext <<_ACEOF
8717 /* confdefs.h. */
8718 _ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h. */
8722 $ac_includes_default
8723 #if HAVE_SYS_SOCKET_H
8724 #include <sys/socket.h>
8725 #endif
8726 #if HAVE_NET_IF_H
8727 #include <net/if.h>
8728 #endif
8729
8730 int
8731 main ()
8732 {
8733 static struct ifreq ac_aggr;
8734 if (ac_aggr.ifr_broadaddr)
8735 return 0;
8736 ;
8737 return 0;
8738 }
8739 _ACEOF
8740 rm -f conftest.$ac_objext
8741 if { (ac_try="$ac_compile"
8742 case "(($ac_try" in
8743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8744 *) ac_try_echo=$ac_try;;
8745 esac
8746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8747 $as_echo "$ac_try_echo") >&5
8748 (eval "$ac_compile") 2>conftest.er1
8749 ac_status=$?
8750 grep -v '^ *+' conftest.er1 >conftest.err
8751 rm -f conftest.er1
8752 cat conftest.err >&5
8753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); } && {
8755 test -z "$ac_c_werror_flag" ||
8756 test ! -s conftest.err
8757 } && test -s conftest.$ac_objext; then
8758 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8759 else
8760 $as_echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8762
8763 cat >conftest.$ac_ext <<_ACEOF
8764 /* confdefs.h. */
8765 _ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h. */
8769 $ac_includes_default
8770 #if HAVE_SYS_SOCKET_H
8771 #include <sys/socket.h>
8772 #endif
8773 #if HAVE_NET_IF_H
8774 #include <net/if.h>
8775 #endif
8776
8777 int
8778 main ()
8779 {
8780 static struct ifreq ac_aggr;
8781 if (sizeof ac_aggr.ifr_broadaddr)
8782 return 0;
8783 ;
8784 return 0;
8785 }
8786 _ACEOF
8787 rm -f conftest.$ac_objext
8788 if { (ac_try="$ac_compile"
8789 case "(($ac_try" in
8790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8791 *) ac_try_echo=$ac_try;;
8792 esac
8793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8794 $as_echo "$ac_try_echo") >&5
8795 (eval "$ac_compile") 2>conftest.er1
8796 ac_status=$?
8797 grep -v '^ *+' conftest.er1 >conftest.err
8798 rm -f conftest.er1
8799 cat conftest.err >&5
8800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } && {
8802 test -z "$ac_c_werror_flag" ||
8803 test ! -s conftest.err
8804 } && test -s conftest.$ac_objext; then
8805 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8806 else
8807 $as_echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8809
8810 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8811 fi
8812
8813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8814 fi
8815
8816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8817 fi
8818 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8819 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8820 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8821
8822 cat >>confdefs.h <<_ACEOF
8823 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8824 _ACEOF
8825
8826
8827 fi
8828 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8829 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8830 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8831 $as_echo_n "(cached) " >&6
8832 else
8833 cat >conftest.$ac_ext <<_ACEOF
8834 /* confdefs.h. */
8835 _ACEOF
8836 cat confdefs.h >>conftest.$ac_ext
8837 cat >>conftest.$ac_ext <<_ACEOF
8838 /* end confdefs.h. */
8839 $ac_includes_default
8840 #if HAVE_SYS_SOCKET_H
8841 #include <sys/socket.h>
8842 #endif
8843 #if HAVE_NET_IF_H
8844 #include <net/if.h>
8845 #endif
8846
8847 int
8848 main ()
8849 {
8850 static struct ifreq ac_aggr;
8851 if (ac_aggr.ifr_addr)
8852 return 0;
8853 ;
8854 return 0;
8855 }
8856 _ACEOF
8857 rm -f conftest.$ac_objext
8858 if { (ac_try="$ac_compile"
8859 case "(($ac_try" in
8860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8861 *) ac_try_echo=$ac_try;;
8862 esac
8863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8864 $as_echo "$ac_try_echo") >&5
8865 (eval "$ac_compile") 2>conftest.er1
8866 ac_status=$?
8867 grep -v '^ *+' conftest.er1 >conftest.err
8868 rm -f conftest.er1
8869 cat conftest.err >&5
8870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); } && {
8872 test -z "$ac_c_werror_flag" ||
8873 test ! -s conftest.err
8874 } && test -s conftest.$ac_objext; then
8875 ac_cv_member_struct_ifreq_ifr_addr=yes
8876 else
8877 $as_echo "$as_me: failed program was:" >&5
8878 sed 's/^/| /' conftest.$ac_ext >&5
8879
8880 cat >conftest.$ac_ext <<_ACEOF
8881 /* confdefs.h. */
8882 _ACEOF
8883 cat confdefs.h >>conftest.$ac_ext
8884 cat >>conftest.$ac_ext <<_ACEOF
8885 /* end confdefs.h. */
8886 $ac_includes_default
8887 #if HAVE_SYS_SOCKET_H
8888 #include <sys/socket.h>
8889 #endif
8890 #if HAVE_NET_IF_H
8891 #include <net/if.h>
8892 #endif
8893
8894 int
8895 main ()
8896 {
8897 static struct ifreq ac_aggr;
8898 if (sizeof ac_aggr.ifr_addr)
8899 return 0;
8900 ;
8901 return 0;
8902 }
8903 _ACEOF
8904 rm -f conftest.$ac_objext
8905 if { (ac_try="$ac_compile"
8906 case "(($ac_try" in
8907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8908 *) ac_try_echo=$ac_try;;
8909 esac
8910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8911 $as_echo "$ac_try_echo") >&5
8912 (eval "$ac_compile") 2>conftest.er1
8913 ac_status=$?
8914 grep -v '^ *+' conftest.er1 >conftest.err
8915 rm -f conftest.er1
8916 cat conftest.err >&5
8917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); } && {
8919 test -z "$ac_c_werror_flag" ||
8920 test ! -s conftest.err
8921 } && test -s conftest.$ac_objext; then
8922 ac_cv_member_struct_ifreq_ifr_addr=yes
8923 else
8924 $as_echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.$ac_ext >&5
8926
8927 ac_cv_member_struct_ifreq_ifr_addr=no
8928 fi
8929
8930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931 fi
8932
8933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8934 fi
8935 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8936 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8937 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8938
8939 cat >>confdefs.h <<_ACEOF
8940 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8941 _ACEOF
8942
8943
8944 fi
8945
8946
8947
8948 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8949 $as_echo_n "checking for function prototypes... " >&6; }
8950 if test "$ac_cv_prog_cc_c89" != no; then
8951 { $as_echo "$as_me:$LINENO: result: yes" >&5
8952 $as_echo "yes" >&6; }
8953
8954 cat >>confdefs.h <<\_ACEOF
8955 #define PROTOTYPES 1
8956 _ACEOF
8957
8958
8959 cat >>confdefs.h <<\_ACEOF
8960 #define __PROTOTYPES 1
8961 _ACEOF
8962
8963 else
8964 { $as_echo "$as_me:$LINENO: result: no" >&5
8965 $as_echo "no" >&6; }
8966 fi
8967
8968 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8969 $as_echo_n "checking for working volatile... " >&6; }
8970 if test "${ac_cv_c_volatile+set}" = set; then
8971 $as_echo_n "(cached) " >&6
8972 else
8973 cat >conftest.$ac_ext <<_ACEOF
8974 /* confdefs.h. */
8975 _ACEOF
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8979
8980 int
8981 main ()
8982 {
8983
8984 volatile int x;
8985 int * volatile y = (int *) 0;
8986 return !x && !y;
8987 ;
8988 return 0;
8989 }
8990 _ACEOF
8991 rm -f conftest.$ac_objext
8992 if { (ac_try="$ac_compile"
8993 case "(($ac_try" in
8994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8995 *) ac_try_echo=$ac_try;;
8996 esac
8997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8998 $as_echo "$ac_try_echo") >&5
8999 (eval "$ac_compile") 2>conftest.er1
9000 ac_status=$?
9001 grep -v '^ *+' conftest.er1 >conftest.err
9002 rm -f conftest.er1
9003 cat conftest.err >&5
9004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } && {
9006 test -z "$ac_c_werror_flag" ||
9007 test ! -s conftest.err
9008 } && test -s conftest.$ac_objext; then
9009 ac_cv_c_volatile=yes
9010 else
9011 $as_echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9013
9014 ac_cv_c_volatile=no
9015 fi
9016
9017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9018 fi
9019 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9020 $as_echo "$ac_cv_c_volatile" >&6; }
9021 if test $ac_cv_c_volatile = no; then
9022
9023 cat >>confdefs.h <<\_ACEOF
9024 #define volatile /**/
9025 _ACEOF
9026
9027 fi
9028
9029 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9030 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9031 if test "${ac_cv_c_const+set}" = set; then
9032 $as_echo_n "(cached) " >&6
9033 else
9034 cat >conftest.$ac_ext <<_ACEOF
9035 /* confdefs.h. */
9036 _ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h. */
9040
9041 int
9042 main ()
9043 {
9044 /* FIXME: Include the comments suggested by Paul. */
9045 #ifndef __cplusplus
9046 /* Ultrix mips cc rejects this. */
9047 typedef int charset[2];
9048 const charset cs;
9049 /* SunOS 4.1.1 cc rejects this. */
9050 char const *const *pcpcc;
9051 char **ppc;
9052 /* NEC SVR4.0.2 mips cc rejects this. */
9053 struct point {int x, y;};
9054 static struct point const zero = {0,0};
9055 /* AIX XL C 1.02.0.0 rejects this.
9056 It does not let you subtract one const X* pointer from another in
9057 an arm of an if-expression whose if-part is not a constant
9058 expression */
9059 const char *g = "string";
9060 pcpcc = &g + (g ? g-g : 0);
9061 /* HPUX 7.0 cc rejects these. */
9062 ++pcpcc;
9063 ppc = (char**) pcpcc;
9064 pcpcc = (char const *const *) ppc;
9065 { /* SCO 3.2v4 cc rejects this. */
9066 char *t;
9067 char const *s = 0 ? (char *) 0 : (char const *) 0;
9068
9069 *t++ = 0;
9070 if (s) return 0;
9071 }
9072 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9073 int x[] = {25, 17};
9074 const int *foo = &x[0];
9075 ++foo;
9076 }
9077 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9078 typedef const int *iptr;
9079 iptr p = 0;
9080 ++p;
9081 }
9082 { /* AIX XL C 1.02.0.0 rejects this saying
9083 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9084 struct s { int j; const int *ap[3]; };
9085 struct s *b; b->j = 5;
9086 }
9087 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9088 const int foo = 10;
9089 if (!foo) return 0;
9090 }
9091 return !cs[0] && !zero.x;
9092 #endif
9093
9094 ;
9095 return 0;
9096 }
9097 _ACEOF
9098 rm -f conftest.$ac_objext
9099 if { (ac_try="$ac_compile"
9100 case "(($ac_try" in
9101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9102 *) ac_try_echo=$ac_try;;
9103 esac
9104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9105 $as_echo "$ac_try_echo") >&5
9106 (eval "$ac_compile") 2>conftest.er1
9107 ac_status=$?
9108 grep -v '^ *+' conftest.er1 >conftest.err
9109 rm -f conftest.er1
9110 cat conftest.err >&5
9111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } && {
9113 test -z "$ac_c_werror_flag" ||
9114 test ! -s conftest.err
9115 } && test -s conftest.$ac_objext; then
9116 ac_cv_c_const=yes
9117 else
9118 $as_echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.$ac_ext >&5
9120
9121 ac_cv_c_const=no
9122 fi
9123
9124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125 fi
9126 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9127 $as_echo "$ac_cv_c_const" >&6; }
9128 if test $ac_cv_c_const = no; then
9129
9130 cat >>confdefs.h <<\_ACEOF
9131 #define const /**/
9132 _ACEOF
9133
9134 fi
9135
9136 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9137 $as_echo_n "checking for void * support... " >&6; }
9138 if test "${emacs_cv_void_star+set}" = set; then
9139 $as_echo_n "(cached) " >&6
9140 else
9141 cat >conftest.$ac_ext <<_ACEOF
9142 /* confdefs.h. */
9143 _ACEOF
9144 cat confdefs.h >>conftest.$ac_ext
9145 cat >>conftest.$ac_ext <<_ACEOF
9146 /* end confdefs.h. */
9147
9148 int
9149 main ()
9150 {
9151 void * foo;
9152 ;
9153 return 0;
9154 }
9155 _ACEOF
9156 rm -f conftest.$ac_objext
9157 if { (ac_try="$ac_compile"
9158 case "(($ac_try" in
9159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9160 *) ac_try_echo=$ac_try;;
9161 esac
9162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9163 $as_echo "$ac_try_echo") >&5
9164 (eval "$ac_compile") 2>conftest.er1
9165 ac_status=$?
9166 grep -v '^ *+' conftest.er1 >conftest.err
9167 rm -f conftest.er1
9168 cat conftest.err >&5
9169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } && {
9171 test -z "$ac_c_werror_flag" ||
9172 test ! -s conftest.err
9173 } && test -s conftest.$ac_objext; then
9174 emacs_cv_void_star=yes
9175 else
9176 $as_echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9178
9179 emacs_cv_void_star=no
9180 fi
9181
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9183 fi
9184 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9185 $as_echo "$emacs_cv_void_star" >&6; }
9186 if test $emacs_cv_void_star = yes; then
9187 cat >>confdefs.h <<\_ACEOF
9188 #define POINTER_TYPE void
9189 _ACEOF
9190
9191 else
9192 cat >>confdefs.h <<\_ACEOF
9193 #define POINTER_TYPE char
9194 _ACEOF
9195
9196 fi
9197
9198
9199
9200
9201
9202 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9203 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9204 set x ${MAKE-make}
9205 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9206 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9207 $as_echo_n "(cached) " >&6
9208 else
9209 cat >conftest.make <<\_ACEOF
9210 SHELL = /bin/sh
9211 all:
9212 @echo '@@@%%%=$(MAKE)=@@@%%%'
9213 _ACEOF
9214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9215 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9216 *@@@%%%=?*=@@@%%%*)
9217 eval ac_cv_prog_make_${ac_make}_set=yes;;
9218 *)
9219 eval ac_cv_prog_make_${ac_make}_set=no;;
9220 esac
9221 rm -f conftest.make
9222 fi
9223 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9224 { $as_echo "$as_me:$LINENO: result: yes" >&5
9225 $as_echo "yes" >&6; }
9226 SET_MAKE=
9227 else
9228 { $as_echo "$as_me:$LINENO: result: no" >&5
9229 $as_echo "no" >&6; }
9230 SET_MAKE="MAKE=${MAKE-make}"
9231 fi
9232
9233
9234 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9235 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9236 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9237 HAVE_GNU_MAKE=no
9238 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9239 if test "x$testval" != x; then
9240 HAVE_GNU_MAKE=yes
9241 else
9242 ac_enable_autodepend=no
9243 fi
9244 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9245 $as_echo "$HAVE_GNU_MAKE" >&6; }
9246 if test $HAVE_GNU_MAKE = yes; then
9247 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9248 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9249 SAVE_CFLAGS="$CFLAGS"
9250 CFLAGS="$CFLAGS -MMD -MF deps.d"
9251 cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h. */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257
9258 int
9259 main ()
9260 {
9261
9262 ;
9263 return 0;
9264 }
9265 _ACEOF
9266 rm -f conftest.$ac_objext
9267 if { (ac_try="$ac_compile"
9268 case "(($ac_try" in
9269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9270 *) ac_try_echo=$ac_try;;
9271 esac
9272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9273 $as_echo "$ac_try_echo") >&5
9274 (eval "$ac_compile") 2>conftest.er1
9275 ac_status=$?
9276 grep -v '^ *+' conftest.er1 >conftest.err
9277 rm -f conftest.er1
9278 cat conftest.err >&5
9279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } && {
9281 test -z "$ac_c_werror_flag" ||
9282 test ! -s conftest.err
9283 } && test -s conftest.$ac_objext; then
9284 :
9285 else
9286 $as_echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9288
9289 ac_enable_autodepend=no
9290 fi
9291
9292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9293 CFLAGS="$SAVE_CFLAGS"
9294 test -f deps.d || ac_enable_autodepend=no
9295 rm -rf deps.d
9296 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9297 $as_echo "$ac_enable_autodepend" >&6; }
9298 fi
9299 if test $ac_enable_autodepend = yes; then
9300
9301 cat >>confdefs.h <<\_ACEOF
9302 #define AUTO_DEPEND 1
9303 _ACEOF
9304
9305 fi
9306 fi
9307
9308 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9309 $as_echo_n "checking for long file names... " >&6; }
9310 if test "${ac_cv_sys_long_file_names+set}" = set; then
9311 $as_echo_n "(cached) " >&6
9312 else
9313 ac_cv_sys_long_file_names=yes
9314 # Test for long file names in all the places we know might matter:
9315 # . the current directory, where building will happen
9316 # $prefix/lib where we will be installing things
9317 # $exec_prefix/lib likewise
9318 # $TMPDIR if set, where it might want to write temporary files
9319 # /tmp where it might want to write temporary files
9320 # /var/tmp likewise
9321 # /usr/tmp likewise
9322 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9323 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9324 # in the usual case where exec_prefix is '${prefix}'.
9325 case $ac_dir in #(
9326 . | /* | ?:[\\/]*) ;; #(
9327 *) continue;;
9328 esac
9329 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9330 ac_xdir=$ac_dir/cf$$
9331 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9332 ac_tf1=$ac_xdir/conftest9012345
9333 ac_tf2=$ac_xdir/conftest9012346
9334 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9335 ac_cv_sys_long_file_names=no
9336 rm -f -r "$ac_xdir" 2>/dev/null
9337 test $ac_cv_sys_long_file_names = no && break
9338 done
9339 fi
9340 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9341 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9342 if test $ac_cv_sys_long_file_names = yes; then
9343
9344 cat >>confdefs.h <<\_ACEOF
9345 #define HAVE_LONG_FILE_NAMES 1
9346 _ACEOF
9347
9348 fi
9349
9350
9351 #### Choose a window system.
9352
9353 { $as_echo "$as_me:$LINENO: checking for X" >&5
9354 $as_echo_n "checking for X... " >&6; }
9355
9356
9357 # Check whether --with-x was given.
9358 if test "${with_x+set}" = set; then
9359 withval=$with_x;
9360 fi
9361
9362 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9363 if test "x$with_x" = xno; then
9364 # The user explicitly disabled X.
9365 have_x=disabled
9366 else
9367 case $x_includes,$x_libraries in #(
9368 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9369 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9370 { (exit 1); exit 1; }; };; #(
9371 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9372 $as_echo_n "(cached) " >&6
9373 else
9374 # One or both of the vars are not set, and there is no cached value.
9375 ac_x_includes=no ac_x_libraries=no
9376 rm -f -r conftest.dir
9377 if mkdir conftest.dir; then
9378 cd conftest.dir
9379 cat >Imakefile <<'_ACEOF'
9380 incroot:
9381 @echo incroot='${INCROOT}'
9382 usrlibdir:
9383 @echo usrlibdir='${USRLIBDIR}'
9384 libdir:
9385 @echo libdir='${LIBDIR}'
9386 _ACEOF
9387 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9388 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9389 for ac_var in incroot usrlibdir libdir; do
9390 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9391 done
9392 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9393 for ac_extension in a so sl dylib la dll; do
9394 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9395 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9396 ac_im_usrlibdir=$ac_im_libdir; break
9397 fi
9398 done
9399 # Screen out bogus values from the imake configuration. They are
9400 # bogus both because they are the default anyway, and because
9401 # using them would break gcc on systems where it needs fixed includes.
9402 case $ac_im_incroot in
9403 /usr/include) ac_x_includes= ;;
9404 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9405 esac
9406 case $ac_im_usrlibdir in
9407 /usr/lib | /lib) ;;
9408 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9409 esac
9410 fi
9411 cd ..
9412 rm -f -r conftest.dir
9413 fi
9414
9415 # Standard set of common directories for X headers.
9416 # Check X11 before X11Rn because it is often a symlink to the current release.
9417 ac_x_header_dirs='
9418 /usr/X11/include
9419 /usr/X11R6/include
9420 /usr/X11R5/include
9421 /usr/X11R4/include
9422
9423 /usr/include/X11
9424 /usr/include/X11R6
9425 /usr/include/X11R5
9426 /usr/include/X11R4
9427
9428 /usr/local/X11/include
9429 /usr/local/X11R6/include
9430 /usr/local/X11R5/include
9431 /usr/local/X11R4/include
9432
9433 /usr/local/include/X11
9434 /usr/local/include/X11R6
9435 /usr/local/include/X11R5
9436 /usr/local/include/X11R4
9437
9438 /usr/X386/include
9439 /usr/x386/include
9440 /usr/XFree86/include/X11
9441
9442 /usr/include
9443 /usr/local/include
9444 /usr/unsupported/include
9445 /usr/athena/include
9446 /usr/local/x11r5/include
9447 /usr/lpp/Xamples/include
9448
9449 /usr/openwin/include
9450 /usr/openwin/share/include'
9451
9452 if test "$ac_x_includes" = no; then
9453 # Guess where to find include files, by looking for Xlib.h.
9454 # First, try using that file with no special directory specified.
9455 cat >conftest.$ac_ext <<_ACEOF
9456 /* confdefs.h. */
9457 _ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9461 #include <X11/Xlib.h>
9462 _ACEOF
9463 if { (ac_try="$ac_cpp conftest.$ac_ext"
9464 case "(($ac_try" in
9465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466 *) ac_try_echo=$ac_try;;
9467 esac
9468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9469 $as_echo "$ac_try_echo") >&5
9470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9471 ac_status=$?
9472 grep -v '^ *+' conftest.er1 >conftest.err
9473 rm -f conftest.er1
9474 cat conftest.err >&5
9475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); } >/dev/null && {
9477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9478 test ! -s conftest.err
9479 }; then
9480 # We can compile using X headers with no special include directory.
9481 ac_x_includes=
9482 else
9483 $as_echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9485
9486 for ac_dir in $ac_x_header_dirs; do
9487 if test -r "$ac_dir/X11/Xlib.h"; then
9488 ac_x_includes=$ac_dir
9489 break
9490 fi
9491 done
9492 fi
9493
9494 rm -f conftest.err conftest.$ac_ext
9495 fi # $ac_x_includes = no
9496
9497 if test "$ac_x_libraries" = no; then
9498 # Check for the libraries.
9499 # See if we find them without any special options.
9500 # Don't add to $LIBS permanently.
9501 ac_save_LIBS=$LIBS
9502 LIBS="-lX11 $LIBS"
9503 cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h. */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 #include <X11/Xlib.h>
9510 int
9511 main ()
9512 {
9513 XrmInitialize ()
9514 ;
9515 return 0;
9516 }
9517 _ACEOF
9518 rm -f conftest.$ac_objext conftest$ac_exeext
9519 if { (ac_try="$ac_link"
9520 case "(($ac_try" in
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9523 esac
9524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9525 $as_echo "$ac_try_echo") >&5
9526 (eval "$ac_link") 2>conftest.er1
9527 ac_status=$?
9528 grep -v '^ *+' conftest.er1 >conftest.err
9529 rm -f conftest.er1
9530 cat conftest.err >&5
9531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } && {
9533 test -z "$ac_c_werror_flag" ||
9534 test ! -s conftest.err
9535 } && test -s conftest$ac_exeext && {
9536 test "$cross_compiling" = yes ||
9537 $as_test_x conftest$ac_exeext
9538 }; then
9539 LIBS=$ac_save_LIBS
9540 # We can link X programs with no special library path.
9541 ac_x_libraries=
9542 else
9543 $as_echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9545
9546 LIBS=$ac_save_LIBS
9547 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9548 do
9549 # Don't even attempt the hair of trying to link an X program!
9550 for ac_extension in a so sl dylib la dll; do
9551 if test -r "$ac_dir/libX11.$ac_extension"; then
9552 ac_x_libraries=$ac_dir
9553 break 2
9554 fi
9555 done
9556 done
9557 fi
9558
9559 rm -rf conftest.dSYM
9560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9561 conftest$ac_exeext conftest.$ac_ext
9562 fi # $ac_x_libraries = no
9563
9564 case $ac_x_includes,$ac_x_libraries in #(
9565 no,* | *,no | *\'*)
9566 # Didn't find X, or a directory has "'" in its name.
9567 ac_cv_have_x="have_x=no";; #(
9568 *)
9569 # Record where we found X for the cache.
9570 ac_cv_have_x="have_x=yes\
9571 ac_x_includes='$ac_x_includes'\
9572 ac_x_libraries='$ac_x_libraries'"
9573 esac
9574 fi
9575 ;; #(
9576 *) have_x=yes;;
9577 esac
9578 eval "$ac_cv_have_x"
9579 fi # $with_x != no
9580
9581 if test "$have_x" != yes; then
9582 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9583 $as_echo "$have_x" >&6; }
9584 no_x=yes
9585 else
9586 # If each of the values was on the command line, it overrides each guess.
9587 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9588 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9589 # Update the cache value to reflect the command line values.
9590 ac_cv_have_x="have_x=yes\
9591 ac_x_includes='$x_includes'\
9592 ac_x_libraries='$x_libraries'"
9593 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9594 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9595 fi
9596
9597 if test "$no_x" = yes; then
9598 window_system=none
9599 else
9600 window_system=x11
9601 fi
9602
9603 ## Workaround for bug in autoconf <= 2.62.
9604 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9605 ## No need to do anything special for these standard directories.
9606 ## This is an experiment, take it out if it causes problems.
9607 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9608
9609 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9610
9611 fi
9612
9613 if test "${x_libraries}" != NONE; then
9614 if test -n "${x_libraries}"; then
9615 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9616 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9617 fi
9618 x_default_search_path=""
9619 x_search_path=${x_libraries}
9620 if test -z "${x_search_path}"; then
9621 x_search_path=/usr/lib
9622 fi
9623 for x_library in `echo ${x_search_path}: | \
9624 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9625 x_search_path="\
9626 ${x_library}/X11/%L/%T/%N%C%S:\
9627 ${x_library}/X11/%l/%T/%N%C%S:\
9628 ${x_library}/X11/%T/%N%C%S:\
9629 ${x_library}/X11/%L/%T/%N%S:\
9630 ${x_library}/X11/%l/%T/%N%S:\
9631 ${x_library}/X11/%T/%N%S"
9632 if test x"${x_default_search_path}" = x; then
9633 x_default_search_path=${x_search_path}
9634 else
9635 x_default_search_path="${x_search_path}:${x_default_search_path}"
9636 fi
9637 done
9638 fi
9639 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9640 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9641 fi
9642
9643 if test x"${x_includes}" = x; then
9644 bitmapdir=/usr/include/X11/bitmaps
9645 else
9646 # accumulate include directories that have X11 bitmap subdirectories
9647 bmd_acc="dummyval"
9648 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9649 if test -d "${bmd}/X11/bitmaps"; then
9650 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9651 fi
9652 if test -d "${bmd}/bitmaps"; then
9653 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9654 fi
9655 done
9656 if test ${bmd_acc} != "dummyval"; then
9657 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9658 fi
9659 fi
9660
9661 HAVE_NS=no
9662 NS_IMPL_COCOA=no
9663 NS_IMPL_GNUSTEP=no
9664 tmp_CPPFLAGS="$CPPFLAGS"
9665 tmp_CFLAGS="$CFLAGS"
9666 CPPFLAGS="$CPPFLAGS -x objective-c"
9667 CFLAGS="$CFLAGS -x objective-c"
9668 if test "${with_ns}" != no; then
9669 if test "${opsys}" = darwin; then
9670 NS_IMPL_COCOA=yes
9671 ns_appdir=`pwd`/nextstep/Emacs.app
9672 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9673 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9674 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9675 elif test -f $GNUSTEP_CONFIG_FILE; then
9676 NS_IMPL_GNUSTEP=yes
9677 ns_appdir=`pwd`/nextstep/Emacs.app
9678 ns_appbindir=`pwd`/nextstep/Emacs.app
9679 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9680 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9681 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9682 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9683 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9684 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9685 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9686 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9687 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9688 fi
9689 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9690 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9691 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9692 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9693 $as_echo_n "(cached) " >&6
9694 fi
9695 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9696 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9697 else
9698 # Is the header compilable?
9699 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9700 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9701 cat >conftest.$ac_ext <<_ACEOF
9702 /* confdefs.h. */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9707 $ac_includes_default
9708 #include <AppKit/AppKit.h>
9709 _ACEOF
9710 rm -f conftest.$ac_objext
9711 if { (ac_try="$ac_compile"
9712 case "(($ac_try" in
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9715 esac
9716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9717 $as_echo "$ac_try_echo") >&5
9718 (eval "$ac_compile") 2>conftest.er1
9719 ac_status=$?
9720 grep -v '^ *+' conftest.er1 >conftest.err
9721 rm -f conftest.er1
9722 cat conftest.err >&5
9723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } && {
9725 test -z "$ac_c_werror_flag" ||
9726 test ! -s conftest.err
9727 } && test -s conftest.$ac_objext; then
9728 ac_header_compiler=yes
9729 else
9730 $as_echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9732
9733 ac_header_compiler=no
9734 fi
9735
9736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9737 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9738 $as_echo "$ac_header_compiler" >&6; }
9739
9740 # Is the header present?
9741 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9742 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9743 cat >conftest.$ac_ext <<_ACEOF
9744 /* confdefs.h. */
9745 _ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h. */
9749 #include <AppKit/AppKit.h>
9750 _ACEOF
9751 if { (ac_try="$ac_cpp conftest.$ac_ext"
9752 case "(($ac_try" in
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9755 esac
9756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9757 $as_echo "$ac_try_echo") >&5
9758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9759 ac_status=$?
9760 grep -v '^ *+' conftest.er1 >conftest.err
9761 rm -f conftest.er1
9762 cat conftest.err >&5
9763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } >/dev/null && {
9765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9766 test ! -s conftest.err
9767 }; then
9768 ac_header_preproc=yes
9769 else
9770 $as_echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9772
9773 ac_header_preproc=no
9774 fi
9775
9776 rm -f conftest.err conftest.$ac_ext
9777 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9778 $as_echo "$ac_header_preproc" >&6; }
9779
9780 # So? What about this header?
9781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9782 yes:no: )
9783 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9784 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9785 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9786 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9787 ac_header_preproc=yes
9788 ;;
9789 no:yes:* )
9790 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9791 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9792 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9793 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9794 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9795 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9796 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9797 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9798 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9799 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9800 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9801 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9802
9803 ;;
9804 esac
9805 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9806 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9807 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9808 $as_echo_n "(cached) " >&6
9809 else
9810 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9811 fi
9812 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9813 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9814
9815 fi
9816 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9817 HAVE_NS=yes
9818 else
9819 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9820 files are missing or cannot be compiled." >&5
9821 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9822 files are missing or cannot be compiled." >&2;}
9823 { (exit 1); exit 1; }; }
9824 fi
9825
9826
9827 NS_HAVE_NSINTEGER=yes
9828 cat >conftest.$ac_ext <<_ACEOF
9829 /* confdefs.h. */
9830 _ACEOF
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h. */
9834 #include <Foundation/NSObjCRuntime.h>
9835 int
9836 main ()
9837 {
9838 NSInteger i;
9839 ;
9840 return 0;
9841 }
9842 _ACEOF
9843 rm -f conftest.$ac_objext
9844 if { (ac_try="$ac_compile"
9845 case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848 esac
9849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9850 $as_echo "$ac_try_echo") >&5
9851 (eval "$ac_compile") 2>conftest.er1
9852 ac_status=$?
9853 grep -v '^ *+' conftest.er1 >conftest.err
9854 rm -f conftest.er1
9855 cat conftest.err >&5
9856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } && {
9858 test -z "$ac_c_werror_flag" ||
9859 test ! -s conftest.err
9860 } && test -s conftest.$ac_objext; then
9861 ns_have_nsinteger=yes
9862 else
9863 $as_echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866 ns_have_nsinteger=no
9867 fi
9868
9869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9870 if test $ns_have_nsinteger = no; then
9871 NS_HAVE_NSINTEGER=no
9872 fi
9873 fi
9874 if test "${HAVE_NS}" = yes; then
9875 window_system=nextstep
9876 with_xft=no
9877 # set up packaging dirs
9878 exec_prefix=${ns_appbindir}
9879 libexecdir=${ns_appbindir}/libexec
9880 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9881 prefix=${ns_appresdir}
9882 fi
9883 fi
9884 CFLAGS="$tmp_CFLAGS"
9885 CPPFLAGS="$tmp_CPPFLAGS"
9886
9887 case "${window_system}" in
9888 x11 )
9889 HAVE_X_WINDOWS=yes
9890 HAVE_X11=yes
9891 case "${with_x_toolkit}" in
9892 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9893 motif ) USE_X_TOOLKIT=MOTIF ;;
9894 gtk ) with_gtk=yes
9895 USE_X_TOOLKIT=none ;;
9896 no ) USE_X_TOOLKIT=none ;;
9897 * ) USE_X_TOOLKIT=maybe ;;
9898 esac
9899 ;;
9900 nextstep | none )
9901 HAVE_X_WINDOWS=no
9902 HAVE_X11=no
9903 USE_X_TOOLKIT=none
9904 ;;
9905 esac
9906
9907 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9908 # Extract the first word of "X", so it can be a program name with args.
9909 set dummy X; ac_word=$2
9910 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9911 $as_echo_n "checking for $ac_word... " >&6; }
9912 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9913 $as_echo_n "(cached) " >&6
9914 else
9915 if test -n "$HAVE_XSERVER"; then
9916 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9917 else
9918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9919 for as_dir in $PATH
9920 do
9921 IFS=$as_save_IFS
9922 test -z "$as_dir" && as_dir=.
9923 for ac_exec_ext in '' $ac_executable_extensions; do
9924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9925 ac_cv_prog_HAVE_XSERVER="true"
9926 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9927 break 2
9928 fi
9929 done
9930 done
9931 IFS=$as_save_IFS
9932
9933 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9934 fi
9935 fi
9936 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9937 if test -n "$HAVE_XSERVER"; then
9938 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9939 $as_echo "$HAVE_XSERVER" >&6; }
9940 else
9941 { $as_echo "$as_me:$LINENO: result: no" >&5
9942 $as_echo "no" >&6; }
9943 fi
9944
9945
9946 if test "$HAVE_XSERVER" = true ||
9947 test -n "$DISPLAY" ||
9948 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9949 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9950 were found. You should install the relevant development files for X
9951 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9952 sure you have development files for image handling, i.e.
9953 tiff, gif, jpeg, png and xpm.
9954 If you are sure you want Emacs compiled without X window support, pass
9955 --without-x
9956 to configure." >&5
9957 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9958 were found. You should install the relevant development files for X
9959 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9960 sure you have development files for image handling, i.e.
9961 tiff, gif, jpeg, png and xpm.
9962 If you are sure you want Emacs compiled without X window support, pass
9963 --without-x
9964 to configure." >&2;}
9965 { (exit 1); exit 1; }; }
9966 fi
9967 fi
9968
9969 ### If we're using X11, we should use the X menu package.
9970 HAVE_MENUS=no
9971 case ${HAVE_X11} in
9972 yes ) HAVE_MENUS=yes ;;
9973 esac
9974
9975 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9976 # Assume not, until told otherwise.
9977 GNU_MALLOC=yes
9978 doug_lea_malloc=yes
9979 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9980 $as_echo_n "checking for malloc_get_state... " >&6; }
9981 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9982 $as_echo_n "(cached) " >&6
9983 else
9984 cat >conftest.$ac_ext <<_ACEOF
9985 /* confdefs.h. */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9992 #define malloc_get_state innocuous_malloc_get_state
9993
9994 /* System header to define __stub macros and hopefully few prototypes,
9995 which can conflict with char malloc_get_state (); below.
9996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9997 <limits.h> exists even on freestanding compilers. */
9998
9999 #ifdef __STDC__
10000 # include <limits.h>
10001 #else
10002 # include <assert.h>
10003 #endif
10004
10005 #undef malloc_get_state
10006
10007 /* Override any GCC internal prototype to avoid an error.
10008 Use char because int might match the return type of a GCC
10009 builtin and then its argument prototype would still apply. */
10010 #ifdef __cplusplus
10011 extern "C"
10012 #endif
10013 char malloc_get_state ();
10014 /* The GNU C library defines this for functions which it implements
10015 to always fail with ENOSYS. Some functions are actually named
10016 something starting with __ and the normal name is an alias. */
10017 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10018 choke me
10019 #endif
10020
10021 int
10022 main ()
10023 {
10024 return malloc_get_state ();
10025 ;
10026 return 0;
10027 }
10028 _ACEOF
10029 rm -f conftest.$ac_objext conftest$ac_exeext
10030 if { (ac_try="$ac_link"
10031 case "(($ac_try" in
10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033 *) ac_try_echo=$ac_try;;
10034 esac
10035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10036 $as_echo "$ac_try_echo") >&5
10037 (eval "$ac_link") 2>conftest.er1
10038 ac_status=$?
10039 grep -v '^ *+' conftest.er1 >conftest.err
10040 rm -f conftest.er1
10041 cat conftest.err >&5
10042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); } && {
10044 test -z "$ac_c_werror_flag" ||
10045 test ! -s conftest.err
10046 } && test -s conftest$ac_exeext && {
10047 test "$cross_compiling" = yes ||
10048 $as_test_x conftest$ac_exeext
10049 }; then
10050 ac_cv_func_malloc_get_state=yes
10051 else
10052 $as_echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10054
10055 ac_cv_func_malloc_get_state=no
10056 fi
10057
10058 rm -rf conftest.dSYM
10059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10060 conftest$ac_exeext conftest.$ac_ext
10061 fi
10062 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10063 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10064 if test $ac_cv_func_malloc_get_state = yes; then
10065 :
10066 else
10067 doug_lea_malloc=no
10068 fi
10069
10070 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10071 $as_echo_n "checking for malloc_set_state... " >&6; }
10072 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10073 $as_echo_n "(cached) " >&6
10074 else
10075 cat >conftest.$ac_ext <<_ACEOF
10076 /* confdefs.h. */
10077 _ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h. */
10081 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10083 #define malloc_set_state innocuous_malloc_set_state
10084
10085 /* System header to define __stub macros and hopefully few prototypes,
10086 which can conflict with char malloc_set_state (); below.
10087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10088 <limits.h> exists even on freestanding compilers. */
10089
10090 #ifdef __STDC__
10091 # include <limits.h>
10092 #else
10093 # include <assert.h>
10094 #endif
10095
10096 #undef malloc_set_state
10097
10098 /* Override any GCC internal prototype to avoid an error.
10099 Use char because int might match the return type of a GCC
10100 builtin and then its argument prototype would still apply. */
10101 #ifdef __cplusplus
10102 extern "C"
10103 #endif
10104 char malloc_set_state ();
10105 /* The GNU C library defines this for functions which it implements
10106 to always fail with ENOSYS. Some functions are actually named
10107 something starting with __ and the normal name is an alias. */
10108 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10109 choke me
10110 #endif
10111
10112 int
10113 main ()
10114 {
10115 return malloc_set_state ();
10116 ;
10117 return 0;
10118 }
10119 _ACEOF
10120 rm -f conftest.$ac_objext conftest$ac_exeext
10121 if { (ac_try="$ac_link"
10122 case "(($ac_try" in
10123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10125 esac
10126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10127 $as_echo "$ac_try_echo") >&5
10128 (eval "$ac_link") 2>conftest.er1
10129 ac_status=$?
10130 grep -v '^ *+' conftest.er1 >conftest.err
10131 rm -f conftest.er1
10132 cat conftest.err >&5
10133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } && {
10135 test -z "$ac_c_werror_flag" ||
10136 test ! -s conftest.err
10137 } && test -s conftest$ac_exeext && {
10138 test "$cross_compiling" = yes ||
10139 $as_test_x conftest$ac_exeext
10140 }; then
10141 ac_cv_func_malloc_set_state=yes
10142 else
10143 $as_echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10145
10146 ac_cv_func_malloc_set_state=no
10147 fi
10148
10149 rm -rf conftest.dSYM
10150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10151 conftest$ac_exeext conftest.$ac_ext
10152 fi
10153 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10154 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10155 if test $ac_cv_func_malloc_set_state = yes; then
10156 :
10157 else
10158 doug_lea_malloc=no
10159 fi
10160
10161 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10162 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10163 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10164 $as_echo_n "(cached) " >&6
10165 else
10166 cat >conftest.$ac_ext <<_ACEOF
10167 /* confdefs.h. */
10168 _ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h. */
10172 extern void (* __after_morecore_hook)();
10173 int
10174 main ()
10175 {
10176 __after_morecore_hook = 0
10177 ;
10178 return 0;
10179 }
10180 _ACEOF
10181 rm -f conftest.$ac_objext conftest$ac_exeext
10182 if { (ac_try="$ac_link"
10183 case "(($ac_try" in
10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185 *) ac_try_echo=$ac_try;;
10186 esac
10187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10188 $as_echo "$ac_try_echo") >&5
10189 (eval "$ac_link") 2>conftest.er1
10190 ac_status=$?
10191 grep -v '^ *+' conftest.er1 >conftest.err
10192 rm -f conftest.er1
10193 cat conftest.err >&5
10194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } && {
10196 test -z "$ac_c_werror_flag" ||
10197 test ! -s conftest.err
10198 } && test -s conftest$ac_exeext && {
10199 test "$cross_compiling" = yes ||
10200 $as_test_x conftest$ac_exeext
10201 }; then
10202 emacs_cv_var___after_morecore_hook=yes
10203 else
10204 $as_echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.$ac_ext >&5
10206
10207 emacs_cv_var___after_morecore_hook=no
10208 fi
10209
10210 rm -rf conftest.dSYM
10211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10212 conftest$ac_exeext conftest.$ac_ext
10213 fi
10214 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10215 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10216 if test $emacs_cv_var___after_morecore_hook = no; then
10217 doug_lea_malloc=no
10218 fi
10219 if test "${system_malloc}" = "yes"; then
10220 GNU_MALLOC=no
10221 GNU_MALLOC_reason="
10222 (The GNU allocators don't work with this system configuration.)"
10223 fi
10224 if test "$doug_lea_malloc" = "yes" ; then
10225 if test "$GNU_MALLOC" = yes ; then
10226 GNU_MALLOC_reason="
10227 (Using Doug Lea's new malloc from the GNU C Library.)"
10228 fi
10229
10230 cat >>confdefs.h <<\_ACEOF
10231 #define DOUG_LEA_MALLOC 1
10232 _ACEOF
10233
10234 fi
10235
10236 if test x"${REL_ALLOC}" = x; then
10237 REL_ALLOC=${GNU_MALLOC}
10238 fi
10239
10240
10241
10242
10243 for ac_header in stdlib.h unistd.h
10244 do
10245 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10247 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10248 $as_echo_n "checking for $ac_header... " >&6; }
10249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10250 $as_echo_n "(cached) " >&6
10251 fi
10252 ac_res=`eval 'as_val=${'$as_ac_Header'}
10253 $as_echo "$as_val"'`
10254 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10255 $as_echo "$ac_res" >&6; }
10256 else
10257 # Is the header compilable?
10258 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10259 $as_echo_n "checking $ac_header usability... " >&6; }
10260 cat >conftest.$ac_ext <<_ACEOF
10261 /* confdefs.h. */
10262 _ACEOF
10263 cat confdefs.h >>conftest.$ac_ext
10264 cat >>conftest.$ac_ext <<_ACEOF
10265 /* end confdefs.h. */
10266 $ac_includes_default
10267 #include <$ac_header>
10268 _ACEOF
10269 rm -f conftest.$ac_objext
10270 if { (ac_try="$ac_compile"
10271 case "(($ac_try" in
10272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273 *) ac_try_echo=$ac_try;;
10274 esac
10275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10276 $as_echo "$ac_try_echo") >&5
10277 (eval "$ac_compile") 2>conftest.er1
10278 ac_status=$?
10279 grep -v '^ *+' conftest.er1 >conftest.err
10280 rm -f conftest.er1
10281 cat conftest.err >&5
10282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } && {
10284 test -z "$ac_c_werror_flag" ||
10285 test ! -s conftest.err
10286 } && test -s conftest.$ac_objext; then
10287 ac_header_compiler=yes
10288 else
10289 $as_echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10291
10292 ac_header_compiler=no
10293 fi
10294
10295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10296 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10297 $as_echo "$ac_header_compiler" >&6; }
10298
10299 # Is the header present?
10300 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10301 $as_echo_n "checking $ac_header presence... " >&6; }
10302 cat >conftest.$ac_ext <<_ACEOF
10303 /* confdefs.h. */
10304 _ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10308 #include <$ac_header>
10309 _ACEOF
10310 if { (ac_try="$ac_cpp conftest.$ac_ext"
10311 case "(($ac_try" in
10312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313 *) ac_try_echo=$ac_try;;
10314 esac
10315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10316 $as_echo "$ac_try_echo") >&5
10317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10318 ac_status=$?
10319 grep -v '^ *+' conftest.er1 >conftest.err
10320 rm -f conftest.er1
10321 cat conftest.err >&5
10322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } >/dev/null && {
10324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10325 test ! -s conftest.err
10326 }; then
10327 ac_header_preproc=yes
10328 else
10329 $as_echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.$ac_ext >&5
10331
10332 ac_header_preproc=no
10333 fi
10334
10335 rm -f conftest.err conftest.$ac_ext
10336 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10337 $as_echo "$ac_header_preproc" >&6; }
10338
10339 # So? What about this header?
10340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10341 yes:no: )
10342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10343 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10345 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10346 ac_header_preproc=yes
10347 ;;
10348 no:yes:* )
10349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10350 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10352 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10354 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10356 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10358 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10360 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10361
10362 ;;
10363 esac
10364 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10365 $as_echo_n "checking for $ac_header... " >&6; }
10366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10367 $as_echo_n "(cached) " >&6
10368 else
10369 eval "$as_ac_Header=\$ac_header_preproc"
10370 fi
10371 ac_res=`eval 'as_val=${'$as_ac_Header'}
10372 $as_echo "$as_val"'`
10373 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10374 $as_echo "$ac_res" >&6; }
10375
10376 fi
10377 if test `eval 'as_val=${'$as_ac_Header'}
10378 $as_echo "$as_val"'` = yes; then
10379 cat >>confdefs.h <<_ACEOF
10380 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10381 _ACEOF
10382
10383 fi
10384
10385 done
10386
10387
10388 for ac_func in getpagesize
10389 do
10390 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10391 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10392 $as_echo_n "checking for $ac_func... " >&6; }
10393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10394 $as_echo_n "(cached) " >&6
10395 else
10396 cat >conftest.$ac_ext <<_ACEOF
10397 /* confdefs.h. */
10398 _ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10404 #define $ac_func innocuous_$ac_func
10405
10406 /* System header to define __stub macros and hopefully few prototypes,
10407 which can conflict with char $ac_func (); below.
10408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10409 <limits.h> exists even on freestanding compilers. */
10410
10411 #ifdef __STDC__
10412 # include <limits.h>
10413 #else
10414 # include <assert.h>
10415 #endif
10416
10417 #undef $ac_func
10418
10419 /* Override any GCC internal prototype to avoid an error.
10420 Use char because int might match the return type of a GCC
10421 builtin and then its argument prototype would still apply. */
10422 #ifdef __cplusplus
10423 extern "C"
10424 #endif
10425 char $ac_func ();
10426 /* The GNU C library defines this for functions which it implements
10427 to always fail with ENOSYS. Some functions are actually named
10428 something starting with __ and the normal name is an alias. */
10429 #if defined __stub_$ac_func || defined __stub___$ac_func
10430 choke me
10431 #endif
10432
10433 int
10434 main ()
10435 {
10436 return $ac_func ();
10437 ;
10438 return 0;
10439 }
10440 _ACEOF
10441 rm -f conftest.$ac_objext conftest$ac_exeext
10442 if { (ac_try="$ac_link"
10443 case "(($ac_try" in
10444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445 *) ac_try_echo=$ac_try;;
10446 esac
10447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10448 $as_echo "$ac_try_echo") >&5
10449 (eval "$ac_link") 2>conftest.er1
10450 ac_status=$?
10451 grep -v '^ *+' conftest.er1 >conftest.err
10452 rm -f conftest.er1
10453 cat conftest.err >&5
10454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } && {
10456 test -z "$ac_c_werror_flag" ||
10457 test ! -s conftest.err
10458 } && test -s conftest$ac_exeext && {
10459 test "$cross_compiling" = yes ||
10460 $as_test_x conftest$ac_exeext
10461 }; then
10462 eval "$as_ac_var=yes"
10463 else
10464 $as_echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.$ac_ext >&5
10466
10467 eval "$as_ac_var=no"
10468 fi
10469
10470 rm -rf conftest.dSYM
10471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10472 conftest$ac_exeext conftest.$ac_ext
10473 fi
10474 ac_res=`eval 'as_val=${'$as_ac_var'}
10475 $as_echo "$as_val"'`
10476 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10477 $as_echo "$ac_res" >&6; }
10478 if test `eval 'as_val=${'$as_ac_var'}
10479 $as_echo "$as_val"'` = yes; then
10480 cat >>confdefs.h <<_ACEOF
10481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10482 _ACEOF
10483
10484 fi
10485 done
10486
10487 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10488 $as_echo_n "checking for working mmap... " >&6; }
10489 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10490 $as_echo_n "(cached) " >&6
10491 else
10492 if test "$cross_compiling" = yes; then
10493 ac_cv_func_mmap_fixed_mapped=no
10494 else
10495 cat >conftest.$ac_ext <<_ACEOF
10496 /* confdefs.h. */
10497 _ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10501 $ac_includes_default
10502 /* malloc might have been renamed as rpl_malloc. */
10503 #undef malloc
10504
10505 /* Thanks to Mike Haertel and Jim Avera for this test.
10506 Here is a matrix of mmap possibilities:
10507 mmap private not fixed
10508 mmap private fixed at somewhere currently unmapped
10509 mmap private fixed at somewhere already mapped
10510 mmap shared not fixed
10511 mmap shared fixed at somewhere currently unmapped
10512 mmap shared fixed at somewhere already mapped
10513 For private mappings, we should verify that changes cannot be read()
10514 back from the file, nor mmap's back from the file at a different
10515 address. (There have been systems where private was not correctly
10516 implemented like the infamous i386 svr4.0, and systems where the
10517 VM page cache was not coherent with the file system buffer cache
10518 like early versions of FreeBSD and possibly contemporary NetBSD.)
10519 For shared mappings, we should conversely verify that changes get
10520 propagated back to all the places they're supposed to be.
10521
10522 Grep wants private fixed already mapped.
10523 The main things grep needs to know about mmap are:
10524 * does it exist and is it safe to write into the mmap'd area
10525 * how to use it (BSD variants) */
10526
10527 #include <fcntl.h>
10528 #include <sys/mman.h>
10529
10530 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10531 char *malloc ();
10532 #endif
10533
10534 /* This mess was copied from the GNU getpagesize.h. */
10535 #ifndef HAVE_GETPAGESIZE
10536 /* Assume that all systems that can run configure have sys/param.h. */
10537 # ifndef HAVE_SYS_PARAM_H
10538 # define HAVE_SYS_PARAM_H 1
10539 # endif
10540
10541 # ifdef _SC_PAGESIZE
10542 # define getpagesize() sysconf(_SC_PAGESIZE)
10543 # else /* no _SC_PAGESIZE */
10544 # ifdef HAVE_SYS_PARAM_H
10545 # include <sys/param.h>
10546 # ifdef EXEC_PAGESIZE
10547 # define getpagesize() EXEC_PAGESIZE
10548 # else /* no EXEC_PAGESIZE */
10549 # ifdef NBPG
10550 # define getpagesize() NBPG * CLSIZE
10551 # ifndef CLSIZE
10552 # define CLSIZE 1
10553 # endif /* no CLSIZE */
10554 # else /* no NBPG */
10555 # ifdef NBPC
10556 # define getpagesize() NBPC
10557 # else /* no NBPC */
10558 # ifdef PAGESIZE
10559 # define getpagesize() PAGESIZE
10560 # endif /* PAGESIZE */
10561 # endif /* no NBPC */
10562 # endif /* no NBPG */
10563 # endif /* no EXEC_PAGESIZE */
10564 # else /* no HAVE_SYS_PARAM_H */
10565 # define getpagesize() 8192 /* punt totally */
10566 # endif /* no HAVE_SYS_PARAM_H */
10567 # endif /* no _SC_PAGESIZE */
10568
10569 #endif /* no HAVE_GETPAGESIZE */
10570
10571 int
10572 main ()
10573 {
10574 char *data, *data2, *data3;
10575 int i, pagesize;
10576 int fd;
10577
10578 pagesize = getpagesize ();
10579
10580 /* First, make a file with some known garbage in it. */
10581 data = (char *) malloc (pagesize);
10582 if (!data)
10583 return 1;
10584 for (i = 0; i < pagesize; ++i)
10585 *(data + i) = rand ();
10586 umask (0);
10587 fd = creat ("conftest.mmap", 0600);
10588 if (fd < 0)
10589 return 1;
10590 if (write (fd, data, pagesize) != pagesize)
10591 return 1;
10592 close (fd);
10593
10594 /* Next, try to mmap the file at a fixed address which already has
10595 something else allocated at it. If we can, also make sure that
10596 we see the same garbage. */
10597 fd = open ("conftest.mmap", O_RDWR);
10598 if (fd < 0)
10599 return 1;
10600 data2 = (char *) malloc (2 * pagesize);
10601 if (!data2)
10602 return 1;
10603 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10604 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10605 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10606 return 1;
10607 for (i = 0; i < pagesize; ++i)
10608 if (*(data + i) != *(data2 + i))
10609 return 1;
10610
10611 /* Finally, make sure that changes to the mapped area do not
10612 percolate back to the file as seen by read(). (This is a bug on
10613 some variants of i386 svr4.0.) */
10614 for (i = 0; i < pagesize; ++i)
10615 *(data2 + i) = *(data2 + i) + 1;
10616 data3 = (char *) malloc (pagesize);
10617 if (!data3)
10618 return 1;
10619 if (read (fd, data3, pagesize) != pagesize)
10620 return 1;
10621 for (i = 0; i < pagesize; ++i)
10622 if (*(data + i) != *(data3 + i))
10623 return 1;
10624 close (fd);
10625 return 0;
10626 }
10627 _ACEOF
10628 rm -f conftest$ac_exeext
10629 if { (ac_try="$ac_link"
10630 case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10633 esac
10634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10635 $as_echo "$ac_try_echo") >&5
10636 (eval "$ac_link") 2>&5
10637 ac_status=$?
10638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10640 { (case "(($ac_try" in
10641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10642 *) ac_try_echo=$ac_try;;
10643 esac
10644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10645 $as_echo "$ac_try_echo") >&5
10646 (eval "$ac_try") 2>&5
10647 ac_status=$?
10648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
10650 ac_cv_func_mmap_fixed_mapped=yes
10651 else
10652 $as_echo "$as_me: program exited with status $ac_status" >&5
10653 $as_echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10655
10656 ( exit $ac_status )
10657 ac_cv_func_mmap_fixed_mapped=no
10658 fi
10659 rm -rf conftest.dSYM
10660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10661 fi
10662
10663
10664 fi
10665 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10666 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10667 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10668
10669 cat >>confdefs.h <<\_ACEOF
10670 #define HAVE_MMAP 1
10671 _ACEOF
10672
10673 fi
10674 rm -f conftest.mmap
10675
10676 if test $use_mmap_for_buffers = yes; then
10677 REL_ALLOC=no
10678 fi
10679
10680 LIBS="$libsrc_libs $LIBS"
10681
10682
10683 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10684 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10685 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10686 $as_echo_n "(cached) " >&6
10687 else
10688 ac_check_lib_save_LIBS=$LIBS
10689 LIBS="-ldnet $LIBS"
10690 cat >conftest.$ac_ext <<_ACEOF
10691 /* confdefs.h. */
10692 _ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10696
10697 /* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10700 #ifdef __cplusplus
10701 extern "C"
10702 #endif
10703 char dnet_ntoa ();
10704 int
10705 main ()
10706 {
10707 return dnet_ntoa ();
10708 ;
10709 return 0;
10710 }
10711 _ACEOF
10712 rm -f conftest.$ac_objext conftest$ac_exeext
10713 if { (ac_try="$ac_link"
10714 case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10717 esac
10718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10719 $as_echo "$ac_try_echo") >&5
10720 (eval "$ac_link") 2>conftest.er1
10721 ac_status=$?
10722 grep -v '^ *+' conftest.er1 >conftest.err
10723 rm -f conftest.er1
10724 cat conftest.err >&5
10725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } && {
10727 test -z "$ac_c_werror_flag" ||
10728 test ! -s conftest.err
10729 } && test -s conftest$ac_exeext && {
10730 test "$cross_compiling" = yes ||
10731 $as_test_x conftest$ac_exeext
10732 }; then
10733 ac_cv_lib_dnet_dnet_ntoa=yes
10734 else
10735 $as_echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10737
10738 ac_cv_lib_dnet_dnet_ntoa=no
10739 fi
10740
10741 rm -rf conftest.dSYM
10742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10743 conftest$ac_exeext conftest.$ac_ext
10744 LIBS=$ac_check_lib_save_LIBS
10745 fi
10746 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10747 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10748 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10749 cat >>confdefs.h <<_ACEOF
10750 #define HAVE_LIBDNET 1
10751 _ACEOF
10752
10753 LIBS="-ldnet $LIBS"
10754
10755 fi
10756
10757
10758 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10759 $as_echo_n "checking for main in -lXbsd... " >&6; }
10760 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10761 $as_echo_n "(cached) " >&6
10762 else
10763 ac_check_lib_save_LIBS=$LIBS
10764 LIBS="-lXbsd $LIBS"
10765 cat >conftest.$ac_ext <<_ACEOF
10766 /* confdefs.h. */
10767 _ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10771
10772
10773 int
10774 main ()
10775 {
10776 return main ();
10777 ;
10778 return 0;
10779 }
10780 _ACEOF
10781 rm -f conftest.$ac_objext conftest$ac_exeext
10782 if { (ac_try="$ac_link"
10783 case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10786 esac
10787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10788 $as_echo "$ac_try_echo") >&5
10789 (eval "$ac_link") 2>conftest.er1
10790 ac_status=$?
10791 grep -v '^ *+' conftest.er1 >conftest.err
10792 rm -f conftest.er1
10793 cat conftest.err >&5
10794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); } && {
10796 test -z "$ac_c_werror_flag" ||
10797 test ! -s conftest.err
10798 } && test -s conftest$ac_exeext && {
10799 test "$cross_compiling" = yes ||
10800 $as_test_x conftest$ac_exeext
10801 }; then
10802 ac_cv_lib_Xbsd_main=yes
10803 else
10804 $as_echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10806
10807 ac_cv_lib_Xbsd_main=no
10808 fi
10809
10810 rm -rf conftest.dSYM
10811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10812 conftest$ac_exeext conftest.$ac_ext
10813 LIBS=$ac_check_lib_save_LIBS
10814 fi
10815 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10816 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10817 if test $ac_cv_lib_Xbsd_main = yes; then
10818 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10819 fi
10820
10821
10822
10823 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10824 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10825 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10826 $as_echo_n "(cached) " >&6
10827 else
10828 ac_check_lib_save_LIBS=$LIBS
10829 LIBS="-lpthreads $LIBS"
10830 cat >conftest.$ac_ext <<_ACEOF
10831 /* confdefs.h. */
10832 _ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10836
10837 /* Override any GCC internal prototype to avoid an error.
10838 Use char because int might match the return type of a GCC
10839 builtin and then its argument prototype would still apply. */
10840 #ifdef __cplusplus
10841 extern "C"
10842 #endif
10843 char cma_open ();
10844 int
10845 main ()
10846 {
10847 return cma_open ();
10848 ;
10849 return 0;
10850 }
10851 _ACEOF
10852 rm -f conftest.$ac_objext conftest$ac_exeext
10853 if { (ac_try="$ac_link"
10854 case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10857 esac
10858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10859 $as_echo "$ac_try_echo") >&5
10860 (eval "$ac_link") 2>conftest.er1
10861 ac_status=$?
10862 grep -v '^ *+' conftest.er1 >conftest.err
10863 rm -f conftest.er1
10864 cat conftest.err >&5
10865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } && {
10867 test -z "$ac_c_werror_flag" ||
10868 test ! -s conftest.err
10869 } && test -s conftest$ac_exeext && {
10870 test "$cross_compiling" = yes ||
10871 $as_test_x conftest$ac_exeext
10872 }; then
10873 ac_cv_lib_pthreads_cma_open=yes
10874 else
10875 $as_echo "$as_me: failed program was:" >&5
10876 sed 's/^/| /' conftest.$ac_ext >&5
10877
10878 ac_cv_lib_pthreads_cma_open=no
10879 fi
10880
10881 rm -rf conftest.dSYM
10882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10883 conftest$ac_exeext conftest.$ac_ext
10884 LIBS=$ac_check_lib_save_LIBS
10885 fi
10886 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10887 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10888 if test $ac_cv_lib_pthreads_cma_open = yes; then
10889 cat >>confdefs.h <<_ACEOF
10890 #define HAVE_LIBPTHREADS 1
10891 _ACEOF
10892
10893 LIBS="-lpthreads $LIBS"
10894
10895 fi
10896
10897
10898
10899 case ${host_os} in
10900 aix*)
10901 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10902 $as_echo_n "checking for -bbigtoc option... " >&6; }
10903 if test "${gdb_cv_bigtoc+set}" = set; then
10904 $as_echo_n "(cached) " >&6
10905 else
10906
10907 case $GCC in
10908 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10909 *) gdb_cv_bigtoc=-bbigtoc ;;
10910 esac
10911
10912 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10913 cat >conftest.$ac_ext <<_ACEOF
10914 /* confdefs.h. */
10915 _ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h. */
10919
10920 int
10921 main ()
10922 {
10923 int i;
10924 ;
10925 return 0;
10926 }
10927 _ACEOF
10928 rm -f conftest.$ac_objext conftest$ac_exeext
10929 if { (ac_try="$ac_link"
10930 case "(($ac_try" in
10931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932 *) ac_try_echo=$ac_try;;
10933 esac
10934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10935 $as_echo "$ac_try_echo") >&5
10936 (eval "$ac_link") 2>conftest.er1
10937 ac_status=$?
10938 grep -v '^ *+' conftest.er1 >conftest.err
10939 rm -f conftest.er1
10940 cat conftest.err >&5
10941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); } && {
10943 test -z "$ac_c_werror_flag" ||
10944 test ! -s conftest.err
10945 } && test -s conftest$ac_exeext && {
10946 test "$cross_compiling" = yes ||
10947 $as_test_x conftest$ac_exeext
10948 }; then
10949 :
10950 else
10951 $as_echo "$as_me: failed program was:" >&5
10952 sed 's/^/| /' conftest.$ac_ext >&5
10953
10954 gdb_cv_bigtoc=
10955 fi
10956
10957 rm -rf conftest.dSYM
10958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10959 conftest$ac_exeext conftest.$ac_ext
10960
10961 fi
10962 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10963 $as_echo "$gdb_cv_bigtoc" >&6; }
10964 ;;
10965 esac
10966
10967 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10968 # used for the tests that follow. We set them back to REAL_CFLAGS and
10969 # REAL_CPPFLAGS later on.
10970
10971 REAL_CPPFLAGS="$CPPFLAGS"
10972
10973 if test "${HAVE_X11}" = "yes"; then
10974 DEFS="$C_SWITCH_X_SITE $DEFS"
10975 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10976 LIBS="$LIBX $LIBS"
10977 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10978 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10979
10980 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10981 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10982 # but it's more convenient here to set LD_RUN_PATH
10983 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10984 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10985 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10986 export LD_RUN_PATH
10987 fi
10988
10989 if test "${opsys}" = "gnu-linux"; then
10990 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10991 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h. */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998
10999 int
11000 main ()
11001 {
11002 XOpenDisplay ("foo");
11003 ;
11004 return 0;
11005 }
11006 _ACEOF
11007 rm -f conftest.$ac_objext conftest$ac_exeext
11008 if { (ac_try="$ac_link"
11009 case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11012 esac
11013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11014 $as_echo "$ac_try_echo") >&5
11015 (eval "$ac_link") 2>conftest.er1
11016 ac_status=$?
11017 grep -v '^ *+' conftest.er1 >conftest.err
11018 rm -f conftest.er1
11019 cat conftest.err >&5
11020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } && {
11022 test -z "$ac_c_werror_flag" ||
11023 test ! -s conftest.err
11024 } && test -s conftest$ac_exeext && {
11025 test "$cross_compiling" = yes ||
11026 $as_test_x conftest$ac_exeext
11027 }; then
11028 xlinux_first_failure=no
11029 else
11030 $as_echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11032
11033 xlinux_first_failure=yes
11034 fi
11035
11036 rm -rf conftest.dSYM
11037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11038 conftest$ac_exeext conftest.$ac_ext
11039 if test "${xlinux_first_failure}" = "yes"; then
11040 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11041 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11042 OLD_CPPFLAGS="$CPPFLAGS"
11043 OLD_LIBS="$LIBS"
11044 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11045 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11046 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11047 LIBS="$LIBS -b i486-linuxaout"
11048 cat >conftest.$ac_ext <<_ACEOF
11049 /* confdefs.h. */
11050 _ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11054
11055 int
11056 main ()
11057 {
11058 XOpenDisplay ("foo");
11059 ;
11060 return 0;
11061 }
11062 _ACEOF
11063 rm -f conftest.$ac_objext conftest$ac_exeext
11064 if { (ac_try="$ac_link"
11065 case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11068 esac
11069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11070 $as_echo "$ac_try_echo") >&5
11071 (eval "$ac_link") 2>conftest.er1
11072 ac_status=$?
11073 grep -v '^ *+' conftest.er1 >conftest.err
11074 rm -f conftest.er1
11075 cat conftest.err >&5
11076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } && {
11078 test -z "$ac_c_werror_flag" ||
11079 test ! -s conftest.err
11080 } && test -s conftest$ac_exeext && {
11081 test "$cross_compiling" = yes ||
11082 $as_test_x conftest$ac_exeext
11083 }; then
11084 xlinux_second_failure=no
11085 else
11086 $as_echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11088
11089 xlinux_second_failure=yes
11090 fi
11091
11092 rm -rf conftest.dSYM
11093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11094 conftest$ac_exeext conftest.$ac_ext
11095 if test "${xlinux_second_failure}" = "yes"; then
11096 # If we get the same failure with -b, there is no use adding -b.
11097 # So take it out. This plays safe.
11098 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11099 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11100 CPPFLAGS="$OLD_CPPFLAGS"
11101 LIBS="$OLD_LIBS"
11102 { $as_echo "$as_me:$LINENO: result: no" >&5
11103 $as_echo "no" >&6; }
11104 else
11105 { $as_echo "$as_me:$LINENO: result: yes" >&5
11106 $as_echo "yes" >&6; }
11107 fi
11108 else
11109 { $as_echo "$as_me:$LINENO: result: no" >&5
11110 $as_echo "no" >&6; }
11111 fi
11112 fi
11113
11114 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11115 # header files included from there.
11116 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11117 $as_echo_n "checking for Xkb... " >&6; }
11118 cat >conftest.$ac_ext <<_ACEOF
11119 /* confdefs.h. */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11124 #include <X11/Xlib.h>
11125 #include <X11/XKBlib.h>
11126 int
11127 main ()
11128 {
11129 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11130 ;
11131 return 0;
11132 }
11133 _ACEOF
11134 rm -f conftest.$ac_objext conftest$ac_exeext
11135 if { (ac_try="$ac_link"
11136 case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11139 esac
11140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11141 $as_echo "$ac_try_echo") >&5
11142 (eval "$ac_link") 2>conftest.er1
11143 ac_status=$?
11144 grep -v '^ *+' conftest.er1 >conftest.err
11145 rm -f conftest.er1
11146 cat conftest.err >&5
11147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } && {
11149 test -z "$ac_c_werror_flag" ||
11150 test ! -s conftest.err
11151 } && test -s conftest$ac_exeext && {
11152 test "$cross_compiling" = yes ||
11153 $as_test_x conftest$ac_exeext
11154 }; then
11155 emacs_xkb=yes
11156 else
11157 $as_echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11159
11160 emacs_xkb=no
11161 fi
11162
11163 rm -rf conftest.dSYM
11164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11165 conftest$ac_exeext conftest.$ac_ext
11166 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11167 $as_echo "$emacs_xkb" >&6; }
11168 if test $emacs_xkb = yes; then
11169
11170 cat >>confdefs.h <<\_ACEOF
11171 #define HAVE_XKBGETKEYBOARD 1
11172 _ACEOF
11173
11174 fi
11175
11176
11177
11178
11179
11180 for ac_func in XrmSetDatabase XScreenResourceString \
11181 XScreenNumberOfScreen XSetWMProtocols
11182 do
11183 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11184 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11185 $as_echo_n "checking for $ac_func... " >&6; }
11186 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11187 $as_echo_n "(cached) " >&6
11188 else
11189 cat >conftest.$ac_ext <<_ACEOF
11190 /* confdefs.h. */
11191 _ACEOF
11192 cat confdefs.h >>conftest.$ac_ext
11193 cat >>conftest.$ac_ext <<_ACEOF
11194 /* end confdefs.h. */
11195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11197 #define $ac_func innocuous_$ac_func
11198
11199 /* System header to define __stub macros and hopefully few prototypes,
11200 which can conflict with char $ac_func (); below.
11201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11202 <limits.h> exists even on freestanding compilers. */
11203
11204 #ifdef __STDC__
11205 # include <limits.h>
11206 #else
11207 # include <assert.h>
11208 #endif
11209
11210 #undef $ac_func
11211
11212 /* Override any GCC internal prototype to avoid an error.
11213 Use char because int might match the return type of a GCC
11214 builtin and then its argument prototype would still apply. */
11215 #ifdef __cplusplus
11216 extern "C"
11217 #endif
11218 char $ac_func ();
11219 /* The GNU C library defines this for functions which it implements
11220 to always fail with ENOSYS. Some functions are actually named
11221 something starting with __ and the normal name is an alias. */
11222 #if defined __stub_$ac_func || defined __stub___$ac_func
11223 choke me
11224 #endif
11225
11226 int
11227 main ()
11228 {
11229 return $ac_func ();
11230 ;
11231 return 0;
11232 }
11233 _ACEOF
11234 rm -f conftest.$ac_objext conftest$ac_exeext
11235 if { (ac_try="$ac_link"
11236 case "(($ac_try" in
11237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11238 *) ac_try_echo=$ac_try;;
11239 esac
11240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11241 $as_echo "$ac_try_echo") >&5
11242 (eval "$ac_link") 2>conftest.er1
11243 ac_status=$?
11244 grep -v '^ *+' conftest.er1 >conftest.err
11245 rm -f conftest.er1
11246 cat conftest.err >&5
11247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } && {
11249 test -z "$ac_c_werror_flag" ||
11250 test ! -s conftest.err
11251 } && test -s conftest$ac_exeext && {
11252 test "$cross_compiling" = yes ||
11253 $as_test_x conftest$ac_exeext
11254 }; then
11255 eval "$as_ac_var=yes"
11256 else
11257 $as_echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11259
11260 eval "$as_ac_var=no"
11261 fi
11262
11263 rm -rf conftest.dSYM
11264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11265 conftest$ac_exeext conftest.$ac_ext
11266 fi
11267 ac_res=`eval 'as_val=${'$as_ac_var'}
11268 $as_echo "$as_val"'`
11269 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11270 $as_echo "$ac_res" >&6; }
11271 if test `eval 'as_val=${'$as_ac_var'}
11272 $as_echo "$as_val"'` = yes; then
11273 cat >>confdefs.h <<_ACEOF
11274 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11275 _ACEOF
11276
11277 fi
11278 done
11279
11280 fi
11281
11282 if test "${window_system}" = "x11"; then
11283 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11284 $as_echo_n "checking X11 version 6... " >&6; }
11285 if test "${emacs_cv_x11_version_6+set}" = set; then
11286 $as_echo_n "(cached) " >&6
11287 else
11288 cat >conftest.$ac_ext <<_ACEOF
11289 /* confdefs.h. */
11290 _ACEOF
11291 cat confdefs.h >>conftest.$ac_ext
11292 cat >>conftest.$ac_ext <<_ACEOF
11293 /* end confdefs.h. */
11294 #include <X11/Xlib.h>
11295 int
11296 main ()
11297 {
11298 #if XlibSpecificationRelease < 6
11299 fail;
11300 #endif
11301
11302 ;
11303 return 0;
11304 }
11305 _ACEOF
11306 rm -f conftest.$ac_objext conftest$ac_exeext
11307 if { (ac_try="$ac_link"
11308 case "(($ac_try" in
11309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11310 *) ac_try_echo=$ac_try;;
11311 esac
11312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11313 $as_echo "$ac_try_echo") >&5
11314 (eval "$ac_link") 2>conftest.er1
11315 ac_status=$?
11316 grep -v '^ *+' conftest.er1 >conftest.err
11317 rm -f conftest.er1
11318 cat conftest.err >&5
11319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } && {
11321 test -z "$ac_c_werror_flag" ||
11322 test ! -s conftest.err
11323 } && test -s conftest$ac_exeext && {
11324 test "$cross_compiling" = yes ||
11325 $as_test_x conftest$ac_exeext
11326 }; then
11327 emacs_cv_x11_version_6=yes
11328 else
11329 $as_echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11331
11332 emacs_cv_x11_version_6=no
11333 fi
11334
11335 rm -rf conftest.dSYM
11336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11337 conftest$ac_exeext conftest.$ac_ext
11338 fi
11339
11340 if test $emacs_cv_x11_version_6 = yes; then
11341 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11342 $as_echo "6 or newer" >&6; }
11343
11344 cat >>confdefs.h <<\_ACEOF
11345 #define HAVE_X11R6 1
11346 _ACEOF
11347
11348 else
11349 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11350 $as_echo "before 6" >&6; }
11351 fi
11352 fi
11353
11354
11355 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11356 HAVE_RSVG=no
11357 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11358 if test "${with_rsvg}" != "no"; then
11359 RSVG_REQUIRED=2.11.0
11360 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11361
11362
11363 succeeded=no
11364
11365 # Extract the first word of "pkg-config", so it can be a program name with args.
11366 set dummy pkg-config; ac_word=$2
11367 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11368 $as_echo_n "checking for $ac_word... " >&6; }
11369 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11370 $as_echo_n "(cached) " >&6
11371 else
11372 case $PKG_CONFIG in
11373 [\\/]* | ?:[\\/]*)
11374 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11375 ;;
11376 *)
11377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11378 for as_dir in $PATH
11379 do
11380 IFS=$as_save_IFS
11381 test -z "$as_dir" && as_dir=.
11382 for ac_exec_ext in '' $ac_executable_extensions; do
11383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11384 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11385 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11386 break 2
11387 fi
11388 done
11389 done
11390 IFS=$as_save_IFS
11391
11392 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11393 ;;
11394 esac
11395 fi
11396 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11397 if test -n "$PKG_CONFIG"; then
11398 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11399 $as_echo "$PKG_CONFIG" >&6; }
11400 else
11401 { $as_echo "$as_me:$LINENO: result: no" >&5
11402 $as_echo "no" >&6; }
11403 fi
11404
11405
11406
11407 if test "$PKG_CONFIG" = "no" ; then
11408 :
11409 else
11410 PKG_CONFIG_MIN_VERSION=0.9.0
11411 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11412 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11413 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11414
11415 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11416 { $as_echo "$as_me:$LINENO: result: yes" >&5
11417 $as_echo "yes" >&6; }
11418 succeeded=yes
11419
11420 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11421 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11422 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11423 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11424 $as_echo "$RSVG_CFLAGS" >&6; }
11425
11426 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11427 $as_echo_n "checking RSVG_LIBS... " >&6; }
11428 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11429 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11430 $as_echo "$RSVG_LIBS" >&6; }
11431 else
11432 { $as_echo "$as_me:$LINENO: result: no" >&5
11433 $as_echo "no" >&6; }
11434 RSVG_CFLAGS=""
11435 RSVG_LIBS=""
11436 ## If we have a custom action on failure, don't print errors, but
11437 ## do set a variable so people can do so.
11438 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11439
11440 fi
11441
11442
11443
11444 else
11445 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11446 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11447 fi
11448 fi
11449
11450 if test $succeeded = yes; then
11451 :
11452 else
11453 :
11454 fi
11455
11456
11457
11458
11459 if test ".${RSVG_CFLAGS}" != "."; then
11460 HAVE_RSVG=yes
11461
11462 cat >>confdefs.h <<\_ACEOF
11463 #define HAVE_RSVG 1
11464 _ACEOF
11465
11466 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11467 LIBS="$RSVG_LIBS $LIBS"
11468 fi
11469 fi
11470 fi
11471
11472
11473 HAVE_GTK=no
11474 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11475 GLIB_REQUIRED=2.6
11476 GTK_REQUIRED=2.6
11477 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11478
11479
11480 succeeded=no
11481
11482 # Extract the first word of "pkg-config", so it can be a program name with args.
11483 set dummy pkg-config; ac_word=$2
11484 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11485 $as_echo_n "checking for $ac_word... " >&6; }
11486 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11487 $as_echo_n "(cached) " >&6
11488 else
11489 case $PKG_CONFIG in
11490 [\\/]* | ?:[\\/]*)
11491 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11492 ;;
11493 *)
11494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11495 for as_dir in $PATH
11496 do
11497 IFS=$as_save_IFS
11498 test -z "$as_dir" && as_dir=.
11499 for ac_exec_ext in '' $ac_executable_extensions; do
11500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11501 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11502 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11503 break 2
11504 fi
11505 done
11506 done
11507 IFS=$as_save_IFS
11508
11509 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11510 ;;
11511 esac
11512 fi
11513 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11514 if test -n "$PKG_CONFIG"; then
11515 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11516 $as_echo "$PKG_CONFIG" >&6; }
11517 else
11518 { $as_echo "$as_me:$LINENO: result: no" >&5
11519 $as_echo "no" >&6; }
11520 fi
11521
11522
11523
11524 if test "$PKG_CONFIG" = "no" ; then
11525 pkg_check_gtk=no
11526 else
11527 PKG_CONFIG_MIN_VERSION=0.9.0
11528 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11529 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11530 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11531
11532 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11533 { $as_echo "$as_me:$LINENO: result: yes" >&5
11534 $as_echo "yes" >&6; }
11535 succeeded=yes
11536
11537 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11538 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11539 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11540 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11541 $as_echo "$GTK_CFLAGS" >&6; }
11542
11543 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11544 $as_echo_n "checking GTK_LIBS... " >&6; }
11545 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11546 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11547 $as_echo "$GTK_LIBS" >&6; }
11548 else
11549 { $as_echo "$as_me:$LINENO: result: no" >&5
11550 $as_echo "no" >&6; }
11551 GTK_CFLAGS=""
11552 GTK_LIBS=""
11553 ## If we have a custom action on failure, don't print errors, but
11554 ## do set a variable so people can do so.
11555 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11556
11557 fi
11558
11559
11560
11561 else
11562 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11563 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11564 fi
11565 fi
11566
11567 if test $succeeded = yes; then
11568 pkg_check_gtk=yes
11569 else
11570 pkg_check_gtk=no
11571 fi
11572
11573 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11574 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11575 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11576 { (exit 1); exit 1; }; }
11577 fi
11578 fi
11579
11580
11581 if test x"$pkg_check_gtk" = xyes; then
11582
11583
11584
11585 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11586 CFLAGS="$CFLAGS $GTK_CFLAGS"
11587 LIBS="$GTK_LIBS $LIBS"
11588 GTK_COMPILES=no
11589
11590 for ac_func in gtk_main
11591 do
11592 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11593 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11594 $as_echo_n "checking for $ac_func... " >&6; }
11595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11596 $as_echo_n "(cached) " >&6
11597 else
11598 cat >conftest.$ac_ext <<_ACEOF
11599 /* confdefs.h. */
11600 _ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11606 #define $ac_func innocuous_$ac_func
11607
11608 /* System header to define __stub macros and hopefully few prototypes,
11609 which can conflict with char $ac_func (); below.
11610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11611 <limits.h> exists even on freestanding compilers. */
11612
11613 #ifdef __STDC__
11614 # include <limits.h>
11615 #else
11616 # include <assert.h>
11617 #endif
11618
11619 #undef $ac_func
11620
11621 /* Override any GCC internal prototype to avoid an error.
11622 Use char because int might match the return type of a GCC
11623 builtin and then its argument prototype would still apply. */
11624 #ifdef __cplusplus
11625 extern "C"
11626 #endif
11627 char $ac_func ();
11628 /* The GNU C library defines this for functions which it implements
11629 to always fail with ENOSYS. Some functions are actually named
11630 something starting with __ and the normal name is an alias. */
11631 #if defined __stub_$ac_func || defined __stub___$ac_func
11632 choke me
11633 #endif
11634
11635 int
11636 main ()
11637 {
11638 return $ac_func ();
11639 ;
11640 return 0;
11641 }
11642 _ACEOF
11643 rm -f conftest.$ac_objext conftest$ac_exeext
11644 if { (ac_try="$ac_link"
11645 case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11648 esac
11649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11650 $as_echo "$ac_try_echo") >&5
11651 (eval "$ac_link") 2>conftest.er1
11652 ac_status=$?
11653 grep -v '^ *+' conftest.er1 >conftest.err
11654 rm -f conftest.er1
11655 cat conftest.err >&5
11656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); } && {
11658 test -z "$ac_c_werror_flag" ||
11659 test ! -s conftest.err
11660 } && test -s conftest$ac_exeext && {
11661 test "$cross_compiling" = yes ||
11662 $as_test_x conftest$ac_exeext
11663 }; then
11664 eval "$as_ac_var=yes"
11665 else
11666 $as_echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.$ac_ext >&5
11668
11669 eval "$as_ac_var=no"
11670 fi
11671
11672 rm -rf conftest.dSYM
11673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11674 conftest$ac_exeext conftest.$ac_ext
11675 fi
11676 ac_res=`eval 'as_val=${'$as_ac_var'}
11677 $as_echo "$as_val"'`
11678 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11679 $as_echo "$ac_res" >&6; }
11680 if test `eval 'as_val=${'$as_ac_var'}
11681 $as_echo "$as_val"'` = yes; then
11682 cat >>confdefs.h <<_ACEOF
11683 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11684 _ACEOF
11685 GTK_COMPILES=yes
11686 fi
11687 done
11688
11689 if test "${GTK_COMPILES}" != "yes"; then
11690 if test "$USE_X_TOOLKIT" != "maybe"; then
11691 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11692 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11693 { (exit 1); exit 1; }; };
11694 fi
11695 else
11696 HAVE_GTK=yes
11697
11698 cat >>confdefs.h <<\_ACEOF
11699 #define USE_GTK 1
11700 _ACEOF
11701
11702 USE_X_TOOLKIT=none
11703 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11704 :
11705 else
11706 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11707 closing open displays. This is no problem if you just use
11708 one display, but if you use more than one and close one of them
11709 Emacs may crash." >&5
11710 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11711 closing open displays. This is no problem if you just use
11712 one display, but if you use more than one and close one of them
11713 Emacs may crash." >&2;}
11714 sleep 3
11715 fi
11716 fi
11717
11718 fi
11719
11720
11721 if test "${HAVE_GTK}" = "yes"; then
11722
11723 if test "$with_toolkit_scroll_bars" != no; then
11724 with_toolkit_scroll_bars=yes
11725 fi
11726
11727 HAVE_GTK_MULTIDISPLAY=no
11728
11729 for ac_func in gdk_display_open
11730 do
11731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11732 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11733 $as_echo_n "checking for $ac_func... " >&6; }
11734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11735 $as_echo_n "(cached) " >&6
11736 else
11737 cat >conftest.$ac_ext <<_ACEOF
11738 /* confdefs.h. */
11739 _ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11745 #define $ac_func innocuous_$ac_func
11746
11747 /* System header to define __stub macros and hopefully few prototypes,
11748 which can conflict with char $ac_func (); below.
11749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11750 <limits.h> exists even on freestanding compilers. */
11751
11752 #ifdef __STDC__
11753 # include <limits.h>
11754 #else
11755 # include <assert.h>
11756 #endif
11757
11758 #undef $ac_func
11759
11760 /* Override any GCC internal prototype to avoid an error.
11761 Use char because int might match the return type of a GCC
11762 builtin and then its argument prototype would still apply. */
11763 #ifdef __cplusplus
11764 extern "C"
11765 #endif
11766 char $ac_func ();
11767 /* The GNU C library defines this for functions which it implements
11768 to always fail with ENOSYS. Some functions are actually named
11769 something starting with __ and the normal name is an alias. */
11770 #if defined __stub_$ac_func || defined __stub___$ac_func
11771 choke me
11772 #endif
11773
11774 int
11775 main ()
11776 {
11777 return $ac_func ();
11778 ;
11779 return 0;
11780 }
11781 _ACEOF
11782 rm -f conftest.$ac_objext conftest$ac_exeext
11783 if { (ac_try="$ac_link"
11784 case "(($ac_try" in
11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786 *) ac_try_echo=$ac_try;;
11787 esac
11788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11789 $as_echo "$ac_try_echo") >&5
11790 (eval "$ac_link") 2>conftest.er1
11791 ac_status=$?
11792 grep -v '^ *+' conftest.er1 >conftest.err
11793 rm -f conftest.er1
11794 cat conftest.err >&5
11795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } && {
11797 test -z "$ac_c_werror_flag" ||
11798 test ! -s conftest.err
11799 } && test -s conftest$ac_exeext && {
11800 test "$cross_compiling" = yes ||
11801 $as_test_x conftest$ac_exeext
11802 }; then
11803 eval "$as_ac_var=yes"
11804 else
11805 $as_echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.$ac_ext >&5
11807
11808 eval "$as_ac_var=no"
11809 fi
11810
11811 rm -rf conftest.dSYM
11812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11813 conftest$ac_exeext conftest.$ac_ext
11814 fi
11815 ac_res=`eval 'as_val=${'$as_ac_var'}
11816 $as_echo "$as_val"'`
11817 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11818 $as_echo "$ac_res" >&6; }
11819 if test `eval 'as_val=${'$as_ac_var'}
11820 $as_echo "$as_val"'` = yes; then
11821 cat >>confdefs.h <<_ACEOF
11822 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11823 _ACEOF
11824 HAVE_GTK_MULTIDISPLAY=yes
11825 fi
11826 done
11827
11828 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11829
11830 cat >>confdefs.h <<\_ACEOF
11831 #define HAVE_GTK_MULTIDISPLAY 1
11832 _ACEOF
11833
11834 fi
11835
11836 HAVE_GTK_FILE_SELECTION=no
11837 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11838 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11839 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11840 $as_echo_n "(cached) " >&6
11841 else
11842 cat >conftest.$ac_ext <<_ACEOF
11843 /* confdefs.h. */
11844 _ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11848 $ac_includes_default
11849 #include <gtk/gtk.h>
11850
11851 int
11852 main ()
11853 {
11854 #ifndef GTK_TYPE_FILE_SELECTION
11855 (void) GTK_TYPE_FILE_SELECTION;
11856 #endif
11857
11858 ;
11859 return 0;
11860 }
11861 _ACEOF
11862 rm -f conftest.$ac_objext
11863 if { (ac_try="$ac_compile"
11864 case "(($ac_try" in
11865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11866 *) ac_try_echo=$ac_try;;
11867 esac
11868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11869 $as_echo "$ac_try_echo") >&5
11870 (eval "$ac_compile") 2>conftest.er1
11871 ac_status=$?
11872 grep -v '^ *+' conftest.er1 >conftest.err
11873 rm -f conftest.er1
11874 cat conftest.err >&5
11875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } && {
11877 test -z "$ac_c_werror_flag" ||
11878 test ! -s conftest.err
11879 } && test -s conftest.$ac_objext; then
11880 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11881 else
11882 $as_echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11884
11885 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11886 fi
11887
11888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11889 fi
11890 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11891 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11892 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11893 HAVE_GTK_FILE_SELECTION=yes
11894 else
11895 HAVE_GTK_FILE_SELECTION=no
11896 fi
11897
11898 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11899
11900 for ac_func in gtk_file_selection_new
11901 do
11902 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11903 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11904 $as_echo_n "checking for $ac_func... " >&6; }
11905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11906 $as_echo_n "(cached) " >&6
11907 else
11908 cat >conftest.$ac_ext <<_ACEOF
11909 /* confdefs.h. */
11910 _ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h. */
11914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11916 #define $ac_func innocuous_$ac_func
11917
11918 /* System header to define __stub macros and hopefully few prototypes,
11919 which can conflict with char $ac_func (); below.
11920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11921 <limits.h> exists even on freestanding compilers. */
11922
11923 #ifdef __STDC__
11924 # include <limits.h>
11925 #else
11926 # include <assert.h>
11927 #endif
11928
11929 #undef $ac_func
11930
11931 /* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
11934 #ifdef __cplusplus
11935 extern "C"
11936 #endif
11937 char $ac_func ();
11938 /* The GNU C library defines this for functions which it implements
11939 to always fail with ENOSYS. Some functions are actually named
11940 something starting with __ and the normal name is an alias. */
11941 #if defined __stub_$ac_func || defined __stub___$ac_func
11942 choke me
11943 #endif
11944
11945 int
11946 main ()
11947 {
11948 return $ac_func ();
11949 ;
11950 return 0;
11951 }
11952 _ACEOF
11953 rm -f conftest.$ac_objext conftest$ac_exeext
11954 if { (ac_try="$ac_link"
11955 case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11958 esac
11959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11960 $as_echo "$ac_try_echo") >&5
11961 (eval "$ac_link") 2>conftest.er1
11962 ac_status=$?
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
11966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } && {
11968 test -z "$ac_c_werror_flag" ||
11969 test ! -s conftest.err
11970 } && test -s conftest$ac_exeext && {
11971 test "$cross_compiling" = yes ||
11972 $as_test_x conftest$ac_exeext
11973 }; then
11974 eval "$as_ac_var=yes"
11975 else
11976 $as_echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.$ac_ext >&5
11978
11979 eval "$as_ac_var=no"
11980 fi
11981
11982 rm -rf conftest.dSYM
11983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11984 conftest$ac_exeext conftest.$ac_ext
11985 fi
11986 ac_res=`eval 'as_val=${'$as_ac_var'}
11987 $as_echo "$as_val"'`
11988 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11989 $as_echo "$ac_res" >&6; }
11990 if test `eval 'as_val=${'$as_ac_var'}
11991 $as_echo "$as_val"'` = yes; then
11992 cat >>confdefs.h <<_ACEOF
11993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11994 _ACEOF
11995 HAVE_GTK_FILE_SELECTION=yes
11996 else
11997 HAVE_GTK_FILE_SELECTION=no
11998 fi
11999 done
12000
12001 fi
12002
12003 HAVE_GTK_FILE_CHOOSER=no
12004 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12005 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12006 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12007 $as_echo_n "(cached) " >&6
12008 else
12009 cat >conftest.$ac_ext <<_ACEOF
12010 /* confdefs.h. */
12011 _ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12015 $ac_includes_default
12016 #include <gtk/gtk.h>
12017
12018 int
12019 main ()
12020 {
12021 #ifndef GTK_TYPE_FILE_CHOOSER
12022 (void) GTK_TYPE_FILE_CHOOSER;
12023 #endif
12024
12025 ;
12026 return 0;
12027 }
12028 _ACEOF
12029 rm -f conftest.$ac_objext
12030 if { (ac_try="$ac_compile"
12031 case "(($ac_try" in
12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033 *) ac_try_echo=$ac_try;;
12034 esac
12035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12036 $as_echo "$ac_try_echo") >&5
12037 (eval "$ac_compile") 2>conftest.er1
12038 ac_status=$?
12039 grep -v '^ *+' conftest.er1 >conftest.err
12040 rm -f conftest.er1
12041 cat conftest.err >&5
12042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } && {
12044 test -z "$ac_c_werror_flag" ||
12045 test ! -s conftest.err
12046 } && test -s conftest.$ac_objext; then
12047 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12048 else
12049 $as_echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12051
12052 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12053 fi
12054
12055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12056 fi
12057 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12058 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12059 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12060 HAVE_GTK_FILE_CHOOSER=yes
12061 else
12062 HAVE_GTK_FILE_CHOOSER=no
12063 fi
12064
12065 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12066
12067 for ac_func in gtk_file_chooser_dialog_new
12068 do
12069 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12070 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12071 $as_echo_n "checking for $ac_func... " >&6; }
12072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12073 $as_echo_n "(cached) " >&6
12074 else
12075 cat >conftest.$ac_ext <<_ACEOF
12076 /* confdefs.h. */
12077 _ACEOF
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h. */
12081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12083 #define $ac_func innocuous_$ac_func
12084
12085 /* System header to define __stub macros and hopefully few prototypes,
12086 which can conflict with char $ac_func (); below.
12087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12088 <limits.h> exists even on freestanding compilers. */
12089
12090 #ifdef __STDC__
12091 # include <limits.h>
12092 #else
12093 # include <assert.h>
12094 #endif
12095
12096 #undef $ac_func
12097
12098 /* Override any GCC internal prototype to avoid an error.
12099 Use char because int might match the return type of a GCC
12100 builtin and then its argument prototype would still apply. */
12101 #ifdef __cplusplus
12102 extern "C"
12103 #endif
12104 char $ac_func ();
12105 /* The GNU C library defines this for functions which it implements
12106 to always fail with ENOSYS. Some functions are actually named
12107 something starting with __ and the normal name is an alias. */
12108 #if defined __stub_$ac_func || defined __stub___$ac_func
12109 choke me
12110 #endif
12111
12112 int
12113 main ()
12114 {
12115 return $ac_func ();
12116 ;
12117 return 0;
12118 }
12119 _ACEOF
12120 rm -f conftest.$ac_objext conftest$ac_exeext
12121 if { (ac_try="$ac_link"
12122 case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12125 esac
12126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12127 $as_echo "$ac_try_echo") >&5
12128 (eval "$ac_link") 2>conftest.er1
12129 ac_status=$?
12130 grep -v '^ *+' conftest.er1 >conftest.err
12131 rm -f conftest.er1
12132 cat conftest.err >&5
12133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } && {
12135 test -z "$ac_c_werror_flag" ||
12136 test ! -s conftest.err
12137 } && test -s conftest$ac_exeext && {
12138 test "$cross_compiling" = yes ||
12139 $as_test_x conftest$ac_exeext
12140 }; then
12141 eval "$as_ac_var=yes"
12142 else
12143 $as_echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12145
12146 eval "$as_ac_var=no"
12147 fi
12148
12149 rm -rf conftest.dSYM
12150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12151 conftest$ac_exeext conftest.$ac_ext
12152 fi
12153 ac_res=`eval 'as_val=${'$as_ac_var'}
12154 $as_echo "$as_val"'`
12155 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12156 $as_echo "$ac_res" >&6; }
12157 if test `eval 'as_val=${'$as_ac_var'}
12158 $as_echo "$as_val"'` = yes; then
12159 cat >>confdefs.h <<_ACEOF
12160 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12161 _ACEOF
12162 HAVE_GTK_FILE_CHOOSER=yes
12163 else
12164 HAVE_GTK_FILE_CHOOSER=no
12165 fi
12166 done
12167
12168 fi
12169
12170 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12171 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12172
12173 cat >>confdefs.h <<\_ACEOF
12174 #define HAVE_GTK_FILE_BOTH 1
12175 _ACEOF
12176
12177 fi
12178
12179 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12180 HAVE_GTK_AND_PTHREAD=no
12181
12182 for ac_header in pthread.h
12183 do
12184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12186 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12187 $as_echo_n "checking for $ac_header... " >&6; }
12188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12189 $as_echo_n "(cached) " >&6
12190 fi
12191 ac_res=`eval 'as_val=${'$as_ac_Header'}
12192 $as_echo "$as_val"'`
12193 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12194 $as_echo "$ac_res" >&6; }
12195 else
12196 # Is the header compilable?
12197 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12198 $as_echo_n "checking $ac_header usability... " >&6; }
12199 cat >conftest.$ac_ext <<_ACEOF
12200 /* confdefs.h. */
12201 _ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12205 $ac_includes_default
12206 #include <$ac_header>
12207 _ACEOF
12208 rm -f conftest.$ac_objext
12209 if { (ac_try="$ac_compile"
12210 case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12213 esac
12214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12215 $as_echo "$ac_try_echo") >&5
12216 (eval "$ac_compile") 2>conftest.er1
12217 ac_status=$?
12218 grep -v '^ *+' conftest.er1 >conftest.err
12219 rm -f conftest.er1
12220 cat conftest.err >&5
12221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } && {
12223 test -z "$ac_c_werror_flag" ||
12224 test ! -s conftest.err
12225 } && test -s conftest.$ac_objext; then
12226 ac_header_compiler=yes
12227 else
12228 $as_echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231 ac_header_compiler=no
12232 fi
12233
12234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12236 $as_echo "$ac_header_compiler" >&6; }
12237
12238 # Is the header present?
12239 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12240 $as_echo_n "checking $ac_header presence... " >&6; }
12241 cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h. */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247 #include <$ac_header>
12248 _ACEOF
12249 if { (ac_try="$ac_cpp conftest.$ac_ext"
12250 case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12253 esac
12254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12255 $as_echo "$ac_try_echo") >&5
12256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12257 ac_status=$?
12258 grep -v '^ *+' conftest.er1 >conftest.err
12259 rm -f conftest.er1
12260 cat conftest.err >&5
12261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } >/dev/null && {
12263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12264 test ! -s conftest.err
12265 }; then
12266 ac_header_preproc=yes
12267 else
12268 $as_echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.$ac_ext >&5
12270
12271 ac_header_preproc=no
12272 fi
12273
12274 rm -f conftest.err conftest.$ac_ext
12275 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12276 $as_echo "$ac_header_preproc" >&6; }
12277
12278 # So? What about this header?
12279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12280 yes:no: )
12281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12282 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12284 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12285 ac_header_preproc=yes
12286 ;;
12287 no:yes:* )
12288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12289 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12291 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12293 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12295 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12297 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12299 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12300
12301 ;;
12302 esac
12303 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12304 $as_echo_n "checking for $ac_header... " >&6; }
12305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12306 $as_echo_n "(cached) " >&6
12307 else
12308 eval "$as_ac_Header=\$ac_header_preproc"
12309 fi
12310 ac_res=`eval 'as_val=${'$as_ac_Header'}
12311 $as_echo "$as_val"'`
12312 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12313 $as_echo "$ac_res" >&6; }
12314
12315 fi
12316 if test `eval 'as_val=${'$as_ac_Header'}
12317 $as_echo "$as_val"'` = yes; then
12318 cat >>confdefs.h <<_ACEOF
12319 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12320 _ACEOF
12321
12322 fi
12323
12324 done
12325
12326 if test "$ac_cv_header_pthread_h"; then
12327 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12328 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12329 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12330 $as_echo_n "(cached) " >&6
12331 else
12332 ac_check_lib_save_LIBS=$LIBS
12333 LIBS="-lpthread $LIBS"
12334 cat >conftest.$ac_ext <<_ACEOF
12335 /* confdefs.h. */
12336 _ACEOF
12337 cat confdefs.h >>conftest.$ac_ext
12338 cat >>conftest.$ac_ext <<_ACEOF
12339 /* end confdefs.h. */
12340
12341 /* Override any GCC internal prototype to avoid an error.
12342 Use char because int might match the return type of a GCC
12343 builtin and then its argument prototype would still apply. */
12344 #ifdef __cplusplus
12345 extern "C"
12346 #endif
12347 char pthread_self ();
12348 int
12349 main ()
12350 {
12351 return pthread_self ();
12352 ;
12353 return 0;
12354 }
12355 _ACEOF
12356 rm -f conftest.$ac_objext conftest$ac_exeext
12357 if { (ac_try="$ac_link"
12358 case "(($ac_try" in
12359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360 *) ac_try_echo=$ac_try;;
12361 esac
12362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12363 $as_echo "$ac_try_echo") >&5
12364 (eval "$ac_link") 2>conftest.er1
12365 ac_status=$?
12366 grep -v '^ *+' conftest.er1 >conftest.err
12367 rm -f conftest.er1
12368 cat conftest.err >&5
12369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } && {
12371 test -z "$ac_c_werror_flag" ||
12372 test ! -s conftest.err
12373 } && test -s conftest$ac_exeext && {
12374 test "$cross_compiling" = yes ||
12375 $as_test_x conftest$ac_exeext
12376 }; then
12377 ac_cv_lib_pthread_pthread_self=yes
12378 else
12379 $as_echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381
12382 ac_cv_lib_pthread_pthread_self=no
12383 fi
12384
12385 rm -rf conftest.dSYM
12386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12387 conftest$ac_exeext conftest.$ac_ext
12388 LIBS=$ac_check_lib_save_LIBS
12389 fi
12390 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12391 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12392 if test $ac_cv_lib_pthread_pthread_self = yes; then
12393 HAVE_GTK_AND_PTHREAD=yes
12394 fi
12395
12396 fi
12397 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12398 case "${canonical}" in
12399 *-hpux*) ;;
12400 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12401 esac
12402
12403 cat >>confdefs.h <<\_ACEOF
12404 #define HAVE_GTK_AND_PTHREAD 1
12405 _ACEOF
12406
12407 fi
12408 fi
12409 fi
12410
12411 HAVE_DBUS=no
12412 if test "${with_dbus}" = "yes"; then
12413
12414 succeeded=no
12415
12416 # Extract the first word of "pkg-config", so it can be a program name with args.
12417 set dummy pkg-config; ac_word=$2
12418 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12419 $as_echo_n "checking for $ac_word... " >&6; }
12420 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12421 $as_echo_n "(cached) " >&6
12422 else
12423 case $PKG_CONFIG in
12424 [\\/]* | ?:[\\/]*)
12425 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12426 ;;
12427 *)
12428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429 for as_dir in $PATH
12430 do
12431 IFS=$as_save_IFS
12432 test -z "$as_dir" && as_dir=.
12433 for ac_exec_ext in '' $ac_executable_extensions; do
12434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12435 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12437 break 2
12438 fi
12439 done
12440 done
12441 IFS=$as_save_IFS
12442
12443 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12444 ;;
12445 esac
12446 fi
12447 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12448 if test -n "$PKG_CONFIG"; then
12449 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12450 $as_echo "$PKG_CONFIG" >&6; }
12451 else
12452 { $as_echo "$as_me:$LINENO: result: no" >&5
12453 $as_echo "no" >&6; }
12454 fi
12455
12456
12457
12458 if test "$PKG_CONFIG" = "no" ; then
12459 HAVE_DBUS=no
12460 else
12461 PKG_CONFIG_MIN_VERSION=0.9.0
12462 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12463 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12464 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12465
12466 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12467 { $as_echo "$as_me:$LINENO: result: yes" >&5
12468 $as_echo "yes" >&6; }
12469 succeeded=yes
12470
12471 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12472 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12473 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12474 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12475 $as_echo "$DBUS_CFLAGS" >&6; }
12476
12477 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12478 $as_echo_n "checking DBUS_LIBS... " >&6; }
12479 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12480 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12481 $as_echo "$DBUS_LIBS" >&6; }
12482 else
12483 { $as_echo "$as_me:$LINENO: result: no" >&5
12484 $as_echo "no" >&6; }
12485 DBUS_CFLAGS=""
12486 DBUS_LIBS=""
12487 ## If we have a custom action on failure, don't print errors, but
12488 ## do set a variable so people can do so.
12489 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12490
12491 fi
12492
12493
12494
12495 else
12496 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12497 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12498 fi
12499 fi
12500
12501 if test $succeeded = yes; then
12502 HAVE_DBUS=yes
12503 else
12504 HAVE_DBUS=no
12505 fi
12506
12507 if test "$HAVE_DBUS" = yes; then
12508 LIBS="$LIBS $DBUS_LIBS"
12509
12510 cat >>confdefs.h <<\_ACEOF
12511 #define HAVE_DBUS 1
12512 _ACEOF
12513
12514
12515 for ac_func in dbus_watch_get_unix_fd
12516 do
12517 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12518 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12519 $as_echo_n "checking for $ac_func... " >&6; }
12520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12521 $as_echo_n "(cached) " >&6
12522 else
12523 cat >conftest.$ac_ext <<_ACEOF
12524 /* confdefs.h. */
12525 _ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12531 #define $ac_func innocuous_$ac_func
12532
12533 /* System header to define __stub macros and hopefully few prototypes,
12534 which can conflict with char $ac_func (); below.
12535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12536 <limits.h> exists even on freestanding compilers. */
12537
12538 #ifdef __STDC__
12539 # include <limits.h>
12540 #else
12541 # include <assert.h>
12542 #endif
12543
12544 #undef $ac_func
12545
12546 /* Override any GCC internal prototype to avoid an error.
12547 Use char because int might match the return type of a GCC
12548 builtin and then its argument prototype would still apply. */
12549 #ifdef __cplusplus
12550 extern "C"
12551 #endif
12552 char $ac_func ();
12553 /* The GNU C library defines this for functions which it implements
12554 to always fail with ENOSYS. Some functions are actually named
12555 something starting with __ and the normal name is an alias. */
12556 #if defined __stub_$ac_func || defined __stub___$ac_func
12557 choke me
12558 #endif
12559
12560 int
12561 main ()
12562 {
12563 return $ac_func ();
12564 ;
12565 return 0;
12566 }
12567 _ACEOF
12568 rm -f conftest.$ac_objext conftest$ac_exeext
12569 if { (ac_try="$ac_link"
12570 case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12573 esac
12574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12575 $as_echo "$ac_try_echo") >&5
12576 (eval "$ac_link") 2>conftest.er1
12577 ac_status=$?
12578 grep -v '^ *+' conftest.er1 >conftest.err
12579 rm -f conftest.er1
12580 cat conftest.err >&5
12581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } && {
12583 test -z "$ac_c_werror_flag" ||
12584 test ! -s conftest.err
12585 } && test -s conftest$ac_exeext && {
12586 test "$cross_compiling" = yes ||
12587 $as_test_x conftest$ac_exeext
12588 }; then
12589 eval "$as_ac_var=yes"
12590 else
12591 $as_echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12593
12594 eval "$as_ac_var=no"
12595 fi
12596
12597 rm -rf conftest.dSYM
12598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12599 conftest$ac_exeext conftest.$ac_ext
12600 fi
12601 ac_res=`eval 'as_val=${'$as_ac_var'}
12602 $as_echo "$as_val"'`
12603 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12604 $as_echo "$ac_res" >&6; }
12605 if test `eval 'as_val=${'$as_ac_var'}
12606 $as_echo "$as_val"'` = yes; then
12607 cat >>confdefs.h <<_ACEOF
12608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12609 _ACEOF
12610
12611 fi
12612 done
12613
12614 fi
12615 fi
12616
12617 HAVE_GCONF=no
12618 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12619
12620 succeeded=no
12621
12622 # Extract the first word of "pkg-config", so it can be a program name with args.
12623 set dummy pkg-config; ac_word=$2
12624 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12625 $as_echo_n "checking for $ac_word... " >&6; }
12626 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12627 $as_echo_n "(cached) " >&6
12628 else
12629 case $PKG_CONFIG in
12630 [\\/]* | ?:[\\/]*)
12631 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12632 ;;
12633 *)
12634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12635 for as_dir in $PATH
12636 do
12637 IFS=$as_save_IFS
12638 test -z "$as_dir" && as_dir=.
12639 for ac_exec_ext in '' $ac_executable_extensions; do
12640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12641 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12642 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12643 break 2
12644 fi
12645 done
12646 done
12647 IFS=$as_save_IFS
12648
12649 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12650 ;;
12651 esac
12652 fi
12653 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12654 if test -n "$PKG_CONFIG"; then
12655 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12656 $as_echo "$PKG_CONFIG" >&6; }
12657 else
12658 { $as_echo "$as_me:$LINENO: result: no" >&5
12659 $as_echo "no" >&6; }
12660 fi
12661
12662
12663
12664 if test "$PKG_CONFIG" = "no" ; then
12665 HAVE_GCONF=no
12666 else
12667 PKG_CONFIG_MIN_VERSION=0.9.0
12668 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12669 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12670 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12671
12672 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12673 { $as_echo "$as_me:$LINENO: result: yes" >&5
12674 $as_echo "yes" >&6; }
12675 succeeded=yes
12676
12677 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12678 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12679 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12680 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12681 $as_echo "$GCONF_CFLAGS" >&6; }
12682
12683 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12684 $as_echo_n "checking GCONF_LIBS... " >&6; }
12685 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12686 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12687 $as_echo "$GCONF_LIBS" >&6; }
12688 else
12689 { $as_echo "$as_me:$LINENO: result: no" >&5
12690 $as_echo "no" >&6; }
12691 GCONF_CFLAGS=""
12692 GCONF_LIBS=""
12693 ## If we have a custom action on failure, don't print errors, but
12694 ## do set a variable so people can do so.
12695 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12696
12697 fi
12698
12699
12700
12701 else
12702 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12703 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12704 fi
12705 fi
12706
12707 if test $succeeded = yes; then
12708 HAVE_GCONF=yes
12709 else
12710 HAVE_GCONF=no
12711 fi
12712
12713 if test "$HAVE_GCONF" = yes; then
12714
12715 cat >>confdefs.h <<\_ACEOF
12716 #define HAVE_GCONF 1
12717 _ACEOF
12718
12719 fi
12720 fi
12721
12722 HAVE_LIBSELINUX=no
12723 LIBSELINUX_LIBS=
12724 if test "${with_selinux}" = "yes"; then
12725 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
12726 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12727 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
12728 $as_echo_n "(cached) " >&6
12729 else
12730 ac_check_lib_save_LIBS=$LIBS
12731 LIBS="-lselinux $LIBS"
12732 cat >conftest.$ac_ext <<_ACEOF
12733 /* confdefs.h. */
12734 _ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h. */
12738
12739 /* Override any GCC internal prototype to avoid an error.
12740 Use char because int might match the return type of a GCC
12741 builtin and then its argument prototype would still apply. */
12742 #ifdef __cplusplus
12743 extern "C"
12744 #endif
12745 char lgetfilecon ();
12746 int
12747 main ()
12748 {
12749 return lgetfilecon ();
12750 ;
12751 return 0;
12752 }
12753 _ACEOF
12754 rm -f conftest.$ac_objext conftest$ac_exeext
12755 if { (ac_try="$ac_link"
12756 case "(($ac_try" in
12757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758 *) ac_try_echo=$ac_try;;
12759 esac
12760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12761 $as_echo "$ac_try_echo") >&5
12762 (eval "$ac_link") 2>conftest.er1
12763 ac_status=$?
12764 grep -v '^ *+' conftest.er1 >conftest.err
12765 rm -f conftest.er1
12766 cat conftest.err >&5
12767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); } && {
12769 test -z "$ac_c_werror_flag" ||
12770 test ! -s conftest.err
12771 } && test -s conftest$ac_exeext && {
12772 test "$cross_compiling" = yes ||
12773 $as_test_x conftest$ac_exeext
12774 }; then
12775 ac_cv_lib_selinux_lgetfilecon=yes
12776 else
12777 $as_echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12779
12780 ac_cv_lib_selinux_lgetfilecon=no
12781 fi
12782
12783 rm -rf conftest.dSYM
12784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12785 conftest$ac_exeext conftest.$ac_ext
12786 LIBS=$ac_check_lib_save_LIBS
12787 fi
12788 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12789 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12790 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
12791 HAVE_LIBSELINUX=yes
12792 else
12793 HAVE_LIBSELINUX=no
12794 fi
12795
12796 if test "$HAVE_LIBSELINUX" = yes; then
12797
12798 cat >>confdefs.h <<\_ACEOF
12799 #define HAVE_LIBSELINUX 1
12800 _ACEOF
12801
12802 LIBSELINUX_LIBS=-lselinux
12803 fi
12804 fi
12805
12806
12807 HAVE_XAW3D=no
12808 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12809 if test "$with_xaw3d" != no; then
12810 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12811 $as_echo_n "checking for xaw3d... " >&6; }
12812 if test "${emacs_cv_xaw3d+set}" = set; then
12813 $as_echo_n "(cached) " >&6
12814 else
12815 cat >conftest.$ac_ext <<_ACEOF
12816 /* confdefs.h. */
12817 _ACEOF
12818 cat confdefs.h >>conftest.$ac_ext
12819 cat >>conftest.$ac_ext <<_ACEOF
12820 /* end confdefs.h. */
12821
12822 #include <X11/Intrinsic.h>
12823 #include <X11/Xaw3d/Simple.h>
12824 int
12825 main ()
12826 {
12827
12828 ;
12829 return 0;
12830 }
12831 _ACEOF
12832 rm -f conftest.$ac_objext conftest$ac_exeext
12833 if { (ac_try="$ac_link"
12834 case "(($ac_try" in
12835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836 *) ac_try_echo=$ac_try;;
12837 esac
12838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12839 $as_echo "$ac_try_echo") >&5
12840 (eval "$ac_link") 2>conftest.er1
12841 ac_status=$?
12842 grep -v '^ *+' conftest.er1 >conftest.err
12843 rm -f conftest.er1
12844 cat conftest.err >&5
12845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } && {
12847 test -z "$ac_c_werror_flag" ||
12848 test ! -s conftest.err
12849 } && test -s conftest$ac_exeext && {
12850 test "$cross_compiling" = yes ||
12851 $as_test_x conftest$ac_exeext
12852 }; then
12853 emacs_cv_xaw3d=yes
12854 else
12855 $as_echo "$as_me: failed program was:" >&5
12856 sed 's/^/| /' conftest.$ac_ext >&5
12857
12858 emacs_cv_xaw3d=no
12859 fi
12860
12861 rm -rf conftest.dSYM
12862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12863 conftest$ac_exeext conftest.$ac_ext
12864 fi
12865
12866 else
12867 emacs_cv_xaw3d=no
12868 fi
12869 if test $emacs_cv_xaw3d = yes; then
12870 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12871 $as_echo "yes; using Lucid toolkit" >&6; }
12872 USE_X_TOOLKIT=LUCID
12873 HAVE_XAW3D=yes
12874
12875 cat >>confdefs.h <<\_ACEOF
12876 #define HAVE_XAW3D 1
12877 _ACEOF
12878
12879 else
12880 { $as_echo "$as_me:$LINENO: result: no" >&5
12881 $as_echo "no" >&6; }
12882 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12883 $as_echo_n "checking for libXaw... " >&6; }
12884 if test "${emacs_cv_xaw+set}" = set; then
12885 $as_echo_n "(cached) " >&6
12886 else
12887 cat >conftest.$ac_ext <<_ACEOF
12888 /* confdefs.h. */
12889 _ACEOF
12890 cat confdefs.h >>conftest.$ac_ext
12891 cat >>conftest.$ac_ext <<_ACEOF
12892 /* end confdefs.h. */
12893
12894 #include <X11/Intrinsic.h>
12895 #include <X11/Xaw/Simple.h>
12896 int
12897 main ()
12898 {
12899
12900 ;
12901 return 0;
12902 }
12903 _ACEOF
12904 rm -f conftest.$ac_objext conftest$ac_exeext
12905 if { (ac_try="$ac_link"
12906 case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12909 esac
12910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12911 $as_echo "$ac_try_echo") >&5
12912 (eval "$ac_link") 2>conftest.er1
12913 ac_status=$?
12914 grep -v '^ *+' conftest.er1 >conftest.err
12915 rm -f conftest.er1
12916 cat conftest.err >&5
12917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } && {
12919 test -z "$ac_c_werror_flag" ||
12920 test ! -s conftest.err
12921 } && test -s conftest$ac_exeext && {
12922 test "$cross_compiling" = yes ||
12923 $as_test_x conftest$ac_exeext
12924 }; then
12925 emacs_cv_xaw=yes
12926 else
12927 $as_echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12929
12930 emacs_cv_xaw=no
12931 fi
12932
12933 rm -rf conftest.dSYM
12934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12935 conftest$ac_exeext conftest.$ac_ext
12936 fi
12937
12938 if test $emacs_cv_xaw = yes; then
12939 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12940 $as_echo "yes; using Lucid toolkit" >&6; }
12941 USE_X_TOOLKIT=LUCID
12942 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12943 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12944 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12945 { (exit 1); exit 1; }; }
12946 else
12947 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12948 $as_echo "no; do not use toolkit by default" >&6; }
12949 USE_X_TOOLKIT=none
12950 fi
12951 fi
12952 fi
12953
12954 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12955
12956 if test "${USE_X_TOOLKIT}" != "none"; then
12957 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12958 $as_echo_n "checking X11 toolkit version... " >&6; }
12959 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12960 $as_echo_n "(cached) " >&6
12961 else
12962 cat >conftest.$ac_ext <<_ACEOF
12963 /* confdefs.h. */
12964 _ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h. */
12968 #include <X11/Intrinsic.h>
12969 int
12970 main ()
12971 {
12972 #if XtSpecificationRelease < 6
12973 fail;
12974 #endif
12975
12976 ;
12977 return 0;
12978 }
12979 _ACEOF
12980 rm -f conftest.$ac_objext conftest$ac_exeext
12981 if { (ac_try="$ac_link"
12982 case "(($ac_try" in
12983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984 *) ac_try_echo=$ac_try;;
12985 esac
12986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12987 $as_echo "$ac_try_echo") >&5
12988 (eval "$ac_link") 2>conftest.er1
12989 ac_status=$?
12990 grep -v '^ *+' conftest.er1 >conftest.err
12991 rm -f conftest.er1
12992 cat conftest.err >&5
12993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); } && {
12995 test -z "$ac_c_werror_flag" ||
12996 test ! -s conftest.err
12997 } && test -s conftest$ac_exeext && {
12998 test "$cross_compiling" = yes ||
12999 $as_test_x conftest$ac_exeext
13000 }; then
13001 emacs_cv_x11_toolkit_version_6=yes
13002 else
13003 $as_echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13005
13006 emacs_cv_x11_toolkit_version_6=no
13007 fi
13008
13009 rm -rf conftest.dSYM
13010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13011 conftest$ac_exeext conftest.$ac_ext
13012 fi
13013
13014 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13015 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13016 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13017 $as_echo "6 or newer" >&6; }
13018
13019 cat >>confdefs.h <<\_ACEOF
13020 #define HAVE_X11XTR6 1
13021 _ACEOF
13022
13023 else
13024 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13025 $as_echo "before 6" >&6; }
13026 fi
13027
13028 OLDLIBS="$LIBS"
13029 if test x$HAVE_X11XTR6 = xyes; then
13030 LIBS="-lXt -lSM -lICE $LIBS"
13031 else
13032 LIBS="-lXt $LIBS"
13033 fi
13034
13035 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13036 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13037 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13038 $as_echo_n "(cached) " >&6
13039 else
13040 ac_check_lib_save_LIBS=$LIBS
13041 LIBS="-lXmu $LIBS"
13042 cat >conftest.$ac_ext <<_ACEOF
13043 /* confdefs.h. */
13044 _ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13048
13049 /* Override any GCC internal prototype to avoid an error.
13050 Use char because int might match the return type of a GCC
13051 builtin and then its argument prototype would still apply. */
13052 #ifdef __cplusplus
13053 extern "C"
13054 #endif
13055 char XmuConvertStandardSelection ();
13056 int
13057 main ()
13058 {
13059 return XmuConvertStandardSelection ();
13060 ;
13061 return 0;
13062 }
13063 _ACEOF
13064 rm -f conftest.$ac_objext conftest$ac_exeext
13065 if { (ac_try="$ac_link"
13066 case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13069 esac
13070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13071 $as_echo "$ac_try_echo") >&5
13072 (eval "$ac_link") 2>conftest.er1
13073 ac_status=$?
13074 grep -v '^ *+' conftest.er1 >conftest.err
13075 rm -f conftest.er1
13076 cat conftest.err >&5
13077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } && {
13079 test -z "$ac_c_werror_flag" ||
13080 test ! -s conftest.err
13081 } && test -s conftest$ac_exeext && {
13082 test "$cross_compiling" = yes ||
13083 $as_test_x conftest$ac_exeext
13084 }; then
13085 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13086 else
13087 $as_echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13089
13090 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13091 fi
13092
13093 rm -rf conftest.dSYM
13094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13095 conftest$ac_exeext conftest.$ac_ext
13096 LIBS=$ac_check_lib_save_LIBS
13097 fi
13098 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13099 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13100 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13101 cat >>confdefs.h <<_ACEOF
13102 #define HAVE_LIBXMU 1
13103 _ACEOF
13104
13105 LIBS="-lXmu $LIBS"
13106
13107 fi
13108
13109 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13110 fi
13111
13112 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13113 if test "${HAVE_X11}" = "yes"; then
13114 if test "${USE_X_TOOLKIT}" != "none"; then
13115
13116 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13117 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13118 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13119 $as_echo_n "(cached) " >&6
13120 else
13121 ac_check_lib_save_LIBS=$LIBS
13122 LIBS="-lXext $LIBS"
13123 cat >conftest.$ac_ext <<_ACEOF
13124 /* confdefs.h. */
13125 _ACEOF
13126 cat confdefs.h >>conftest.$ac_ext
13127 cat >>conftest.$ac_ext <<_ACEOF
13128 /* end confdefs.h. */
13129
13130 /* Override any GCC internal prototype to avoid an error.
13131 Use char because int might match the return type of a GCC
13132 builtin and then its argument prototype would still apply. */
13133 #ifdef __cplusplus
13134 extern "C"
13135 #endif
13136 char XShapeQueryExtension ();
13137 int
13138 main ()
13139 {
13140 return XShapeQueryExtension ();
13141 ;
13142 return 0;
13143 }
13144 _ACEOF
13145 rm -f conftest.$ac_objext conftest$ac_exeext
13146 if { (ac_try="$ac_link"
13147 case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13150 esac
13151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13152 $as_echo "$ac_try_echo") >&5
13153 (eval "$ac_link") 2>conftest.er1
13154 ac_status=$?
13155 grep -v '^ *+' conftest.er1 >conftest.err
13156 rm -f conftest.er1
13157 cat conftest.err >&5
13158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } && {
13160 test -z "$ac_c_werror_flag" ||
13161 test ! -s conftest.err
13162 } && test -s conftest$ac_exeext && {
13163 test "$cross_compiling" = yes ||
13164 $as_test_x conftest$ac_exeext
13165 }; then
13166 ac_cv_lib_Xext_XShapeQueryExtension=yes
13167 else
13168 $as_echo "$as_me: failed program was:" >&5
13169 sed 's/^/| /' conftest.$ac_ext >&5
13170
13171 ac_cv_lib_Xext_XShapeQueryExtension=no
13172 fi
13173
13174 rm -rf conftest.dSYM
13175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13176 conftest$ac_exeext conftest.$ac_ext
13177 LIBS=$ac_check_lib_save_LIBS
13178 fi
13179 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13180 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13181 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13182 cat >>confdefs.h <<_ACEOF
13183 #define HAVE_LIBXEXT 1
13184 _ACEOF
13185
13186 LIBS="-lXext $LIBS"
13187
13188 fi
13189
13190 fi
13191 fi
13192
13193 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13194 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13195 $as_echo_n "checking for Motif version 2.1... " >&6; }
13196 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13197 $as_echo_n "(cached) " >&6
13198 else
13199 cat >conftest.$ac_ext <<_ACEOF
13200 /* confdefs.h. */
13201 _ACEOF
13202 cat confdefs.h >>conftest.$ac_ext
13203 cat >>conftest.$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13205 #include <Xm/Xm.h>
13206 int
13207 main ()
13208 {
13209 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13210 int x = 5;
13211 #else
13212 Motif version prior to 2.1.
13213 #endif
13214 ;
13215 return 0;
13216 }
13217 _ACEOF
13218 rm -f conftest.$ac_objext
13219 if { (ac_try="$ac_compile"
13220 case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13223 esac
13224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13225 $as_echo "$ac_try_echo") >&5
13226 (eval "$ac_compile") 2>conftest.er1
13227 ac_status=$?
13228 grep -v '^ *+' conftest.er1 >conftest.err
13229 rm -f conftest.er1
13230 cat conftest.err >&5
13231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } && {
13233 test -z "$ac_c_werror_flag" ||
13234 test ! -s conftest.err
13235 } && test -s conftest.$ac_objext; then
13236 emacs_cv_motif_version_2_1=yes
13237 else
13238 $as_echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13240
13241 emacs_cv_motif_version_2_1=no
13242 fi
13243
13244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13245 fi
13246 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13247 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13248 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13249 if test $emacs_cv_motif_version_2_1 = yes; then
13250 HAVE_LIBXP=no
13251
13252 cat >>confdefs.h <<\_ACEOF
13253 #define HAVE_MOTIF_2_1 1
13254 _ACEOF
13255
13256 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13257 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13258 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13259 $as_echo_n "(cached) " >&6
13260 else
13261 ac_check_lib_save_LIBS=$LIBS
13262 LIBS="-lXp $LIBS"
13263 cat >conftest.$ac_ext <<_ACEOF
13264 /* confdefs.h. */
13265 _ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13269
13270 /* Override any GCC internal prototype to avoid an error.
13271 Use char because int might match the return type of a GCC
13272 builtin and then its argument prototype would still apply. */
13273 #ifdef __cplusplus
13274 extern "C"
13275 #endif
13276 char XpCreateContext ();
13277 int
13278 main ()
13279 {
13280 return XpCreateContext ();
13281 ;
13282 return 0;
13283 }
13284 _ACEOF
13285 rm -f conftest.$ac_objext conftest$ac_exeext
13286 if { (ac_try="$ac_link"
13287 case "(($ac_try" in
13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13290 esac
13291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13292 $as_echo "$ac_try_echo") >&5
13293 (eval "$ac_link") 2>conftest.er1
13294 ac_status=$?
13295 grep -v '^ *+' conftest.er1 >conftest.err
13296 rm -f conftest.er1
13297 cat conftest.err >&5
13298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } && {
13300 test -z "$ac_c_werror_flag" ||
13301 test ! -s conftest.err
13302 } && test -s conftest$ac_exeext && {
13303 test "$cross_compiling" = yes ||
13304 $as_test_x conftest$ac_exeext
13305 }; then
13306 ac_cv_lib_Xp_XpCreateContext=yes
13307 else
13308 $as_echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13310
13311 ac_cv_lib_Xp_XpCreateContext=no
13312 fi
13313
13314 rm -rf conftest.dSYM
13315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13316 conftest$ac_exeext conftest.$ac_ext
13317 LIBS=$ac_check_lib_save_LIBS
13318 fi
13319 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13320 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13321 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13322 HAVE_LIBXP=yes
13323 fi
13324
13325 if test ${HAVE_LIBXP} = yes; then
13326
13327 cat >>confdefs.h <<\_ACEOF
13328 #define HAVE_LIBXP 1
13329 _ACEOF
13330
13331 fi
13332 else
13333 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13334 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13335 if test "${emacs_cv_lesstif+set}" = set; then
13336 $as_echo_n "(cached) " >&6
13337 else
13338 # We put this in CFLAGS temporarily to precede other -I options
13339 # that might be in CFLAGS temporarily.
13340 # We put this in CPPFLAGS where it precedes the other -I options.
13341 OLD_CPPFLAGS=$CPPFLAGS
13342 OLD_CFLAGS=$CFLAGS
13343 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13344 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13345 cat >conftest.$ac_ext <<_ACEOF
13346 /* confdefs.h. */
13347 _ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h. */
13351 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13352 int
13353 main ()
13354 {
13355 int x = 5;
13356 ;
13357 return 0;
13358 }
13359 _ACEOF
13360 rm -f conftest.$ac_objext
13361 if { (ac_try="$ac_compile"
13362 case "(($ac_try" in
13363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13364 *) ac_try_echo=$ac_try;;
13365 esac
13366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13367 $as_echo "$ac_try_echo") >&5
13368 (eval "$ac_compile") 2>conftest.er1
13369 ac_status=$?
13370 grep -v '^ *+' conftest.er1 >conftest.err
13371 rm -f conftest.er1
13372 cat conftest.err >&5
13373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } && {
13375 test -z "$ac_c_werror_flag" ||
13376 test ! -s conftest.err
13377 } && test -s conftest.$ac_objext; then
13378 emacs_cv_lesstif=yes
13379 else
13380 $as_echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13382
13383 emacs_cv_lesstif=no
13384 fi
13385
13386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13387 fi
13388 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13389 $as_echo "$emacs_cv_lesstif" >&6; }
13390 if test $emacs_cv_lesstif = yes; then
13391 # Make sure this -I option remains in CPPFLAGS after it is set
13392 # back to REAL_CPPFLAGS.
13393 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13394 # have those other -I options anyway. Ultimately, having this
13395 # directory ultimately in CPPFLAGS will be enough.
13396 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13397 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13398 else
13399 CFLAGS=$OLD_CFLAGS
13400 CPPFLAGS=$OLD_CPPFLAGS
13401 fi
13402 fi
13403 fi
13404
13405
13406
13407 USE_TOOLKIT_SCROLL_BARS=no
13408 if test "${with_toolkit_scroll_bars}" != "no"; then
13409 if test "${USE_X_TOOLKIT}" != "none"; then
13410 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13411 cat >>confdefs.h <<\_ACEOF
13412 #define USE_TOOLKIT_SCROLL_BARS 1
13413 _ACEOF
13414
13415 HAVE_XAW3D=no
13416 USE_TOOLKIT_SCROLL_BARS=yes
13417 elif test "${HAVE_XAW3D}" = "yes"; then
13418 cat >>confdefs.h <<\_ACEOF
13419 #define USE_TOOLKIT_SCROLL_BARS 1
13420 _ACEOF
13421
13422 USE_TOOLKIT_SCROLL_BARS=yes
13423 fi
13424 elif test "${HAVE_GTK}" = "yes"; then
13425 cat >>confdefs.h <<\_ACEOF
13426 #define USE_TOOLKIT_SCROLL_BARS 1
13427 _ACEOF
13428
13429 USE_TOOLKIT_SCROLL_BARS=yes
13430 elif test "${HAVE_NS}" = "yes"; then
13431 cat >>confdefs.h <<\_ACEOF
13432 #define USE_TOOLKIT_SCROLL_BARS 1
13433 _ACEOF
13434
13435 USE_TOOLKIT_SCROLL_BARS=yes
13436 fi
13437 fi
13438
13439 cat >conftest.$ac_ext <<_ACEOF
13440 /* confdefs.h. */
13441 _ACEOF
13442 cat confdefs.h >>conftest.$ac_ext
13443 cat >>conftest.$ac_ext <<_ACEOF
13444 /* end confdefs.h. */
13445
13446 #include <X11/Xlib.h>
13447 #include <X11/Xresource.h>
13448 int
13449 main ()
13450 {
13451 XIMProc callback;
13452 ;
13453 return 0;
13454 }
13455 _ACEOF
13456 rm -f conftest.$ac_objext
13457 if { (ac_try="$ac_compile"
13458 case "(($ac_try" in
13459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13461 esac
13462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13463 $as_echo "$ac_try_echo") >&5
13464 (eval "$ac_compile") 2>conftest.er1
13465 ac_status=$?
13466 grep -v '^ *+' conftest.er1 >conftest.err
13467 rm -f conftest.er1
13468 cat conftest.err >&5
13469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } && {
13471 test -z "$ac_c_werror_flag" ||
13472 test ! -s conftest.err
13473 } && test -s conftest.$ac_objext; then
13474 HAVE_XIM=yes
13475
13476 cat >>confdefs.h <<\_ACEOF
13477 #define HAVE_XIM 1
13478 _ACEOF
13479
13480 else
13481 $as_echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13483
13484 HAVE_XIM=no
13485 fi
13486
13487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13488
13489
13490 if test "${with_xim}" != "no"; then
13491
13492 cat >>confdefs.h <<\_ACEOF
13493 #define USE_XIM 1
13494 _ACEOF
13495
13496 fi
13497
13498
13499 if test "${HAVE_XIM}" != "no"; then
13500 late_CFLAGS=$CFLAGS
13501 if test "$GCC" = yes; then
13502 CFLAGS="$CFLAGS --pedantic-errors"
13503 fi
13504 cat >conftest.$ac_ext <<_ACEOF
13505 /* confdefs.h. */
13506 _ACEOF
13507 cat confdefs.h >>conftest.$ac_ext
13508 cat >>conftest.$ac_ext <<_ACEOF
13509 /* end confdefs.h. */
13510
13511 #include <X11/Xlib.h>
13512 #include <X11/Xresource.h>
13513 int
13514 main ()
13515 {
13516 Display *display;
13517 XrmDatabase db;
13518 char *res_name;
13519 char *res_class;
13520 XIMProc callback;
13521 XPointer *client_data;
13522 #ifndef __GNUC__
13523 /* If we're not using GCC, it's probably not XFree86, and this is
13524 probably right, but we can't use something like --pedantic-errors. */
13525 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13526 char*, XIMProc, XPointer*);
13527 #endif
13528 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13529 client_data);
13530 ;
13531 return 0;
13532 }
13533 _ACEOF
13534 rm -f conftest.$ac_objext
13535 if { (ac_try="$ac_compile"
13536 case "(($ac_try" in
13537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13538 *) ac_try_echo=$ac_try;;
13539 esac
13540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13541 $as_echo "$ac_try_echo") >&5
13542 (eval "$ac_compile") 2>conftest.er1
13543 ac_status=$?
13544 grep -v '^ *+' conftest.er1 >conftest.err
13545 rm -f conftest.er1
13546 cat conftest.err >&5
13547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } && {
13549 test -z "$ac_c_werror_flag" ||
13550 test ! -s conftest.err
13551 } && test -s conftest.$ac_objext; then
13552 emacs_cv_arg6_star=yes
13553 else
13554 $as_echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13556
13557
13558 fi
13559
13560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13561
13562 if test "$emacs_cv_arg6_star" = yes; then
13563 cat >>confdefs.h <<\_ACEOF
13564 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13565 _ACEOF
13566
13567 else
13568 cat >>confdefs.h <<\_ACEOF
13569 #define XRegisterIMInstantiateCallback_arg6 XPointer
13570 _ACEOF
13571
13572 fi
13573 CFLAGS=$late_CFLAGS
13574 fi
13575
13576 ### Start of font-backend (under any platform) section.
13577 # (nothing here yet -- this is a placeholder)
13578 ### End of font-backend (under any platform) section.
13579
13580 ### Start of font-backend (under X11) section.
13581 if test "${HAVE_X11}" = "yes"; then
13582
13583 succeeded=no
13584
13585 # Extract the first word of "pkg-config", so it can be a program name with args.
13586 set dummy pkg-config; ac_word=$2
13587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13588 $as_echo_n "checking for $ac_word... " >&6; }
13589 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13590 $as_echo_n "(cached) " >&6
13591 else
13592 case $PKG_CONFIG in
13593 [\\/]* | ?:[\\/]*)
13594 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13595 ;;
13596 *)
13597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13598 for as_dir in $PATH
13599 do
13600 IFS=$as_save_IFS
13601 test -z "$as_dir" && as_dir=.
13602 for ac_exec_ext in '' $ac_executable_extensions; do
13603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13604 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13606 break 2
13607 fi
13608 done
13609 done
13610 IFS=$as_save_IFS
13611
13612 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13613 ;;
13614 esac
13615 fi
13616 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13617 if test -n "$PKG_CONFIG"; then
13618 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13619 $as_echo "$PKG_CONFIG" >&6; }
13620 else
13621 { $as_echo "$as_me:$LINENO: result: no" >&5
13622 $as_echo "no" >&6; }
13623 fi
13624
13625
13626
13627 if test "$PKG_CONFIG" = "no" ; then
13628 HAVE_FC=no
13629 else
13630 PKG_CONFIG_MIN_VERSION=0.9.0
13631 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13632 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13633 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13634
13635 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13636 { $as_echo "$as_me:$LINENO: result: yes" >&5
13637 $as_echo "yes" >&6; }
13638 succeeded=yes
13639
13640 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13641 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13642 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13643 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13644 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13645
13646 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13647 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13648 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13649 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13650 $as_echo "$FONTCONFIG_LIBS" >&6; }
13651 else
13652 { $as_echo "$as_me:$LINENO: result: no" >&5
13653 $as_echo "no" >&6; }
13654 FONTCONFIG_CFLAGS=""
13655 FONTCONFIG_LIBS=""
13656 ## If we have a custom action on failure, don't print errors, but
13657 ## do set a variable so people can do so.
13658 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13659
13660 fi
13661
13662
13663
13664 else
13665 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13666 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13667 fi
13668 fi
13669
13670 if test $succeeded = yes; then
13671 HAVE_FC=yes
13672 else
13673 HAVE_FC=no
13674 fi
13675
13676
13677 ## Use -lXft if available, unless `--with-xft=no'.
13678 HAVE_XFT=maybe
13679 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13680 with_xft="no";
13681 fi
13682 if test "x${with_xft}" != "xno"; then
13683
13684
13685 succeeded=no
13686
13687 # Extract the first word of "pkg-config", so it can be a program name with args.
13688 set dummy pkg-config; ac_word=$2
13689 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13690 $as_echo_n "checking for $ac_word... " >&6; }
13691 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13692 $as_echo_n "(cached) " >&6
13693 else
13694 case $PKG_CONFIG in
13695 [\\/]* | ?:[\\/]*)
13696 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13697 ;;
13698 *)
13699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13700 for as_dir in $PATH
13701 do
13702 IFS=$as_save_IFS
13703 test -z "$as_dir" && as_dir=.
13704 for ac_exec_ext in '' $ac_executable_extensions; do
13705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13706 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13708 break 2
13709 fi
13710 done
13711 done
13712 IFS=$as_save_IFS
13713
13714 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13715 ;;
13716 esac
13717 fi
13718 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13719 if test -n "$PKG_CONFIG"; then
13720 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13721 $as_echo "$PKG_CONFIG" >&6; }
13722 else
13723 { $as_echo "$as_me:$LINENO: result: no" >&5
13724 $as_echo "no" >&6; }
13725 fi
13726
13727
13728
13729 if test "$PKG_CONFIG" = "no" ; then
13730 HAVE_XFT=no
13731 else
13732 PKG_CONFIG_MIN_VERSION=0.9.0
13733 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13734 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13735 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13736
13737 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13738 { $as_echo "$as_me:$LINENO: result: yes" >&5
13739 $as_echo "yes" >&6; }
13740 succeeded=yes
13741
13742 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13743 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13744 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13745 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13746 $as_echo "$XFT_CFLAGS" >&6; }
13747
13748 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13749 $as_echo_n "checking XFT_LIBS... " >&6; }
13750 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13751 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13752 $as_echo "$XFT_LIBS" >&6; }
13753 else
13754 { $as_echo "$as_me:$LINENO: result: no" >&5
13755 $as_echo "no" >&6; }
13756 XFT_CFLAGS=""
13757 XFT_LIBS=""
13758 ## If we have a custom action on failure, don't print errors, but
13759 ## do set a variable so people can do so.
13760 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13761
13762 fi
13763
13764
13765
13766 else
13767 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13768 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13769 fi
13770 fi
13771
13772 if test $succeeded = yes; then
13773 :
13774 else
13775 HAVE_XFT=no
13776 fi
13777
13778 ## Because xftfont.c uses XRenderQueryExtension, we also
13779 ## need to link to -lXrender.
13780 HAVE_XRENDER=no
13781 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13782 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13783 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13784 $as_echo_n "(cached) " >&6
13785 else
13786 ac_check_lib_save_LIBS=$LIBS
13787 LIBS="-lXrender $LIBS"
13788 cat >conftest.$ac_ext <<_ACEOF
13789 /* confdefs.h. */
13790 _ACEOF
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h. */
13794
13795 /* Override any GCC internal prototype to avoid an error.
13796 Use char because int might match the return type of a GCC
13797 builtin and then its argument prototype would still apply. */
13798 #ifdef __cplusplus
13799 extern "C"
13800 #endif
13801 char XRenderQueryExtension ();
13802 int
13803 main ()
13804 {
13805 return XRenderQueryExtension ();
13806 ;
13807 return 0;
13808 }
13809 _ACEOF
13810 rm -f conftest.$ac_objext conftest$ac_exeext
13811 if { (ac_try="$ac_link"
13812 case "(($ac_try" in
13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814 *) ac_try_echo=$ac_try;;
13815 esac
13816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13817 $as_echo "$ac_try_echo") >&5
13818 (eval "$ac_link") 2>conftest.er1
13819 ac_status=$?
13820 grep -v '^ *+' conftest.er1 >conftest.err
13821 rm -f conftest.er1
13822 cat conftest.err >&5
13823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); } && {
13825 test -z "$ac_c_werror_flag" ||
13826 test ! -s conftest.err
13827 } && test -s conftest$ac_exeext && {
13828 test "$cross_compiling" = yes ||
13829 $as_test_x conftest$ac_exeext
13830 }; then
13831 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13832 else
13833 $as_echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.$ac_ext >&5
13835
13836 ac_cv_lib_Xrender_XRenderQueryExtension=no
13837 fi
13838
13839 rm -rf conftest.dSYM
13840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13841 conftest$ac_exeext conftest.$ac_ext
13842 LIBS=$ac_check_lib_save_LIBS
13843 fi
13844 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13845 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13846 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
13847 HAVE_XRENDER=yes
13848 fi
13849
13850 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13851 OLD_CPPFLAGS="$CPPFLAGS"
13852 OLD_CFLAGS="$CFLAGS"
13853 OLD_LIBS="$LIBS"
13854 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13855 CFLAGS="$CFLAGS $XFT_CFLAGS"
13856 XFT_LIBS="-lXrender $XFT_LIBS"
13857 LIBS="$XFT_LIBS $LIBS"
13858 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13859 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13860 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13861 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13862 $as_echo_n "(cached) " >&6
13863 fi
13864 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13865 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13866 else
13867 # Is the header compilable?
13868 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13869 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13870 cat >conftest.$ac_ext <<_ACEOF
13871 /* confdefs.h. */
13872 _ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13876 $ac_includes_default
13877 #include <X11/Xft/Xft.h>
13878 _ACEOF
13879 rm -f conftest.$ac_objext
13880 if { (ac_try="$ac_compile"
13881 case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13884 esac
13885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13886 $as_echo "$ac_try_echo") >&5
13887 (eval "$ac_compile") 2>conftest.er1
13888 ac_status=$?
13889 grep -v '^ *+' conftest.er1 >conftest.err
13890 rm -f conftest.er1
13891 cat conftest.err >&5
13892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } && {
13894 test -z "$ac_c_werror_flag" ||
13895 test ! -s conftest.err
13896 } && test -s conftest.$ac_objext; then
13897 ac_header_compiler=yes
13898 else
13899 $as_echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13901
13902 ac_header_compiler=no
13903 fi
13904
13905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13906 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13907 $as_echo "$ac_header_compiler" >&6; }
13908
13909 # Is the header present?
13910 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13911 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13912 cat >conftest.$ac_ext <<_ACEOF
13913 /* confdefs.h. */
13914 _ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h. */
13918 #include <X11/Xft/Xft.h>
13919 _ACEOF
13920 if { (ac_try="$ac_cpp conftest.$ac_ext"
13921 case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13924 esac
13925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13926 $as_echo "$ac_try_echo") >&5
13927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13928 ac_status=$?
13929 grep -v '^ *+' conftest.er1 >conftest.err
13930 rm -f conftest.er1
13931 cat conftest.err >&5
13932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } >/dev/null && {
13934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13935 test ! -s conftest.err
13936 }; then
13937 ac_header_preproc=yes
13938 else
13939 $as_echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13941
13942 ac_header_preproc=no
13943 fi
13944
13945 rm -f conftest.err conftest.$ac_ext
13946 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13947 $as_echo "$ac_header_preproc" >&6; }
13948
13949 # So? What about this header?
13950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13951 yes:no: )
13952 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13953 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13954 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13955 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13956 ac_header_preproc=yes
13957 ;;
13958 no:yes:* )
13959 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13960 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13961 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13962 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13963 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13964 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13965 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13966 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13967 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13968 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13969 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13970 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13971
13972 ;;
13973 esac
13974 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13975 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13976 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13977 $as_echo_n "(cached) " >&6
13978 else
13979 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13980 fi
13981 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13982 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13983
13984 fi
13985 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13986 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13987 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13988 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13989 $as_echo_n "(cached) " >&6
13990 else
13991 ac_check_lib_save_LIBS=$LIBS
13992 LIBS="-lXft $XFT_LIBS $LIBS"
13993 cat >conftest.$ac_ext <<_ACEOF
13994 /* confdefs.h. */
13995 _ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
13999
14000 /* Override any GCC internal prototype to avoid an error.
14001 Use char because int might match the return type of a GCC
14002 builtin and then its argument prototype would still apply. */
14003 #ifdef __cplusplus
14004 extern "C"
14005 #endif
14006 char XftFontOpen ();
14007 int
14008 main ()
14009 {
14010 return XftFontOpen ();
14011 ;
14012 return 0;
14013 }
14014 _ACEOF
14015 rm -f conftest.$ac_objext conftest$ac_exeext
14016 if { (ac_try="$ac_link"
14017 case "(($ac_try" in
14018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14019 *) ac_try_echo=$ac_try;;
14020 esac
14021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14022 $as_echo "$ac_try_echo") >&5
14023 (eval "$ac_link") 2>conftest.er1
14024 ac_status=$?
14025 grep -v '^ *+' conftest.er1 >conftest.err
14026 rm -f conftest.er1
14027 cat conftest.err >&5
14028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } && {
14030 test -z "$ac_c_werror_flag" ||
14031 test ! -s conftest.err
14032 } && test -s conftest$ac_exeext && {
14033 test "$cross_compiling" = yes ||
14034 $as_test_x conftest$ac_exeext
14035 }; then
14036 ac_cv_lib_Xft_XftFontOpen=yes
14037 else
14038 $as_echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14040
14041 ac_cv_lib_Xft_XftFontOpen=no
14042 fi
14043
14044 rm -rf conftest.dSYM
14045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14046 conftest$ac_exeext conftest.$ac_ext
14047 LIBS=$ac_check_lib_save_LIBS
14048 fi
14049 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14050 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14051 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14052 HAVE_XFT=yes
14053 fi
14054
14055 fi
14056
14057
14058
14059 if test "${HAVE_XFT}" = "yes"; then
14060
14061 cat >>confdefs.h <<\_ACEOF
14062 #define HAVE_XFT 1
14063 _ACEOF
14064
14065
14066 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14067 else
14068 CPPFLAGS="$OLD_CPPFLAGS"
14069 CFLAGS="$OLD_CFLAGS"
14070 LIBS="$OLD_LIBS"
14071 fi # "${HAVE_XFT}" = "yes"
14072 fi # "$HAVE_XFT" != no
14073 fi # "x${with_xft}" != "xno"
14074
14075 if test "$HAVE_XFT" != "yes"; then
14076 HAVE_XFT=no
14077 fi
14078
14079
14080 HAVE_FREETYPE=no
14081 ## We used to allow building with FreeType and without Xft.
14082 ## However, the ftx font backend driver is not in good shape.
14083 if test "${HAVE_XFT}" = "yes"; then
14084 HAVE_FREETYPE=yes
14085 FONTCONFIG_CFLAGS=
14086 FONTCONFIG_LIBS=
14087 fi
14088
14089 HAVE_LIBOTF=no
14090 if test "${HAVE_FREETYPE}" = "yes"; then
14091
14092 cat >>confdefs.h <<\_ACEOF
14093 #define HAVE_FREETYPE 1
14094 _ACEOF
14095
14096 if test "${with_libotf}" != "no"; then
14097
14098 succeeded=no
14099
14100 # Extract the first word of "pkg-config", so it can be a program name with args.
14101 set dummy pkg-config; ac_word=$2
14102 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14103 $as_echo_n "checking for $ac_word... " >&6; }
14104 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14105 $as_echo_n "(cached) " >&6
14106 else
14107 case $PKG_CONFIG in
14108 [\\/]* | ?:[\\/]*)
14109 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14110 ;;
14111 *)
14112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14113 for as_dir in $PATH
14114 do
14115 IFS=$as_save_IFS
14116 test -z "$as_dir" && as_dir=.
14117 for ac_exec_ext in '' $ac_executable_extensions; do
14118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14119 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14120 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14121 break 2
14122 fi
14123 done
14124 done
14125 IFS=$as_save_IFS
14126
14127 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14128 ;;
14129 esac
14130 fi
14131 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14132 if test -n "$PKG_CONFIG"; then
14133 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14134 $as_echo "$PKG_CONFIG" >&6; }
14135 else
14136 { $as_echo "$as_me:$LINENO: result: no" >&5
14137 $as_echo "no" >&6; }
14138 fi
14139
14140
14141
14142 if test "$PKG_CONFIG" = "no" ; then
14143 HAVE_LIBOTF=no
14144 else
14145 PKG_CONFIG_MIN_VERSION=0.9.0
14146 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14147 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14148 $as_echo_n "checking for libotf... " >&6; }
14149
14150 if $PKG_CONFIG --exists "libotf" 2>&5; then
14151 { $as_echo "$as_me:$LINENO: result: yes" >&5
14152 $as_echo "yes" >&6; }
14153 succeeded=yes
14154
14155 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14156 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14157 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14158 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14159 $as_echo "$LIBOTF_CFLAGS" >&6; }
14160
14161 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14162 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14163 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14164 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14165 $as_echo "$LIBOTF_LIBS" >&6; }
14166 else
14167 { $as_echo "$as_me:$LINENO: result: no" >&5
14168 $as_echo "no" >&6; }
14169 LIBOTF_CFLAGS=""
14170 LIBOTF_LIBS=""
14171 ## If we have a custom action on failure, don't print errors, but
14172 ## do set a variable so people can do so.
14173 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14174
14175 fi
14176
14177
14178
14179 else
14180 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14181 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14182 fi
14183 fi
14184
14185 if test $succeeded = yes; then
14186 HAVE_LIBOTF=yes
14187 else
14188 HAVE_LIBOTF=no
14189 fi
14190
14191 if test "$HAVE_LIBOTF" = "yes"; then
14192
14193 cat >>confdefs.h <<\_ACEOF
14194 #define HAVE_LIBOTF 1
14195 _ACEOF
14196
14197 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14198 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14199 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14200 $as_echo_n "(cached) " >&6
14201 else
14202 ac_check_lib_save_LIBS=$LIBS
14203 LIBS="-lotf $LIBS"
14204 cat >conftest.$ac_ext <<_ACEOF
14205 /* confdefs.h. */
14206 _ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14210
14211 /* Override any GCC internal prototype to avoid an error.
14212 Use char because int might match the return type of a GCC
14213 builtin and then its argument prototype would still apply. */
14214 #ifdef __cplusplus
14215 extern "C"
14216 #endif
14217 char OTF_get_variation_glyphs ();
14218 int
14219 main ()
14220 {
14221 return OTF_get_variation_glyphs ();
14222 ;
14223 return 0;
14224 }
14225 _ACEOF
14226 rm -f conftest.$ac_objext conftest$ac_exeext
14227 if { (ac_try="$ac_link"
14228 case "(($ac_try" in
14229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230 *) ac_try_echo=$ac_try;;
14231 esac
14232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14233 $as_echo "$ac_try_echo") >&5
14234 (eval "$ac_link") 2>conftest.er1
14235 ac_status=$?
14236 grep -v '^ *+' conftest.er1 >conftest.err
14237 rm -f conftest.er1
14238 cat conftest.err >&5
14239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } && {
14241 test -z "$ac_c_werror_flag" ||
14242 test ! -s conftest.err
14243 } && test -s conftest$ac_exeext && {
14244 test "$cross_compiling" = yes ||
14245 $as_test_x conftest$ac_exeext
14246 }; then
14247 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14248 else
14249 $as_echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14251
14252 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14253 fi
14254
14255 rm -rf conftest.dSYM
14256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14257 conftest$ac_exeext conftest.$ac_ext
14258 LIBS=$ac_check_lib_save_LIBS
14259 fi
14260 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14261 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14262 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14263 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14264 else
14265 HAVE_OTF_GET_VARIATION_GLYPHS=no
14266 fi
14267
14268 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14269
14270 cat >>confdefs.h <<\_ACEOF
14271 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14272 _ACEOF
14273
14274 fi
14275 fi
14276 fi
14277 fi
14278
14279 HAVE_M17N_FLT=no
14280 if test "${HAVE_LIBOTF}" = yes; then
14281 if test "${with_m17n_flt}" != "no"; then
14282
14283 succeeded=no
14284
14285 # Extract the first word of "pkg-config", so it can be a program name with args.
14286 set dummy pkg-config; ac_word=$2
14287 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14288 $as_echo_n "checking for $ac_word... " >&6; }
14289 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14290 $as_echo_n "(cached) " >&6
14291 else
14292 case $PKG_CONFIG in
14293 [\\/]* | ?:[\\/]*)
14294 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14295 ;;
14296 *)
14297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14298 for as_dir in $PATH
14299 do
14300 IFS=$as_save_IFS
14301 test -z "$as_dir" && as_dir=.
14302 for ac_exec_ext in '' $ac_executable_extensions; do
14303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14304 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14306 break 2
14307 fi
14308 done
14309 done
14310 IFS=$as_save_IFS
14311
14312 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14313 ;;
14314 esac
14315 fi
14316 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14317 if test -n "$PKG_CONFIG"; then
14318 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14319 $as_echo "$PKG_CONFIG" >&6; }
14320 else
14321 { $as_echo "$as_me:$LINENO: result: no" >&5
14322 $as_echo "no" >&6; }
14323 fi
14324
14325
14326
14327 if test "$PKG_CONFIG" = "no" ; then
14328 HAVE_M17N_FLT=no
14329 else
14330 PKG_CONFIG_MIN_VERSION=0.9.0
14331 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14332 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14333 $as_echo_n "checking for m17n-flt... " >&6; }
14334
14335 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14336 { $as_echo "$as_me:$LINENO: result: yes" >&5
14337 $as_echo "yes" >&6; }
14338 succeeded=yes
14339
14340 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14341 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14342 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14343 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14344 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14345
14346 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14347 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14348 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14349 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14350 $as_echo "$M17N_FLT_LIBS" >&6; }
14351 else
14352 { $as_echo "$as_me:$LINENO: result: no" >&5
14353 $as_echo "no" >&6; }
14354 M17N_FLT_CFLAGS=""
14355 M17N_FLT_LIBS=""
14356 ## If we have a custom action on failure, don't print errors, but
14357 ## do set a variable so people can do so.
14358 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14359
14360 fi
14361
14362
14363
14364 else
14365 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14366 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14367 fi
14368 fi
14369
14370 if test $succeeded = yes; then
14371 HAVE_M17N_FLT=yes
14372 else
14373 HAVE_M17N_FLT=no
14374 fi
14375
14376 if test "$HAVE_M17N_FLT" = "yes"; then
14377
14378 cat >>confdefs.h <<\_ACEOF
14379 #define HAVE_M17N_FLT 1
14380 _ACEOF
14381
14382 fi
14383 fi
14384 fi
14385 else
14386 HAVE_XFT=no
14387 HAVE_FREETYPE=no
14388 HAVE_LIBOTF=no
14389 HAVE_M17N_FLT=no
14390 fi
14391 ### End of font-backend (under X11) section.
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402 ### Use -lXpm if available, unless `--with-xpm=no'.
14403 HAVE_XPM=no
14404 LIBXPM=
14405 if test "${HAVE_X11}" = "yes"; then
14406 if test "${with_xpm}" != "no"; then
14407 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14408 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14409 $as_echo_n "checking for X11/xpm.h... " >&6; }
14410 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14411 $as_echo_n "(cached) " >&6
14412 fi
14413 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14414 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14415 else
14416 # Is the header compilable?
14417 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14418 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14419 cat >conftest.$ac_ext <<_ACEOF
14420 /* confdefs.h. */
14421 _ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h. */
14425 $ac_includes_default
14426 #include <X11/xpm.h>
14427 _ACEOF
14428 rm -f conftest.$ac_objext
14429 if { (ac_try="$ac_compile"
14430 case "(($ac_try" in
14431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14432 *) ac_try_echo=$ac_try;;
14433 esac
14434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14435 $as_echo "$ac_try_echo") >&5
14436 (eval "$ac_compile") 2>conftest.er1
14437 ac_status=$?
14438 grep -v '^ *+' conftest.er1 >conftest.err
14439 rm -f conftest.er1
14440 cat conftest.err >&5
14441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } && {
14443 test -z "$ac_c_werror_flag" ||
14444 test ! -s conftest.err
14445 } && test -s conftest.$ac_objext; then
14446 ac_header_compiler=yes
14447 else
14448 $as_echo "$as_me: failed program was:" >&5
14449 sed 's/^/| /' conftest.$ac_ext >&5
14450
14451 ac_header_compiler=no
14452 fi
14453
14454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14455 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14456 $as_echo "$ac_header_compiler" >&6; }
14457
14458 # Is the header present?
14459 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14460 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14461 cat >conftest.$ac_ext <<_ACEOF
14462 /* confdefs.h. */
14463 _ACEOF
14464 cat confdefs.h >>conftest.$ac_ext
14465 cat >>conftest.$ac_ext <<_ACEOF
14466 /* end confdefs.h. */
14467 #include <X11/xpm.h>
14468 _ACEOF
14469 if { (ac_try="$ac_cpp conftest.$ac_ext"
14470 case "(($ac_try" in
14471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14472 *) ac_try_echo=$ac_try;;
14473 esac
14474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14475 $as_echo "$ac_try_echo") >&5
14476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14477 ac_status=$?
14478 grep -v '^ *+' conftest.er1 >conftest.err
14479 rm -f conftest.er1
14480 cat conftest.err >&5
14481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } >/dev/null && {
14483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14484 test ! -s conftest.err
14485 }; then
14486 ac_header_preproc=yes
14487 else
14488 $as_echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14490
14491 ac_header_preproc=no
14492 fi
14493
14494 rm -f conftest.err conftest.$ac_ext
14495 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14496 $as_echo "$ac_header_preproc" >&6; }
14497
14498 # So? What about this header?
14499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14500 yes:no: )
14501 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14502 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14503 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14504 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14505 ac_header_preproc=yes
14506 ;;
14507 no:yes:* )
14508 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14509 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14510 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14511 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14512 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14513 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14514 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14515 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14516 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14517 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14518 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14519 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14520
14521 ;;
14522 esac
14523 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14524 $as_echo_n "checking for X11/xpm.h... " >&6; }
14525 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14526 $as_echo_n "(cached) " >&6
14527 else
14528 ac_cv_header_X11_xpm_h=$ac_header_preproc
14529 fi
14530 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14531 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14532
14533 fi
14534 if test $ac_cv_header_X11_xpm_h = yes; then
14535 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14536 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14537 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14538 $as_echo_n "(cached) " >&6
14539 else
14540 ac_check_lib_save_LIBS=$LIBS
14541 LIBS="-lXpm -lX11 $LIBS"
14542 cat >conftest.$ac_ext <<_ACEOF
14543 /* confdefs.h. */
14544 _ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14548
14549 /* Override any GCC internal prototype to avoid an error.
14550 Use char because int might match the return type of a GCC
14551 builtin and then its argument prototype would still apply. */
14552 #ifdef __cplusplus
14553 extern "C"
14554 #endif
14555 char XpmReadFileToPixmap ();
14556 int
14557 main ()
14558 {
14559 return XpmReadFileToPixmap ();
14560 ;
14561 return 0;
14562 }
14563 _ACEOF
14564 rm -f conftest.$ac_objext conftest$ac_exeext
14565 if { (ac_try="$ac_link"
14566 case "(($ac_try" in
14567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568 *) ac_try_echo=$ac_try;;
14569 esac
14570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14571 $as_echo "$ac_try_echo") >&5
14572 (eval "$ac_link") 2>conftest.er1
14573 ac_status=$?
14574 grep -v '^ *+' conftest.er1 >conftest.err
14575 rm -f conftest.er1
14576 cat conftest.err >&5
14577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); } && {
14579 test -z "$ac_c_werror_flag" ||
14580 test ! -s conftest.err
14581 } && test -s conftest$ac_exeext && {
14582 test "$cross_compiling" = yes ||
14583 $as_test_x conftest$ac_exeext
14584 }; then
14585 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14586 else
14587 $as_echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14589
14590 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14591 fi
14592
14593 rm -rf conftest.dSYM
14594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14595 conftest$ac_exeext conftest.$ac_ext
14596 LIBS=$ac_check_lib_save_LIBS
14597 fi
14598 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14599 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14600 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14601 HAVE_XPM=yes
14602 fi
14603
14604 fi
14605
14606
14607 if test "${HAVE_XPM}" = "yes"; then
14608 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14609 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14610 cat >conftest.$ac_ext <<_ACEOF
14611 /* confdefs.h. */
14612 _ACEOF
14613 cat confdefs.h >>conftest.$ac_ext
14614 cat >>conftest.$ac_ext <<_ACEOF
14615 /* end confdefs.h. */
14616 #include "X11/xpm.h"
14617 #ifndef XpmReturnAllocPixels
14618 no_return_alloc_pixels
14619 #endif
14620
14621 _ACEOF
14622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14623 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14624 HAVE_XPM=no
14625 else
14626 HAVE_XPM=yes
14627 fi
14628 rm -f conftest*
14629
14630
14631 if test "${HAVE_XPM}" = "yes"; then
14632 { $as_echo "$as_me:$LINENO: result: yes" >&5
14633 $as_echo "yes" >&6; }
14634 else
14635 { $as_echo "$as_me:$LINENO: result: no" >&5
14636 $as_echo "no" >&6; }
14637 fi
14638 fi
14639 fi
14640
14641 if test "${HAVE_XPM}" = "yes"; then
14642
14643 cat >>confdefs.h <<\_ACEOF
14644 #define HAVE_XPM 1
14645 _ACEOF
14646
14647 LIBXPM=-lXpm
14648 fi
14649 fi
14650
14651
14652 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14653 HAVE_JPEG=no
14654 LIBJPEG=
14655 if test "${HAVE_X11}" = "yes"; then
14656 if test "${with_jpeg}" != "no"; then
14657 if test "${ac_cv_header_jerror_h+set}" = set; then
14658 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14659 $as_echo_n "checking for jerror.h... " >&6; }
14660 if test "${ac_cv_header_jerror_h+set}" = set; then
14661 $as_echo_n "(cached) " >&6
14662 fi
14663 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14664 $as_echo "$ac_cv_header_jerror_h" >&6; }
14665 else
14666 # Is the header compilable?
14667 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14668 $as_echo_n "checking jerror.h usability... " >&6; }
14669 cat >conftest.$ac_ext <<_ACEOF
14670 /* confdefs.h. */
14671 _ACEOF
14672 cat confdefs.h >>conftest.$ac_ext
14673 cat >>conftest.$ac_ext <<_ACEOF
14674 /* end confdefs.h. */
14675 $ac_includes_default
14676 #include <jerror.h>
14677 _ACEOF
14678 rm -f conftest.$ac_objext
14679 if { (ac_try="$ac_compile"
14680 case "(($ac_try" in
14681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14682 *) ac_try_echo=$ac_try;;
14683 esac
14684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14685 $as_echo "$ac_try_echo") >&5
14686 (eval "$ac_compile") 2>conftest.er1
14687 ac_status=$?
14688 grep -v '^ *+' conftest.er1 >conftest.err
14689 rm -f conftest.er1
14690 cat conftest.err >&5
14691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } && {
14693 test -z "$ac_c_werror_flag" ||
14694 test ! -s conftest.err
14695 } && test -s conftest.$ac_objext; then
14696 ac_header_compiler=yes
14697 else
14698 $as_echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14700
14701 ac_header_compiler=no
14702 fi
14703
14704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14705 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14706 $as_echo "$ac_header_compiler" >&6; }
14707
14708 # Is the header present?
14709 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14710 $as_echo_n "checking jerror.h presence... " >&6; }
14711 cat >conftest.$ac_ext <<_ACEOF
14712 /* confdefs.h. */
14713 _ACEOF
14714 cat confdefs.h >>conftest.$ac_ext
14715 cat >>conftest.$ac_ext <<_ACEOF
14716 /* end confdefs.h. */
14717 #include <jerror.h>
14718 _ACEOF
14719 if { (ac_try="$ac_cpp conftest.$ac_ext"
14720 case "(($ac_try" in
14721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14722 *) ac_try_echo=$ac_try;;
14723 esac
14724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14725 $as_echo "$ac_try_echo") >&5
14726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14727 ac_status=$?
14728 grep -v '^ *+' conftest.er1 >conftest.err
14729 rm -f conftest.er1
14730 cat conftest.err >&5
14731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); } >/dev/null && {
14733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14734 test ! -s conftest.err
14735 }; then
14736 ac_header_preproc=yes
14737 else
14738 $as_echo "$as_me: failed program was:" >&5
14739 sed 's/^/| /' conftest.$ac_ext >&5
14740
14741 ac_header_preproc=no
14742 fi
14743
14744 rm -f conftest.err conftest.$ac_ext
14745 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14746 $as_echo "$ac_header_preproc" >&6; }
14747
14748 # So? What about this header?
14749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14750 yes:no: )
14751 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14752 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14753 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14754 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14755 ac_header_preproc=yes
14756 ;;
14757 no:yes:* )
14758 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14759 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14760 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14761 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14762 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14763 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14764 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14765 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14766 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14767 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14768 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14769 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14770
14771 ;;
14772 esac
14773 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14774 $as_echo_n "checking for jerror.h... " >&6; }
14775 if test "${ac_cv_header_jerror_h+set}" = set; then
14776 $as_echo_n "(cached) " >&6
14777 else
14778 ac_cv_header_jerror_h=$ac_header_preproc
14779 fi
14780 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14781 $as_echo "$ac_cv_header_jerror_h" >&6; }
14782
14783 fi
14784 if test $ac_cv_header_jerror_h = yes; then
14785 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14786 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14787 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14788 $as_echo_n "(cached) " >&6
14789 else
14790 ac_check_lib_save_LIBS=$LIBS
14791 LIBS="-ljpeg $LIBS"
14792 cat >conftest.$ac_ext <<_ACEOF
14793 /* confdefs.h. */
14794 _ACEOF
14795 cat confdefs.h >>conftest.$ac_ext
14796 cat >>conftest.$ac_ext <<_ACEOF
14797 /* end confdefs.h. */
14798
14799 /* Override any GCC internal prototype to avoid an error.
14800 Use char because int might match the return type of a GCC
14801 builtin and then its argument prototype would still apply. */
14802 #ifdef __cplusplus
14803 extern "C"
14804 #endif
14805 char jpeg_destroy_compress ();
14806 int
14807 main ()
14808 {
14809 return jpeg_destroy_compress ();
14810 ;
14811 return 0;
14812 }
14813 _ACEOF
14814 rm -f conftest.$ac_objext conftest$ac_exeext
14815 if { (ac_try="$ac_link"
14816 case "(($ac_try" in
14817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14818 *) ac_try_echo=$ac_try;;
14819 esac
14820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14821 $as_echo "$ac_try_echo") >&5
14822 (eval "$ac_link") 2>conftest.er1
14823 ac_status=$?
14824 grep -v '^ *+' conftest.er1 >conftest.err
14825 rm -f conftest.er1
14826 cat conftest.err >&5
14827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); } && {
14829 test -z "$ac_c_werror_flag" ||
14830 test ! -s conftest.err
14831 } && test -s conftest$ac_exeext && {
14832 test "$cross_compiling" = yes ||
14833 $as_test_x conftest$ac_exeext
14834 }; then
14835 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14836 else
14837 $as_echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14839
14840 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14841 fi
14842
14843 rm -rf conftest.dSYM
14844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14845 conftest$ac_exeext conftest.$ac_ext
14846 LIBS=$ac_check_lib_save_LIBS
14847 fi
14848 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14849 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14850 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14851 HAVE_JPEG=yes
14852 fi
14853
14854 fi
14855
14856
14857 fi
14858
14859
14860 if test "${HAVE_JPEG}" = "yes"; then
14861 cat >>confdefs.h <<\_ACEOF
14862 #define HAVE_JPEG 1
14863 _ACEOF
14864
14865 cat >conftest.$ac_ext <<_ACEOF
14866 /* confdefs.h. */
14867 _ACEOF
14868 cat confdefs.h >>conftest.$ac_ext
14869 cat >>conftest.$ac_ext <<_ACEOF
14870 /* end confdefs.h. */
14871 #include <jpeglib.h>
14872 version=JPEG_LIB_VERSION
14873
14874 _ACEOF
14875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14876 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14877 cat >>confdefs.h <<\_ACEOF
14878 #define HAVE_JPEG 1
14879 _ACEOF
14880
14881 else
14882 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14883 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14884 HAVE_JPEG=no
14885 fi
14886 rm -f conftest*
14887
14888 fi
14889 if test "${HAVE_JPEG}" = "yes"; then
14890 LIBJPEG=-ljpeg
14891 fi
14892 fi
14893
14894
14895 ### Use -lpng if available, unless `--with-png=no'.
14896 HAVE_PNG=no
14897 LIBPNG=
14898 if test "${HAVE_X11}" = "yes"; then
14899 if test "${with_png}" != "no"; then
14900 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14901 # in /usr/include/libpng.
14902
14903
14904 for ac_header in png.h libpng/png.h
14905 do
14906 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14908 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14909 $as_echo_n "checking for $ac_header... " >&6; }
14910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14911 $as_echo_n "(cached) " >&6
14912 fi
14913 ac_res=`eval 'as_val=${'$as_ac_Header'}
14914 $as_echo "$as_val"'`
14915 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14916 $as_echo "$ac_res" >&6; }
14917 else
14918 # Is the header compilable?
14919 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14920 $as_echo_n "checking $ac_header usability... " >&6; }
14921 cat >conftest.$ac_ext <<_ACEOF
14922 /* confdefs.h. */
14923 _ACEOF
14924 cat confdefs.h >>conftest.$ac_ext
14925 cat >>conftest.$ac_ext <<_ACEOF
14926 /* end confdefs.h. */
14927 $ac_includes_default
14928 #include <$ac_header>
14929 _ACEOF
14930 rm -f conftest.$ac_objext
14931 if { (ac_try="$ac_compile"
14932 case "(($ac_try" in
14933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14934 *) ac_try_echo=$ac_try;;
14935 esac
14936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14937 $as_echo "$ac_try_echo") >&5
14938 (eval "$ac_compile") 2>conftest.er1
14939 ac_status=$?
14940 grep -v '^ *+' conftest.er1 >conftest.err
14941 rm -f conftest.er1
14942 cat conftest.err >&5
14943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } && {
14945 test -z "$ac_c_werror_flag" ||
14946 test ! -s conftest.err
14947 } && test -s conftest.$ac_objext; then
14948 ac_header_compiler=yes
14949 else
14950 $as_echo "$as_me: failed program was:" >&5
14951 sed 's/^/| /' conftest.$ac_ext >&5
14952
14953 ac_header_compiler=no
14954 fi
14955
14956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14957 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14958 $as_echo "$ac_header_compiler" >&6; }
14959
14960 # Is the header present?
14961 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14962 $as_echo_n "checking $ac_header presence... " >&6; }
14963 cat >conftest.$ac_ext <<_ACEOF
14964 /* confdefs.h. */
14965 _ACEOF
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h. */
14969 #include <$ac_header>
14970 _ACEOF
14971 if { (ac_try="$ac_cpp conftest.$ac_ext"
14972 case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14975 esac
14976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14977 $as_echo "$ac_try_echo") >&5
14978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14979 ac_status=$?
14980 grep -v '^ *+' conftest.er1 >conftest.err
14981 rm -f conftest.er1
14982 cat conftest.err >&5
14983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } >/dev/null && {
14985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14986 test ! -s conftest.err
14987 }; then
14988 ac_header_preproc=yes
14989 else
14990 $as_echo "$as_me: failed program was:" >&5
14991 sed 's/^/| /' conftest.$ac_ext >&5
14992
14993 ac_header_preproc=no
14994 fi
14995
14996 rm -f conftest.err conftest.$ac_ext
14997 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14998 $as_echo "$ac_header_preproc" >&6; }
14999
15000 # So? What about this header?
15001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15002 yes:no: )
15003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15004 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15006 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15007 ac_header_preproc=yes
15008 ;;
15009 no:yes:* )
15010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15011 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15013 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15015 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15017 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15019 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15021 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15022
15023 ;;
15024 esac
15025 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15026 $as_echo_n "checking for $ac_header... " >&6; }
15027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15028 $as_echo_n "(cached) " >&6
15029 else
15030 eval "$as_ac_Header=\$ac_header_preproc"
15031 fi
15032 ac_res=`eval 'as_val=${'$as_ac_Header'}
15033 $as_echo "$as_val"'`
15034 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15035 $as_echo "$ac_res" >&6; }
15036
15037 fi
15038 if test `eval 'as_val=${'$as_ac_Header'}
15039 $as_echo "$as_val"'` = yes; then
15040 cat >>confdefs.h <<_ACEOF
15041 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15042 _ACEOF
15043
15044 fi
15045
15046 done
15047
15048 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15049 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15050 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15051 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15052 $as_echo_n "(cached) " >&6
15053 else
15054 ac_check_lib_save_LIBS=$LIBS
15055 LIBS="-lpng -lz -lm $LIBS"
15056 cat >conftest.$ac_ext <<_ACEOF
15057 /* confdefs.h. */
15058 _ACEOF
15059 cat confdefs.h >>conftest.$ac_ext
15060 cat >>conftest.$ac_ext <<_ACEOF
15061 /* end confdefs.h. */
15062
15063 /* Override any GCC internal prototype to avoid an error.
15064 Use char because int might match the return type of a GCC
15065 builtin and then its argument prototype would still apply. */
15066 #ifdef __cplusplus
15067 extern "C"
15068 #endif
15069 char png_get_channels ();
15070 int
15071 main ()
15072 {
15073 return png_get_channels ();
15074 ;
15075 return 0;
15076 }
15077 _ACEOF
15078 rm -f conftest.$ac_objext conftest$ac_exeext
15079 if { (ac_try="$ac_link"
15080 case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15083 esac
15084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15085 $as_echo "$ac_try_echo") >&5
15086 (eval "$ac_link") 2>conftest.er1
15087 ac_status=$?
15088 grep -v '^ *+' conftest.er1 >conftest.err
15089 rm -f conftest.er1
15090 cat conftest.err >&5
15091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } && {
15093 test -z "$ac_c_werror_flag" ||
15094 test ! -s conftest.err
15095 } && test -s conftest$ac_exeext && {
15096 test "$cross_compiling" = yes ||
15097 $as_test_x conftest$ac_exeext
15098 }; then
15099 ac_cv_lib_png_png_get_channels=yes
15100 else
15101 $as_echo "$as_me: failed program was:" >&5
15102 sed 's/^/| /' conftest.$ac_ext >&5
15103
15104 ac_cv_lib_png_png_get_channels=no
15105 fi
15106
15107 rm -rf conftest.dSYM
15108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15109 conftest$ac_exeext conftest.$ac_ext
15110 LIBS=$ac_check_lib_save_LIBS
15111 fi
15112 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15113 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15114 if test $ac_cv_lib_png_png_get_channels = yes; then
15115 HAVE_PNG=yes
15116 fi
15117
15118 fi
15119 fi
15120
15121 if test "${HAVE_PNG}" = "yes"; then
15122
15123 cat >>confdefs.h <<\_ACEOF
15124 #define HAVE_PNG 1
15125 _ACEOF
15126
15127 LIBPNG="-lpng -lz -lm"
15128 fi
15129 fi
15130
15131
15132 ### Use -ltiff if available, unless `--with-tiff=no'.
15133 HAVE_TIFF=no
15134 LIBTIFF=
15135 if test "${HAVE_X11}" = "yes"; then
15136 if test "${with_tiff}" != "no"; then
15137 if test "${ac_cv_header_tiffio_h+set}" = set; then
15138 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15139 $as_echo_n "checking for tiffio.h... " >&6; }
15140 if test "${ac_cv_header_tiffio_h+set}" = set; then
15141 $as_echo_n "(cached) " >&6
15142 fi
15143 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15144 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15145 else
15146 # Is the header compilable?
15147 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15148 $as_echo_n "checking tiffio.h usability... " >&6; }
15149 cat >conftest.$ac_ext <<_ACEOF
15150 /* confdefs.h. */
15151 _ACEOF
15152 cat confdefs.h >>conftest.$ac_ext
15153 cat >>conftest.$ac_ext <<_ACEOF
15154 /* end confdefs.h. */
15155 $ac_includes_default
15156 #include <tiffio.h>
15157 _ACEOF
15158 rm -f conftest.$ac_objext
15159 if { (ac_try="$ac_compile"
15160 case "(($ac_try" in
15161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162 *) ac_try_echo=$ac_try;;
15163 esac
15164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15165 $as_echo "$ac_try_echo") >&5
15166 (eval "$ac_compile") 2>conftest.er1
15167 ac_status=$?
15168 grep -v '^ *+' conftest.er1 >conftest.err
15169 rm -f conftest.er1
15170 cat conftest.err >&5
15171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); } && {
15173 test -z "$ac_c_werror_flag" ||
15174 test ! -s conftest.err
15175 } && test -s conftest.$ac_objext; then
15176 ac_header_compiler=yes
15177 else
15178 $as_echo "$as_me: failed program was:" >&5
15179 sed 's/^/| /' conftest.$ac_ext >&5
15180
15181 ac_header_compiler=no
15182 fi
15183
15184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15185 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15186 $as_echo "$ac_header_compiler" >&6; }
15187
15188 # Is the header present?
15189 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15190 $as_echo_n "checking tiffio.h presence... " >&6; }
15191 cat >conftest.$ac_ext <<_ACEOF
15192 /* confdefs.h. */
15193 _ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h. */
15197 #include <tiffio.h>
15198 _ACEOF
15199 if { (ac_try="$ac_cpp conftest.$ac_ext"
15200 case "(($ac_try" in
15201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15202 *) ac_try_echo=$ac_try;;
15203 esac
15204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15205 $as_echo "$ac_try_echo") >&5
15206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15207 ac_status=$?
15208 grep -v '^ *+' conftest.er1 >conftest.err
15209 rm -f conftest.er1
15210 cat conftest.err >&5
15211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } >/dev/null && {
15213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15214 test ! -s conftest.err
15215 }; then
15216 ac_header_preproc=yes
15217 else
15218 $as_echo "$as_me: failed program was:" >&5
15219 sed 's/^/| /' conftest.$ac_ext >&5
15220
15221 ac_header_preproc=no
15222 fi
15223
15224 rm -f conftest.err conftest.$ac_ext
15225 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15226 $as_echo "$ac_header_preproc" >&6; }
15227
15228 # So? What about this header?
15229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15230 yes:no: )
15231 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15232 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15233 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15234 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15235 ac_header_preproc=yes
15236 ;;
15237 no:yes:* )
15238 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15239 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15240 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15241 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15242 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15243 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15244 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15245 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15246 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15247 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15248 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15249 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15250
15251 ;;
15252 esac
15253 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15254 $as_echo_n "checking for tiffio.h... " >&6; }
15255 if test "${ac_cv_header_tiffio_h+set}" = set; then
15256 $as_echo_n "(cached) " >&6
15257 else
15258 ac_cv_header_tiffio_h=$ac_header_preproc
15259 fi
15260 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15261 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15262
15263 fi
15264 if test $ac_cv_header_tiffio_h = yes; then
15265 tifflibs="-lz -lm"
15266 # At least one tiff package requires the jpeg library.
15267 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15268 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15269 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15270 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15271 $as_echo_n "(cached) " >&6
15272 else
15273 ac_check_lib_save_LIBS=$LIBS
15274 LIBS="-ltiff $tifflibs $LIBS"
15275 cat >conftest.$ac_ext <<_ACEOF
15276 /* confdefs.h. */
15277 _ACEOF
15278 cat confdefs.h >>conftest.$ac_ext
15279 cat >>conftest.$ac_ext <<_ACEOF
15280 /* end confdefs.h. */
15281
15282 /* Override any GCC internal prototype to avoid an error.
15283 Use char because int might match the return type of a GCC
15284 builtin and then its argument prototype would still apply. */
15285 #ifdef __cplusplus
15286 extern "C"
15287 #endif
15288 char TIFFGetVersion ();
15289 int
15290 main ()
15291 {
15292 return TIFFGetVersion ();
15293 ;
15294 return 0;
15295 }
15296 _ACEOF
15297 rm -f conftest.$ac_objext conftest$ac_exeext
15298 if { (ac_try="$ac_link"
15299 case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15302 esac
15303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15304 $as_echo "$ac_try_echo") >&5
15305 (eval "$ac_link") 2>conftest.er1
15306 ac_status=$?
15307 grep -v '^ *+' conftest.er1 >conftest.err
15308 rm -f conftest.er1
15309 cat conftest.err >&5
15310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } && {
15312 test -z "$ac_c_werror_flag" ||
15313 test ! -s conftest.err
15314 } && test -s conftest$ac_exeext && {
15315 test "$cross_compiling" = yes ||
15316 $as_test_x conftest$ac_exeext
15317 }; then
15318 ac_cv_lib_tiff_TIFFGetVersion=yes
15319 else
15320 $as_echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15322
15323 ac_cv_lib_tiff_TIFFGetVersion=no
15324 fi
15325
15326 rm -rf conftest.dSYM
15327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15328 conftest$ac_exeext conftest.$ac_ext
15329 LIBS=$ac_check_lib_save_LIBS
15330 fi
15331 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15332 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15333 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15334 HAVE_TIFF=yes
15335 fi
15336
15337 fi
15338
15339
15340 fi
15341
15342 if test "${HAVE_TIFF}" = "yes"; then
15343
15344 cat >>confdefs.h <<\_ACEOF
15345 #define HAVE_TIFF 1
15346 _ACEOF
15347
15348 LIBTIFF=-ltiff
15349 fi
15350 fi
15351
15352
15353 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15354 HAVE_GIF=no
15355 LIBGIF=
15356 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15357 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15358 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15359 $as_echo_n "checking for gif_lib.h... " >&6; }
15360 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15361 $as_echo_n "(cached) " >&6
15362 fi
15363 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15364 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15365 else
15366 # Is the header compilable?
15367 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15368 $as_echo_n "checking gif_lib.h usability... " >&6; }
15369 cat >conftest.$ac_ext <<_ACEOF
15370 /* confdefs.h. */
15371 _ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15375 $ac_includes_default
15376 #include <gif_lib.h>
15377 _ACEOF
15378 rm -f conftest.$ac_objext
15379 if { (ac_try="$ac_compile"
15380 case "(($ac_try" in
15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382 *) ac_try_echo=$ac_try;;
15383 esac
15384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15385 $as_echo "$ac_try_echo") >&5
15386 (eval "$ac_compile") 2>conftest.er1
15387 ac_status=$?
15388 grep -v '^ *+' conftest.er1 >conftest.err
15389 rm -f conftest.er1
15390 cat conftest.err >&5
15391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } && {
15393 test -z "$ac_c_werror_flag" ||
15394 test ! -s conftest.err
15395 } && test -s conftest.$ac_objext; then
15396 ac_header_compiler=yes
15397 else
15398 $as_echo "$as_me: failed program was:" >&5
15399 sed 's/^/| /' conftest.$ac_ext >&5
15400
15401 ac_header_compiler=no
15402 fi
15403
15404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15405 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15406 $as_echo "$ac_header_compiler" >&6; }
15407
15408 # Is the header present?
15409 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15410 $as_echo_n "checking gif_lib.h presence... " >&6; }
15411 cat >conftest.$ac_ext <<_ACEOF
15412 /* confdefs.h. */
15413 _ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h. */
15417 #include <gif_lib.h>
15418 _ACEOF
15419 if { (ac_try="$ac_cpp conftest.$ac_ext"
15420 case "(($ac_try" in
15421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15422 *) ac_try_echo=$ac_try;;
15423 esac
15424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15425 $as_echo "$ac_try_echo") >&5
15426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15427 ac_status=$?
15428 grep -v '^ *+' conftest.er1 >conftest.err
15429 rm -f conftest.er1
15430 cat conftest.err >&5
15431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } >/dev/null && {
15433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15434 test ! -s conftest.err
15435 }; then
15436 ac_header_preproc=yes
15437 else
15438 $as_echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15440
15441 ac_header_preproc=no
15442 fi
15443
15444 rm -f conftest.err conftest.$ac_ext
15445 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15446 $as_echo "$ac_header_preproc" >&6; }
15447
15448 # So? What about this header?
15449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15450 yes:no: )
15451 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15452 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15453 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15454 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15455 ac_header_preproc=yes
15456 ;;
15457 no:yes:* )
15458 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15459 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15460 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15461 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15462 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15463 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15464 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15465 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15466 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15467 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15468 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15469 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15470
15471 ;;
15472 esac
15473 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15474 $as_echo_n "checking for gif_lib.h... " >&6; }
15475 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15476 $as_echo_n "(cached) " >&6
15477 else
15478 ac_cv_header_gif_lib_h=$ac_header_preproc
15479 fi
15480 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15481 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15482
15483 fi
15484 if test $ac_cv_header_gif_lib_h = yes; then
15485 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15486 # Earlier versions can crash Emacs.
15487 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15488 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15489 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15490 $as_echo_n "(cached) " >&6
15491 else
15492 ac_check_lib_save_LIBS=$LIBS
15493 LIBS="-lgif $LIBS"
15494 cat >conftest.$ac_ext <<_ACEOF
15495 /* confdefs.h. */
15496 _ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15500
15501 /* Override any GCC internal prototype to avoid an error.
15502 Use char because int might match the return type of a GCC
15503 builtin and then its argument prototype would still apply. */
15504 #ifdef __cplusplus
15505 extern "C"
15506 #endif
15507 char EGifPutExtensionLast ();
15508 int
15509 main ()
15510 {
15511 return EGifPutExtensionLast ();
15512 ;
15513 return 0;
15514 }
15515 _ACEOF
15516 rm -f conftest.$ac_objext conftest$ac_exeext
15517 if { (ac_try="$ac_link"
15518 case "(($ac_try" in
15519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520 *) ac_try_echo=$ac_try;;
15521 esac
15522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15523 $as_echo "$ac_try_echo") >&5
15524 (eval "$ac_link") 2>conftest.er1
15525 ac_status=$?
15526 grep -v '^ *+' conftest.er1 >conftest.err
15527 rm -f conftest.er1
15528 cat conftest.err >&5
15529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } && {
15531 test -z "$ac_c_werror_flag" ||
15532 test ! -s conftest.err
15533 } && test -s conftest$ac_exeext && {
15534 test "$cross_compiling" = yes ||
15535 $as_test_x conftest$ac_exeext
15536 }; then
15537 ac_cv_lib_gif_EGifPutExtensionLast=yes
15538 else
15539 $as_echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.$ac_ext >&5
15541
15542 ac_cv_lib_gif_EGifPutExtensionLast=no
15543 fi
15544
15545 rm -rf conftest.dSYM
15546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15547 conftest$ac_exeext conftest.$ac_ext
15548 LIBS=$ac_check_lib_save_LIBS
15549 fi
15550 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15551 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15552 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15553 HAVE_GIF=yes
15554 else
15555 HAVE_GIF=maybe
15556 fi
15557
15558 fi
15559
15560
15561
15562 if test "$HAVE_GIF" = yes; then
15563 LIBGIF=-lgif
15564 elif test "$HAVE_GIF" = maybe; then
15565 # If gif_lib.h but no libgif, try libungif.
15566 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15567 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15568 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15569 $as_echo_n "(cached) " >&6
15570 else
15571 ac_check_lib_save_LIBS=$LIBS
15572 LIBS="-lungif $LIBS"
15573 cat >conftest.$ac_ext <<_ACEOF
15574 /* confdefs.h. */
15575 _ACEOF
15576 cat confdefs.h >>conftest.$ac_ext
15577 cat >>conftest.$ac_ext <<_ACEOF
15578 /* end confdefs.h. */
15579
15580 /* Override any GCC internal prototype to avoid an error.
15581 Use char because int might match the return type of a GCC
15582 builtin and then its argument prototype would still apply. */
15583 #ifdef __cplusplus
15584 extern "C"
15585 #endif
15586 char EGifPutExtensionLast ();
15587 int
15588 main ()
15589 {
15590 return EGifPutExtensionLast ();
15591 ;
15592 return 0;
15593 }
15594 _ACEOF
15595 rm -f conftest.$ac_objext conftest$ac_exeext
15596 if { (ac_try="$ac_link"
15597 case "(($ac_try" in
15598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15599 *) ac_try_echo=$ac_try;;
15600 esac
15601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15602 $as_echo "$ac_try_echo") >&5
15603 (eval "$ac_link") 2>conftest.er1
15604 ac_status=$?
15605 grep -v '^ *+' conftest.er1 >conftest.err
15606 rm -f conftest.er1
15607 cat conftest.err >&5
15608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); } && {
15610 test -z "$ac_c_werror_flag" ||
15611 test ! -s conftest.err
15612 } && test -s conftest$ac_exeext && {
15613 test "$cross_compiling" = yes ||
15614 $as_test_x conftest$ac_exeext
15615 }; then
15616 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15617 else
15618 $as_echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15620
15621 ac_cv_lib_ungif_EGifPutExtensionLast=no
15622 fi
15623
15624 rm -rf conftest.dSYM
15625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15626 conftest$ac_exeext conftest.$ac_ext
15627 LIBS=$ac_check_lib_save_LIBS
15628 fi
15629 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15630 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15631 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15632 HAVE_GIF=yes
15633 else
15634 HAVE_GIF=no
15635 fi
15636
15637 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15638 fi
15639
15640 if test "${HAVE_GIF}" = "yes"; then
15641
15642 cat >>confdefs.h <<\_ACEOF
15643 #define HAVE_GIF 1
15644 _ACEOF
15645
15646 fi
15647 fi
15648
15649
15650 if test "${HAVE_X11}" = "yes"; then
15651 MISSING=""
15652 WITH_NO=""
15653 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15654 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15655 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15656 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15657 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15658 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15659 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15660 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15661 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15662 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15663
15664 if test "X${MISSING}" != X; then
15665 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15666 $MISSING
15667 Maybe some development libraries/packages are missing?
15668 If you don't want to link with them give
15669 $WITH_NO
15670 as options to configure" >&5
15671 $as_echo "$as_me: error: The following required libraries were not found:
15672 $MISSING
15673 Maybe some development libraries/packages are missing?
15674 If you don't want to link with them give
15675 $WITH_NO
15676 as options to configure" >&2;}
15677 { (exit 1); exit 1; }; }
15678 fi
15679 fi
15680
15681 ### Use -lgpm if available, unless `--with-gpm=no'.
15682 HAVE_GPM=no
15683 LIBGPM=
15684 if test "${with_gpm}" != "no"; then
15685 if test "${ac_cv_header_gpm_h+set}" = set; then
15686 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15687 $as_echo_n "checking for gpm.h... " >&6; }
15688 if test "${ac_cv_header_gpm_h+set}" = set; then
15689 $as_echo_n "(cached) " >&6
15690 fi
15691 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15692 $as_echo "$ac_cv_header_gpm_h" >&6; }
15693 else
15694 # Is the header compilable?
15695 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15696 $as_echo_n "checking gpm.h usability... " >&6; }
15697 cat >conftest.$ac_ext <<_ACEOF
15698 /* confdefs.h. */
15699 _ACEOF
15700 cat confdefs.h >>conftest.$ac_ext
15701 cat >>conftest.$ac_ext <<_ACEOF
15702 /* end confdefs.h. */
15703 $ac_includes_default
15704 #include <gpm.h>
15705 _ACEOF
15706 rm -f conftest.$ac_objext
15707 if { (ac_try="$ac_compile"
15708 case "(($ac_try" in
15709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15710 *) ac_try_echo=$ac_try;;
15711 esac
15712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15713 $as_echo "$ac_try_echo") >&5
15714 (eval "$ac_compile") 2>conftest.er1
15715 ac_status=$?
15716 grep -v '^ *+' conftest.er1 >conftest.err
15717 rm -f conftest.er1
15718 cat conftest.err >&5
15719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); } && {
15721 test -z "$ac_c_werror_flag" ||
15722 test ! -s conftest.err
15723 } && test -s conftest.$ac_objext; then
15724 ac_header_compiler=yes
15725 else
15726 $as_echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.$ac_ext >&5
15728
15729 ac_header_compiler=no
15730 fi
15731
15732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15733 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15734 $as_echo "$ac_header_compiler" >&6; }
15735
15736 # Is the header present?
15737 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15738 $as_echo_n "checking gpm.h presence... " >&6; }
15739 cat >conftest.$ac_ext <<_ACEOF
15740 /* confdefs.h. */
15741 _ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15745 #include <gpm.h>
15746 _ACEOF
15747 if { (ac_try="$ac_cpp conftest.$ac_ext"
15748 case "(($ac_try" in
15749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750 *) ac_try_echo=$ac_try;;
15751 esac
15752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15753 $as_echo "$ac_try_echo") >&5
15754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15755 ac_status=$?
15756 grep -v '^ *+' conftest.er1 >conftest.err
15757 rm -f conftest.er1
15758 cat conftest.err >&5
15759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); } >/dev/null && {
15761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15762 test ! -s conftest.err
15763 }; then
15764 ac_header_preproc=yes
15765 else
15766 $as_echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15768
15769 ac_header_preproc=no
15770 fi
15771
15772 rm -f conftest.err conftest.$ac_ext
15773 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15774 $as_echo "$ac_header_preproc" >&6; }
15775
15776 # So? What about this header?
15777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15778 yes:no: )
15779 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15780 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15781 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15782 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15783 ac_header_preproc=yes
15784 ;;
15785 no:yes:* )
15786 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15787 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15788 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15789 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15790 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15791 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15792 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15793 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15794 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15795 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15796 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15797 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15798
15799 ;;
15800 esac
15801 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15802 $as_echo_n "checking for gpm.h... " >&6; }
15803 if test "${ac_cv_header_gpm_h+set}" = set; then
15804 $as_echo_n "(cached) " >&6
15805 else
15806 ac_cv_header_gpm_h=$ac_header_preproc
15807 fi
15808 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15809 $as_echo "$ac_cv_header_gpm_h" >&6; }
15810
15811 fi
15812 if test $ac_cv_header_gpm_h = yes; then
15813 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15814 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15815 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15816 $as_echo_n "(cached) " >&6
15817 else
15818 ac_check_lib_save_LIBS=$LIBS
15819 LIBS="-lgpm $LIBS"
15820 cat >conftest.$ac_ext <<_ACEOF
15821 /* confdefs.h. */
15822 _ACEOF
15823 cat confdefs.h >>conftest.$ac_ext
15824 cat >>conftest.$ac_ext <<_ACEOF
15825 /* end confdefs.h. */
15826
15827 /* Override any GCC internal prototype to avoid an error.
15828 Use char because int might match the return type of a GCC
15829 builtin and then its argument prototype would still apply. */
15830 #ifdef __cplusplus
15831 extern "C"
15832 #endif
15833 char Gpm_Open ();
15834 int
15835 main ()
15836 {
15837 return Gpm_Open ();
15838 ;
15839 return 0;
15840 }
15841 _ACEOF
15842 rm -f conftest.$ac_objext conftest$ac_exeext
15843 if { (ac_try="$ac_link"
15844 case "(($ac_try" in
15845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15846 *) ac_try_echo=$ac_try;;
15847 esac
15848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15849 $as_echo "$ac_try_echo") >&5
15850 (eval "$ac_link") 2>conftest.er1
15851 ac_status=$?
15852 grep -v '^ *+' conftest.er1 >conftest.err
15853 rm -f conftest.er1
15854 cat conftest.err >&5
15855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } && {
15857 test -z "$ac_c_werror_flag" ||
15858 test ! -s conftest.err
15859 } && test -s conftest$ac_exeext && {
15860 test "$cross_compiling" = yes ||
15861 $as_test_x conftest$ac_exeext
15862 }; then
15863 ac_cv_lib_gpm_Gpm_Open=yes
15864 else
15865 $as_echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15867
15868 ac_cv_lib_gpm_Gpm_Open=no
15869 fi
15870
15871 rm -rf conftest.dSYM
15872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15873 conftest$ac_exeext conftest.$ac_ext
15874 LIBS=$ac_check_lib_save_LIBS
15875 fi
15876 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15877 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15878 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15879 HAVE_GPM=yes
15880 fi
15881
15882 fi
15883
15884
15885
15886 if test "${HAVE_GPM}" = "yes"; then
15887
15888 cat >>confdefs.h <<\_ACEOF
15889 #define HAVE_GPM 1
15890 _ACEOF
15891
15892 LIBGPM=-lgpm
15893 fi
15894 fi
15895
15896
15897 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15898 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15899 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15900 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15901 $as_echo_n "(cached) " >&6
15902 fi
15903 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15904 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15905 else
15906 # Is the header compilable?
15907 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15908 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15909 cat >conftest.$ac_ext <<_ACEOF
15910 /* confdefs.h. */
15911 _ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h. */
15915 $ac_includes_default
15916 #include <malloc/malloc.h>
15917 _ACEOF
15918 rm -f conftest.$ac_objext
15919 if { (ac_try="$ac_compile"
15920 case "(($ac_try" in
15921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922 *) ac_try_echo=$ac_try;;
15923 esac
15924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15925 $as_echo "$ac_try_echo") >&5
15926 (eval "$ac_compile") 2>conftest.er1
15927 ac_status=$?
15928 grep -v '^ *+' conftest.er1 >conftest.err
15929 rm -f conftest.er1
15930 cat conftest.err >&5
15931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } && {
15933 test -z "$ac_c_werror_flag" ||
15934 test ! -s conftest.err
15935 } && test -s conftest.$ac_objext; then
15936 ac_header_compiler=yes
15937 else
15938 $as_echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15940
15941 ac_header_compiler=no
15942 fi
15943
15944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15945 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15946 $as_echo "$ac_header_compiler" >&6; }
15947
15948 # Is the header present?
15949 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15950 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15951 cat >conftest.$ac_ext <<_ACEOF
15952 /* confdefs.h. */
15953 _ACEOF
15954 cat confdefs.h >>conftest.$ac_ext
15955 cat >>conftest.$ac_ext <<_ACEOF
15956 /* end confdefs.h. */
15957 #include <malloc/malloc.h>
15958 _ACEOF
15959 if { (ac_try="$ac_cpp conftest.$ac_ext"
15960 case "(($ac_try" in
15961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15962 *) ac_try_echo=$ac_try;;
15963 esac
15964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15965 $as_echo "$ac_try_echo") >&5
15966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15967 ac_status=$?
15968 grep -v '^ *+' conftest.er1 >conftest.err
15969 rm -f conftest.er1
15970 cat conftest.err >&5
15971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } >/dev/null && {
15973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15974 test ! -s conftest.err
15975 }; then
15976 ac_header_preproc=yes
15977 else
15978 $as_echo "$as_me: failed program was:" >&5
15979 sed 's/^/| /' conftest.$ac_ext >&5
15980
15981 ac_header_preproc=no
15982 fi
15983
15984 rm -f conftest.err conftest.$ac_ext
15985 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15986 $as_echo "$ac_header_preproc" >&6; }
15987
15988 # So? What about this header?
15989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15990 yes:no: )
15991 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15992 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15993 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15994 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15995 ac_header_preproc=yes
15996 ;;
15997 no:yes:* )
15998 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15999 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16000 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16001 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16002 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16003 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16004 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16005 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16006 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16007 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16008 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16009 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16010
16011 ;;
16012 esac
16013 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16014 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16015 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16016 $as_echo_n "(cached) " >&6
16017 else
16018 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16019 fi
16020 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16021 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16022
16023 fi
16024 if test $ac_cv_header_malloc_malloc_h = yes; then
16025
16026 cat >>confdefs.h <<\_ACEOF
16027 #define HAVE_MALLOC_MALLOC_H 1
16028 _ACEOF
16029
16030 fi
16031
16032
16033
16034 ### Use NeXTstep API to implement GUI.
16035 if test "${HAVE_NS}" = "yes"; then
16036
16037 cat >>confdefs.h <<\_ACEOF
16038 #define HAVE_NS 1
16039 _ACEOF
16040
16041 if test "${NS_IMPL_COCOA}" = "yes"; then
16042
16043 cat >>confdefs.h <<\_ACEOF
16044 #define NS_IMPL_COCOA 1
16045 _ACEOF
16046
16047 GNU_OBJC_CFLAGS=
16048 fi
16049 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16050
16051 cat >>confdefs.h <<\_ACEOF
16052 #define NS_IMPL_GNUSTEP 1
16053 _ACEOF
16054
16055 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16056 fi
16057 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16058
16059 cat >>confdefs.h <<\_ACEOF
16060 #define NS_HAVE_NSINTEGER 1
16061 _ACEOF
16062
16063 fi
16064 # We also have mouse menus.
16065 HAVE_MENUS=yes
16066 OTHER_FILES=ns-app
16067 fi
16068
16069
16070 ### Use session management (-lSM -lICE) if available
16071 HAVE_X_SM=no
16072 if test "${HAVE_X11}" = "yes"; then
16073 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16074 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16075 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16076 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16077 $as_echo_n "(cached) " >&6
16078 fi
16079 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16080 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16081 else
16082 # Is the header compilable?
16083 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16084 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16085 cat >conftest.$ac_ext <<_ACEOF
16086 /* confdefs.h. */
16087 _ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h. */
16091 $ac_includes_default
16092 #include <X11/SM/SMlib.h>
16093 _ACEOF
16094 rm -f conftest.$ac_objext
16095 if { (ac_try="$ac_compile"
16096 case "(($ac_try" in
16097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16098 *) ac_try_echo=$ac_try;;
16099 esac
16100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16101 $as_echo "$ac_try_echo") >&5
16102 (eval "$ac_compile") 2>conftest.er1
16103 ac_status=$?
16104 grep -v '^ *+' conftest.er1 >conftest.err
16105 rm -f conftest.er1
16106 cat conftest.err >&5
16107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); } && {
16109 test -z "$ac_c_werror_flag" ||
16110 test ! -s conftest.err
16111 } && test -s conftest.$ac_objext; then
16112 ac_header_compiler=yes
16113 else
16114 $as_echo "$as_me: failed program was:" >&5
16115 sed 's/^/| /' conftest.$ac_ext >&5
16116
16117 ac_header_compiler=no
16118 fi
16119
16120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16121 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16122 $as_echo "$ac_header_compiler" >&6; }
16123
16124 # Is the header present?
16125 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16126 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16127 cat >conftest.$ac_ext <<_ACEOF
16128 /* confdefs.h. */
16129 _ACEOF
16130 cat confdefs.h >>conftest.$ac_ext
16131 cat >>conftest.$ac_ext <<_ACEOF
16132 /* end confdefs.h. */
16133 #include <X11/SM/SMlib.h>
16134 _ACEOF
16135 if { (ac_try="$ac_cpp conftest.$ac_ext"
16136 case "(($ac_try" in
16137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16138 *) ac_try_echo=$ac_try;;
16139 esac
16140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16141 $as_echo "$ac_try_echo") >&5
16142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16143 ac_status=$?
16144 grep -v '^ *+' conftest.er1 >conftest.err
16145 rm -f conftest.er1
16146 cat conftest.err >&5
16147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } >/dev/null && {
16149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16150 test ! -s conftest.err
16151 }; then
16152 ac_header_preproc=yes
16153 else
16154 $as_echo "$as_me: failed program was:" >&5
16155 sed 's/^/| /' conftest.$ac_ext >&5
16156
16157 ac_header_preproc=no
16158 fi
16159
16160 rm -f conftest.err conftest.$ac_ext
16161 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16162 $as_echo "$ac_header_preproc" >&6; }
16163
16164 # So? What about this header?
16165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16166 yes:no: )
16167 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16168 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16169 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16170 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16171 ac_header_preproc=yes
16172 ;;
16173 no:yes:* )
16174 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16175 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16176 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16177 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16178 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16179 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16180 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16181 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16182 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16183 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16184 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16185 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16186
16187 ;;
16188 esac
16189 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16190 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16191 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16192 $as_echo_n "(cached) " >&6
16193 else
16194 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16195 fi
16196 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16197 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16198
16199 fi
16200 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16201 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16202 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16203 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16204 $as_echo_n "(cached) " >&6
16205 else
16206 ac_check_lib_save_LIBS=$LIBS
16207 LIBS="-lSM -lICE $LIBS"
16208 cat >conftest.$ac_ext <<_ACEOF
16209 /* confdefs.h. */
16210 _ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16214
16215 /* Override any GCC internal prototype to avoid an error.
16216 Use char because int might match the return type of a GCC
16217 builtin and then its argument prototype would still apply. */
16218 #ifdef __cplusplus
16219 extern "C"
16220 #endif
16221 char SmcOpenConnection ();
16222 int
16223 main ()
16224 {
16225 return SmcOpenConnection ();
16226 ;
16227 return 0;
16228 }
16229 _ACEOF
16230 rm -f conftest.$ac_objext conftest$ac_exeext
16231 if { (ac_try="$ac_link"
16232 case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16235 esac
16236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16237 $as_echo "$ac_try_echo") >&5
16238 (eval "$ac_link") 2>conftest.er1
16239 ac_status=$?
16240 grep -v '^ *+' conftest.er1 >conftest.err
16241 rm -f conftest.er1
16242 cat conftest.err >&5
16243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); } && {
16245 test -z "$ac_c_werror_flag" ||
16246 test ! -s conftest.err
16247 } && test -s conftest$ac_exeext && {
16248 test "$cross_compiling" = yes ||
16249 $as_test_x conftest$ac_exeext
16250 }; then
16251 ac_cv_lib_SM_SmcOpenConnection=yes
16252 else
16253 $as_echo "$as_me: failed program was:" >&5
16254 sed 's/^/| /' conftest.$ac_ext >&5
16255
16256 ac_cv_lib_SM_SmcOpenConnection=no
16257 fi
16258
16259 rm -rf conftest.dSYM
16260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16261 conftest$ac_exeext conftest.$ac_ext
16262 LIBS=$ac_check_lib_save_LIBS
16263 fi
16264 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16265 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16266 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16267 HAVE_X_SM=yes
16268 fi
16269
16270 fi
16271
16272
16273
16274 if test "${HAVE_X_SM}" = "yes"; then
16275
16276 cat >>confdefs.h <<\_ACEOF
16277 #define HAVE_X_SM 1
16278 _ACEOF
16279
16280 case "$LIBS" in
16281 *-lSM*) ;;
16282 *) LIBS="-lSM -lICE $LIBS" ;;
16283 esac
16284 fi
16285 fi
16286
16287 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16288 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16289 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16290 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16291 $as_echo_n "(cached) " >&6
16292 else
16293 cat >conftest.$ac_ext <<_ACEOF
16294 /* confdefs.h. */
16295 _ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h. */
16299 #include <netdb.h>
16300 int
16301 main ()
16302 {
16303 return h_errno;
16304 ;
16305 return 0;
16306 }
16307 _ACEOF
16308 rm -f conftest.$ac_objext conftest$ac_exeext
16309 if { (ac_try="$ac_link"
16310 case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16313 esac
16314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16315 $as_echo "$ac_try_echo") >&5
16316 (eval "$ac_link") 2>conftest.er1
16317 ac_status=$?
16318 grep -v '^ *+' conftest.er1 >conftest.err
16319 rm -f conftest.er1
16320 cat conftest.err >&5
16321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); } && {
16323 test -z "$ac_c_werror_flag" ||
16324 test ! -s conftest.err
16325 } && test -s conftest$ac_exeext && {
16326 test "$cross_compiling" = yes ||
16327 $as_test_x conftest$ac_exeext
16328 }; then
16329 emacs_cv_netdb_declares_h_errno=yes
16330 else
16331 $as_echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16333
16334 emacs_cv_netdb_declares_h_errno=no
16335 fi
16336
16337 rm -rf conftest.dSYM
16338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16339 conftest$ac_exeext conftest.$ac_ext
16340 fi
16341 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16342 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16343 if test $emacs_cv_netdb_declares_h_errno = yes; then
16344
16345 cat >>confdefs.h <<\_ACEOF
16346 #define HAVE_H_ERRNO 1
16347 _ACEOF
16348
16349 fi
16350
16351 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16352 # for constant arguments. Useless!
16353 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16354 $as_echo_n "checking for working alloca.h... " >&6; }
16355 if test "${ac_cv_working_alloca_h+set}" = set; then
16356 $as_echo_n "(cached) " >&6
16357 else
16358 cat >conftest.$ac_ext <<_ACEOF
16359 /* confdefs.h. */
16360 _ACEOF
16361 cat confdefs.h >>conftest.$ac_ext
16362 cat >>conftest.$ac_ext <<_ACEOF
16363 /* end confdefs.h. */
16364 #include <alloca.h>
16365 int
16366 main ()
16367 {
16368 char *p = (char *) alloca (2 * sizeof (int));
16369 if (p) return 0;
16370 ;
16371 return 0;
16372 }
16373 _ACEOF
16374 rm -f conftest.$ac_objext conftest$ac_exeext
16375 if { (ac_try="$ac_link"
16376 case "(($ac_try" in
16377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16378 *) ac_try_echo=$ac_try;;
16379 esac
16380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16381 $as_echo "$ac_try_echo") >&5
16382 (eval "$ac_link") 2>conftest.er1
16383 ac_status=$?
16384 grep -v '^ *+' conftest.er1 >conftest.err
16385 rm -f conftest.er1
16386 cat conftest.err >&5
16387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } && {
16389 test -z "$ac_c_werror_flag" ||
16390 test ! -s conftest.err
16391 } && test -s conftest$ac_exeext && {
16392 test "$cross_compiling" = yes ||
16393 $as_test_x conftest$ac_exeext
16394 }; then
16395 ac_cv_working_alloca_h=yes
16396 else
16397 $as_echo "$as_me: failed program was:" >&5
16398 sed 's/^/| /' conftest.$ac_ext >&5
16399
16400 ac_cv_working_alloca_h=no
16401 fi
16402
16403 rm -rf conftest.dSYM
16404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16405 conftest$ac_exeext conftest.$ac_ext
16406 fi
16407 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16408 $as_echo "$ac_cv_working_alloca_h" >&6; }
16409 if test $ac_cv_working_alloca_h = yes; then
16410
16411 cat >>confdefs.h <<\_ACEOF
16412 #define HAVE_ALLOCA_H 1
16413 _ACEOF
16414
16415 fi
16416
16417 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16418 $as_echo_n "checking for alloca... " >&6; }
16419 if test "${ac_cv_func_alloca_works+set}" = set; then
16420 $as_echo_n "(cached) " >&6
16421 else
16422 cat >conftest.$ac_ext <<_ACEOF
16423 /* confdefs.h. */
16424 _ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h. */
16428 #ifdef __GNUC__
16429 # define alloca __builtin_alloca
16430 #else
16431 # ifdef _MSC_VER
16432 # include <malloc.h>
16433 # define alloca _alloca
16434 # else
16435 # ifdef HAVE_ALLOCA_H
16436 # include <alloca.h>
16437 # else
16438 # ifdef _AIX
16439 #pragma alloca
16440 # else
16441 # ifndef alloca /* predefined by HP cc +Olibcalls */
16442 char *alloca ();
16443 # endif
16444 # endif
16445 # endif
16446 # endif
16447 #endif
16448
16449 int
16450 main ()
16451 {
16452 char *p = (char *) alloca (1);
16453 if (p) return 0;
16454 ;
16455 return 0;
16456 }
16457 _ACEOF
16458 rm -f conftest.$ac_objext conftest$ac_exeext
16459 if { (ac_try="$ac_link"
16460 case "(($ac_try" in
16461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462 *) ac_try_echo=$ac_try;;
16463 esac
16464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16465 $as_echo "$ac_try_echo") >&5
16466 (eval "$ac_link") 2>conftest.er1
16467 ac_status=$?
16468 grep -v '^ *+' conftest.er1 >conftest.err
16469 rm -f conftest.er1
16470 cat conftest.err >&5
16471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } && {
16473 test -z "$ac_c_werror_flag" ||
16474 test ! -s conftest.err
16475 } && test -s conftest$ac_exeext && {
16476 test "$cross_compiling" = yes ||
16477 $as_test_x conftest$ac_exeext
16478 }; then
16479 ac_cv_func_alloca_works=yes
16480 else
16481 $as_echo "$as_me: failed program was:" >&5
16482 sed 's/^/| /' conftest.$ac_ext >&5
16483
16484 ac_cv_func_alloca_works=no
16485 fi
16486
16487 rm -rf conftest.dSYM
16488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16489 conftest$ac_exeext conftest.$ac_ext
16490 fi
16491 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16492 $as_echo "$ac_cv_func_alloca_works" >&6; }
16493
16494 if test $ac_cv_func_alloca_works = yes; then
16495
16496 cat >>confdefs.h <<\_ACEOF
16497 #define HAVE_ALLOCA 1
16498 _ACEOF
16499
16500 else
16501 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16502 # that cause trouble. Some versions do not even contain alloca or
16503 # contain a buggy version. If you still want to use their alloca,
16504 # use ar to extract alloca.o from them instead of compiling alloca.c.
16505
16506 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16507
16508 cat >>confdefs.h <<\_ACEOF
16509 #define C_ALLOCA 1
16510 _ACEOF
16511
16512
16513 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16514 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16515 if test "${ac_cv_os_cray+set}" = set; then
16516 $as_echo_n "(cached) " >&6
16517 else
16518 cat >conftest.$ac_ext <<_ACEOF
16519 /* confdefs.h. */
16520 _ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16524 #if defined CRAY && ! defined CRAY2
16525 webecray
16526 #else
16527 wenotbecray
16528 #endif
16529
16530 _ACEOF
16531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16532 $EGREP "webecray" >/dev/null 2>&1; then
16533 ac_cv_os_cray=yes
16534 else
16535 ac_cv_os_cray=no
16536 fi
16537 rm -f conftest*
16538
16539 fi
16540 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16541 $as_echo "$ac_cv_os_cray" >&6; }
16542 if test $ac_cv_os_cray = yes; then
16543 for ac_func in _getb67 GETB67 getb67; do
16544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16545 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16546 $as_echo_n "checking for $ac_func... " >&6; }
16547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16548 $as_echo_n "(cached) " >&6
16549 else
16550 cat >conftest.$ac_ext <<_ACEOF
16551 /* confdefs.h. */
16552 _ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16558 #define $ac_func innocuous_$ac_func
16559
16560 /* System header to define __stub macros and hopefully few prototypes,
16561 which can conflict with char $ac_func (); below.
16562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16563 <limits.h> exists even on freestanding compilers. */
16564
16565 #ifdef __STDC__
16566 # include <limits.h>
16567 #else
16568 # include <assert.h>
16569 #endif
16570
16571 #undef $ac_func
16572
16573 /* Override any GCC internal prototype to avoid an error.
16574 Use char because int might match the return type of a GCC
16575 builtin and then its argument prototype would still apply. */
16576 #ifdef __cplusplus
16577 extern "C"
16578 #endif
16579 char $ac_func ();
16580 /* The GNU C library defines this for functions which it implements
16581 to always fail with ENOSYS. Some functions are actually named
16582 something starting with __ and the normal name is an alias. */
16583 #if defined __stub_$ac_func || defined __stub___$ac_func
16584 choke me
16585 #endif
16586
16587 int
16588 main ()
16589 {
16590 return $ac_func ();
16591 ;
16592 return 0;
16593 }
16594 _ACEOF
16595 rm -f conftest.$ac_objext conftest$ac_exeext
16596 if { (ac_try="$ac_link"
16597 case "(($ac_try" in
16598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16599 *) ac_try_echo=$ac_try;;
16600 esac
16601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16602 $as_echo "$ac_try_echo") >&5
16603 (eval "$ac_link") 2>conftest.er1
16604 ac_status=$?
16605 grep -v '^ *+' conftest.er1 >conftest.err
16606 rm -f conftest.er1
16607 cat conftest.err >&5
16608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); } && {
16610 test -z "$ac_c_werror_flag" ||
16611 test ! -s conftest.err
16612 } && test -s conftest$ac_exeext && {
16613 test "$cross_compiling" = yes ||
16614 $as_test_x conftest$ac_exeext
16615 }; then
16616 eval "$as_ac_var=yes"
16617 else
16618 $as_echo "$as_me: failed program was:" >&5
16619 sed 's/^/| /' conftest.$ac_ext >&5
16620
16621 eval "$as_ac_var=no"
16622 fi
16623
16624 rm -rf conftest.dSYM
16625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16626 conftest$ac_exeext conftest.$ac_ext
16627 fi
16628 ac_res=`eval 'as_val=${'$as_ac_var'}
16629 $as_echo "$as_val"'`
16630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16631 $as_echo "$ac_res" >&6; }
16632 if test `eval 'as_val=${'$as_ac_var'}
16633 $as_echo "$as_val"'` = yes; then
16634
16635 cat >>confdefs.h <<_ACEOF
16636 #define CRAY_STACKSEG_END $ac_func
16637 _ACEOF
16638
16639 break
16640 fi
16641
16642 done
16643 fi
16644
16645 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16646 $as_echo_n "checking stack direction for C alloca... " >&6; }
16647 if test "${ac_cv_c_stack_direction+set}" = set; then
16648 $as_echo_n "(cached) " >&6
16649 else
16650 if test "$cross_compiling" = yes; then
16651 ac_cv_c_stack_direction=0
16652 else
16653 cat >conftest.$ac_ext <<_ACEOF
16654 /* confdefs.h. */
16655 _ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16659 $ac_includes_default
16660 int
16661 find_stack_direction ()
16662 {
16663 static char *addr = 0;
16664 auto char dummy;
16665 if (addr == 0)
16666 {
16667 addr = &dummy;
16668 return find_stack_direction ();
16669 }
16670 else
16671 return (&dummy > addr) ? 1 : -1;
16672 }
16673
16674 int
16675 main ()
16676 {
16677 return find_stack_direction () < 0;
16678 }
16679 _ACEOF
16680 rm -f conftest$ac_exeext
16681 if { (ac_try="$ac_link"
16682 case "(($ac_try" in
16683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684 *) ac_try_echo=$ac_try;;
16685 esac
16686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16687 $as_echo "$ac_try_echo") >&5
16688 (eval "$ac_link") 2>&5
16689 ac_status=$?
16690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16692 { (case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16695 esac
16696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16697 $as_echo "$ac_try_echo") >&5
16698 (eval "$ac_try") 2>&5
16699 ac_status=$?
16700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; }; then
16702 ac_cv_c_stack_direction=1
16703 else
16704 $as_echo "$as_me: program exited with status $ac_status" >&5
16705 $as_echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16707
16708 ( exit $ac_status )
16709 ac_cv_c_stack_direction=-1
16710 fi
16711 rm -rf conftest.dSYM
16712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16713 fi
16714
16715
16716 fi
16717 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16718 $as_echo "$ac_cv_c_stack_direction" >&6; }
16719
16720 cat >>confdefs.h <<_ACEOF
16721 #define STACK_DIRECTION $ac_cv_c_stack_direction
16722 _ACEOF
16723
16724
16725 fi
16726
16727
16728 if test x"$ac_cv_func_alloca_works" != xyes; then
16729 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16730 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16731 { (exit 1); exit 1; }; }
16732 fi
16733
16734 # fmod, logb, and frexp are found in -lm on most systems.
16735 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16736
16737 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16738 $as_echo_n "checking for sqrt in -lm... " >&6; }
16739 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16740 $as_echo_n "(cached) " >&6
16741 else
16742 ac_check_lib_save_LIBS=$LIBS
16743 LIBS="-lm $LIBS"
16744 cat >conftest.$ac_ext <<_ACEOF
16745 /* confdefs.h. */
16746 _ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h. */
16750
16751 /* Override any GCC internal prototype to avoid an error.
16752 Use char because int might match the return type of a GCC
16753 builtin and then its argument prototype would still apply. */
16754 #ifdef __cplusplus
16755 extern "C"
16756 #endif
16757 char sqrt ();
16758 int
16759 main ()
16760 {
16761 return sqrt ();
16762 ;
16763 return 0;
16764 }
16765 _ACEOF
16766 rm -f conftest.$ac_objext conftest$ac_exeext
16767 if { (ac_try="$ac_link"
16768 case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16771 esac
16772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16773 $as_echo "$ac_try_echo") >&5
16774 (eval "$ac_link") 2>conftest.er1
16775 ac_status=$?
16776 grep -v '^ *+' conftest.er1 >conftest.err
16777 rm -f conftest.er1
16778 cat conftest.err >&5
16779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); } && {
16781 test -z "$ac_c_werror_flag" ||
16782 test ! -s conftest.err
16783 } && test -s conftest$ac_exeext && {
16784 test "$cross_compiling" = yes ||
16785 $as_test_x conftest$ac_exeext
16786 }; then
16787 ac_cv_lib_m_sqrt=yes
16788 else
16789 $as_echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16791
16792 ac_cv_lib_m_sqrt=no
16793 fi
16794
16795 rm -rf conftest.dSYM
16796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16797 conftest$ac_exeext conftest.$ac_ext
16798 LIBS=$ac_check_lib_save_LIBS
16799 fi
16800 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16801 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16802 if test $ac_cv_lib_m_sqrt = yes; then
16803 cat >>confdefs.h <<_ACEOF
16804 #define HAVE_LIBM 1
16805 _ACEOF
16806
16807 LIBS="-lm $LIBS"
16808
16809 fi
16810
16811
16812 # Check for mail-locking functions in a "mail" library. Probably this should
16813 # have the same check as for liblockfile below.
16814 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16815 $as_echo_n "checking for maillock in -lmail... " >&6; }
16816 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16817 $as_echo_n "(cached) " >&6
16818 else
16819 ac_check_lib_save_LIBS=$LIBS
16820 LIBS="-lmail $LIBS"
16821 cat >conftest.$ac_ext <<_ACEOF
16822 /* confdefs.h. */
16823 _ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16827
16828 /* Override any GCC internal prototype to avoid an error.
16829 Use char because int might match the return type of a GCC
16830 builtin and then its argument prototype would still apply. */
16831 #ifdef __cplusplus
16832 extern "C"
16833 #endif
16834 char maillock ();
16835 int
16836 main ()
16837 {
16838 return maillock ();
16839 ;
16840 return 0;
16841 }
16842 _ACEOF
16843 rm -f conftest.$ac_objext conftest$ac_exeext
16844 if { (ac_try="$ac_link"
16845 case "(($ac_try" in
16846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847 *) ac_try_echo=$ac_try;;
16848 esac
16849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16850 $as_echo "$ac_try_echo") >&5
16851 (eval "$ac_link") 2>conftest.er1
16852 ac_status=$?
16853 grep -v '^ *+' conftest.er1 >conftest.err
16854 rm -f conftest.er1
16855 cat conftest.err >&5
16856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } && {
16858 test -z "$ac_c_werror_flag" ||
16859 test ! -s conftest.err
16860 } && test -s conftest$ac_exeext && {
16861 test "$cross_compiling" = yes ||
16862 $as_test_x conftest$ac_exeext
16863 }; then
16864 ac_cv_lib_mail_maillock=yes
16865 else
16866 $as_echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16868
16869 ac_cv_lib_mail_maillock=no
16870 fi
16871
16872 rm -rf conftest.dSYM
16873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16874 conftest$ac_exeext conftest.$ac_ext
16875 LIBS=$ac_check_lib_save_LIBS
16876 fi
16877 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16878 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16879 if test $ac_cv_lib_mail_maillock = yes; then
16880 have_mail=yes
16881 else
16882 have_mail=no
16883 fi
16884
16885 if test $have_mail = yes; then
16886 LIBS_MAIL=-lmail
16887 LIBS="$LIBS_MAIL $LIBS"
16888
16889 cat >>confdefs.h <<\_ACEOF
16890 #define HAVE_LIBMAIL 1
16891 _ACEOF
16892
16893 else
16894 LIBS_MAIL=
16895 fi
16896 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16897 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16898 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16899 $as_echo_n "(cached) " >&6
16900 else
16901 ac_check_lib_save_LIBS=$LIBS
16902 LIBS="-llockfile $LIBS"
16903 cat >conftest.$ac_ext <<_ACEOF
16904 /* confdefs.h. */
16905 _ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16909
16910 /* Override any GCC internal prototype to avoid an error.
16911 Use char because int might match the return type of a GCC
16912 builtin and then its argument prototype would still apply. */
16913 #ifdef __cplusplus
16914 extern "C"
16915 #endif
16916 char maillock ();
16917 int
16918 main ()
16919 {
16920 return maillock ();
16921 ;
16922 return 0;
16923 }
16924 _ACEOF
16925 rm -f conftest.$ac_objext conftest$ac_exeext
16926 if { (ac_try="$ac_link"
16927 case "(($ac_try" in
16928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16929 *) ac_try_echo=$ac_try;;
16930 esac
16931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16932 $as_echo "$ac_try_echo") >&5
16933 (eval "$ac_link") 2>conftest.er1
16934 ac_status=$?
16935 grep -v '^ *+' conftest.er1 >conftest.err
16936 rm -f conftest.er1
16937 cat conftest.err >&5
16938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } && {
16940 test -z "$ac_c_werror_flag" ||
16941 test ! -s conftest.err
16942 } && test -s conftest$ac_exeext && {
16943 test "$cross_compiling" = yes ||
16944 $as_test_x conftest$ac_exeext
16945 }; then
16946 ac_cv_lib_lockfile_maillock=yes
16947 else
16948 $as_echo "$as_me: failed program was:" >&5
16949 sed 's/^/| /' conftest.$ac_ext >&5
16950
16951 ac_cv_lib_lockfile_maillock=no
16952 fi
16953
16954 rm -rf conftest.dSYM
16955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16956 conftest$ac_exeext conftest.$ac_ext
16957 LIBS=$ac_check_lib_save_LIBS
16958 fi
16959 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16960 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16961 if test $ac_cv_lib_lockfile_maillock = yes; then
16962 have_lockfile=yes
16963 else
16964 have_lockfile=no
16965 fi
16966
16967 if test $have_lockfile = yes; then
16968 LIBS_MAIL=-llockfile
16969 LIBS="$LIBS_MAIL $LIBS"
16970
16971 cat >>confdefs.h <<\_ACEOF
16972 #define HAVE_LIBLOCKFILE 1
16973 _ACEOF
16974
16975 else
16976 # If we have the shared liblockfile, assume we must use it for mail
16977 # locking (e.g. Debian). If we couldn't link against liblockfile
16978 # (no liblockfile.a installed), ensure that we don't need to.
16979 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16980 set dummy liblockfile.so; ac_word=$2
16981 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16982 $as_echo_n "checking for $ac_word... " >&6; }
16983 if test "${ac_cv_prog_liblockfile+set}" = set; then
16984 $as_echo_n "(cached) " >&6
16985 else
16986 if test -n "$liblockfile"; then
16987 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16988 else
16989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16990 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16991 for as_dir in $as_dummy
16992 do
16993 IFS=$as_save_IFS
16994 test -z "$as_dir" && as_dir=.
16995 for ac_exec_ext in '' $ac_executable_extensions; do
16996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16997 ac_cv_prog_liblockfile="yes"
16998 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16999 break 2
17000 fi
17001 done
17002 done
17003 IFS=$as_save_IFS
17004
17005 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17006 fi
17007 fi
17008 liblockfile=$ac_cv_prog_liblockfile
17009 if test -n "$liblockfile"; then
17010 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17011 $as_echo "$liblockfile" >&6; }
17012 else
17013 { $as_echo "$as_me:$LINENO: result: no" >&5
17014 $as_echo "no" >&6; }
17015 fi
17016
17017
17018 if test $ac_cv_prog_liblockfile = yes; then
17019 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17020 This probably means that movemail could lose mail.
17021 There may be a \`development' package to install containing liblockfile." >&5
17022 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17023 This probably means that movemail could lose mail.
17024 There may be a \`development' package to install containing liblockfile." >&2;}
17025 { (exit 1); exit 1; }; }
17026 fi
17027 fi
17028
17029 for ac_func in touchlock
17030 do
17031 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17032 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17033 $as_echo_n "checking for $ac_func... " >&6; }
17034 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17035 $as_echo_n "(cached) " >&6
17036 else
17037 cat >conftest.$ac_ext <<_ACEOF
17038 /* confdefs.h. */
17039 _ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h. */
17043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17045 #define $ac_func innocuous_$ac_func
17046
17047 /* System header to define __stub macros and hopefully few prototypes,
17048 which can conflict with char $ac_func (); below.
17049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17050 <limits.h> exists even on freestanding compilers. */
17051
17052 #ifdef __STDC__
17053 # include <limits.h>
17054 #else
17055 # include <assert.h>
17056 #endif
17057
17058 #undef $ac_func
17059
17060 /* Override any GCC internal prototype to avoid an error.
17061 Use char because int might match the return type of a GCC
17062 builtin and then its argument prototype would still apply. */
17063 #ifdef __cplusplus
17064 extern "C"
17065 #endif
17066 char $ac_func ();
17067 /* The GNU C library defines this for functions which it implements
17068 to always fail with ENOSYS. Some functions are actually named
17069 something starting with __ and the normal name is an alias. */
17070 #if defined __stub_$ac_func || defined __stub___$ac_func
17071 choke me
17072 #endif
17073
17074 int
17075 main ()
17076 {
17077 return $ac_func ();
17078 ;
17079 return 0;
17080 }
17081 _ACEOF
17082 rm -f conftest.$ac_objext conftest$ac_exeext
17083 if { (ac_try="$ac_link"
17084 case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17087 esac
17088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17089 $as_echo "$ac_try_echo") >&5
17090 (eval "$ac_link") 2>conftest.er1
17091 ac_status=$?
17092 grep -v '^ *+' conftest.er1 >conftest.err
17093 rm -f conftest.er1
17094 cat conftest.err >&5
17095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } && {
17097 test -z "$ac_c_werror_flag" ||
17098 test ! -s conftest.err
17099 } && test -s conftest$ac_exeext && {
17100 test "$cross_compiling" = yes ||
17101 $as_test_x conftest$ac_exeext
17102 }; then
17103 eval "$as_ac_var=yes"
17104 else
17105 $as_echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17107
17108 eval "$as_ac_var=no"
17109 fi
17110
17111 rm -rf conftest.dSYM
17112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17113 conftest$ac_exeext conftest.$ac_ext
17114 fi
17115 ac_res=`eval 'as_val=${'$as_ac_var'}
17116 $as_echo "$as_val"'`
17117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17118 $as_echo "$ac_res" >&6; }
17119 if test `eval 'as_val=${'$as_ac_var'}
17120 $as_echo "$as_val"'` = yes; then
17121 cat >>confdefs.h <<_ACEOF
17122 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17123 _ACEOF
17124
17125 fi
17126 done
17127
17128
17129 for ac_header in maillock.h
17130 do
17131 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17133 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17134 $as_echo_n "checking for $ac_header... " >&6; }
17135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17136 $as_echo_n "(cached) " >&6
17137 fi
17138 ac_res=`eval 'as_val=${'$as_ac_Header'}
17139 $as_echo "$as_val"'`
17140 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17141 $as_echo "$ac_res" >&6; }
17142 else
17143 # Is the header compilable?
17144 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17145 $as_echo_n "checking $ac_header usability... " >&6; }
17146 cat >conftest.$ac_ext <<_ACEOF
17147 /* confdefs.h. */
17148 _ACEOF
17149 cat confdefs.h >>conftest.$ac_ext
17150 cat >>conftest.$ac_ext <<_ACEOF
17151 /* end confdefs.h. */
17152 $ac_includes_default
17153 #include <$ac_header>
17154 _ACEOF
17155 rm -f conftest.$ac_objext
17156 if { (ac_try="$ac_compile"
17157 case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17160 esac
17161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17162 $as_echo "$ac_try_echo") >&5
17163 (eval "$ac_compile") 2>conftest.er1
17164 ac_status=$?
17165 grep -v '^ *+' conftest.er1 >conftest.err
17166 rm -f conftest.er1
17167 cat conftest.err >&5
17168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } && {
17170 test -z "$ac_c_werror_flag" ||
17171 test ! -s conftest.err
17172 } && test -s conftest.$ac_objext; then
17173 ac_header_compiler=yes
17174 else
17175 $as_echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17177
17178 ac_header_compiler=no
17179 fi
17180
17181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17182 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17183 $as_echo "$ac_header_compiler" >&6; }
17184
17185 # Is the header present?
17186 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17187 $as_echo_n "checking $ac_header presence... " >&6; }
17188 cat >conftest.$ac_ext <<_ACEOF
17189 /* confdefs.h. */
17190 _ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h. */
17194 #include <$ac_header>
17195 _ACEOF
17196 if { (ac_try="$ac_cpp conftest.$ac_ext"
17197 case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17200 esac
17201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17202 $as_echo "$ac_try_echo") >&5
17203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17204 ac_status=$?
17205 grep -v '^ *+' conftest.er1 >conftest.err
17206 rm -f conftest.er1
17207 cat conftest.err >&5
17208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } >/dev/null && {
17210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17211 test ! -s conftest.err
17212 }; then
17213 ac_header_preproc=yes
17214 else
17215 $as_echo "$as_me: failed program was:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17217
17218 ac_header_preproc=no
17219 fi
17220
17221 rm -f conftest.err conftest.$ac_ext
17222 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17223 $as_echo "$ac_header_preproc" >&6; }
17224
17225 # So? What about this header?
17226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17227 yes:no: )
17228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17229 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17231 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17232 ac_header_preproc=yes
17233 ;;
17234 no:yes:* )
17235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17236 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17238 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17240 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17242 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17244 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17246 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17247
17248 ;;
17249 esac
17250 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17251 $as_echo_n "checking for $ac_header... " >&6; }
17252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17253 $as_echo_n "(cached) " >&6
17254 else
17255 eval "$as_ac_Header=\$ac_header_preproc"
17256 fi
17257 ac_res=`eval 'as_val=${'$as_ac_Header'}
17258 $as_echo "$as_val"'`
17259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17260 $as_echo "$ac_res" >&6; }
17261
17262 fi
17263 if test `eval 'as_val=${'$as_ac_Header'}
17264 $as_echo "$as_val"'` = yes; then
17265 cat >>confdefs.h <<_ACEOF
17266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17267 _ACEOF
17268
17269 fi
17270
17271 done
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346 for ac_func in gethostname getdomainname dup2 \
17347 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17348 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17349 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17350 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17351 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17352 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17353 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17354 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17355 cfmakeraw cfsetspeed
17356 do
17357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17358 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17359 $as_echo_n "checking for $ac_func... " >&6; }
17360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17361 $as_echo_n "(cached) " >&6
17362 else
17363 cat >conftest.$ac_ext <<_ACEOF
17364 /* confdefs.h. */
17365 _ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h. */
17369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17371 #define $ac_func innocuous_$ac_func
17372
17373 /* System header to define __stub macros and hopefully few prototypes,
17374 which can conflict with char $ac_func (); below.
17375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17376 <limits.h> exists even on freestanding compilers. */
17377
17378 #ifdef __STDC__
17379 # include <limits.h>
17380 #else
17381 # include <assert.h>
17382 #endif
17383
17384 #undef $ac_func
17385
17386 /* Override any GCC internal prototype to avoid an error.
17387 Use char because int might match the return type of a GCC
17388 builtin and then its argument prototype would still apply. */
17389 #ifdef __cplusplus
17390 extern "C"
17391 #endif
17392 char $ac_func ();
17393 /* The GNU C library defines this for functions which it implements
17394 to always fail with ENOSYS. Some functions are actually named
17395 something starting with __ and the normal name is an alias. */
17396 #if defined __stub_$ac_func || defined __stub___$ac_func
17397 choke me
17398 #endif
17399
17400 int
17401 main ()
17402 {
17403 return $ac_func ();
17404 ;
17405 return 0;
17406 }
17407 _ACEOF
17408 rm -f conftest.$ac_objext conftest$ac_exeext
17409 if { (ac_try="$ac_link"
17410 case "(($ac_try" in
17411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412 *) ac_try_echo=$ac_try;;
17413 esac
17414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17415 $as_echo "$ac_try_echo") >&5
17416 (eval "$ac_link") 2>conftest.er1
17417 ac_status=$?
17418 grep -v '^ *+' conftest.er1 >conftest.err
17419 rm -f conftest.er1
17420 cat conftest.err >&5
17421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } && {
17423 test -z "$ac_c_werror_flag" ||
17424 test ! -s conftest.err
17425 } && test -s conftest$ac_exeext && {
17426 test "$cross_compiling" = yes ||
17427 $as_test_x conftest$ac_exeext
17428 }; then
17429 eval "$as_ac_var=yes"
17430 else
17431 $as_echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17433
17434 eval "$as_ac_var=no"
17435 fi
17436
17437 rm -rf conftest.dSYM
17438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17439 conftest$ac_exeext conftest.$ac_ext
17440 fi
17441 ac_res=`eval 'as_val=${'$as_ac_var'}
17442 $as_echo "$as_val"'`
17443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17444 $as_echo "$ac_res" >&6; }
17445 if test `eval 'as_val=${'$as_ac_var'}
17446 $as_echo "$as_val"'` = yes; then
17447 cat >>confdefs.h <<_ACEOF
17448 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17449 _ACEOF
17450
17451 fi
17452 done
17453
17454
17455
17456 for ac_header in sys/un.h
17457 do
17458 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17460 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17461 $as_echo_n "checking for $ac_header... " >&6; }
17462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17463 $as_echo_n "(cached) " >&6
17464 fi
17465 ac_res=`eval 'as_val=${'$as_ac_Header'}
17466 $as_echo "$as_val"'`
17467 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17468 $as_echo "$ac_res" >&6; }
17469 else
17470 # Is the header compilable?
17471 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17472 $as_echo_n "checking $ac_header usability... " >&6; }
17473 cat >conftest.$ac_ext <<_ACEOF
17474 /* confdefs.h. */
17475 _ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h. */
17479 $ac_includes_default
17480 #include <$ac_header>
17481 _ACEOF
17482 rm -f conftest.$ac_objext
17483 if { (ac_try="$ac_compile"
17484 case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17487 esac
17488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17489 $as_echo "$ac_try_echo") >&5
17490 (eval "$ac_compile") 2>conftest.er1
17491 ac_status=$?
17492 grep -v '^ *+' conftest.er1 >conftest.err
17493 rm -f conftest.er1
17494 cat conftest.err >&5
17495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); } && {
17497 test -z "$ac_c_werror_flag" ||
17498 test ! -s conftest.err
17499 } && test -s conftest.$ac_objext; then
17500 ac_header_compiler=yes
17501 else
17502 $as_echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17504
17505 ac_header_compiler=no
17506 fi
17507
17508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17509 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17510 $as_echo "$ac_header_compiler" >&6; }
17511
17512 # Is the header present?
17513 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17514 $as_echo_n "checking $ac_header presence... " >&6; }
17515 cat >conftest.$ac_ext <<_ACEOF
17516 /* confdefs.h. */
17517 _ACEOF
17518 cat confdefs.h >>conftest.$ac_ext
17519 cat >>conftest.$ac_ext <<_ACEOF
17520 /* end confdefs.h. */
17521 #include <$ac_header>
17522 _ACEOF
17523 if { (ac_try="$ac_cpp conftest.$ac_ext"
17524 case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17527 esac
17528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17529 $as_echo "$ac_try_echo") >&5
17530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17531 ac_status=$?
17532 grep -v '^ *+' conftest.er1 >conftest.err
17533 rm -f conftest.er1
17534 cat conftest.err >&5
17535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); } >/dev/null && {
17537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17538 test ! -s conftest.err
17539 }; then
17540 ac_header_preproc=yes
17541 else
17542 $as_echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17544
17545 ac_header_preproc=no
17546 fi
17547
17548 rm -f conftest.err conftest.$ac_ext
17549 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17550 $as_echo "$ac_header_preproc" >&6; }
17551
17552 # So? What about this header?
17553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17554 yes:no: )
17555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17556 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17558 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17559 ac_header_preproc=yes
17560 ;;
17561 no:yes:* )
17562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17563 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17565 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17567 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17569 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17571 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17573 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17574
17575 ;;
17576 esac
17577 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17578 $as_echo_n "checking for $ac_header... " >&6; }
17579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17580 $as_echo_n "(cached) " >&6
17581 else
17582 eval "$as_ac_Header=\$ac_header_preproc"
17583 fi
17584 ac_res=`eval 'as_val=${'$as_ac_Header'}
17585 $as_echo "$as_val"'`
17586 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17587 $as_echo "$ac_res" >&6; }
17588
17589 fi
17590 if test `eval 'as_val=${'$as_ac_Header'}
17591 $as_echo "$as_val"'` = yes; then
17592 cat >>confdefs.h <<_ACEOF
17593 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17594 _ACEOF
17595
17596 fi
17597
17598 done
17599
17600
17601
17602
17603
17604
17605 for ac_header in $ac_header_list
17606 do
17607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17609 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17610 $as_echo_n "checking for $ac_header... " >&6; }
17611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17612 $as_echo_n "(cached) " >&6
17613 fi
17614 ac_res=`eval 'as_val=${'$as_ac_Header'}
17615 $as_echo "$as_val"'`
17616 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17617 $as_echo "$ac_res" >&6; }
17618 else
17619 # Is the header compilable?
17620 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17621 $as_echo_n "checking $ac_header usability... " >&6; }
17622 cat >conftest.$ac_ext <<_ACEOF
17623 /* confdefs.h. */
17624 _ACEOF
17625 cat confdefs.h >>conftest.$ac_ext
17626 cat >>conftest.$ac_ext <<_ACEOF
17627 /* end confdefs.h. */
17628 $ac_includes_default
17629 #include <$ac_header>
17630 _ACEOF
17631 rm -f conftest.$ac_objext
17632 if { (ac_try="$ac_compile"
17633 case "(($ac_try" in
17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635 *) ac_try_echo=$ac_try;;
17636 esac
17637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17638 $as_echo "$ac_try_echo") >&5
17639 (eval "$ac_compile") 2>conftest.er1
17640 ac_status=$?
17641 grep -v '^ *+' conftest.er1 >conftest.err
17642 rm -f conftest.er1
17643 cat conftest.err >&5
17644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } && {
17646 test -z "$ac_c_werror_flag" ||
17647 test ! -s conftest.err
17648 } && test -s conftest.$ac_objext; then
17649 ac_header_compiler=yes
17650 else
17651 $as_echo "$as_me: failed program was:" >&5
17652 sed 's/^/| /' conftest.$ac_ext >&5
17653
17654 ac_header_compiler=no
17655 fi
17656
17657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17658 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17659 $as_echo "$ac_header_compiler" >&6; }
17660
17661 # Is the header present?
17662 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17663 $as_echo_n "checking $ac_header presence... " >&6; }
17664 cat >conftest.$ac_ext <<_ACEOF
17665 /* confdefs.h. */
17666 _ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17670 #include <$ac_header>
17671 _ACEOF
17672 if { (ac_try="$ac_cpp conftest.$ac_ext"
17673 case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17676 esac
17677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17678 $as_echo "$ac_try_echo") >&5
17679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17680 ac_status=$?
17681 grep -v '^ *+' conftest.er1 >conftest.err
17682 rm -f conftest.er1
17683 cat conftest.err >&5
17684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } >/dev/null && {
17686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17687 test ! -s conftest.err
17688 }; then
17689 ac_header_preproc=yes
17690 else
17691 $as_echo "$as_me: failed program was:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17693
17694 ac_header_preproc=no
17695 fi
17696
17697 rm -f conftest.err conftest.$ac_ext
17698 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17699 $as_echo "$ac_header_preproc" >&6; }
17700
17701 # So? What about this header?
17702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17703 yes:no: )
17704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17705 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17707 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17708 ac_header_preproc=yes
17709 ;;
17710 no:yes:* )
17711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17712 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17714 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17716 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17718 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17719 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17720 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17722 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17723
17724 ;;
17725 esac
17726 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17727 $as_echo_n "checking for $ac_header... " >&6; }
17728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17729 $as_echo_n "(cached) " >&6
17730 else
17731 eval "$as_ac_Header=\$ac_header_preproc"
17732 fi
17733 ac_res=`eval 'as_val=${'$as_ac_Header'}
17734 $as_echo "$as_val"'`
17735 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17736 $as_echo "$ac_res" >&6; }
17737
17738 fi
17739 if test `eval 'as_val=${'$as_ac_Header'}
17740 $as_echo "$as_val"'` = yes; then
17741 cat >>confdefs.h <<_ACEOF
17742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17743 _ACEOF
17744
17745 fi
17746
17747 done
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757 for ac_func in $ac_func_list
17758 do
17759 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17760 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17761 $as_echo_n "checking for $ac_func... " >&6; }
17762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17763 $as_echo_n "(cached) " >&6
17764 else
17765 cat >conftest.$ac_ext <<_ACEOF
17766 /* confdefs.h. */
17767 _ACEOF
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h. */
17771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17773 #define $ac_func innocuous_$ac_func
17774
17775 /* System header to define __stub macros and hopefully few prototypes,
17776 which can conflict with char $ac_func (); below.
17777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17778 <limits.h> exists even on freestanding compilers. */
17779
17780 #ifdef __STDC__
17781 # include <limits.h>
17782 #else
17783 # include <assert.h>
17784 #endif
17785
17786 #undef $ac_func
17787
17788 /* Override any GCC internal prototype to avoid an error.
17789 Use char because int might match the return type of a GCC
17790 builtin and then its argument prototype would still apply. */
17791 #ifdef __cplusplus
17792 extern "C"
17793 #endif
17794 char $ac_func ();
17795 /* The GNU C library defines this for functions which it implements
17796 to always fail with ENOSYS. Some functions are actually named
17797 something starting with __ and the normal name is an alias. */
17798 #if defined __stub_$ac_func || defined __stub___$ac_func
17799 choke me
17800 #endif
17801
17802 int
17803 main ()
17804 {
17805 return $ac_func ();
17806 ;
17807 return 0;
17808 }
17809 _ACEOF
17810 rm -f conftest.$ac_objext conftest$ac_exeext
17811 if { (ac_try="$ac_link"
17812 case "(($ac_try" in
17813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814 *) ac_try_echo=$ac_try;;
17815 esac
17816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17817 $as_echo "$ac_try_echo") >&5
17818 (eval "$ac_link") 2>conftest.er1
17819 ac_status=$?
17820 grep -v '^ *+' conftest.er1 >conftest.err
17821 rm -f conftest.er1
17822 cat conftest.err >&5
17823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } && {
17825 test -z "$ac_c_werror_flag" ||
17826 test ! -s conftest.err
17827 } && test -s conftest$ac_exeext && {
17828 test "$cross_compiling" = yes ||
17829 $as_test_x conftest$ac_exeext
17830 }; then
17831 eval "$as_ac_var=yes"
17832 else
17833 $as_echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17835
17836 eval "$as_ac_var=no"
17837 fi
17838
17839 rm -rf conftest.dSYM
17840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17841 conftest$ac_exeext conftest.$ac_ext
17842 fi
17843 ac_res=`eval 'as_val=${'$as_ac_var'}
17844 $as_echo "$as_val"'`
17845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17846 $as_echo "$ac_res" >&6; }
17847 if test `eval 'as_val=${'$as_ac_var'}
17848 $as_echo "$as_val"'` = yes; then
17849 cat >>confdefs.h <<_ACEOF
17850 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17851 _ACEOF
17852
17853 fi
17854 done
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17873 $as_echo_n "checking for working mktime... " >&6; }
17874 if test "${ac_cv_func_working_mktime+set}" = set; then
17875 $as_echo_n "(cached) " >&6
17876 else
17877 if test "$cross_compiling" = yes; then
17878 ac_cv_func_working_mktime=no
17879 else
17880 cat >conftest.$ac_ext <<_ACEOF
17881 /* confdefs.h. */
17882 _ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17886 /* Test program from Paul Eggert and Tony Leneis. */
17887 #ifdef TIME_WITH_SYS_TIME
17888 # include <sys/time.h>
17889 # include <time.h>
17890 #else
17891 # ifdef HAVE_SYS_TIME_H
17892 # include <sys/time.h>
17893 # else
17894 # include <time.h>
17895 # endif
17896 #endif
17897
17898 #include <limits.h>
17899 #include <stdlib.h>
17900
17901 #ifdef HAVE_UNISTD_H
17902 # include <unistd.h>
17903 #endif
17904
17905 #ifndef HAVE_ALARM
17906 # define alarm(X) /* empty */
17907 #endif
17908
17909 /* Work around redefinition to rpl_putenv by other config tests. */
17910 #undef putenv
17911
17912 static time_t time_t_max;
17913 static time_t time_t_min;
17914
17915 /* Values we'll use to set the TZ environment variable. */
17916 static char *tz_strings[] = {
17917 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17918 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17919 };
17920 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17921
17922 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17923 Based on a problem report from Andreas Jaeger. */
17924 static int
17925 spring_forward_gap ()
17926 {
17927 /* glibc (up to about 1998-10-07) failed this test. */
17928 struct tm tm;
17929
17930 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17931 instead of "TZ=America/Vancouver" in order to detect the bug even
17932 on systems that don't support the Olson extension, or don't have the
17933 full zoneinfo tables installed. */
17934 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17935
17936 tm.tm_year = 98;
17937 tm.tm_mon = 3;
17938 tm.tm_mday = 5;
17939 tm.tm_hour = 2;
17940 tm.tm_min = 0;
17941 tm.tm_sec = 0;
17942 tm.tm_isdst = -1;
17943 return mktime (&tm) != (time_t) -1;
17944 }
17945
17946 static int
17947 mktime_test1 (now)
17948 time_t now;
17949 {
17950 struct tm *lt;
17951 return ! (lt = localtime (&now)) || mktime (lt) == now;
17952 }
17953
17954 static int
17955 mktime_test (now)
17956 time_t now;
17957 {
17958 return (mktime_test1 (now)
17959 && mktime_test1 ((time_t) (time_t_max - now))
17960 && mktime_test1 ((time_t) (time_t_min + now)));
17961 }
17962
17963 static int
17964 irix_6_4_bug ()
17965 {
17966 /* Based on code from Ariel Faigon. */
17967 struct tm tm;
17968 tm.tm_year = 96;
17969 tm.tm_mon = 3;
17970 tm.tm_mday = 0;
17971 tm.tm_hour = 0;
17972 tm.tm_min = 0;
17973 tm.tm_sec = 0;
17974 tm.tm_isdst = -1;
17975 mktime (&tm);
17976 return tm.tm_mon == 2 && tm.tm_mday == 31;
17977 }
17978
17979 static int
17980 bigtime_test (j)
17981 int j;
17982 {
17983 struct tm tm;
17984 time_t now;
17985 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17986 now = mktime (&tm);
17987 if (now != (time_t) -1)
17988 {
17989 struct tm *lt = localtime (&now);
17990 if (! (lt
17991 && lt->tm_year == tm.tm_year
17992 && lt->tm_mon == tm.tm_mon
17993 && lt->tm_mday == tm.tm_mday
17994 && lt->tm_hour == tm.tm_hour
17995 && lt->tm_min == tm.tm_min
17996 && lt->tm_sec == tm.tm_sec
17997 && lt->tm_yday == tm.tm_yday
17998 && lt->tm_wday == tm.tm_wday
17999 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18000 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18001 return 0;
18002 }
18003 return 1;
18004 }
18005
18006 static int
18007 year_2050_test ()
18008 {
18009 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18010 ignoring leap seconds. */
18011 unsigned long int answer = 2527315200UL;
18012
18013 struct tm tm;
18014 time_t t;
18015 tm.tm_year = 2050 - 1900;
18016 tm.tm_mon = 2 - 1;
18017 tm.tm_mday = 1;
18018 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18019 tm.tm_isdst = -1;
18020
18021 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18022 instead of "TZ=America/Vancouver" in order to detect the bug even
18023 on systems that don't support the Olson extension, or don't have the
18024 full zoneinfo tables installed. */
18025 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18026
18027 t = mktime (&tm);
18028
18029 /* Check that the result is either a failure, or close enough
18030 to the correct answer that we can assume the discrepancy is
18031 due to leap seconds. */
18032 return (t == (time_t) -1
18033 || (0 < t && answer - 120 <= t && t <= answer + 120));
18034 }
18035
18036 int
18037 main ()
18038 {
18039 time_t t, delta;
18040 int i, j;
18041
18042 /* This test makes some buggy mktime implementations loop.
18043 Give up after 60 seconds; a mktime slower than that
18044 isn't worth using anyway. */
18045 alarm (60);
18046
18047 for (;;)
18048 {
18049 t = (time_t_max << 1) + 1;
18050 if (t <= time_t_max)
18051 break;
18052 time_t_max = t;
18053 }
18054 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18055
18056 delta = time_t_max / 997; /* a suitable prime number */
18057 for (i = 0; i < N_STRINGS; i++)
18058 {
18059 if (tz_strings[i])
18060 putenv (tz_strings[i]);
18061
18062 for (t = 0; t <= time_t_max - delta; t += delta)
18063 if (! mktime_test (t))
18064 return 1;
18065 if (! (mktime_test ((time_t) 1)
18066 && mktime_test ((time_t) (60 * 60))
18067 && mktime_test ((time_t) (60 * 60 * 24))))
18068 return 1;
18069
18070 for (j = 1; ; j <<= 1)
18071 if (! bigtime_test (j))
18072 return 1;
18073 else if (INT_MAX / 2 < j)
18074 break;
18075 if (! bigtime_test (INT_MAX))
18076 return 1;
18077 }
18078 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18079 }
18080 _ACEOF
18081 rm -f conftest$ac_exeext
18082 if { (ac_try="$ac_link"
18083 case "(($ac_try" in
18084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18085 *) ac_try_echo=$ac_try;;
18086 esac
18087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18088 $as_echo "$ac_try_echo") >&5
18089 (eval "$ac_link") 2>&5
18090 ac_status=$?
18091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18093 { (case "(($ac_try" in
18094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095 *) ac_try_echo=$ac_try;;
18096 esac
18097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18098 $as_echo "$ac_try_echo") >&5
18099 (eval "$ac_try") 2>&5
18100 ac_status=$?
18101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; }; then
18103 ac_cv_func_working_mktime=yes
18104 else
18105 $as_echo "$as_me: program exited with status $ac_status" >&5
18106 $as_echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18108
18109 ( exit $ac_status )
18110 ac_cv_func_working_mktime=no
18111 fi
18112 rm -rf conftest.dSYM
18113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18114 fi
18115
18116
18117 fi
18118 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18119 $as_echo "$ac_cv_func_working_mktime" >&6; }
18120 if test $ac_cv_func_working_mktime = no; then
18121 case " $LIBOBJS " in
18122 *" mktime.$ac_objext "* ) ;;
18123 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18124 ;;
18125 esac
18126
18127 fi
18128
18129 if test "$ac_cv_func_working_mktime" = no; then
18130
18131 cat >>confdefs.h <<\_ACEOF
18132 #define BROKEN_MKTIME 1
18133 _ACEOF
18134
18135 fi
18136
18137 ac_have_func=no # yes means we've found a way to get the load average.
18138
18139 # Make sure getloadavg.c is where it belongs, at configure-time.
18140 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18141 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18142 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18143 { (exit 1); exit 1; }; }
18144
18145 ac_save_LIBS=$LIBS
18146
18147 # Check for getloadavg, but be sure not to touch the cache variable.
18148 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18149 $as_echo_n "checking for getloadavg... " >&6; }
18150 if test "${ac_cv_func_getloadavg+set}" = set; then
18151 $as_echo_n "(cached) " >&6
18152 else
18153 cat >conftest.$ac_ext <<_ACEOF
18154 /* confdefs.h. */
18155 _ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h. */
18159 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18161 #define getloadavg innocuous_getloadavg
18162
18163 /* System header to define __stub macros and hopefully few prototypes,
18164 which can conflict with char getloadavg (); below.
18165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18166 <limits.h> exists even on freestanding compilers. */
18167
18168 #ifdef __STDC__
18169 # include <limits.h>
18170 #else
18171 # include <assert.h>
18172 #endif
18173
18174 #undef getloadavg
18175
18176 /* Override any GCC internal prototype to avoid an error.
18177 Use char because int might match the return type of a GCC
18178 builtin and then its argument prototype would still apply. */
18179 #ifdef __cplusplus
18180 extern "C"
18181 #endif
18182 char getloadavg ();
18183 /* The GNU C library defines this for functions which it implements
18184 to always fail with ENOSYS. Some functions are actually named
18185 something starting with __ and the normal name is an alias. */
18186 #if defined __stub_getloadavg || defined __stub___getloadavg
18187 choke me
18188 #endif
18189
18190 int
18191 main ()
18192 {
18193 return getloadavg ();
18194 ;
18195 return 0;
18196 }
18197 _ACEOF
18198 rm -f conftest.$ac_objext conftest$ac_exeext
18199 if { (ac_try="$ac_link"
18200 case "(($ac_try" in
18201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202 *) ac_try_echo=$ac_try;;
18203 esac
18204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18205 $as_echo "$ac_try_echo") >&5
18206 (eval "$ac_link") 2>conftest.er1
18207 ac_status=$?
18208 grep -v '^ *+' conftest.er1 >conftest.err
18209 rm -f conftest.er1
18210 cat conftest.err >&5
18211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); } && {
18213 test -z "$ac_c_werror_flag" ||
18214 test ! -s conftest.err
18215 } && test -s conftest$ac_exeext && {
18216 test "$cross_compiling" = yes ||
18217 $as_test_x conftest$ac_exeext
18218 }; then
18219 ac_cv_func_getloadavg=yes
18220 else
18221 $as_echo "$as_me: failed program was:" >&5
18222 sed 's/^/| /' conftest.$ac_ext >&5
18223
18224 ac_cv_func_getloadavg=no
18225 fi
18226
18227 rm -rf conftest.dSYM
18228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18229 conftest$ac_exeext conftest.$ac_ext
18230 fi
18231 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18232 $as_echo "$ac_cv_func_getloadavg" >&6; }
18233 if test $ac_cv_func_getloadavg = yes; then
18234 exit 0
18235 else
18236 exit 1
18237 fi
18238 ) && ac_have_func=yes
18239
18240 # On HPUX9, an unprivileged user can get load averages through this function.
18241
18242 for ac_func in pstat_getdynamic
18243 do
18244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18245 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18246 $as_echo_n "checking for $ac_func... " >&6; }
18247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18248 $as_echo_n "(cached) " >&6
18249 else
18250 cat >conftest.$ac_ext <<_ACEOF
18251 /* confdefs.h. */
18252 _ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18258 #define $ac_func innocuous_$ac_func
18259
18260 /* System header to define __stub macros and hopefully few prototypes,
18261 which can conflict with char $ac_func (); below.
18262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18263 <limits.h> exists even on freestanding compilers. */
18264
18265 #ifdef __STDC__
18266 # include <limits.h>
18267 #else
18268 # include <assert.h>
18269 #endif
18270
18271 #undef $ac_func
18272
18273 /* Override any GCC internal prototype to avoid an error.
18274 Use char because int might match the return type of a GCC
18275 builtin and then its argument prototype would still apply. */
18276 #ifdef __cplusplus
18277 extern "C"
18278 #endif
18279 char $ac_func ();
18280 /* The GNU C library defines this for functions which it implements
18281 to always fail with ENOSYS. Some functions are actually named
18282 something starting with __ and the normal name is an alias. */
18283 #if defined __stub_$ac_func || defined __stub___$ac_func
18284 choke me
18285 #endif
18286
18287 int
18288 main ()
18289 {
18290 return $ac_func ();
18291 ;
18292 return 0;
18293 }
18294 _ACEOF
18295 rm -f conftest.$ac_objext conftest$ac_exeext
18296 if { (ac_try="$ac_link"
18297 case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18300 esac
18301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18302 $as_echo "$ac_try_echo") >&5
18303 (eval "$ac_link") 2>conftest.er1
18304 ac_status=$?
18305 grep -v '^ *+' conftest.er1 >conftest.err
18306 rm -f conftest.er1
18307 cat conftest.err >&5
18308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); } && {
18310 test -z "$ac_c_werror_flag" ||
18311 test ! -s conftest.err
18312 } && test -s conftest$ac_exeext && {
18313 test "$cross_compiling" = yes ||
18314 $as_test_x conftest$ac_exeext
18315 }; then
18316 eval "$as_ac_var=yes"
18317 else
18318 $as_echo "$as_me: failed program was:" >&5
18319 sed 's/^/| /' conftest.$ac_ext >&5
18320
18321 eval "$as_ac_var=no"
18322 fi
18323
18324 rm -rf conftest.dSYM
18325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18326 conftest$ac_exeext conftest.$ac_ext
18327 fi
18328 ac_res=`eval 'as_val=${'$as_ac_var'}
18329 $as_echo "$as_val"'`
18330 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18331 $as_echo "$ac_res" >&6; }
18332 if test `eval 'as_val=${'$as_ac_var'}
18333 $as_echo "$as_val"'` = yes; then
18334 cat >>confdefs.h <<_ACEOF
18335 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18336 _ACEOF
18337
18338 fi
18339 done
18340
18341
18342 # Solaris has libkstat which does not require root.
18343
18344 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18345 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18346 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18347 $as_echo_n "(cached) " >&6
18348 else
18349 ac_check_lib_save_LIBS=$LIBS
18350 LIBS="-lkstat $LIBS"
18351 cat >conftest.$ac_ext <<_ACEOF
18352 /* confdefs.h. */
18353 _ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h. */
18357
18358 /* Override any GCC internal prototype to avoid an error.
18359 Use char because int might match the return type of a GCC
18360 builtin and then its argument prototype would still apply. */
18361 #ifdef __cplusplus
18362 extern "C"
18363 #endif
18364 char kstat_open ();
18365 int
18366 main ()
18367 {
18368 return kstat_open ();
18369 ;
18370 return 0;
18371 }
18372 _ACEOF
18373 rm -f conftest.$ac_objext conftest$ac_exeext
18374 if { (ac_try="$ac_link"
18375 case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18378 esac
18379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18380 $as_echo "$ac_try_echo") >&5
18381 (eval "$ac_link") 2>conftest.er1
18382 ac_status=$?
18383 grep -v '^ *+' conftest.er1 >conftest.err
18384 rm -f conftest.er1
18385 cat conftest.err >&5
18386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } && {
18388 test -z "$ac_c_werror_flag" ||
18389 test ! -s conftest.err
18390 } && test -s conftest$ac_exeext && {
18391 test "$cross_compiling" = yes ||
18392 $as_test_x conftest$ac_exeext
18393 }; then
18394 ac_cv_lib_kstat_kstat_open=yes
18395 else
18396 $as_echo "$as_me: failed program was:" >&5
18397 sed 's/^/| /' conftest.$ac_ext >&5
18398
18399 ac_cv_lib_kstat_kstat_open=no
18400 fi
18401
18402 rm -rf conftest.dSYM
18403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18404 conftest$ac_exeext conftest.$ac_ext
18405 LIBS=$ac_check_lib_save_LIBS
18406 fi
18407 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18408 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18409 if test $ac_cv_lib_kstat_kstat_open = yes; then
18410 cat >>confdefs.h <<_ACEOF
18411 #define HAVE_LIBKSTAT 1
18412 _ACEOF
18413
18414 LIBS="-lkstat $LIBS"
18415
18416 fi
18417
18418 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18419
18420 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18421 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18422 # to get the right answer into the cache.
18423 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18424 if test $ac_have_func = no; then
18425 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18426 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18427 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18428 $as_echo_n "(cached) " >&6
18429 else
18430 ac_check_lib_save_LIBS=$LIBS
18431 LIBS="-lelf $LIBS"
18432 cat >conftest.$ac_ext <<_ACEOF
18433 /* confdefs.h. */
18434 _ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18438
18439 /* Override any GCC internal prototype to avoid an error.
18440 Use char because int might match the return type of a GCC
18441 builtin and then its argument prototype would still apply. */
18442 #ifdef __cplusplus
18443 extern "C"
18444 #endif
18445 char elf_begin ();
18446 int
18447 main ()
18448 {
18449 return elf_begin ();
18450 ;
18451 return 0;
18452 }
18453 _ACEOF
18454 rm -f conftest.$ac_objext conftest$ac_exeext
18455 if { (ac_try="$ac_link"
18456 case "(($ac_try" in
18457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458 *) ac_try_echo=$ac_try;;
18459 esac
18460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18461 $as_echo "$ac_try_echo") >&5
18462 (eval "$ac_link") 2>conftest.er1
18463 ac_status=$?
18464 grep -v '^ *+' conftest.er1 >conftest.err
18465 rm -f conftest.er1
18466 cat conftest.err >&5
18467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } && {
18469 test -z "$ac_c_werror_flag" ||
18470 test ! -s conftest.err
18471 } && test -s conftest$ac_exeext && {
18472 test "$cross_compiling" = yes ||
18473 $as_test_x conftest$ac_exeext
18474 }; then
18475 ac_cv_lib_elf_elf_begin=yes
18476 else
18477 $as_echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18479
18480 ac_cv_lib_elf_elf_begin=no
18481 fi
18482
18483 rm -rf conftest.dSYM
18484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18485 conftest$ac_exeext conftest.$ac_ext
18486 LIBS=$ac_check_lib_save_LIBS
18487 fi
18488 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18489 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18490 if test $ac_cv_lib_elf_elf_begin = yes; then
18491 LIBS="-lelf $LIBS"
18492 fi
18493
18494 fi
18495 if test $ac_have_func = no; then
18496 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18497 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18498 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18499 $as_echo_n "(cached) " >&6
18500 else
18501 ac_check_lib_save_LIBS=$LIBS
18502 LIBS="-lkvm $LIBS"
18503 cat >conftest.$ac_ext <<_ACEOF
18504 /* confdefs.h. */
18505 _ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18509
18510 /* Override any GCC internal prototype to avoid an error.
18511 Use char because int might match the return type of a GCC
18512 builtin and then its argument prototype would still apply. */
18513 #ifdef __cplusplus
18514 extern "C"
18515 #endif
18516 char kvm_open ();
18517 int
18518 main ()
18519 {
18520 return kvm_open ();
18521 ;
18522 return 0;
18523 }
18524 _ACEOF
18525 rm -f conftest.$ac_objext conftest$ac_exeext
18526 if { (ac_try="$ac_link"
18527 case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18530 esac
18531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18532 $as_echo "$ac_try_echo") >&5
18533 (eval "$ac_link") 2>conftest.er1
18534 ac_status=$?
18535 grep -v '^ *+' conftest.er1 >conftest.err
18536 rm -f conftest.er1
18537 cat conftest.err >&5
18538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } && {
18540 test -z "$ac_c_werror_flag" ||
18541 test ! -s conftest.err
18542 } && test -s conftest$ac_exeext && {
18543 test "$cross_compiling" = yes ||
18544 $as_test_x conftest$ac_exeext
18545 }; then
18546 ac_cv_lib_kvm_kvm_open=yes
18547 else
18548 $as_echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18550
18551 ac_cv_lib_kvm_kvm_open=no
18552 fi
18553
18554 rm -rf conftest.dSYM
18555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18556 conftest$ac_exeext conftest.$ac_ext
18557 LIBS=$ac_check_lib_save_LIBS
18558 fi
18559 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18560 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18561 if test $ac_cv_lib_kvm_kvm_open = yes; then
18562 LIBS="-lkvm $LIBS"
18563 fi
18564
18565 # Check for the 4.4BSD definition of getloadavg.
18566 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18567 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18568 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18569 $as_echo_n "(cached) " >&6
18570 else
18571 ac_check_lib_save_LIBS=$LIBS
18572 LIBS="-lutil $LIBS"
18573 cat >conftest.$ac_ext <<_ACEOF
18574 /* confdefs.h. */
18575 _ACEOF
18576 cat confdefs.h >>conftest.$ac_ext
18577 cat >>conftest.$ac_ext <<_ACEOF
18578 /* end confdefs.h. */
18579
18580 /* Override any GCC internal prototype to avoid an error.
18581 Use char because int might match the return type of a GCC
18582 builtin and then its argument prototype would still apply. */
18583 #ifdef __cplusplus
18584 extern "C"
18585 #endif
18586 char getloadavg ();
18587 int
18588 main ()
18589 {
18590 return getloadavg ();
18591 ;
18592 return 0;
18593 }
18594 _ACEOF
18595 rm -f conftest.$ac_objext conftest$ac_exeext
18596 if { (ac_try="$ac_link"
18597 case "(($ac_try" in
18598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18599 *) ac_try_echo=$ac_try;;
18600 esac
18601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18602 $as_echo "$ac_try_echo") >&5
18603 (eval "$ac_link") 2>conftest.er1
18604 ac_status=$?
18605 grep -v '^ *+' conftest.er1 >conftest.err
18606 rm -f conftest.er1
18607 cat conftest.err >&5
18608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } && {
18610 test -z "$ac_c_werror_flag" ||
18611 test ! -s conftest.err
18612 } && test -s conftest$ac_exeext && {
18613 test "$cross_compiling" = yes ||
18614 $as_test_x conftest$ac_exeext
18615 }; then
18616 ac_cv_lib_util_getloadavg=yes
18617 else
18618 $as_echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18620
18621 ac_cv_lib_util_getloadavg=no
18622 fi
18623
18624 rm -rf conftest.dSYM
18625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18626 conftest$ac_exeext conftest.$ac_ext
18627 LIBS=$ac_check_lib_save_LIBS
18628 fi
18629 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18630 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18631 if test $ac_cv_lib_util_getloadavg = yes; then
18632 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18633 fi
18634
18635 fi
18636
18637 if test $ac_have_func = no; then
18638 # There is a commonly available library for RS/6000 AIX.
18639 # Since it is not a standard part of AIX, it might be installed locally.
18640 ac_getloadavg_LIBS=$LIBS
18641 LIBS="-L/usr/local/lib $LIBS"
18642 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18643 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18644 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18645 $as_echo_n "(cached) " >&6
18646 else
18647 ac_check_lib_save_LIBS=$LIBS
18648 LIBS="-lgetloadavg $LIBS"
18649 cat >conftest.$ac_ext <<_ACEOF
18650 /* confdefs.h. */
18651 _ACEOF
18652 cat confdefs.h >>conftest.$ac_ext
18653 cat >>conftest.$ac_ext <<_ACEOF
18654 /* end confdefs.h. */
18655
18656 /* Override any GCC internal prototype to avoid an error.
18657 Use char because int might match the return type of a GCC
18658 builtin and then its argument prototype would still apply. */
18659 #ifdef __cplusplus
18660 extern "C"
18661 #endif
18662 char getloadavg ();
18663 int
18664 main ()
18665 {
18666 return getloadavg ();
18667 ;
18668 return 0;
18669 }
18670 _ACEOF
18671 rm -f conftest.$ac_objext conftest$ac_exeext
18672 if { (ac_try="$ac_link"
18673 case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18676 esac
18677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18678 $as_echo "$ac_try_echo") >&5
18679 (eval "$ac_link") 2>conftest.er1
18680 ac_status=$?
18681 grep -v '^ *+' conftest.er1 >conftest.err
18682 rm -f conftest.er1
18683 cat conftest.err >&5
18684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } && {
18686 test -z "$ac_c_werror_flag" ||
18687 test ! -s conftest.err
18688 } && test -s conftest$ac_exeext && {
18689 test "$cross_compiling" = yes ||
18690 $as_test_x conftest$ac_exeext
18691 }; then
18692 ac_cv_lib_getloadavg_getloadavg=yes
18693 else
18694 $as_echo "$as_me: failed program was:" >&5
18695 sed 's/^/| /' conftest.$ac_ext >&5
18696
18697 ac_cv_lib_getloadavg_getloadavg=no
18698 fi
18699
18700 rm -rf conftest.dSYM
18701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18702 conftest$ac_exeext conftest.$ac_ext
18703 LIBS=$ac_check_lib_save_LIBS
18704 fi
18705 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18706 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18707 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18708 LIBS="-lgetloadavg $LIBS"
18709 else
18710 LIBS=$ac_getloadavg_LIBS
18711 fi
18712
18713 fi
18714
18715 # Make sure it is really in the library, if we think we found it,
18716 # otherwise set up the replacement function.
18717
18718 for ac_func in getloadavg
18719 do
18720 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18721 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18722 $as_echo_n "checking for $ac_func... " >&6; }
18723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18724 $as_echo_n "(cached) " >&6
18725 else
18726 cat >conftest.$ac_ext <<_ACEOF
18727 /* confdefs.h. */
18728 _ACEOF
18729 cat confdefs.h >>conftest.$ac_ext
18730 cat >>conftest.$ac_ext <<_ACEOF
18731 /* end confdefs.h. */
18732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18734 #define $ac_func innocuous_$ac_func
18735
18736 /* System header to define __stub macros and hopefully few prototypes,
18737 which can conflict with char $ac_func (); below.
18738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18739 <limits.h> exists even on freestanding compilers. */
18740
18741 #ifdef __STDC__
18742 # include <limits.h>
18743 #else
18744 # include <assert.h>
18745 #endif
18746
18747 #undef $ac_func
18748
18749 /* Override any GCC internal prototype to avoid an error.
18750 Use char because int might match the return type of a GCC
18751 builtin and then its argument prototype would still apply. */
18752 #ifdef __cplusplus
18753 extern "C"
18754 #endif
18755 char $ac_func ();
18756 /* The GNU C library defines this for functions which it implements
18757 to always fail with ENOSYS. Some functions are actually named
18758 something starting with __ and the normal name is an alias. */
18759 #if defined __stub_$ac_func || defined __stub___$ac_func
18760 choke me
18761 #endif
18762
18763 int
18764 main ()
18765 {
18766 return $ac_func ();
18767 ;
18768 return 0;
18769 }
18770 _ACEOF
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (ac_try="$ac_link"
18773 case "(($ac_try" in
18774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18776 esac
18777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18778 $as_echo "$ac_try_echo") >&5
18779 (eval "$ac_link") 2>conftest.er1
18780 ac_status=$?
18781 grep -v '^ *+' conftest.er1 >conftest.err
18782 rm -f conftest.er1
18783 cat conftest.err >&5
18784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); } && {
18786 test -z "$ac_c_werror_flag" ||
18787 test ! -s conftest.err
18788 } && test -s conftest$ac_exeext && {
18789 test "$cross_compiling" = yes ||
18790 $as_test_x conftest$ac_exeext
18791 }; then
18792 eval "$as_ac_var=yes"
18793 else
18794 $as_echo "$as_me: failed program was:" >&5
18795 sed 's/^/| /' conftest.$ac_ext >&5
18796
18797 eval "$as_ac_var=no"
18798 fi
18799
18800 rm -rf conftest.dSYM
18801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18802 conftest$ac_exeext conftest.$ac_ext
18803 fi
18804 ac_res=`eval 'as_val=${'$as_ac_var'}
18805 $as_echo "$as_val"'`
18806 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18807 $as_echo "$ac_res" >&6; }
18808 if test `eval 'as_val=${'$as_ac_var'}
18809 $as_echo "$as_val"'` = yes; then
18810 cat >>confdefs.h <<_ACEOF
18811 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18812 _ACEOF
18813
18814 else
18815 case " $LIBOBJS " in
18816 *" getloadavg.$ac_objext "* ) ;;
18817 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18818 ;;
18819 esac
18820
18821
18822 cat >>confdefs.h <<\_ACEOF
18823 #define C_GETLOADAVG 1
18824 _ACEOF
18825
18826 # Figure out what our getloadavg.c needs.
18827 ac_have_func=no
18828 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18829 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18830 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18831 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18832 $as_echo_n "(cached) " >&6
18833 fi
18834 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18835 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18836 else
18837 # Is the header compilable?
18838 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18839 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18840 cat >conftest.$ac_ext <<_ACEOF
18841 /* confdefs.h. */
18842 _ACEOF
18843 cat confdefs.h >>conftest.$ac_ext
18844 cat >>conftest.$ac_ext <<_ACEOF
18845 /* end confdefs.h. */
18846 $ac_includes_default
18847 #include <sys/dg_sys_info.h>
18848 _ACEOF
18849 rm -f conftest.$ac_objext
18850 if { (ac_try="$ac_compile"
18851 case "(($ac_try" in
18852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853 *) ac_try_echo=$ac_try;;
18854 esac
18855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18856 $as_echo "$ac_try_echo") >&5
18857 (eval "$ac_compile") 2>conftest.er1
18858 ac_status=$?
18859 grep -v '^ *+' conftest.er1 >conftest.err
18860 rm -f conftest.er1
18861 cat conftest.err >&5
18862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } && {
18864 test -z "$ac_c_werror_flag" ||
18865 test ! -s conftest.err
18866 } && test -s conftest.$ac_objext; then
18867 ac_header_compiler=yes
18868 else
18869 $as_echo "$as_me: failed program was:" >&5
18870 sed 's/^/| /' conftest.$ac_ext >&5
18871
18872 ac_header_compiler=no
18873 fi
18874
18875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18876 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18877 $as_echo "$ac_header_compiler" >&6; }
18878
18879 # Is the header present?
18880 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18881 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18882 cat >conftest.$ac_ext <<_ACEOF
18883 /* confdefs.h. */
18884 _ACEOF
18885 cat confdefs.h >>conftest.$ac_ext
18886 cat >>conftest.$ac_ext <<_ACEOF
18887 /* end confdefs.h. */
18888 #include <sys/dg_sys_info.h>
18889 _ACEOF
18890 if { (ac_try="$ac_cpp conftest.$ac_ext"
18891 case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18894 esac
18895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18896 $as_echo "$ac_try_echo") >&5
18897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18898 ac_status=$?
18899 grep -v '^ *+' conftest.er1 >conftest.err
18900 rm -f conftest.er1
18901 cat conftest.err >&5
18902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } >/dev/null && {
18904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18905 test ! -s conftest.err
18906 }; then
18907 ac_header_preproc=yes
18908 else
18909 $as_echo "$as_me: failed program was:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18911
18912 ac_header_preproc=no
18913 fi
18914
18915 rm -f conftest.err conftest.$ac_ext
18916 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18917 $as_echo "$ac_header_preproc" >&6; }
18918
18919 # So? What about this header?
18920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18921 yes:no: )
18922 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18923 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18924 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18925 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18926 ac_header_preproc=yes
18927 ;;
18928 no:yes:* )
18929 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18930 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18931 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18932 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18933 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18934 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18935 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18936 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18937 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18938 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18939 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18940 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18941
18942 ;;
18943 esac
18944 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18945 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18946 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18947 $as_echo_n "(cached) " >&6
18948 else
18949 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18950 fi
18951 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18952 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18953
18954 fi
18955 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18956 ac_have_func=yes
18957
18958 cat >>confdefs.h <<\_ACEOF
18959 #define DGUX 1
18960 _ACEOF
18961
18962
18963 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18964 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18965 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18966 $as_echo_n "(cached) " >&6
18967 else
18968 ac_check_lib_save_LIBS=$LIBS
18969 LIBS="-ldgc $LIBS"
18970 cat >conftest.$ac_ext <<_ACEOF
18971 /* confdefs.h. */
18972 _ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h. */
18976
18977 /* Override any GCC internal prototype to avoid an error.
18978 Use char because int might match the return type of a GCC
18979 builtin and then its argument prototype would still apply. */
18980 #ifdef __cplusplus
18981 extern "C"
18982 #endif
18983 char dg_sys_info ();
18984 int
18985 main ()
18986 {
18987 return dg_sys_info ();
18988 ;
18989 return 0;
18990 }
18991 _ACEOF
18992 rm -f conftest.$ac_objext conftest$ac_exeext
18993 if { (ac_try="$ac_link"
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_link") 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_exeext && {
19010 test "$cross_compiling" = yes ||
19011 $as_test_x conftest$ac_exeext
19012 }; then
19013 ac_cv_lib_dgc_dg_sys_info=yes
19014 else
19015 $as_echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19017
19018 ac_cv_lib_dgc_dg_sys_info=no
19019 fi
19020
19021 rm -rf conftest.dSYM
19022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19023 conftest$ac_exeext conftest.$ac_ext
19024 LIBS=$ac_check_lib_save_LIBS
19025 fi
19026 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19027 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19028 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19029 cat >>confdefs.h <<_ACEOF
19030 #define HAVE_LIBDGC 1
19031 _ACEOF
19032
19033 LIBS="-ldgc $LIBS"
19034
19035 fi
19036
19037 fi
19038
19039
19040
19041 if test "${ac_cv_header_locale_h+set}" = set; then
19042 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19043 $as_echo_n "checking for locale.h... " >&6; }
19044 if test "${ac_cv_header_locale_h+set}" = set; then
19045 $as_echo_n "(cached) " >&6
19046 fi
19047 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19048 $as_echo "$ac_cv_header_locale_h" >&6; }
19049 else
19050 # Is the header compilable?
19051 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19052 $as_echo_n "checking locale.h usability... " >&6; }
19053 cat >conftest.$ac_ext <<_ACEOF
19054 /* confdefs.h. */
19055 _ACEOF
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h. */
19059 $ac_includes_default
19060 #include <locale.h>
19061 _ACEOF
19062 rm -f conftest.$ac_objext
19063 if { (ac_try="$ac_compile"
19064 case "(($ac_try" in
19065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066 *) ac_try_echo=$ac_try;;
19067 esac
19068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19069 $as_echo "$ac_try_echo") >&5
19070 (eval "$ac_compile") 2>conftest.er1
19071 ac_status=$?
19072 grep -v '^ *+' conftest.er1 >conftest.err
19073 rm -f conftest.er1
19074 cat conftest.err >&5
19075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); } && {
19077 test -z "$ac_c_werror_flag" ||
19078 test ! -s conftest.err
19079 } && test -s conftest.$ac_objext; then
19080 ac_header_compiler=yes
19081 else
19082 $as_echo "$as_me: failed program was:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19084
19085 ac_header_compiler=no
19086 fi
19087
19088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19089 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19090 $as_echo "$ac_header_compiler" >&6; }
19091
19092 # Is the header present?
19093 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19094 $as_echo_n "checking locale.h presence... " >&6; }
19095 cat >conftest.$ac_ext <<_ACEOF
19096 /* confdefs.h. */
19097 _ACEOF
19098 cat confdefs.h >>conftest.$ac_ext
19099 cat >>conftest.$ac_ext <<_ACEOF
19100 /* end confdefs.h. */
19101 #include <locale.h>
19102 _ACEOF
19103 if { (ac_try="$ac_cpp conftest.$ac_ext"
19104 case "(($ac_try" in
19105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106 *) ac_try_echo=$ac_try;;
19107 esac
19108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19109 $as_echo "$ac_try_echo") >&5
19110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19111 ac_status=$?
19112 grep -v '^ *+' conftest.er1 >conftest.err
19113 rm -f conftest.er1
19114 cat conftest.err >&5
19115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } >/dev/null && {
19117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19118 test ! -s conftest.err
19119 }; then
19120 ac_header_preproc=yes
19121 else
19122 $as_echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19124
19125 ac_header_preproc=no
19126 fi
19127
19128 rm -f conftest.err conftest.$ac_ext
19129 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19130 $as_echo "$ac_header_preproc" >&6; }
19131
19132 # So? What about this header?
19133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19134 yes:no: )
19135 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19136 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19137 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19138 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19139 ac_header_preproc=yes
19140 ;;
19141 no:yes:* )
19142 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19143 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19144 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19145 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19146 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19147 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19148 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19149 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19150 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19151 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19152 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19153 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19154
19155 ;;
19156 esac
19157 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19158 $as_echo_n "checking for locale.h... " >&6; }
19159 if test "${ac_cv_header_locale_h+set}" = set; then
19160 $as_echo_n "(cached) " >&6
19161 else
19162 ac_cv_header_locale_h=$ac_header_preproc
19163 fi
19164 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19165 $as_echo "$ac_cv_header_locale_h" >&6; }
19166
19167 fi
19168
19169
19170
19171 for ac_func in setlocale
19172 do
19173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19174 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19175 $as_echo_n "checking for $ac_func... " >&6; }
19176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19177 $as_echo_n "(cached) " >&6
19178 else
19179 cat >conftest.$ac_ext <<_ACEOF
19180 /* confdefs.h. */
19181 _ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h. */
19185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19187 #define $ac_func innocuous_$ac_func
19188
19189 /* System header to define __stub macros and hopefully few prototypes,
19190 which can conflict with char $ac_func (); below.
19191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19192 <limits.h> exists even on freestanding compilers. */
19193
19194 #ifdef __STDC__
19195 # include <limits.h>
19196 #else
19197 # include <assert.h>
19198 #endif
19199
19200 #undef $ac_func
19201
19202 /* Override any GCC internal prototype to avoid an error.
19203 Use char because int might match the return type of a GCC
19204 builtin and then its argument prototype would still apply. */
19205 #ifdef __cplusplus
19206 extern "C"
19207 #endif
19208 char $ac_func ();
19209 /* The GNU C library defines this for functions which it implements
19210 to always fail with ENOSYS. Some functions are actually named
19211 something starting with __ and the normal name is an alias. */
19212 #if defined __stub_$ac_func || defined __stub___$ac_func
19213 choke me
19214 #endif
19215
19216 int
19217 main ()
19218 {
19219 return $ac_func ();
19220 ;
19221 return 0;
19222 }
19223 _ACEOF
19224 rm -f conftest.$ac_objext conftest$ac_exeext
19225 if { (ac_try="$ac_link"
19226 case "(($ac_try" in
19227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228 *) ac_try_echo=$ac_try;;
19229 esac
19230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19231 $as_echo "$ac_try_echo") >&5
19232 (eval "$ac_link") 2>conftest.er1
19233 ac_status=$?
19234 grep -v '^ *+' conftest.er1 >conftest.err
19235 rm -f conftest.er1
19236 cat conftest.err >&5
19237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } && {
19239 test -z "$ac_c_werror_flag" ||
19240 test ! -s conftest.err
19241 } && test -s conftest$ac_exeext && {
19242 test "$cross_compiling" = yes ||
19243 $as_test_x conftest$ac_exeext
19244 }; then
19245 eval "$as_ac_var=yes"
19246 else
19247 $as_echo "$as_me: failed program was:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19249
19250 eval "$as_ac_var=no"
19251 fi
19252
19253 rm -rf conftest.dSYM
19254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19255 conftest$ac_exeext conftest.$ac_ext
19256 fi
19257 ac_res=`eval 'as_val=${'$as_ac_var'}
19258 $as_echo "$as_val"'`
19259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19260 $as_echo "$ac_res" >&6; }
19261 if test `eval 'as_val=${'$as_ac_var'}
19262 $as_echo "$as_val"'` = yes; then
19263 cat >>confdefs.h <<_ACEOF
19264 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19265 _ACEOF
19266
19267 fi
19268 done
19269
19270
19271 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19272 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19273 # Irix 4.0.5F has the header but not the library.
19274 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19275 ac_have_func=yes
19276
19277 cat >>confdefs.h <<\_ACEOF
19278 #define SVR4 1
19279 _ACEOF
19280
19281 fi
19282
19283 if test $ac_have_func = no; then
19284 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19285 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19286 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19287 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19288 $as_echo_n "(cached) " >&6
19289 fi
19290 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19291 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19292 else
19293 # Is the header compilable?
19294 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19295 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19296 cat >conftest.$ac_ext <<_ACEOF
19297 /* confdefs.h. */
19298 _ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h. */
19302 $ac_includes_default
19303 #include <inq_stats/cpustats.h>
19304 _ACEOF
19305 rm -f conftest.$ac_objext
19306 if { (ac_try="$ac_compile"
19307 case "(($ac_try" in
19308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19309 *) ac_try_echo=$ac_try;;
19310 esac
19311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19312 $as_echo "$ac_try_echo") >&5
19313 (eval "$ac_compile") 2>conftest.er1
19314 ac_status=$?
19315 grep -v '^ *+' conftest.er1 >conftest.err
19316 rm -f conftest.er1
19317 cat conftest.err >&5
19318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } && {
19320 test -z "$ac_c_werror_flag" ||
19321 test ! -s conftest.err
19322 } && test -s conftest.$ac_objext; then
19323 ac_header_compiler=yes
19324 else
19325 $as_echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19327
19328 ac_header_compiler=no
19329 fi
19330
19331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19332 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19333 $as_echo "$ac_header_compiler" >&6; }
19334
19335 # Is the header present?
19336 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19337 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19338 cat >conftest.$ac_ext <<_ACEOF
19339 /* confdefs.h. */
19340 _ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h. */
19344 #include <inq_stats/cpustats.h>
19345 _ACEOF
19346 if { (ac_try="$ac_cpp conftest.$ac_ext"
19347 case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19350 esac
19351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19352 $as_echo "$ac_try_echo") >&5
19353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19354 ac_status=$?
19355 grep -v '^ *+' conftest.er1 >conftest.err
19356 rm -f conftest.er1
19357 cat conftest.err >&5
19358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); } >/dev/null && {
19360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19361 test ! -s conftest.err
19362 }; then
19363 ac_header_preproc=yes
19364 else
19365 $as_echo "$as_me: failed program was:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19367
19368 ac_header_preproc=no
19369 fi
19370
19371 rm -f conftest.err conftest.$ac_ext
19372 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19373 $as_echo "$ac_header_preproc" >&6; }
19374
19375 # So? What about this header?
19376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19377 yes:no: )
19378 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19379 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19380 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19381 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19382 ac_header_preproc=yes
19383 ;;
19384 no:yes:* )
19385 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19386 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19387 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19388 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19389 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19390 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19391 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19392 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19393 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19394 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19395 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19396 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19397
19398 ;;
19399 esac
19400 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19401 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19402 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19403 $as_echo_n "(cached) " >&6
19404 else
19405 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19406 fi
19407 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19408 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19409
19410 fi
19411 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19412 ac_have_func=yes
19413
19414 cat >>confdefs.h <<\_ACEOF
19415 #define UMAX 1
19416 _ACEOF
19417
19418
19419 cat >>confdefs.h <<\_ACEOF
19420 #define UMAX4_3 1
19421 _ACEOF
19422
19423 fi
19424
19425
19426 fi
19427
19428 if test $ac_have_func = no; then
19429 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19430 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19431 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19432 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19433 $as_echo_n "(cached) " >&6
19434 fi
19435 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19436 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19437 else
19438 # Is the header compilable?
19439 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19440 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19441 cat >conftest.$ac_ext <<_ACEOF
19442 /* confdefs.h. */
19443 _ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h. */
19447 $ac_includes_default
19448 #include <sys/cpustats.h>
19449 _ACEOF
19450 rm -f conftest.$ac_objext
19451 if { (ac_try="$ac_compile"
19452 case "(($ac_try" in
19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454 *) ac_try_echo=$ac_try;;
19455 esac
19456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19457 $as_echo "$ac_try_echo") >&5
19458 (eval "$ac_compile") 2>conftest.er1
19459 ac_status=$?
19460 grep -v '^ *+' conftest.er1 >conftest.err
19461 rm -f conftest.er1
19462 cat conftest.err >&5
19463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } && {
19465 test -z "$ac_c_werror_flag" ||
19466 test ! -s conftest.err
19467 } && test -s conftest.$ac_objext; then
19468 ac_header_compiler=yes
19469 else
19470 $as_echo "$as_me: failed program was:" >&5
19471 sed 's/^/| /' conftest.$ac_ext >&5
19472
19473 ac_header_compiler=no
19474 fi
19475
19476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19477 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19478 $as_echo "$ac_header_compiler" >&6; }
19479
19480 # Is the header present?
19481 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19482 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19483 cat >conftest.$ac_ext <<_ACEOF
19484 /* confdefs.h. */
19485 _ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h. */
19489 #include <sys/cpustats.h>
19490 _ACEOF
19491 if { (ac_try="$ac_cpp conftest.$ac_ext"
19492 case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19495 esac
19496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19497 $as_echo "$ac_try_echo") >&5
19498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19499 ac_status=$?
19500 grep -v '^ *+' conftest.er1 >conftest.err
19501 rm -f conftest.er1
19502 cat conftest.err >&5
19503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } >/dev/null && {
19505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19506 test ! -s conftest.err
19507 }; then
19508 ac_header_preproc=yes
19509 else
19510 $as_echo "$as_me: failed program was:" >&5
19511 sed 's/^/| /' conftest.$ac_ext >&5
19512
19513 ac_header_preproc=no
19514 fi
19515
19516 rm -f conftest.err conftest.$ac_ext
19517 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19518 $as_echo "$ac_header_preproc" >&6; }
19519
19520 # So? What about this header?
19521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19522 yes:no: )
19523 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19524 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19525 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19526 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19527 ac_header_preproc=yes
19528 ;;
19529 no:yes:* )
19530 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19531 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19532 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19533 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19534 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19535 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19536 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19537 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19538 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19539 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19540 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19541 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19542
19543 ;;
19544 esac
19545 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19546 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19547 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19548 $as_echo_n "(cached) " >&6
19549 else
19550 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19551 fi
19552 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19553 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19554
19555 fi
19556 if test $ac_cv_header_sys_cpustats_h = yes; then
19557 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19558 #define UMAX 1
19559 _ACEOF
19560
19561 fi
19562
19563
19564 fi
19565
19566 if test $ac_have_func = no; then
19567
19568 for ac_header in mach/mach.h
19569 do
19570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19572 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19573 $as_echo_n "checking for $ac_header... " >&6; }
19574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19575 $as_echo_n "(cached) " >&6
19576 fi
19577 ac_res=`eval 'as_val=${'$as_ac_Header'}
19578 $as_echo "$as_val"'`
19579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19580 $as_echo "$ac_res" >&6; }
19581 else
19582 # Is the header compilable?
19583 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19584 $as_echo_n "checking $ac_header usability... " >&6; }
19585 cat >conftest.$ac_ext <<_ACEOF
19586 /* confdefs.h. */
19587 _ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19591 $ac_includes_default
19592 #include <$ac_header>
19593 _ACEOF
19594 rm -f conftest.$ac_objext
19595 if { (ac_try="$ac_compile"
19596 case "(($ac_try" in
19597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19598 *) ac_try_echo=$ac_try;;
19599 esac
19600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19601 $as_echo "$ac_try_echo") >&5
19602 (eval "$ac_compile") 2>conftest.er1
19603 ac_status=$?
19604 grep -v '^ *+' conftest.er1 >conftest.err
19605 rm -f conftest.er1
19606 cat conftest.err >&5
19607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); } && {
19609 test -z "$ac_c_werror_flag" ||
19610 test ! -s conftest.err
19611 } && test -s conftest.$ac_objext; then
19612 ac_header_compiler=yes
19613 else
19614 $as_echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19616
19617 ac_header_compiler=no
19618 fi
19619
19620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19621 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19622 $as_echo "$ac_header_compiler" >&6; }
19623
19624 # Is the header present?
19625 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19626 $as_echo_n "checking $ac_header presence... " >&6; }
19627 cat >conftest.$ac_ext <<_ACEOF
19628 /* confdefs.h. */
19629 _ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h. */
19633 #include <$ac_header>
19634 _ACEOF
19635 if { (ac_try="$ac_cpp conftest.$ac_ext"
19636 case "(($ac_try" in
19637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638 *) ac_try_echo=$ac_try;;
19639 esac
19640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19641 $as_echo "$ac_try_echo") >&5
19642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19643 ac_status=$?
19644 grep -v '^ *+' conftest.er1 >conftest.err
19645 rm -f conftest.er1
19646 cat conftest.err >&5
19647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); } >/dev/null && {
19649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19650 test ! -s conftest.err
19651 }; then
19652 ac_header_preproc=yes
19653 else
19654 $as_echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19656
19657 ac_header_preproc=no
19658 fi
19659
19660 rm -f conftest.err conftest.$ac_ext
19661 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19662 $as_echo "$ac_header_preproc" >&6; }
19663
19664 # So? What about this header?
19665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19666 yes:no: )
19667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19668 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19670 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19671 ac_header_preproc=yes
19672 ;;
19673 no:yes:* )
19674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19675 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19677 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19679 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19681 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19685 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19686
19687 ;;
19688 esac
19689 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19690 $as_echo_n "checking for $ac_header... " >&6; }
19691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19692 $as_echo_n "(cached) " >&6
19693 else
19694 eval "$as_ac_Header=\$ac_header_preproc"
19695 fi
19696 ac_res=`eval 'as_val=${'$as_ac_Header'}
19697 $as_echo "$as_val"'`
19698 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19699 $as_echo "$ac_res" >&6; }
19700
19701 fi
19702 if test `eval 'as_val=${'$as_ac_Header'}
19703 $as_echo "$as_val"'` = yes; then
19704 cat >>confdefs.h <<_ACEOF
19705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19706 _ACEOF
19707
19708 fi
19709
19710 done
19711
19712 fi
19713
19714
19715 for ac_header in nlist.h
19716 do
19717 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19719 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19720 $as_echo_n "checking for $ac_header... " >&6; }
19721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19722 $as_echo_n "(cached) " >&6
19723 fi
19724 ac_res=`eval 'as_val=${'$as_ac_Header'}
19725 $as_echo "$as_val"'`
19726 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19727 $as_echo "$ac_res" >&6; }
19728 else
19729 # Is the header compilable?
19730 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19731 $as_echo_n "checking $ac_header usability... " >&6; }
19732 cat >conftest.$ac_ext <<_ACEOF
19733 /* confdefs.h. */
19734 _ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h. */
19738 $ac_includes_default
19739 #include <$ac_header>
19740 _ACEOF
19741 rm -f conftest.$ac_objext
19742 if { (ac_try="$ac_compile"
19743 case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19746 esac
19747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19748 $as_echo "$ac_try_echo") >&5
19749 (eval "$ac_compile") 2>conftest.er1
19750 ac_status=$?
19751 grep -v '^ *+' conftest.er1 >conftest.err
19752 rm -f conftest.er1
19753 cat conftest.err >&5
19754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); } && {
19756 test -z "$ac_c_werror_flag" ||
19757 test ! -s conftest.err
19758 } && test -s conftest.$ac_objext; then
19759 ac_header_compiler=yes
19760 else
19761 $as_echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19763
19764 ac_header_compiler=no
19765 fi
19766
19767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19768 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19769 $as_echo "$ac_header_compiler" >&6; }
19770
19771 # Is the header present?
19772 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19773 $as_echo_n "checking $ac_header presence... " >&6; }
19774 cat >conftest.$ac_ext <<_ACEOF
19775 /* confdefs.h. */
19776 _ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19780 #include <$ac_header>
19781 _ACEOF
19782 if { (ac_try="$ac_cpp conftest.$ac_ext"
19783 case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19786 esac
19787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19788 $as_echo "$ac_try_echo") >&5
19789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19790 ac_status=$?
19791 grep -v '^ *+' conftest.er1 >conftest.err
19792 rm -f conftest.er1
19793 cat conftest.err >&5
19794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } >/dev/null && {
19796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19797 test ! -s conftest.err
19798 }; then
19799 ac_header_preproc=yes
19800 else
19801 $as_echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19803
19804 ac_header_preproc=no
19805 fi
19806
19807 rm -f conftest.err conftest.$ac_ext
19808 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19809 $as_echo "$ac_header_preproc" >&6; }
19810
19811 # So? What about this header?
19812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19813 yes:no: )
19814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19815 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19817 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19818 ac_header_preproc=yes
19819 ;;
19820 no:yes:* )
19821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19822 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19824 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19826 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19828 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19830 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19832 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19833
19834 ;;
19835 esac
19836 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19837 $as_echo_n "checking for $ac_header... " >&6; }
19838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19839 $as_echo_n "(cached) " >&6
19840 else
19841 eval "$as_ac_Header=\$ac_header_preproc"
19842 fi
19843 ac_res=`eval 'as_val=${'$as_ac_Header'}
19844 $as_echo "$as_val"'`
19845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19846 $as_echo "$ac_res" >&6; }
19847
19848 fi
19849 if test `eval 'as_val=${'$as_ac_Header'}
19850 $as_echo "$as_val"'` = yes; then
19851 cat >>confdefs.h <<_ACEOF
19852 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19853 _ACEOF
19854 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19855 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19856 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19857 $as_echo_n "(cached) " >&6
19858 else
19859 cat >conftest.$ac_ext <<_ACEOF
19860 /* confdefs.h. */
19861 _ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h. */
19865 #include <nlist.h>
19866
19867 int
19868 main ()
19869 {
19870 static struct nlist ac_aggr;
19871 if (ac_aggr.n_un.n_name)
19872 return 0;
19873 ;
19874 return 0;
19875 }
19876 _ACEOF
19877 rm -f conftest.$ac_objext
19878 if { (ac_try="$ac_compile"
19879 case "(($ac_try" in
19880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881 *) ac_try_echo=$ac_try;;
19882 esac
19883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19884 $as_echo "$ac_try_echo") >&5
19885 (eval "$ac_compile") 2>conftest.er1
19886 ac_status=$?
19887 grep -v '^ *+' conftest.er1 >conftest.err
19888 rm -f conftest.er1
19889 cat conftest.err >&5
19890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } && {
19892 test -z "$ac_c_werror_flag" ||
19893 test ! -s conftest.err
19894 } && test -s conftest.$ac_objext; then
19895 ac_cv_member_struct_nlist_n_un_n_name=yes
19896 else
19897 $as_echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19899
19900 cat >conftest.$ac_ext <<_ACEOF
19901 /* confdefs.h. */
19902 _ACEOF
19903 cat confdefs.h >>conftest.$ac_ext
19904 cat >>conftest.$ac_ext <<_ACEOF
19905 /* end confdefs.h. */
19906 #include <nlist.h>
19907
19908 int
19909 main ()
19910 {
19911 static struct nlist ac_aggr;
19912 if (sizeof ac_aggr.n_un.n_name)
19913 return 0;
19914 ;
19915 return 0;
19916 }
19917 _ACEOF
19918 rm -f conftest.$ac_objext
19919 if { (ac_try="$ac_compile"
19920 case "(($ac_try" in
19921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922 *) ac_try_echo=$ac_try;;
19923 esac
19924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19925 $as_echo "$ac_try_echo") >&5
19926 (eval "$ac_compile") 2>conftest.er1
19927 ac_status=$?
19928 grep -v '^ *+' conftest.er1 >conftest.err
19929 rm -f conftest.er1
19930 cat conftest.err >&5
19931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } && {
19933 test -z "$ac_c_werror_flag" ||
19934 test ! -s conftest.err
19935 } && test -s conftest.$ac_objext; then
19936 ac_cv_member_struct_nlist_n_un_n_name=yes
19937 else
19938 $as_echo "$as_me: failed program was:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19940
19941 ac_cv_member_struct_nlist_n_un_n_name=no
19942 fi
19943
19944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19945 fi
19946
19947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19948 fi
19949 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19950 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19951 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19952
19953 cat >>confdefs.h <<_ACEOF
19954 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19955 _ACEOF
19956
19957
19958 cat >>confdefs.h <<\_ACEOF
19959 #define NLIST_NAME_UNION 1
19960 _ACEOF
19961
19962 fi
19963
19964
19965 fi
19966
19967 done
19968
19969 fi
19970 done
19971
19972
19973 # Some definitions of getloadavg require that the program be installed setgid.
19974 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19975 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19976 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19977 $as_echo_n "(cached) " >&6
19978 else
19979 cat >conftest.$ac_ext <<_ACEOF
19980 /* confdefs.h. */
19981 _ACEOF
19982 cat confdefs.h >>conftest.$ac_ext
19983 cat >>conftest.$ac_ext <<_ACEOF
19984 /* end confdefs.h. */
19985 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19986 #ifdef LDAV_PRIVILEGED
19987 Yowza Am I SETGID yet
19988 #endif
19989 _ACEOF
19990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19991 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19992 ac_cv_func_getloadavg_setgid=yes
19993 else
19994 ac_cv_func_getloadavg_setgid=no
19995 fi
19996 rm -f conftest*
19997
19998 fi
19999 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20000 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20001 if test $ac_cv_func_getloadavg_setgid = yes; then
20002 NEED_SETGID=true
20003
20004 cat >>confdefs.h <<\_ACEOF
20005 #define GETLOADAVG_PRIVILEGED 1
20006 _ACEOF
20007
20008 else
20009 NEED_SETGID=false
20010 fi
20011
20012 if test $ac_cv_func_getloadavg_setgid = yes; then
20013 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20014 $as_echo_n "checking group of /dev/kmem... " >&6; }
20015 if test "${ac_cv_group_kmem+set}" = set; then
20016 $as_echo_n "(cached) " >&6
20017 else
20018 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20019 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20020 # If we got an error (system does not support symlinks), try without -L.
20021 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20022 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20023 | sed -ne 's/[ ][ ]*/ /g;
20024 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20025 / /s/.* //;p;'`
20026
20027 fi
20028 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20029 $as_echo "$ac_cv_group_kmem" >&6; }
20030 KMEM_GROUP=$ac_cv_group_kmem
20031 fi
20032 if test "x$ac_save_LIBS" = x; then
20033 GETLOADAVG_LIBS=$LIBS
20034 else
20035 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
20036 fi
20037 LIBS=$ac_save_LIBS
20038
20039
20040
20041 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20042 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20043 if test "${ac_cv_sys_largefile_source+set}" = set; then
20044 $as_echo_n "(cached) " >&6
20045 else
20046 while :; do
20047 cat >conftest.$ac_ext <<_ACEOF
20048 /* confdefs.h. */
20049 _ACEOF
20050 cat confdefs.h >>conftest.$ac_ext
20051 cat >>conftest.$ac_ext <<_ACEOF
20052 /* end confdefs.h. */
20053 #include <sys/types.h> /* for off_t */
20054 #include <stdio.h>
20055 int
20056 main ()
20057 {
20058 int (*fp) (FILE *, off_t, int) = fseeko;
20059 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20060 ;
20061 return 0;
20062 }
20063 _ACEOF
20064 rm -f conftest.$ac_objext conftest$ac_exeext
20065 if { (ac_try="$ac_link"
20066 case "(($ac_try" in
20067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20068 *) ac_try_echo=$ac_try;;
20069 esac
20070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20071 $as_echo "$ac_try_echo") >&5
20072 (eval "$ac_link") 2>conftest.er1
20073 ac_status=$?
20074 grep -v '^ *+' conftest.er1 >conftest.err
20075 rm -f conftest.er1
20076 cat conftest.err >&5
20077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); } && {
20079 test -z "$ac_c_werror_flag" ||
20080 test ! -s conftest.err
20081 } && test -s conftest$ac_exeext && {
20082 test "$cross_compiling" = yes ||
20083 $as_test_x conftest$ac_exeext
20084 }; then
20085 ac_cv_sys_largefile_source=no; break
20086 else
20087 $as_echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20089
20090
20091 fi
20092
20093 rm -rf conftest.dSYM
20094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20095 conftest$ac_exeext conftest.$ac_ext
20096 cat >conftest.$ac_ext <<_ACEOF
20097 /* confdefs.h. */
20098 _ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h. */
20102 #define _LARGEFILE_SOURCE 1
20103 #include <sys/types.h> /* for off_t */
20104 #include <stdio.h>
20105 int
20106 main ()
20107 {
20108 int (*fp) (FILE *, off_t, int) = fseeko;
20109 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20110 ;
20111 return 0;
20112 }
20113 _ACEOF
20114 rm -f conftest.$ac_objext conftest$ac_exeext
20115 if { (ac_try="$ac_link"
20116 case "(($ac_try" in
20117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20118 *) ac_try_echo=$ac_try;;
20119 esac
20120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20121 $as_echo "$ac_try_echo") >&5
20122 (eval "$ac_link") 2>conftest.er1
20123 ac_status=$?
20124 grep -v '^ *+' conftest.er1 >conftest.err
20125 rm -f conftest.er1
20126 cat conftest.err >&5
20127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); } && {
20129 test -z "$ac_c_werror_flag" ||
20130 test ! -s conftest.err
20131 } && test -s conftest$ac_exeext && {
20132 test "$cross_compiling" = yes ||
20133 $as_test_x conftest$ac_exeext
20134 }; then
20135 ac_cv_sys_largefile_source=1; break
20136 else
20137 $as_echo "$as_me: failed program was:" >&5
20138 sed 's/^/| /' conftest.$ac_ext >&5
20139
20140
20141 fi
20142
20143 rm -rf conftest.dSYM
20144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20145 conftest$ac_exeext conftest.$ac_ext
20146 ac_cv_sys_largefile_source=unknown
20147 break
20148 done
20149 fi
20150 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20151 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20152 case $ac_cv_sys_largefile_source in #(
20153 no | unknown) ;;
20154 *)
20155 cat >>confdefs.h <<_ACEOF
20156 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20157 _ACEOF
20158 ;;
20159 esac
20160 rm -rf conftest*
20161
20162 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20163 # in glibc 2.1.3, but that breaks too many other things.
20164 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20165 if test $ac_cv_sys_largefile_source != unknown; then
20166
20167 cat >>confdefs.h <<\_ACEOF
20168 #define HAVE_FSEEKO 1
20169 _ACEOF
20170
20171 fi
20172
20173
20174 # Configure getopt.
20175 # getopt.m4 serial 10
20176
20177 # The getopt module assume you want GNU getopt, with getopt_long etc,
20178 # rather than vanilla POSIX getopt. This means your your code should
20179 # always include <getopt.h> for the getopt prototypes.
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191 # Prerequisites of lib/getopt*.
20192
20193
20194
20195
20196 GETOPT_H=
20197
20198 for ac_header in getopt.h
20199 do
20200 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20202 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20203 $as_echo_n "checking for $ac_header... " >&6; }
20204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20205 $as_echo_n "(cached) " >&6
20206 fi
20207 ac_res=`eval 'as_val=${'$as_ac_Header'}
20208 $as_echo "$as_val"'`
20209 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20210 $as_echo "$ac_res" >&6; }
20211 else
20212 # Is the header compilable?
20213 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20214 $as_echo_n "checking $ac_header usability... " >&6; }
20215 cat >conftest.$ac_ext <<_ACEOF
20216 /* confdefs.h. */
20217 _ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h. */
20221 $ac_includes_default
20222 #include <$ac_header>
20223 _ACEOF
20224 rm -f conftest.$ac_objext
20225 if { (ac_try="$ac_compile"
20226 case "(($ac_try" in
20227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20228 *) ac_try_echo=$ac_try;;
20229 esac
20230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20231 $as_echo "$ac_try_echo") >&5
20232 (eval "$ac_compile") 2>conftest.er1
20233 ac_status=$?
20234 grep -v '^ *+' conftest.er1 >conftest.err
20235 rm -f conftest.er1
20236 cat conftest.err >&5
20237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); } && {
20239 test -z "$ac_c_werror_flag" ||
20240 test ! -s conftest.err
20241 } && test -s conftest.$ac_objext; then
20242 ac_header_compiler=yes
20243 else
20244 $as_echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20246
20247 ac_header_compiler=no
20248 fi
20249
20250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20251 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20252 $as_echo "$ac_header_compiler" >&6; }
20253
20254 # Is the header present?
20255 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20256 $as_echo_n "checking $ac_header presence... " >&6; }
20257 cat >conftest.$ac_ext <<_ACEOF
20258 /* confdefs.h. */
20259 _ACEOF
20260 cat confdefs.h >>conftest.$ac_ext
20261 cat >>conftest.$ac_ext <<_ACEOF
20262 /* end confdefs.h. */
20263 #include <$ac_header>
20264 _ACEOF
20265 if { (ac_try="$ac_cpp conftest.$ac_ext"
20266 case "(($ac_try" in
20267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20268 *) ac_try_echo=$ac_try;;
20269 esac
20270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20271 $as_echo "$ac_try_echo") >&5
20272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20273 ac_status=$?
20274 grep -v '^ *+' conftest.er1 >conftest.err
20275 rm -f conftest.er1
20276 cat conftest.err >&5
20277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); } >/dev/null && {
20279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20280 test ! -s conftest.err
20281 }; then
20282 ac_header_preproc=yes
20283 else
20284 $as_echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20286
20287 ac_header_preproc=no
20288 fi
20289
20290 rm -f conftest.err conftest.$ac_ext
20291 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20292 $as_echo "$ac_header_preproc" >&6; }
20293
20294 # So? What about this header?
20295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20296 yes:no: )
20297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20298 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20300 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20301 ac_header_preproc=yes
20302 ;;
20303 no:yes:* )
20304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20305 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20307 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20309 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20311 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20313 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20315 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20316
20317 ;;
20318 esac
20319 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20320 $as_echo_n "checking for $ac_header... " >&6; }
20321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20322 $as_echo_n "(cached) " >&6
20323 else
20324 eval "$as_ac_Header=\$ac_header_preproc"
20325 fi
20326 ac_res=`eval 'as_val=${'$as_ac_Header'}
20327 $as_echo "$as_val"'`
20328 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20329 $as_echo "$ac_res" >&6; }
20330
20331 fi
20332 if test `eval 'as_val=${'$as_ac_Header'}
20333 $as_echo "$as_val"'` = yes; then
20334 cat >>confdefs.h <<_ACEOF
20335 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20336 _ACEOF
20337
20338 else
20339 GETOPT_H=getopt.h
20340 fi
20341
20342 done
20343
20344 if test -z "$GETOPT_H"; then
20345
20346 for ac_func in getopt_long_only
20347 do
20348 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20349 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20350 $as_echo_n "checking for $ac_func... " >&6; }
20351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20352 $as_echo_n "(cached) " >&6
20353 else
20354 cat >conftest.$ac_ext <<_ACEOF
20355 /* confdefs.h. */
20356 _ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h. */
20360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20362 #define $ac_func innocuous_$ac_func
20363
20364 /* System header to define __stub macros and hopefully few prototypes,
20365 which can conflict with char $ac_func (); below.
20366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20367 <limits.h> exists even on freestanding compilers. */
20368
20369 #ifdef __STDC__
20370 # include <limits.h>
20371 #else
20372 # include <assert.h>
20373 #endif
20374
20375 #undef $ac_func
20376
20377 /* Override any GCC internal prototype to avoid an error.
20378 Use char because int might match the return type of a GCC
20379 builtin and then its argument prototype would still apply. */
20380 #ifdef __cplusplus
20381 extern "C"
20382 #endif
20383 char $ac_func ();
20384 /* The GNU C library defines this for functions which it implements
20385 to always fail with ENOSYS. Some functions are actually named
20386 something starting with __ and the normal name is an alias. */
20387 #if defined __stub_$ac_func || defined __stub___$ac_func
20388 choke me
20389 #endif
20390
20391 int
20392 main ()
20393 {
20394 return $ac_func ();
20395 ;
20396 return 0;
20397 }
20398 _ACEOF
20399 rm -f conftest.$ac_objext conftest$ac_exeext
20400 if { (ac_try="$ac_link"
20401 case "(($ac_try" in
20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403 *) ac_try_echo=$ac_try;;
20404 esac
20405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20406 $as_echo "$ac_try_echo") >&5
20407 (eval "$ac_link") 2>conftest.er1
20408 ac_status=$?
20409 grep -v '^ *+' conftest.er1 >conftest.err
20410 rm -f conftest.er1
20411 cat conftest.err >&5
20412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); } && {
20414 test -z "$ac_c_werror_flag" ||
20415 test ! -s conftest.err
20416 } && test -s conftest$ac_exeext && {
20417 test "$cross_compiling" = yes ||
20418 $as_test_x conftest$ac_exeext
20419 }; then
20420 eval "$as_ac_var=yes"
20421 else
20422 $as_echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.$ac_ext >&5
20424
20425 eval "$as_ac_var=no"
20426 fi
20427
20428 rm -rf conftest.dSYM
20429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20430 conftest$ac_exeext conftest.$ac_ext
20431 fi
20432 ac_res=`eval 'as_val=${'$as_ac_var'}
20433 $as_echo "$as_val"'`
20434 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20435 $as_echo "$ac_res" >&6; }
20436 if test `eval 'as_val=${'$as_ac_var'}
20437 $as_echo "$as_val"'` = yes; then
20438 cat >>confdefs.h <<_ACEOF
20439 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20440 _ACEOF
20441
20442 else
20443 GETOPT_H=getopt.h
20444 fi
20445 done
20446
20447 fi
20448
20449 if test -z "$GETOPT_H"; then
20450 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20451 $as_echo_n "checking whether optreset is declared... " >&6; }
20452 if test "${ac_cv_have_decl_optreset+set}" = set; then
20453 $as_echo_n "(cached) " >&6
20454 else
20455 cat >conftest.$ac_ext <<_ACEOF
20456 /* confdefs.h. */
20457 _ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20461 #include <getopt.h>
20462
20463 int
20464 main ()
20465 {
20466 #ifndef optreset
20467 (void) optreset;
20468 #endif
20469
20470 ;
20471 return 0;
20472 }
20473 _ACEOF
20474 rm -f conftest.$ac_objext
20475 if { (ac_try="$ac_compile"
20476 case "(($ac_try" in
20477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478 *) ac_try_echo=$ac_try;;
20479 esac
20480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20481 $as_echo "$ac_try_echo") >&5
20482 (eval "$ac_compile") 2>conftest.er1
20483 ac_status=$?
20484 grep -v '^ *+' conftest.er1 >conftest.err
20485 rm -f conftest.er1
20486 cat conftest.err >&5
20487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } && {
20489 test -z "$ac_c_werror_flag" ||
20490 test ! -s conftest.err
20491 } && test -s conftest.$ac_objext; then
20492 ac_cv_have_decl_optreset=yes
20493 else
20494 $as_echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20496
20497 ac_cv_have_decl_optreset=no
20498 fi
20499
20500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20501 fi
20502 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20503 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20504 if test $ac_cv_have_decl_optreset = yes; then
20505 GETOPT_H=getopt.h
20506 fi
20507
20508 fi
20509
20510 if test -z "$GETOPT_H"; then
20511 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20512 $as_echo_n "checking for working GNU getopt function... " >&6; }
20513 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20514 $as_echo_n "(cached) " >&6
20515 else
20516 if test "$cross_compiling" = yes; then
20517 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20518 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20519 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20520 $as_echo_n "(cached) " >&6
20521 else
20522 cat >conftest.$ac_ext <<_ACEOF
20523 /* confdefs.h. */
20524 _ACEOF
20525 cat confdefs.h >>conftest.$ac_ext
20526 cat >>conftest.$ac_ext <<_ACEOF
20527 /* end confdefs.h. */
20528 #include <getopt.h>
20529
20530 int
20531 main ()
20532 {
20533 #ifndef getopt_clip
20534 (void) getopt_clip;
20535 #endif
20536
20537 ;
20538 return 0;
20539 }
20540 _ACEOF
20541 rm -f conftest.$ac_objext
20542 if { (ac_try="$ac_compile"
20543 case "(($ac_try" in
20544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20545 *) ac_try_echo=$ac_try;;
20546 esac
20547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20548 $as_echo "$ac_try_echo") >&5
20549 (eval "$ac_compile") 2>conftest.er1
20550 ac_status=$?
20551 grep -v '^ *+' conftest.er1 >conftest.err
20552 rm -f conftest.er1
20553 cat conftest.err >&5
20554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); } && {
20556 test -z "$ac_c_werror_flag" ||
20557 test ! -s conftest.err
20558 } && test -s conftest.$ac_objext; then
20559 ac_cv_have_decl_getopt_clip=yes
20560 else
20561 $as_echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20563
20564 ac_cv_have_decl_getopt_clip=no
20565 fi
20566
20567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20568 fi
20569 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20570 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20571 if test $ac_cv_have_decl_getopt_clip = yes; then
20572 gl_cv_func_gnu_getopt=no
20573 else
20574 gl_cv_func_gnu_getopt=yes
20575 fi
20576
20577 else
20578 cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h. */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20584 #include <getopt.h>
20585 int
20586 main ()
20587 {
20588
20589 char *myargv[3];
20590 myargv[0] = "conftest";
20591 myargv[1] = "-+";
20592 myargv[2] = 0;
20593 return getopt (2, myargv, "+a") != '?';
20594
20595 ;
20596 return 0;
20597 }
20598 _ACEOF
20599 rm -f conftest$ac_exeext
20600 if { (ac_try="$ac_link"
20601 case "(($ac_try" in
20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603 *) ac_try_echo=$ac_try;;
20604 esac
20605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20606 $as_echo "$ac_try_echo") >&5
20607 (eval "$ac_link") 2>&5
20608 ac_status=$?
20609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20611 { (case "(($ac_try" in
20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613 *) ac_try_echo=$ac_try;;
20614 esac
20615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20616 $as_echo "$ac_try_echo") >&5
20617 (eval "$ac_try") 2>&5
20618 ac_status=$?
20619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); }; }; then
20621 gl_cv_func_gnu_getopt=yes
20622 else
20623 $as_echo "$as_me: program exited with status $ac_status" >&5
20624 $as_echo "$as_me: failed program was:" >&5
20625 sed 's/^/| /' conftest.$ac_ext >&5
20626
20627 ( exit $ac_status )
20628 gl_cv_func_gnu_getopt=no
20629 fi
20630 rm -rf conftest.dSYM
20631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20632 fi
20633
20634
20635 fi
20636 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20637 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20638 if test "$gl_cv_func_gnu_getopt" = "no"; then
20639 GETOPT_H=getopt.h
20640 fi
20641 fi
20642
20643
20644
20645 if test -n "$GETOPT_H"; then
20646
20647
20648 GETOPT_H=getopt.h
20649
20650 cat >>confdefs.h <<\_ACEOF
20651 #define __GETOPT_PREFIX rpl_
20652 _ACEOF
20653
20654
20655
20656 :
20657 GETOPTOBJS='getopt.o getopt1.o'
20658
20659 fi
20660
20661
20662
20663
20664 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20665 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20666 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20667 $as_echo_n "(cached) " >&6
20668 else
20669 # Use it with a single arg.
20670 cat >conftest.$ac_ext <<_ACEOF
20671 /* confdefs.h. */
20672 _ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h. */
20676 $ac_includes_default
20677 int
20678 main ()
20679 {
20680 getpgrp (0);
20681 ;
20682 return 0;
20683 }
20684 _ACEOF
20685 rm -f conftest.$ac_objext
20686 if { (ac_try="$ac_compile"
20687 case "(($ac_try" in
20688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689 *) ac_try_echo=$ac_try;;
20690 esac
20691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20692 $as_echo "$ac_try_echo") >&5
20693 (eval "$ac_compile") 2>conftest.er1
20694 ac_status=$?
20695 grep -v '^ *+' conftest.er1 >conftest.err
20696 rm -f conftest.er1
20697 cat conftest.err >&5
20698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); } && {
20700 test -z "$ac_c_werror_flag" ||
20701 test ! -s conftest.err
20702 } && test -s conftest.$ac_objext; then
20703 ac_cv_func_getpgrp_void=no
20704 else
20705 $as_echo "$as_me: failed program was:" >&5
20706 sed 's/^/| /' conftest.$ac_ext >&5
20707
20708 ac_cv_func_getpgrp_void=yes
20709 fi
20710
20711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20712
20713 fi
20714 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20715 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20716 if test $ac_cv_func_getpgrp_void = yes; then
20717
20718 cat >>confdefs.h <<\_ACEOF
20719 #define GETPGRP_VOID 1
20720 _ACEOF
20721
20722 fi
20723
20724
20725
20726 for ac_func in strftime
20727 do
20728 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20729 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20730 $as_echo_n "checking for $ac_func... " >&6; }
20731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20732 $as_echo_n "(cached) " >&6
20733 else
20734 cat >conftest.$ac_ext <<_ACEOF
20735 /* confdefs.h. */
20736 _ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20742 #define $ac_func innocuous_$ac_func
20743
20744 /* System header to define __stub macros and hopefully few prototypes,
20745 which can conflict with char $ac_func (); below.
20746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20747 <limits.h> exists even on freestanding compilers. */
20748
20749 #ifdef __STDC__
20750 # include <limits.h>
20751 #else
20752 # include <assert.h>
20753 #endif
20754
20755 #undef $ac_func
20756
20757 /* Override any GCC internal prototype to avoid an error.
20758 Use char because int might match the return type of a GCC
20759 builtin and then its argument prototype would still apply. */
20760 #ifdef __cplusplus
20761 extern "C"
20762 #endif
20763 char $ac_func ();
20764 /* The GNU C library defines this for functions which it implements
20765 to always fail with ENOSYS. Some functions are actually named
20766 something starting with __ and the normal name is an alias. */
20767 #if defined __stub_$ac_func || defined __stub___$ac_func
20768 choke me
20769 #endif
20770
20771 int
20772 main ()
20773 {
20774 return $ac_func ();
20775 ;
20776 return 0;
20777 }
20778 _ACEOF
20779 rm -f conftest.$ac_objext conftest$ac_exeext
20780 if { (ac_try="$ac_link"
20781 case "(($ac_try" in
20782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783 *) ac_try_echo=$ac_try;;
20784 esac
20785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20786 $as_echo "$ac_try_echo") >&5
20787 (eval "$ac_link") 2>conftest.er1
20788 ac_status=$?
20789 grep -v '^ *+' conftest.er1 >conftest.err
20790 rm -f conftest.er1
20791 cat conftest.err >&5
20792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } && {
20794 test -z "$ac_c_werror_flag" ||
20795 test ! -s conftest.err
20796 } && test -s conftest$ac_exeext && {
20797 test "$cross_compiling" = yes ||
20798 $as_test_x conftest$ac_exeext
20799 }; then
20800 eval "$as_ac_var=yes"
20801 else
20802 $as_echo "$as_me: failed program was:" >&5
20803 sed 's/^/| /' conftest.$ac_ext >&5
20804
20805 eval "$as_ac_var=no"
20806 fi
20807
20808 rm -rf conftest.dSYM
20809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20810 conftest$ac_exeext conftest.$ac_ext
20811 fi
20812 ac_res=`eval 'as_val=${'$as_ac_var'}
20813 $as_echo "$as_val"'`
20814 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20815 $as_echo "$ac_res" >&6; }
20816 if test `eval 'as_val=${'$as_ac_var'}
20817 $as_echo "$as_val"'` = yes; then
20818 cat >>confdefs.h <<_ACEOF
20819 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20820 _ACEOF
20821
20822 else
20823 # strftime is in -lintl on SCO UNIX.
20824 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20825 $as_echo_n "checking for strftime in -lintl... " >&6; }
20826 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20827 $as_echo_n "(cached) " >&6
20828 else
20829 ac_check_lib_save_LIBS=$LIBS
20830 LIBS="-lintl $LIBS"
20831 cat >conftest.$ac_ext <<_ACEOF
20832 /* confdefs.h. */
20833 _ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h. */
20837
20838 /* Override any GCC internal prototype to avoid an error.
20839 Use char because int might match the return type of a GCC
20840 builtin and then its argument prototype would still apply. */
20841 #ifdef __cplusplus
20842 extern "C"
20843 #endif
20844 char strftime ();
20845 int
20846 main ()
20847 {
20848 return strftime ();
20849 ;
20850 return 0;
20851 }
20852 _ACEOF
20853 rm -f conftest.$ac_objext conftest$ac_exeext
20854 if { (ac_try="$ac_link"
20855 case "(($ac_try" in
20856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20857 *) ac_try_echo=$ac_try;;
20858 esac
20859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20860 $as_echo "$ac_try_echo") >&5
20861 (eval "$ac_link") 2>conftest.er1
20862 ac_status=$?
20863 grep -v '^ *+' conftest.er1 >conftest.err
20864 rm -f conftest.er1
20865 cat conftest.err >&5
20866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); } && {
20868 test -z "$ac_c_werror_flag" ||
20869 test ! -s conftest.err
20870 } && test -s conftest$ac_exeext && {
20871 test "$cross_compiling" = yes ||
20872 $as_test_x conftest$ac_exeext
20873 }; then
20874 ac_cv_lib_intl_strftime=yes
20875 else
20876 $as_echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20878
20879 ac_cv_lib_intl_strftime=no
20880 fi
20881
20882 rm -rf conftest.dSYM
20883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20884 conftest$ac_exeext conftest.$ac_ext
20885 LIBS=$ac_check_lib_save_LIBS
20886 fi
20887 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20888 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20889 if test $ac_cv_lib_intl_strftime = yes; then
20890 cat >>confdefs.h <<\_ACEOF
20891 #define HAVE_STRFTIME 1
20892 _ACEOF
20893
20894 LIBS="-lintl $LIBS"
20895 fi
20896
20897 fi
20898 done
20899
20900
20901 # UNIX98 PTYs.
20902
20903 for ac_func in grantpt
20904 do
20905 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20906 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20907 $as_echo_n "checking for $ac_func... " >&6; }
20908 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20909 $as_echo_n "(cached) " >&6
20910 else
20911 cat >conftest.$ac_ext <<_ACEOF
20912 /* confdefs.h. */
20913 _ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h. */
20917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20919 #define $ac_func innocuous_$ac_func
20920
20921 /* System header to define __stub macros and hopefully few prototypes,
20922 which can conflict with char $ac_func (); below.
20923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20924 <limits.h> exists even on freestanding compilers. */
20925
20926 #ifdef __STDC__
20927 # include <limits.h>
20928 #else
20929 # include <assert.h>
20930 #endif
20931
20932 #undef $ac_func
20933
20934 /* Override any GCC internal prototype to avoid an error.
20935 Use char because int might match the return type of a GCC
20936 builtin and then its argument prototype would still apply. */
20937 #ifdef __cplusplus
20938 extern "C"
20939 #endif
20940 char $ac_func ();
20941 /* The GNU C library defines this for functions which it implements
20942 to always fail with ENOSYS. Some functions are actually named
20943 something starting with __ and the normal name is an alias. */
20944 #if defined __stub_$ac_func || defined __stub___$ac_func
20945 choke me
20946 #endif
20947
20948 int
20949 main ()
20950 {
20951 return $ac_func ();
20952 ;
20953 return 0;
20954 }
20955 _ACEOF
20956 rm -f conftest.$ac_objext conftest$ac_exeext
20957 if { (ac_try="$ac_link"
20958 case "(($ac_try" in
20959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960 *) ac_try_echo=$ac_try;;
20961 esac
20962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20963 $as_echo "$ac_try_echo") >&5
20964 (eval "$ac_link") 2>conftest.er1
20965 ac_status=$?
20966 grep -v '^ *+' conftest.er1 >conftest.err
20967 rm -f conftest.er1
20968 cat conftest.err >&5
20969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } && {
20971 test -z "$ac_c_werror_flag" ||
20972 test ! -s conftest.err
20973 } && test -s conftest$ac_exeext && {
20974 test "$cross_compiling" = yes ||
20975 $as_test_x conftest$ac_exeext
20976 }; then
20977 eval "$as_ac_var=yes"
20978 else
20979 $as_echo "$as_me: failed program was:" >&5
20980 sed 's/^/| /' conftest.$ac_ext >&5
20981
20982 eval "$as_ac_var=no"
20983 fi
20984
20985 rm -rf conftest.dSYM
20986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20987 conftest$ac_exeext conftest.$ac_ext
20988 fi
20989 ac_res=`eval 'as_val=${'$as_ac_var'}
20990 $as_echo "$as_val"'`
20991 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20992 $as_echo "$ac_res" >&6; }
20993 if test `eval 'as_val=${'$as_ac_var'}
20994 $as_echo "$as_val"'` = yes; then
20995 cat >>confdefs.h <<_ACEOF
20996 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20997 _ACEOF
20998
20999 fi
21000 done
21001
21002
21003 # PTY-related GNU extensions.
21004
21005 for ac_func in getpt
21006 do
21007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21008 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21009 $as_echo_n "checking for $ac_func... " >&6; }
21010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21011 $as_echo_n "(cached) " >&6
21012 else
21013 cat >conftest.$ac_ext <<_ACEOF
21014 /* confdefs.h. */
21015 _ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21021 #define $ac_func innocuous_$ac_func
21022
21023 /* System header to define __stub macros and hopefully few prototypes,
21024 which can conflict with char $ac_func (); below.
21025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21026 <limits.h> exists even on freestanding compilers. */
21027
21028 #ifdef __STDC__
21029 # include <limits.h>
21030 #else
21031 # include <assert.h>
21032 #endif
21033
21034 #undef $ac_func
21035
21036 /* Override any GCC internal prototype to avoid an error.
21037 Use char because int might match the return type of a GCC
21038 builtin and then its argument prototype would still apply. */
21039 #ifdef __cplusplus
21040 extern "C"
21041 #endif
21042 char $ac_func ();
21043 /* The GNU C library defines this for functions which it implements
21044 to always fail with ENOSYS. Some functions are actually named
21045 something starting with __ and the normal name is an alias. */
21046 #if defined __stub_$ac_func || defined __stub___$ac_func
21047 choke me
21048 #endif
21049
21050 int
21051 main ()
21052 {
21053 return $ac_func ();
21054 ;
21055 return 0;
21056 }
21057 _ACEOF
21058 rm -f conftest.$ac_objext conftest$ac_exeext
21059 if { (ac_try="$ac_link"
21060 case "(($ac_try" in
21061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062 *) ac_try_echo=$ac_try;;
21063 esac
21064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21065 $as_echo "$ac_try_echo") >&5
21066 (eval "$ac_link") 2>conftest.er1
21067 ac_status=$?
21068 grep -v '^ *+' conftest.er1 >conftest.err
21069 rm -f conftest.er1
21070 cat conftest.err >&5
21071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); } && {
21073 test -z "$ac_c_werror_flag" ||
21074 test ! -s conftest.err
21075 } && test -s conftest$ac_exeext && {
21076 test "$cross_compiling" = yes ||
21077 $as_test_x conftest$ac_exeext
21078 }; then
21079 eval "$as_ac_var=yes"
21080 else
21081 $as_echo "$as_me: failed program was:" >&5
21082 sed 's/^/| /' conftest.$ac_ext >&5
21083
21084 eval "$as_ac_var=no"
21085 fi
21086
21087 rm -rf conftest.dSYM
21088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21089 conftest$ac_exeext conftest.$ac_ext
21090 fi
21091 ac_res=`eval 'as_val=${'$as_ac_var'}
21092 $as_echo "$as_val"'`
21093 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21094 $as_echo "$ac_res" >&6; }
21095 if test `eval 'as_val=${'$as_ac_var'}
21096 $as_echo "$as_val"'` = yes; then
21097 cat >>confdefs.h <<_ACEOF
21098 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21099 _ACEOF
21100
21101 fi
21102 done
21103
21104
21105 # Check this now, so that we will NOT find the above functions in ncurses.
21106 # That is because we have not set up to link ncurses in lib-src.
21107 # It's better to believe a function is not available
21108 # than to expect to find it in ncurses.
21109 # Also we need tputs and frieds to be able to build at all.
21110 have_tputs_et_al=true
21111 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21112 $as_echo_n "checking for library containing tputs... " >&6; }
21113 if test "${ac_cv_search_tputs+set}" = set; then
21114 $as_echo_n "(cached) " >&6
21115 else
21116 ac_func_search_save_LIBS=$LIBS
21117 cat >conftest.$ac_ext <<_ACEOF
21118 /* confdefs.h. */
21119 _ACEOF
21120 cat confdefs.h >>conftest.$ac_ext
21121 cat >>conftest.$ac_ext <<_ACEOF
21122 /* end confdefs.h. */
21123
21124 /* Override any GCC internal prototype to avoid an error.
21125 Use char because int might match the return type of a GCC
21126 builtin and then its argument prototype would still apply. */
21127 #ifdef __cplusplus
21128 extern "C"
21129 #endif
21130 char tputs ();
21131 int
21132 main ()
21133 {
21134 return tputs ();
21135 ;
21136 return 0;
21137 }
21138 _ACEOF
21139 for ac_lib in '' ncurses terminfo termcap; do
21140 if test -z "$ac_lib"; then
21141 ac_res="none required"
21142 else
21143 ac_res=-l$ac_lib
21144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21145 fi
21146 rm -f conftest.$ac_objext conftest$ac_exeext
21147 if { (ac_try="$ac_link"
21148 case "(($ac_try" in
21149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150 *) ac_try_echo=$ac_try;;
21151 esac
21152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21153 $as_echo "$ac_try_echo") >&5
21154 (eval "$ac_link") 2>conftest.er1
21155 ac_status=$?
21156 grep -v '^ *+' conftest.er1 >conftest.err
21157 rm -f conftest.er1
21158 cat conftest.err >&5
21159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); } && {
21161 test -z "$ac_c_werror_flag" ||
21162 test ! -s conftest.err
21163 } && test -s conftest$ac_exeext && {
21164 test "$cross_compiling" = yes ||
21165 $as_test_x conftest$ac_exeext
21166 }; then
21167 ac_cv_search_tputs=$ac_res
21168 else
21169 $as_echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21171
21172
21173 fi
21174
21175 rm -rf conftest.dSYM
21176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21177 conftest$ac_exeext
21178 if test "${ac_cv_search_tputs+set}" = set; then
21179 break
21180 fi
21181 done
21182 if test "${ac_cv_search_tputs+set}" = set; then
21183 :
21184 else
21185 ac_cv_search_tputs=no
21186 fi
21187 rm conftest.$ac_ext
21188 LIBS=$ac_func_search_save_LIBS
21189 fi
21190 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21191 $as_echo "$ac_cv_search_tputs" >&6; }
21192 ac_res=$ac_cv_search_tputs
21193 if test "$ac_res" != no; then
21194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21195
21196 else
21197 have_tputs_et_al=false
21198 fi
21199
21200 if test "$have_tputs_et_al" != true; then
21201 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21202 Maybe some development libraries/packages are missing? Try installing
21203 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21204 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21205 Maybe some development libraries/packages are missing? Try installing
21206 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21207 { (exit 1); exit 1; }; }
21208 fi
21209 # Must define this when any termcap library is found.
21210
21211 cat >>confdefs.h <<\_ACEOF
21212 #define HAVE_LIBNCURSES 1
21213 _ACEOF
21214
21215
21216 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21217
21218 resolv=no
21219 cat >conftest.$ac_ext <<_ACEOF
21220 /* confdefs.h. */
21221 _ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h. */
21225 #include <netinet/in.h>
21226 #include <arpa/nameser.h>
21227 #include <resolv.h>
21228 int
21229 main ()
21230 {
21231 return res_init();
21232 ;
21233 return 0;
21234 }
21235 _ACEOF
21236 rm -f conftest.$ac_objext conftest$ac_exeext
21237 if { (ac_try="$ac_link"
21238 case "(($ac_try" in
21239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240 *) ac_try_echo=$ac_try;;
21241 esac
21242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21243 $as_echo "$ac_try_echo") >&5
21244 (eval "$ac_link") 2>conftest.er1
21245 ac_status=$?
21246 grep -v '^ *+' conftest.er1 >conftest.err
21247 rm -f conftest.er1
21248 cat conftest.err >&5
21249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } && {
21251 test -z "$ac_c_werror_flag" ||
21252 test ! -s conftest.err
21253 } && test -s conftest$ac_exeext && {
21254 test "$cross_compiling" = yes ||
21255 $as_test_x conftest$ac_exeext
21256 }; then
21257 have_res_init=yes
21258 else
21259 $as_echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21261
21262 have_res_init=no
21263 fi
21264
21265 rm -rf conftest.dSYM
21266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21267 conftest$ac_exeext conftest.$ac_ext
21268 if test "$have_res_init" = no; then
21269 OLIBS="$LIBS"
21270 LIBS="$LIBS -lresolv"
21271 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21272 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21273 cat >conftest.$ac_ext <<_ACEOF
21274 /* confdefs.h. */
21275 _ACEOF
21276 cat confdefs.h >>conftest.$ac_ext
21277 cat >>conftest.$ac_ext <<_ACEOF
21278 /* end confdefs.h. */
21279 #include <netinet/in.h>
21280 #include <arpa/nameser.h>
21281 #include <resolv.h>
21282 int
21283 main ()
21284 {
21285 return res_init();
21286 ;
21287 return 0;
21288 }
21289 _ACEOF
21290 rm -f conftest.$ac_objext conftest$ac_exeext
21291 if { (ac_try="$ac_link"
21292 case "(($ac_try" in
21293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21294 *) ac_try_echo=$ac_try;;
21295 esac
21296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21297 $as_echo "$ac_try_echo") >&5
21298 (eval "$ac_link") 2>conftest.er1
21299 ac_status=$?
21300 grep -v '^ *+' conftest.er1 >conftest.err
21301 rm -f conftest.er1
21302 cat conftest.err >&5
21303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); } && {
21305 test -z "$ac_c_werror_flag" ||
21306 test ! -s conftest.err
21307 } && test -s conftest$ac_exeext && {
21308 test "$cross_compiling" = yes ||
21309 $as_test_x conftest$ac_exeext
21310 }; then
21311 have_res_init=yes
21312 else
21313 $as_echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21315
21316 have_res_init=no
21317 fi
21318
21319 rm -rf conftest.dSYM
21320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21321 conftest$ac_exeext conftest.$ac_ext
21322 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21323 $as_echo "$have_res_init" >&6; }
21324 if test "$have_res_init" = yes ; then
21325 resolv=yes
21326 fi
21327 LIBS="$OLIBS"
21328 fi
21329
21330 if test "$have_res_init" = yes; then
21331
21332 cat >>confdefs.h <<\_ACEOF
21333 #define HAVE_RES_INIT 1
21334 _ACEOF
21335
21336 fi
21337
21338 # Do we need the Hesiod library to provide the support routines?
21339 LIBHESIOD=
21340 if test "$with_hesiod" != no ; then
21341 # Don't set $LIBS here -- see comments above. FIXME which comments?
21342 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21343 $as_echo_n "checking for res_send... " >&6; }
21344 if test "${ac_cv_func_res_send+set}" = set; then
21345 $as_echo_n "(cached) " >&6
21346 else
21347 cat >conftest.$ac_ext <<_ACEOF
21348 /* confdefs.h. */
21349 _ACEOF
21350 cat confdefs.h >>conftest.$ac_ext
21351 cat >>conftest.$ac_ext <<_ACEOF
21352 /* end confdefs.h. */
21353 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21355 #define res_send innocuous_res_send
21356
21357 /* System header to define __stub macros and hopefully few prototypes,
21358 which can conflict with char res_send (); below.
21359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21360 <limits.h> exists even on freestanding compilers. */
21361
21362 #ifdef __STDC__
21363 # include <limits.h>
21364 #else
21365 # include <assert.h>
21366 #endif
21367
21368 #undef res_send
21369
21370 /* Override any GCC internal prototype to avoid an error.
21371 Use char because int might match the return type of a GCC
21372 builtin and then its argument prototype would still apply. */
21373 #ifdef __cplusplus
21374 extern "C"
21375 #endif
21376 char res_send ();
21377 /* The GNU C library defines this for functions which it implements
21378 to always fail with ENOSYS. Some functions are actually named
21379 something starting with __ and the normal name is an alias. */
21380 #if defined __stub_res_send || defined __stub___res_send
21381 choke me
21382 #endif
21383
21384 int
21385 main ()
21386 {
21387 return res_send ();
21388 ;
21389 return 0;
21390 }
21391 _ACEOF
21392 rm -f conftest.$ac_objext conftest$ac_exeext
21393 if { (ac_try="$ac_link"
21394 case "(($ac_try" in
21395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396 *) ac_try_echo=$ac_try;;
21397 esac
21398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21399 $as_echo "$ac_try_echo") >&5
21400 (eval "$ac_link") 2>conftest.er1
21401 ac_status=$?
21402 grep -v '^ *+' conftest.er1 >conftest.err
21403 rm -f conftest.er1
21404 cat conftest.err >&5
21405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); } && {
21407 test -z "$ac_c_werror_flag" ||
21408 test ! -s conftest.err
21409 } && test -s conftest$ac_exeext && {
21410 test "$cross_compiling" = yes ||
21411 $as_test_x conftest$ac_exeext
21412 }; then
21413 ac_cv_func_res_send=yes
21414 else
21415 $as_echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21417
21418 ac_cv_func_res_send=no
21419 fi
21420
21421 rm -rf conftest.dSYM
21422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21423 conftest$ac_exeext conftest.$ac_ext
21424 fi
21425 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21426 $as_echo "$ac_cv_func_res_send" >&6; }
21427 if test $ac_cv_func_res_send = yes; then
21428 :
21429 else
21430 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21431 $as_echo_n "checking for __res_send... " >&6; }
21432 if test "${ac_cv_func___res_send+set}" = set; then
21433 $as_echo_n "(cached) " >&6
21434 else
21435 cat >conftest.$ac_ext <<_ACEOF
21436 /* confdefs.h. */
21437 _ACEOF
21438 cat confdefs.h >>conftest.$ac_ext
21439 cat >>conftest.$ac_ext <<_ACEOF
21440 /* end confdefs.h. */
21441 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21443 #define __res_send innocuous___res_send
21444
21445 /* System header to define __stub macros and hopefully few prototypes,
21446 which can conflict with char __res_send (); below.
21447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21448 <limits.h> exists even on freestanding compilers. */
21449
21450 #ifdef __STDC__
21451 # include <limits.h>
21452 #else
21453 # include <assert.h>
21454 #endif
21455
21456 #undef __res_send
21457
21458 /* Override any GCC internal prototype to avoid an error.
21459 Use char because int might match the return type of a GCC
21460 builtin and then its argument prototype would still apply. */
21461 #ifdef __cplusplus
21462 extern "C"
21463 #endif
21464 char __res_send ();
21465 /* The GNU C library defines this for functions which it implements
21466 to always fail with ENOSYS. Some functions are actually named
21467 something starting with __ and the normal name is an alias. */
21468 #if defined __stub___res_send || defined __stub_____res_send
21469 choke me
21470 #endif
21471
21472 int
21473 main ()
21474 {
21475 return __res_send ();
21476 ;
21477 return 0;
21478 }
21479 _ACEOF
21480 rm -f conftest.$ac_objext conftest$ac_exeext
21481 if { (ac_try="$ac_link"
21482 case "(($ac_try" in
21483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21484 *) ac_try_echo=$ac_try;;
21485 esac
21486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21487 $as_echo "$ac_try_echo") >&5
21488 (eval "$ac_link") 2>conftest.er1
21489 ac_status=$?
21490 grep -v '^ *+' conftest.er1 >conftest.err
21491 rm -f conftest.er1
21492 cat conftest.err >&5
21493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); } && {
21495 test -z "$ac_c_werror_flag" ||
21496 test ! -s conftest.err
21497 } && test -s conftest$ac_exeext && {
21498 test "$cross_compiling" = yes ||
21499 $as_test_x conftest$ac_exeext
21500 }; then
21501 ac_cv_func___res_send=yes
21502 else
21503 $as_echo "$as_me: failed program was:" >&5
21504 sed 's/^/| /' conftest.$ac_ext >&5
21505
21506 ac_cv_func___res_send=no
21507 fi
21508
21509 rm -rf conftest.dSYM
21510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21511 conftest$ac_exeext conftest.$ac_ext
21512 fi
21513 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21514 $as_echo "$ac_cv_func___res_send" >&6; }
21515 if test $ac_cv_func___res_send = yes; then
21516 :
21517 else
21518 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21519 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21520 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21521 $as_echo_n "(cached) " >&6
21522 else
21523 ac_check_lib_save_LIBS=$LIBS
21524 LIBS="-lresolv $LIBS"
21525 cat >conftest.$ac_ext <<_ACEOF
21526 /* confdefs.h. */
21527 _ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h. */
21531
21532 /* Override any GCC internal prototype to avoid an error.
21533 Use char because int might match the return type of a GCC
21534 builtin and then its argument prototype would still apply. */
21535 #ifdef __cplusplus
21536 extern "C"
21537 #endif
21538 char res_send ();
21539 int
21540 main ()
21541 {
21542 return res_send ();
21543 ;
21544 return 0;
21545 }
21546 _ACEOF
21547 rm -f conftest.$ac_objext conftest$ac_exeext
21548 if { (ac_try="$ac_link"
21549 case "(($ac_try" in
21550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551 *) ac_try_echo=$ac_try;;
21552 esac
21553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21554 $as_echo "$ac_try_echo") >&5
21555 (eval "$ac_link") 2>conftest.er1
21556 ac_status=$?
21557 grep -v '^ *+' conftest.er1 >conftest.err
21558 rm -f conftest.er1
21559 cat conftest.err >&5
21560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); } && {
21562 test -z "$ac_c_werror_flag" ||
21563 test ! -s conftest.err
21564 } && test -s conftest$ac_exeext && {
21565 test "$cross_compiling" = yes ||
21566 $as_test_x conftest$ac_exeext
21567 }; then
21568 ac_cv_lib_resolv_res_send=yes
21569 else
21570 $as_echo "$as_me: failed program was:" >&5
21571 sed 's/^/| /' conftest.$ac_ext >&5
21572
21573 ac_cv_lib_resolv_res_send=no
21574 fi
21575
21576 rm -rf conftest.dSYM
21577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21578 conftest$ac_exeext conftest.$ac_ext
21579 LIBS=$ac_check_lib_save_LIBS
21580 fi
21581 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21582 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21583 if test $ac_cv_lib_resolv_res_send = yes; then
21584 resolv=yes
21585 else
21586 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21587 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21588 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21589 $as_echo_n "(cached) " >&6
21590 else
21591 ac_check_lib_save_LIBS=$LIBS
21592 LIBS="-lresolv $LIBS"
21593 cat >conftest.$ac_ext <<_ACEOF
21594 /* confdefs.h. */
21595 _ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h. */
21599
21600 /* Override any GCC internal prototype to avoid an error.
21601 Use char because int might match the return type of a GCC
21602 builtin and then its argument prototype would still apply. */
21603 #ifdef __cplusplus
21604 extern "C"
21605 #endif
21606 char __res_send ();
21607 int
21608 main ()
21609 {
21610 return __res_send ();
21611 ;
21612 return 0;
21613 }
21614 _ACEOF
21615 rm -f conftest.$ac_objext conftest$ac_exeext
21616 if { (ac_try="$ac_link"
21617 case "(($ac_try" in
21618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21619 *) ac_try_echo=$ac_try;;
21620 esac
21621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21622 $as_echo "$ac_try_echo") >&5
21623 (eval "$ac_link") 2>conftest.er1
21624 ac_status=$?
21625 grep -v '^ *+' conftest.er1 >conftest.err
21626 rm -f conftest.er1
21627 cat conftest.err >&5
21628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); } && {
21630 test -z "$ac_c_werror_flag" ||
21631 test ! -s conftest.err
21632 } && test -s conftest$ac_exeext && {
21633 test "$cross_compiling" = yes ||
21634 $as_test_x conftest$ac_exeext
21635 }; then
21636 ac_cv_lib_resolv___res_send=yes
21637 else
21638 $as_echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21640
21641 ac_cv_lib_resolv___res_send=no
21642 fi
21643
21644 rm -rf conftest.dSYM
21645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21646 conftest$ac_exeext conftest.$ac_ext
21647 LIBS=$ac_check_lib_save_LIBS
21648 fi
21649 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21650 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21651 if test $ac_cv_lib_resolv___res_send = yes; then
21652 resolv=yes
21653 fi
21654
21655 fi
21656
21657 fi
21658
21659 fi
21660
21661 if test "$resolv" = yes ; then
21662 RESOLVLIB=-lresolv
21663 else
21664 RESOLVLIB=
21665 fi
21666 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21667 $as_echo_n "checking for hes_getmailhost... " >&6; }
21668 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21669 $as_echo_n "(cached) " >&6
21670 else
21671 cat >conftest.$ac_ext <<_ACEOF
21672 /* confdefs.h. */
21673 _ACEOF
21674 cat confdefs.h >>conftest.$ac_ext
21675 cat >>conftest.$ac_ext <<_ACEOF
21676 /* end confdefs.h. */
21677 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21679 #define hes_getmailhost innocuous_hes_getmailhost
21680
21681 /* System header to define __stub macros and hopefully few prototypes,
21682 which can conflict with char hes_getmailhost (); below.
21683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21684 <limits.h> exists even on freestanding compilers. */
21685
21686 #ifdef __STDC__
21687 # include <limits.h>
21688 #else
21689 # include <assert.h>
21690 #endif
21691
21692 #undef hes_getmailhost
21693
21694 /* Override any GCC internal prototype to avoid an error.
21695 Use char because int might match the return type of a GCC
21696 builtin and then its argument prototype would still apply. */
21697 #ifdef __cplusplus
21698 extern "C"
21699 #endif
21700 char hes_getmailhost ();
21701 /* The GNU C library defines this for functions which it implements
21702 to always fail with ENOSYS. Some functions are actually named
21703 something starting with __ and the normal name is an alias. */
21704 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21705 choke me
21706 #endif
21707
21708 int
21709 main ()
21710 {
21711 return hes_getmailhost ();
21712 ;
21713 return 0;
21714 }
21715 _ACEOF
21716 rm -f conftest.$ac_objext conftest$ac_exeext
21717 if { (ac_try="$ac_link"
21718 case "(($ac_try" in
21719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21720 *) ac_try_echo=$ac_try;;
21721 esac
21722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21723 $as_echo "$ac_try_echo") >&5
21724 (eval "$ac_link") 2>conftest.er1
21725 ac_status=$?
21726 grep -v '^ *+' conftest.er1 >conftest.err
21727 rm -f conftest.er1
21728 cat conftest.err >&5
21729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } && {
21731 test -z "$ac_c_werror_flag" ||
21732 test ! -s conftest.err
21733 } && test -s conftest$ac_exeext && {
21734 test "$cross_compiling" = yes ||
21735 $as_test_x conftest$ac_exeext
21736 }; then
21737 ac_cv_func_hes_getmailhost=yes
21738 else
21739 $as_echo "$as_me: failed program was:" >&5
21740 sed 's/^/| /' conftest.$ac_ext >&5
21741
21742 ac_cv_func_hes_getmailhost=no
21743 fi
21744
21745 rm -rf conftest.dSYM
21746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21747 conftest$ac_exeext conftest.$ac_ext
21748 fi
21749 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21750 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21751 if test $ac_cv_func_hes_getmailhost = yes; then
21752 :
21753 else
21754 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21755 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21756 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21757 $as_echo_n "(cached) " >&6
21758 else
21759 ac_check_lib_save_LIBS=$LIBS
21760 LIBS="-lhesiod $RESOLVLIB $LIBS"
21761 cat >conftest.$ac_ext <<_ACEOF
21762 /* confdefs.h. */
21763 _ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h. */
21767
21768 /* Override any GCC internal prototype to avoid an error.
21769 Use char because int might match the return type of a GCC
21770 builtin and then its argument prototype would still apply. */
21771 #ifdef __cplusplus
21772 extern "C"
21773 #endif
21774 char hes_getmailhost ();
21775 int
21776 main ()
21777 {
21778 return hes_getmailhost ();
21779 ;
21780 return 0;
21781 }
21782 _ACEOF
21783 rm -f conftest.$ac_objext conftest$ac_exeext
21784 if { (ac_try="$ac_link"
21785 case "(($ac_try" in
21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21788 esac
21789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21790 $as_echo "$ac_try_echo") >&5
21791 (eval "$ac_link") 2>conftest.er1
21792 ac_status=$?
21793 grep -v '^ *+' conftest.er1 >conftest.err
21794 rm -f conftest.er1
21795 cat conftest.err >&5
21796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); } && {
21798 test -z "$ac_c_werror_flag" ||
21799 test ! -s conftest.err
21800 } && test -s conftest$ac_exeext && {
21801 test "$cross_compiling" = yes ||
21802 $as_test_x conftest$ac_exeext
21803 }; then
21804 ac_cv_lib_hesiod_hes_getmailhost=yes
21805 else
21806 $as_echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21808
21809 ac_cv_lib_hesiod_hes_getmailhost=no
21810 fi
21811
21812 rm -rf conftest.dSYM
21813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21814 conftest$ac_exeext conftest.$ac_ext
21815 LIBS=$ac_check_lib_save_LIBS
21816 fi
21817 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21818 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21819 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21820 hesiod=yes
21821 else
21822 :
21823 fi
21824
21825 fi
21826
21827
21828 if test x"$hesiod" = xyes; then
21829
21830 cat >>confdefs.h <<\_ACEOF
21831 #define HAVE_LIBHESIOD 1
21832 _ACEOF
21833
21834 LIBHESIOD=-lhesiod
21835 fi
21836 fi
21837
21838
21839 # Do we need libresolv (due to res_init or Hesiod)?
21840 if test "$resolv" = yes ; then
21841
21842 cat >>confdefs.h <<\_ACEOF
21843 #define HAVE_LIBRESOLV 1
21844 _ACEOF
21845
21846 LIBRESOLV=-lresolv
21847 else
21848 LIBRESOLV=
21849 fi
21850
21851
21852 # These tell us which Kerberos-related libraries to use.
21853 COM_ERRLIB=
21854 CRYPTOLIB=
21855 KRB5LIB=
21856 DESLIB=
21857 KRB4LIB=
21858
21859 if test "${with_kerberos}" != no; then
21860 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21861 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21862 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21863 $as_echo_n "(cached) " >&6
21864 else
21865 ac_check_lib_save_LIBS=$LIBS
21866 LIBS="-lcom_err $LIBS"
21867 cat >conftest.$ac_ext <<_ACEOF
21868 /* confdefs.h. */
21869 _ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h. */
21873
21874 /* Override any GCC internal prototype to avoid an error.
21875 Use char because int might match the return type of a GCC
21876 builtin and then its argument prototype would still apply. */
21877 #ifdef __cplusplus
21878 extern "C"
21879 #endif
21880 char com_err ();
21881 int
21882 main ()
21883 {
21884 return com_err ();
21885 ;
21886 return 0;
21887 }
21888 _ACEOF
21889 rm -f conftest.$ac_objext conftest$ac_exeext
21890 if { (ac_try="$ac_link"
21891 case "(($ac_try" in
21892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21893 *) ac_try_echo=$ac_try;;
21894 esac
21895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21896 $as_echo "$ac_try_echo") >&5
21897 (eval "$ac_link") 2>conftest.er1
21898 ac_status=$?
21899 grep -v '^ *+' conftest.er1 >conftest.err
21900 rm -f conftest.er1
21901 cat conftest.err >&5
21902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); } && {
21904 test -z "$ac_c_werror_flag" ||
21905 test ! -s conftest.err
21906 } && test -s conftest$ac_exeext && {
21907 test "$cross_compiling" = yes ||
21908 $as_test_x conftest$ac_exeext
21909 }; then
21910 ac_cv_lib_com_err_com_err=yes
21911 else
21912 $as_echo "$as_me: failed program was:" >&5
21913 sed 's/^/| /' conftest.$ac_ext >&5
21914
21915 ac_cv_lib_com_err_com_err=no
21916 fi
21917
21918 rm -rf conftest.dSYM
21919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21920 conftest$ac_exeext conftest.$ac_ext
21921 LIBS=$ac_check_lib_save_LIBS
21922 fi
21923 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21924 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21925 if test $ac_cv_lib_com_err_com_err = yes; then
21926 have_com_err=yes
21927 else
21928 have_com_err=no
21929 fi
21930
21931 if test $have_com_err = yes; then
21932 COM_ERRLIB=-lcom_err
21933 LIBS="$COM_ERRLIB $LIBS"
21934
21935 cat >>confdefs.h <<\_ACEOF
21936 #define HAVE_LIBCOM_ERR 1
21937 _ACEOF
21938
21939 fi
21940 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21941 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21942 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21943 $as_echo_n "(cached) " >&6
21944 else
21945 ac_check_lib_save_LIBS=$LIBS
21946 LIBS="-lcrypto $LIBS"
21947 cat >conftest.$ac_ext <<_ACEOF
21948 /* confdefs.h. */
21949 _ACEOF
21950 cat confdefs.h >>conftest.$ac_ext
21951 cat >>conftest.$ac_ext <<_ACEOF
21952 /* end confdefs.h. */
21953
21954 /* Override any GCC internal prototype to avoid an error.
21955 Use char because int might match the return type of a GCC
21956 builtin and then its argument prototype would still apply. */
21957 #ifdef __cplusplus
21958 extern "C"
21959 #endif
21960 char mit_des_cbc_encrypt ();
21961 int
21962 main ()
21963 {
21964 return mit_des_cbc_encrypt ();
21965 ;
21966 return 0;
21967 }
21968 _ACEOF
21969 rm -f conftest.$ac_objext conftest$ac_exeext
21970 if { (ac_try="$ac_link"
21971 case "(($ac_try" in
21972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21973 *) ac_try_echo=$ac_try;;
21974 esac
21975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21976 $as_echo "$ac_try_echo") >&5
21977 (eval "$ac_link") 2>conftest.er1
21978 ac_status=$?
21979 grep -v '^ *+' conftest.er1 >conftest.err
21980 rm -f conftest.er1
21981 cat conftest.err >&5
21982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); } && {
21984 test -z "$ac_c_werror_flag" ||
21985 test ! -s conftest.err
21986 } && test -s conftest$ac_exeext && {
21987 test "$cross_compiling" = yes ||
21988 $as_test_x conftest$ac_exeext
21989 }; then
21990 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21991 else
21992 $as_echo "$as_me: failed program was:" >&5
21993 sed 's/^/| /' conftest.$ac_ext >&5
21994
21995 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21996 fi
21997
21998 rm -rf conftest.dSYM
21999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22000 conftest$ac_exeext conftest.$ac_ext
22001 LIBS=$ac_check_lib_save_LIBS
22002 fi
22003 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22004 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22005 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22006 have_crypto=yes
22007 else
22008 have_crypto=no
22009 fi
22010
22011 if test $have_crypto = yes; then
22012 CRYPTOLIB=-lcrypto
22013 LIBS="$CRYPTOLIB $LIBS"
22014
22015 cat >>confdefs.h <<\_ACEOF
22016 #define HAVE_LIBCRYPTO 1
22017 _ACEOF
22018
22019 fi
22020 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22021 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22022 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22023 $as_echo_n "(cached) " >&6
22024 else
22025 ac_check_lib_save_LIBS=$LIBS
22026 LIBS="-lk5crypto $LIBS"
22027 cat >conftest.$ac_ext <<_ACEOF
22028 /* confdefs.h. */
22029 _ACEOF
22030 cat confdefs.h >>conftest.$ac_ext
22031 cat >>conftest.$ac_ext <<_ACEOF
22032 /* end confdefs.h. */
22033
22034 /* Override any GCC internal prototype to avoid an error.
22035 Use char because int might match the return type of a GCC
22036 builtin and then its argument prototype would still apply. */
22037 #ifdef __cplusplus
22038 extern "C"
22039 #endif
22040 char mit_des_cbc_encrypt ();
22041 int
22042 main ()
22043 {
22044 return mit_des_cbc_encrypt ();
22045 ;
22046 return 0;
22047 }
22048 _ACEOF
22049 rm -f conftest.$ac_objext conftest$ac_exeext
22050 if { (ac_try="$ac_link"
22051 case "(($ac_try" in
22052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22053 *) ac_try_echo=$ac_try;;
22054 esac
22055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22056 $as_echo "$ac_try_echo") >&5
22057 (eval "$ac_link") 2>conftest.er1
22058 ac_status=$?
22059 grep -v '^ *+' conftest.er1 >conftest.err
22060 rm -f conftest.er1
22061 cat conftest.err >&5
22062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); } && {
22064 test -z "$ac_c_werror_flag" ||
22065 test ! -s conftest.err
22066 } && test -s conftest$ac_exeext && {
22067 test "$cross_compiling" = yes ||
22068 $as_test_x conftest$ac_exeext
22069 }; then
22070 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22071 else
22072 $as_echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22074
22075 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22076 fi
22077
22078 rm -rf conftest.dSYM
22079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22080 conftest$ac_exeext conftest.$ac_ext
22081 LIBS=$ac_check_lib_save_LIBS
22082 fi
22083 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22084 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22085 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22086 have_k5crypto=yes
22087 else
22088 have_k5crypto=no
22089 fi
22090
22091 if test $have_k5crypto = yes; then
22092 CRYPTOLIB=-lk5crypto
22093 LIBS="$CRYPTOLIB $LIBS"
22094
22095 cat >>confdefs.h <<\_ACEOF
22096 #define HAVE_LIBK5CRYPTO 1
22097 _ACEOF
22098
22099 fi
22100 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22101 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22102 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22103 $as_echo_n "(cached) " >&6
22104 else
22105 ac_check_lib_save_LIBS=$LIBS
22106 LIBS="-lkrb5 $LIBS"
22107 cat >conftest.$ac_ext <<_ACEOF
22108 /* confdefs.h. */
22109 _ACEOF
22110 cat confdefs.h >>conftest.$ac_ext
22111 cat >>conftest.$ac_ext <<_ACEOF
22112 /* end confdefs.h. */
22113
22114 /* Override any GCC internal prototype to avoid an error.
22115 Use char because int might match the return type of a GCC
22116 builtin and then its argument prototype would still apply. */
22117 #ifdef __cplusplus
22118 extern "C"
22119 #endif
22120 char krb5_init_context ();
22121 int
22122 main ()
22123 {
22124 return krb5_init_context ();
22125 ;
22126 return 0;
22127 }
22128 _ACEOF
22129 rm -f conftest.$ac_objext conftest$ac_exeext
22130 if { (ac_try="$ac_link"
22131 case "(($ac_try" in
22132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22133 *) ac_try_echo=$ac_try;;
22134 esac
22135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22136 $as_echo "$ac_try_echo") >&5
22137 (eval "$ac_link") 2>conftest.er1
22138 ac_status=$?
22139 grep -v '^ *+' conftest.er1 >conftest.err
22140 rm -f conftest.er1
22141 cat conftest.err >&5
22142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); } && {
22144 test -z "$ac_c_werror_flag" ||
22145 test ! -s conftest.err
22146 } && test -s conftest$ac_exeext && {
22147 test "$cross_compiling" = yes ||
22148 $as_test_x conftest$ac_exeext
22149 }; then
22150 ac_cv_lib_krb5_krb5_init_context=yes
22151 else
22152 $as_echo "$as_me: failed program was:" >&5
22153 sed 's/^/| /' conftest.$ac_ext >&5
22154
22155 ac_cv_lib_krb5_krb5_init_context=no
22156 fi
22157
22158 rm -rf conftest.dSYM
22159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22160 conftest$ac_exeext conftest.$ac_ext
22161 LIBS=$ac_check_lib_save_LIBS
22162 fi
22163 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22164 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22165 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22166 have_krb5=yes
22167 else
22168 have_krb5=no
22169 fi
22170
22171 if test $have_krb5=yes; then
22172 KRB5LIB=-lkrb5
22173 LIBS="$KRB5LIB $LIBS"
22174
22175 cat >>confdefs.h <<\_ACEOF
22176 #define HAVE_LIBKRB5 1
22177 _ACEOF
22178
22179 fi
22180 if test "${with_kerberos5}" = no; then
22181 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22182 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22183 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22184 $as_echo_n "(cached) " >&6
22185 else
22186 ac_check_lib_save_LIBS=$LIBS
22187 LIBS="-ldes425 $LIBS"
22188 cat >conftest.$ac_ext <<_ACEOF
22189 /* confdefs.h. */
22190 _ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h. */
22194
22195 /* Override any GCC internal prototype to avoid an error.
22196 Use char because int might match the return type of a GCC
22197 builtin and then its argument prototype would still apply. */
22198 #ifdef __cplusplus
22199 extern "C"
22200 #endif
22201 char des_cbc_encrypt ();
22202 int
22203 main ()
22204 {
22205 return des_cbc_encrypt ();
22206 ;
22207 return 0;
22208 }
22209 _ACEOF
22210 rm -f conftest.$ac_objext conftest$ac_exeext
22211 if { (ac_try="$ac_link"
22212 case "(($ac_try" in
22213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22214 *) ac_try_echo=$ac_try;;
22215 esac
22216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22217 $as_echo "$ac_try_echo") >&5
22218 (eval "$ac_link") 2>conftest.er1
22219 ac_status=$?
22220 grep -v '^ *+' conftest.er1 >conftest.err
22221 rm -f conftest.er1
22222 cat conftest.err >&5
22223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); } && {
22225 test -z "$ac_c_werror_flag" ||
22226 test ! -s conftest.err
22227 } && test -s conftest$ac_exeext && {
22228 test "$cross_compiling" = yes ||
22229 $as_test_x conftest$ac_exeext
22230 }; then
22231 ac_cv_lib_des425_des_cbc_encrypt=yes
22232 else
22233 $as_echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22235
22236 ac_cv_lib_des425_des_cbc_encrypt=no
22237 fi
22238
22239 rm -rf conftest.dSYM
22240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22241 conftest$ac_exeext conftest.$ac_ext
22242 LIBS=$ac_check_lib_save_LIBS
22243 fi
22244 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22245 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22246 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22247 have_des425=yes
22248 else
22249 have_des425=no
22250 fi
22251
22252 if test $have_des425 = yes; then
22253 DESLIB=-ldes425
22254 LIBS="$DESLIB $LIBS"
22255
22256 cat >>confdefs.h <<\_ACEOF
22257 #define HAVE_LIBDES425 1
22258 _ACEOF
22259
22260 else
22261 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22262 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22263 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22264 $as_echo_n "(cached) " >&6
22265 else
22266 ac_check_lib_save_LIBS=$LIBS
22267 LIBS="-ldes $LIBS"
22268 cat >conftest.$ac_ext <<_ACEOF
22269 /* confdefs.h. */
22270 _ACEOF
22271 cat confdefs.h >>conftest.$ac_ext
22272 cat >>conftest.$ac_ext <<_ACEOF
22273 /* end confdefs.h. */
22274
22275 /* Override any GCC internal prototype to avoid an error.
22276 Use char because int might match the return type of a GCC
22277 builtin and then its argument prototype would still apply. */
22278 #ifdef __cplusplus
22279 extern "C"
22280 #endif
22281 char des_cbc_encrypt ();
22282 int
22283 main ()
22284 {
22285 return des_cbc_encrypt ();
22286 ;
22287 return 0;
22288 }
22289 _ACEOF
22290 rm -f conftest.$ac_objext conftest$ac_exeext
22291 if { (ac_try="$ac_link"
22292 case "(($ac_try" in
22293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22294 *) ac_try_echo=$ac_try;;
22295 esac
22296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22297 $as_echo "$ac_try_echo") >&5
22298 (eval "$ac_link") 2>conftest.er1
22299 ac_status=$?
22300 grep -v '^ *+' conftest.er1 >conftest.err
22301 rm -f conftest.er1
22302 cat conftest.err >&5
22303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); } && {
22305 test -z "$ac_c_werror_flag" ||
22306 test ! -s conftest.err
22307 } && test -s conftest$ac_exeext && {
22308 test "$cross_compiling" = yes ||
22309 $as_test_x conftest$ac_exeext
22310 }; then
22311 ac_cv_lib_des_des_cbc_encrypt=yes
22312 else
22313 $as_echo "$as_me: failed program was:" >&5
22314 sed 's/^/| /' conftest.$ac_ext >&5
22315
22316 ac_cv_lib_des_des_cbc_encrypt=no
22317 fi
22318
22319 rm -rf conftest.dSYM
22320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22321 conftest$ac_exeext conftest.$ac_ext
22322 LIBS=$ac_check_lib_save_LIBS
22323 fi
22324 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22325 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22326 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22327 have_des=yes
22328 else
22329 have_des=no
22330 fi
22331
22332 if test $have_des = yes; then
22333 DESLIB=-ldes
22334 LIBS="$DESLIB $LIBS"
22335
22336 cat >>confdefs.h <<\_ACEOF
22337 #define HAVE_LIBDES 1
22338 _ACEOF
22339
22340 fi
22341 fi
22342 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22343 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22344 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22345 $as_echo_n "(cached) " >&6
22346 else
22347 ac_check_lib_save_LIBS=$LIBS
22348 LIBS="-lkrb4 $LIBS"
22349 cat >conftest.$ac_ext <<_ACEOF
22350 /* confdefs.h. */
22351 _ACEOF
22352 cat confdefs.h >>conftest.$ac_ext
22353 cat >>conftest.$ac_ext <<_ACEOF
22354 /* end confdefs.h. */
22355
22356 /* Override any GCC internal prototype to avoid an error.
22357 Use char because int might match the return type of a GCC
22358 builtin and then its argument prototype would still apply. */
22359 #ifdef __cplusplus
22360 extern "C"
22361 #endif
22362 char krb_get_cred ();
22363 int
22364 main ()
22365 {
22366 return krb_get_cred ();
22367 ;
22368 return 0;
22369 }
22370 _ACEOF
22371 rm -f conftest.$ac_objext conftest$ac_exeext
22372 if { (ac_try="$ac_link"
22373 case "(($ac_try" in
22374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22375 *) ac_try_echo=$ac_try;;
22376 esac
22377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22378 $as_echo "$ac_try_echo") >&5
22379 (eval "$ac_link") 2>conftest.er1
22380 ac_status=$?
22381 grep -v '^ *+' conftest.er1 >conftest.err
22382 rm -f conftest.er1
22383 cat conftest.err >&5
22384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); } && {
22386 test -z "$ac_c_werror_flag" ||
22387 test ! -s conftest.err
22388 } && test -s conftest$ac_exeext && {
22389 test "$cross_compiling" = yes ||
22390 $as_test_x conftest$ac_exeext
22391 }; then
22392 ac_cv_lib_krb4_krb_get_cred=yes
22393 else
22394 $as_echo "$as_me: failed program was:" >&5
22395 sed 's/^/| /' conftest.$ac_ext >&5
22396
22397 ac_cv_lib_krb4_krb_get_cred=no
22398 fi
22399
22400 rm -rf conftest.dSYM
22401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22402 conftest$ac_exeext conftest.$ac_ext
22403 LIBS=$ac_check_lib_save_LIBS
22404 fi
22405 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22406 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22407 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22408 have_krb4=yes
22409 else
22410 have_krb4=no
22411 fi
22412
22413 if test $have_krb4 = yes; then
22414 KRB4LIB=-lkrb4
22415 LIBS="$KRB4LIB $LIBS"
22416
22417 cat >>confdefs.h <<\_ACEOF
22418 #define HAVE_LIBKRB4 1
22419 _ACEOF
22420
22421 else
22422 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22423 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22424 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22425 $as_echo_n "(cached) " >&6
22426 else
22427 ac_check_lib_save_LIBS=$LIBS
22428 LIBS="-lkrb $LIBS"
22429 cat >conftest.$ac_ext <<_ACEOF
22430 /* confdefs.h. */
22431 _ACEOF
22432 cat confdefs.h >>conftest.$ac_ext
22433 cat >>conftest.$ac_ext <<_ACEOF
22434 /* end confdefs.h. */
22435
22436 /* Override any GCC internal prototype to avoid an error.
22437 Use char because int might match the return type of a GCC
22438 builtin and then its argument prototype would still apply. */
22439 #ifdef __cplusplus
22440 extern "C"
22441 #endif
22442 char krb_get_cred ();
22443 int
22444 main ()
22445 {
22446 return krb_get_cred ();
22447 ;
22448 return 0;
22449 }
22450 _ACEOF
22451 rm -f conftest.$ac_objext conftest$ac_exeext
22452 if { (ac_try="$ac_link"
22453 case "(($ac_try" in
22454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455 *) ac_try_echo=$ac_try;;
22456 esac
22457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22458 $as_echo "$ac_try_echo") >&5
22459 (eval "$ac_link") 2>conftest.er1
22460 ac_status=$?
22461 grep -v '^ *+' conftest.er1 >conftest.err
22462 rm -f conftest.er1
22463 cat conftest.err >&5
22464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); } && {
22466 test -z "$ac_c_werror_flag" ||
22467 test ! -s conftest.err
22468 } && test -s conftest$ac_exeext && {
22469 test "$cross_compiling" = yes ||
22470 $as_test_x conftest$ac_exeext
22471 }; then
22472 ac_cv_lib_krb_krb_get_cred=yes
22473 else
22474 $as_echo "$as_me: failed program was:" >&5
22475 sed 's/^/| /' conftest.$ac_ext >&5
22476
22477 ac_cv_lib_krb_krb_get_cred=no
22478 fi
22479
22480 rm -rf conftest.dSYM
22481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22482 conftest$ac_exeext conftest.$ac_ext
22483 LIBS=$ac_check_lib_save_LIBS
22484 fi
22485 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22486 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22487 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22488 have_krb=yes
22489 else
22490 have_krb=no
22491 fi
22492
22493 if test $have_krb = yes; then
22494 KRB4LIB=-lkrb
22495 LIBS="$KRB4LIB $LIBS"
22496
22497 cat >>confdefs.h <<\_ACEOF
22498 #define HAVE_LIBKRB 1
22499 _ACEOF
22500
22501 fi
22502 fi
22503 fi
22504
22505 if test "${with_kerberos5}" != no; then
22506
22507 for ac_header in krb5.h
22508 do
22509 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22511 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22512 $as_echo_n "checking for $ac_header... " >&6; }
22513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22514 $as_echo_n "(cached) " >&6
22515 fi
22516 ac_res=`eval 'as_val=${'$as_ac_Header'}
22517 $as_echo "$as_val"'`
22518 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22519 $as_echo "$ac_res" >&6; }
22520 else
22521 # Is the header compilable?
22522 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22523 $as_echo_n "checking $ac_header usability... " >&6; }
22524 cat >conftest.$ac_ext <<_ACEOF
22525 /* confdefs.h. */
22526 _ACEOF
22527 cat confdefs.h >>conftest.$ac_ext
22528 cat >>conftest.$ac_ext <<_ACEOF
22529 /* end confdefs.h. */
22530 $ac_includes_default
22531 #include <$ac_header>
22532 _ACEOF
22533 rm -f conftest.$ac_objext
22534 if { (ac_try="$ac_compile"
22535 case "(($ac_try" in
22536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22537 *) ac_try_echo=$ac_try;;
22538 esac
22539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22540 $as_echo "$ac_try_echo") >&5
22541 (eval "$ac_compile") 2>conftest.er1
22542 ac_status=$?
22543 grep -v '^ *+' conftest.er1 >conftest.err
22544 rm -f conftest.er1
22545 cat conftest.err >&5
22546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); } && {
22548 test -z "$ac_c_werror_flag" ||
22549 test ! -s conftest.err
22550 } && test -s conftest.$ac_objext; then
22551 ac_header_compiler=yes
22552 else
22553 $as_echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22555
22556 ac_header_compiler=no
22557 fi
22558
22559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22560 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22561 $as_echo "$ac_header_compiler" >&6; }
22562
22563 # Is the header present?
22564 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22565 $as_echo_n "checking $ac_header presence... " >&6; }
22566 cat >conftest.$ac_ext <<_ACEOF
22567 /* confdefs.h. */
22568 _ACEOF
22569 cat confdefs.h >>conftest.$ac_ext
22570 cat >>conftest.$ac_ext <<_ACEOF
22571 /* end confdefs.h. */
22572 #include <$ac_header>
22573 _ACEOF
22574 if { (ac_try="$ac_cpp conftest.$ac_ext"
22575 case "(($ac_try" in
22576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22577 *) ac_try_echo=$ac_try;;
22578 esac
22579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22580 $as_echo "$ac_try_echo") >&5
22581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22582 ac_status=$?
22583 grep -v '^ *+' conftest.er1 >conftest.err
22584 rm -f conftest.er1
22585 cat conftest.err >&5
22586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); } >/dev/null && {
22588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22589 test ! -s conftest.err
22590 }; then
22591 ac_header_preproc=yes
22592 else
22593 $as_echo "$as_me: failed program was:" >&5
22594 sed 's/^/| /' conftest.$ac_ext >&5
22595
22596 ac_header_preproc=no
22597 fi
22598
22599 rm -f conftest.err conftest.$ac_ext
22600 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22601 $as_echo "$ac_header_preproc" >&6; }
22602
22603 # So? What about this header?
22604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22605 yes:no: )
22606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22607 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22609 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22610 ac_header_preproc=yes
22611 ;;
22612 no:yes:* )
22613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22614 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22616 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22618 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22620 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22622 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22624 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22625
22626 ;;
22627 esac
22628 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22629 $as_echo_n "checking for $ac_header... " >&6; }
22630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22631 $as_echo_n "(cached) " >&6
22632 else
22633 eval "$as_ac_Header=\$ac_header_preproc"
22634 fi
22635 ac_res=`eval 'as_val=${'$as_ac_Header'}
22636 $as_echo "$as_val"'`
22637 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22638 $as_echo "$ac_res" >&6; }
22639
22640 fi
22641 if test `eval 'as_val=${'$as_ac_Header'}
22642 $as_echo "$as_val"'` = yes; then
22643 cat >>confdefs.h <<_ACEOF
22644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22645 _ACEOF
22646 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22647 $as_echo_n "checking for krb5_error.text... " >&6; }
22648 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22649 $as_echo_n "(cached) " >&6
22650 else
22651 cat >conftest.$ac_ext <<_ACEOF
22652 /* confdefs.h. */
22653 _ACEOF
22654 cat confdefs.h >>conftest.$ac_ext
22655 cat >>conftest.$ac_ext <<_ACEOF
22656 /* end confdefs.h. */
22657 #include <krb5.h>
22658
22659 int
22660 main ()
22661 {
22662 static krb5_error ac_aggr;
22663 if (ac_aggr.text)
22664 return 0;
22665 ;
22666 return 0;
22667 }
22668 _ACEOF
22669 rm -f conftest.$ac_objext
22670 if { (ac_try="$ac_compile"
22671 case "(($ac_try" in
22672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22673 *) ac_try_echo=$ac_try;;
22674 esac
22675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22676 $as_echo "$ac_try_echo") >&5
22677 (eval "$ac_compile") 2>conftest.er1
22678 ac_status=$?
22679 grep -v '^ *+' conftest.er1 >conftest.err
22680 rm -f conftest.er1
22681 cat conftest.err >&5
22682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); } && {
22684 test -z "$ac_c_werror_flag" ||
22685 test ! -s conftest.err
22686 } && test -s conftest.$ac_objext; then
22687 ac_cv_member_krb5_error_text=yes
22688 else
22689 $as_echo "$as_me: failed program was:" >&5
22690 sed 's/^/| /' conftest.$ac_ext >&5
22691
22692 cat >conftest.$ac_ext <<_ACEOF
22693 /* confdefs.h. */
22694 _ACEOF
22695 cat confdefs.h >>conftest.$ac_ext
22696 cat >>conftest.$ac_ext <<_ACEOF
22697 /* end confdefs.h. */
22698 #include <krb5.h>
22699
22700 int
22701 main ()
22702 {
22703 static krb5_error ac_aggr;
22704 if (sizeof ac_aggr.text)
22705 return 0;
22706 ;
22707 return 0;
22708 }
22709 _ACEOF
22710 rm -f conftest.$ac_objext
22711 if { (ac_try="$ac_compile"
22712 case "(($ac_try" in
22713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714 *) ac_try_echo=$ac_try;;
22715 esac
22716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22717 $as_echo "$ac_try_echo") >&5
22718 (eval "$ac_compile") 2>conftest.er1
22719 ac_status=$?
22720 grep -v '^ *+' conftest.er1 >conftest.err
22721 rm -f conftest.er1
22722 cat conftest.err >&5
22723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); } && {
22725 test -z "$ac_c_werror_flag" ||
22726 test ! -s conftest.err
22727 } && test -s conftest.$ac_objext; then
22728 ac_cv_member_krb5_error_text=yes
22729 else
22730 $as_echo "$as_me: failed program was:" >&5
22731 sed 's/^/| /' conftest.$ac_ext >&5
22732
22733 ac_cv_member_krb5_error_text=no
22734 fi
22735
22736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22737 fi
22738
22739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22740 fi
22741 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22742 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22743 if test $ac_cv_member_krb5_error_text = yes; then
22744
22745 cat >>confdefs.h <<_ACEOF
22746 #define HAVE_KRB5_ERROR_TEXT 1
22747 _ACEOF
22748
22749
22750 fi
22751 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22752 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22753 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22754 $as_echo_n "(cached) " >&6
22755 else
22756 cat >conftest.$ac_ext <<_ACEOF
22757 /* confdefs.h. */
22758 _ACEOF
22759 cat confdefs.h >>conftest.$ac_ext
22760 cat >>conftest.$ac_ext <<_ACEOF
22761 /* end confdefs.h. */
22762 #include <krb5.h>
22763
22764 int
22765 main ()
22766 {
22767 static krb5_error ac_aggr;
22768 if (ac_aggr.e_text)
22769 return 0;
22770 ;
22771 return 0;
22772 }
22773 _ACEOF
22774 rm -f conftest.$ac_objext
22775 if { (ac_try="$ac_compile"
22776 case "(($ac_try" in
22777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778 *) ac_try_echo=$ac_try;;
22779 esac
22780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22781 $as_echo "$ac_try_echo") >&5
22782 (eval "$ac_compile") 2>conftest.er1
22783 ac_status=$?
22784 grep -v '^ *+' conftest.er1 >conftest.err
22785 rm -f conftest.er1
22786 cat conftest.err >&5
22787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); } && {
22789 test -z "$ac_c_werror_flag" ||
22790 test ! -s conftest.err
22791 } && test -s conftest.$ac_objext; then
22792 ac_cv_member_krb5_error_e_text=yes
22793 else
22794 $as_echo "$as_me: failed program was:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22796
22797 cat >conftest.$ac_ext <<_ACEOF
22798 /* confdefs.h. */
22799 _ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h. */
22803 #include <krb5.h>
22804
22805 int
22806 main ()
22807 {
22808 static krb5_error ac_aggr;
22809 if (sizeof ac_aggr.e_text)
22810 return 0;
22811 ;
22812 return 0;
22813 }
22814 _ACEOF
22815 rm -f conftest.$ac_objext
22816 if { (ac_try="$ac_compile"
22817 case "(($ac_try" in
22818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22819 *) ac_try_echo=$ac_try;;
22820 esac
22821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22822 $as_echo "$ac_try_echo") >&5
22823 (eval "$ac_compile") 2>conftest.er1
22824 ac_status=$?
22825 grep -v '^ *+' conftest.er1 >conftest.err
22826 rm -f conftest.er1
22827 cat conftest.err >&5
22828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); } && {
22830 test -z "$ac_c_werror_flag" ||
22831 test ! -s conftest.err
22832 } && test -s conftest.$ac_objext; then
22833 ac_cv_member_krb5_error_e_text=yes
22834 else
22835 $as_echo "$as_me: failed program was:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22837
22838 ac_cv_member_krb5_error_e_text=no
22839 fi
22840
22841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22842 fi
22843
22844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22845 fi
22846 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22847 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22848 if test $ac_cv_member_krb5_error_e_text = yes; then
22849
22850 cat >>confdefs.h <<_ACEOF
22851 #define HAVE_KRB5_ERROR_E_TEXT 1
22852 _ACEOF
22853
22854
22855 fi
22856
22857 fi
22858
22859 done
22860
22861 else
22862
22863 for ac_header in des.h
22864 do
22865 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22867 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22868 $as_echo_n "checking for $ac_header... " >&6; }
22869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22870 $as_echo_n "(cached) " >&6
22871 fi
22872 ac_res=`eval 'as_val=${'$as_ac_Header'}
22873 $as_echo "$as_val"'`
22874 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22875 $as_echo "$ac_res" >&6; }
22876 else
22877 # Is the header compilable?
22878 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22879 $as_echo_n "checking $ac_header usability... " >&6; }
22880 cat >conftest.$ac_ext <<_ACEOF
22881 /* confdefs.h. */
22882 _ACEOF
22883 cat confdefs.h >>conftest.$ac_ext
22884 cat >>conftest.$ac_ext <<_ACEOF
22885 /* end confdefs.h. */
22886 $ac_includes_default
22887 #include <$ac_header>
22888 _ACEOF
22889 rm -f conftest.$ac_objext
22890 if { (ac_try="$ac_compile"
22891 case "(($ac_try" in
22892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22893 *) ac_try_echo=$ac_try;;
22894 esac
22895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22896 $as_echo "$ac_try_echo") >&5
22897 (eval "$ac_compile") 2>conftest.er1
22898 ac_status=$?
22899 grep -v '^ *+' conftest.er1 >conftest.err
22900 rm -f conftest.er1
22901 cat conftest.err >&5
22902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); } && {
22904 test -z "$ac_c_werror_flag" ||
22905 test ! -s conftest.err
22906 } && test -s conftest.$ac_objext; then
22907 ac_header_compiler=yes
22908 else
22909 $as_echo "$as_me: failed program was:" >&5
22910 sed 's/^/| /' conftest.$ac_ext >&5
22911
22912 ac_header_compiler=no
22913 fi
22914
22915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22916 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22917 $as_echo "$ac_header_compiler" >&6; }
22918
22919 # Is the header present?
22920 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22921 $as_echo_n "checking $ac_header presence... " >&6; }
22922 cat >conftest.$ac_ext <<_ACEOF
22923 /* confdefs.h. */
22924 _ACEOF
22925 cat confdefs.h >>conftest.$ac_ext
22926 cat >>conftest.$ac_ext <<_ACEOF
22927 /* end confdefs.h. */
22928 #include <$ac_header>
22929 _ACEOF
22930 if { (ac_try="$ac_cpp conftest.$ac_ext"
22931 case "(($ac_try" in
22932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22933 *) ac_try_echo=$ac_try;;
22934 esac
22935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22936 $as_echo "$ac_try_echo") >&5
22937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22938 ac_status=$?
22939 grep -v '^ *+' conftest.er1 >conftest.err
22940 rm -f conftest.er1
22941 cat conftest.err >&5
22942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); } >/dev/null && {
22944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22945 test ! -s conftest.err
22946 }; then
22947 ac_header_preproc=yes
22948 else
22949 $as_echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22951
22952 ac_header_preproc=no
22953 fi
22954
22955 rm -f conftest.err conftest.$ac_ext
22956 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22957 $as_echo "$ac_header_preproc" >&6; }
22958
22959 # So? What about this header?
22960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22961 yes:no: )
22962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22963 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22965 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22966 ac_header_preproc=yes
22967 ;;
22968 no:yes:* )
22969 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22970 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22971 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22972 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22974 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22976 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22978 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22980 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22981
22982 ;;
22983 esac
22984 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22985 $as_echo_n "checking for $ac_header... " >&6; }
22986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22987 $as_echo_n "(cached) " >&6
22988 else
22989 eval "$as_ac_Header=\$ac_header_preproc"
22990 fi
22991 ac_res=`eval 'as_val=${'$as_ac_Header'}
22992 $as_echo "$as_val"'`
22993 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22994 $as_echo "$ac_res" >&6; }
22995
22996 fi
22997 if test `eval 'as_val=${'$as_ac_Header'}
22998 $as_echo "$as_val"'` = yes; then
22999 cat >>confdefs.h <<_ACEOF
23000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23001 _ACEOF
23002
23003 else
23004
23005 for ac_header in kerberosIV/des.h
23006 do
23007 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23009 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23010 $as_echo_n "checking for $ac_header... " >&6; }
23011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23012 $as_echo_n "(cached) " >&6
23013 fi
23014 ac_res=`eval 'as_val=${'$as_ac_Header'}
23015 $as_echo "$as_val"'`
23016 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23017 $as_echo "$ac_res" >&6; }
23018 else
23019 # Is the header compilable?
23020 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23021 $as_echo_n "checking $ac_header usability... " >&6; }
23022 cat >conftest.$ac_ext <<_ACEOF
23023 /* confdefs.h. */
23024 _ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h. */
23028 $ac_includes_default
23029 #include <$ac_header>
23030 _ACEOF
23031 rm -f conftest.$ac_objext
23032 if { (ac_try="$ac_compile"
23033 case "(($ac_try" in
23034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035 *) ac_try_echo=$ac_try;;
23036 esac
23037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23038 $as_echo "$ac_try_echo") >&5
23039 (eval "$ac_compile") 2>conftest.er1
23040 ac_status=$?
23041 grep -v '^ *+' conftest.er1 >conftest.err
23042 rm -f conftest.er1
23043 cat conftest.err >&5
23044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); } && {
23046 test -z "$ac_c_werror_flag" ||
23047 test ! -s conftest.err
23048 } && test -s conftest.$ac_objext; then
23049 ac_header_compiler=yes
23050 else
23051 $as_echo "$as_me: failed program was:" >&5
23052 sed 's/^/| /' conftest.$ac_ext >&5
23053
23054 ac_header_compiler=no
23055 fi
23056
23057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23058 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23059 $as_echo "$ac_header_compiler" >&6; }
23060
23061 # Is the header present?
23062 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23063 $as_echo_n "checking $ac_header presence... " >&6; }
23064 cat >conftest.$ac_ext <<_ACEOF
23065 /* confdefs.h. */
23066 _ACEOF
23067 cat confdefs.h >>conftest.$ac_ext
23068 cat >>conftest.$ac_ext <<_ACEOF
23069 /* end confdefs.h. */
23070 #include <$ac_header>
23071 _ACEOF
23072 if { (ac_try="$ac_cpp conftest.$ac_ext"
23073 case "(($ac_try" in
23074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075 *) ac_try_echo=$ac_try;;
23076 esac
23077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23078 $as_echo "$ac_try_echo") >&5
23079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23080 ac_status=$?
23081 grep -v '^ *+' conftest.er1 >conftest.err
23082 rm -f conftest.er1
23083 cat conftest.err >&5
23084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } >/dev/null && {
23086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23087 test ! -s conftest.err
23088 }; then
23089 ac_header_preproc=yes
23090 else
23091 $as_echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23093
23094 ac_header_preproc=no
23095 fi
23096
23097 rm -f conftest.err conftest.$ac_ext
23098 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23099 $as_echo "$ac_header_preproc" >&6; }
23100
23101 # So? What about this header?
23102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23103 yes:no: )
23104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23105 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23107 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23108 ac_header_preproc=yes
23109 ;;
23110 no:yes:* )
23111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23112 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23114 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23116 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23118 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23120 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23122 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23123
23124 ;;
23125 esac
23126 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23127 $as_echo_n "checking for $ac_header... " >&6; }
23128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23129 $as_echo_n "(cached) " >&6
23130 else
23131 eval "$as_ac_Header=\$ac_header_preproc"
23132 fi
23133 ac_res=`eval 'as_val=${'$as_ac_Header'}
23134 $as_echo "$as_val"'`
23135 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23136 $as_echo "$ac_res" >&6; }
23137
23138 fi
23139 if test `eval 'as_val=${'$as_ac_Header'}
23140 $as_echo "$as_val"'` = yes; then
23141 cat >>confdefs.h <<_ACEOF
23142 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23143 _ACEOF
23144
23145 else
23146
23147 for ac_header in kerberos/des.h
23148 do
23149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23151 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23152 $as_echo_n "checking for $ac_header... " >&6; }
23153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23154 $as_echo_n "(cached) " >&6
23155 fi
23156 ac_res=`eval 'as_val=${'$as_ac_Header'}
23157 $as_echo "$as_val"'`
23158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23159 $as_echo "$ac_res" >&6; }
23160 else
23161 # Is the header compilable?
23162 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23163 $as_echo_n "checking $ac_header usability... " >&6; }
23164 cat >conftest.$ac_ext <<_ACEOF
23165 /* confdefs.h. */
23166 _ACEOF
23167 cat confdefs.h >>conftest.$ac_ext
23168 cat >>conftest.$ac_ext <<_ACEOF
23169 /* end confdefs.h. */
23170 $ac_includes_default
23171 #include <$ac_header>
23172 _ACEOF
23173 rm -f conftest.$ac_objext
23174 if { (ac_try="$ac_compile"
23175 case "(($ac_try" in
23176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23177 *) ac_try_echo=$ac_try;;
23178 esac
23179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23180 $as_echo "$ac_try_echo") >&5
23181 (eval "$ac_compile") 2>conftest.er1
23182 ac_status=$?
23183 grep -v '^ *+' conftest.er1 >conftest.err
23184 rm -f conftest.er1
23185 cat conftest.err >&5
23186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); } && {
23188 test -z "$ac_c_werror_flag" ||
23189 test ! -s conftest.err
23190 } && test -s conftest.$ac_objext; then
23191 ac_header_compiler=yes
23192 else
23193 $as_echo "$as_me: failed program was:" >&5
23194 sed 's/^/| /' conftest.$ac_ext >&5
23195
23196 ac_header_compiler=no
23197 fi
23198
23199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23200 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23201 $as_echo "$ac_header_compiler" >&6; }
23202
23203 # Is the header present?
23204 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23205 $as_echo_n "checking $ac_header presence... " >&6; }
23206 cat >conftest.$ac_ext <<_ACEOF
23207 /* confdefs.h. */
23208 _ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h. */
23212 #include <$ac_header>
23213 _ACEOF
23214 if { (ac_try="$ac_cpp conftest.$ac_ext"
23215 case "(($ac_try" in
23216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23217 *) ac_try_echo=$ac_try;;
23218 esac
23219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23220 $as_echo "$ac_try_echo") >&5
23221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23222 ac_status=$?
23223 grep -v '^ *+' conftest.er1 >conftest.err
23224 rm -f conftest.er1
23225 cat conftest.err >&5
23226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); } >/dev/null && {
23228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23229 test ! -s conftest.err
23230 }; then
23231 ac_header_preproc=yes
23232 else
23233 $as_echo "$as_me: failed program was:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23235
23236 ac_header_preproc=no
23237 fi
23238
23239 rm -f conftest.err conftest.$ac_ext
23240 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23241 $as_echo "$ac_header_preproc" >&6; }
23242
23243 # So? What about this header?
23244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23245 yes:no: )
23246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23247 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23249 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23250 ac_header_preproc=yes
23251 ;;
23252 no:yes:* )
23253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23254 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23256 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23258 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23260 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23262 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23264 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23265
23266 ;;
23267 esac
23268 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23269 $as_echo_n "checking for $ac_header... " >&6; }
23270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23271 $as_echo_n "(cached) " >&6
23272 else
23273 eval "$as_ac_Header=\$ac_header_preproc"
23274 fi
23275 ac_res=`eval 'as_val=${'$as_ac_Header'}
23276 $as_echo "$as_val"'`
23277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23278 $as_echo "$ac_res" >&6; }
23279
23280 fi
23281 if test `eval 'as_val=${'$as_ac_Header'}
23282 $as_echo "$as_val"'` = yes; then
23283 cat >>confdefs.h <<_ACEOF
23284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23285 _ACEOF
23286
23287 fi
23288
23289 done
23290
23291 fi
23292
23293 done
23294
23295 fi
23296
23297 done
23298
23299
23300 for ac_header in krb.h
23301 do
23302 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23304 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23305 $as_echo_n "checking for $ac_header... " >&6; }
23306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23307 $as_echo_n "(cached) " >&6
23308 fi
23309 ac_res=`eval 'as_val=${'$as_ac_Header'}
23310 $as_echo "$as_val"'`
23311 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23312 $as_echo "$ac_res" >&6; }
23313 else
23314 # Is the header compilable?
23315 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23316 $as_echo_n "checking $ac_header usability... " >&6; }
23317 cat >conftest.$ac_ext <<_ACEOF
23318 /* confdefs.h. */
23319 _ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h. */
23323 $ac_includes_default
23324 #include <$ac_header>
23325 _ACEOF
23326 rm -f conftest.$ac_objext
23327 if { (ac_try="$ac_compile"
23328 case "(($ac_try" in
23329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23330 *) ac_try_echo=$ac_try;;
23331 esac
23332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23333 $as_echo "$ac_try_echo") >&5
23334 (eval "$ac_compile") 2>conftest.er1
23335 ac_status=$?
23336 grep -v '^ *+' conftest.er1 >conftest.err
23337 rm -f conftest.er1
23338 cat conftest.err >&5
23339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); } && {
23341 test -z "$ac_c_werror_flag" ||
23342 test ! -s conftest.err
23343 } && test -s conftest.$ac_objext; then
23344 ac_header_compiler=yes
23345 else
23346 $as_echo "$as_me: failed program was:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23348
23349 ac_header_compiler=no
23350 fi
23351
23352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23353 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23354 $as_echo "$ac_header_compiler" >&6; }
23355
23356 # Is the header present?
23357 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23358 $as_echo_n "checking $ac_header presence... " >&6; }
23359 cat >conftest.$ac_ext <<_ACEOF
23360 /* confdefs.h. */
23361 _ACEOF
23362 cat confdefs.h >>conftest.$ac_ext
23363 cat >>conftest.$ac_ext <<_ACEOF
23364 /* end confdefs.h. */
23365 #include <$ac_header>
23366 _ACEOF
23367 if { (ac_try="$ac_cpp conftest.$ac_ext"
23368 case "(($ac_try" in
23369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23370 *) ac_try_echo=$ac_try;;
23371 esac
23372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23373 $as_echo "$ac_try_echo") >&5
23374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23375 ac_status=$?
23376 grep -v '^ *+' conftest.er1 >conftest.err
23377 rm -f conftest.er1
23378 cat conftest.err >&5
23379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); } >/dev/null && {
23381 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23382 test ! -s conftest.err
23383 }; then
23384 ac_header_preproc=yes
23385 else
23386 $as_echo "$as_me: failed program was:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23388
23389 ac_header_preproc=no
23390 fi
23391
23392 rm -f conftest.err conftest.$ac_ext
23393 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23394 $as_echo "$ac_header_preproc" >&6; }
23395
23396 # So? What about this header?
23397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23398 yes:no: )
23399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23400 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23402 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23403 ac_header_preproc=yes
23404 ;;
23405 no:yes:* )
23406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23407 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23409 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23411 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23413 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23415 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23417 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23418
23419 ;;
23420 esac
23421 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23422 $as_echo_n "checking for $ac_header... " >&6; }
23423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23424 $as_echo_n "(cached) " >&6
23425 else
23426 eval "$as_ac_Header=\$ac_header_preproc"
23427 fi
23428 ac_res=`eval 'as_val=${'$as_ac_Header'}
23429 $as_echo "$as_val"'`
23430 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23431 $as_echo "$ac_res" >&6; }
23432
23433 fi
23434 if test `eval 'as_val=${'$as_ac_Header'}
23435 $as_echo "$as_val"'` = yes; then
23436 cat >>confdefs.h <<_ACEOF
23437 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23438 _ACEOF
23439
23440 else
23441
23442 for ac_header in kerberosIV/krb.h
23443 do
23444 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23446 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23447 $as_echo_n "checking for $ac_header... " >&6; }
23448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23449 $as_echo_n "(cached) " >&6
23450 fi
23451 ac_res=`eval 'as_val=${'$as_ac_Header'}
23452 $as_echo "$as_val"'`
23453 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23454 $as_echo "$ac_res" >&6; }
23455 else
23456 # Is the header compilable?
23457 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23458 $as_echo_n "checking $ac_header usability... " >&6; }
23459 cat >conftest.$ac_ext <<_ACEOF
23460 /* confdefs.h. */
23461 _ACEOF
23462 cat confdefs.h >>conftest.$ac_ext
23463 cat >>conftest.$ac_ext <<_ACEOF
23464 /* end confdefs.h. */
23465 $ac_includes_default
23466 #include <$ac_header>
23467 _ACEOF
23468 rm -f conftest.$ac_objext
23469 if { (ac_try="$ac_compile"
23470 case "(($ac_try" in
23471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23472 *) ac_try_echo=$ac_try;;
23473 esac
23474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23475 $as_echo "$ac_try_echo") >&5
23476 (eval "$ac_compile") 2>conftest.er1
23477 ac_status=$?
23478 grep -v '^ *+' conftest.er1 >conftest.err
23479 rm -f conftest.er1
23480 cat conftest.err >&5
23481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); } && {
23483 test -z "$ac_c_werror_flag" ||
23484 test ! -s conftest.err
23485 } && test -s conftest.$ac_objext; then
23486 ac_header_compiler=yes
23487 else
23488 $as_echo "$as_me: failed program was:" >&5
23489 sed 's/^/| /' conftest.$ac_ext >&5
23490
23491 ac_header_compiler=no
23492 fi
23493
23494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23495 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23496 $as_echo "$ac_header_compiler" >&6; }
23497
23498 # Is the header present?
23499 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23500 $as_echo_n "checking $ac_header presence... " >&6; }
23501 cat >conftest.$ac_ext <<_ACEOF
23502 /* confdefs.h. */
23503 _ACEOF
23504 cat confdefs.h >>conftest.$ac_ext
23505 cat >>conftest.$ac_ext <<_ACEOF
23506 /* end confdefs.h. */
23507 #include <$ac_header>
23508 _ACEOF
23509 if { (ac_try="$ac_cpp conftest.$ac_ext"
23510 case "(($ac_try" in
23511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23512 *) ac_try_echo=$ac_try;;
23513 esac
23514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23515 $as_echo "$ac_try_echo") >&5
23516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23517 ac_status=$?
23518 grep -v '^ *+' conftest.er1 >conftest.err
23519 rm -f conftest.er1
23520 cat conftest.err >&5
23521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522 (exit $ac_status); } >/dev/null && {
23523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23524 test ! -s conftest.err
23525 }; then
23526 ac_header_preproc=yes
23527 else
23528 $as_echo "$as_me: failed program was:" >&5
23529 sed 's/^/| /' conftest.$ac_ext >&5
23530
23531 ac_header_preproc=no
23532 fi
23533
23534 rm -f conftest.err conftest.$ac_ext
23535 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23536 $as_echo "$ac_header_preproc" >&6; }
23537
23538 # So? What about this header?
23539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23540 yes:no: )
23541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23542 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23544 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23545 ac_header_preproc=yes
23546 ;;
23547 no:yes:* )
23548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23549 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23551 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23553 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23555 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23557 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23559 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23560
23561 ;;
23562 esac
23563 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23564 $as_echo_n "checking for $ac_header... " >&6; }
23565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23566 $as_echo_n "(cached) " >&6
23567 else
23568 eval "$as_ac_Header=\$ac_header_preproc"
23569 fi
23570 ac_res=`eval 'as_val=${'$as_ac_Header'}
23571 $as_echo "$as_val"'`
23572 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23573 $as_echo "$ac_res" >&6; }
23574
23575 fi
23576 if test `eval 'as_val=${'$as_ac_Header'}
23577 $as_echo "$as_val"'` = yes; then
23578 cat >>confdefs.h <<_ACEOF
23579 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23580 _ACEOF
23581
23582 else
23583
23584 for ac_header in kerberos/krb.h
23585 do
23586 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23588 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23589 $as_echo_n "checking for $ac_header... " >&6; }
23590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23591 $as_echo_n "(cached) " >&6
23592 fi
23593 ac_res=`eval 'as_val=${'$as_ac_Header'}
23594 $as_echo "$as_val"'`
23595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23596 $as_echo "$ac_res" >&6; }
23597 else
23598 # Is the header compilable?
23599 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23600 $as_echo_n "checking $ac_header usability... " >&6; }
23601 cat >conftest.$ac_ext <<_ACEOF
23602 /* confdefs.h. */
23603 _ACEOF
23604 cat confdefs.h >>conftest.$ac_ext
23605 cat >>conftest.$ac_ext <<_ACEOF
23606 /* end confdefs.h. */
23607 $ac_includes_default
23608 #include <$ac_header>
23609 _ACEOF
23610 rm -f conftest.$ac_objext
23611 if { (ac_try="$ac_compile"
23612 case "(($ac_try" in
23613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23614 *) ac_try_echo=$ac_try;;
23615 esac
23616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23617 $as_echo "$ac_try_echo") >&5
23618 (eval "$ac_compile") 2>conftest.er1
23619 ac_status=$?
23620 grep -v '^ *+' conftest.er1 >conftest.err
23621 rm -f conftest.er1
23622 cat conftest.err >&5
23623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); } && {
23625 test -z "$ac_c_werror_flag" ||
23626 test ! -s conftest.err
23627 } && test -s conftest.$ac_objext; then
23628 ac_header_compiler=yes
23629 else
23630 $as_echo "$as_me: failed program was:" >&5
23631 sed 's/^/| /' conftest.$ac_ext >&5
23632
23633 ac_header_compiler=no
23634 fi
23635
23636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23637 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23638 $as_echo "$ac_header_compiler" >&6; }
23639
23640 # Is the header present?
23641 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23642 $as_echo_n "checking $ac_header presence... " >&6; }
23643 cat >conftest.$ac_ext <<_ACEOF
23644 /* confdefs.h. */
23645 _ACEOF
23646 cat confdefs.h >>conftest.$ac_ext
23647 cat >>conftest.$ac_ext <<_ACEOF
23648 /* end confdefs.h. */
23649 #include <$ac_header>
23650 _ACEOF
23651 if { (ac_try="$ac_cpp conftest.$ac_ext"
23652 case "(($ac_try" in
23653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23654 *) ac_try_echo=$ac_try;;
23655 esac
23656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23657 $as_echo "$ac_try_echo") >&5
23658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23659 ac_status=$?
23660 grep -v '^ *+' conftest.er1 >conftest.err
23661 rm -f conftest.er1
23662 cat conftest.err >&5
23663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); } >/dev/null && {
23665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23666 test ! -s conftest.err
23667 }; then
23668 ac_header_preproc=yes
23669 else
23670 $as_echo "$as_me: failed program was:" >&5
23671 sed 's/^/| /' conftest.$ac_ext >&5
23672
23673 ac_header_preproc=no
23674 fi
23675
23676 rm -f conftest.err conftest.$ac_ext
23677 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23678 $as_echo "$ac_header_preproc" >&6; }
23679
23680 # So? What about this header?
23681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23682 yes:no: )
23683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23684 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23686 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23687 ac_header_preproc=yes
23688 ;;
23689 no:yes:* )
23690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23691 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23693 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23695 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23697 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23699 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23701 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23702
23703 ;;
23704 esac
23705 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23706 $as_echo_n "checking for $ac_header... " >&6; }
23707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23708 $as_echo_n "(cached) " >&6
23709 else
23710 eval "$as_ac_Header=\$ac_header_preproc"
23711 fi
23712 ac_res=`eval 'as_val=${'$as_ac_Header'}
23713 $as_echo "$as_val"'`
23714 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23715 $as_echo "$ac_res" >&6; }
23716
23717 fi
23718 if test `eval 'as_val=${'$as_ac_Header'}
23719 $as_echo "$as_val"'` = yes; then
23720 cat >>confdefs.h <<_ACEOF
23721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23722 _ACEOF
23723
23724 fi
23725
23726 done
23727
23728 fi
23729
23730 done
23731
23732 fi
23733
23734 done
23735
23736 fi
23737
23738 for ac_header in com_err.h
23739 do
23740 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23742 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23743 $as_echo_n "checking for $ac_header... " >&6; }
23744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23745 $as_echo_n "(cached) " >&6
23746 fi
23747 ac_res=`eval 'as_val=${'$as_ac_Header'}
23748 $as_echo "$as_val"'`
23749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23750 $as_echo "$ac_res" >&6; }
23751 else
23752 # Is the header compilable?
23753 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23754 $as_echo_n "checking $ac_header usability... " >&6; }
23755 cat >conftest.$ac_ext <<_ACEOF
23756 /* confdefs.h. */
23757 _ACEOF
23758 cat confdefs.h >>conftest.$ac_ext
23759 cat >>conftest.$ac_ext <<_ACEOF
23760 /* end confdefs.h. */
23761 $ac_includes_default
23762 #include <$ac_header>
23763 _ACEOF
23764 rm -f conftest.$ac_objext
23765 if { (ac_try="$ac_compile"
23766 case "(($ac_try" in
23767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23768 *) ac_try_echo=$ac_try;;
23769 esac
23770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23771 $as_echo "$ac_try_echo") >&5
23772 (eval "$ac_compile") 2>conftest.er1
23773 ac_status=$?
23774 grep -v '^ *+' conftest.er1 >conftest.err
23775 rm -f conftest.er1
23776 cat conftest.err >&5
23777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778 (exit $ac_status); } && {
23779 test -z "$ac_c_werror_flag" ||
23780 test ! -s conftest.err
23781 } && test -s conftest.$ac_objext; then
23782 ac_header_compiler=yes
23783 else
23784 $as_echo "$as_me: failed program was:" >&5
23785 sed 's/^/| /' conftest.$ac_ext >&5
23786
23787 ac_header_compiler=no
23788 fi
23789
23790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23791 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23792 $as_echo "$ac_header_compiler" >&6; }
23793
23794 # Is the header present?
23795 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23796 $as_echo_n "checking $ac_header presence... " >&6; }
23797 cat >conftest.$ac_ext <<_ACEOF
23798 /* confdefs.h. */
23799 _ACEOF
23800 cat confdefs.h >>conftest.$ac_ext
23801 cat >>conftest.$ac_ext <<_ACEOF
23802 /* end confdefs.h. */
23803 #include <$ac_header>
23804 _ACEOF
23805 if { (ac_try="$ac_cpp conftest.$ac_ext"
23806 case "(($ac_try" in
23807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23808 *) ac_try_echo=$ac_try;;
23809 esac
23810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23811 $as_echo "$ac_try_echo") >&5
23812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23813 ac_status=$?
23814 grep -v '^ *+' conftest.er1 >conftest.err
23815 rm -f conftest.er1
23816 cat conftest.err >&5
23817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818 (exit $ac_status); } >/dev/null && {
23819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23820 test ! -s conftest.err
23821 }; then
23822 ac_header_preproc=yes
23823 else
23824 $as_echo "$as_me: failed program was:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23826
23827 ac_header_preproc=no
23828 fi
23829
23830 rm -f conftest.err conftest.$ac_ext
23831 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23832 $as_echo "$ac_header_preproc" >&6; }
23833
23834 # So? What about this header?
23835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23836 yes:no: )
23837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23838 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23840 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23841 ac_header_preproc=yes
23842 ;;
23843 no:yes:* )
23844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23845 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23847 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23849 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23851 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23853 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23855 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23856
23857 ;;
23858 esac
23859 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23860 $as_echo_n "checking for $ac_header... " >&6; }
23861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23862 $as_echo_n "(cached) " >&6
23863 else
23864 eval "$as_ac_Header=\$ac_header_preproc"
23865 fi
23866 ac_res=`eval 'as_val=${'$as_ac_Header'}
23867 $as_echo "$as_val"'`
23868 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23869 $as_echo "$ac_res" >&6; }
23870
23871 fi
23872 if test `eval 'as_val=${'$as_ac_Header'}
23873 $as_echo "$as_val"'` = yes; then
23874 cat >>confdefs.h <<_ACEOF
23875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23876 _ACEOF
23877
23878 fi
23879
23880 done
23881
23882 fi
23883
23884
23885
23886
23887
23888
23889
23890 # Solaris requires -lintl if you want strerror (which calls dgettext)
23891 # to return localized messages.
23892
23893 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23894 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23895 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23896 $as_echo_n "(cached) " >&6
23897 else
23898 ac_check_lib_save_LIBS=$LIBS
23899 LIBS="-lintl $LIBS"
23900 cat >conftest.$ac_ext <<_ACEOF
23901 /* confdefs.h. */
23902 _ACEOF
23903 cat confdefs.h >>conftest.$ac_ext
23904 cat >>conftest.$ac_ext <<_ACEOF
23905 /* end confdefs.h. */
23906
23907 /* Override any GCC internal prototype to avoid an error.
23908 Use char because int might match the return type of a GCC
23909 builtin and then its argument prototype would still apply. */
23910 #ifdef __cplusplus
23911 extern "C"
23912 #endif
23913 char dgettext ();
23914 int
23915 main ()
23916 {
23917 return dgettext ();
23918 ;
23919 return 0;
23920 }
23921 _ACEOF
23922 rm -f conftest.$ac_objext conftest$ac_exeext
23923 if { (ac_try="$ac_link"
23924 case "(($ac_try" in
23925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23926 *) ac_try_echo=$ac_try;;
23927 esac
23928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23929 $as_echo "$ac_try_echo") >&5
23930 (eval "$ac_link") 2>conftest.er1
23931 ac_status=$?
23932 grep -v '^ *+' conftest.er1 >conftest.err
23933 rm -f conftest.er1
23934 cat conftest.err >&5
23935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936 (exit $ac_status); } && {
23937 test -z "$ac_c_werror_flag" ||
23938 test ! -s conftest.err
23939 } && test -s conftest$ac_exeext && {
23940 test "$cross_compiling" = yes ||
23941 $as_test_x conftest$ac_exeext
23942 }; then
23943 ac_cv_lib_intl_dgettext=yes
23944 else
23945 $as_echo "$as_me: failed program was:" >&5
23946 sed 's/^/| /' conftest.$ac_ext >&5
23947
23948 ac_cv_lib_intl_dgettext=no
23949 fi
23950
23951 rm -rf conftest.dSYM
23952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23953 conftest$ac_exeext conftest.$ac_ext
23954 LIBS=$ac_check_lib_save_LIBS
23955 fi
23956 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23957 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23958 if test $ac_cv_lib_intl_dgettext = yes; then
23959 cat >>confdefs.h <<_ACEOF
23960 #define HAVE_LIBINTL 1
23961 _ACEOF
23962
23963 LIBS="-lintl $LIBS"
23964
23965 fi
23966
23967
23968 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23969 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23970 if test "${emacs_cv_localtime_cache+set}" = set; then
23971 $as_echo_n "(cached) " >&6
23972 else
23973 if test x$ac_cv_func_tzset = xyes; then
23974 if test "$cross_compiling" = yes; then
23975 # If we have tzset, assume the worst when cross-compiling.
23976 emacs_cv_localtime_cache=yes
23977 else
23978 cat >conftest.$ac_ext <<_ACEOF
23979 /* confdefs.h. */
23980 _ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h. */
23984 #include <time.h>
23985 extern char **environ;
23986 unset_TZ ()
23987 {
23988 char **from, **to;
23989 for (to = from = environ; (*to = *from); from++)
23990 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23991 to++;
23992 }
23993 char TZ_GMT0[] = "TZ=GMT0";
23994 char TZ_PST8[] = "TZ=PST8";
23995 main()
23996 {
23997 time_t now = time ((time_t *) 0);
23998 int hour_GMT0, hour_unset;
23999 if (putenv (TZ_GMT0) != 0)
24000 exit (1);
24001 hour_GMT0 = localtime (&now)->tm_hour;
24002 unset_TZ ();
24003 hour_unset = localtime (&now)->tm_hour;
24004 if (putenv (TZ_PST8) != 0)
24005 exit (1);
24006 if (localtime (&now)->tm_hour == hour_GMT0)
24007 exit (1);
24008 unset_TZ ();
24009 if (localtime (&now)->tm_hour != hour_unset)
24010 exit (1);
24011 exit (0);
24012 }
24013 _ACEOF
24014 rm -f conftest$ac_exeext
24015 if { (ac_try="$ac_link"
24016 case "(($ac_try" in
24017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24018 *) ac_try_echo=$ac_try;;
24019 esac
24020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24021 $as_echo "$ac_try_echo") >&5
24022 (eval "$ac_link") 2>&5
24023 ac_status=$?
24024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24026 { (case "(($ac_try" in
24027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24028 *) ac_try_echo=$ac_try;;
24029 esac
24030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24031 $as_echo "$ac_try_echo") >&5
24032 (eval "$ac_try") 2>&5
24033 ac_status=$?
24034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 (exit $ac_status); }; }; then
24036 emacs_cv_localtime_cache=no
24037 else
24038 $as_echo "$as_me: program exited with status $ac_status" >&5
24039 $as_echo "$as_me: failed program was:" >&5
24040 sed 's/^/| /' conftest.$ac_ext >&5
24041
24042 ( exit $ac_status )
24043 emacs_cv_localtime_cache=yes
24044 fi
24045 rm -rf conftest.dSYM
24046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24047 fi
24048
24049
24050 else
24051 # If we lack tzset, report that localtime does not cache TZ,
24052 # since we can't invalidate the cache if we don't have tzset.
24053 emacs_cv_localtime_cache=no
24054 fi
24055 fi
24056 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24057 $as_echo "$emacs_cv_localtime_cache" >&6; }
24058 if test $emacs_cv_localtime_cache = yes; then
24059
24060 cat >>confdefs.h <<\_ACEOF
24061 #define LOCALTIME_CACHE 1
24062 _ACEOF
24063
24064 fi
24065
24066 if test "x$HAVE_TIMEVAL" = xyes; then
24067
24068 for ac_func in gettimeofday
24069 do
24070 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24071 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24072 $as_echo_n "checking for $ac_func... " >&6; }
24073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24074 $as_echo_n "(cached) " >&6
24075 else
24076 cat >conftest.$ac_ext <<_ACEOF
24077 /* confdefs.h. */
24078 _ACEOF
24079 cat confdefs.h >>conftest.$ac_ext
24080 cat >>conftest.$ac_ext <<_ACEOF
24081 /* end confdefs.h. */
24082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24084 #define $ac_func innocuous_$ac_func
24085
24086 /* System header to define __stub macros and hopefully few prototypes,
24087 which can conflict with char $ac_func (); below.
24088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24089 <limits.h> exists even on freestanding compilers. */
24090
24091 #ifdef __STDC__
24092 # include <limits.h>
24093 #else
24094 # include <assert.h>
24095 #endif
24096
24097 #undef $ac_func
24098
24099 /* Override any GCC internal prototype to avoid an error.
24100 Use char because int might match the return type of a GCC
24101 builtin and then its argument prototype would still apply. */
24102 #ifdef __cplusplus
24103 extern "C"
24104 #endif
24105 char $ac_func ();
24106 /* The GNU C library defines this for functions which it implements
24107 to always fail with ENOSYS. Some functions are actually named
24108 something starting with __ and the normal name is an alias. */
24109 #if defined __stub_$ac_func || defined __stub___$ac_func
24110 choke me
24111 #endif
24112
24113 int
24114 main ()
24115 {
24116 return $ac_func ();
24117 ;
24118 return 0;
24119 }
24120 _ACEOF
24121 rm -f conftest.$ac_objext conftest$ac_exeext
24122 if { (ac_try="$ac_link"
24123 case "(($ac_try" in
24124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24125 *) ac_try_echo=$ac_try;;
24126 esac
24127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24128 $as_echo "$ac_try_echo") >&5
24129 (eval "$ac_link") 2>conftest.er1
24130 ac_status=$?
24131 grep -v '^ *+' conftest.er1 >conftest.err
24132 rm -f conftest.er1
24133 cat conftest.err >&5
24134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135 (exit $ac_status); } && {
24136 test -z "$ac_c_werror_flag" ||
24137 test ! -s conftest.err
24138 } && test -s conftest$ac_exeext && {
24139 test "$cross_compiling" = yes ||
24140 $as_test_x conftest$ac_exeext
24141 }; then
24142 eval "$as_ac_var=yes"
24143 else
24144 $as_echo "$as_me: failed program was:" >&5
24145 sed 's/^/| /' conftest.$ac_ext >&5
24146
24147 eval "$as_ac_var=no"
24148 fi
24149
24150 rm -rf conftest.dSYM
24151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24152 conftest$ac_exeext conftest.$ac_ext
24153 fi
24154 ac_res=`eval 'as_val=${'$as_ac_var'}
24155 $as_echo "$as_val"'`
24156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24157 $as_echo "$ac_res" >&6; }
24158 if test `eval 'as_val=${'$as_ac_var'}
24159 $as_echo "$as_val"'` = yes; then
24160 cat >>confdefs.h <<_ACEOF
24161 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24162 _ACEOF
24163
24164 fi
24165 done
24166
24167 if test $ac_cv_func_gettimeofday = yes; then
24168 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24169 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24170 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24171 $as_echo_n "(cached) " >&6
24172 else
24173 cat >conftest.$ac_ext <<_ACEOF
24174 /* confdefs.h. */
24175 _ACEOF
24176 cat confdefs.h >>conftest.$ac_ext
24177 cat >>conftest.$ac_ext <<_ACEOF
24178 /* end confdefs.h. */
24179
24180 #ifdef TIME_WITH_SYS_TIME
24181 #include <sys/time.h>
24182 #include <time.h>
24183 #else
24184 #ifdef HAVE_SYS_TIME_H
24185 #include <sys/time.h>
24186 #else
24187 #include <time.h>
24188 #endif
24189 #endif
24190 int
24191 main ()
24192 {
24193 struct timeval time;
24194 gettimeofday (&time, 0);
24195 ;
24196 return 0;
24197 }
24198 _ACEOF
24199 rm -f conftest.$ac_objext
24200 if { (ac_try="$ac_compile"
24201 case "(($ac_try" in
24202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24203 *) ac_try_echo=$ac_try;;
24204 esac
24205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24206 $as_echo "$ac_try_echo") >&5
24207 (eval "$ac_compile") 2>conftest.er1
24208 ac_status=$?
24209 grep -v '^ *+' conftest.er1 >conftest.err
24210 rm -f conftest.er1
24211 cat conftest.err >&5
24212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24213 (exit $ac_status); } && {
24214 test -z "$ac_c_werror_flag" ||
24215 test ! -s conftest.err
24216 } && test -s conftest.$ac_objext; then
24217 emacs_cv_gettimeofday_two_arguments=yes
24218 else
24219 $as_echo "$as_me: failed program was:" >&5
24220 sed 's/^/| /' conftest.$ac_ext >&5
24221
24222 emacs_cv_gettimeofday_two_arguments=no
24223 fi
24224
24225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24226 fi
24227 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24228 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24229 if test $emacs_cv_gettimeofday_two_arguments = no; then
24230
24231 cat >>confdefs.h <<\_ACEOF
24232 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24233 _ACEOF
24234
24235 fi
24236 fi
24237 fi
24238
24239 ok_so_far=yes
24240 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24241 $as_echo_n "checking for socket... " >&6; }
24242 if test "${ac_cv_func_socket+set}" = set; then
24243 $as_echo_n "(cached) " >&6
24244 else
24245 cat >conftest.$ac_ext <<_ACEOF
24246 /* confdefs.h. */
24247 _ACEOF
24248 cat confdefs.h >>conftest.$ac_ext
24249 cat >>conftest.$ac_ext <<_ACEOF
24250 /* end confdefs.h. */
24251 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24253 #define socket innocuous_socket
24254
24255 /* System header to define __stub macros and hopefully few prototypes,
24256 which can conflict with char socket (); below.
24257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24258 <limits.h> exists even on freestanding compilers. */
24259
24260 #ifdef __STDC__
24261 # include <limits.h>
24262 #else
24263 # include <assert.h>
24264 #endif
24265
24266 #undef socket
24267
24268 /* Override any GCC internal prototype to avoid an error.
24269 Use char because int might match the return type of a GCC
24270 builtin and then its argument prototype would still apply. */
24271 #ifdef __cplusplus
24272 extern "C"
24273 #endif
24274 char socket ();
24275 /* The GNU C library defines this for functions which it implements
24276 to always fail with ENOSYS. Some functions are actually named
24277 something starting with __ and the normal name is an alias. */
24278 #if defined __stub_socket || defined __stub___socket
24279 choke me
24280 #endif
24281
24282 int
24283 main ()
24284 {
24285 return socket ();
24286 ;
24287 return 0;
24288 }
24289 _ACEOF
24290 rm -f conftest.$ac_objext conftest$ac_exeext
24291 if { (ac_try="$ac_link"
24292 case "(($ac_try" in
24293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294 *) ac_try_echo=$ac_try;;
24295 esac
24296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24297 $as_echo "$ac_try_echo") >&5
24298 (eval "$ac_link") 2>conftest.er1
24299 ac_status=$?
24300 grep -v '^ *+' conftest.er1 >conftest.err
24301 rm -f conftest.er1
24302 cat conftest.err >&5
24303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); } && {
24305 test -z "$ac_c_werror_flag" ||
24306 test ! -s conftest.err
24307 } && test -s conftest$ac_exeext && {
24308 test "$cross_compiling" = yes ||
24309 $as_test_x conftest$ac_exeext
24310 }; then
24311 ac_cv_func_socket=yes
24312 else
24313 $as_echo "$as_me: failed program was:" >&5
24314 sed 's/^/| /' conftest.$ac_ext >&5
24315
24316 ac_cv_func_socket=no
24317 fi
24318
24319 rm -rf conftest.dSYM
24320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24321 conftest$ac_exeext conftest.$ac_ext
24322 fi
24323 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24324 $as_echo "$ac_cv_func_socket" >&6; }
24325 if test $ac_cv_func_socket = yes; then
24326 :
24327 else
24328 ok_so_far=no
24329 fi
24330
24331 if test $ok_so_far = yes; then
24332 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24333 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24334 $as_echo_n "checking for netinet/in.h... " >&6; }
24335 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24336 $as_echo_n "(cached) " >&6
24337 fi
24338 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24339 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24340 else
24341 # Is the header compilable?
24342 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24343 $as_echo_n "checking netinet/in.h usability... " >&6; }
24344 cat >conftest.$ac_ext <<_ACEOF
24345 /* confdefs.h. */
24346 _ACEOF
24347 cat confdefs.h >>conftest.$ac_ext
24348 cat >>conftest.$ac_ext <<_ACEOF
24349 /* end confdefs.h. */
24350 $ac_includes_default
24351 #include <netinet/in.h>
24352 _ACEOF
24353 rm -f conftest.$ac_objext
24354 if { (ac_try="$ac_compile"
24355 case "(($ac_try" in
24356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24357 *) ac_try_echo=$ac_try;;
24358 esac
24359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24360 $as_echo "$ac_try_echo") >&5
24361 (eval "$ac_compile") 2>conftest.er1
24362 ac_status=$?
24363 grep -v '^ *+' conftest.er1 >conftest.err
24364 rm -f conftest.er1
24365 cat conftest.err >&5
24366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367 (exit $ac_status); } && {
24368 test -z "$ac_c_werror_flag" ||
24369 test ! -s conftest.err
24370 } && test -s conftest.$ac_objext; then
24371 ac_header_compiler=yes
24372 else
24373 $as_echo "$as_me: failed program was:" >&5
24374 sed 's/^/| /' conftest.$ac_ext >&5
24375
24376 ac_header_compiler=no
24377 fi
24378
24379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24380 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24381 $as_echo "$ac_header_compiler" >&6; }
24382
24383 # Is the header present?
24384 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24385 $as_echo_n "checking netinet/in.h presence... " >&6; }
24386 cat >conftest.$ac_ext <<_ACEOF
24387 /* confdefs.h. */
24388 _ACEOF
24389 cat confdefs.h >>conftest.$ac_ext
24390 cat >>conftest.$ac_ext <<_ACEOF
24391 /* end confdefs.h. */
24392 #include <netinet/in.h>
24393 _ACEOF
24394 if { (ac_try="$ac_cpp conftest.$ac_ext"
24395 case "(($ac_try" in
24396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24397 *) ac_try_echo=$ac_try;;
24398 esac
24399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24400 $as_echo "$ac_try_echo") >&5
24401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24402 ac_status=$?
24403 grep -v '^ *+' conftest.er1 >conftest.err
24404 rm -f conftest.er1
24405 cat conftest.err >&5
24406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); } >/dev/null && {
24408 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24409 test ! -s conftest.err
24410 }; then
24411 ac_header_preproc=yes
24412 else
24413 $as_echo "$as_me: failed program was:" >&5
24414 sed 's/^/| /' conftest.$ac_ext >&5
24415
24416 ac_header_preproc=no
24417 fi
24418
24419 rm -f conftest.err conftest.$ac_ext
24420 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24421 $as_echo "$ac_header_preproc" >&6; }
24422
24423 # So? What about this header?
24424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24425 yes:no: )
24426 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24427 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24428 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24429 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24430 ac_header_preproc=yes
24431 ;;
24432 no:yes:* )
24433 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24434 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24435 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24436 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24437 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24438 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24439 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24440 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24441 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24442 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24443 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24444 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24445
24446 ;;
24447 esac
24448 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24449 $as_echo_n "checking for netinet/in.h... " >&6; }
24450 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24451 $as_echo_n "(cached) " >&6
24452 else
24453 ac_cv_header_netinet_in_h=$ac_header_preproc
24454 fi
24455 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24456 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24457
24458 fi
24459 if test $ac_cv_header_netinet_in_h = yes; then
24460 :
24461 else
24462 ok_so_far=no
24463 fi
24464
24465
24466 fi
24467 if test $ok_so_far = yes; then
24468 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24469 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24470 $as_echo_n "checking for arpa/inet.h... " >&6; }
24471 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24472 $as_echo_n "(cached) " >&6
24473 fi
24474 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24475 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24476 else
24477 # Is the header compilable?
24478 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24479 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24480 cat >conftest.$ac_ext <<_ACEOF
24481 /* confdefs.h. */
24482 _ACEOF
24483 cat confdefs.h >>conftest.$ac_ext
24484 cat >>conftest.$ac_ext <<_ACEOF
24485 /* end confdefs.h. */
24486 $ac_includes_default
24487 #include <arpa/inet.h>
24488 _ACEOF
24489 rm -f conftest.$ac_objext
24490 if { (ac_try="$ac_compile"
24491 case "(($ac_try" in
24492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24493 *) ac_try_echo=$ac_try;;
24494 esac
24495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24496 $as_echo "$ac_try_echo") >&5
24497 (eval "$ac_compile") 2>conftest.er1
24498 ac_status=$?
24499 grep -v '^ *+' conftest.er1 >conftest.err
24500 rm -f conftest.er1
24501 cat conftest.err >&5
24502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503 (exit $ac_status); } && {
24504 test -z "$ac_c_werror_flag" ||
24505 test ! -s conftest.err
24506 } && test -s conftest.$ac_objext; then
24507 ac_header_compiler=yes
24508 else
24509 $as_echo "$as_me: failed program was:" >&5
24510 sed 's/^/| /' conftest.$ac_ext >&5
24511
24512 ac_header_compiler=no
24513 fi
24514
24515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24516 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24517 $as_echo "$ac_header_compiler" >&6; }
24518
24519 # Is the header present?
24520 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24521 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24522 cat >conftest.$ac_ext <<_ACEOF
24523 /* confdefs.h. */
24524 _ACEOF
24525 cat confdefs.h >>conftest.$ac_ext
24526 cat >>conftest.$ac_ext <<_ACEOF
24527 /* end confdefs.h. */
24528 #include <arpa/inet.h>
24529 _ACEOF
24530 if { (ac_try="$ac_cpp conftest.$ac_ext"
24531 case "(($ac_try" in
24532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24533 *) ac_try_echo=$ac_try;;
24534 esac
24535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24536 $as_echo "$ac_try_echo") >&5
24537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24538 ac_status=$?
24539 grep -v '^ *+' conftest.er1 >conftest.err
24540 rm -f conftest.er1
24541 cat conftest.err >&5
24542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543 (exit $ac_status); } >/dev/null && {
24544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24545 test ! -s conftest.err
24546 }; then
24547 ac_header_preproc=yes
24548 else
24549 $as_echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24551
24552 ac_header_preproc=no
24553 fi
24554
24555 rm -f conftest.err conftest.$ac_ext
24556 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24557 $as_echo "$ac_header_preproc" >&6; }
24558
24559 # So? What about this header?
24560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24561 yes:no: )
24562 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24563 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24564 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24565 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24566 ac_header_preproc=yes
24567 ;;
24568 no:yes:* )
24569 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24570 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24571 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24572 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24573 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24574 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24575 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24576 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24577 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24578 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24579 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24580 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24581
24582 ;;
24583 esac
24584 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24585 $as_echo_n "checking for arpa/inet.h... " >&6; }
24586 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24587 $as_echo_n "(cached) " >&6
24588 else
24589 ac_cv_header_arpa_inet_h=$ac_header_preproc
24590 fi
24591 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24592 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24593
24594 fi
24595 if test $ac_cv_header_arpa_inet_h = yes; then
24596 :
24597 else
24598 ok_so_far=no
24599 fi
24600
24601
24602 fi
24603 if test $ok_so_far = yes; then
24604
24605 cat >>confdefs.h <<\_ACEOF
24606 #define HAVE_INET_SOCKETS 1
24607 _ACEOF
24608
24609 fi
24610
24611
24612 for ac_header in sys/ioctl.h
24613 do
24614 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24616 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24617 $as_echo_n "checking for $ac_header... " >&6; }
24618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24619 $as_echo_n "(cached) " >&6
24620 fi
24621 ac_res=`eval 'as_val=${'$as_ac_Header'}
24622 $as_echo "$as_val"'`
24623 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24624 $as_echo "$ac_res" >&6; }
24625 else
24626 # Is the header compilable?
24627 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24628 $as_echo_n "checking $ac_header usability... " >&6; }
24629 cat >conftest.$ac_ext <<_ACEOF
24630 /* confdefs.h. */
24631 _ACEOF
24632 cat confdefs.h >>conftest.$ac_ext
24633 cat >>conftest.$ac_ext <<_ACEOF
24634 /* end confdefs.h. */
24635 $ac_includes_default
24636 #include <$ac_header>
24637 _ACEOF
24638 rm -f conftest.$ac_objext
24639 if { (ac_try="$ac_compile"
24640 case "(($ac_try" in
24641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642 *) ac_try_echo=$ac_try;;
24643 esac
24644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24645 $as_echo "$ac_try_echo") >&5
24646 (eval "$ac_compile") 2>conftest.er1
24647 ac_status=$?
24648 grep -v '^ *+' conftest.er1 >conftest.err
24649 rm -f conftest.er1
24650 cat conftest.err >&5
24651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652 (exit $ac_status); } && {
24653 test -z "$ac_c_werror_flag" ||
24654 test ! -s conftest.err
24655 } && test -s conftest.$ac_objext; then
24656 ac_header_compiler=yes
24657 else
24658 $as_echo "$as_me: failed program was:" >&5
24659 sed 's/^/| /' conftest.$ac_ext >&5
24660
24661 ac_header_compiler=no
24662 fi
24663
24664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24665 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24666 $as_echo "$ac_header_compiler" >&6; }
24667
24668 # Is the header present?
24669 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24670 $as_echo_n "checking $ac_header presence... " >&6; }
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 #include <$ac_header>
24678 _ACEOF
24679 if { (ac_try="$ac_cpp conftest.$ac_ext"
24680 case "(($ac_try" in
24681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24682 *) ac_try_echo=$ac_try;;
24683 esac
24684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24685 $as_echo "$ac_try_echo") >&5
24686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24687 ac_status=$?
24688 grep -v '^ *+' conftest.er1 >conftest.err
24689 rm -f conftest.er1
24690 cat conftest.err >&5
24691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); } >/dev/null && {
24693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24694 test ! -s conftest.err
24695 }; then
24696 ac_header_preproc=yes
24697 else
24698 $as_echo "$as_me: failed program was:" >&5
24699 sed 's/^/| /' conftest.$ac_ext >&5
24700
24701 ac_header_preproc=no
24702 fi
24703
24704 rm -f conftest.err conftest.$ac_ext
24705 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24706 $as_echo "$ac_header_preproc" >&6; }
24707
24708 # So? What about this header?
24709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24710 yes:no: )
24711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24712 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24714 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24715 ac_header_preproc=yes
24716 ;;
24717 no:yes:* )
24718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24719 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24721 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24722 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24723 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24725 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24727 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24729 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24730
24731 ;;
24732 esac
24733 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24734 $as_echo_n "checking for $ac_header... " >&6; }
24735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24736 $as_echo_n "(cached) " >&6
24737 else
24738 eval "$as_ac_Header=\$ac_header_preproc"
24739 fi
24740 ac_res=`eval 'as_val=${'$as_ac_Header'}
24741 $as_echo "$as_val"'`
24742 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24743 $as_echo "$ac_res" >&6; }
24744
24745 fi
24746 if test `eval 'as_val=${'$as_ac_Header'}
24747 $as_echo "$as_val"'` = yes; then
24748 cat >>confdefs.h <<_ACEOF
24749 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24750 _ACEOF
24751
24752 fi
24753
24754 done
24755
24756
24757 if test -f /usr/lpp/X11/bin/smt.exp; then
24758
24759 cat >>confdefs.h <<\_ACEOF
24760 #define HAVE_AIX_SMT_EXP 1
24761 _ACEOF
24762
24763 fi
24764
24765 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24766 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24767 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24768 { $as_echo "$as_me:$LINENO: result: yes" >&5
24769 $as_echo "yes" >&6; }
24770
24771 cat >>confdefs.h <<\_ACEOF
24772 #define HAVE_DEV_PTMX 1
24773 _ACEOF
24774
24775 else
24776 { $as_echo "$as_me:$LINENO: result: no" >&5
24777 $as_echo "no" >&6; }
24778 fi
24779
24780 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24781 $as_echo_n "checking for pid_t... " >&6; }
24782 if test "${ac_cv_type_pid_t+set}" = set; then
24783 $as_echo_n "(cached) " >&6
24784 else
24785 ac_cv_type_pid_t=no
24786 cat >conftest.$ac_ext <<_ACEOF
24787 /* confdefs.h. */
24788 _ACEOF
24789 cat confdefs.h >>conftest.$ac_ext
24790 cat >>conftest.$ac_ext <<_ACEOF
24791 /* end confdefs.h. */
24792 $ac_includes_default
24793 int
24794 main ()
24795 {
24796 if (sizeof (pid_t))
24797 return 0;
24798 ;
24799 return 0;
24800 }
24801 _ACEOF
24802 rm -f conftest.$ac_objext
24803 if { (ac_try="$ac_compile"
24804 case "(($ac_try" in
24805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806 *) ac_try_echo=$ac_try;;
24807 esac
24808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24809 $as_echo "$ac_try_echo") >&5
24810 (eval "$ac_compile") 2>conftest.er1
24811 ac_status=$?
24812 grep -v '^ *+' conftest.er1 >conftest.err
24813 rm -f conftest.er1
24814 cat conftest.err >&5
24815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24816 (exit $ac_status); } && {
24817 test -z "$ac_c_werror_flag" ||
24818 test ! -s conftest.err
24819 } && test -s conftest.$ac_objext; then
24820 cat >conftest.$ac_ext <<_ACEOF
24821 /* confdefs.h. */
24822 _ACEOF
24823 cat confdefs.h >>conftest.$ac_ext
24824 cat >>conftest.$ac_ext <<_ACEOF
24825 /* end confdefs.h. */
24826 $ac_includes_default
24827 int
24828 main ()
24829 {
24830 if (sizeof ((pid_t)))
24831 return 0;
24832 ;
24833 return 0;
24834 }
24835 _ACEOF
24836 rm -f conftest.$ac_objext
24837 if { (ac_try="$ac_compile"
24838 case "(($ac_try" in
24839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840 *) ac_try_echo=$ac_try;;
24841 esac
24842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24843 $as_echo "$ac_try_echo") >&5
24844 (eval "$ac_compile") 2>conftest.er1
24845 ac_status=$?
24846 grep -v '^ *+' conftest.er1 >conftest.err
24847 rm -f conftest.er1
24848 cat conftest.err >&5
24849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850 (exit $ac_status); } && {
24851 test -z "$ac_c_werror_flag" ||
24852 test ! -s conftest.err
24853 } && test -s conftest.$ac_objext; then
24854 :
24855 else
24856 $as_echo "$as_me: failed program was:" >&5
24857 sed 's/^/| /' conftest.$ac_ext >&5
24858
24859 ac_cv_type_pid_t=yes
24860 fi
24861
24862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24863 else
24864 $as_echo "$as_me: failed program was:" >&5
24865 sed 's/^/| /' conftest.$ac_ext >&5
24866
24867
24868 fi
24869
24870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24871 fi
24872 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24873 $as_echo "$ac_cv_type_pid_t" >&6; }
24874 if test $ac_cv_type_pid_t = yes; then
24875 :
24876 else
24877
24878 cat >>confdefs.h <<_ACEOF
24879 #define pid_t int
24880 _ACEOF
24881
24882 fi
24883
24884
24885 for ac_header in vfork.h
24886 do
24887 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24889 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24890 $as_echo_n "checking for $ac_header... " >&6; }
24891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24892 $as_echo_n "(cached) " >&6
24893 fi
24894 ac_res=`eval 'as_val=${'$as_ac_Header'}
24895 $as_echo "$as_val"'`
24896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24897 $as_echo "$ac_res" >&6; }
24898 else
24899 # Is the header compilable?
24900 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24901 $as_echo_n "checking $ac_header usability... " >&6; }
24902 cat >conftest.$ac_ext <<_ACEOF
24903 /* confdefs.h. */
24904 _ACEOF
24905 cat confdefs.h >>conftest.$ac_ext
24906 cat >>conftest.$ac_ext <<_ACEOF
24907 /* end confdefs.h. */
24908 $ac_includes_default
24909 #include <$ac_header>
24910 _ACEOF
24911 rm -f conftest.$ac_objext
24912 if { (ac_try="$ac_compile"
24913 case "(($ac_try" in
24914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24915 *) ac_try_echo=$ac_try;;
24916 esac
24917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24918 $as_echo "$ac_try_echo") >&5
24919 (eval "$ac_compile") 2>conftest.er1
24920 ac_status=$?
24921 grep -v '^ *+' conftest.er1 >conftest.err
24922 rm -f conftest.er1
24923 cat conftest.err >&5
24924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); } && {
24926 test -z "$ac_c_werror_flag" ||
24927 test ! -s conftest.err
24928 } && test -s conftest.$ac_objext; then
24929 ac_header_compiler=yes
24930 else
24931 $as_echo "$as_me: failed program was:" >&5
24932 sed 's/^/| /' conftest.$ac_ext >&5
24933
24934 ac_header_compiler=no
24935 fi
24936
24937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24938 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24939 $as_echo "$ac_header_compiler" >&6; }
24940
24941 # Is the header present?
24942 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24943 $as_echo_n "checking $ac_header presence... " >&6; }
24944 cat >conftest.$ac_ext <<_ACEOF
24945 /* confdefs.h. */
24946 _ACEOF
24947 cat confdefs.h >>conftest.$ac_ext
24948 cat >>conftest.$ac_ext <<_ACEOF
24949 /* end confdefs.h. */
24950 #include <$ac_header>
24951 _ACEOF
24952 if { (ac_try="$ac_cpp conftest.$ac_ext"
24953 case "(($ac_try" in
24954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24955 *) ac_try_echo=$ac_try;;
24956 esac
24957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24958 $as_echo "$ac_try_echo") >&5
24959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24960 ac_status=$?
24961 grep -v '^ *+' conftest.er1 >conftest.err
24962 rm -f conftest.er1
24963 cat conftest.err >&5
24964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965 (exit $ac_status); } >/dev/null && {
24966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24967 test ! -s conftest.err
24968 }; then
24969 ac_header_preproc=yes
24970 else
24971 $as_echo "$as_me: failed program was:" >&5
24972 sed 's/^/| /' conftest.$ac_ext >&5
24973
24974 ac_header_preproc=no
24975 fi
24976
24977 rm -f conftest.err conftest.$ac_ext
24978 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24979 $as_echo "$ac_header_preproc" >&6; }
24980
24981 # So? What about this header?
24982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24983 yes:no: )
24984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24985 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24987 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24988 ac_header_preproc=yes
24989 ;;
24990 no:yes:* )
24991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24992 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24994 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24996 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24998 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25000 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25002 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25003
25004 ;;
25005 esac
25006 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25007 $as_echo_n "checking for $ac_header... " >&6; }
25008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25009 $as_echo_n "(cached) " >&6
25010 else
25011 eval "$as_ac_Header=\$ac_header_preproc"
25012 fi
25013 ac_res=`eval 'as_val=${'$as_ac_Header'}
25014 $as_echo "$as_val"'`
25015 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25016 $as_echo "$ac_res" >&6; }
25017
25018 fi
25019 if test `eval 'as_val=${'$as_ac_Header'}
25020 $as_echo "$as_val"'` = yes; then
25021 cat >>confdefs.h <<_ACEOF
25022 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25023 _ACEOF
25024
25025 fi
25026
25027 done
25028
25029
25030
25031 for ac_func in fork vfork
25032 do
25033 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25034 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25035 $as_echo_n "checking for $ac_func... " >&6; }
25036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25037 $as_echo_n "(cached) " >&6
25038 else
25039 cat >conftest.$ac_ext <<_ACEOF
25040 /* confdefs.h. */
25041 _ACEOF
25042 cat confdefs.h >>conftest.$ac_ext
25043 cat >>conftest.$ac_ext <<_ACEOF
25044 /* end confdefs.h. */
25045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25047 #define $ac_func innocuous_$ac_func
25048
25049 /* System header to define __stub macros and hopefully few prototypes,
25050 which can conflict with char $ac_func (); below.
25051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25052 <limits.h> exists even on freestanding compilers. */
25053
25054 #ifdef __STDC__
25055 # include <limits.h>
25056 #else
25057 # include <assert.h>
25058 #endif
25059
25060 #undef $ac_func
25061
25062 /* Override any GCC internal prototype to avoid an error.
25063 Use char because int might match the return type of a GCC
25064 builtin and then its argument prototype would still apply. */
25065 #ifdef __cplusplus
25066 extern "C"
25067 #endif
25068 char $ac_func ();
25069 /* The GNU C library defines this for functions which it implements
25070 to always fail with ENOSYS. Some functions are actually named
25071 something starting with __ and the normal name is an alias. */
25072 #if defined __stub_$ac_func || defined __stub___$ac_func
25073 choke me
25074 #endif
25075
25076 int
25077 main ()
25078 {
25079 return $ac_func ();
25080 ;
25081 return 0;
25082 }
25083 _ACEOF
25084 rm -f conftest.$ac_objext conftest$ac_exeext
25085 if { (ac_try="$ac_link"
25086 case "(($ac_try" in
25087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25088 *) ac_try_echo=$ac_try;;
25089 esac
25090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25091 $as_echo "$ac_try_echo") >&5
25092 (eval "$ac_link") 2>conftest.er1
25093 ac_status=$?
25094 grep -v '^ *+' conftest.er1 >conftest.err
25095 rm -f conftest.er1
25096 cat conftest.err >&5
25097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); } && {
25099 test -z "$ac_c_werror_flag" ||
25100 test ! -s conftest.err
25101 } && test -s conftest$ac_exeext && {
25102 test "$cross_compiling" = yes ||
25103 $as_test_x conftest$ac_exeext
25104 }; then
25105 eval "$as_ac_var=yes"
25106 else
25107 $as_echo "$as_me: failed program was:" >&5
25108 sed 's/^/| /' conftest.$ac_ext >&5
25109
25110 eval "$as_ac_var=no"
25111 fi
25112
25113 rm -rf conftest.dSYM
25114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25115 conftest$ac_exeext conftest.$ac_ext
25116 fi
25117 ac_res=`eval 'as_val=${'$as_ac_var'}
25118 $as_echo "$as_val"'`
25119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25120 $as_echo "$ac_res" >&6; }
25121 if test `eval 'as_val=${'$as_ac_var'}
25122 $as_echo "$as_val"'` = yes; then
25123 cat >>confdefs.h <<_ACEOF
25124 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25125 _ACEOF
25126
25127 fi
25128 done
25129
25130 if test "x$ac_cv_func_fork" = xyes; then
25131 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25132 $as_echo_n "checking for working fork... " >&6; }
25133 if test "${ac_cv_func_fork_works+set}" = set; then
25134 $as_echo_n "(cached) " >&6
25135 else
25136 if test "$cross_compiling" = yes; then
25137 ac_cv_func_fork_works=cross
25138 else
25139 cat >conftest.$ac_ext <<_ACEOF
25140 /* confdefs.h. */
25141 _ACEOF
25142 cat confdefs.h >>conftest.$ac_ext
25143 cat >>conftest.$ac_ext <<_ACEOF
25144 /* end confdefs.h. */
25145 $ac_includes_default
25146 int
25147 main ()
25148 {
25149
25150 /* By Ruediger Kuhlmann. */
25151 return fork () < 0;
25152
25153 ;
25154 return 0;
25155 }
25156 _ACEOF
25157 rm -f conftest$ac_exeext
25158 if { (ac_try="$ac_link"
25159 case "(($ac_try" in
25160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25161 *) ac_try_echo=$ac_try;;
25162 esac
25163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25164 $as_echo "$ac_try_echo") >&5
25165 (eval "$ac_link") 2>&5
25166 ac_status=$?
25167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25169 { (case "(($ac_try" in
25170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171 *) ac_try_echo=$ac_try;;
25172 esac
25173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25174 $as_echo "$ac_try_echo") >&5
25175 (eval "$ac_try") 2>&5
25176 ac_status=$?
25177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178 (exit $ac_status); }; }; then
25179 ac_cv_func_fork_works=yes
25180 else
25181 $as_echo "$as_me: program exited with status $ac_status" >&5
25182 $as_echo "$as_me: failed program was:" >&5
25183 sed 's/^/| /' conftest.$ac_ext >&5
25184
25185 ( exit $ac_status )
25186 ac_cv_func_fork_works=no
25187 fi
25188 rm -rf conftest.dSYM
25189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25190 fi
25191
25192
25193 fi
25194 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25195 $as_echo "$ac_cv_func_fork_works" >&6; }
25196
25197 else
25198 ac_cv_func_fork_works=$ac_cv_func_fork
25199 fi
25200 if test "x$ac_cv_func_fork_works" = xcross; then
25201 case $host in
25202 *-*-amigaos* | *-*-msdosdjgpp*)
25203 # Override, as these systems have only a dummy fork() stub
25204 ac_cv_func_fork_works=no
25205 ;;
25206 *)
25207 ac_cv_func_fork_works=yes
25208 ;;
25209 esac
25210 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25211 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25212 fi
25213 ac_cv_func_vfork_works=$ac_cv_func_vfork
25214 if test "x$ac_cv_func_vfork" = xyes; then
25215 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25216 $as_echo_n "checking for working vfork... " >&6; }
25217 if test "${ac_cv_func_vfork_works+set}" = set; then
25218 $as_echo_n "(cached) " >&6
25219 else
25220 if test "$cross_compiling" = yes; then
25221 ac_cv_func_vfork_works=cross
25222 else
25223 cat >conftest.$ac_ext <<_ACEOF
25224 /* confdefs.h. */
25225 _ACEOF
25226 cat confdefs.h >>conftest.$ac_ext
25227 cat >>conftest.$ac_ext <<_ACEOF
25228 /* end confdefs.h. */
25229 /* Thanks to Paul Eggert for this test. */
25230 $ac_includes_default
25231 #include <sys/wait.h>
25232 #ifdef HAVE_VFORK_H
25233 # include <vfork.h>
25234 #endif
25235 /* On some sparc systems, changes by the child to local and incoming
25236 argument registers are propagated back to the parent. The compiler
25237 is told about this with #include <vfork.h>, but some compilers
25238 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25239 static variable whose address is put into a register that is
25240 clobbered by the vfork. */
25241 static void
25242 #ifdef __cplusplus
25243 sparc_address_test (int arg)
25244 # else
25245 sparc_address_test (arg) int arg;
25246 #endif
25247 {
25248 static pid_t child;
25249 if (!child) {
25250 child = vfork ();
25251 if (child < 0) {
25252 perror ("vfork");
25253 _exit(2);
25254 }
25255 if (!child) {
25256 arg = getpid();
25257 write(-1, "", 0);
25258 _exit (arg);
25259 }
25260 }
25261 }
25262
25263 int
25264 main ()
25265 {
25266 pid_t parent = getpid ();
25267 pid_t child;
25268
25269 sparc_address_test (0);
25270
25271 child = vfork ();
25272
25273 if (child == 0) {
25274 /* Here is another test for sparc vfork register problems. This
25275 test uses lots of local variables, at least as many local
25276 variables as main has allocated so far including compiler
25277 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25278 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25279 reuse the register of parent for one of the local variables,
25280 since it will think that parent can't possibly be used any more
25281 in this routine. Assigning to the local variable will thus
25282 munge parent in the parent process. */
25283 pid_t
25284 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25285 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25286 /* Convince the compiler that p..p7 are live; otherwise, it might
25287 use the same hardware register for all 8 local variables. */
25288 if (p != p1 || p != p2 || p != p3 || p != p4
25289 || p != p5 || p != p6 || p != p7)
25290 _exit(1);
25291
25292 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25293 from child file descriptors. If the child closes a descriptor
25294 before it execs or exits, this munges the parent's descriptor
25295 as well. Test for this by closing stdout in the child. */
25296 _exit(close(fileno(stdout)) != 0);
25297 } else {
25298 int status;
25299 struct stat st;
25300
25301 while (wait(&status) != child)
25302 ;
25303 return (
25304 /* Was there some problem with vforking? */
25305 child < 0
25306
25307 /* Did the child fail? (This shouldn't happen.) */
25308 || status
25309
25310 /* Did the vfork/compiler bug occur? */
25311 || parent != getpid()
25312
25313 /* Did the file descriptor bug occur? */
25314 || fstat(fileno(stdout), &st) != 0
25315 );
25316 }
25317 }
25318 _ACEOF
25319 rm -f conftest$ac_exeext
25320 if { (ac_try="$ac_link"
25321 case "(($ac_try" in
25322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25323 *) ac_try_echo=$ac_try;;
25324 esac
25325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25326 $as_echo "$ac_try_echo") >&5
25327 (eval "$ac_link") 2>&5
25328 ac_status=$?
25329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25331 { (case "(($ac_try" in
25332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25333 *) ac_try_echo=$ac_try;;
25334 esac
25335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25336 $as_echo "$ac_try_echo") >&5
25337 (eval "$ac_try") 2>&5
25338 ac_status=$?
25339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340 (exit $ac_status); }; }; then
25341 ac_cv_func_vfork_works=yes
25342 else
25343 $as_echo "$as_me: program exited with status $ac_status" >&5
25344 $as_echo "$as_me: failed program was:" >&5
25345 sed 's/^/| /' conftest.$ac_ext >&5
25346
25347 ( exit $ac_status )
25348 ac_cv_func_vfork_works=no
25349 fi
25350 rm -rf conftest.dSYM
25351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25352 fi
25353
25354
25355 fi
25356 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25357 $as_echo "$ac_cv_func_vfork_works" >&6; }
25358
25359 fi;
25360 if test "x$ac_cv_func_fork_works" = xcross; then
25361 ac_cv_func_vfork_works=$ac_cv_func_vfork
25362 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25363 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25364 fi
25365
25366 if test "x$ac_cv_func_vfork_works" = xyes; then
25367
25368 cat >>confdefs.h <<\_ACEOF
25369 #define HAVE_WORKING_VFORK 1
25370 _ACEOF
25371
25372 else
25373
25374 cat >>confdefs.h <<\_ACEOF
25375 #define vfork fork
25376 _ACEOF
25377
25378 fi
25379 if test "x$ac_cv_func_fork_works" = xyes; then
25380
25381 cat >>confdefs.h <<\_ACEOF
25382 #define HAVE_WORKING_FORK 1
25383 _ACEOF
25384
25385 fi
25386
25387
25388 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25389 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25390 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25391 $as_echo_n "(cached) " >&6
25392 else
25393 cat >conftest.$ac_ext <<_ACEOF
25394 /* confdefs.h. */
25395 _ACEOF
25396 cat confdefs.h >>conftest.$ac_ext
25397 cat >>conftest.$ac_ext <<_ACEOF
25398 /* end confdefs.h. */
25399 #include <langinfo.h>
25400 int
25401 main ()
25402 {
25403 char* cs = nl_langinfo(CODESET);
25404 ;
25405 return 0;
25406 }
25407 _ACEOF
25408 rm -f conftest.$ac_objext conftest$ac_exeext
25409 if { (ac_try="$ac_link"
25410 case "(($ac_try" in
25411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25412 *) ac_try_echo=$ac_try;;
25413 esac
25414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25415 $as_echo "$ac_try_echo") >&5
25416 (eval "$ac_link") 2>conftest.er1
25417 ac_status=$?
25418 grep -v '^ *+' conftest.er1 >conftest.err
25419 rm -f conftest.er1
25420 cat conftest.err >&5
25421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422 (exit $ac_status); } && {
25423 test -z "$ac_c_werror_flag" ||
25424 test ! -s conftest.err
25425 } && test -s conftest$ac_exeext && {
25426 test "$cross_compiling" = yes ||
25427 $as_test_x conftest$ac_exeext
25428 }; then
25429 emacs_cv_langinfo_codeset=yes
25430 else
25431 $as_echo "$as_me: failed program was:" >&5
25432 sed 's/^/| /' conftest.$ac_ext >&5
25433
25434 emacs_cv_langinfo_codeset=no
25435 fi
25436
25437 rm -rf conftest.dSYM
25438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25439 conftest$ac_exeext conftest.$ac_ext
25440
25441 fi
25442 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25443 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25444 if test $emacs_cv_langinfo_codeset = yes; then
25445
25446 cat >>confdefs.h <<\_ACEOF
25447 #define HAVE_LANGINFO_CODESET 1
25448 _ACEOF
25449
25450 fi
25451
25452 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25453 $as_echo_n "checking for size_t... " >&6; }
25454 if test "${ac_cv_type_size_t+set}" = set; then
25455 $as_echo_n "(cached) " >&6
25456 else
25457 ac_cv_type_size_t=no
25458 cat >conftest.$ac_ext <<_ACEOF
25459 /* confdefs.h. */
25460 _ACEOF
25461 cat confdefs.h >>conftest.$ac_ext
25462 cat >>conftest.$ac_ext <<_ACEOF
25463 /* end confdefs.h. */
25464 $ac_includes_default
25465 int
25466 main ()
25467 {
25468 if (sizeof (size_t))
25469 return 0;
25470 ;
25471 return 0;
25472 }
25473 _ACEOF
25474 rm -f conftest.$ac_objext
25475 if { (ac_try="$ac_compile"
25476 case "(($ac_try" in
25477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25478 *) ac_try_echo=$ac_try;;
25479 esac
25480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25481 $as_echo "$ac_try_echo") >&5
25482 (eval "$ac_compile") 2>conftest.er1
25483 ac_status=$?
25484 grep -v '^ *+' conftest.er1 >conftest.err
25485 rm -f conftest.er1
25486 cat conftest.err >&5
25487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); } && {
25489 test -z "$ac_c_werror_flag" ||
25490 test ! -s conftest.err
25491 } && test -s conftest.$ac_objext; then
25492 cat >conftest.$ac_ext <<_ACEOF
25493 /* confdefs.h. */
25494 _ACEOF
25495 cat confdefs.h >>conftest.$ac_ext
25496 cat >>conftest.$ac_ext <<_ACEOF
25497 /* end confdefs.h. */
25498 $ac_includes_default
25499 int
25500 main ()
25501 {
25502 if (sizeof ((size_t)))
25503 return 0;
25504 ;
25505 return 0;
25506 }
25507 _ACEOF
25508 rm -f conftest.$ac_objext
25509 if { (ac_try="$ac_compile"
25510 case "(($ac_try" in
25511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25512 *) ac_try_echo=$ac_try;;
25513 esac
25514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25515 $as_echo "$ac_try_echo") >&5
25516 (eval "$ac_compile") 2>conftest.er1
25517 ac_status=$?
25518 grep -v '^ *+' conftest.er1 >conftest.err
25519 rm -f conftest.er1
25520 cat conftest.err >&5
25521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522 (exit $ac_status); } && {
25523 test -z "$ac_c_werror_flag" ||
25524 test ! -s conftest.err
25525 } && test -s conftest.$ac_objext; then
25526 :
25527 else
25528 $as_echo "$as_me: failed program was:" >&5
25529 sed 's/^/| /' conftest.$ac_ext >&5
25530
25531 ac_cv_type_size_t=yes
25532 fi
25533
25534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25535 else
25536 $as_echo "$as_me: failed program was:" >&5
25537 sed 's/^/| /' conftest.$ac_ext >&5
25538
25539
25540 fi
25541
25542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25543 fi
25544 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25545 $as_echo "$ac_cv_type_size_t" >&6; }
25546 if test $ac_cv_type_size_t = yes; then
25547
25548 cat >>confdefs.h <<_ACEOF
25549 #define HAVE_SIZE_T 1
25550 _ACEOF
25551
25552
25553 fi
25554
25555
25556 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25557 $as_echo_n "checking for mbstate_t... " >&6; }
25558 if test "${ac_cv_type_mbstate_t+set}" = set; then
25559 $as_echo_n "(cached) " >&6
25560 else
25561 cat >conftest.$ac_ext <<_ACEOF
25562 /* confdefs.h. */
25563 _ACEOF
25564 cat confdefs.h >>conftest.$ac_ext
25565 cat >>conftest.$ac_ext <<_ACEOF
25566 /* end confdefs.h. */
25567 $ac_includes_default
25568 # include <wchar.h>
25569 int
25570 main ()
25571 {
25572 mbstate_t x; return sizeof x;
25573 ;
25574 return 0;
25575 }
25576 _ACEOF
25577 rm -f conftest.$ac_objext
25578 if { (ac_try="$ac_compile"
25579 case "(($ac_try" in
25580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25581 *) ac_try_echo=$ac_try;;
25582 esac
25583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25584 $as_echo "$ac_try_echo") >&5
25585 (eval "$ac_compile") 2>conftest.er1
25586 ac_status=$?
25587 grep -v '^ *+' conftest.er1 >conftest.err
25588 rm -f conftest.er1
25589 cat conftest.err >&5
25590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); } && {
25592 test -z "$ac_c_werror_flag" ||
25593 test ! -s conftest.err
25594 } && test -s conftest.$ac_objext; then
25595 ac_cv_type_mbstate_t=yes
25596 else
25597 $as_echo "$as_me: failed program was:" >&5
25598 sed 's/^/| /' conftest.$ac_ext >&5
25599
25600 ac_cv_type_mbstate_t=no
25601 fi
25602
25603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25604 fi
25605 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25606 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25607 if test $ac_cv_type_mbstate_t = yes; then
25608
25609 cat >>confdefs.h <<\_ACEOF
25610 #define HAVE_MBSTATE_T 1
25611 _ACEOF
25612
25613 else
25614
25615 cat >>confdefs.h <<\_ACEOF
25616 #define mbstate_t int
25617 _ACEOF
25618
25619 fi
25620
25621 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25622 $as_echo_n "checking for C restrict keyword... " >&6; }
25623 if test "${emacs_cv_c_restrict+set}" = set; then
25624 $as_echo_n "(cached) " >&6
25625 else
25626 cat >conftest.$ac_ext <<_ACEOF
25627 /* confdefs.h. */
25628 _ACEOF
25629 cat confdefs.h >>conftest.$ac_ext
25630 cat >>conftest.$ac_ext <<_ACEOF
25631 /* end confdefs.h. */
25632 void fred (int *restrict x);
25633 int
25634 main ()
25635 {
25636
25637 ;
25638 return 0;
25639 }
25640 _ACEOF
25641 rm -f conftest.$ac_objext
25642 if { (ac_try="$ac_compile"
25643 case "(($ac_try" in
25644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25645 *) ac_try_echo=$ac_try;;
25646 esac
25647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25648 $as_echo "$ac_try_echo") >&5
25649 (eval "$ac_compile") 2>conftest.er1
25650 ac_status=$?
25651 grep -v '^ *+' conftest.er1 >conftest.err
25652 rm -f conftest.er1
25653 cat conftest.err >&5
25654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655 (exit $ac_status); } && {
25656 test -z "$ac_c_werror_flag" ||
25657 test ! -s conftest.err
25658 } && test -s conftest.$ac_objext; then
25659 emacs_cv_c_restrict=yes
25660 else
25661 $as_echo "$as_me: failed program was:" >&5
25662 sed 's/^/| /' conftest.$ac_ext >&5
25663
25664 cat >conftest.$ac_ext <<_ACEOF
25665 /* confdefs.h. */
25666 _ACEOF
25667 cat confdefs.h >>conftest.$ac_ext
25668 cat >>conftest.$ac_ext <<_ACEOF
25669 /* end confdefs.h. */
25670 void fred (int *__restrict x);
25671 int
25672 main ()
25673 {
25674
25675 ;
25676 return 0;
25677 }
25678 _ACEOF
25679 rm -f conftest.$ac_objext
25680 if { (ac_try="$ac_compile"
25681 case "(($ac_try" in
25682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25683 *) ac_try_echo=$ac_try;;
25684 esac
25685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25686 $as_echo "$ac_try_echo") >&5
25687 (eval "$ac_compile") 2>conftest.er1
25688 ac_status=$?
25689 grep -v '^ *+' conftest.er1 >conftest.err
25690 rm -f conftest.er1
25691 cat conftest.err >&5
25692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693 (exit $ac_status); } && {
25694 test -z "$ac_c_werror_flag" ||
25695 test ! -s conftest.err
25696 } && test -s conftest.$ac_objext; then
25697 emacs_cv_c_restrict=__restrict
25698 else
25699 $as_echo "$as_me: failed program was:" >&5
25700 sed 's/^/| /' conftest.$ac_ext >&5
25701
25702 emacs_cv_c_restrict=no
25703 fi
25704
25705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25706 fi
25707
25708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25709 fi
25710 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25711 $as_echo "$emacs_cv_c_restrict" >&6; }
25712 case "$emacs_cv_c_restrict" in
25713 yes) emacs_restrict=restrict;;
25714 no) emacs_restrict="";;
25715 *) emacs_restrict="$emacs_cv_c_restrict";;
25716 esac
25717 if test "$emacs_restrict" != __restrict; then
25718
25719 cat >>confdefs.h <<_ACEOF
25720 #define __restrict $emacs_restrict
25721 _ACEOF
25722
25723 fi
25724
25725 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25726 $as_echo_n "checking for C restricted array declarations... " >&6; }
25727 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25728 $as_echo_n "(cached) " >&6
25729 else
25730 cat >conftest.$ac_ext <<_ACEOF
25731 /* confdefs.h. */
25732 _ACEOF
25733 cat confdefs.h >>conftest.$ac_ext
25734 cat >>conftest.$ac_ext <<_ACEOF
25735 /* end confdefs.h. */
25736 void fred (int x[__restrict]);
25737 int
25738 main ()
25739 {
25740
25741 ;
25742 return 0;
25743 }
25744 _ACEOF
25745 rm -f conftest.$ac_objext
25746 if { (ac_try="$ac_compile"
25747 case "(($ac_try" in
25748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25749 *) ac_try_echo=$ac_try;;
25750 esac
25751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25752 $as_echo "$ac_try_echo") >&5
25753 (eval "$ac_compile") 2>conftest.er1
25754 ac_status=$?
25755 grep -v '^ *+' conftest.er1 >conftest.err
25756 rm -f conftest.er1
25757 cat conftest.err >&5
25758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759 (exit $ac_status); } && {
25760 test -z "$ac_c_werror_flag" ||
25761 test ! -s conftest.err
25762 } && test -s conftest.$ac_objext; then
25763 emacs_cv_c_restrict_arr=yes
25764 else
25765 $as_echo "$as_me: failed program was:" >&5
25766 sed 's/^/| /' conftest.$ac_ext >&5
25767
25768 emacs_cv_c_restrict_arr=no
25769 fi
25770
25771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25772 fi
25773 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25774 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25775 if test "$emacs_cv_c_restrict_arr" = yes; then
25776
25777 cat >>confdefs.h <<\_ACEOF
25778 #define __restrict_arr __restrict
25779 _ACEOF
25780
25781 fi
25782
25783
25784
25785 # Set up the CFLAGS for real compilation, so we can substitute it.
25786 CFLAGS="$REAL_CFLAGS"
25787 CPPFLAGS="$REAL_CPPFLAGS"
25788
25789 #### Find out which version of Emacs this is.
25790 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25791 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25792 if test x"${version}" = x; then
25793 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25794 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25795 { (exit 1); exit 1; }; }
25796 fi
25797 if test x"${version}" != x"$PACKAGE_VERSION"; then
25798 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25799 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25800 fi
25801
25802 ### Specify what sort of things we'll be editing into Makefile and config.h.
25803 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25804
25805
25806
25807
25808
25809
25810
25811
25812
25813
25814
25815
25816
25817
25818
25819
25820
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848 cat >>confdefs.h <<_ACEOF
25849 #define EMACS_CONFIGURATION "${canonical}"
25850 _ACEOF
25851
25852
25853 cat >>confdefs.h <<_ACEOF
25854 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25855 _ACEOF
25856
25857
25858 cat >>confdefs.h <<_ACEOF
25859 #define config_machfile "${machfile}"
25860 _ACEOF
25861
25862
25863 cat >>confdefs.h <<_ACEOF
25864 #define config_opsysfile "${opsysfile}"
25865 _ACEOF
25866
25867
25868 cat >>confdefs.h <<_ACEOF
25869 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25870 _ACEOF
25871
25872
25873 cat >>confdefs.h <<_ACEOF
25874 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25875 _ACEOF
25876
25877
25878 cat >>confdefs.h <<_ACEOF
25879 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25880 _ACEOF
25881
25882
25883 cat >>confdefs.h <<_ACEOF
25884 #define UNEXEC_SRC ${UNEXEC_SRC}
25885 _ACEOF
25886
25887
25888 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25889
25890 cat >>confdefs.h <<\_ACEOF
25891 #define HAVE_X_WINDOWS 1
25892 _ACEOF
25893
25894 fi
25895 if test "${USE_X_TOOLKIT}" != "none" ; then
25896
25897 cat >>confdefs.h <<\_ACEOF
25898 #define USE_X_TOOLKIT 1
25899 _ACEOF
25900
25901 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25902
25903 cat >>confdefs.h <<\_ACEOF
25904 #define USE_LUCID 1
25905 _ACEOF
25906
25907 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25908
25909 cat >>confdefs.h <<\_ACEOF
25910 #define USE_MOTIF 1
25911 _ACEOF
25912
25913 fi
25914 fi
25915 if test "${HAVE_X11}" = "yes" ; then
25916
25917 cat >>confdefs.h <<\_ACEOF
25918 #define HAVE_X11 1
25919 _ACEOF
25920
25921 fi
25922 if test "${HAVE_MENUS}" = "yes" ; then
25923
25924 cat >>confdefs.h <<\_ACEOF
25925 #define HAVE_MENUS 1
25926 _ACEOF
25927
25928 fi
25929 if test "${GNU_MALLOC}" = "yes" ; then
25930
25931 cat >>confdefs.h <<\_ACEOF
25932 #define GNU_MALLOC 1
25933 _ACEOF
25934
25935 fi
25936 if test "${REL_ALLOC}" = "yes" ; then
25937
25938 cat >>confdefs.h <<\_ACEOF
25939 #define REL_ALLOC 1
25940 _ACEOF
25941
25942 fi
25943
25944
25945
25946
25947
25948
25949 #### Report on what we decided to do.
25950 #### Report GTK as a toolkit, even if it doesn't use Xt.
25951 #### It makes printing result more understandable as using GTK sets
25952 #### toolkit_scroll_bars to yes by default.
25953 if test "${HAVE_GTK}" = "yes"; then
25954 USE_X_TOOLKIT=GTK
25955 fi
25956
25957 echo "
25958 Configured for \`${canonical}'.
25959
25960 Where should the build process find the source code? ${srcdir}
25961 What operating system and machine description files should Emacs use?
25962 \`${opsysfile}' and \`${machfile}'
25963 What compiler should emacs be built with? ${CC} ${CFLAGS}
25964 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25965 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25966 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25967 What window system should Emacs use? ${window_system}
25968 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25969
25970 if test -n "${x_includes}"; then
25971 echo " Where do we find X Windows header files? ${x_includes}"
25972 else
25973 echo " Where do we find X Windows header files? Standard dirs"
25974 fi
25975 if test -n "${x_libraries}"; then
25976 echo " Where do we find X Windows libraries? ${x_libraries}"
25977 else
25978 echo " Where do we find X Windows libraries? Standard dirs"
25979 fi
25980
25981 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25982 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25983 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25984 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25985 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
25986 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25987 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25988 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25989 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25990 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
25991 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
25992
25993 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25994 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25995 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25996 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25997
25998 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25999 echo
26000
26001 if test $USE_XASSERTS = yes; then
26002 echo " Compiling with asserts turned on."
26003 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26004 fi
26005
26006 echo
26007
26008 if test "$HAVE_NS" = "yes"; then
26009 echo
26010 echo "You must run \"make install\" in order to test the built application.
26011 The installed application will go to nextstep/Emacs.app and can be
26012 run or moved from there."
26013 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26014 echo "The application will be fully self-contained."
26015 else
26016 echo "The lisp resources for the application will be installed under ${prefix}.
26017 You may need to run \"make install\" with sudo. The application will fail
26018 to run if these resources are not installed."
26019 fi
26020 echo
26021 fi
26022
26023 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26024 echo "D-Bus integration has been tested for GNU/Linux only."
26025 echo
26026 fi
26027
26028
26029 # Remove any trailing slashes in these variables.
26030 test "${prefix}" != NONE &&
26031 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26032 test "${exec_prefix}" != NONE &&
26033 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26034
26035 # Now get this: Some word that is part of the ${srcdir} directory name
26036 # or the ${configuration} value might, just might, happen to be an
26037 # identifier like `sun4' or `i386' or something, and be predefined by
26038 # the C preprocessor to some helpful value like 1, or maybe the empty
26039 # string. Needless to say consequent macro substitutions are less
26040 # than conducive to the makefile finding the correct directory.
26041 cpp_undefs="`echo $srcdir $configuration $canonical |
26042 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26043 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26044
26045 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26046 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26047 ## from Makefile.c can correctly provide the arg `-traditional' to the
26048 ## C preprocessor.
26049
26050 cat >conftest.$ac_ext <<_ACEOF
26051 /* confdefs.h. */
26052 _ACEOF
26053 cat confdefs.h >>conftest.$ac_ext
26054 cat >>conftest.$ac_ext <<_ACEOF
26055 /* end confdefs.h. */
26056 yes..yes
26057 _ACEOF
26058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26059 $EGREP "yes..yes" >/dev/null 2>&1; then
26060 CPP_NEED_TRADITIONAL=no
26061 else
26062 CPP_NEED_TRADITIONAL=yes
26063 fi
26064 rm -f conftest*
26065
26066
26067 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"
26068
26069 ac_config_commands="$ac_config_commands default"
26070
26071 cat >confcache <<\_ACEOF
26072 # This file is a shell script that caches the results of configure
26073 # tests run on this system so they can be shared between configure
26074 # scripts and configure runs, see configure's option --config-cache.
26075 # It is not useful on other systems. If it contains results you don't
26076 # want to keep, you may remove or edit it.
26077 #
26078 # config.status only pays attention to the cache file if you give it
26079 # the --recheck option to rerun configure.
26080 #
26081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26082 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26083 # following values.
26084
26085 _ACEOF
26086
26087 # The following way of writing the cache mishandles newlines in values,
26088 # but we know of no workaround that is simple, portable, and efficient.
26089 # So, we kill variables containing newlines.
26090 # Ultrix sh set writes to stderr and can't be redirected directly,
26091 # and sets the high bit in the cache file unless we assign to the vars.
26092 (
26093 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26094 eval ac_val=\$$ac_var
26095 case $ac_val in #(
26096 *${as_nl}*)
26097 case $ac_var in #(
26098 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26099 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26100 esac
26101 case $ac_var in #(
26102 _ | IFS | as_nl) ;; #(
26103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26104 *) $as_unset $ac_var ;;
26105 esac ;;
26106 esac
26107 done
26108
26109 (set) 2>&1 |
26110 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26111 *${as_nl}ac_space=\ *)
26112 # `set' does not quote correctly, so add quotes (double-quote
26113 # substitution turns \\\\ into \\, and sed turns \\ into \).
26114 sed -n \
26115 "s/'/'\\\\''/g;
26116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26117 ;; #(
26118 *)
26119 # `set' quotes correctly as required by POSIX, so do not add quotes.
26120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26121 ;;
26122 esac |
26123 sort
26124 ) |
26125 sed '
26126 /^ac_cv_env_/b end
26127 t clear
26128 :clear
26129 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26130 t end
26131 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26132 :end' >>confcache
26133 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26134 if test -w "$cache_file"; then
26135 test "x$cache_file" != "x/dev/null" &&
26136 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26137 $as_echo "$as_me: updating cache $cache_file" >&6;}
26138 cat confcache >$cache_file
26139 else
26140 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26141 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26142 fi
26143 fi
26144 rm -f confcache
26145
26146 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26147 # Let make expand exec_prefix.
26148 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26149
26150 DEFS=-DHAVE_CONFIG_H
26151
26152 ac_libobjs=
26153 ac_ltlibobjs=
26154 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26155 # 1. Remove the extension, and $U if already installed.
26156 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26157 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26158 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26159 # will be set to the directory where LIBOBJS objects are built.
26160 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26161 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26162 done
26163 LIBOBJS=$ac_libobjs
26164
26165 LTLIBOBJS=$ac_ltlibobjs
26166
26167
26168
26169 : ${CONFIG_STATUS=./config.status}
26170 ac_write_fail=0
26171 ac_clean_files_save=$ac_clean_files
26172 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26173 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26174 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26175 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26176 #! $SHELL
26177 # Generated by $as_me.
26178 # Run this file to recreate the current configuration.
26179 # Compiler output produced by configure, useful for debugging
26180 # configure, is in config.log if it exists.
26181
26182 debug=false
26183 ac_cs_recheck=false
26184 ac_cs_silent=false
26185 SHELL=\${CONFIG_SHELL-$SHELL}
26186 _ACEOF
26187
26188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26189 ## --------------------- ##
26190 ## M4sh Initialization. ##
26191 ## --------------------- ##
26192
26193 # Be more Bourne compatible
26194 DUALCASE=1; export DUALCASE # for MKS sh
26195 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26196 emulate sh
26197 NULLCMD=:
26198 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26199 # is contrary to our usage. Disable this feature.
26200 alias -g '${1+"$@"}'='"$@"'
26201 setopt NO_GLOB_SUBST
26202 else
26203 case `(set -o) 2>/dev/null` in
26204 *posix*) set -o posix ;;
26205 esac
26206
26207 fi
26208
26209
26210
26211
26212 # PATH needs CR
26213 # Avoid depending upon Character Ranges.
26214 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26215 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26216 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26217 as_cr_digits='0123456789'
26218 as_cr_alnum=$as_cr_Letters$as_cr_digits
26219
26220 as_nl='
26221 '
26222 export as_nl
26223 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26224 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26225 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26226 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26227 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26228 as_echo='printf %s\n'
26229 as_echo_n='printf %s'
26230 else
26231 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26232 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26233 as_echo_n='/usr/ucb/echo -n'
26234 else
26235 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26236 as_echo_n_body='eval
26237 arg=$1;
26238 case $arg in
26239 *"$as_nl"*)
26240 expr "X$arg" : "X\\(.*\\)$as_nl";
26241 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26242 esac;
26243 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26244 '
26245 export as_echo_n_body
26246 as_echo_n='sh -c $as_echo_n_body as_echo'
26247 fi
26248 export as_echo_body
26249 as_echo='sh -c $as_echo_body as_echo'
26250 fi
26251
26252 # The user is always right.
26253 if test "${PATH_SEPARATOR+set}" != set; then
26254 PATH_SEPARATOR=:
26255 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26256 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26257 PATH_SEPARATOR=';'
26258 }
26259 fi
26260
26261 # Support unset when possible.
26262 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26263 as_unset=unset
26264 else
26265 as_unset=false
26266 fi
26267
26268
26269 # IFS
26270 # We need space, tab and new line, in precisely that order. Quoting is
26271 # there to prevent editors from complaining about space-tab.
26272 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26273 # splitting by setting IFS to empty value.)
26274 IFS=" "" $as_nl"
26275
26276 # Find who we are. Look in the path if we contain no directory separator.
26277 case $0 in
26278 *[\\/]* ) as_myself=$0 ;;
26279 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26280 for as_dir in $PATH
26281 do
26282 IFS=$as_save_IFS
26283 test -z "$as_dir" && as_dir=.
26284 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26285 done
26286 IFS=$as_save_IFS
26287
26288 ;;
26289 esac
26290 # We did not find ourselves, most probably we were run as `sh COMMAND'
26291 # in which case we are not to be found in the path.
26292 if test "x$as_myself" = x; then
26293 as_myself=$0
26294 fi
26295 if test ! -f "$as_myself"; then
26296 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26297 { (exit 1); exit 1; }
26298 fi
26299
26300 # Work around bugs in pre-3.0 UWIN ksh.
26301 for as_var in ENV MAIL MAILPATH
26302 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26303 done
26304 PS1='$ '
26305 PS2='> '
26306 PS4='+ '
26307
26308 # NLS nuisances.
26309 LC_ALL=C
26310 export LC_ALL
26311 LANGUAGE=C
26312 export LANGUAGE
26313
26314 # Required to use basename.
26315 if expr a : '\(a\)' >/dev/null 2>&1 &&
26316 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26317 as_expr=expr
26318 else
26319 as_expr=false
26320 fi
26321
26322 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26323 as_basename=basename
26324 else
26325 as_basename=false
26326 fi
26327
26328
26329 # Name of the executable.
26330 as_me=`$as_basename -- "$0" ||
26331 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26332 X"$0" : 'X\(//\)$' \| \
26333 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26334 $as_echo X/"$0" |
26335 sed '/^.*\/\([^/][^/]*\)\/*$/{
26336 s//\1/
26337 q
26338 }
26339 /^X\/\(\/\/\)$/{
26340 s//\1/
26341 q
26342 }
26343 /^X\/\(\/\).*/{
26344 s//\1/
26345 q
26346 }
26347 s/.*/./; q'`
26348
26349 # CDPATH.
26350 $as_unset CDPATH
26351
26352
26353
26354 as_lineno_1=$LINENO
26355 as_lineno_2=$LINENO
26356 test "x$as_lineno_1" != "x$as_lineno_2" &&
26357 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26358
26359 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26360 # uniformly replaced by the line number. The first 'sed' inserts a
26361 # line-number line after each line using $LINENO; the second 'sed'
26362 # does the real work. The second script uses 'N' to pair each
26363 # line-number line with the line containing $LINENO, and appends
26364 # trailing '-' during substitution so that $LINENO is not a special
26365 # case at line end.
26366 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26367 # scripts with optimization help from Paolo Bonzini. Blame Lee
26368 # E. McMahon (1931-1989) for sed's syntax. :-)
26369 sed -n '
26370 p
26371 /[$]LINENO/=
26372 ' <$as_myself |
26373 sed '
26374 s/[$]LINENO.*/&-/
26375 t lineno
26376 b
26377 :lineno
26378 N
26379 :loop
26380 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26381 t loop
26382 s/-\n.*//
26383 ' >$as_me.lineno &&
26384 chmod +x "$as_me.lineno" ||
26385 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26386 { (exit 1); exit 1; }; }
26387
26388 # Don't try to exec as it changes $[0], causing all sort of problems
26389 # (the dirname of $[0] is not the place where we might find the
26390 # original and so on. Autoconf is especially sensitive to this).
26391 . "./$as_me.lineno"
26392 # Exit status is that of the last command.
26393 exit
26394 }
26395
26396
26397 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26398 as_dirname=dirname
26399 else
26400 as_dirname=false
26401 fi
26402
26403 ECHO_C= ECHO_N= ECHO_T=
26404 case `echo -n x` in
26405 -n*)
26406 case `echo 'x\c'` in
26407 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26408 *) ECHO_C='\c';;
26409 esac;;
26410 *)
26411 ECHO_N='-n';;
26412 esac
26413 if expr a : '\(a\)' >/dev/null 2>&1 &&
26414 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26415 as_expr=expr
26416 else
26417 as_expr=false
26418 fi
26419
26420 rm -f conf$$ conf$$.exe conf$$.file
26421 if test -d conf$$.dir; then
26422 rm -f conf$$.dir/conf$$.file
26423 else
26424 rm -f conf$$.dir
26425 mkdir conf$$.dir 2>/dev/null
26426 fi
26427 if (echo >conf$$.file) 2>/dev/null; then
26428 if ln -s conf$$.file conf$$ 2>/dev/null; then
26429 as_ln_s='ln -s'
26430 # ... but there are two gotchas:
26431 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26432 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26433 # In both cases, we have to default to `cp -p'.
26434 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26435 as_ln_s='cp -p'
26436 elif ln conf$$.file conf$$ 2>/dev/null; then
26437 as_ln_s=ln
26438 else
26439 as_ln_s='cp -p'
26440 fi
26441 else
26442 as_ln_s='cp -p'
26443 fi
26444 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26445 rmdir conf$$.dir 2>/dev/null
26446
26447 if mkdir -p . 2>/dev/null; then
26448 as_mkdir_p=:
26449 else
26450 test -d ./-p && rmdir ./-p
26451 as_mkdir_p=false
26452 fi
26453
26454 if test -x / >/dev/null 2>&1; then
26455 as_test_x='test -x'
26456 else
26457 if ls -dL / >/dev/null 2>&1; then
26458 as_ls_L_option=L
26459 else
26460 as_ls_L_option=
26461 fi
26462 as_test_x='
26463 eval sh -c '\''
26464 if test -d "$1"; then
26465 test -d "$1/.";
26466 else
26467 case $1 in
26468 -*)set "./$1";;
26469 esac;
26470 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26471 ???[sx]*):;;*)false;;esac;fi
26472 '\'' sh
26473 '
26474 fi
26475 as_executable_p=$as_test_x
26476
26477 # Sed expression to map a string onto a valid CPP name.
26478 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26479
26480 # Sed expression to map a string onto a valid variable name.
26481 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26482
26483
26484 exec 6>&1
26485
26486 # Save the log message, to keep $[0] and so on meaningful, and to
26487 # report actual input values of CONFIG_FILES etc. instead of their
26488 # values after options handling.
26489 ac_log="
26490 This file was extended by emacs $as_me 24.0.50, which was
26491 generated by GNU Autoconf 2.62. Invocation command line was
26492
26493 CONFIG_FILES = $CONFIG_FILES
26494 CONFIG_HEADERS = $CONFIG_HEADERS
26495 CONFIG_LINKS = $CONFIG_LINKS
26496 CONFIG_COMMANDS = $CONFIG_COMMANDS
26497 $ $0 $@
26498
26499 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26500 "
26501
26502 _ACEOF
26503
26504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26505 # Files that config.status was made for.
26506 config_files="$ac_config_files"
26507 config_headers="$ac_config_headers"
26508 config_commands="$ac_config_commands"
26509
26510 _ACEOF
26511
26512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26513 ac_cs_usage="\
26514 \`$as_me' instantiates files from templates according to the
26515 current configuration.
26516
26517 Usage: $0 [OPTIONS] [FILE]...
26518
26519 -h, --help print this help, then exit
26520 -V, --version print version number and configuration settings, then exit
26521 -q, --quiet do not print progress messages
26522 -d, --debug don't remove temporary files
26523 --recheck update $as_me by reconfiguring in the same conditions
26524 --file=FILE[:TEMPLATE]
26525 instantiate the configuration file FILE
26526 --header=FILE[:TEMPLATE]
26527 instantiate the configuration header FILE
26528
26529 Configuration files:
26530 $config_files
26531
26532 Configuration headers:
26533 $config_headers
26534
26535 Configuration commands:
26536 $config_commands
26537
26538 Report bugs to <bug-autoconf@gnu.org>."
26539
26540 _ACEOF
26541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26542 ac_cs_version="\\
26543 emacs config.status 24.0.50
26544 configured by $0, generated by GNU Autoconf 2.62,
26545 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26546
26547 Copyright (C) 2008 Free Software Foundation, Inc.
26548 This config.status script is free software; the Free Software Foundation
26549 gives unlimited permission to copy, distribute and modify it."
26550
26551 ac_pwd='$ac_pwd'
26552 srcdir='$srcdir'
26553 INSTALL='$INSTALL'
26554 test -n "\$AWK" || AWK=awk
26555 _ACEOF
26556
26557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26558 # The default lists apply if the user does not specify any file.
26559 ac_need_defaults=:
26560 while test $# != 0
26561 do
26562 case $1 in
26563 --*=*)
26564 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26565 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26566 ac_shift=:
26567 ;;
26568 *)
26569 ac_option=$1
26570 ac_optarg=$2
26571 ac_shift=shift
26572 ;;
26573 esac
26574
26575 case $ac_option in
26576 # Handling of the options.
26577 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26578 ac_cs_recheck=: ;;
26579 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26580 $as_echo "$ac_cs_version"; exit ;;
26581 --debug | --debu | --deb | --de | --d | -d )
26582 debug=: ;;
26583 --file | --fil | --fi | --f )
26584 $ac_shift
26585 case $ac_optarg in
26586 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26587 esac
26588 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26589 ac_need_defaults=false;;
26590 --header | --heade | --head | --hea )
26591 $ac_shift
26592 case $ac_optarg in
26593 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26594 esac
26595 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26596 ac_need_defaults=false;;
26597 --he | --h)
26598 # Conflict between --help and --header
26599 { $as_echo "$as_me: error: ambiguous option: $1
26600 Try \`$0 --help' for more information." >&2
26601 { (exit 1); exit 1; }; };;
26602 --help | --hel | -h )
26603 $as_echo "$ac_cs_usage"; exit ;;
26604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26605 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26606 ac_cs_silent=: ;;
26607
26608 # This is an error.
26609 -*) { $as_echo "$as_me: error: unrecognized option: $1
26610 Try \`$0 --help' for more information." >&2
26611 { (exit 1); exit 1; }; } ;;
26612
26613 *) ac_config_targets="$ac_config_targets $1"
26614 ac_need_defaults=false ;;
26615
26616 esac
26617 shift
26618 done
26619
26620 ac_configure_extra_args=
26621
26622 if $ac_cs_silent; then
26623 exec 6>/dev/null
26624 ac_configure_extra_args="$ac_configure_extra_args --silent"
26625 fi
26626
26627 _ACEOF
26628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26629 if \$ac_cs_recheck; then
26630 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26631 shift
26632 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26633 CONFIG_SHELL='$SHELL'
26634 export CONFIG_SHELL
26635 exec "\$@"
26636 fi
26637
26638 _ACEOF
26639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26640 exec 5>>config.log
26641 {
26642 echo
26643 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26644 ## Running $as_me. ##
26645 _ASBOX
26646 $as_echo "$ac_log"
26647 } >&5
26648
26649 _ACEOF
26650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26651 #
26652 # INIT-COMMANDS
26653 #
26654 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26655
26656 _ACEOF
26657
26658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26659
26660 # Handling of arguments.
26661 for ac_config_target in $ac_config_targets
26662 do
26663 case $ac_config_target in
26664 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26665 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26666 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26667 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26668 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26669 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26670 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26671 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26672 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26673 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26674 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26675 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26676 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26677
26678 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26679 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26680 { (exit 1); exit 1; }; };;
26681 esac
26682 done
26683
26684
26685 # If the user did not use the arguments to specify the items to instantiate,
26686 # then the envvar interface is used. Set only those that are not.
26687 # We use the long form for the default assignment because of an extremely
26688 # bizarre bug on SunOS 4.1.3.
26689 if $ac_need_defaults; then
26690 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26691 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26692 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26693 fi
26694
26695 # Have a temporary directory for convenience. Make it in the build tree
26696 # simply because there is no reason against having it here, and in addition,
26697 # creating and moving files from /tmp can sometimes cause problems.
26698 # Hook for its removal unless debugging.
26699 # Note that there is a small window in which the directory will not be cleaned:
26700 # after its creation but before its name has been assigned to `$tmp'.
26701 $debug ||
26702 {
26703 tmp=
26704 trap 'exit_status=$?
26705 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26706 ' 0
26707 trap '{ (exit 1); exit 1; }' 1 2 13 15
26708 }
26709 # Create a (secure) tmp directory for tmp files.
26710
26711 {
26712 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26713 test -n "$tmp" && test -d "$tmp"
26714 } ||
26715 {
26716 tmp=./conf$$-$RANDOM
26717 (umask 077 && mkdir "$tmp")
26718 } ||
26719 {
26720 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26721 { (exit 1); exit 1; }
26722 }
26723
26724 # Set up the scripts for CONFIG_FILES section.
26725 # No need to generate them if there are no CONFIG_FILES.
26726 # This happens for instance with `./config.status config.h'.
26727 if test -n "$CONFIG_FILES"; then
26728
26729
26730 ac_cr=' '
26731 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26732 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26733 ac_cs_awk_cr='\\r'
26734 else
26735 ac_cs_awk_cr=$ac_cr
26736 fi
26737
26738 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26739 _ACEOF
26740
26741
26742 {
26743 echo "cat >conf$$subs.awk <<_ACEOF" &&
26744 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26745 echo "_ACEOF"
26746 } >conf$$subs.sh ||
26747 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26748 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26749 { (exit 1); exit 1; }; }
26750 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26751 ac_delim='%!_!# '
26752 for ac_last_try in false false false false false :; do
26753 . ./conf$$subs.sh ||
26754 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26755 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26756 { (exit 1); exit 1; }; }
26757
26758 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26759 break
26760 elif $ac_last_try; then
26761 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26762 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26763 { (exit 1); exit 1; }; }
26764 else
26765 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26766 fi
26767 done
26768 rm -f conf$$subs.sh
26769
26770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26771 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26772 _ACEOF
26773 sed -n '
26774 h
26775 s/^/S["/; s/!.*/"]=/
26776 p
26777 g
26778 s/^[^!]*!//
26779 :repl
26780 t repl
26781 s/'"$ac_delim"'$//
26782 t delim
26783 :nl
26784 h
26785 s/\(.\{148\}\).*/\1/
26786 t more1
26787 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26788 p
26789 n
26790 b repl
26791 :more1
26792 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26793 p
26794 g
26795 s/.\{148\}//
26796 t nl
26797 :delim
26798 h
26799 s/\(.\{148\}\).*/\1/
26800 t more2
26801 s/["\\]/\\&/g; s/^/"/; s/$/"/
26802 p
26803 b
26804 :more2
26805 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26806 p
26807 g
26808 s/.\{148\}//
26809 t delim
26810 ' <conf$$subs.awk | sed '
26811 /^[^""]/{
26812 N
26813 s/\n//
26814 }
26815 ' >>$CONFIG_STATUS || ac_write_fail=1
26816 rm -f conf$$subs.awk
26817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26818 _ACAWK
26819 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26820 for (key in S) S_is_set[key] = 1
26821 FS = "\a"
26822
26823 }
26824 {
26825 line = $ 0
26826 nfields = split(line, field, "@")
26827 substed = 0
26828 len = length(field[1])
26829 for (i = 2; i < nfields; i++) {
26830 key = field[i]
26831 keylen = length(key)
26832 if (S_is_set[key]) {
26833 value = S[key]
26834 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26835 len += length(value) + length(field[++i])
26836 substed = 1
26837 } else
26838 len += 1 + keylen
26839 }
26840
26841 print line
26842 }
26843
26844 _ACAWK
26845 _ACEOF
26846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26847 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26848 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26849 else
26850 cat
26851 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26852 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26853 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26854 { (exit 1); exit 1; }; }
26855 _ACEOF
26856
26857 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26858 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26859 # trailing colons and then remove the whole line if VPATH becomes empty
26860 # (actually we leave an empty line to preserve line numbers).
26861 if test "x$srcdir" = x.; then
26862 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26863 s/:*\$(srcdir):*/:/
26864 s/:*\${srcdir}:*/:/
26865 s/:*@srcdir@:*/:/
26866 s/^\([^=]*=[ ]*\):*/\1/
26867 s/:*$//
26868 s/^[^=]*=[ ]*$//
26869 }'
26870 fi
26871
26872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26873 fi # test -n "$CONFIG_FILES"
26874
26875 # Set up the scripts for CONFIG_HEADERS section.
26876 # No need to generate them if there are no CONFIG_HEADERS.
26877 # This happens for instance with `./config.status Makefile'.
26878 if test -n "$CONFIG_HEADERS"; then
26879 cat >"$tmp/defines.awk" <<\_ACAWK ||
26880 BEGIN {
26881 _ACEOF
26882
26883 # Transform confdefs.h into an awk script `defines.awk', embedded as
26884 # here-document in config.status, that substitutes the proper values into
26885 # config.h.in to produce config.h.
26886
26887 # Create a delimiter string that does not exist in confdefs.h, to ease
26888 # handling of long lines.
26889 ac_delim='%!_!# '
26890 for ac_last_try in false false :; do
26891 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26892 if test -z "$ac_t"; then
26893 break
26894 elif $ac_last_try; then
26895 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26896 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26897 { (exit 1); exit 1; }; }
26898 else
26899 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26900 fi
26901 done
26902
26903 # For the awk script, D is an array of macro values keyed by name,
26904 # likewise P contains macro parameters if any. Preserve backslash
26905 # newline sequences.
26906
26907 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26908 sed -n '
26909 s/.\{148\}/&'"$ac_delim"'/g
26910 t rset
26911 :rset
26912 s/^[ ]*#[ ]*define[ ][ ]*/ /
26913 t def
26914 d
26915 :def
26916 s/\\$//
26917 t bsnl
26918 s/["\\]/\\&/g
26919 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26920 D["\1"]=" \3"/p
26921 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26922 d
26923 :bsnl
26924 s/["\\]/\\&/g
26925 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26926 D["\1"]=" \3\\\\\\n"\\/p
26927 t cont
26928 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26929 t cont
26930 d
26931 :cont
26932 n
26933 s/.\{148\}/&'"$ac_delim"'/g
26934 t clear
26935 :clear
26936 s/\\$//
26937 t bsnlc
26938 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26939 d
26940 :bsnlc
26941 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26942 b cont
26943 ' <confdefs.h | sed '
26944 s/'"$ac_delim"'/"\\\
26945 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26946
26947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26948 for (key in D) D_is_set[key] = 1
26949 FS = "\a"
26950 }
26951 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26952 line = \$ 0
26953 split(line, arg, " ")
26954 if (arg[1] == "#") {
26955 defundef = arg[2]
26956 mac1 = arg[3]
26957 } else {
26958 defundef = substr(arg[1], 2)
26959 mac1 = arg[2]
26960 }
26961 split(mac1, mac2, "(") #)
26962 macro = mac2[1]
26963 if (D_is_set[macro]) {
26964 # Preserve the white space surrounding the "#".
26965 prefix = substr(line, 1, index(line, defundef) - 1)
26966 print prefix "define", macro P[macro] D[macro]
26967 next
26968 } else {
26969 # Replace #undef with comments. This is necessary, for example,
26970 # in the case of _POSIX_SOURCE, which is predefined and required
26971 # on some systems where configure will not decide to define it.
26972 if (defundef == "undef") {
26973 print "/*", line, "*/"
26974 next
26975 }
26976 }
26977 }
26978 { print }
26979 _ACAWK
26980 _ACEOF
26981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26982 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26983 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26984 { (exit 1); exit 1; }; }
26985 fi # test -n "$CONFIG_HEADERS"
26986
26987
26988 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26989 shift
26990 for ac_tag
26991 do
26992 case $ac_tag in
26993 :[FHLC]) ac_mode=$ac_tag; continue;;
26994 esac
26995 case $ac_mode$ac_tag in
26996 :[FHL]*:*);;
26997 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26998 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26999 { (exit 1); exit 1; }; };;
27000 :[FH]-) ac_tag=-:-;;
27001 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27002 esac
27003 ac_save_IFS=$IFS
27004 IFS=:
27005 set x $ac_tag
27006 IFS=$ac_save_IFS
27007 shift
27008 ac_file=$1
27009 shift
27010
27011 case $ac_mode in
27012 :L) ac_source=$1;;
27013 :[FH])
27014 ac_file_inputs=
27015 for ac_f
27016 do
27017 case $ac_f in
27018 -) ac_f="$tmp/stdin";;
27019 *) # Look for the file first in the build tree, then in the source tree
27020 # (if the path is not absolute). The absolute path cannot be DOS-style,
27021 # because $ac_f cannot contain `:'.
27022 test -f "$ac_f" ||
27023 case $ac_f in
27024 [\\/$]*) false;;
27025 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27026 esac ||
27027 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27028 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27029 { (exit 1); exit 1; }; };;
27030 esac
27031 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27032 ac_file_inputs="$ac_file_inputs '$ac_f'"
27033 done
27034
27035 # Let's still pretend it is `configure' which instantiates (i.e., don't
27036 # use $as_me), people would be surprised to read:
27037 # /* config.h. Generated by config.status. */
27038 configure_input='Generated from '`
27039 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27040 `' by configure.'
27041 if test x"$ac_file" != x-; then
27042 configure_input="$ac_file. $configure_input"
27043 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27044 $as_echo "$as_me: creating $ac_file" >&6;}
27045 fi
27046 # Neutralize special characters interpreted by sed in replacement strings.
27047 case $configure_input in #(
27048 *\&* | *\|* | *\\* )
27049 ac_sed_conf_input=`$as_echo "$configure_input" |
27050 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27051 *) ac_sed_conf_input=$configure_input;;
27052 esac
27053
27054 case $ac_tag in
27055 *:-:* | *:-) cat >"$tmp/stdin" \
27056 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27057 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27058 { (exit 1); exit 1; }; } ;;
27059 esac
27060 ;;
27061 esac
27062
27063 ac_dir=`$as_dirname -- "$ac_file" ||
27064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27065 X"$ac_file" : 'X\(//\)[^/]' \| \
27066 X"$ac_file" : 'X\(//\)$' \| \
27067 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27068 $as_echo X"$ac_file" |
27069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27070 s//\1/
27071 q
27072 }
27073 /^X\(\/\/\)[^/].*/{
27074 s//\1/
27075 q
27076 }
27077 /^X\(\/\/\)$/{
27078 s//\1/
27079 q
27080 }
27081 /^X\(\/\).*/{
27082 s//\1/
27083 q
27084 }
27085 s/.*/./; q'`
27086 { as_dir="$ac_dir"
27087 case $as_dir in #(
27088 -*) as_dir=./$as_dir;;
27089 esac
27090 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27091 as_dirs=
27092 while :; do
27093 case $as_dir in #(
27094 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27095 *) as_qdir=$as_dir;;
27096 esac
27097 as_dirs="'$as_qdir' $as_dirs"
27098 as_dir=`$as_dirname -- "$as_dir" ||
27099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27100 X"$as_dir" : 'X\(//\)[^/]' \| \
27101 X"$as_dir" : 'X\(//\)$' \| \
27102 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27103 $as_echo X"$as_dir" |
27104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27105 s//\1/
27106 q
27107 }
27108 /^X\(\/\/\)[^/].*/{
27109 s//\1/
27110 q
27111 }
27112 /^X\(\/\/\)$/{
27113 s//\1/
27114 q
27115 }
27116 /^X\(\/\).*/{
27117 s//\1/
27118 q
27119 }
27120 s/.*/./; q'`
27121 test -d "$as_dir" && break
27122 done
27123 test -z "$as_dirs" || eval "mkdir $as_dirs"
27124 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27125 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27126 { (exit 1); exit 1; }; }; }
27127 ac_builddir=.
27128
27129 case "$ac_dir" in
27130 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27131 *)
27132 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27133 # A ".." for each directory in $ac_dir_suffix.
27134 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27135 case $ac_top_builddir_sub in
27136 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27137 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27138 esac ;;
27139 esac
27140 ac_abs_top_builddir=$ac_pwd
27141 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27142 # for backward compatibility:
27143 ac_top_builddir=$ac_top_build_prefix
27144
27145 case $srcdir in
27146 .) # We are building in place.
27147 ac_srcdir=.
27148 ac_top_srcdir=$ac_top_builddir_sub
27149 ac_abs_top_srcdir=$ac_pwd ;;
27150 [\\/]* | ?:[\\/]* ) # Absolute name.
27151 ac_srcdir=$srcdir$ac_dir_suffix;
27152 ac_top_srcdir=$srcdir
27153 ac_abs_top_srcdir=$srcdir ;;
27154 *) # Relative name.
27155 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27156 ac_top_srcdir=$ac_top_build_prefix$srcdir
27157 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27158 esac
27159 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27160
27161
27162 case $ac_mode in
27163 :F)
27164 #
27165 # CONFIG_FILE
27166 #
27167
27168 case $INSTALL in
27169 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27170 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27171 esac
27172 _ACEOF
27173
27174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27175 # If the template does not know about datarootdir, expand it.
27176 # FIXME: This hack should be removed a few years after 2.60.
27177 ac_datarootdir_hack=; ac_datarootdir_seen=
27178
27179 ac_sed_dataroot='
27180 /datarootdir/ {
27181 p
27182 q
27183 }
27184 /@datadir@/p
27185 /@docdir@/p
27186 /@infodir@/p
27187 /@localedir@/p
27188 /@mandir@/p
27189 '
27190 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27191 *datarootdir*) ac_datarootdir_seen=yes;;
27192 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27193 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27194 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27195 _ACEOF
27196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27197 ac_datarootdir_hack='
27198 s&@datadir@&$datadir&g
27199 s&@docdir@&$docdir&g
27200 s&@infodir@&$infodir&g
27201 s&@localedir@&$localedir&g
27202 s&@mandir@&$mandir&g
27203 s&\\\${datarootdir}&$datarootdir&g' ;;
27204 esac
27205 _ACEOF
27206
27207 # Neutralize VPATH when `$srcdir' = `.'.
27208 # Shell code in configure.ac might set extrasub.
27209 # FIXME: do we really want to maintain this feature?
27210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27211 ac_sed_extra="$ac_vpsub
27212 $extrasub
27213 _ACEOF
27214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27215 :t
27216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27217 s|@configure_input@|$ac_sed_conf_input|;t t
27218 s&@top_builddir@&$ac_top_builddir_sub&;t t
27219 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27220 s&@srcdir@&$ac_srcdir&;t t
27221 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27222 s&@top_srcdir@&$ac_top_srcdir&;t t
27223 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27224 s&@builddir@&$ac_builddir&;t t
27225 s&@abs_builddir@&$ac_abs_builddir&;t t
27226 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27227 s&@INSTALL@&$ac_INSTALL&;t t
27228 $ac_datarootdir_hack
27229 "
27230 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27231 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27232 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27233 { (exit 1); exit 1; }; }
27234
27235 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27236 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27237 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27238 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27239 which seems to be undefined. Please make sure it is defined." >&5
27240 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27241 which seems to be undefined. Please make sure it is defined." >&2;}
27242
27243 rm -f "$tmp/stdin"
27244 case $ac_file in
27245 -) cat "$tmp/out" && rm -f "$tmp/out";;
27246 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27247 esac \
27248 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27249 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27250 { (exit 1); exit 1; }; }
27251 ;;
27252 :H)
27253 #
27254 # CONFIG_HEADER
27255 #
27256 if test x"$ac_file" != x-; then
27257 {
27258 $as_echo "/* $configure_input */" \
27259 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27260 } >"$tmp/config.h" \
27261 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27262 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27263 { (exit 1); exit 1; }; }
27264 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27265 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27266 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27267 else
27268 rm -f "$ac_file"
27269 mv "$tmp/config.h" "$ac_file" \
27270 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27271 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27272 { (exit 1); exit 1; }; }
27273 fi
27274 else
27275 $as_echo "/* $configure_input */" \
27276 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27277 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27278 $as_echo "$as_me: error: could not create -" >&2;}
27279 { (exit 1); exit 1; }; }
27280 fi
27281 ;;
27282
27283 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27284 $as_echo "$as_me: executing $ac_file commands" >&6;}
27285 ;;
27286 esac
27287
27288
27289 case $ac_file$ac_mode in
27290 "default":C)
27291
27292 ### Make the necessary directories, if they don't exist.
27293 for dir in etc lisp ; do
27294 test -d ${dir} || mkdir ${dir}
27295 done
27296
27297 # Build src/Makefile from ${srcdir}/src/Makefile.c
27298 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27299 # This must be done after src/config.h is built, since we rely on that file.
27300
27301 echo creating src/epaths.h
27302 ${MAKE-make} epaths-force
27303
27304 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27305 # `..' to `. .' unless invoked with -traditional
27306
27307 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
27308 CPPFLAGS="$CPPFLAGS -traditional"
27309 fi
27310
27311 echo creating lib-src/Makefile
27312 ( cd lib-src
27313 rm -f junk.c junk1.c junk2.c
27314 sed -e '/start of cpp stuff/q' \
27315 < Makefile.c > junk1.c
27316 sed -e '1,/start of cpp stuff/d'\
27317 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27318 < Makefile.c > junk.c
27319 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27320 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27321 cat junk1.c junk2.c > Makefile.new
27322 rm -f junk.c junk1.c junk2.c
27323 chmod 444 Makefile.new
27324 mv -f Makefile.new Makefile
27325 )
27326
27327 echo creating src/Makefile
27328 ( cd src
27329 rm -f junk.c junk1.c junk2.c
27330 sed -e '/start of cpp stuff/q' \
27331 < Makefile.c > junk1.c
27332 sed -e '1,/start of cpp stuff/d'\
27333 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27334 < Makefile.c > junk.c
27335 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27336 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27337 cat junk1.c junk2.c > Makefile.new
27338 rm -f junk.c junk1.c junk2.c
27339 chmod 444 Makefile.new
27340 mv -f Makefile.new Makefile
27341 )
27342
27343 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
27344 echo creating src/.gdbinit
27345 echo source $srcdir/src/.gdbinit > src/.gdbinit
27346 fi
27347
27348 ;;
27349
27350 esac
27351 done # for ac_tag
27352
27353
27354 { (exit 0); exit 0; }
27355 _ACEOF
27356 chmod +x $CONFIG_STATUS
27357 ac_clean_files=$ac_clean_files_save
27358
27359 test $ac_write_fail = 0 ||
27360 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27361 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27362 { (exit 1); exit 1; }; }
27363
27364
27365 # configure is writing to config.log, and then calls config.status.
27366 # config.status does its own redirection, appending to config.log.
27367 # Unfortunately, on DOS this fails, as config.log is still kept open
27368 # by configure, so config.status won't be able to write to it; its
27369 # output is simply discarded. So we exec the FD to /dev/null,
27370 # effectively closing config.log, so it can be properly (re)opened and
27371 # appended to by config.status. When coming back to configure, we
27372 # need to make the FD available again.
27373 if test "$no_create" != yes; then
27374 ac_cs_success=:
27375 ac_config_status_args=
27376 test "$silent" = yes &&
27377 ac_config_status_args="$ac_config_status_args --quiet"
27378 exec 5>/dev/null
27379 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27380 exec 5>>config.log
27381 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27382 # would make configure fail if this is the last instruction.
27383 $ac_cs_success || { (exit 1); exit 1; }
27384 fi
27385 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27386 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27387 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
27388 fi
27389
27390