]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - configure
Fix "make docs" rule in Makefile for doc folder.
[thirdparty/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 E2FSPROGS_YEAR
654 E2FSPROGS_MONTH
655 E2FSPROGS_DAY
656 E2FSPROGS_VERSION
657 E2FSPROGS_PKGVER
658 build
659 build_cpu
660 build_vendor
661 build_os
662 host
663 host_cpu
664 host_vendor
665 host_os
666 CC
667 CFLAGS
668 LDFLAGS
669 CPPFLAGS
670 ac_ct_CC
671 EXEEXT
672 OBJEXT
673 CPP
674 LD
675 GREP
676 EGREP
677 LINUX_INCLUDE
678 MAINTAINER_CMT
679 HTREE_CMT
680 ELF_CMT
681 BSDLIB_CMT
682 PROFILE_CMT
683 CHECKER_CMT
684 LIB_EXT
685 STATIC_LIB_EXT
686 PROFILED_LIB_EXT
687 SWAPFS_CMT
688 DEBUGFS_CMT
689 IMAGER_CMT
690 RESIZER_CMT
691 FSCK_PROG
692 FSCK_MAN
693 E2INITRD_PROG
694 E2INITRD_MAN
695 PKG_CONFIG
696 DEVMAPPER_REQ
697 DEVMAPPER_PC_LIBS
698 DEVMAPPER_LIBS
699 STATIC_DEVMAPPER_LIBS
700 STATIC_BLKID_DEVMAPPER_LIBS
701 UUIDD_CMT
702 GETTEXT_PACKAGE
703 PACKAGE
704 VERSION
705 SET_MAKE
706 INSTALL_PROGRAM
707 INSTALL_SCRIPT
708 INSTALL_DATA
709 MKINSTALLDIRS
710 USE_NLS
711 MSGFMT
712 GMSGFMT
713 XGETTEXT
714 MSGMERGE
715 RANLIB
716 ALLOCA
717 GLIBC21
718 HAVE_POSIX_PRINTF
719 HAVE_ASPRINTF
720 HAVE_SNPRINTF
721 HAVE_WPRINTF
722 LIBICONV
723 LTLIBICONV
724 INTLBISON
725 BUILD_INCLUDED_LIBINTL
726 USE_INCLUDED_LIBINTL
727 CATOBJEXT
728 DATADIRNAME
729 INSTOBJEXT
730 GENCAT
731 INTLOBJS
732 INTL_LIBTOOL_SUFFIX_PREFIX
733 INTLLIBS
734 LIBINTL
735 LTLIBINTL
736 POSUB
737 BINARY_TYPE
738 LN
739 LN_S
740 MV
741 CP
742 RM
743 CHMOD
744 AWK
745 SED
746 PERL
747 LDCONFIG
748 AR
749 STRIP
750 MAKEINFO
751 BUILD_CC
752 SIZEOF_SHORT
753 SIZEOF_INT
754 SIZEOF_LONG
755 SIZEOF_LONG_LONG
756 SOCKET_LIB
757 DLOPEN_LIB
758 UNI_DIFF_OPTS
759 LINUX_CMT
760 CYGWIN_CMT
761 UNIX_CMT
762 root_prefix
763 root_bindir
764 root_sbindir
765 root_libdir
766 root_sysconfdir
767 LDFLAG_STATIC
768 SS_DIR
769 ET_DIR
770 DO_TEST_SUITE
771 INTL_FLAGS
772 BUILD_CFLAGS
773 BUILD_LDFLAGS
774 LIBOBJS
775 LTLIBOBJS'
776 ac_subst_files='MCONFIG
777 MAKEFILE_ELF
778 MAKEFILE_BSDLIB
779 MAKEFILE_PROFILE
780 MAKEFILE_CHECKER
781 MAKEFILE_LIBRARY
782 ASM_TYPES_HEADER'
783 ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CC
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 CPP
792 PKG_CONFIG'
793
794
795 # Initialize some variables set by options.
796 ac_init_help=
797 ac_init_version=false
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
814
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
840
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
851
852 case $ac_option in
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *) ac_optarg=yes ;;
855 esac
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
887
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
895 -disable-* | --disable-*)
896 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
899 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
900 { (exit 1); exit 1; }; }
901 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
902 eval enable_$ac_feature=no ;;
903
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
908
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
913
914 -enable-* | --enable-*)
915 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
918 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919 { (exit 1); exit 1; }; }
920 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
921 eval enable_$ac_feature=\$ac_optarg ;;
922
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
931
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
934 with_gas=yes ;;
935
936 -help | --help | --hel | --he | -h)
937 ac_init_help=long ;;
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
942
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
947
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949 ac_prev=htmldir ;;
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951 | --ht=*)
952 htmldir=$ac_optarg ;;
953
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
960
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
962 ac_prev=infodir ;;
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
965
966 -libdir | --libdir | --libdi | --libd)
967 ac_prev=libdir ;;
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
969 libdir=$ac_optarg ;;
970
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
977
978 -localedir | --localedir | --localedi | --localed | --locale)
979 ac_prev=localedir ;;
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
982
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
989
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991 ac_prev=mandir ;;
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993 mandir=$ac_optarg ;;
994
995 -nfp | --nfp | --nf)
996 # Obsolete; use --without-fp.
997 with_fp=no ;;
998
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1001 no_create=yes ;;
1002
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 no_recursion=yes ;;
1006
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1015
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017 ac_prev=prefix ;;
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1020
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1027
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1034
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1051
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053 ac_prev=pdfdir ;;
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1056
1057 -psdir | --psdir | --psdi | --psd | --ps)
1058 ac_prev=psdir ;;
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060 psdir=$ac_optarg ;;
1061
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 silent=yes ;;
1065
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067 ac_prev=sbindir ;;
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069 | --sbi=* | --sb=*)
1070 sbindir=$ac_optarg ;;
1071
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1075 | --sha | --sh)
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080 | --sha=* | --sh=*)
1081 sharedstatedir=$ac_optarg ;;
1082
1083 -site | --site | --sit)
1084 ac_prev=site ;;
1085 -site=* | --site=* | --sit=*)
1086 site=$ac_optarg ;;
1087
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089 ac_prev=srcdir ;;
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1092
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1099
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1104
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106 verbose=yes ;;
1107
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1110
1111 -with-* | --with-*)
1112 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 { echo "$as_me: error: invalid package name: $ac_package" >&2
1116 { (exit 1); exit 1; }; }
1117 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1118 eval with_$ac_package=\$ac_optarg ;;
1119
1120 -without-* | --without-*)
1121 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
1126 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1127 eval with_$ac_package=no ;;
1128
1129 --x)
1130 # Obsolete; use --with-x.
1131 with_x=yes ;;
1132
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1139
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1146
1147 -*) { echo "$as_me: error: unrecognized option: $ac_option
1148 Try \`$0 --help' for more information." >&2
1149 { (exit 1); exit 1; }; }
1150 ;;
1151
1152 *=*)
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157 { (exit 1); exit 1; }; }
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1160
1161 *)
1162 # FIXME: should be removed in autoconf 3.0.
1163 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167 ;;
1168
1169 esac
1170 done
1171
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 { echo "$as_me: error: missing argument to $ac_option" >&2
1175 { (exit 1); exit 1; }; }
1176 fi
1177
1178 # Be sure to have absolute directory names.
1179 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
1183 do
1184 eval ac_val=\$$ac_var
1185 case $ac_val in
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188 esac
1189 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1190 { (exit 1); exit 1; }; }
1191 done
1192
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1196 build=$build_alias
1197 host=$host_alias
1198 target=$target_alias
1199
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used." >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1207 cross_compiling=yes
1208 fi
1209 fi
1210
1211 ac_tool_prefix=
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213
1214 test "$silent" = yes && exec 6>/dev/null
1215
1216
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 { echo "$as_me: error: Working directory cannot be determined" >&2
1221 { (exit 1); exit 1; }; }
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 { echo "$as_me: error: pwd does not report name of working directory" >&2
1224 { (exit 1); exit 1; }; }
1225
1226
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$0" ||
1232 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$0" : 'X\(//\)[^/]' \| \
1234 X"$0" : 'X\(//\)$' \| \
1235 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1236 echo X"$0" |
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\/\)[^/].*/{
1242 s//\1/
1243 q
1244 }
1245 /^X\(\/\/\)$/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\).*/{
1250 s//\1/
1251 q
1252 }
1253 s/.*/./; q'`
1254 srcdir=$ac_confdir
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1256 srcdir=..
1257 fi
1258 else
1259 ac_srcdir_defaulted=no
1260 fi
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1264 { (exit 1); exit 1; }; }
1265 fi
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267 ac_abs_confdir=`(
1268 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1269 { (exit 1); exit 1; }; }
1270 pwd)`
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 srcdir=.
1274 fi
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1278 case $srcdir in
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 esac
1281 for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286 done
1287
1288 #
1289 # Report the --help message.
1290 #
1291 if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1294 cat <<_ACEOF
1295 \`configure' configures this package to adapt to many kinds of systems.
1296
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE. See below for descriptions of some of the useful variables.
1301
1302 Defaults for the options are specified in brackets.
1303
1304 Configuration:
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314
1315 Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 [PREFIX]
1320
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1325
1326 For better control, use the options below.
1327
1328 Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
1348 _ACEOF
1349
1350 cat <<\_ACEOF
1351
1352 System types:
1353 --build=BUILD configure for building on BUILD [guessed]
1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1355 _ACEOF
1356 fi
1357
1358 if test -n "$ac_init_help"; then
1359
1360 cat <<\_ACEOF
1361
1362 Optional Features:
1363 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1364 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1365 --enable-maintainer-mode enable makefile rules useful for maintainers
1366 --enable-compression enable EXPERIMENTAL compression support
1367 --enable-htree enable EXPERIMENTAL htree directory support
1368 --enable-elf-shlibs select ELF shared libraries
1369 --enable-bsd-shlibs select BSD shared libraries
1370 --enable-profile build profiling libraries
1371 --enable-checker build checker libraries
1372 --enable-jbd-debug enable journal debugging
1373 --enable-blkid-debug enable blkid debugging
1374 --enable-testio-debug enable the use of the test I/O manager for debugging
1375 --disable-swapfs disable support of legacy byte-swapped filesystems
1376 --disable-debugfs disable support of debugfs program
1377 --disable-imager disable support of e2image program
1378 --disable-resizer disable support of e2resize program
1379 --enable-fsck build fsck wrapper program
1380 --enable-e2initrd-helper build e2initrd-helper program
1381 --enable-blkid-devmapper build with device-mapper support
1382 --disable-tls disable use of thread local support
1383 --disable-uuidd disable building the uuid daemon
1384 --disable-nls do not use Native Language Support
1385 --disable-rpath do not hardcode runtime library paths
1386
1387 Optional Packages:
1388 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1389 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1390 --with-diet-libc use diet libc
1391 --with-cc=COMPILER select compiler to use
1392 --with-linker=LINKER select linker to use
1393 --with-ccopts=CCOPTS select compiler command line options
1394 --with-ldopts=LDOPTS select linker command line options
1395 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1396 --with-gnu-ld assume the C compiler uses GNU ld default=no
1397 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1398 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1399 --with-included-gettext use the GNU gettext library included here
1400 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1401 --without-libintl-prefix don't search for libintl in includedir and libdir
1402
1403 Some influential environment variables:
1404 CC C compiler command
1405 CFLAGS C compiler flags
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1407 nonstandard directory <lib dir>
1408 LIBS libraries to pass to the linker, e.g. -l<library>
1409 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1410 you have headers in a nonstandard directory <include dir>
1411 CPP C preprocessor
1412 PKG_CONFIG path to pkg-config utility
1413
1414 Use these variables to override the choices made by `configure' or to help
1415 it to find libraries and programs with nonstandard names/locations.
1416
1417 _ACEOF
1418 ac_status=$?
1419 fi
1420
1421 if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
1423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1424 test -d "$ac_dir" || continue
1425 ac_builddir=.
1426
1427 case "$ac_dir" in
1428 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 *)
1430 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1431 # A ".." for each directory in $ac_dir_suffix.
1432 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1433 case $ac_top_builddir_sub in
1434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436 esac ;;
1437 esac
1438 ac_abs_top_builddir=$ac_pwd
1439 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1440 # for backward compatibility:
1441 ac_top_builddir=$ac_top_build_prefix
1442
1443 case $srcdir in
1444 .) # We are building in place.
1445 ac_srcdir=.
1446 ac_top_srcdir=$ac_top_builddir_sub
1447 ac_abs_top_srcdir=$ac_pwd ;;
1448 [\\/]* | ?:[\\/]* ) # Absolute name.
1449 ac_srcdir=$srcdir$ac_dir_suffix;
1450 ac_top_srcdir=$srcdir
1451 ac_abs_top_srcdir=$srcdir ;;
1452 *) # Relative name.
1453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1454 ac_top_srcdir=$ac_top_build_prefix$srcdir
1455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1456 esac
1457 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1458
1459 cd "$ac_dir" || { ac_status=$?; continue; }
1460 # Check for guested configure.
1461 if test -f "$ac_srcdir/configure.gnu"; then
1462 echo &&
1463 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1464 elif test -f "$ac_srcdir/configure"; then
1465 echo &&
1466 $SHELL "$ac_srcdir/configure" --help=recursive
1467 else
1468 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1469 fi || ac_status=$?
1470 cd "$ac_pwd" || { ac_status=$?; break; }
1471 done
1472 fi
1473
1474 test -n "$ac_init_help" && exit $ac_status
1475 if $ac_init_version; then
1476 cat <<\_ACEOF
1477 configure
1478 generated by GNU Autoconf 2.61
1479
1480 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1481 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1482 This configure script is free software; the Free Software Foundation
1483 gives unlimited permission to copy, distribute and modify it.
1484 _ACEOF
1485 exit
1486 fi
1487 cat >config.log <<_ACEOF
1488 This file contains any messages produced by compilers while
1489 running configure, to aid debugging if configure makes a mistake.
1490
1491 It was created by $as_me, which was
1492 generated by GNU Autoconf 2.61. Invocation command line was
1493
1494 $ $0 $@
1495
1496 _ACEOF
1497 exec 5>>config.log
1498 {
1499 cat <<_ASUNAME
1500 ## --------- ##
1501 ## Platform. ##
1502 ## --------- ##
1503
1504 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1505 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1506 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1507 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1508 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1509
1510 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1511 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1512
1513 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1514 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1515 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1516 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1517 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1518 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1519 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1520
1521 _ASUNAME
1522
1523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 for as_dir in $PATH
1525 do
1526 IFS=$as_save_IFS
1527 test -z "$as_dir" && as_dir=.
1528 echo "PATH: $as_dir"
1529 done
1530 IFS=$as_save_IFS
1531
1532 } >&5
1533
1534 cat >&5 <<_ACEOF
1535
1536
1537 ## ----------- ##
1538 ## Core tests. ##
1539 ## ----------- ##
1540
1541 _ACEOF
1542
1543
1544 # Keep a trace of the command line.
1545 # Strip out --no-create and --no-recursion so they do not pile up.
1546 # Strip out --silent because we don't want to record it for future runs.
1547 # Also quote any args containing shell meta-characters.
1548 # Make two passes to allow for proper duplicate-argument suppression.
1549 ac_configure_args=
1550 ac_configure_args0=
1551 ac_configure_args1=
1552 ac_must_keep_next=false
1553 for ac_pass in 1 2
1554 do
1555 for ac_arg
1556 do
1557 case $ac_arg in
1558 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1559 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1560 | -silent | --silent | --silen | --sile | --sil)
1561 continue ;;
1562 *\'*)
1563 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1564 esac
1565 case $ac_pass in
1566 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1567 2)
1568 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1569 if test $ac_must_keep_next = true; then
1570 ac_must_keep_next=false # Got value, back to normal.
1571 else
1572 case $ac_arg in
1573 *=* | --config-cache | -C | -disable-* | --disable-* \
1574 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1575 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1576 | -with-* | --with-* | -without-* | --without-* | --x)
1577 case "$ac_configure_args0 " in
1578 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1579 esac
1580 ;;
1581 -* ) ac_must_keep_next=true ;;
1582 esac
1583 fi
1584 ac_configure_args="$ac_configure_args '$ac_arg'"
1585 ;;
1586 esac
1587 done
1588 done
1589 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1590 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1591
1592 # When interrupted or exit'd, cleanup temporary files, and complete
1593 # config.log. We remove comments because anyway the quotes in there
1594 # would cause problems or look ugly.
1595 # WARNING: Use '\'' to represent an apostrophe within the trap.
1596 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1597 trap 'exit_status=$?
1598 # Save into config.log some information that might help in debugging.
1599 {
1600 echo
1601
1602 cat <<\_ASBOX
1603 ## ---------------- ##
1604 ## Cache variables. ##
1605 ## ---------------- ##
1606 _ASBOX
1607 echo
1608 # The following way of writing the cache mishandles newlines in values,
1609 (
1610 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1611 eval ac_val=\$$ac_var
1612 case $ac_val in #(
1613 *${as_nl}*)
1614 case $ac_var in #(
1615 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1616 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1617 esac
1618 case $ac_var in #(
1619 _ | IFS | as_nl) ;; #(
1620 *) $as_unset $ac_var ;;
1621 esac ;;
1622 esac
1623 done
1624 (set) 2>&1 |
1625 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1626 *${as_nl}ac_space=\ *)
1627 sed -n \
1628 "s/'\''/'\''\\\\'\'''\''/g;
1629 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1630 ;; #(
1631 *)
1632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1633 ;;
1634 esac |
1635 sort
1636 )
1637 echo
1638
1639 cat <<\_ASBOX
1640 ## ----------------- ##
1641 ## Output variables. ##
1642 ## ----------------- ##
1643 _ASBOX
1644 echo
1645 for ac_var in $ac_subst_vars
1646 do
1647 eval ac_val=\$$ac_var
1648 case $ac_val in
1649 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1650 esac
1651 echo "$ac_var='\''$ac_val'\''"
1652 done | sort
1653 echo
1654
1655 if test -n "$ac_subst_files"; then
1656 cat <<\_ASBOX
1657 ## ------------------- ##
1658 ## File substitutions. ##
1659 ## ------------------- ##
1660 _ASBOX
1661 echo
1662 for ac_var in $ac_subst_files
1663 do
1664 eval ac_val=\$$ac_var
1665 case $ac_val in
1666 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1667 esac
1668 echo "$ac_var='\''$ac_val'\''"
1669 done | sort
1670 echo
1671 fi
1672
1673 if test -s confdefs.h; then
1674 cat <<\_ASBOX
1675 ## ----------- ##
1676 ## confdefs.h. ##
1677 ## ----------- ##
1678 _ASBOX
1679 echo
1680 cat confdefs.h
1681 echo
1682 fi
1683 test "$ac_signal" != 0 &&
1684 echo "$as_me: caught signal $ac_signal"
1685 echo "$as_me: exit $exit_status"
1686 } >&5
1687 rm -f core *.core core.conftest.* &&
1688 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1689 exit $exit_status
1690 ' 0
1691 for ac_signal in 1 2 13 15; do
1692 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1693 done
1694 ac_signal=0
1695
1696 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1697 rm -f -r conftest* confdefs.h
1698
1699 # Predefined preprocessor variables.
1700
1701 cat >>confdefs.h <<_ACEOF
1702 #define PACKAGE_NAME "$PACKAGE_NAME"
1703 _ACEOF
1704
1705
1706 cat >>confdefs.h <<_ACEOF
1707 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1708 _ACEOF
1709
1710
1711 cat >>confdefs.h <<_ACEOF
1712 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1713 _ACEOF
1714
1715
1716 cat >>confdefs.h <<_ACEOF
1717 #define PACKAGE_STRING "$PACKAGE_STRING"
1718 _ACEOF
1719
1720
1721 cat >>confdefs.h <<_ACEOF
1722 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1723 _ACEOF
1724
1725
1726 # Let the site file select an alternate cache file if it wants to.
1727 # Prefer explicitly selected file to automatically selected ones.
1728 if test -n "$CONFIG_SITE"; then
1729 set x "$CONFIG_SITE"
1730 elif test "x$prefix" != xNONE; then
1731 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1732 else
1733 set x "$ac_default_prefix/share/config.site" \
1734 "$ac_default_prefix/etc/config.site"
1735 fi
1736 shift
1737 for ac_site_file
1738 do
1739 if test -r "$ac_site_file"; then
1740 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1741 echo "$as_me: loading site script $ac_site_file" >&6;}
1742 sed 's/^/| /' "$ac_site_file" >&5
1743 . "$ac_site_file"
1744 fi
1745 done
1746
1747 if test -r "$cache_file"; then
1748 # Some versions of bash will fail to source /dev/null (special
1749 # files actually), so we avoid doing that.
1750 if test -f "$cache_file"; then
1751 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1752 echo "$as_me: loading cache $cache_file" >&6;}
1753 case $cache_file in
1754 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1755 *) . "./$cache_file";;
1756 esac
1757 fi
1758 else
1759 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1760 echo "$as_me: creating cache $cache_file" >&6;}
1761 >$cache_file
1762 fi
1763
1764 # Check that the precious variables saved in the cache have kept the same
1765 # value.
1766 ac_cache_corrupted=false
1767 for ac_var in $ac_precious_vars; do
1768 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1769 eval ac_new_set=\$ac_env_${ac_var}_set
1770 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1771 eval ac_new_val=\$ac_env_${ac_var}_value
1772 case $ac_old_set,$ac_new_set in
1773 set,)
1774 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1775 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1776 ac_cache_corrupted=: ;;
1777 ,set)
1778 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1779 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1780 ac_cache_corrupted=: ;;
1781 ,);;
1782 *)
1783 if test "x$ac_old_val" != "x$ac_new_val"; then
1784 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1785 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1786 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1787 echo "$as_me: former value: $ac_old_val" >&2;}
1788 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1789 echo "$as_me: current value: $ac_new_val" >&2;}
1790 ac_cache_corrupted=:
1791 fi;;
1792 esac
1793 # Pass precious variables to config.status.
1794 if test "$ac_new_set" = set; then
1795 case $ac_new_val in
1796 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1797 *) ac_arg=$ac_var=$ac_new_val ;;
1798 esac
1799 case " $ac_configure_args " in
1800 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1801 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1802 esac
1803 fi
1804 done
1805 if $ac_cache_corrupted; then
1806 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1807 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1808 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1809 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1810 { (exit 1); exit 1; }; }
1811 fi
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829 ac_ext=c
1830 ac_cpp='$CPP $CPPFLAGS'
1831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1834
1835
1836
1837 ac_aux_dir=
1838 for ac_dir in config "$srcdir"/config; do
1839 if test -f "$ac_dir/install-sh"; then
1840 ac_aux_dir=$ac_dir
1841 ac_install_sh="$ac_aux_dir/install-sh -c"
1842 break
1843 elif test -f "$ac_dir/install.sh"; then
1844 ac_aux_dir=$ac_dir
1845 ac_install_sh="$ac_aux_dir/install.sh -c"
1846 break
1847 elif test -f "$ac_dir/shtool"; then
1848 ac_aux_dir=$ac_dir
1849 ac_install_sh="$ac_aux_dir/shtool install -c"
1850 break
1851 fi
1852 done
1853 if test -z "$ac_aux_dir"; then
1854 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1855 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1856 { (exit 1); exit 1; }; }
1857 fi
1858
1859 # These three variables are undocumented and unsupported,
1860 # and are intended to be withdrawn in a future Autoconf release.
1861 # They can cause serious problems if a builder's source tree is in a directory
1862 # whose full name contains unusual characters.
1863 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1864 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1865 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1866
1867
1868 MCONFIG=./MCONFIG
1869
1870 BINARY_TYPE=bin
1871 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1872 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1873 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1874 | tr \" " "`
1875 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1876 MONTH=`echo $DATE | awk -F- '{print $2}'`
1877 YEAR=`echo $DATE | awk -F- '{print $3}'`
1878
1879 if expr $YEAR ">" 1900 > /dev/null ; then
1880 E2FSPROGS_YEAR=$YEAR
1881 elif expr $YEAR ">" 90 >/dev/null ; then
1882 E2FSPROGS_YEAR=19$YEAR
1883 else
1884 E2FSPROGS_YEAR=20$YEAR
1885 fi
1886
1887 case $MONTH in
1888 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1889 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1890 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1891 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1892 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1893 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1894 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1895 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1896 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1897 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1898 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1899 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1900 *) echo "Unknown month $MONTH??" ;;
1901 esac
1902
1903 base_ver=`echo $E2FSPROGS_VERSION | \
1904 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1905
1906 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1907
1908 case $E2FSPROGS_VERSION in
1909 *-WIP|pre-*)
1910 pre_vers=`echo $base_ver 0.01 - p | dc`
1911 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1912 ;;
1913 *)
1914 E2FSPROGS_PKGVER="$base_ver"
1915 ;;
1916 esac
1917
1918 unset DATE MONTH YEAR base_ver pre_vers date_spec
1919 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1920 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1921
1922
1923
1924
1925
1926 # Make sure we can run config.sub.
1927 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1928 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1929 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1930 { (exit 1); exit 1; }; }
1931
1932 { echo "$as_me:$LINENO: checking build system type" >&5
1933 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1934 if test "${ac_cv_build+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937 ac_build_alias=$build_alias
1938 test "x$ac_build_alias" = x &&
1939 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1940 test "x$ac_build_alias" = x &&
1941 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1942 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1943 { (exit 1); exit 1; }; }
1944 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1945 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1946 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1947 { (exit 1); exit 1; }; }
1948
1949 fi
1950 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1951 echo "${ECHO_T}$ac_cv_build" >&6; }
1952 case $ac_cv_build in
1953 *-*-*) ;;
1954 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1955 echo "$as_me: error: invalid value of canonical build" >&2;}
1956 { (exit 1); exit 1; }; };;
1957 esac
1958 build=$ac_cv_build
1959 ac_save_IFS=$IFS; IFS='-'
1960 set x $ac_cv_build
1961 shift
1962 build_cpu=$1
1963 build_vendor=$2
1964 shift; shift
1965 # Remember, the first character of IFS is used to create $*,
1966 # except with old shells:
1967 build_os=$*
1968 IFS=$ac_save_IFS
1969 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1970
1971
1972 { echo "$as_me:$LINENO: checking host system type" >&5
1973 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1974 if test "${ac_cv_host+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977 if test "x$host_alias" = x; then
1978 ac_cv_host=$ac_cv_build
1979 else
1980 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1981 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1982 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1983 { (exit 1); exit 1; }; }
1984 fi
1985
1986 fi
1987 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1988 echo "${ECHO_T}$ac_cv_host" >&6; }
1989 case $ac_cv_host in
1990 *-*-*) ;;
1991 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1992 echo "$as_me: error: invalid value of canonical host" >&2;}
1993 { (exit 1); exit 1; }; };;
1994 esac
1995 host=$ac_cv_host
1996 ac_save_IFS=$IFS; IFS='-'
1997 set x $ac_cv_host
1998 shift
1999 host_cpu=$1
2000 host_vendor=$2
2001 shift; shift
2002 # Remember, the first character of IFS is used to create $*,
2003 # except with old shells:
2004 host_os=$*
2005 IFS=$ac_save_IFS
2006 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2007
2008
2009
2010 # Check whether --with-diet-libc was given.
2011 if test "${with_diet_libc+set}" = set; then
2012 withval=$with_diet_libc; CC="diet cc -nostdinc"
2013 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2014 echo "${ECHO_T}CC=$CC" >&6; }
2015 fi
2016
2017 # Check whether --with-cc was given.
2018 if test "${with_cc+set}" = set; then
2019 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2020 echo "${ECHO_T}CC=$withval" >&6; }
2021 CC=$withval
2022 else
2023 if test -z "$CC" ; then CC=cc; fi
2024 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2025 echo "${ECHO_T}CC defaults to $CC" >&6; }
2026 fi
2027 export CC
2028
2029 ac_ext=c
2030 ac_cpp='$CPP $CPPFLAGS'
2031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2034 if test -n "$ac_tool_prefix"; then
2035 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2036 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2039 if test "${ac_cv_prog_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042 if test -n "$CC"; then
2043 ac_cv_prog_CC="$CC" # Let the user override the test.
2044 else
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2047 do
2048 IFS=$as_save_IFS
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 break 2
2055 fi
2056 done
2057 done
2058 IFS=$as_save_IFS
2059
2060 fi
2061 fi
2062 CC=$ac_cv_prog_CC
2063 if test -n "$CC"; then
2064 { echo "$as_me:$LINENO: result: $CC" >&5
2065 echo "${ECHO_T}$CC" >&6; }
2066 else
2067 { echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6; }
2069 fi
2070
2071
2072 fi
2073 if test -z "$ac_cv_prog_CC"; then
2074 ac_ct_CC=$CC
2075 # Extract the first word of "gcc", so it can be a program name with args.
2076 set dummy gcc; ac_word=$2
2077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2079 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082 if test -n "$ac_ct_CC"; then
2083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2084 else
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2087 do
2088 IFS=$as_save_IFS
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2092 ac_cv_prog_ac_ct_CC="gcc"
2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 break 2
2095 fi
2096 done
2097 done
2098 IFS=$as_save_IFS
2099
2100 fi
2101 fi
2102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2103 if test -n "$ac_ct_CC"; then
2104 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2105 echo "${ECHO_T}$ac_ct_CC" >&6; }
2106 else
2107 { echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6; }
2109 fi
2110
2111 if test "x$ac_ct_CC" = x; then
2112 CC=""
2113 else
2114 case $cross_compiling:$ac_tool_warned in
2115 yes:)
2116 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2117 whose name does not start with the host triplet. If you think this
2118 configuration is useful to you, please write to autoconf@gnu.org." >&5
2119 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2120 whose name does not start with the host triplet. If you think this
2121 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2122 ac_tool_warned=yes ;;
2123 esac
2124 CC=$ac_ct_CC
2125 fi
2126 else
2127 CC="$ac_cv_prog_CC"
2128 fi
2129
2130 if test -z "$CC"; then
2131 if test -n "$ac_tool_prefix"; then
2132 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2133 set dummy ${ac_tool_prefix}cc; ac_word=$2
2134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2136 if test "${ac_cv_prog_CC+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 else
2139 if test -n "$CC"; then
2140 ac_cv_prog_CC="$CC" # Let the user override the test.
2141 else
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 for as_dir in $PATH
2144 do
2145 IFS=$as_save_IFS
2146 test -z "$as_dir" && as_dir=.
2147 for ac_exec_ext in '' $ac_executable_extensions; do
2148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2149 ac_cv_prog_CC="${ac_tool_prefix}cc"
2150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151 break 2
2152 fi
2153 done
2154 done
2155 IFS=$as_save_IFS
2156
2157 fi
2158 fi
2159 CC=$ac_cv_prog_CC
2160 if test -n "$CC"; then
2161 { echo "$as_me:$LINENO: result: $CC" >&5
2162 echo "${ECHO_T}$CC" >&6; }
2163 else
2164 { echo "$as_me:$LINENO: result: no" >&5
2165 echo "${ECHO_T}no" >&6; }
2166 fi
2167
2168
2169 fi
2170 fi
2171 if test -z "$CC"; then
2172 # Extract the first word of "cc", so it can be a program name with args.
2173 set dummy cc; ac_word=$2
2174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2176 if test "${ac_cv_prog_CC+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179 if test -n "$CC"; then
2180 ac_cv_prog_CC="$CC" # Let the user override the test.
2181 else
2182 ac_prog_rejected=no
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 for as_dir in $PATH
2185 do
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
2189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2190 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2191 ac_prog_rejected=yes
2192 continue
2193 fi
2194 ac_cv_prog_CC="cc"
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 break 2
2197 fi
2198 done
2199 done
2200 IFS=$as_save_IFS
2201
2202 if test $ac_prog_rejected = yes; then
2203 # We found a bogon in the path, so make sure we never use it.
2204 set dummy $ac_cv_prog_CC
2205 shift
2206 if test $# != 0; then
2207 # We chose a different compiler from the bogus one.
2208 # However, it has the same basename, so the bogon will be chosen
2209 # first if we set CC to just the basename; use the full file name.
2210 shift
2211 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2212 fi
2213 fi
2214 fi
2215 fi
2216 CC=$ac_cv_prog_CC
2217 if test -n "$CC"; then
2218 { echo "$as_me:$LINENO: result: $CC" >&5
2219 echo "${ECHO_T}$CC" >&6; }
2220 else
2221 { echo "$as_me:$LINENO: result: no" >&5
2222 echo "${ECHO_T}no" >&6; }
2223 fi
2224
2225
2226 fi
2227 if test -z "$CC"; then
2228 if test -n "$ac_tool_prefix"; then
2229 for ac_prog in cl.exe
2230 do
2231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2232 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2235 if test "${ac_cv_prog_CC+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238 if test -n "$CC"; then
2239 ac_cv_prog_CC="$CC" # Let the user override the test.
2240 else
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH
2243 do
2244 IFS=$as_save_IFS
2245 test -z "$as_dir" && as_dir=.
2246 for ac_exec_ext in '' $ac_executable_extensions; do
2247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2248 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 break 2
2251 fi
2252 done
2253 done
2254 IFS=$as_save_IFS
2255
2256 fi
2257 fi
2258 CC=$ac_cv_prog_CC
2259 if test -n "$CC"; then
2260 { echo "$as_me:$LINENO: result: $CC" >&5
2261 echo "${ECHO_T}$CC" >&6; }
2262 else
2263 { echo "$as_me:$LINENO: result: no" >&5
2264 echo "${ECHO_T}no" >&6; }
2265 fi
2266
2267
2268 test -n "$CC" && break
2269 done
2270 fi
2271 if test -z "$CC"; then
2272 ac_ct_CC=$CC
2273 for ac_prog in cl.exe
2274 do
2275 # Extract the first word of "$ac_prog", so it can be a program name with args.
2276 set dummy $ac_prog; ac_word=$2
2277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2279 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282 if test -n "$ac_ct_CC"; then
2283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2284 else
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2287 do
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292 ac_cv_prog_ac_ct_CC="$ac_prog"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 break 2
2295 fi
2296 done
2297 done
2298 IFS=$as_save_IFS
2299
2300 fi
2301 fi
2302 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2303 if test -n "$ac_ct_CC"; then
2304 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2305 echo "${ECHO_T}$ac_ct_CC" >&6; }
2306 else
2307 { echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6; }
2309 fi
2310
2311
2312 test -n "$ac_ct_CC" && break
2313 done
2314
2315 if test "x$ac_ct_CC" = x; then
2316 CC=""
2317 else
2318 case $cross_compiling:$ac_tool_warned in
2319 yes:)
2320 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2321 whose name does not start with the host triplet. If you think this
2322 configuration is useful to you, please write to autoconf@gnu.org." >&5
2323 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2324 whose name does not start with the host triplet. If you think this
2325 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2326 ac_tool_warned=yes ;;
2327 esac
2328 CC=$ac_ct_CC
2329 fi
2330 fi
2331
2332 fi
2333
2334
2335 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: no acceptable C compiler found in \$PATH
2338 See \`config.log' for more details." >&2;}
2339 { (exit 1); exit 1; }; }
2340
2341 # Provide some information about the compiler.
2342 echo "$as_me:$LINENO: checking for C compiler version" >&5
2343 ac_compiler=`set X $ac_compile; echo $2`
2344 { (ac_try="$ac_compiler --version >&5"
2345 case "(($ac_try" in
2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2348 esac
2349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2350 (eval "$ac_compiler --version >&5") 2>&5
2351 ac_status=$?
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }
2354 { (ac_try="$ac_compiler -v >&5"
2355 case "(($ac_try" in
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2358 esac
2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360 (eval "$ac_compiler -v >&5") 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }
2364 { (ac_try="$ac_compiler -V >&5"
2365 case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368 esac
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_compiler -V >&5") 2>&5
2371 ac_status=$?
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }
2374
2375 cat >conftest.$ac_ext <<_ACEOF
2376 /* confdefs.h. */
2377 _ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2381
2382 int
2383 main ()
2384 {
2385
2386 ;
2387 return 0;
2388 }
2389 _ACEOF
2390 ac_clean_files_save=$ac_clean_files
2391 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2392 # Try to create an executable without -o first, disregard a.out.
2393 # It will help us diagnose broken compilers, and finding out an intuition
2394 # of exeext.
2395 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2396 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2397 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2398 #
2399 # List of possible output files, starting from the most likely.
2400 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2401 # only as a last resort. b.out is created by i960 compilers.
2402 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2403 #
2404 # The IRIX 6 linker writes into existing files which may not be
2405 # executable, retaining their permissions. Remove them first so a
2406 # subsequent execution test works.
2407 ac_rmfiles=
2408 for ac_file in $ac_files
2409 do
2410 case $ac_file in
2411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2412 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2413 esac
2414 done
2415 rm -f $ac_rmfiles
2416
2417 if { (ac_try="$ac_link_default"
2418 case "(($ac_try" in
2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 *) ac_try_echo=$ac_try;;
2421 esac
2422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423 (eval "$ac_link_default") 2>&5
2424 ac_status=$?
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; then
2427 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2428 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2429 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2430 # so that the user can short-circuit this test for compilers unknown to
2431 # Autoconf.
2432 for ac_file in $ac_files ''
2433 do
2434 test -f "$ac_file" || continue
2435 case $ac_file in
2436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2437 ;;
2438 [ab].out )
2439 # We found the default executable, but exeext='' is most
2440 # certainly right.
2441 break;;
2442 *.* )
2443 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2444 then :; else
2445 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2446 fi
2447 # We set ac_cv_exeext here because the later test for it is not
2448 # safe: cross compilers may not add the suffix if given an `-o'
2449 # argument, so we may need to know it at that point already.
2450 # Even if this section looks crufty: it has the advantage of
2451 # actually working.
2452 break;;
2453 * )
2454 break;;
2455 esac
2456 done
2457 test "$ac_cv_exeext" = no && ac_cv_exeext=
2458
2459 else
2460 ac_file=''
2461 fi
2462
2463 { echo "$as_me:$LINENO: result: $ac_file" >&5
2464 echo "${ECHO_T}$ac_file" >&6; }
2465 if test -z "$ac_file"; then
2466 echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2468
2469 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2470 See \`config.log' for more details." >&5
2471 echo "$as_me: error: C compiler cannot create executables
2472 See \`config.log' for more details." >&2;}
2473 { (exit 77); exit 77; }; }
2474 fi
2475
2476 ac_exeext=$ac_cv_exeext
2477
2478 # Check that the compiler produces executables we can run. If not, either
2479 # the compiler is broken, or we cross compile.
2480 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2481 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2482 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2483 # If not cross compiling, check that we can run a simple program.
2484 if test "$cross_compiling" != yes; then
2485 if { ac_try='./$ac_file'
2486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489 esac
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
2492 ac_status=$?
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2495 cross_compiling=no
2496 else
2497 if test "$cross_compiling" = maybe; then
2498 cross_compiling=yes
2499 else
2500 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2501 If you meant to cross compile, use \`--host'.
2502 See \`config.log' for more details." >&5
2503 echo "$as_me: error: cannot run C compiled programs.
2504 If you meant to cross compile, use \`--host'.
2505 See \`config.log' for more details." >&2;}
2506 { (exit 1); exit 1; }; }
2507 fi
2508 fi
2509 fi
2510 { echo "$as_me:$LINENO: result: yes" >&5
2511 echo "${ECHO_T}yes" >&6; }
2512
2513 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2514 ac_clean_files=$ac_clean_files_save
2515 # Check that the compiler produces executables we can run. If not, either
2516 # the compiler is broken, or we cross compile.
2517 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2518 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2519 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2520 echo "${ECHO_T}$cross_compiling" >&6; }
2521
2522 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2523 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2524 if { (ac_try="$ac_link"
2525 case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528 esac
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_link") 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; then
2534 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2535 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2536 # work properly (i.e., refer to `conftest.exe'), while it won't with
2537 # `rm'.
2538 for ac_file in conftest.exe conftest conftest.*; do
2539 test -f "$ac_file" || continue
2540 case $ac_file in
2541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2542 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2543 break;;
2544 * ) break;;
2545 esac
2546 done
2547 else
2548 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2549 See \`config.log' for more details." >&5
2550 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2551 See \`config.log' for more details." >&2;}
2552 { (exit 1); exit 1; }; }
2553 fi
2554
2555 rm -f conftest$ac_cv_exeext
2556 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2557 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2558
2559 rm -f conftest.$ac_ext
2560 EXEEXT=$ac_cv_exeext
2561 ac_exeext=$EXEEXT
2562 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2563 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2564 if test "${ac_cv_objext+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567 cat >conftest.$ac_ext <<_ACEOF
2568 /* confdefs.h. */
2569 _ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h. */
2573
2574 int
2575 main ()
2576 {
2577
2578 ;
2579 return 0;
2580 }
2581 _ACEOF
2582 rm -f conftest.o conftest.obj
2583 if { (ac_try="$ac_compile"
2584 case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2587 esac
2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_compile") 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; then
2593 for ac_file in conftest.o conftest.obj conftest.*; do
2594 test -f "$ac_file" || continue;
2595 case $ac_file in
2596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2597 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2598 break;;
2599 esac
2600 done
2601 else
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2606 See \`config.log' for more details." >&5
2607 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2608 See \`config.log' for more details." >&2;}
2609 { (exit 1); exit 1; }; }
2610 fi
2611
2612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2613 fi
2614 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2615 echo "${ECHO_T}$ac_cv_objext" >&6; }
2616 OBJEXT=$ac_cv_objext
2617 ac_objext=$OBJEXT
2618 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2619 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2620 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623 cat >conftest.$ac_ext <<_ACEOF
2624 /* confdefs.h. */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2629
2630 int
2631 main ()
2632 {
2633 #ifndef __GNUC__
2634 choke me
2635 #endif
2636
2637 ;
2638 return 0;
2639 }
2640 _ACEOF
2641 rm -f conftest.$ac_objext
2642 if { (ac_try="$ac_compile"
2643 case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2646 esac
2647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compile") 2>conftest.er1
2649 ac_status=$?
2650 grep -v '^ *+' conftest.er1 >conftest.err
2651 rm -f conftest.er1
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } && {
2655 test -z "$ac_c_werror_flag" ||
2656 test ! -s conftest.err
2657 } && test -s conftest.$ac_objext; then
2658 ac_compiler_gnu=yes
2659 else
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2662
2663 ac_compiler_gnu=no
2664 fi
2665
2666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2668
2669 fi
2670 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2671 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2672 GCC=`test $ac_compiler_gnu = yes && echo yes`
2673 ac_test_CFLAGS=${CFLAGS+set}
2674 ac_save_CFLAGS=$CFLAGS
2675 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2676 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2677 if test "${ac_cv_prog_cc_g+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680 ac_save_c_werror_flag=$ac_c_werror_flag
2681 ac_c_werror_flag=yes
2682 ac_cv_prog_cc_g=no
2683 CFLAGS="-g"
2684 cat >conftest.$ac_ext <<_ACEOF
2685 /* confdefs.h. */
2686 _ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h. */
2690
2691 int
2692 main ()
2693 {
2694
2695 ;
2696 return 0;
2697 }
2698 _ACEOF
2699 rm -f conftest.$ac_objext
2700 if { (ac_try="$ac_compile"
2701 case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2704 esac
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compile") 2>conftest.er1
2707 ac_status=$?
2708 grep -v '^ *+' conftest.er1 >conftest.err
2709 rm -f conftest.er1
2710 cat conftest.err >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); } && {
2713 test -z "$ac_c_werror_flag" ||
2714 test ! -s conftest.err
2715 } && test -s conftest.$ac_objext; then
2716 ac_cv_prog_cc_g=yes
2717 else
2718 echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2720
2721 CFLAGS=""
2722 cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h. */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2728
2729 int
2730 main ()
2731 {
2732
2733 ;
2734 return 0;
2735 }
2736 _ACEOF
2737 rm -f conftest.$ac_objext
2738 if { (ac_try="$ac_compile"
2739 case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742 esac
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compile") 2>conftest.er1
2745 ac_status=$?
2746 grep -v '^ *+' conftest.er1 >conftest.err
2747 rm -f conftest.er1
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } && {
2751 test -z "$ac_c_werror_flag" ||
2752 test ! -s conftest.err
2753 } && test -s conftest.$ac_objext; then
2754 :
2755 else
2756 echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2758
2759 ac_c_werror_flag=$ac_save_c_werror_flag
2760 CFLAGS="-g"
2761 cat >conftest.$ac_ext <<_ACEOF
2762 /* confdefs.h. */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2767
2768 int
2769 main ()
2770 {
2771
2772 ;
2773 return 0;
2774 }
2775 _ACEOF
2776 rm -f conftest.$ac_objext
2777 if { (ac_try="$ac_compile"
2778 case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781 esac
2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_compile") 2>conftest.er1
2784 ac_status=$?
2785 grep -v '^ *+' conftest.er1 >conftest.err
2786 rm -f conftest.er1
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } && {
2790 test -z "$ac_c_werror_flag" ||
2791 test ! -s conftest.err
2792 } && test -s conftest.$ac_objext; then
2793 ac_cv_prog_cc_g=yes
2794 else
2795 echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2797
2798
2799 fi
2800
2801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 fi
2803
2804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805 fi
2806
2807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 ac_c_werror_flag=$ac_save_c_werror_flag
2809 fi
2810 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2811 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2812 if test "$ac_test_CFLAGS" = set; then
2813 CFLAGS=$ac_save_CFLAGS
2814 elif test $ac_cv_prog_cc_g = yes; then
2815 if test "$GCC" = yes; then
2816 CFLAGS="-g -O2"
2817 else
2818 CFLAGS="-g"
2819 fi
2820 else
2821 if test "$GCC" = yes; then
2822 CFLAGS="-O2"
2823 else
2824 CFLAGS=
2825 fi
2826 fi
2827 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2828 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2829 if test "${ac_cv_prog_cc_c89+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832 ac_cv_prog_cc_c89=no
2833 ac_save_CC=$CC
2834 cat >conftest.$ac_ext <<_ACEOF
2835 /* confdefs.h. */
2836 _ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2840 #include <stdarg.h>
2841 #include <stdio.h>
2842 #include <sys/types.h>
2843 #include <sys/stat.h>
2844 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2845 struct buf { int x; };
2846 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2847 static char *e (p, i)
2848 char **p;
2849 int i;
2850 {
2851 return p[i];
2852 }
2853 static char *f (char * (*g) (char **, int), char **p, ...)
2854 {
2855 char *s;
2856 va_list v;
2857 va_start (v,p);
2858 s = g (p, va_arg (v,int));
2859 va_end (v);
2860 return s;
2861 }
2862
2863 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2864 function prototypes and stuff, but not '\xHH' hex character constants.
2865 These don't provoke an error unfortunately, instead are silently treated
2866 as 'x'. The following induces an error, until -std is added to get
2867 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2868 array size at least. It's necessary to write '\x00'==0 to get something
2869 that's true only with -std. */
2870 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2871
2872 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2873 inside strings and character constants. */
2874 #define FOO(x) 'x'
2875 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2876
2877 int test (int i, double x);
2878 struct s1 {int (*f) (int a);};
2879 struct s2 {int (*f) (double a);};
2880 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2881 int argc;
2882 char **argv;
2883 int
2884 main ()
2885 {
2886 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2887 ;
2888 return 0;
2889 }
2890 _ACEOF
2891 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2892 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2893 do
2894 CC="$ac_save_CC $ac_arg"
2895 rm -f conftest.$ac_objext
2896 if { (ac_try="$ac_compile"
2897 case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900 esac
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compile") 2>conftest.er1
2903 ac_status=$?
2904 grep -v '^ *+' conftest.er1 >conftest.err
2905 rm -f conftest.er1
2906 cat conftest.err >&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); } && {
2909 test -z "$ac_c_werror_flag" ||
2910 test ! -s conftest.err
2911 } && test -s conftest.$ac_objext; then
2912 ac_cv_prog_cc_c89=$ac_arg
2913 else
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2916
2917
2918 fi
2919
2920 rm -f core conftest.err conftest.$ac_objext
2921 test "x$ac_cv_prog_cc_c89" != "xno" && break
2922 done
2923 rm -f conftest.$ac_ext
2924 CC=$ac_save_CC
2925
2926 fi
2927 # AC_CACHE_VAL
2928 case "x$ac_cv_prog_cc_c89" in
2929 x)
2930 { echo "$as_me:$LINENO: result: none needed" >&5
2931 echo "${ECHO_T}none needed" >&6; } ;;
2932 xno)
2933 { echo "$as_me:$LINENO: result: unsupported" >&5
2934 echo "${ECHO_T}unsupported" >&6; } ;;
2935 *)
2936 CC="$CC $ac_cv_prog_cc_c89"
2937 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2938 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2939 esac
2940
2941
2942 ac_ext=c
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947
2948 ac_ext=c
2949 ac_cpp='$CPP $CPPFLAGS'
2950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2953 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2954 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2955 # On Suns, sometimes $CPP names a directory.
2956 if test -n "$CPP" && test -d "$CPP"; then
2957 CPP=
2958 fi
2959 if test -z "$CPP"; then
2960 if test "${ac_cv_prog_CPP+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 else
2963 # Double quotes because CPP needs to be expanded
2964 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2965 do
2966 ac_preproc_ok=false
2967 for ac_c_preproc_warn_flag in '' yes
2968 do
2969 # Use a header file that comes with gcc, so configuring glibc
2970 # with a fresh cross-compiler works.
2971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2972 # <limits.h> exists even on freestanding compilers.
2973 # On the NeXT, cc -E runs the code through the compiler's parser,
2974 # not just through cpp. "Syntax error" is here to catch this case.
2975 cat >conftest.$ac_ext <<_ACEOF
2976 /* confdefs.h. */
2977 _ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2981 #ifdef __STDC__
2982 # include <limits.h>
2983 #else
2984 # include <assert.h>
2985 #endif
2986 Syntax error
2987 _ACEOF
2988 if { (ac_try="$ac_cpp conftest.$ac_ext"
2989 case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992 esac
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2995 ac_status=$?
2996 grep -v '^ *+' conftest.er1 >conftest.err
2997 rm -f conftest.er1
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } >/dev/null && {
3001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3002 test ! -s conftest.err
3003 }; then
3004 :
3005 else
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3008
3009 # Broken: fails on valid input.
3010 continue
3011 fi
3012
3013 rm -f conftest.err conftest.$ac_ext
3014
3015 # OK, works on sane cases. Now check whether nonexistent headers
3016 # can be detected and how.
3017 cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h. */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3023 #include <ac_nonexistent.h>
3024 _ACEOF
3025 if { (ac_try="$ac_cpp conftest.$ac_ext"
3026 case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev/null && {
3038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3039 test ! -s conftest.err
3040 }; then
3041 # Broken: success on invalid input.
3042 continue
3043 else
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3046
3047 # Passes both tests.
3048 ac_preproc_ok=:
3049 break
3050 fi
3051
3052 rm -f conftest.err conftest.$ac_ext
3053
3054 done
3055 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3056 rm -f conftest.err conftest.$ac_ext
3057 if $ac_preproc_ok; then
3058 break
3059 fi
3060
3061 done
3062 ac_cv_prog_CPP=$CPP
3063
3064 fi
3065 CPP=$ac_cv_prog_CPP
3066 else
3067 ac_cv_prog_CPP=$CPP
3068 fi
3069 { echo "$as_me:$LINENO: result: $CPP" >&5
3070 echo "${ECHO_T}$CPP" >&6; }
3071 ac_preproc_ok=false
3072 for ac_c_preproc_warn_flag in '' yes
3073 do
3074 # Use a header file that comes with gcc, so configuring glibc
3075 # with a fresh cross-compiler works.
3076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3077 # <limits.h> exists even on freestanding compilers.
3078 # On the NeXT, cc -E runs the code through the compiler's parser,
3079 # not just through cpp. "Syntax error" is here to catch this case.
3080 cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h. */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3086 #ifdef __STDC__
3087 # include <limits.h>
3088 #else
3089 # include <assert.h>
3090 #endif
3091 Syntax error
3092 _ACEOF
3093 if { (ac_try="$ac_cpp conftest.$ac_ext"
3094 case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } >/dev/null && {
3106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3107 test ! -s conftest.err
3108 }; then
3109 :
3110 else
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 # Broken: fails on valid input.
3115 continue
3116 fi
3117
3118 rm -f conftest.err conftest.$ac_ext
3119
3120 # OK, works on sane cases. Now check whether nonexistent headers
3121 # can be detected and how.
3122 cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h. */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3128 #include <ac_nonexistent.h>
3129 _ACEOF
3130 if { (ac_try="$ac_cpp conftest.$ac_ext"
3131 case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } >/dev/null && {
3143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3144 test ! -s conftest.err
3145 }; then
3146 # Broken: success on invalid input.
3147 continue
3148 else
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152 # Passes both tests.
3153 ac_preproc_ok=:
3154 break
3155 fi
3156
3157 rm -f conftest.err conftest.$ac_ext
3158
3159 done
3160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3161 rm -f conftest.err conftest.$ac_ext
3162 if $ac_preproc_ok; then
3163 :
3164 else
3165 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3166 See \`config.log' for more details." >&5
3167 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3168 See \`config.log' for more details." >&2;}
3169 { (exit 1); exit 1; }; }
3170 fi
3171
3172 ac_ext=c
3173 ac_cpp='$CPP $CPPFLAGS'
3174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177
3178
3179 # Check whether --with-linker was given.
3180 if test "${with_linker+set}" = set; then
3181 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3182 echo "${ECHO_T}LD=$withval" >&6; }
3183 LD=$withval
3184 else
3185 if test -z "$LD" ; then LD=$CC; fi
3186 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3187 echo "${ECHO_T}LD defaults to $LD" >&6; }
3188 fi
3189 export LD
3190
3191
3192 # Check whether --with-ccopts was given.
3193 if test "${with_ccopts+set}" = set; then
3194 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3195 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3196 CFLAGS=$withval
3197 fi
3198
3199
3200 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3201 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3202 if test "${ac_cv_path_GREP+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205 # Extract the first word of "grep ggrep" to use in msg output
3206 if test -z "$GREP"; then
3207 set dummy grep ggrep; ac_prog_name=$2
3208 if test "${ac_cv_path_GREP+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211 ac_path_GREP_found=false
3212 # Loop through the user's path and test for each of PROGNAME-LIST
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3215 do
3216 IFS=$as_save_IFS
3217 test -z "$as_dir" && as_dir=.
3218 for ac_prog in grep ggrep; do
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3221 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3222 # Check for GNU ac_path_GREP and select it if it is found.
3223 # Check for GNU $ac_path_GREP
3224 case `"$ac_path_GREP" --version 2>&1` in
3225 *GNU*)
3226 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3227 *)
3228 ac_count=0
3229 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3230 while :
3231 do
3232 cat "conftest.in" "conftest.in" >"conftest.tmp"
3233 mv "conftest.tmp" "conftest.in"
3234 cp "conftest.in" "conftest.nl"
3235 echo 'GREP' >> "conftest.nl"
3236 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3238 ac_count=`expr $ac_count + 1`
3239 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3240 # Best one so far, save it but keep looking for a better one
3241 ac_cv_path_GREP="$ac_path_GREP"
3242 ac_path_GREP_max=$ac_count
3243 fi
3244 # 10*(2^10) chars as input seems more than enough
3245 test $ac_count -gt 10 && break
3246 done
3247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3248 esac
3249
3250
3251 $ac_path_GREP_found && break 3
3252 done
3253 done
3254
3255 done
3256 IFS=$as_save_IFS
3257
3258
3259 fi
3260
3261 GREP="$ac_cv_path_GREP"
3262 if test -z "$GREP"; then
3263 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3264 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3265 { (exit 1); exit 1; }; }
3266 fi
3267
3268 else
3269 ac_cv_path_GREP=$GREP
3270 fi
3271
3272
3273 fi
3274 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3275 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3276 GREP="$ac_cv_path_GREP"
3277
3278
3279 { echo "$as_me:$LINENO: checking for egrep" >&5
3280 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3281 if test "${ac_cv_path_EGREP+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3285 then ac_cv_path_EGREP="$GREP -E"
3286 else
3287 # Extract the first word of "egrep" to use in msg output
3288 if test -z "$EGREP"; then
3289 set dummy egrep; ac_prog_name=$2
3290 if test "${ac_cv_path_EGREP+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 else
3293 ac_path_EGREP_found=false
3294 # Loop through the user's path and test for each of PROGNAME-LIST
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3297 do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 for ac_prog in egrep; do
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3303 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3304 # Check for GNU ac_path_EGREP and select it if it is found.
3305 # Check for GNU $ac_path_EGREP
3306 case `"$ac_path_EGREP" --version 2>&1` in
3307 *GNU*)
3308 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3309 *)
3310 ac_count=0
3311 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3312 while :
3313 do
3314 cat "conftest.in" "conftest.in" >"conftest.tmp"
3315 mv "conftest.tmp" "conftest.in"
3316 cp "conftest.in" "conftest.nl"
3317 echo 'EGREP' >> "conftest.nl"
3318 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3320 ac_count=`expr $ac_count + 1`
3321 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3322 # Best one so far, save it but keep looking for a better one
3323 ac_cv_path_EGREP="$ac_path_EGREP"
3324 ac_path_EGREP_max=$ac_count
3325 fi
3326 # 10*(2^10) chars as input seems more than enough
3327 test $ac_count -gt 10 && break
3328 done
3329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3330 esac
3331
3332
3333 $ac_path_EGREP_found && break 3
3334 done
3335 done
3336
3337 done
3338 IFS=$as_save_IFS
3339
3340
3341 fi
3342
3343 EGREP="$ac_cv_path_EGREP"
3344 if test -z "$EGREP"; then
3345 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3346 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3347 { (exit 1); exit 1; }; }
3348 fi
3349
3350 else
3351 ac_cv_path_EGREP=$EGREP
3352 fi
3353
3354
3355 fi
3356 fi
3357 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3358 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3359 EGREP="$ac_cv_path_EGREP"
3360
3361
3362 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3363 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3364 if test "${ac_cv_header_stdc+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367 cat >conftest.$ac_ext <<_ACEOF
3368 /* confdefs.h. */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3373 #include <stdlib.h>
3374 #include <stdarg.h>
3375 #include <string.h>
3376 #include <float.h>
3377
3378 int
3379 main ()
3380 {
3381
3382 ;
3383 return 0;
3384 }
3385 _ACEOF
3386 rm -f conftest.$ac_objext
3387 if { (ac_try="$ac_compile"
3388 case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391 esac
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393 (eval "$ac_compile") 2>conftest.er1
3394 ac_status=$?
3395 grep -v '^ *+' conftest.er1 >conftest.err
3396 rm -f conftest.er1
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } && {
3400 test -z "$ac_c_werror_flag" ||
3401 test ! -s conftest.err
3402 } && test -s conftest.$ac_objext; then
3403 ac_cv_header_stdc=yes
3404 else
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408 ac_cv_header_stdc=no
3409 fi
3410
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412
3413 if test $ac_cv_header_stdc = yes; then
3414 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3415 cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h. */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3421 #include <string.h>
3422
3423 _ACEOF
3424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3425 $EGREP "memchr" >/dev/null 2>&1; then
3426 :
3427 else
3428 ac_cv_header_stdc=no
3429 fi
3430 rm -f conftest*
3431
3432 fi
3433
3434 if test $ac_cv_header_stdc = yes; then
3435 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3436 cat >conftest.$ac_ext <<_ACEOF
3437 /* confdefs.h. */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3442 #include <stdlib.h>
3443
3444 _ACEOF
3445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3446 $EGREP "free" >/dev/null 2>&1; then
3447 :
3448 else
3449 ac_cv_header_stdc=no
3450 fi
3451 rm -f conftest*
3452
3453 fi
3454
3455 if test $ac_cv_header_stdc = yes; then
3456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3457 if test "$cross_compiling" = yes; then
3458 :
3459 else
3460 cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h. */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3466 #include <ctype.h>
3467 #include <stdlib.h>
3468 #if ((' ' & 0x0FF) == 0x020)
3469 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3470 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3471 #else
3472 # define ISLOWER(c) \
3473 (('a' <= (c) && (c) <= 'i') \
3474 || ('j' <= (c) && (c) <= 'r') \
3475 || ('s' <= (c) && (c) <= 'z'))
3476 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3477 #endif
3478
3479 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3480 int
3481 main ()
3482 {
3483 int i;
3484 for (i = 0; i < 256; i++)
3485 if (XOR (islower (i), ISLOWER (i))
3486 || toupper (i) != TOUPPER (i))
3487 return 2;
3488 return 0;
3489 }
3490 _ACEOF
3491 rm -f conftest$ac_exeext
3492 if { (ac_try="$ac_link"
3493 case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496 esac
3497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498 (eval "$ac_link") 2>&5
3499 ac_status=$?
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3502 { (case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505 esac
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_try") 2>&5
3508 ac_status=$?
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; }; then
3511 :
3512 else
3513 echo "$as_me: program exited with status $ac_status" >&5
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517 ( exit $ac_status )
3518 ac_cv_header_stdc=no
3519 fi
3520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3521 fi
3522
3523
3524 fi
3525 fi
3526 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3527 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3528 if test $ac_cv_header_stdc = yes; then
3529
3530 cat >>confdefs.h <<\_ACEOF
3531 #define STDC_HEADERS 1
3532 _ACEOF
3533
3534 fi
3535
3536 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3547 inttypes.h stdint.h unistd.h
3548 do
3549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555 cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h. */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561 $ac_includes_default
3562
3563 #include <$ac_header>
3564 _ACEOF
3565 rm -f conftest.$ac_objext
3566 if { (ac_try="$ac_compile"
3567 case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570 esac
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572 (eval "$ac_compile") 2>conftest.er1
3573 ac_status=$?
3574 grep -v '^ *+' conftest.er1 >conftest.err
3575 rm -f conftest.er1
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } && {
3579 test -z "$ac_c_werror_flag" ||
3580 test ! -s conftest.err
3581 } && test -s conftest.$ac_objext; then
3582 eval "$as_ac_Header=yes"
3583 else
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 eval "$as_ac_Header=no"
3588 fi
3589
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 fi
3592 ac_res=`eval echo '${'$as_ac_Header'}'`
3593 { echo "$as_me:$LINENO: result: $ac_res" >&5
3594 echo "${ECHO_T}$ac_res" >&6; }
3595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3596 cat >>confdefs.h <<_ACEOF
3597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3598 _ACEOF
3599
3600 fi
3601
3602 done
3603
3604
3605 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3606 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3607 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3608 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 fi
3611 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3612 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3613 else
3614 # Is the header compilable?
3615 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3616 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3617 cat >conftest.$ac_ext <<_ACEOF
3618 /* confdefs.h. */
3619 _ACEOF
3620 cat confdefs.h >>conftest.$ac_ext
3621 cat >>conftest.$ac_ext <<_ACEOF
3622 /* end confdefs.h. */
3623 $ac_includes_default
3624 #include <linux/fs.h>
3625 _ACEOF
3626 rm -f conftest.$ac_objext
3627 if { (ac_try="$ac_compile"
3628 case "(($ac_try" in
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3631 esac
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_compile") 2>conftest.er1
3634 ac_status=$?
3635 grep -v '^ *+' conftest.er1 >conftest.err
3636 rm -f conftest.er1
3637 cat conftest.err >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); } && {
3640 test -z "$ac_c_werror_flag" ||
3641 test ! -s conftest.err
3642 } && test -s conftest.$ac_objext; then
3643 ac_header_compiler=yes
3644 else
3645 echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3647
3648 ac_header_compiler=no
3649 fi
3650
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3653 echo "${ECHO_T}$ac_header_compiler" >&6; }
3654
3655 # Is the header present?
3656 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3657 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3658 cat >conftest.$ac_ext <<_ACEOF
3659 /* confdefs.h. */
3660 _ACEOF
3661 cat confdefs.h >>conftest.$ac_ext
3662 cat >>conftest.$ac_ext <<_ACEOF
3663 /* end confdefs.h. */
3664 #include <linux/fs.h>
3665 _ACEOF
3666 if { (ac_try="$ac_cpp conftest.$ac_ext"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3673 ac_status=$?
3674 grep -v '^ *+' conftest.er1 >conftest.err
3675 rm -f conftest.er1
3676 cat conftest.err >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } >/dev/null && {
3679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3680 test ! -s conftest.err
3681 }; then
3682 ac_header_preproc=yes
3683 else
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3686
3687 ac_header_preproc=no
3688 fi
3689
3690 rm -f conftest.err conftest.$ac_ext
3691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3692 echo "${ECHO_T}$ac_header_preproc" >&6; }
3693
3694 # So? What about this header?
3695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3696 yes:no: )
3697 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3698 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3699 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3700 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3701 ac_header_preproc=yes
3702 ;;
3703 no:yes:* )
3704 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3705 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3706 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3707 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3708 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3709 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3710 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3711 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3712 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3713 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3714 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3715 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3716
3717 ;;
3718 esac
3719 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3720 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3721 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724 ac_cv_header_linux_fs_h=$ac_header_preproc
3725 fi
3726 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3727 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3728
3729 fi
3730 if test $ac_cv_header_linux_fs_h = yes; then
3731 linux_headers=yes
3732 else
3733 linux_headers=no
3734 fi
3735
3736
3737 if test "$linux_headers" != yes; then
3738 LINUX_INCLUDE='-I$(top_builddir)/include'
3739 fi
3740
3741 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3742 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3743 if test "$GCC" = yes
3744 then
3745 case "$host_cpu" in
3746 alpha) addcflags="-mieee" ;;
3747 esac
3748 fi
3749 if test "x$addcflags" != x
3750 then
3751 { echo "$as_me:$LINENO: result: $addcflags" >&5
3752 echo "${ECHO_T}$addcflags" >&6; }
3753 CFLAGS="$addcflags $CFLAGS"
3754 else
3755 { echo "$as_me:$LINENO: result: (none)" >&5
3756 echo "${ECHO_T}(none)" >&6; }
3757 fi
3758 LIB_EXT=.a
3759 STATIC_LIB_EXT=.a
3760 PROFILE_LIB_EXT=.a
3761
3762 # Check whether --with-ldopts was given.
3763 if test "${with_ldopts+set}" = set; then
3764 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3765 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3766 LDFLAGS=$withval
3767 else
3768 LDFLAGS=
3769 fi
3770
3771
3772 # Check whether --with-root-prefix was given.
3773 if test "${with_root_prefix+set}" = set; then
3774 withval=$with_root_prefix; root_prefix=$withval
3775 else
3776 root_prefix=NONE
3777 fi
3778 # Check whether --enable-maintainer-mode was given.
3779 if test "${enable_maintainer_mode+set}" = set; then
3780 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3781 then
3782 MAINTAINER_CMT=#
3783 echo "Disabling maintainer mode"
3784 else
3785 MAINTAINER_CMT=
3786 echo "Enabling maintainer mode"
3787 fi
3788
3789 else
3790 MAINTAINER_CMT=#
3791 echo "Disabling maintainer mode by default"
3792
3793 fi
3794
3795
3796 # Check whether --enable-compression was given.
3797 if test "${enable_compression+set}" = set; then
3798 enableval=$enable_compression; if test "$enableval" = "no"
3799 then
3800 echo "Disabling compression support"
3801 else
3802 cat >>confdefs.h <<\_ACEOF
3803 #define ENABLE_COMPRESSION 1
3804 _ACEOF
3805
3806 echo "Enabling compression support"
3807 echo "WARNING: Compression support is experimental"
3808 fi
3809
3810 else
3811 echo "Disabling compression support by default"
3812
3813 fi
3814
3815 # Check whether --enable-htree was given.
3816 if test "${enable_htree+set}" = set; then
3817 enableval=$enable_htree; if test "$enableval" = "no"
3818 then
3819 HTREE_CMT=#
3820 echo "Disabling htree directory support"
3821 else
3822 HTREE_CMT=
3823 cat >>confdefs.h <<\_ACEOF
3824 #define ENABLE_HTREE 1
3825 _ACEOF
3826
3827 echo "Enabling htree directory support"
3828 fi
3829
3830 else
3831 HTREE_CMT=
3832 cat >>confdefs.h <<\_ACEOF
3833 #define ENABLE_HTREE 1
3834 _ACEOF
3835
3836 echo "Enabling htree directory support by default"
3837
3838 fi
3839
3840
3841 E2_PKG_CONFIG_STATIC=--static
3842 # Check whether --enable-elf-shlibs was given.
3843 if test "${enable_elf_shlibs+set}" = set; then
3844 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3845 then
3846 ELF_CMT=#
3847 MAKEFILE_ELF=/dev/null
3848 echo "Disabling ELF shared libraries"
3849 else
3850 E2_PKG_CONFIG_STATIC=
3851 ELF_CMT=
3852 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3853 case "$host_os" in
3854 solaris2.*)
3855 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3856 ;;
3857 esac
3858 BINARY_TYPE=elfbin
3859 LIB_EXT=.so
3860 echo "Enabling ELF shared libraries"
3861 fi
3862
3863 else
3864 MAKEFILE_ELF=/dev/null
3865 ELF_CMT=#
3866 echo "Disabling ELF shared libraries by default"
3867
3868 fi
3869
3870
3871
3872 # Check whether --enable-bsd-shlibs was given.
3873 if test "${enable_bsd_shlibs+set}" = set; then
3874 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3875 then
3876 BSDLIB_CMT=#
3877 MAKEFILE_BSDLIB=/dev/null
3878 echo "Disabling BSD shared libraries"
3879 else
3880 E2_PKG_CONFIG_STATIC=
3881 BSDLIB_CMT=
3882 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3883 LIB_EXT=.so
3884 case "$host_os" in
3885 darwin*)
3886 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3887 LIB_EXT=.dylib
3888 ;;
3889 esac
3890 echo "Enabling BSD shared libraries"
3891 fi
3892
3893 else
3894 MAKEFILE_BSDLIB=/dev/null
3895 BSDLIB_CMT=#
3896 echo "Disabling BSD shared libraries by default"
3897
3898 fi
3899
3900
3901
3902 # Check whether --enable-profile was given.
3903 if test "${enable_profile+set}" = set; then
3904 enableval=$enable_profile; if test "$enableval" = "no"
3905 then
3906 PROFILE_CMT=#
3907 MAKEFILE_PROFILE=/dev/null
3908 echo "Disabling profiling libraries"
3909 else
3910 PROFILE_CMT=
3911 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3912 PROFILED_LIB_EXT=_p.a
3913 echo "Building profiling libraries"
3914 fi
3915
3916 else
3917 PROFILE_CMT=#
3918 MAKEFILE_PROFILE=/dev/null
3919 echo "Disabling profiling libraries by default"
3920
3921 fi
3922
3923
3924
3925 # Check whether --enable-checker was given.
3926 if test "${enable_checker+set}" = set; then
3927 enableval=$enable_checker; if test "$enableval" = "no"
3928 then
3929 CHECKER_CMT=#
3930 MAKEFILE_CHECKER=/dev/null
3931 echo "Disabling checker libraries"
3932 else
3933 CHECKER_CMT=
3934 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3935 echo "Building checker libraries"
3936 fi
3937
3938 else
3939 CHECKER_CMT=#
3940 MAKEFILE_CHECKER=/dev/null
3941 echo "Disabling checker libraries by default"
3942
3943 fi
3944
3945
3946
3947
3948
3949
3950 # Check whether --enable-jbd-debug was given.
3951 if test "${enable_jbd_debug+set}" = set; then
3952 enableval=$enable_jbd_debug; if test "$enableval" = "no"
3953 then
3954 echo "Disabling journal debugging"
3955 else
3956 cat >>confdefs.h <<\_ACEOF
3957 #define CONFIG_JBD_DEBUG 1
3958 _ACEOF
3959
3960 echo "Enabling journal debugging"
3961 fi
3962
3963 else
3964 echo "Disabling journal debugging by default"
3965
3966 fi
3967
3968 # Check whether --enable-blkid-debug was given.
3969 if test "${enable_blkid_debug+set}" = set; then
3970 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3971 then
3972 echo "Disabling blkid debugging"
3973 else
3974 cat >>confdefs.h <<\_ACEOF
3975 #define CONFIG_BLKID_DEBUG 1
3976 _ACEOF
3977
3978 echo "Enabling blkid debugging"
3979 fi
3980
3981 else
3982 echo "Disabling blkid debugging by default"
3983
3984 fi
3985
3986 # Check whether --enable-testio-debug was given.
3987 if test "${enable_testio_debug+set}" = set; then
3988 enableval=$enable_testio_debug; if test "$enableval" = "no"
3989 then
3990 echo "Disabling testio debugging"
3991 else
3992 cat >>confdefs.h <<\_ACEOF
3993 #define CONFIG_TESTIO_DEBUG 1
3994 _ACEOF
3995
3996 echo "Enabling testio debugging"
3997 fi
3998
3999 else
4000 echo "Disabling testio debugging by default"
4001
4002 fi
4003
4004 # Check whether --enable-swapfs was given.
4005 if test "${enable_swapfs+set}" = set; then
4006 enableval=$enable_swapfs; if test "$enableval" = "no"
4007 then
4008 SWAPFS_CMT=#
4009 echo "Disabling swapfs support"
4010 else
4011 SWAPFS_CMT=
4012 cat >>confdefs.h <<\_ACEOF
4013 #define ENABLE_SWAPFS 1
4014 _ACEOF
4015
4016 echo "Enabling swapfs support"
4017 fi
4018
4019 else
4020 SWAPFS_CMT=
4021 echo "Enabling swapfs support by default"
4022 cat >>confdefs.h <<\_ACEOF
4023 #define ENABLE_SWAPFS 1
4024 _ACEOF
4025
4026
4027 fi
4028
4029
4030 # Check whether --enable-debugfs was given.
4031 if test "${enable_debugfs+set}" = set; then
4032 enableval=$enable_debugfs; if test "$enableval" = "no"
4033 then
4034 echo "Disabling debugfs support"
4035 DEBUGFS_CMT="#"
4036 else
4037 DEBUGFS_CMT=
4038 echo "Enabling debugfs support"
4039 fi
4040
4041 else
4042 echo "Enabling debugfs support by default"
4043 DEBUGFS_CMT=
4044
4045 fi
4046
4047
4048 # Check whether --enable-imager was given.
4049 if test "${enable_imager+set}" = set; then
4050 enableval=$enable_imager; if test "$enableval" = "no"
4051 then
4052 echo "Disabling e2image support"
4053 IMAGER_CMT="#"
4054 else
4055 IMAGER_CMT=
4056 echo "Enabling e2image support"
4057 fi
4058
4059 else
4060 echo "Enabling e2image support by default"
4061 IMAGER_CMT=
4062
4063 fi
4064
4065
4066 # Check whether --enable-resizer was given.
4067 if test "${enable_resizer+set}" = set; then
4068 enableval=$enable_resizer; if test "$enableval" = "no"
4069 then
4070 echo "Disabling e2resize support"
4071 RESIZER_CMT="#"
4072 else
4073 RESIZER_CMT=
4074 echo "Enabling e2resize support"
4075 fi
4076
4077 else
4078 echo "Enabling e2resize support by default"
4079 RESIZER_CMT=
4080
4081 fi
4082
4083
4084 # Check whether --enable-fsck was given.
4085 if test "${enable_fsck+set}" = set; then
4086 enableval=$enable_fsck; if test "$enableval" = "no"
4087 then
4088 FSCK_PROG='' FSCK_MAN=''
4089 echo "Not building fsck wrapper"
4090 else
4091 FSCK_PROG=fsck FSCK_MAN=fsck.8
4092 echo "Building fsck wrapper"
4093 fi
4094
4095 else
4096 case "$host_os" in
4097 gnu*)
4098 FSCK_PROG='' FSCK_MAN=''
4099 echo "Not building fsck wrapper by default"
4100 ;;
4101 *)
4102 FSCK_PROG=fsck FSCK_MAN=fsck.8
4103 echo "Building fsck wrapper by default"
4104 esac
4105
4106 fi
4107
4108
4109
4110 # Check whether --enable-e2initrd-helper was given.
4111 if test "${enable_e2initrd_helper+set}" = set; then
4112 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4113 then
4114 E2INITRD_PROG='' E2INITRD_MAN=''
4115 echo "Not building e2initrd helper"
4116 else
4117 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4118 echo "Building e2initrd helper"
4119 fi
4120
4121 else
4122 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4123 echo "Building e2initrd helper by default"
4124
4125 fi
4126
4127
4128
4129 STATIC_BLKID_DEVMAPPER_LIBS=''
4130 # Check whether --enable-blkid-devmapper was given.
4131 if test "${enable_blkid_devmapper+set}" = set; then
4132 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4133 then
4134 echo "Disabling device-mapper support"
4135 DEVMAPPER_REQ=''
4136 DEVMAPPER_LIBS=''
4137 STATIC_DEVMAPPER_LIBS=''
4138 else
4139 cat >>confdefs.h <<\_ACEOF
4140 #define HAVE_DEVMAPPER 1
4141 _ACEOF
4142
4143 echo "Enabling device-mapper support"
4144
4145
4146
4147 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4148 if test -n "$ac_tool_prefix"; then
4149 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4150 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4153 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156 case $PKG_CONFIG in
4157 [\\/]* | ?:[\\/]*)
4158 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4159 ;;
4160 *)
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4163 do
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4168 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 break 2
4171 fi
4172 done
4173 done
4174 IFS=$as_save_IFS
4175
4176 ;;
4177 esac
4178 fi
4179 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4180 if test -n "$PKG_CONFIG"; then
4181 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4182 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4183 else
4184 { echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6; }
4186 fi
4187
4188
4189 fi
4190 if test -z "$ac_cv_path_PKG_CONFIG"; then
4191 ac_pt_PKG_CONFIG=$PKG_CONFIG
4192 # Extract the first word of "pkg-config", so it can be a program name with args.
4193 set dummy pkg-config; ac_word=$2
4194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4196 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 else
4199 case $ac_pt_PKG_CONFIG in
4200 [\\/]* | ?:[\\/]*)
4201 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4202 ;;
4203 *)
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4206 do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4211 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4214 fi
4215 done
4216 done
4217 IFS=$as_save_IFS
4218
4219 ;;
4220 esac
4221 fi
4222 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4223 if test -n "$ac_pt_PKG_CONFIG"; then
4224 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4225 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4226 else
4227 { echo "$as_me:$LINENO: result: no" >&5
4228 echo "${ECHO_T}no" >&6; }
4229 fi
4230
4231 if test "x$ac_pt_PKG_CONFIG" = x; then
4232 PKG_CONFIG=""
4233 else
4234 case $cross_compiling:$ac_tool_warned in
4235 yes:)
4236 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4237 whose name does not start with the host triplet. If you think this
4238 configuration is useful to you, please write to autoconf@gnu.org." >&5
4239 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4240 whose name does not start with the host triplet. If you think this
4241 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4242 ac_tool_warned=yes ;;
4243 esac
4244 PKG_CONFIG=$ac_pt_PKG_CONFIG
4245 fi
4246 else
4247 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4248 fi
4249
4250 fi
4251 if test -n "$PKG_CONFIG"; then
4252 _pkg_min_version=0.9.0
4253 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4254 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4255 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4256 { echo "$as_me:$LINENO: result: yes" >&5
4257 echo "${ECHO_T}yes" >&6; }
4258 else
4259 { echo "$as_me:$LINENO: result: no" >&5
4260 echo "${ECHO_T}no" >&6; }
4261 PKG_CONFIG=""
4262 fi
4263
4264 fi
4265
4266 if test -z "$PKG_CONFIG"; then
4267 echo "pkg-config not installed; please install it."
4268 exit 1;
4269 fi
4270
4271 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4272 echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4273 if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276 ac_check_lib_save_LIBS=$LIBS
4277 LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4278 cat >conftest.$ac_ext <<_ACEOF
4279 /* confdefs.h. */
4280 _ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4284
4285 /* Override any GCC internal prototype to avoid an error.
4286 Use char because int might match the return type of a GCC
4287 builtin and then its argument prototype would still apply. */
4288 #ifdef __cplusplus
4289 extern "C"
4290 #endif
4291 char dm_tree_create ();
4292 int
4293 main ()
4294 {
4295 return dm_tree_create ();
4296 ;
4297 return 0;
4298 }
4299 _ACEOF
4300 rm -f conftest.$ac_objext conftest$ac_exeext
4301 if { (ac_try="$ac_link"
4302 case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305 esac
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_link") 2>conftest.er1
4308 ac_status=$?
4309 grep -v '^ *+' conftest.er1 >conftest.err
4310 rm -f conftest.er1
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } && {
4314 test -z "$ac_c_werror_flag" ||
4315 test ! -s conftest.err
4316 } && test -s conftest$ac_exeext &&
4317 $as_test_x conftest$ac_exeext; then
4318 ac_cv_lib_devmapper_dm_tree_create=yes
4319 else
4320 echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4322
4323 ac_cv_lib_devmapper_dm_tree_create=no
4324 fi
4325
4326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4327 conftest$ac_exeext conftest.$ac_ext
4328 LIBS=$ac_check_lib_save_LIBS
4329 fi
4330 { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4331 echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4332 if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4333 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4334 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4335 DEVMAPPER_REQ="devmapper";
4336 DEVMAPPER_PC_LIBS="-ldevmapper"
4337 else
4338 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4339 echo "$as_me: error: device-mapper library not found" >&2;}
4340 { (exit 1); exit 1; }; }
4341 fi
4342
4343 # work around stupid devmapper.pc bug in Debian
4344 case "$STATIC_DEVMAPPER_LIBS" in
4345 *pthread*)
4346 ;;
4347 *)
4348 echo "Working around Debian bug #390243..."
4349 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4350 ;;
4351 esac
4352 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4353 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4354 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4355 fi
4356 fi
4357
4358 else
4359 echo "Disabling device-mapper support by default"
4360
4361 fi
4362
4363
4364
4365
4366
4367
4368 # Check whether --enable-tls was given.
4369 if test "${enable_tls+set}" = set; then
4370 enableval=$enable_tls; if test "$enableval" = "no"
4371 then
4372 try_tls=""
4373 echo "Disabling thread local support"
4374 else
4375 try_tls="yes"
4376 echo "Enabling thread local support"
4377 fi
4378
4379 else
4380 try_tls="yes"
4381 echo "Try using thread local support by default"
4382
4383 fi
4384
4385 if test "$try_tls" = "yes"
4386 then
4387
4388 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4389 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4390 if test "${ac_cv_tls+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 else
4393
4394 ax_tls_keywords="__thread __declspec(thread) none"
4395 for ax_tls_keyword in $ax_tls_keywords; do
4396 case $ax_tls_keyword in
4397 none) ac_cv_tls=none ; break ;;
4398 *)
4399 cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h. */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4405 #include <stdlib.h>
4406 static void
4407 foo(void) {
4408 static $ax_tls_keyword int bar;
4409 exit(1);
4410 }
4411 int
4412 main ()
4413 {
4414
4415 ;
4416 return 0;
4417 }
4418 _ACEOF
4419 rm -f conftest.$ac_objext
4420 if { (ac_try="$ac_compile"
4421 case "(($ac_try" in
4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423 *) ac_try_echo=$ac_try;;
4424 esac
4425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426 (eval "$ac_compile") 2>conftest.er1
4427 ac_status=$?
4428 grep -v '^ *+' conftest.er1 >conftest.err
4429 rm -f conftest.er1
4430 cat conftest.err >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } && {
4433 test -z "$ac_c_werror_flag" ||
4434 test ! -s conftest.err
4435 } && test -s conftest.$ac_objext; then
4436 ac_cv_tls=$ax_tls_keyword ; break
4437 else
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4440
4441 ac_cv_tls=none
4442
4443 fi
4444
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446 esac
4447 done
4448
4449 fi
4450
4451
4452 if test "$ac_cv_tls" != "none"; then
4453
4454 cat >>confdefs.h <<_ACEOF
4455 #define TLS $ac_cv_tls
4456 _ACEOF
4457
4458 fi
4459 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4460 echo "${ECHO_T}$ac_cv_tls" >&6; }
4461
4462 fi
4463 # Check whether --enable-uuidd was given.
4464 if test "${enable_uuidd+set}" = set; then
4465 enableval=$enable_uuidd; if test "$enableval" = "no"
4466 then
4467 echo "Not building uuidd"
4468 UUIDD_CMT="#"
4469 else
4470 cat >>confdefs.h <<\_ACEOF
4471 #define USE_UUIDD 1
4472 _ACEOF
4473
4474 UUIDD_CMT=""
4475 echo "Building uuidd"
4476 fi
4477
4478 else
4479 cat >>confdefs.h <<\_ACEOF
4480 #define USE_UUIDD 1
4481 _ACEOF
4482
4483 UUIDD_CMT=""
4484 echo "Building uuidd by default"
4485
4486 fi
4487
4488
4489 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4490
4491 GETTEXT_PACKAGE=e2fsprogs
4492 PACKAGE=e2fsprogs
4493 VERSION="$E2FSPROGS_VERSION"
4494 VERSION=0.14.1
4495 cat >>confdefs.h <<_ACEOF
4496 #define PACKAGE "$PACKAGE"
4497 _ACEOF
4498
4499 cat >>confdefs.h <<_ACEOF
4500 #define VERSION "$VERSION"
4501 _ACEOF
4502
4503
4504
4505
4506
4507 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4508 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4509 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4510 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513 cat >conftest.make <<\_ACEOF
4514 SHELL = /bin/sh
4515 all:
4516 @echo '@@@%%%=$(MAKE)=@@@%%%'
4517 _ACEOF
4518 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4519 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4520 *@@@%%%=?*=@@@%%%*)
4521 eval ac_cv_prog_make_${ac_make}_set=yes;;
4522 *)
4523 eval ac_cv_prog_make_${ac_make}_set=no;;
4524 esac
4525 rm -f conftest.make
4526 fi
4527 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4528 { echo "$as_me:$LINENO: result: yes" >&5
4529 echo "${ECHO_T}yes" >&6; }
4530 SET_MAKE=
4531 else
4532 { echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6; }
4534 SET_MAKE="MAKE=${MAKE-make}"
4535 fi
4536
4537 # Find a good install program. We prefer a C program (faster),
4538 # so one script is as good as another. But avoid the broken or
4539 # incompatible versions:
4540 # SysV /etc/install, /usr/sbin/install
4541 # SunOS /usr/etc/install
4542 # IRIX /sbin/install
4543 # AIX /bin/install
4544 # AmigaOS /C/install, which installs bootblocks on floppy discs
4545 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4546 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4547 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4548 # OS/2's system install, which has a completely different semantic
4549 # ./install, which can be erroneously created by make from ./install.sh.
4550 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4551 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4552 if test -z "$INSTALL"; then
4553 if test "${ac_cv_path_install+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4558 do
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 # Account for people who put trailing slashes in PATH elements.
4562 case $as_dir/ in
4563 ./ | .// | /cC/* | \
4564 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4565 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4566 /usr/ucb/* ) ;;
4567 *)
4568 # OSF1 and SCO ODT 3.0 have their own names for install.
4569 # Don't use installbsd from OSF since it installs stuff as root
4570 # by default.
4571 for ac_prog in ginstall scoinst install; do
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4574 if test $ac_prog = install &&
4575 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4576 # AIX install. It has an incompatible calling convention.
4577 :
4578 elif test $ac_prog = install &&
4579 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4580 # program-specific install script used by HP pwplus--don't use.
4581 :
4582 else
4583 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4584 break 3
4585 fi
4586 fi
4587 done
4588 done
4589 ;;
4590 esac
4591 done
4592 IFS=$as_save_IFS
4593
4594
4595 fi
4596 if test "${ac_cv_path_install+set}" = set; then
4597 INSTALL=$ac_cv_path_install
4598 else
4599 # As a last resort, use the slow shell script. Don't cache a
4600 # value for INSTALL within a source directory, because that will
4601 # break other packages using the cache if that directory is
4602 # removed, or if the value is a relative name.
4603 INSTALL=$ac_install_sh
4604 fi
4605 fi
4606 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4607 echo "${ECHO_T}$INSTALL" >&6; }
4608
4609 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4610 # It thinks the first close brace ends the variable substitution.
4611 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4612
4613 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4614
4615 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4616
4617
4618 MKINSTALLDIRS=
4619 if test -n "$ac_aux_dir"; then
4620 case "$ac_aux_dir" in
4621 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4622 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4623 esac
4624 fi
4625 if test -z "$MKINSTALLDIRS"; then
4626 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4627 fi
4628
4629
4630
4631 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4632 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4633 # Check whether --enable-nls was given.
4634 if test "${enable_nls+set}" = set; then
4635 enableval=$enable_nls; USE_NLS=$enableval
4636 else
4637 USE_NLS=yes
4638 fi
4639
4640 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4641 echo "${ECHO_T}$USE_NLS" >&6; }
4642
4643
4644
4645
4646
4647
4648 # Prepare PATH_SEPARATOR.
4649 # The user is always right.
4650 if test "${PATH_SEPARATOR+set}" != set; then
4651 echo "#! /bin/sh" >conf$$.sh
4652 echo "exit 0" >>conf$$.sh
4653 chmod +x conf$$.sh
4654 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4655 PATH_SEPARATOR=';'
4656 else
4657 PATH_SEPARATOR=:
4658 fi
4659 rm -f conf$$.sh
4660 fi
4661
4662 # Find out how to test for executable files. Don't use a zero-byte file,
4663 # as systems may use methods other than mode bits to determine executability.
4664 cat >conf$$.file <<_ASEOF
4665 #! /bin/sh
4666 exit 0
4667 _ASEOF
4668 chmod +x conf$$.file
4669 if test -x conf$$.file >/dev/null 2>&1; then
4670 ac_executable_p="test -x"
4671 else
4672 ac_executable_p="test -f"
4673 fi
4674 rm -f conf$$.file
4675
4676 # Extract the first word of "msgfmt", so it can be a program name with args.
4677 set dummy msgfmt; ac_word=$2
4678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4680 if test "${ac_cv_path_MSGFMT+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683 case "$MSGFMT" in
4684 [\\/]* | ?:[\\/]*)
4685 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4686 ;;
4687 *)
4688 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4689 for ac_dir in $PATH; do
4690 IFS="$ac_save_IFS"
4691 test -z "$ac_dir" && ac_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4694 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4695 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4696 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4697 break 2
4698 fi
4699 fi
4700 done
4701 done
4702 IFS="$ac_save_IFS"
4703 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4704 ;;
4705 esac
4706 fi
4707 MSGFMT="$ac_cv_path_MSGFMT"
4708 if test "$MSGFMT" != ":"; then
4709 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4710 echo "${ECHO_T}$MSGFMT" >&6; }
4711 else
4712 { echo "$as_me:$LINENO: result: no" >&5
4713 echo "${ECHO_T}no" >&6; }
4714 fi
4715
4716 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4717 set dummy gmsgfmt; ac_word=$2
4718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4720 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723 case $GMSGFMT in
4724 [\\/]* | ?:[\\/]*)
4725 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4726 ;;
4727 *)
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4730 do
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4735 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4738 fi
4739 done
4740 done
4741 IFS=$as_save_IFS
4742
4743 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4744 ;;
4745 esac
4746 fi
4747 GMSGFMT=$ac_cv_path_GMSGFMT
4748 if test -n "$GMSGFMT"; then
4749 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4750 echo "${ECHO_T}$GMSGFMT" >&6; }
4751 else
4752 { echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6; }
4754 fi
4755
4756
4757
4758
4759 # Prepare PATH_SEPARATOR.
4760 # The user is always right.
4761 if test "${PATH_SEPARATOR+set}" != set; then
4762 echo "#! /bin/sh" >conf$$.sh
4763 echo "exit 0" >>conf$$.sh
4764 chmod +x conf$$.sh
4765 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4766 PATH_SEPARATOR=';'
4767 else
4768 PATH_SEPARATOR=:
4769 fi
4770 rm -f conf$$.sh
4771 fi
4772
4773 # Find out how to test for executable files. Don't use a zero-byte file,
4774 # as systems may use methods other than mode bits to determine executability.
4775 cat >conf$$.file <<_ASEOF
4776 #! /bin/sh
4777 exit 0
4778 _ASEOF
4779 chmod +x conf$$.file
4780 if test -x conf$$.file >/dev/null 2>&1; then
4781 ac_executable_p="test -x"
4782 else
4783 ac_executable_p="test -f"
4784 fi
4785 rm -f conf$$.file
4786
4787 # Extract the first word of "xgettext", so it can be a program name with args.
4788 set dummy xgettext; ac_word=$2
4789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4791 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
4794 case "$XGETTEXT" in
4795 [\\/]* | ?:[\\/]*)
4796 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4797 ;;
4798 *)
4799 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4800 for ac_dir in $PATH; do
4801 IFS="$ac_save_IFS"
4802 test -z "$ac_dir" && ac_dir=.
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4805 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4806 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4807 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4808 break 2
4809 fi
4810 fi
4811 done
4812 done
4813 IFS="$ac_save_IFS"
4814 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4815 ;;
4816 esac
4817 fi
4818 XGETTEXT="$ac_cv_path_XGETTEXT"
4819 if test "$XGETTEXT" != ":"; then
4820 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4821 echo "${ECHO_T}$XGETTEXT" >&6; }
4822 else
4823 { echo "$as_me:$LINENO: result: no" >&5
4824 echo "${ECHO_T}no" >&6; }
4825 fi
4826
4827 rm -f messages.po
4828
4829
4830 # Prepare PATH_SEPARATOR.
4831 # The user is always right.
4832 if test "${PATH_SEPARATOR+set}" != set; then
4833 echo "#! /bin/sh" >conf$$.sh
4834 echo "exit 0" >>conf$$.sh
4835 chmod +x conf$$.sh
4836 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4837 PATH_SEPARATOR=';'
4838 else
4839 PATH_SEPARATOR=:
4840 fi
4841 rm -f conf$$.sh
4842 fi
4843
4844 # Find out how to test for executable files. Don't use a zero-byte file,
4845 # as systems may use methods other than mode bits to determine executability.
4846 cat >conf$$.file <<_ASEOF
4847 #! /bin/sh
4848 exit 0
4849 _ASEOF
4850 chmod +x conf$$.file
4851 if test -x conf$$.file >/dev/null 2>&1; then
4852 ac_executable_p="test -x"
4853 else
4854 ac_executable_p="test -f"
4855 fi
4856 rm -f conf$$.file
4857
4858 # Extract the first word of "msgmerge", so it can be a program name with args.
4859 set dummy msgmerge; ac_word=$2
4860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4862 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865 case "$MSGMERGE" in
4866 [\\/]* | ?:[\\/]*)
4867 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4868 ;;
4869 *)
4870 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4871 for ac_dir in $PATH; do
4872 IFS="$ac_save_IFS"
4873 test -z "$ac_dir" && ac_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4876 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4877 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4878 break 2
4879 fi
4880 fi
4881 done
4882 done
4883 IFS="$ac_save_IFS"
4884 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4885 ;;
4886 esac
4887 fi
4888 MSGMERGE="$ac_cv_path_MSGMERGE"
4889 if test "$MSGMERGE" != ":"; then
4890 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4891 echo "${ECHO_T}$MSGMERGE" >&6; }
4892 else
4893 { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4895 fi
4896
4897
4898 if test "$GMSGFMT" != ":"; then
4899 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4900 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4901 : ;
4902 else
4903 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4904 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4905 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4906 GMSGFMT=":"
4907 fi
4908 fi
4909
4910 if test "$XGETTEXT" != ":"; then
4911 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4912 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4913 : ;
4914 else
4915 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4916 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4917 XGETTEXT=":"
4918 fi
4919 rm -f messages.po
4920 fi
4921
4922 ac_config_commands="$ac_config_commands default-1"
4923
4924
4925 if test -n "$ac_tool_prefix"; then
4926 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4927 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4930 if test "${ac_cv_prog_RANLIB+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4932 else
4933 if test -n "$RANLIB"; then
4934 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4938 do
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 break 2
4946 fi
4947 done
4948 done
4949 IFS=$as_save_IFS
4950
4951 fi
4952 fi
4953 RANLIB=$ac_cv_prog_RANLIB
4954 if test -n "$RANLIB"; then
4955 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4956 echo "${ECHO_T}$RANLIB" >&6; }
4957 else
4958 { echo "$as_me:$LINENO: result: no" >&5
4959 echo "${ECHO_T}no" >&6; }
4960 fi
4961
4962
4963 fi
4964 if test -z "$ac_cv_prog_RANLIB"; then
4965 ac_ct_RANLIB=$RANLIB
4966 # Extract the first word of "ranlib", so it can be a program name with args.
4967 set dummy ranlib; ac_word=$2
4968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4970 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973 if test -n "$ac_ct_RANLIB"; then
4974 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983 ac_cv_prog_ac_ct_RANLIB="ranlib"
4984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4986 fi
4987 done
4988 done
4989 IFS=$as_save_IFS
4990
4991 fi
4992 fi
4993 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4994 if test -n "$ac_ct_RANLIB"; then
4995 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4996 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4997 else
4998 { echo "$as_me:$LINENO: result: no" >&5
4999 echo "${ECHO_T}no" >&6; }
5000 fi
5001
5002 if test "x$ac_ct_RANLIB" = x; then
5003 RANLIB=":"
5004 else
5005 case $cross_compiling:$ac_tool_warned in
5006 yes:)
5007 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5008 whose name does not start with the host triplet. If you think this
5009 configuration is useful to you, please write to autoconf@gnu.org." >&5
5010 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5011 whose name does not start with the host triplet. If you think this
5012 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5013 ac_tool_warned=yes ;;
5014 esac
5015 RANLIB=$ac_ct_RANLIB
5016 fi
5017 else
5018 RANLIB="$ac_cv_prog_RANLIB"
5019 fi
5020
5021
5022 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5023 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
5024 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027 ac_check_lib_save_LIBS=$LIBS
5028 LIBS="-lcposix $LIBS"
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
5036 /* Override any GCC internal prototype to avoid an error.
5037 Use char because int might match the return type of a GCC
5038 builtin and then its argument prototype would still apply. */
5039 #ifdef __cplusplus
5040 extern "C"
5041 #endif
5042 char strerror ();
5043 int
5044 main ()
5045 {
5046 return strerror ();
5047 ;
5048 return 0;
5049 }
5050 _ACEOF
5051 rm -f conftest.$ac_objext conftest$ac_exeext
5052 if { (ac_try="$ac_link"
5053 case "(($ac_try" in
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5056 esac
5057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058 (eval "$ac_link") 2>conftest.er1
5059 ac_status=$?
5060 grep -v '^ *+' conftest.er1 >conftest.err
5061 rm -f conftest.er1
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } && {
5065 test -z "$ac_c_werror_flag" ||
5066 test ! -s conftest.err
5067 } && test -s conftest$ac_exeext &&
5068 $as_test_x conftest$ac_exeext; then
5069 ac_cv_lib_cposix_strerror=yes
5070 else
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5073
5074 ac_cv_lib_cposix_strerror=no
5075 fi
5076
5077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5078 conftest$ac_exeext conftest.$ac_ext
5079 LIBS=$ac_check_lib_save_LIBS
5080 fi
5081 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5082 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5083 if test $ac_cv_lib_cposix_strerror = yes; then
5084 LIBS="$LIBS -lcposix"
5085 fi
5086
5087
5088
5089 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5090 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5091 if test "${ac_cv_c_const+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094 cat >conftest.$ac_ext <<_ACEOF
5095 /* confdefs.h. */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5100
5101 int
5102 main ()
5103 {
5104 /* FIXME: Include the comments suggested by Paul. */
5105 #ifndef __cplusplus
5106 /* Ultrix mips cc rejects this. */
5107 typedef int charset[2];
5108 const charset cs;
5109 /* SunOS 4.1.1 cc rejects this. */
5110 char const *const *pcpcc;
5111 char **ppc;
5112 /* NEC SVR4.0.2 mips cc rejects this. */
5113 struct point {int x, y;};
5114 static struct point const zero = {0,0};
5115 /* AIX XL C 1.02.0.0 rejects this.
5116 It does not let you subtract one const X* pointer from another in
5117 an arm of an if-expression whose if-part is not a constant
5118 expression */
5119 const char *g = "string";
5120 pcpcc = &g + (g ? g-g : 0);
5121 /* HPUX 7.0 cc rejects these. */
5122 ++pcpcc;
5123 ppc = (char**) pcpcc;
5124 pcpcc = (char const *const *) ppc;
5125 { /* SCO 3.2v4 cc rejects this. */
5126 char *t;
5127 char const *s = 0 ? (char *) 0 : (char const *) 0;
5128
5129 *t++ = 0;
5130 if (s) return 0;
5131 }
5132 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5133 int x[] = {25, 17};
5134 const int *foo = &x[0];
5135 ++foo;
5136 }
5137 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5138 typedef const int *iptr;
5139 iptr p = 0;
5140 ++p;
5141 }
5142 { /* AIX XL C 1.02.0.0 rejects this saying
5143 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5144 struct s { int j; const int *ap[3]; };
5145 struct s *b; b->j = 5;
5146 }
5147 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5148 const int foo = 10;
5149 if (!foo) return 0;
5150 }
5151 return !cs[0] && !zero.x;
5152 #endif
5153
5154 ;
5155 return 0;
5156 }
5157 _ACEOF
5158 rm -f conftest.$ac_objext
5159 if { (ac_try="$ac_compile"
5160 case "(($ac_try" in
5161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162 *) ac_try_echo=$ac_try;;
5163 esac
5164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5165 (eval "$ac_compile") 2>conftest.er1
5166 ac_status=$?
5167 grep -v '^ *+' conftest.er1 >conftest.err
5168 rm -f conftest.er1
5169 cat conftest.err >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } && {
5172 test -z "$ac_c_werror_flag" ||
5173 test ! -s conftest.err
5174 } && test -s conftest.$ac_objext; then
5175 ac_cv_c_const=yes
5176 else
5177 echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5179
5180 ac_cv_c_const=no
5181 fi
5182
5183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184 fi
5185 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5186 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5187 if test $ac_cv_c_const = no; then
5188
5189 cat >>confdefs.h <<\_ACEOF
5190 #define const
5191 _ACEOF
5192
5193 fi
5194
5195
5196 { echo "$as_me:$LINENO: checking for signed" >&5
5197 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5198 if test "${bh_cv_c_signed+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201 cat >conftest.$ac_ext <<_ACEOF
5202 /* confdefs.h. */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5207
5208 int
5209 main ()
5210 {
5211 signed char x;
5212 ;
5213 return 0;
5214 }
5215 _ACEOF
5216 rm -f conftest.$ac_objext
5217 if { (ac_try="$ac_compile"
5218 case "(($ac_try" in
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5221 esac
5222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223 (eval "$ac_compile") 2>conftest.er1
5224 ac_status=$?
5225 grep -v '^ *+' conftest.er1 >conftest.err
5226 rm -f conftest.er1
5227 cat conftest.err >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } && {
5230 test -z "$ac_c_werror_flag" ||
5231 test ! -s conftest.err
5232 } && test -s conftest.$ac_objext; then
5233 bh_cv_c_signed=yes
5234 else
5235 echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5237
5238 bh_cv_c_signed=no
5239 fi
5240
5241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242 fi
5243 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5244 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5245 if test $bh_cv_c_signed = no; then
5246
5247 cat >>confdefs.h <<\_ACEOF
5248 #define signed
5249 _ACEOF
5250
5251 fi
5252
5253 { echo "$as_me:$LINENO: checking for inline" >&5
5254 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5255 if test "${ac_cv_c_inline+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258 ac_cv_c_inline=no
5259 for ac_kw in inline __inline__ __inline; do
5260 cat >conftest.$ac_ext <<_ACEOF
5261 /* confdefs.h. */
5262 _ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 #ifndef __cplusplus
5267 typedef int foo_t;
5268 static $ac_kw foo_t static_foo () {return 0; }
5269 $ac_kw foo_t foo () {return 0; }
5270 #endif
5271
5272 _ACEOF
5273 rm -f conftest.$ac_objext
5274 if { (ac_try="$ac_compile"
5275 case "(($ac_try" in
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5278 esac
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280 (eval "$ac_compile") 2>conftest.er1
5281 ac_status=$?
5282 grep -v '^ *+' conftest.er1 >conftest.err
5283 rm -f conftest.er1
5284 cat conftest.err >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } && {
5287 test -z "$ac_c_werror_flag" ||
5288 test ! -s conftest.err
5289 } && test -s conftest.$ac_objext; then
5290 ac_cv_c_inline=$ac_kw
5291 else
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5294
5295
5296 fi
5297
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299 test "$ac_cv_c_inline" != no && break
5300 done
5301
5302 fi
5303 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5304 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5305
5306
5307 case $ac_cv_c_inline in
5308 inline | yes) ;;
5309 *)
5310 case $ac_cv_c_inline in
5311 no) ac_val=;;
5312 *) ac_val=$ac_cv_c_inline;;
5313 esac
5314 cat >>confdefs.h <<_ACEOF
5315 #ifndef __cplusplus
5316 #define inline $ac_val
5317 #endif
5318 _ACEOF
5319 ;;
5320 esac
5321
5322 { echo "$as_me:$LINENO: checking for off_t" >&5
5323 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5324 if test "${ac_cv_type_off_t+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 else
5327 cat >conftest.$ac_ext <<_ACEOF
5328 /* confdefs.h. */
5329 _ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h. */
5333 $ac_includes_default
5334 typedef off_t ac__type_new_;
5335 int
5336 main ()
5337 {
5338 if ((ac__type_new_ *) 0)
5339 return 0;
5340 if (sizeof (ac__type_new_))
5341 return 0;
5342 ;
5343 return 0;
5344 }
5345 _ACEOF
5346 rm -f conftest.$ac_objext
5347 if { (ac_try="$ac_compile"
5348 case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5351 esac
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_compile") 2>conftest.er1
5354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } && {
5360 test -z "$ac_c_werror_flag" ||
5361 test ! -s conftest.err
5362 } && test -s conftest.$ac_objext; then
5363 ac_cv_type_off_t=yes
5364 else
5365 echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5367
5368 ac_cv_type_off_t=no
5369 fi
5370
5371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372 fi
5373 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5374 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5375 if test $ac_cv_type_off_t = yes; then
5376 :
5377 else
5378
5379 cat >>confdefs.h <<_ACEOF
5380 #define off_t long int
5381 _ACEOF
5382
5383 fi
5384
5385 { echo "$as_me:$LINENO: checking for size_t" >&5
5386 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5387 if test "${ac_cv_type_size_t+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390 cat >conftest.$ac_ext <<_ACEOF
5391 /* confdefs.h. */
5392 _ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h. */
5396 $ac_includes_default
5397 typedef size_t ac__type_new_;
5398 int
5399 main ()
5400 {
5401 if ((ac__type_new_ *) 0)
5402 return 0;
5403 if (sizeof (ac__type_new_))
5404 return 0;
5405 ;
5406 return 0;
5407 }
5408 _ACEOF
5409 rm -f conftest.$ac_objext
5410 if { (ac_try="$ac_compile"
5411 case "(($ac_try" in
5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5414 esac
5415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416 (eval "$ac_compile") 2>conftest.er1
5417 ac_status=$?
5418 grep -v '^ *+' conftest.er1 >conftest.err
5419 rm -f conftest.er1
5420 cat conftest.err >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } && {
5423 test -z "$ac_c_werror_flag" ||
5424 test ! -s conftest.err
5425 } && test -s conftest.$ac_objext; then
5426 ac_cv_type_size_t=yes
5427 else
5428 echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5430
5431 ac_cv_type_size_t=no
5432 fi
5433
5434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435 fi
5436 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5437 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5438 if test $ac_cv_type_size_t = yes; then
5439 :
5440 else
5441
5442 cat >>confdefs.h <<_ACEOF
5443 #define size_t unsigned int
5444 _ACEOF
5445
5446 fi
5447
5448
5449 { echo "$as_me:$LINENO: checking for long long" >&5
5450 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5451 if test "${ac_cv_type_long_long+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 else
5454 cat >conftest.$ac_ext <<_ACEOF
5455 /* confdefs.h. */
5456 _ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5460 long long ll = 1LL; int i = 63;
5461 int
5462 main ()
5463 {
5464 long long llmax = (long long) -1;
5465 return ll << i | ll >> i | llmax / ll | llmax % ll;
5466 ;
5467 return 0;
5468 }
5469 _ACEOF
5470 rm -f conftest.$ac_objext conftest$ac_exeext
5471 if { (ac_try="$ac_link"
5472 case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5475 esac
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_link") 2>conftest.er1
5478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } && {
5484 test -z "$ac_c_werror_flag" ||
5485 test ! -s conftest.err
5486 } && test -s conftest$ac_exeext &&
5487 $as_test_x conftest$ac_exeext; then
5488 ac_cv_type_long_long=yes
5489 else
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5492
5493 ac_cv_type_long_long=no
5494 fi
5495
5496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5497 conftest$ac_exeext conftest.$ac_ext
5498 fi
5499 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5500 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5501 if test $ac_cv_type_long_long = yes; then
5502
5503 cat >>confdefs.h <<\_ACEOF
5504 #define HAVE_LONG_LONG 1
5505 _ACEOF
5506
5507 fi
5508
5509
5510 { echo "$as_me:$LINENO: checking for long double" >&5
5511 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5512 if test "${gt_cv_c_long_double+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515 if test "$GCC" = yes; then
5516 gt_cv_c_long_double=yes
5517 else
5518 cat >conftest.$ac_ext <<_ACEOF
5519 /* confdefs.h. */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5524
5525 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5526 long double foo = 0.0;
5527 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5528 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5529
5530 int
5531 main ()
5532 {
5533
5534 ;
5535 return 0;
5536 }
5537 _ACEOF
5538 rm -f conftest.$ac_objext
5539 if { (ac_try="$ac_compile"
5540 case "(($ac_try" in
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5543 esac
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_compile") 2>conftest.er1
5546 ac_status=$?
5547 grep -v '^ *+' conftest.er1 >conftest.err
5548 rm -f conftest.er1
5549 cat conftest.err >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } && {
5552 test -z "$ac_c_werror_flag" ||
5553 test ! -s conftest.err
5554 } && test -s conftest.$ac_objext; then
5555 gt_cv_c_long_double=yes
5556 else
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5559
5560 gt_cv_c_long_double=no
5561 fi
5562
5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564 fi
5565 fi
5566 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5567 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5568 if test $gt_cv_c_long_double = yes; then
5569
5570 cat >>confdefs.h <<\_ACEOF
5571 #define HAVE_LONG_DOUBLE 1
5572 _ACEOF
5573
5574 fi
5575
5576
5577 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5578 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5579 if test "${gt_cv_c_wchar_t+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582 cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h. */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 #include <stddef.h>
5589 wchar_t foo = (wchar_t)'\0';
5590 int
5591 main ()
5592 {
5593
5594 ;
5595 return 0;
5596 }
5597 _ACEOF
5598 rm -f conftest.$ac_objext
5599 if { (ac_try="$ac_compile"
5600 case "(($ac_try" in
5601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602 *) ac_try_echo=$ac_try;;
5603 esac
5604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605 (eval "$ac_compile") 2>conftest.er1
5606 ac_status=$?
5607 grep -v '^ *+' conftest.er1 >conftest.err
5608 rm -f conftest.er1
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } && {
5612 test -z "$ac_c_werror_flag" ||
5613 test ! -s conftest.err
5614 } && test -s conftest.$ac_objext; then
5615 gt_cv_c_wchar_t=yes
5616 else
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5619
5620 gt_cv_c_wchar_t=no
5621 fi
5622
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 fi
5625 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5626 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5627 if test $gt_cv_c_wchar_t = yes; then
5628
5629 cat >>confdefs.h <<\_ACEOF
5630 #define HAVE_WCHAR_T 1
5631 _ACEOF
5632
5633 fi
5634
5635
5636 { echo "$as_me:$LINENO: checking for wint_t" >&5
5637 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5638 if test "${gt_cv_c_wint_t+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641 cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h. */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 #include <wchar.h>
5648 wint_t foo = (wchar_t)'\0';
5649 int
5650 main ()
5651 {
5652
5653 ;
5654 return 0;
5655 }
5656 _ACEOF
5657 rm -f conftest.$ac_objext
5658 if { (ac_try="$ac_compile"
5659 case "(($ac_try" in
5660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5662 esac
5663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664 (eval "$ac_compile") 2>conftest.er1
5665 ac_status=$?
5666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } && {
5671 test -z "$ac_c_werror_flag" ||
5672 test ! -s conftest.err
5673 } && test -s conftest.$ac_objext; then
5674 gt_cv_c_wint_t=yes
5675 else
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5678
5679 gt_cv_c_wint_t=no
5680 fi
5681
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 fi
5684 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5685 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5686 if test $gt_cv_c_wint_t = yes; then
5687
5688 cat >>confdefs.h <<\_ACEOF
5689 #define HAVE_WINT_T 1
5690 _ACEOF
5691
5692 fi
5693
5694
5695 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5696 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5697 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700 cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h. */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 #include <sys/types.h>
5707 #include <inttypes.h>
5708 int
5709 main ()
5710 {
5711 uintmax_t i = (uintmax_t) -1;
5712 ;
5713 return 0;
5714 }
5715 _ACEOF
5716 rm -f conftest.$ac_objext
5717 if { (ac_try="$ac_compile"
5718 case "(($ac_try" in
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5721 esac
5722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723 (eval "$ac_compile") 2>conftest.er1
5724 ac_status=$?
5725 grep -v '^ *+' conftest.er1 >conftest.err
5726 rm -f conftest.er1
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } && {
5730 test -z "$ac_c_werror_flag" ||
5731 test ! -s conftest.err
5732 } && test -s conftest.$ac_objext; then
5733 jm_ac_cv_header_inttypes_h=yes
5734 else
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5737
5738 jm_ac_cv_header_inttypes_h=no
5739 fi
5740
5741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742 fi
5743 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5744 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5745 if test $jm_ac_cv_header_inttypes_h = yes; then
5746
5747 cat >>confdefs.h <<_ACEOF
5748 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5749 _ACEOF
5750
5751 fi
5752
5753
5754 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5755 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5756 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759 cat >conftest.$ac_ext <<_ACEOF
5760 /* confdefs.h. */
5761 _ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h. */
5765 #include <sys/types.h>
5766 #include <stdint.h>
5767 int
5768 main ()
5769 {
5770 uintmax_t i = (uintmax_t) -1;
5771 ;
5772 return 0;
5773 }
5774 _ACEOF
5775 rm -f conftest.$ac_objext
5776 if { (ac_try="$ac_compile"
5777 case "(($ac_try" in
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5780 esac
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_compile") 2>conftest.er1
5783 ac_status=$?
5784 grep -v '^ *+' conftest.er1 >conftest.err
5785 rm -f conftest.er1
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } && {
5789 test -z "$ac_c_werror_flag" ||
5790 test ! -s conftest.err
5791 } && test -s conftest.$ac_objext; then
5792 jm_ac_cv_header_stdint_h=yes
5793 else
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5796
5797 jm_ac_cv_header_stdint_h=no
5798 fi
5799
5800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801 fi
5802 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5803 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5804 if test $jm_ac_cv_header_stdint_h = yes; then
5805
5806 cat >>confdefs.h <<_ACEOF
5807 #define HAVE_STDINT_H_WITH_UINTMAX 1
5808 _ACEOF
5809
5810 fi
5811
5812
5813
5814
5815 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5816 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5817 if test "${gt_cv_c_intmax_t+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820 cat >conftest.$ac_ext <<_ACEOF
5821 /* confdefs.h. */
5822 _ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5826
5827 #include <stddef.h>
5828 #include <stdlib.h>
5829 #if HAVE_STDINT_H_WITH_UINTMAX
5830 #include <stdint.h>
5831 #endif
5832 #if HAVE_INTTYPES_H_WITH_UINTMAX
5833 #include <inttypes.h>
5834 #endif
5835
5836 int
5837 main ()
5838 {
5839 intmax_t x = -1;
5840 ;
5841 return 0;
5842 }
5843 _ACEOF
5844 rm -f conftest.$ac_objext
5845 if { (ac_try="$ac_compile"
5846 case "(($ac_try" in
5847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848 *) ac_try_echo=$ac_try;;
5849 esac
5850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851 (eval "$ac_compile") 2>conftest.er1
5852 ac_status=$?
5853 grep -v '^ *+' conftest.er1 >conftest.err
5854 rm -f conftest.er1
5855 cat conftest.err >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } && {
5858 test -z "$ac_c_werror_flag" ||
5859 test ! -s conftest.err
5860 } && test -s conftest.$ac_objext; then
5861 gt_cv_c_intmax_t=yes
5862 else
5863 echo "$as_me: failed program was:" >&5
5864 sed 's/^/| /' conftest.$ac_ext >&5
5865
5866 gt_cv_c_intmax_t=no
5867 fi
5868
5869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870 fi
5871 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5872 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5873 if test $gt_cv_c_intmax_t = yes; then
5874
5875 cat >>confdefs.h <<\_ACEOF
5876 #define HAVE_INTMAX_T 1
5877 _ACEOF
5878
5879 fi
5880
5881
5882
5883 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5884 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5885 if test "${gt_cv_func_printf_posix+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888
5889 if test "$cross_compiling" = yes; then
5890
5891 cat >conftest.$ac_ext <<_ACEOF
5892 /* confdefs.h. */
5893 _ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5897
5898 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5899 notposix
5900 #endif
5901
5902 _ACEOF
5903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5904 $EGREP "notposix" >/dev/null 2>&1; then
5905 gt_cv_func_printf_posix="guessing no"
5906 else
5907 gt_cv_func_printf_posix="guessing yes"
5908 fi
5909 rm -f conftest*
5910
5911
5912 else
5913 cat >conftest.$ac_ext <<_ACEOF
5914 /* confdefs.h. */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919
5920 #include <stdio.h>
5921 #include <string.h>
5922 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5923 dollar expansion (possibly an autoconf bug). */
5924 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5925 static char buf[100];
5926 int main ()
5927 {
5928 sprintf (buf, format, 33, 55);
5929 return (strcmp (buf, "55 33") != 0);
5930 }
5931 _ACEOF
5932 rm -f conftest$ac_exeext
5933 if { (ac_try="$ac_link"
5934 case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937 esac
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_link") 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5943 { (case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5946 esac
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_try") 2>&5
5949 ac_status=$?
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5952 gt_cv_func_printf_posix=yes
5953 else
5954 echo "$as_me: program exited with status $ac_status" >&5
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5957
5958 ( exit $ac_status )
5959 gt_cv_func_printf_posix=no
5960 fi
5961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5962 fi
5963
5964
5965
5966 fi
5967 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5968 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5969 case $gt_cv_func_printf_posix in
5970 *yes)
5971
5972 cat >>confdefs.h <<\_ACEOF
5973 #define HAVE_POSIX_PRINTF 1
5974 _ACEOF
5975
5976 ;;
5977 esac
5978
5979 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5980 # for constant arguments. Useless!
5981 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5982 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5983 if test "${ac_cv_working_alloca_h+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986 cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h. */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5992 #include <alloca.h>
5993 int
5994 main ()
5995 {
5996 char *p = (char *) alloca (2 * sizeof (int));
5997 if (p) return 0;
5998 ;
5999 return 0;
6000 }
6001 _ACEOF
6002 rm -f conftest.$ac_objext conftest$ac_exeext
6003 if { (ac_try="$ac_link"
6004 case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6007 esac
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_link") 2>conftest.er1
6010 ac_status=$?
6011 grep -v '^ *+' conftest.er1 >conftest.err
6012 rm -f conftest.er1
6013 cat conftest.err >&5
6014 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_exeext &&
6019 $as_test_x conftest$ac_exeext; then
6020 ac_cv_working_alloca_h=yes
6021 else
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6024
6025 ac_cv_working_alloca_h=no
6026 fi
6027
6028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6029 conftest$ac_exeext conftest.$ac_ext
6030 fi
6031 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6032 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6033 if test $ac_cv_working_alloca_h = yes; then
6034
6035 cat >>confdefs.h <<\_ACEOF
6036 #define HAVE_ALLOCA_H 1
6037 _ACEOF
6038
6039 fi
6040
6041 { echo "$as_me:$LINENO: checking for alloca" >&5
6042 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6043 if test "${ac_cv_func_alloca_works+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046 cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h. */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 #ifdef __GNUC__
6053 # define alloca __builtin_alloca
6054 #else
6055 # ifdef _MSC_VER
6056 # include <malloc.h>
6057 # define alloca _alloca
6058 # else
6059 # ifdef HAVE_ALLOCA_H
6060 # include <alloca.h>
6061 # else
6062 # ifdef _AIX
6063 #pragma alloca
6064 # else
6065 # ifndef alloca /* predefined by HP cc +Olibcalls */
6066 char *alloca ();
6067 # endif
6068 # endif
6069 # endif
6070 # endif
6071 #endif
6072
6073 int
6074 main ()
6075 {
6076 char *p = (char *) alloca (1);
6077 if (p) return 0;
6078 ;
6079 return 0;
6080 }
6081 _ACEOF
6082 rm -f conftest.$ac_objext conftest$ac_exeext
6083 if { (ac_try="$ac_link"
6084 case "(($ac_try" in
6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086 *) ac_try_echo=$ac_try;;
6087 esac
6088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089 (eval "$ac_link") 2>conftest.er1
6090 ac_status=$?
6091 grep -v '^ *+' conftest.er1 >conftest.err
6092 rm -f conftest.er1
6093 cat conftest.err >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } && {
6096 test -z "$ac_c_werror_flag" ||
6097 test ! -s conftest.err
6098 } && test -s conftest$ac_exeext &&
6099 $as_test_x conftest$ac_exeext; then
6100 ac_cv_func_alloca_works=yes
6101 else
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6104
6105 ac_cv_func_alloca_works=no
6106 fi
6107
6108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6109 conftest$ac_exeext conftest.$ac_ext
6110 fi
6111 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6112 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6113
6114 if test $ac_cv_func_alloca_works = yes; then
6115
6116 cat >>confdefs.h <<\_ACEOF
6117 #define HAVE_ALLOCA 1
6118 _ACEOF
6119
6120 else
6121 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6122 # that cause trouble. Some versions do not even contain alloca or
6123 # contain a buggy version. If you still want to use their alloca,
6124 # use ar to extract alloca.o from them instead of compiling alloca.c.
6125
6126 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6127
6128 cat >>confdefs.h <<\_ACEOF
6129 #define C_ALLOCA 1
6130 _ACEOF
6131
6132
6133 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6134 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6135 if test "${ac_cv_os_cray+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138 cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h. */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 #if defined CRAY && ! defined CRAY2
6145 webecray
6146 #else
6147 wenotbecray
6148 #endif
6149
6150 _ACEOF
6151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6152 $EGREP "webecray" >/dev/null 2>&1; then
6153 ac_cv_os_cray=yes
6154 else
6155 ac_cv_os_cray=no
6156 fi
6157 rm -f conftest*
6158
6159 fi
6160 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6161 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6162 if test $ac_cv_os_cray = yes; then
6163 for ac_func in _getb67 GETB67 getb67; do
6164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170 cat >conftest.$ac_ext <<_ACEOF
6171 /* confdefs.h. */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6178 #define $ac_func innocuous_$ac_func
6179
6180 /* System header to define __stub macros and hopefully few prototypes,
6181 which can conflict with char $ac_func (); below.
6182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6183 <limits.h> exists even on freestanding compilers. */
6184
6185 #ifdef __STDC__
6186 # include <limits.h>
6187 #else
6188 # include <assert.h>
6189 #endif
6190
6191 #undef $ac_func
6192
6193 /* Override any GCC internal prototype to avoid an error.
6194 Use char because int might match the return type of a GCC
6195 builtin and then its argument prototype would still apply. */
6196 #ifdef __cplusplus
6197 extern "C"
6198 #endif
6199 char $ac_func ();
6200 /* The GNU C library defines this for functions which it implements
6201 to always fail with ENOSYS. Some functions are actually named
6202 something starting with __ and the normal name is an alias. */
6203 #if defined __stub_$ac_func || defined __stub___$ac_func
6204 choke me
6205 #endif
6206
6207 int
6208 main ()
6209 {
6210 return $ac_func ();
6211 ;
6212 return 0;
6213 }
6214 _ACEOF
6215 rm -f conftest.$ac_objext conftest$ac_exeext
6216 if { (ac_try="$ac_link"
6217 case "(($ac_try" in
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6220 esac
6221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_link") 2>conftest.er1
6223 ac_status=$?
6224 grep -v '^ *+' conftest.er1 >conftest.err
6225 rm -f conftest.er1
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } && {
6229 test -z "$ac_c_werror_flag" ||
6230 test ! -s conftest.err
6231 } && test -s conftest$ac_exeext &&
6232 $as_test_x conftest$ac_exeext; then
6233 eval "$as_ac_var=yes"
6234 else
6235 echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6237
6238 eval "$as_ac_var=no"
6239 fi
6240
6241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6242 conftest$ac_exeext conftest.$ac_ext
6243 fi
6244 ac_res=`eval echo '${'$as_ac_var'}'`
6245 { echo "$as_me:$LINENO: result: $ac_res" >&5
6246 echo "${ECHO_T}$ac_res" >&6; }
6247 if test `eval echo '${'$as_ac_var'}'` = yes; then
6248
6249 cat >>confdefs.h <<_ACEOF
6250 #define CRAY_STACKSEG_END $ac_func
6251 _ACEOF
6252
6253 break
6254 fi
6255
6256 done
6257 fi
6258
6259 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6260 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6261 if test "${ac_cv_c_stack_direction+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264 if test "$cross_compiling" = yes; then
6265 ac_cv_c_stack_direction=0
6266 else
6267 cat >conftest.$ac_ext <<_ACEOF
6268 /* confdefs.h. */
6269 _ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6273 $ac_includes_default
6274 int
6275 find_stack_direction ()
6276 {
6277 static char *addr = 0;
6278 auto char dummy;
6279 if (addr == 0)
6280 {
6281 addr = &dummy;
6282 return find_stack_direction ();
6283 }
6284 else
6285 return (&dummy > addr) ? 1 : -1;
6286 }
6287
6288 int
6289 main ()
6290 {
6291 return find_stack_direction () < 0;
6292 }
6293 _ACEOF
6294 rm -f conftest$ac_exeext
6295 if { (ac_try="$ac_link"
6296 case "(($ac_try" in
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6299 esac
6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 (eval "$ac_link") 2>&5
6302 ac_status=$?
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6305 { (case "(($ac_try" in
6306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307 *) ac_try_echo=$ac_try;;
6308 esac
6309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310 (eval "$ac_try") 2>&5
6311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; }; then
6314 ac_cv_c_stack_direction=1
6315 else
6316 echo "$as_me: program exited with status $ac_status" >&5
6317 echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6319
6320 ( exit $ac_status )
6321 ac_cv_c_stack_direction=-1
6322 fi
6323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6324 fi
6325
6326
6327 fi
6328 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6329 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6330
6331 cat >>confdefs.h <<_ACEOF
6332 #define STACK_DIRECTION $ac_cv_c_stack_direction
6333 _ACEOF
6334
6335
6336 fi
6337
6338
6339
6340 for ac_header in stdlib.h unistd.h
6341 do
6342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 fi
6349 ac_res=`eval echo '${'$as_ac_Header'}'`
6350 { echo "$as_me:$LINENO: result: $ac_res" >&5
6351 echo "${ECHO_T}$ac_res" >&6; }
6352 else
6353 # Is the header compilable?
6354 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6356 cat >conftest.$ac_ext <<_ACEOF
6357 /* confdefs.h. */
6358 _ACEOF
6359 cat confdefs.h >>conftest.$ac_ext
6360 cat >>conftest.$ac_ext <<_ACEOF
6361 /* end confdefs.h. */
6362 $ac_includes_default
6363 #include <$ac_header>
6364 _ACEOF
6365 rm -f conftest.$ac_objext
6366 if { (ac_try="$ac_compile"
6367 case "(($ac_try" in
6368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6369 *) ac_try_echo=$ac_try;;
6370 esac
6371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6372 (eval "$ac_compile") 2>conftest.er1
6373 ac_status=$?
6374 grep -v '^ *+' conftest.er1 >conftest.err
6375 rm -f conftest.er1
6376 cat conftest.err >&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); } && {
6379 test -z "$ac_c_werror_flag" ||
6380 test ! -s conftest.err
6381 } && test -s conftest.$ac_objext; then
6382 ac_header_compiler=yes
6383 else
6384 echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6386
6387 ac_header_compiler=no
6388 fi
6389
6390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6392 echo "${ECHO_T}$ac_header_compiler" >&6; }
6393
6394 # Is the header present?
6395 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
6404 _ACEOF
6405 if { (ac_try="$ac_cpp conftest.$ac_ext"
6406 case "(($ac_try" in
6407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408 *) ac_try_echo=$ac_try;;
6409 esac
6410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6412 ac_status=$?
6413 grep -v '^ *+' conftest.er1 >conftest.err
6414 rm -f conftest.er1
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } >/dev/null && {
6418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6419 test ! -s conftest.err
6420 }; then
6421 ac_header_preproc=yes
6422 else
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6425
6426 ac_header_preproc=no
6427 fi
6428
6429 rm -f conftest.err conftest.$ac_ext
6430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6431 echo "${ECHO_T}$ac_header_preproc" >&6; }
6432
6433 # So? What about this header?
6434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6435 yes:no: )
6436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6440 ac_header_preproc=yes
6441 ;;
6442 no:yes:* )
6443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6455
6456 ;;
6457 esac
6458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463 eval "$as_ac_Header=\$ac_header_preproc"
6464 fi
6465 ac_res=`eval echo '${'$as_ac_Header'}'`
6466 { echo "$as_me:$LINENO: result: $ac_res" >&5
6467 echo "${ECHO_T}$ac_res" >&6; }
6468
6469 fi
6470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6471 cat >>confdefs.h <<_ACEOF
6472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6473 _ACEOF
6474
6475 fi
6476
6477 done
6478
6479
6480 for ac_func in getpagesize
6481 do
6482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6483 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 else
6488 cat >conftest.$ac_ext <<_ACEOF
6489 /* confdefs.h. */
6490 _ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h. */
6494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6496 #define $ac_func innocuous_$ac_func
6497
6498 /* System header to define __stub macros and hopefully few prototypes,
6499 which can conflict with char $ac_func (); below.
6500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6501 <limits.h> exists even on freestanding compilers. */
6502
6503 #ifdef __STDC__
6504 # include <limits.h>
6505 #else
6506 # include <assert.h>
6507 #endif
6508
6509 #undef $ac_func
6510
6511 /* Override any GCC internal prototype to avoid an error.
6512 Use char because int might match the return type of a GCC
6513 builtin and then its argument prototype would still apply. */
6514 #ifdef __cplusplus
6515 extern "C"
6516 #endif
6517 char $ac_func ();
6518 /* The GNU C library defines this for functions which it implements
6519 to always fail with ENOSYS. Some functions are actually named
6520 something starting with __ and the normal name is an alias. */
6521 #if defined __stub_$ac_func || defined __stub___$ac_func
6522 choke me
6523 #endif
6524
6525 int
6526 main ()
6527 {
6528 return $ac_func ();
6529 ;
6530 return 0;
6531 }
6532 _ACEOF
6533 rm -f conftest.$ac_objext conftest$ac_exeext
6534 if { (ac_try="$ac_link"
6535 case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538 esac
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_link") 2>conftest.er1
6541 ac_status=$?
6542 grep -v '^ *+' conftest.er1 >conftest.err
6543 rm -f conftest.er1
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } && {
6547 test -z "$ac_c_werror_flag" ||
6548 test ! -s conftest.err
6549 } && test -s conftest$ac_exeext &&
6550 $as_test_x conftest$ac_exeext; then
6551 eval "$as_ac_var=yes"
6552 else
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 eval "$as_ac_var=no"
6557 fi
6558
6559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6560 conftest$ac_exeext conftest.$ac_ext
6561 fi
6562 ac_res=`eval echo '${'$as_ac_var'}'`
6563 { echo "$as_me:$LINENO: result: $ac_res" >&5
6564 echo "${ECHO_T}$ac_res" >&6; }
6565 if test `eval echo '${'$as_ac_var'}'` = yes; then
6566 cat >>confdefs.h <<_ACEOF
6567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6568 _ACEOF
6569
6570 fi
6571 done
6572
6573 { echo "$as_me:$LINENO: checking for working mmap" >&5
6574 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6575 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578 if test "$cross_compiling" = yes; then
6579 ac_cv_func_mmap_fixed_mapped=no
6580 else
6581 cat >conftest.$ac_ext <<_ACEOF
6582 /* confdefs.h. */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 $ac_includes_default
6588 /* malloc might have been renamed as rpl_malloc. */
6589 #undef malloc
6590
6591 /* Thanks to Mike Haertel and Jim Avera for this test.
6592 Here is a matrix of mmap possibilities:
6593 mmap private not fixed
6594 mmap private fixed at somewhere currently unmapped
6595 mmap private fixed at somewhere already mapped
6596 mmap shared not fixed
6597 mmap shared fixed at somewhere currently unmapped
6598 mmap shared fixed at somewhere already mapped
6599 For private mappings, we should verify that changes cannot be read()
6600 back from the file, nor mmap's back from the file at a different
6601 address. (There have been systems where private was not correctly
6602 implemented like the infamous i386 svr4.0, and systems where the
6603 VM page cache was not coherent with the file system buffer cache
6604 like early versions of FreeBSD and possibly contemporary NetBSD.)
6605 For shared mappings, we should conversely verify that changes get
6606 propagated back to all the places they're supposed to be.
6607
6608 Grep wants private fixed already mapped.
6609 The main things grep needs to know about mmap are:
6610 * does it exist and is it safe to write into the mmap'd area
6611 * how to use it (BSD variants) */
6612
6613 #include <fcntl.h>
6614 #include <sys/mman.h>
6615
6616 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6617 char *malloc ();
6618 #endif
6619
6620 /* This mess was copied from the GNU getpagesize.h. */
6621 #ifndef HAVE_GETPAGESIZE
6622 /* Assume that all systems that can run configure have sys/param.h. */
6623 # ifndef HAVE_SYS_PARAM_H
6624 # define HAVE_SYS_PARAM_H 1
6625 # endif
6626
6627 # ifdef _SC_PAGESIZE
6628 # define getpagesize() sysconf(_SC_PAGESIZE)
6629 # else /* no _SC_PAGESIZE */
6630 # ifdef HAVE_SYS_PARAM_H
6631 # include <sys/param.h>
6632 # ifdef EXEC_PAGESIZE
6633 # define getpagesize() EXEC_PAGESIZE
6634 # else /* no EXEC_PAGESIZE */
6635 # ifdef NBPG
6636 # define getpagesize() NBPG * CLSIZE
6637 # ifndef CLSIZE
6638 # define CLSIZE 1
6639 # endif /* no CLSIZE */
6640 # else /* no NBPG */
6641 # ifdef NBPC
6642 # define getpagesize() NBPC
6643 # else /* no NBPC */
6644 # ifdef PAGESIZE
6645 # define getpagesize() PAGESIZE
6646 # endif /* PAGESIZE */
6647 # endif /* no NBPC */
6648 # endif /* no NBPG */
6649 # endif /* no EXEC_PAGESIZE */
6650 # else /* no HAVE_SYS_PARAM_H */
6651 # define getpagesize() 8192 /* punt totally */
6652 # endif /* no HAVE_SYS_PARAM_H */
6653 # endif /* no _SC_PAGESIZE */
6654
6655 #endif /* no HAVE_GETPAGESIZE */
6656
6657 int
6658 main ()
6659 {
6660 char *data, *data2, *data3;
6661 int i, pagesize;
6662 int fd;
6663
6664 pagesize = getpagesize ();
6665
6666 /* First, make a file with some known garbage in it. */
6667 data = (char *) malloc (pagesize);
6668 if (!data)
6669 return 1;
6670 for (i = 0; i < pagesize; ++i)
6671 *(data + i) = rand ();
6672 umask (0);
6673 fd = creat ("conftest.mmap", 0600);
6674 if (fd < 0)
6675 return 1;
6676 if (write (fd, data, pagesize) != pagesize)
6677 return 1;
6678 close (fd);
6679
6680 /* Next, try to mmap the file at a fixed address which already has
6681 something else allocated at it. If we can, also make sure that
6682 we see the same garbage. */
6683 fd = open ("conftest.mmap", O_RDWR);
6684 if (fd < 0)
6685 return 1;
6686 data2 = (char *) malloc (2 * pagesize);
6687 if (!data2)
6688 return 1;
6689 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6690 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6691 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6692 return 1;
6693 for (i = 0; i < pagesize; ++i)
6694 if (*(data + i) != *(data2 + i))
6695 return 1;
6696
6697 /* Finally, make sure that changes to the mapped area do not
6698 percolate back to the file as seen by read(). (This is a bug on
6699 some variants of i386 svr4.0.) */
6700 for (i = 0; i < pagesize; ++i)
6701 *(data2 + i) = *(data2 + i) + 1;
6702 data3 = (char *) malloc (pagesize);
6703 if (!data3)
6704 return 1;
6705 if (read (fd, data3, pagesize) != pagesize)
6706 return 1;
6707 for (i = 0; i < pagesize; ++i)
6708 if (*(data + i) != *(data3 + i))
6709 return 1;
6710 close (fd);
6711 return 0;
6712 }
6713 _ACEOF
6714 rm -f conftest$ac_exeext
6715 if { (ac_try="$ac_link"
6716 case "(($ac_try" in
6717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6718 *) ac_try_echo=$ac_try;;
6719 esac
6720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6721 (eval "$ac_link") 2>&5
6722 ac_status=$?
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6725 { (case "(($ac_try" in
6726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727 *) ac_try_echo=$ac_try;;
6728 esac
6729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730 (eval "$ac_try") 2>&5
6731 ac_status=$?
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); }; }; then
6734 ac_cv_func_mmap_fixed_mapped=yes
6735 else
6736 echo "$as_me: program exited with status $ac_status" >&5
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6739
6740 ( exit $ac_status )
6741 ac_cv_func_mmap_fixed_mapped=no
6742 fi
6743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6744 fi
6745
6746
6747 fi
6748 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6749 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6750 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6751
6752 cat >>confdefs.h <<\_ACEOF
6753 #define HAVE_MMAP 1
6754 _ACEOF
6755
6756 fi
6757 rm -f conftest.mmap
6758
6759
6760 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6761 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6762 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765 cat >conftest.$ac_ext <<_ACEOF
6766 /* confdefs.h. */
6767 _ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6771
6772 #include <features.h>
6773 #ifdef __GNU_LIBRARY__
6774 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6775 Lucky GNU user
6776 #endif
6777 #endif
6778
6779 _ACEOF
6780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6781 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6782 ac_cv_gnu_library_2_1=yes
6783 else
6784 ac_cv_gnu_library_2_1=no
6785 fi
6786 rm -f conftest*
6787
6788
6789
6790 fi
6791 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6792 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6793
6794 GLIBC21="$ac_cv_gnu_library_2_1"
6795
6796
6797
6798
6799 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6800 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6801 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 else
6804
6805 if test "$cross_compiling" = yes; then
6806
6807 # Guess based on the CPU.
6808 case "$host_cpu" in
6809 alpha* | i3456786 | m68k | s390*)
6810 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6811 *)
6812 gt_cv_int_divbyzero_sigfpe="guessing no";;
6813 esac
6814
6815 else
6816 cat >conftest.$ac_ext <<_ACEOF
6817 /* confdefs.h. */
6818 _ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6822
6823 #include <stdlib.h>
6824 #include <signal.h>
6825
6826 static void
6827 #ifdef __cplusplus
6828 sigfpe_handler (int sig)
6829 #else
6830 sigfpe_handler (sig) int sig;
6831 #endif
6832 {
6833 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6834 exit (sig != SIGFPE);
6835 }
6836
6837 int x = 1;
6838 int y = 0;
6839 int z;
6840 int nan;
6841
6842 int main ()
6843 {
6844 signal (SIGFPE, sigfpe_handler);
6845 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6846 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6847 signal (SIGTRAP, sigfpe_handler);
6848 #endif
6849 /* Linux/SPARC yields signal SIGILL. */
6850 #if defined (__sparc__) && defined (__linux__)
6851 signal (SIGILL, sigfpe_handler);
6852 #endif
6853
6854 z = x / y;
6855 nan = y / y;
6856 exit (1);
6857 }
6858
6859 _ACEOF
6860 rm -f conftest$ac_exeext
6861 if { (ac_try="$ac_link"
6862 case "(($ac_try" in
6863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6865 esac
6866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867 (eval "$ac_link") 2>&5
6868 ac_status=$?
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6871 { (case "(($ac_try" in
6872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6873 *) ac_try_echo=$ac_try;;
6874 esac
6875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6876 (eval "$ac_try") 2>&5
6877 ac_status=$?
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; }; then
6880 gt_cv_int_divbyzero_sigfpe=yes
6881 else
6882 echo "$as_me: program exited with status $ac_status" >&5
6883 echo "$as_me: failed program was:" >&5
6884 sed 's/^/| /' conftest.$ac_ext >&5
6885
6886 ( exit $ac_status )
6887 gt_cv_int_divbyzero_sigfpe=no
6888 fi
6889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6890 fi
6891
6892
6893
6894 fi
6895 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6896 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6897 case "$gt_cv_int_divbyzero_sigfpe" in
6898 *yes) value=1;;
6899 *) value=0;;
6900 esac
6901
6902 cat >>confdefs.h <<_ACEOF
6903 #define INTDIV0_RAISES_SIGFPE $value
6904 _ACEOF
6905
6906
6907
6908 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6909 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6910 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 else
6913 cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h. */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919 unsigned long long ull = 1ULL; int i = 63;
6920 int
6921 main ()
6922 {
6923 unsigned long long ullmax = (unsigned long long) -1;
6924 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6925 ;
6926 return 0;
6927 }
6928 _ACEOF
6929 rm -f conftest.$ac_objext conftest$ac_exeext
6930 if { (ac_try="$ac_link"
6931 case "(($ac_try" in
6932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6933 *) ac_try_echo=$ac_try;;
6934 esac
6935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6936 (eval "$ac_link") 2>conftest.er1
6937 ac_status=$?
6938 grep -v '^ *+' conftest.er1 >conftest.err
6939 rm -f conftest.er1
6940 cat conftest.err >&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } && {
6943 test -z "$ac_c_werror_flag" ||
6944 test ! -s conftest.err
6945 } && test -s conftest$ac_exeext &&
6946 $as_test_x conftest$ac_exeext; then
6947 ac_cv_type_unsigned_long_long=yes
6948 else
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6951
6952 ac_cv_type_unsigned_long_long=no
6953 fi
6954
6955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6956 conftest$ac_exeext conftest.$ac_ext
6957 fi
6958 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6959 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6960 if test $ac_cv_type_unsigned_long_long = yes; then
6961
6962 cat >>confdefs.h <<\_ACEOF
6963 #define HAVE_UNSIGNED_LONG_LONG 1
6964 _ACEOF
6965
6966 fi
6967
6968
6969
6970
6971 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6972
6973 test $ac_cv_type_unsigned_long_long = yes \
6974 && ac_type='unsigned long long' \
6975 || ac_type='unsigned long'
6976
6977 cat >>confdefs.h <<_ACEOF
6978 #define uintmax_t $ac_type
6979 _ACEOF
6980
6981 else
6982
6983 cat >>confdefs.h <<\_ACEOF
6984 #define HAVE_UINTMAX_T 1
6985 _ACEOF
6986
6987 fi
6988
6989
6990 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6991 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6992 if test "${gt_cv_header_inttypes_h+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995
6996 cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h. */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7002 #include <sys/types.h>
7003 #include <inttypes.h>
7004 int
7005 main ()
7006 {
7007
7008 ;
7009 return 0;
7010 }
7011 _ACEOF
7012 rm -f conftest.$ac_objext
7013 if { (ac_try="$ac_compile"
7014 case "(($ac_try" in
7015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7016 *) ac_try_echo=$ac_try;;
7017 esac
7018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019 (eval "$ac_compile") 2>conftest.er1
7020 ac_status=$?
7021 grep -v '^ *+' conftest.er1 >conftest.err
7022 rm -f conftest.er1
7023 cat conftest.err >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } && {
7026 test -z "$ac_c_werror_flag" ||
7027 test ! -s conftest.err
7028 } && test -s conftest.$ac_objext; then
7029 gt_cv_header_inttypes_h=yes
7030 else
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7033
7034 gt_cv_header_inttypes_h=no
7035 fi
7036
7037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7038
7039 fi
7040 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7041 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7042 if test $gt_cv_header_inttypes_h = yes; then
7043
7044 cat >>confdefs.h <<_ACEOF
7045 #define HAVE_INTTYPES_H 1
7046 _ACEOF
7047
7048 fi
7049
7050
7051
7052 if test $gt_cv_header_inttypes_h = yes; then
7053 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7054 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7055 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058
7059 cat >conftest.$ac_ext <<_ACEOF
7060 /* confdefs.h. */
7061 _ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7065 #include <inttypes.h>
7066 #ifdef PRId32
7067 char *p = PRId32;
7068 #endif
7069
7070 int
7071 main ()
7072 {
7073
7074 ;
7075 return 0;
7076 }
7077 _ACEOF
7078 rm -f conftest.$ac_objext
7079 if { (ac_try="$ac_compile"
7080 case "(($ac_try" in
7081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7082 *) ac_try_echo=$ac_try;;
7083 esac
7084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7085 (eval "$ac_compile") 2>conftest.er1
7086 ac_status=$?
7087 grep -v '^ *+' conftest.er1 >conftest.err
7088 rm -f conftest.er1
7089 cat conftest.err >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } && {
7092 test -z "$ac_c_werror_flag" ||
7093 test ! -s conftest.err
7094 } && test -s conftest.$ac_objext; then
7095 gt_cv_inttypes_pri_broken=no
7096 else
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7099
7100 gt_cv_inttypes_pri_broken=yes
7101 fi
7102
7103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104
7105 fi
7106 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7107 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7108 fi
7109 if test "$gt_cv_inttypes_pri_broken" = yes; then
7110
7111 cat >>confdefs.h <<_ACEOF
7112 #define PRI_MACROS_BROKEN 1
7113 _ACEOF
7114
7115 fi
7116
7117
7118
7119 for ac_header in stdint.h
7120 do
7121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 fi
7128 ac_res=`eval echo '${'$as_ac_Header'}'`
7129 { echo "$as_me:$LINENO: result: $ac_res" >&5
7130 echo "${ECHO_T}$ac_res" >&6; }
7131 else
7132 # Is the header compilable?
7133 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7135 cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h. */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7141 $ac_includes_default
7142 #include <$ac_header>
7143 _ACEOF
7144 rm -f conftest.$ac_objext
7145 if { (ac_try="$ac_compile"
7146 case "(($ac_try" in
7147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148 *) ac_try_echo=$ac_try;;
7149 esac
7150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7151 (eval "$ac_compile") 2>conftest.er1
7152 ac_status=$?
7153 grep -v '^ *+' conftest.er1 >conftest.err
7154 rm -f conftest.er1
7155 cat conftest.err >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } && {
7158 test -z "$ac_c_werror_flag" ||
7159 test ! -s conftest.err
7160 } && test -s conftest.$ac_objext; then
7161 ac_header_compiler=yes
7162 else
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7165
7166 ac_header_compiler=no
7167 fi
7168
7169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7171 echo "${ECHO_T}$ac_header_compiler" >&6; }
7172
7173 # Is the header present?
7174 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7176 cat >conftest.$ac_ext <<_ACEOF
7177 /* confdefs.h. */
7178 _ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h. */
7182 #include <$ac_header>
7183 _ACEOF
7184 if { (ac_try="$ac_cpp conftest.$ac_ext"
7185 case "(($ac_try" in
7186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187 *) ac_try_echo=$ac_try;;
7188 esac
7189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7191 ac_status=$?
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } >/dev/null && {
7197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7198 test ! -s conftest.err
7199 }; then
7200 ac_header_preproc=yes
7201 else
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7204
7205 ac_header_preproc=no
7206 fi
7207
7208 rm -f conftest.err conftest.$ac_ext
7209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7210 echo "${ECHO_T}$ac_header_preproc" >&6; }
7211
7212 # So? What about this header?
7213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7214 yes:no: )
7215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7219 ac_header_preproc=yes
7220 ;;
7221 no:yes:* )
7222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7229 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7234
7235 ;;
7236 esac
7237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242 eval "$as_ac_Header=\$ac_header_preproc"
7243 fi
7244 ac_res=`eval echo '${'$as_ac_Header'}'`
7245 { echo "$as_me:$LINENO: result: $ac_res" >&5
7246 echo "${ECHO_T}$ac_res" >&6; }
7247
7248 fi
7249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7250 cat >>confdefs.h <<_ACEOF
7251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7252 _ACEOF
7253
7254 fi
7255
7256 done
7257
7258 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7259 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7260 result=
7261 cat >conftest.$ac_ext <<_ACEOF
7262 /* confdefs.h. */
7263 _ACEOF
7264 cat confdefs.h >>conftest.$ac_ext
7265 cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7267
7268 #include <limits.h>
7269 #if HAVE_STDINT_H
7270 #include <stdint.h>
7271 #endif
7272 #ifdef SIZE_MAX
7273 Found it
7274 #endif
7275
7276 _ACEOF
7277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7278 $EGREP "Found it" >/dev/null 2>&1; then
7279 result=yes
7280 fi
7281 rm -f conftest*
7282
7283 if test -z "$result"; then
7284 if test "$cross_compiling" = yes; then
7285 # Depending upon the size, compute the lo and hi bounds.
7286 cat >conftest.$ac_ext <<_ACEOF
7287 /* confdefs.h. */
7288 _ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h. */
7292 #include <stddef.h>
7293 int
7294 main ()
7295 {
7296 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7297 test_array [0] = 0
7298
7299 ;
7300 return 0;
7301 }
7302 _ACEOF
7303 rm -f conftest.$ac_objext
7304 if { (ac_try="$ac_compile"
7305 case "(($ac_try" in
7306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7307 *) ac_try_echo=$ac_try;;
7308 esac
7309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7310 (eval "$ac_compile") 2>conftest.er1
7311 ac_status=$?
7312 grep -v '^ *+' conftest.er1 >conftest.err
7313 rm -f conftest.er1
7314 cat conftest.err >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } && {
7317 test -z "$ac_c_werror_flag" ||
7318 test ! -s conftest.err
7319 } && test -s conftest.$ac_objext; then
7320 ac_lo=0 ac_mid=0
7321 while :; do
7322 cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h. */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 #include <stddef.h>
7329 int
7330 main ()
7331 {
7332 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7333 test_array [0] = 0
7334
7335 ;
7336 return 0;
7337 }
7338 _ACEOF
7339 rm -f conftest.$ac_objext
7340 if { (ac_try="$ac_compile"
7341 case "(($ac_try" in
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7344 esac
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_compile") 2>conftest.er1
7347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest.$ac_objext; then
7356 ac_hi=$ac_mid; break
7357 else
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7360
7361 ac_lo=`expr $ac_mid + 1`
7362 if test $ac_lo -le $ac_mid; then
7363 ac_lo= ac_hi=
7364 break
7365 fi
7366 ac_mid=`expr 2 '*' $ac_mid + 1`
7367 fi
7368
7369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7370 done
7371 else
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7374
7375 cat >conftest.$ac_ext <<_ACEOF
7376 /* confdefs.h. */
7377 _ACEOF
7378 cat confdefs.h >>conftest.$ac_ext
7379 cat >>conftest.$ac_ext <<_ACEOF
7380 /* end confdefs.h. */
7381 #include <stddef.h>
7382 int
7383 main ()
7384 {
7385 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7386 test_array [0] = 0
7387
7388 ;
7389 return 0;
7390 }
7391 _ACEOF
7392 rm -f conftest.$ac_objext
7393 if { (ac_try="$ac_compile"
7394 case "(($ac_try" in
7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7397 esac
7398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399 (eval "$ac_compile") 2>conftest.er1
7400 ac_status=$?
7401 grep -v '^ *+' conftest.er1 >conftest.err
7402 rm -f conftest.er1
7403 cat conftest.err >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } && {
7406 test -z "$ac_c_werror_flag" ||
7407 test ! -s conftest.err
7408 } && test -s conftest.$ac_objext; then
7409 ac_hi=-1 ac_mid=-1
7410 while :; do
7411 cat >conftest.$ac_ext <<_ACEOF
7412 /* confdefs.h. */
7413 _ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h. */
7417 #include <stddef.h>
7418 int
7419 main ()
7420 {
7421 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7422 test_array [0] = 0
7423
7424 ;
7425 return 0;
7426 }
7427 _ACEOF
7428 rm -f conftest.$ac_objext
7429 if { (ac_try="$ac_compile"
7430 case "(($ac_try" in
7431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432 *) ac_try_echo=$ac_try;;
7433 esac
7434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7435 (eval "$ac_compile") 2>conftest.er1
7436 ac_status=$?
7437 grep -v '^ *+' conftest.er1 >conftest.err
7438 rm -f conftest.er1
7439 cat conftest.err >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } && {
7442 test -z "$ac_c_werror_flag" ||
7443 test ! -s conftest.err
7444 } && test -s conftest.$ac_objext; then
7445 ac_lo=$ac_mid; break
7446 else
7447 echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.$ac_ext >&5
7449
7450 ac_hi=`expr '(' $ac_mid ')' - 1`
7451 if test $ac_mid -le $ac_hi; then
7452 ac_lo= ac_hi=
7453 break
7454 fi
7455 ac_mid=`expr 2 '*' $ac_mid`
7456 fi
7457
7458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 done
7460 else
7461 echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7463
7464 ac_lo= ac_hi=
7465 fi
7466
7467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7468 fi
7469
7470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7471 # Binary search between lo and hi bounds.
7472 while test "x$ac_lo" != "x$ac_hi"; do
7473 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7474 cat >conftest.$ac_ext <<_ACEOF
7475 /* confdefs.h. */
7476 _ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h. */
7480 #include <stddef.h>
7481 int
7482 main ()
7483 {
7484 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7485 test_array [0] = 0
7486
7487 ;
7488 return 0;
7489 }
7490 _ACEOF
7491 rm -f conftest.$ac_objext
7492 if { (ac_try="$ac_compile"
7493 case "(($ac_try" in
7494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495 *) ac_try_echo=$ac_try;;
7496 esac
7497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498 (eval "$ac_compile") 2>conftest.er1
7499 ac_status=$?
7500 grep -v '^ *+' conftest.er1 >conftest.err
7501 rm -f conftest.er1
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } && {
7505 test -z "$ac_c_werror_flag" ||
7506 test ! -s conftest.err
7507 } && test -s conftest.$ac_objext; then
7508 ac_hi=$ac_mid
7509 else
7510 echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.$ac_ext >&5
7512
7513 ac_lo=`expr '(' $ac_mid ')' + 1`
7514 fi
7515
7516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517 done
7518 case $ac_lo in
7519 ?*) res_hi=$ac_lo;;
7520 '') result=? ;;
7521 esac
7522 else
7523 cat >conftest.$ac_ext <<_ACEOF
7524 /* confdefs.h. */
7525 _ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7529 #include <stddef.h>
7530 static long int longval () { return ~(size_t)0 / 10; }
7531 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7532 #include <stdio.h>
7533 #include <stdlib.h>
7534 int
7535 main ()
7536 {
7537
7538 FILE *f = fopen ("conftest.val", "w");
7539 if (! f)
7540 return 1;
7541 if ((~(size_t)0 / 10) < 0)
7542 {
7543 long int i = longval ();
7544 if (i != (~(size_t)0 / 10))
7545 return 1;
7546 fprintf (f, "%ld\n", i);
7547 }
7548 else
7549 {
7550 unsigned long int i = ulongval ();
7551 if (i != (~(size_t)0 / 10))
7552 return 1;
7553 fprintf (f, "%lu\n", i);
7554 }
7555 return ferror (f) || fclose (f) != 0;
7556
7557 ;
7558 return 0;
7559 }
7560 _ACEOF
7561 rm -f conftest$ac_exeext
7562 if { (ac_try="$ac_link"
7563 case "(($ac_try" in
7564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7566 esac
7567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7568 (eval "$ac_link") 2>&5
7569 ac_status=$?
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7572 { (case "(($ac_try" in
7573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7574 *) ac_try_echo=$ac_try;;
7575 esac
7576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7577 (eval "$ac_try") 2>&5
7578 ac_status=$?
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }; }; then
7581 res_hi=`cat conftest.val`
7582 else
7583 echo "$as_me: program exited with status $ac_status" >&5
7584 echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7586
7587 ( exit $ac_status )
7588 result=?
7589 fi
7590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7591 fi
7592 rm -f conftest.val
7593
7594 if test "$cross_compiling" = yes; then
7595 # Depending upon the size, compute the lo and hi bounds.
7596 cat >conftest.$ac_ext <<_ACEOF
7597 /* confdefs.h. */
7598 _ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h. */
7602 #include <stddef.h>
7603 int
7604 main ()
7605 {
7606 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7607 test_array [0] = 0
7608
7609 ;
7610 return 0;
7611 }
7612 _ACEOF
7613 rm -f conftest.$ac_objext
7614 if { (ac_try="$ac_compile"
7615 case "(($ac_try" in
7616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7617 *) ac_try_echo=$ac_try;;
7618 esac
7619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7620 (eval "$ac_compile") 2>conftest.er1
7621 ac_status=$?
7622 grep -v '^ *+' conftest.er1 >conftest.err
7623 rm -f conftest.er1
7624 cat conftest.err >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } && {
7627 test -z "$ac_c_werror_flag" ||
7628 test ! -s conftest.err
7629 } && test -s conftest.$ac_objext; then
7630 ac_lo=0 ac_mid=0
7631 while :; do
7632 cat >conftest.$ac_ext <<_ACEOF
7633 /* confdefs.h. */
7634 _ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h. */
7638 #include <stddef.h>
7639 int
7640 main ()
7641 {
7642 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7643 test_array [0] = 0
7644
7645 ;
7646 return 0;
7647 }
7648 _ACEOF
7649 rm -f conftest.$ac_objext
7650 if { (ac_try="$ac_compile"
7651 case "(($ac_try" in
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7654 esac
7655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656 (eval "$ac_compile") 2>conftest.er1
7657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } && {
7663 test -z "$ac_c_werror_flag" ||
7664 test ! -s conftest.err
7665 } && test -s conftest.$ac_objext; then
7666 ac_hi=$ac_mid; break
7667 else
7668 echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7670
7671 ac_lo=`expr $ac_mid + 1`
7672 if test $ac_lo -le $ac_mid; then
7673 ac_lo= ac_hi=
7674 break
7675 fi
7676 ac_mid=`expr 2 '*' $ac_mid + 1`
7677 fi
7678
7679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7680 done
7681 else
7682 echo "$as_me: failed program was:" >&5
7683 sed 's/^/| /' conftest.$ac_ext >&5
7684
7685 cat >conftest.$ac_ext <<_ACEOF
7686 /* confdefs.h. */
7687 _ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h. */
7691 #include <stddef.h>
7692 int
7693 main ()
7694 {
7695 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7696 test_array [0] = 0
7697
7698 ;
7699 return 0;
7700 }
7701 _ACEOF
7702 rm -f conftest.$ac_objext
7703 if { (ac_try="$ac_compile"
7704 case "(($ac_try" in
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7707 esac
7708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709 (eval "$ac_compile") 2>conftest.er1
7710 ac_status=$?
7711 grep -v '^ *+' conftest.er1 >conftest.err
7712 rm -f conftest.er1
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } && {
7716 test -z "$ac_c_werror_flag" ||
7717 test ! -s conftest.err
7718 } && test -s conftest.$ac_objext; then
7719 ac_hi=-1 ac_mid=-1
7720 while :; do
7721 cat >conftest.$ac_ext <<_ACEOF
7722 /* confdefs.h. */
7723 _ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7727 #include <stddef.h>
7728 int
7729 main ()
7730 {
7731 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7732 test_array [0] = 0
7733
7734 ;
7735 return 0;
7736 }
7737 _ACEOF
7738 rm -f conftest.$ac_objext
7739 if { (ac_try="$ac_compile"
7740 case "(($ac_try" in
7741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7742 *) ac_try_echo=$ac_try;;
7743 esac
7744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7745 (eval "$ac_compile") 2>conftest.er1
7746 ac_status=$?
7747 grep -v '^ *+' conftest.er1 >conftest.err
7748 rm -f conftest.er1
7749 cat conftest.err >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } && {
7752 test -z "$ac_c_werror_flag" ||
7753 test ! -s conftest.err
7754 } && test -s conftest.$ac_objext; then
7755 ac_lo=$ac_mid; break
7756 else
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7759
7760 ac_hi=`expr '(' $ac_mid ')' - 1`
7761 if test $ac_mid -le $ac_hi; then
7762 ac_lo= ac_hi=
7763 break
7764 fi
7765 ac_mid=`expr 2 '*' $ac_mid`
7766 fi
7767
7768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7769 done
7770 else
7771 echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.$ac_ext >&5
7773
7774 ac_lo= ac_hi=
7775 fi
7776
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778 fi
7779
7780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 # Binary search between lo and hi bounds.
7782 while test "x$ac_lo" != "x$ac_hi"; do
7783 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7784 cat >conftest.$ac_ext <<_ACEOF
7785 /* confdefs.h. */
7786 _ACEOF
7787 cat confdefs.h >>conftest.$ac_ext
7788 cat >>conftest.$ac_ext <<_ACEOF
7789 /* end confdefs.h. */
7790 #include <stddef.h>
7791 int
7792 main ()
7793 {
7794 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7795 test_array [0] = 0
7796
7797 ;
7798 return 0;
7799 }
7800 _ACEOF
7801 rm -f conftest.$ac_objext
7802 if { (ac_try="$ac_compile"
7803 case "(($ac_try" in
7804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7805 *) ac_try_echo=$ac_try;;
7806 esac
7807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7808 (eval "$ac_compile") 2>conftest.er1
7809 ac_status=$?
7810 grep -v '^ *+' conftest.er1 >conftest.err
7811 rm -f conftest.er1
7812 cat conftest.err >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } && {
7815 test -z "$ac_c_werror_flag" ||
7816 test ! -s conftest.err
7817 } && test -s conftest.$ac_objext; then
7818 ac_hi=$ac_mid
7819 else
7820 echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7822
7823 ac_lo=`expr '(' $ac_mid ')' + 1`
7824 fi
7825
7826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827 done
7828 case $ac_lo in
7829 ?*) res_lo=$ac_lo;;
7830 '') result=? ;;
7831 esac
7832 else
7833 cat >conftest.$ac_ext <<_ACEOF
7834 /* confdefs.h. */
7835 _ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h. */
7839 #include <stddef.h>
7840 static long int longval () { return ~(size_t)0 % 10; }
7841 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7842 #include <stdio.h>
7843 #include <stdlib.h>
7844 int
7845 main ()
7846 {
7847
7848 FILE *f = fopen ("conftest.val", "w");
7849 if (! f)
7850 return 1;
7851 if ((~(size_t)0 % 10) < 0)
7852 {
7853 long int i = longval ();
7854 if (i != (~(size_t)0 % 10))
7855 return 1;
7856 fprintf (f, "%ld\n", i);
7857 }
7858 else
7859 {
7860 unsigned long int i = ulongval ();
7861 if (i != (~(size_t)0 % 10))
7862 return 1;
7863 fprintf (f, "%lu\n", i);
7864 }
7865 return ferror (f) || fclose (f) != 0;
7866
7867 ;
7868 return 0;
7869 }
7870 _ACEOF
7871 rm -f conftest$ac_exeext
7872 if { (ac_try="$ac_link"
7873 case "(($ac_try" in
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7876 esac
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_link") 2>&5
7879 ac_status=$?
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7882 { (case "(($ac_try" in
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7885 esac
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_try") 2>&5
7888 ac_status=$?
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; }; then
7891 res_lo=`cat conftest.val`
7892 else
7893 echo "$as_me: program exited with status $ac_status" >&5
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7896
7897 ( exit $ac_status )
7898 result=?
7899 fi
7900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7901 fi
7902 rm -f conftest.val
7903
7904 if test "$cross_compiling" = yes; then
7905 # Depending upon the size, compute the lo and hi bounds.
7906 cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h. */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7912 #include <stddef.h>
7913 int
7914 main ()
7915 {
7916 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7917 test_array [0] = 0
7918
7919 ;
7920 return 0;
7921 }
7922 _ACEOF
7923 rm -f conftest.$ac_objext
7924 if { (ac_try="$ac_compile"
7925 case "(($ac_try" in
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7928 esac
7929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_compile") 2>conftest.er1
7931 ac_status=$?
7932 grep -v '^ *+' conftest.er1 >conftest.err
7933 rm -f conftest.er1
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } && {
7937 test -z "$ac_c_werror_flag" ||
7938 test ! -s conftest.err
7939 } && test -s conftest.$ac_objext; then
7940 ac_lo=0 ac_mid=0
7941 while :; do
7942 cat >conftest.$ac_ext <<_ACEOF
7943 /* confdefs.h. */
7944 _ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7948 #include <stddef.h>
7949 int
7950 main ()
7951 {
7952 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7953 test_array [0] = 0
7954
7955 ;
7956 return 0;
7957 }
7958 _ACEOF
7959 rm -f conftest.$ac_objext
7960 if { (ac_try="$ac_compile"
7961 case "(($ac_try" in
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7964 esac
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_compile") 2>conftest.er1
7967 ac_status=$?
7968 grep -v '^ *+' conftest.er1 >conftest.err
7969 rm -f conftest.er1
7970 cat conftest.err >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } && {
7973 test -z "$ac_c_werror_flag" ||
7974 test ! -s conftest.err
7975 } && test -s conftest.$ac_objext; then
7976 ac_hi=$ac_mid; break
7977 else
7978 echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7980
7981 ac_lo=`expr $ac_mid + 1`
7982 if test $ac_lo -le $ac_mid; then
7983 ac_lo= ac_hi=
7984 break
7985 fi
7986 ac_mid=`expr 2 '*' $ac_mid + 1`
7987 fi
7988
7989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990 done
7991 else
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7994
7995 cat >conftest.$ac_ext <<_ACEOF
7996 /* confdefs.h. */
7997 _ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h. */
8001 #include <stddef.h>
8002 int
8003 main ()
8004 {
8005 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8006 test_array [0] = 0
8007
8008 ;
8009 return 0;
8010 }
8011 _ACEOF
8012 rm -f conftest.$ac_objext
8013 if { (ac_try="$ac_compile"
8014 case "(($ac_try" in
8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8017 esac
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
8020 ac_status=$?
8021 grep -v '^ *+' conftest.er1 >conftest.err
8022 rm -f conftest.er1
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest.$ac_objext; then
8029 ac_hi=-1 ac_mid=-1
8030 while :; do
8031 cat >conftest.$ac_ext <<_ACEOF
8032 /* confdefs.h. */
8033 _ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8037 #include <stddef.h>
8038 int
8039 main ()
8040 {
8041 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8042 test_array [0] = 0
8043
8044 ;
8045 return 0;
8046 }
8047 _ACEOF
8048 rm -f conftest.$ac_objext
8049 if { (ac_try="$ac_compile"
8050 case "(($ac_try" in
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8053 esac
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_compile") 2>conftest.er1
8056 ac_status=$?
8057 grep -v '^ *+' conftest.er1 >conftest.err
8058 rm -f conftest.er1
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } && {
8062 test -z "$ac_c_werror_flag" ||
8063 test ! -s conftest.err
8064 } && test -s conftest.$ac_objext; then
8065 ac_lo=$ac_mid; break
8066 else
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8069
8070 ac_hi=`expr '(' $ac_mid ')' - 1`
8071 if test $ac_mid -le $ac_hi; then
8072 ac_lo= ac_hi=
8073 break
8074 fi
8075 ac_mid=`expr 2 '*' $ac_mid`
8076 fi
8077
8078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079 done
8080 else
8081 echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8083
8084 ac_lo= ac_hi=
8085 fi
8086
8087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8088 fi
8089
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091 # Binary search between lo and hi bounds.
8092 while test "x$ac_lo" != "x$ac_hi"; do
8093 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8094 cat >conftest.$ac_ext <<_ACEOF
8095 /* confdefs.h. */
8096 _ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8100 #include <stddef.h>
8101 int
8102 main ()
8103 {
8104 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8105 test_array [0] = 0
8106
8107 ;
8108 return 0;
8109 }
8110 _ACEOF
8111 rm -f conftest.$ac_objext
8112 if { (ac_try="$ac_compile"
8113 case "(($ac_try" in
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8116 esac
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_compile") 2>conftest.er1
8119 ac_status=$?
8120 grep -v '^ *+' conftest.er1 >conftest.err
8121 rm -f conftest.er1
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } && {
8125 test -z "$ac_c_werror_flag" ||
8126 test ! -s conftest.err
8127 } && test -s conftest.$ac_objext; then
8128 ac_hi=$ac_mid
8129 else
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8132
8133 ac_lo=`expr '(' $ac_mid ')' + 1`
8134 fi
8135
8136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137 done
8138 case $ac_lo in
8139 ?*) fits_in_uint=$ac_lo;;
8140 '') result=? ;;
8141 esac
8142 else
8143 cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h. */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149 #include <stddef.h>
8150 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8151 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8152 #include <stdio.h>
8153 #include <stdlib.h>
8154 int
8155 main ()
8156 {
8157
8158 FILE *f = fopen ("conftest.val", "w");
8159 if (! f)
8160 return 1;
8161 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8162 {
8163 long int i = longval ();
8164 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8165 return 1;
8166 fprintf (f, "%ld\n", i);
8167 }
8168 else
8169 {
8170 unsigned long int i = ulongval ();
8171 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8172 return 1;
8173 fprintf (f, "%lu\n", i);
8174 }
8175 return ferror (f) || fclose (f) != 0;
8176
8177 ;
8178 return 0;
8179 }
8180 _ACEOF
8181 rm -f conftest$ac_exeext
8182 if { (ac_try="$ac_link"
8183 case "(($ac_try" in
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8186 esac
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_link") 2>&5
8189 ac_status=$?
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8192 { (case "(($ac_try" in
8193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8195 esac
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197 (eval "$ac_try") 2>&5
8198 ac_status=$?
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; }; then
8201 fits_in_uint=`cat conftest.val`
8202 else
8203 echo "$as_me: program exited with status $ac_status" >&5
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8206
8207 ( exit $ac_status )
8208 result=?
8209 fi
8210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8211 fi
8212 rm -f conftest.val
8213
8214 if test "$fits_in_uint" = 1; then
8215 cat >conftest.$ac_ext <<_ACEOF
8216 /* confdefs.h. */
8217 _ACEOF
8218 cat confdefs.h >>conftest.$ac_ext
8219 cat >>conftest.$ac_ext <<_ACEOF
8220 /* end confdefs.h. */
8221 #include <stddef.h>
8222 extern size_t foo;
8223 extern unsigned long foo;
8224
8225 int
8226 main ()
8227 {
8228
8229 ;
8230 return 0;
8231 }
8232 _ACEOF
8233 rm -f conftest.$ac_objext
8234 if { (ac_try="$ac_compile"
8235 case "(($ac_try" in
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8238 esac
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_compile") 2>conftest.er1
8241 ac_status=$?
8242 grep -v '^ *+' conftest.er1 >conftest.err
8243 rm -f conftest.er1
8244 cat conftest.err >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } && {
8247 test -z "$ac_c_werror_flag" ||
8248 test ! -s conftest.err
8249 } && test -s conftest.$ac_objext; then
8250 fits_in_uint=0
8251 else
8252 echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8254
8255
8256 fi
8257
8258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8259 fi
8260 if test -z "$result"; then
8261 if test "$fits_in_uint" = 1; then
8262 result="$res_hi$res_lo"U
8263 else
8264 result="$res_hi$res_lo"UL
8265 fi
8266 else
8267 result='~(size_t)0'
8268 fi
8269 fi
8270 { echo "$as_me:$LINENO: result: $result" >&5
8271 echo "${ECHO_T}$result" >&6; }
8272 if test "$result" != yes; then
8273
8274 cat >>confdefs.h <<_ACEOF
8275 #define SIZE_MAX $result
8276 _ACEOF
8277
8278 fi
8279
8280
8281
8282
8283 for ac_header in stdint.h
8284 do
8285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8287 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 fi
8292 ac_res=`eval echo '${'$as_ac_Header'}'`
8293 { echo "$as_me:$LINENO: result: $ac_res" >&5
8294 echo "${ECHO_T}$ac_res" >&6; }
8295 else
8296 # Is the header compilable?
8297 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8298 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8299 cat >conftest.$ac_ext <<_ACEOF
8300 /* confdefs.h. */
8301 _ACEOF
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h. */
8305 $ac_includes_default
8306 #include <$ac_header>
8307 _ACEOF
8308 rm -f conftest.$ac_objext
8309 if { (ac_try="$ac_compile"
8310 case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8313 esac
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_compile") 2>conftest.er1
8316 ac_status=$?
8317 grep -v '^ *+' conftest.er1 >conftest.err
8318 rm -f conftest.er1
8319 cat conftest.err >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } && {
8322 test -z "$ac_c_werror_flag" ||
8323 test ! -s conftest.err
8324 } && test -s conftest.$ac_objext; then
8325 ac_header_compiler=yes
8326 else
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8329
8330 ac_header_compiler=no
8331 fi
8332
8333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8335 echo "${ECHO_T}$ac_header_compiler" >&6; }
8336
8337 # Is the header present?
8338 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8340 cat >conftest.$ac_ext <<_ACEOF
8341 /* confdefs.h. */
8342 _ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h. */
8346 #include <$ac_header>
8347 _ACEOF
8348 if { (ac_try="$ac_cpp conftest.$ac_ext"
8349 case "(($ac_try" in
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8352 esac
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8355 ac_status=$?
8356 grep -v '^ *+' conftest.er1 >conftest.err
8357 rm -f conftest.er1
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } >/dev/null && {
8361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8362 test ! -s conftest.err
8363 }; then
8364 ac_header_preproc=yes
8365 else
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8368
8369 ac_header_preproc=no
8370 fi
8371
8372 rm -f conftest.err conftest.$ac_ext
8373 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8374 echo "${ECHO_T}$ac_header_preproc" >&6; }
8375
8376 # So? What about this header?
8377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8378 yes:no: )
8379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8383 ac_header_preproc=yes
8384 ;;
8385 no:yes:* )
8386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8393 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8398
8399 ;;
8400 esac
8401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406 eval "$as_ac_Header=\$ac_header_preproc"
8407 fi
8408 ac_res=`eval echo '${'$as_ac_Header'}'`
8409 { echo "$as_me:$LINENO: result: $ac_res" >&5
8410 echo "${ECHO_T}$ac_res" >&6; }
8411
8412 fi
8413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8414 cat >>confdefs.h <<_ACEOF
8415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8416 _ACEOF
8417
8418 fi
8419
8420 done
8421
8422
8423
8424 if test "X$prefix" = "XNONE"; then
8425 acl_final_prefix="$ac_default_prefix"
8426 else
8427 acl_final_prefix="$prefix"
8428 fi
8429 if test "X$exec_prefix" = "XNONE"; then
8430 acl_final_exec_prefix='${prefix}'
8431 else
8432 acl_final_exec_prefix="$exec_prefix"
8433 fi
8434 acl_save_prefix="$prefix"
8435 prefix="$acl_final_prefix"
8436 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8437 prefix="$acl_save_prefix"
8438
8439
8440 # Check whether --with-gnu-ld was given.
8441 if test "${with_gnu_ld+set}" = set; then
8442 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8443 else
8444 with_gnu_ld=no
8445 fi
8446
8447 # Prepare PATH_SEPARATOR.
8448 # The user is always right.
8449 if test "${PATH_SEPARATOR+set}" != set; then
8450 echo "#! /bin/sh" >conf$$.sh
8451 echo "exit 0" >>conf$$.sh
8452 chmod +x conf$$.sh
8453 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8454 PATH_SEPARATOR=';'
8455 else
8456 PATH_SEPARATOR=:
8457 fi
8458 rm -f conf$$.sh
8459 fi
8460 ac_prog=ld
8461 if test "$GCC" = yes; then
8462 # Check if gcc -print-prog-name=ld gives a path.
8463 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8464 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8465 case $host in
8466 *-*-mingw*)
8467 # gcc leaves a trailing carriage return which upsets mingw
8468 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8469 *)
8470 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8471 esac
8472 case $ac_prog in
8473 # Accept absolute paths.
8474 [\\/]* | [A-Za-z]:[\\/]*)
8475 re_direlt='/[^/][^/]*/\.\./'
8476 # Canonicalize the path of ld
8477 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8478 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8479 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8480 done
8481 test -z "$LD" && LD="$ac_prog"
8482 ;;
8483 "")
8484 # If it fails, then pretend we aren't using GCC.
8485 ac_prog=ld
8486 ;;
8487 *)
8488 # If it is relative, then search for the first ld in PATH.
8489 with_gnu_ld=unknown
8490 ;;
8491 esac
8492 elif test "$with_gnu_ld" = yes; then
8493 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8494 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8495 else
8496 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8497 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8498 fi
8499 if test "${acl_cv_path_LD+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502 if test -z "$LD"; then
8503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8504 for ac_dir in $PATH; do
8505 test -z "$ac_dir" && ac_dir=.
8506 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8507 acl_cv_path_LD="$ac_dir/$ac_prog"
8508 # Check to see if the program is GNU ld. I'd rather use --version,
8509 # but apparently some GNU ld's only accept -v.
8510 # Break only if it was the GNU/non-GNU ld that we prefer.
8511 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8512 *GNU* | *'with BFD'*)
8513 test "$with_gnu_ld" != no && break ;;
8514 *)
8515 test "$with_gnu_ld" != yes && break ;;
8516 esac
8517 fi
8518 done
8519 IFS="$ac_save_ifs"
8520 else
8521 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8522 fi
8523 fi
8524
8525 LD="$acl_cv_path_LD"
8526 if test -n "$LD"; then
8527 { echo "$as_me:$LINENO: result: $LD" >&5
8528 echo "${ECHO_T}$LD" >&6; }
8529 else
8530 { echo "$as_me:$LINENO: result: no" >&5
8531 echo "${ECHO_T}no" >&6; }
8532 fi
8533 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8534 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8535 { (exit 1); exit 1; }; }
8536 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8537 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8538 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 else
8541 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8542 case `$LD -v 2>&1 </dev/null` in
8543 *GNU* | *'with BFD'*)
8544 acl_cv_prog_gnu_ld=yes ;;
8545 *)
8546 acl_cv_prog_gnu_ld=no ;;
8547 esac
8548 fi
8549 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8550 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8551 with_gnu_ld=$acl_cv_prog_gnu_ld
8552
8553
8554
8555 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8556 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8557 if test "${acl_cv_rpath+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560
8561 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8562 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8563 . ./conftest.sh
8564 rm -f ./conftest.sh
8565 acl_cv_rpath=done
8566
8567 fi
8568 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8569 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8570 wl="$acl_cv_wl"
8571 libext="$acl_cv_libext"
8572 shlibext="$acl_cv_shlibext"
8573 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8574 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8575 hardcode_direct="$acl_cv_hardcode_direct"
8576 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8577 # Check whether --enable-rpath was given.
8578 if test "${enable_rpath+set}" = set; then
8579 enableval=$enable_rpath; :
8580 else
8581 enable_rpath=yes
8582 fi
8583
8584
8585
8586
8587
8588
8589
8590
8591 use_additional=yes
8592
8593 acl_save_prefix="$prefix"
8594 prefix="$acl_final_prefix"
8595 acl_save_exec_prefix="$exec_prefix"
8596 exec_prefix="$acl_final_exec_prefix"
8597
8598 eval additional_includedir=\"$includedir\"
8599 eval additional_libdir=\"$libdir\"
8600
8601 exec_prefix="$acl_save_exec_prefix"
8602 prefix="$acl_save_prefix"
8603
8604
8605 # Check whether --with-libiconv-prefix was given.
8606 if test "${with_libiconv_prefix+set}" = set; then
8607 withval=$with_libiconv_prefix;
8608 if test "X$withval" = "Xno"; then
8609 use_additional=no
8610 else
8611 if test "X$withval" = "X"; then
8612
8613 acl_save_prefix="$prefix"
8614 prefix="$acl_final_prefix"
8615 acl_save_exec_prefix="$exec_prefix"
8616 exec_prefix="$acl_final_exec_prefix"
8617
8618 eval additional_includedir=\"$includedir\"
8619 eval additional_libdir=\"$libdir\"
8620
8621 exec_prefix="$acl_save_exec_prefix"
8622 prefix="$acl_save_prefix"
8623
8624 else
8625 additional_includedir="$withval/include"
8626 additional_libdir="$withval/lib"
8627 fi
8628 fi
8629
8630 fi
8631
8632 LIBICONV=
8633 LTLIBICONV=
8634 INCICONV=
8635 rpathdirs=
8636 ltrpathdirs=
8637 names_already_handled=
8638 names_next_round='iconv '
8639 while test -n "$names_next_round"; do
8640 names_this_round="$names_next_round"
8641 names_next_round=
8642 for name in $names_this_round; do
8643 already_handled=
8644 for n in $names_already_handled; do
8645 if test "$n" = "$name"; then
8646 already_handled=yes
8647 break
8648 fi
8649 done
8650 if test -z "$already_handled"; then
8651 names_already_handled="$names_already_handled $name"
8652 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8653 eval value=\"\$HAVE_LIB$uppername\"
8654 if test -n "$value"; then
8655 if test "$value" = yes; then
8656 eval value=\"\$LIB$uppername\"
8657 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8658 eval value=\"\$LTLIB$uppername\"
8659 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8660 else
8661 :
8662 fi
8663 else
8664 found_dir=
8665 found_la=
8666 found_so=
8667 found_a=
8668 if test $use_additional = yes; then
8669 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8670 found_dir="$additional_libdir"
8671 found_so="$additional_libdir/lib$name.$shlibext"
8672 if test -f "$additional_libdir/lib$name.la"; then
8673 found_la="$additional_libdir/lib$name.la"
8674 fi
8675 else
8676 if test -f "$additional_libdir/lib$name.$libext"; then
8677 found_dir="$additional_libdir"
8678 found_a="$additional_libdir/lib$name.$libext"
8679 if test -f "$additional_libdir/lib$name.la"; then
8680 found_la="$additional_libdir/lib$name.la"
8681 fi
8682 fi
8683 fi
8684 fi
8685 if test "X$found_dir" = "X"; then
8686 for x in $LDFLAGS $LTLIBICONV; do
8687
8688 acl_save_prefix="$prefix"
8689 prefix="$acl_final_prefix"
8690 acl_save_exec_prefix="$exec_prefix"
8691 exec_prefix="$acl_final_exec_prefix"
8692 eval x=\"$x\"
8693 exec_prefix="$acl_save_exec_prefix"
8694 prefix="$acl_save_prefix"
8695
8696 case "$x" in
8697 -L*)
8698 dir=`echo "X$x" | sed -e 's/^X-L//'`
8699 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8700 found_dir="$dir"
8701 found_so="$dir/lib$name.$shlibext"
8702 if test -f "$dir/lib$name.la"; then
8703 found_la="$dir/lib$name.la"
8704 fi
8705 else
8706 if test -f "$dir/lib$name.$libext"; then
8707 found_dir="$dir"
8708 found_a="$dir/lib$name.$libext"
8709 if test -f "$dir/lib$name.la"; then
8710 found_la="$dir/lib$name.la"
8711 fi
8712 fi
8713 fi
8714 ;;
8715 esac
8716 if test "X$found_dir" != "X"; then
8717 break
8718 fi
8719 done
8720 fi
8721 if test "X$found_dir" != "X"; then
8722 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8723 if test "X$found_so" != "X"; then
8724 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8725 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8726 else
8727 haveit=
8728 for x in $ltrpathdirs; do
8729 if test "X$x" = "X$found_dir"; then
8730 haveit=yes
8731 break
8732 fi
8733 done
8734 if test -z "$haveit"; then
8735 ltrpathdirs="$ltrpathdirs $found_dir"
8736 fi
8737 if test "$hardcode_direct" = yes; then
8738 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8739 else
8740 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8741 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8742 haveit=
8743 for x in $rpathdirs; do
8744 if test "X$x" = "X$found_dir"; then
8745 haveit=yes
8746 break
8747 fi
8748 done
8749 if test -z "$haveit"; then
8750 rpathdirs="$rpathdirs $found_dir"
8751 fi
8752 else
8753 haveit=
8754 for x in $LDFLAGS $LIBICONV; do
8755
8756 acl_save_prefix="$prefix"
8757 prefix="$acl_final_prefix"
8758 acl_save_exec_prefix="$exec_prefix"
8759 exec_prefix="$acl_final_exec_prefix"
8760 eval x=\"$x\"
8761 exec_prefix="$acl_save_exec_prefix"
8762 prefix="$acl_save_prefix"
8763
8764 if test "X$x" = "X-L$found_dir"; then
8765 haveit=yes
8766 break
8767 fi
8768 done
8769 if test -z "$haveit"; then
8770 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8771 fi
8772 if test "$hardcode_minus_L" != no; then
8773 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8774 else
8775 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8776 fi
8777 fi
8778 fi
8779 fi
8780 else
8781 if test "X$found_a" != "X"; then
8782 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8783 else
8784 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8785 fi
8786 fi
8787 additional_includedir=
8788 case "$found_dir" in
8789 */lib | */lib/)
8790 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8791 additional_includedir="$basedir/include"
8792 ;;
8793 esac
8794 if test "X$additional_includedir" != "X"; then
8795 if test "X$additional_includedir" != "X/usr/include"; then
8796 haveit=
8797 if test "X$additional_includedir" = "X/usr/local/include"; then
8798 if test -n "$GCC"; then
8799 case $host_os in
8800 linux*) haveit=yes;;
8801 esac
8802 fi
8803 fi
8804 if test -z "$haveit"; then
8805 for x in $CPPFLAGS $INCICONV; do
8806
8807 acl_save_prefix="$prefix"
8808 prefix="$acl_final_prefix"
8809 acl_save_exec_prefix="$exec_prefix"
8810 exec_prefix="$acl_final_exec_prefix"
8811 eval x=\"$x\"
8812 exec_prefix="$acl_save_exec_prefix"
8813 prefix="$acl_save_prefix"
8814
8815 if test "X$x" = "X-I$additional_includedir"; then
8816 haveit=yes
8817 break
8818 fi
8819 done
8820 if test -z "$haveit"; then
8821 if test -d "$additional_includedir"; then
8822 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8823 fi
8824 fi
8825 fi
8826 fi
8827 fi
8828 if test -n "$found_la"; then
8829 save_libdir="$libdir"
8830 case "$found_la" in
8831 */* | *\\*) . "$found_la" ;;
8832 *) . "./$found_la" ;;
8833 esac
8834 libdir="$save_libdir"
8835 for dep in $dependency_libs; do
8836 case "$dep" in
8837 -L*)
8838 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8839 if test "X$additional_libdir" != "X/usr/lib"; then
8840 haveit=
8841 if test "X$additional_libdir" = "X/usr/local/lib"; then
8842 if test -n "$GCC"; then
8843 case $host_os in
8844 linux*) haveit=yes;;
8845 esac
8846 fi
8847 fi
8848 if test -z "$haveit"; then
8849 haveit=
8850 for x in $LDFLAGS $LIBICONV; do
8851
8852 acl_save_prefix="$prefix"
8853 prefix="$acl_final_prefix"
8854 acl_save_exec_prefix="$exec_prefix"
8855 exec_prefix="$acl_final_exec_prefix"
8856 eval x=\"$x\"
8857 exec_prefix="$acl_save_exec_prefix"
8858 prefix="$acl_save_prefix"
8859
8860 if test "X$x" = "X-L$additional_libdir"; then
8861 haveit=yes
8862 break
8863 fi
8864 done
8865 if test -z "$haveit"; then
8866 if test -d "$additional_libdir"; then
8867 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8868 fi
8869 fi
8870 haveit=
8871 for x in $LDFLAGS $LTLIBICONV; do
8872
8873 acl_save_prefix="$prefix"
8874 prefix="$acl_final_prefix"
8875 acl_save_exec_prefix="$exec_prefix"
8876 exec_prefix="$acl_final_exec_prefix"
8877 eval x=\"$x\"
8878 exec_prefix="$acl_save_exec_prefix"
8879 prefix="$acl_save_prefix"
8880
8881 if test "X$x" = "X-L$additional_libdir"; then
8882 haveit=yes
8883 break
8884 fi
8885 done
8886 if test -z "$haveit"; then
8887 if test -d "$additional_libdir"; then
8888 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8889 fi
8890 fi
8891 fi
8892 fi
8893 ;;
8894 -R*)
8895 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8896 if test "$enable_rpath" != no; then
8897 haveit=
8898 for x in $rpathdirs; do
8899 if test "X$x" = "X$dir"; then
8900 haveit=yes
8901 break
8902 fi
8903 done
8904 if test -z "$haveit"; then
8905 rpathdirs="$rpathdirs $dir"
8906 fi
8907 haveit=
8908 for x in $ltrpathdirs; do
8909 if test "X$x" = "X$dir"; then
8910 haveit=yes
8911 break
8912 fi
8913 done
8914 if test -z "$haveit"; then
8915 ltrpathdirs="$ltrpathdirs $dir"
8916 fi
8917 fi
8918 ;;
8919 -l*)
8920 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8921 ;;
8922 *.la)
8923 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8924 ;;
8925 *)
8926 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8927 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8928 ;;
8929 esac
8930 done
8931 fi
8932 else
8933 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8934 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8935 fi
8936 fi
8937 fi
8938 done
8939 done
8940 if test "X$rpathdirs" != "X"; then
8941 if test -n "$hardcode_libdir_separator"; then
8942 alldirs=
8943 for found_dir in $rpathdirs; do
8944 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8945 done
8946 acl_save_libdir="$libdir"
8947 libdir="$alldirs"
8948 eval flag=\"$hardcode_libdir_flag_spec\"
8949 libdir="$acl_save_libdir"
8950 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8951 else
8952 for found_dir in $rpathdirs; do
8953 acl_save_libdir="$libdir"
8954 libdir="$found_dir"
8955 eval flag=\"$hardcode_libdir_flag_spec\"
8956 libdir="$acl_save_libdir"
8957 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8958 done
8959 fi
8960 fi
8961 if test "X$ltrpathdirs" != "X"; then
8962 for found_dir in $ltrpathdirs; do
8963 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8964 done
8965 fi
8966
8967
8968
8969
8970
8971
8972
8973
8974 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8975 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8976 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8978 else
8979 cat >conftest.$ac_ext <<_ACEOF
8980 /* confdefs.h. */
8981 _ACEOF
8982 cat confdefs.h >>conftest.$ac_ext
8983 cat >>conftest.$ac_ext <<_ACEOF
8984 /* end confdefs.h. */
8985 $ac_includes_default
8986 typedef ptrdiff_t ac__type_new_;
8987 int
8988 main ()
8989 {
8990 if ((ac__type_new_ *) 0)
8991 return 0;
8992 if (sizeof (ac__type_new_))
8993 return 0;
8994 ;
8995 return 0;
8996 }
8997 _ACEOF
8998 rm -f conftest.$ac_objext
8999 if { (ac_try="$ac_compile"
9000 case "(($ac_try" in
9001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002 *) ac_try_echo=$ac_try;;
9003 esac
9004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005 (eval "$ac_compile") 2>conftest.er1
9006 ac_status=$?
9007 grep -v '^ *+' conftest.er1 >conftest.err
9008 rm -f conftest.er1
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } && {
9012 test -z "$ac_c_werror_flag" ||
9013 test ! -s conftest.err
9014 } && test -s conftest.$ac_objext; then
9015 ac_cv_type_ptrdiff_t=yes
9016 else
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9019
9020 ac_cv_type_ptrdiff_t=no
9021 fi
9022
9023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9024 fi
9025 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9026 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9027 if test $ac_cv_type_ptrdiff_t = yes; then
9028 :
9029 else
9030
9031 cat >>confdefs.h <<\_ACEOF
9032 #define ptrdiff_t long
9033 _ACEOF
9034
9035
9036 fi
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9049 stdlib.h string.h unistd.h sys/param.h
9050 do
9051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 fi
9058 ac_res=`eval echo '${'$as_ac_Header'}'`
9059 { echo "$as_me:$LINENO: result: $ac_res" >&5
9060 echo "${ECHO_T}$ac_res" >&6; }
9061 else
9062 # Is the header compilable?
9063 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9065 cat >conftest.$ac_ext <<_ACEOF
9066 /* confdefs.h. */
9067 _ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9071 $ac_includes_default
9072 #include <$ac_header>
9073 _ACEOF
9074 rm -f conftest.$ac_objext
9075 if { (ac_try="$ac_compile"
9076 case "(($ac_try" in
9077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9079 esac
9080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081 (eval "$ac_compile") 2>conftest.er1
9082 ac_status=$?
9083 grep -v '^ *+' conftest.er1 >conftest.err
9084 rm -f conftest.er1
9085 cat conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } && {
9088 test -z "$ac_c_werror_flag" ||
9089 test ! -s conftest.err
9090 } && test -s conftest.$ac_objext; then
9091 ac_header_compiler=yes
9092 else
9093 echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.$ac_ext >&5
9095
9096 ac_header_compiler=no
9097 fi
9098
9099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9101 echo "${ECHO_T}$ac_header_compiler" >&6; }
9102
9103 # Is the header present?
9104 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9106 cat >conftest.$ac_ext <<_ACEOF
9107 /* confdefs.h. */
9108 _ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9112 #include <$ac_header>
9113 _ACEOF
9114 if { (ac_try="$ac_cpp conftest.$ac_ext"
9115 case "(($ac_try" in
9116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9117 *) ac_try_echo=$ac_try;;
9118 esac
9119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9121 ac_status=$?
9122 grep -v '^ *+' conftest.er1 >conftest.err
9123 rm -f conftest.er1
9124 cat conftest.err >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } >/dev/null && {
9127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9128 test ! -s conftest.err
9129 }; then
9130 ac_header_preproc=yes
9131 else
9132 echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9134
9135 ac_header_preproc=no
9136 fi
9137
9138 rm -f conftest.err conftest.$ac_ext
9139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9140 echo "${ECHO_T}$ac_header_preproc" >&6; }
9141
9142 # So? What about this header?
9143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9144 yes:no: )
9145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9149 ac_header_preproc=yes
9150 ;;
9151 no:yes:* )
9152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9164
9165 ;;
9166 esac
9167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9171 else
9172 eval "$as_ac_Header=\$ac_header_preproc"
9173 fi
9174 ac_res=`eval echo '${'$as_ac_Header'}'`
9175 { echo "$as_me:$LINENO: result: $ac_res" >&5
9176 echo "${ECHO_T}$ac_res" >&6; }
9177
9178 fi
9179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9180 cat >>confdefs.h <<_ACEOF
9181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9182 _ACEOF
9183
9184 fi
9185
9186 done
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9212 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9213 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9214 __fsetlocking
9215 do
9216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9217 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9219 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 else
9222 cat >conftest.$ac_ext <<_ACEOF
9223 /* confdefs.h. */
9224 _ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9230 #define $ac_func innocuous_$ac_func
9231
9232 /* System header to define __stub macros and hopefully few prototypes,
9233 which can conflict with char $ac_func (); below.
9234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9235 <limits.h> exists even on freestanding compilers. */
9236
9237 #ifdef __STDC__
9238 # include <limits.h>
9239 #else
9240 # include <assert.h>
9241 #endif
9242
9243 #undef $ac_func
9244
9245 /* Override any GCC internal prototype to avoid an error.
9246 Use char because int might match the return type of a GCC
9247 builtin and then its argument prototype would still apply. */
9248 #ifdef __cplusplus
9249 extern "C"
9250 #endif
9251 char $ac_func ();
9252 /* The GNU C library defines this for functions which it implements
9253 to always fail with ENOSYS. Some functions are actually named
9254 something starting with __ and the normal name is an alias. */
9255 #if defined __stub_$ac_func || defined __stub___$ac_func
9256 choke me
9257 #endif
9258
9259 int
9260 main ()
9261 {
9262 return $ac_func ();
9263 ;
9264 return 0;
9265 }
9266 _ACEOF
9267 rm -f conftest.$ac_objext conftest$ac_exeext
9268 if { (ac_try="$ac_link"
9269 case "(($ac_try" in
9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271 *) ac_try_echo=$ac_try;;
9272 esac
9273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274 (eval "$ac_link") 2>conftest.er1
9275 ac_status=$?
9276 grep -v '^ *+' conftest.er1 >conftest.err
9277 rm -f conftest.er1
9278 cat conftest.err >&5
9279 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_exeext &&
9284 $as_test_x conftest$ac_exeext; then
9285 eval "$as_ac_var=yes"
9286 else
9287 echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9289
9290 eval "$as_ac_var=no"
9291 fi
9292
9293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9294 conftest$ac_exeext conftest.$ac_ext
9295 fi
9296 ac_res=`eval echo '${'$as_ac_var'}'`
9297 { echo "$as_me:$LINENO: result: $ac_res" >&5
9298 echo "${ECHO_T}$ac_res" >&6; }
9299 if test `eval echo '${'$as_ac_var'}'` = yes; then
9300 cat >>confdefs.h <<_ACEOF
9301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9302 _ACEOF
9303
9304 fi
9305 done
9306
9307
9308
9309 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9310 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9311 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9313 else
9314 cat >conftest.$ac_ext <<_ACEOF
9315 /* confdefs.h. */
9316 _ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h. */
9320 #include <stdio.h>
9321 int
9322 main ()
9323 {
9324
9325 #ifndef _snprintf
9326 char *p = (char *) _snprintf;
9327 #endif
9328
9329 ;
9330 return 0;
9331 }
9332 _ACEOF
9333 rm -f conftest.$ac_objext
9334 if { (ac_try="$ac_compile"
9335 case "(($ac_try" in
9336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337 *) ac_try_echo=$ac_try;;
9338 esac
9339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9340 (eval "$ac_compile") 2>conftest.er1
9341 ac_status=$?
9342 grep -v '^ *+' conftest.er1 >conftest.err
9343 rm -f conftest.er1
9344 cat conftest.err >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } && {
9347 test -z "$ac_c_werror_flag" ||
9348 test ! -s conftest.err
9349 } && test -s conftest.$ac_objext; then
9350 ac_cv_have_decl__snprintf=yes
9351 else
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9354
9355 ac_cv_have_decl__snprintf=no
9356 fi
9357
9358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9359 fi
9360 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9361 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9362 if test $ac_cv_have_decl__snprintf = yes; then
9363 gt_value=1
9364 else
9365 gt_value=0
9366 fi
9367
9368 cat >>confdefs.h <<_ACEOF
9369 #define HAVE_DECL__SNPRINTF $gt_value
9370 _ACEOF
9371
9372
9373
9374 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9375 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9376 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 else
9379 cat >conftest.$ac_ext <<_ACEOF
9380 /* confdefs.h. */
9381 _ACEOF
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h. */
9385 #include <stdio.h>
9386 int
9387 main ()
9388 {
9389
9390 #ifndef _snwprintf
9391 char *p = (char *) _snwprintf;
9392 #endif
9393
9394 ;
9395 return 0;
9396 }
9397 _ACEOF
9398 rm -f conftest.$ac_objext
9399 if { (ac_try="$ac_compile"
9400 case "(($ac_try" in
9401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9402 *) ac_try_echo=$ac_try;;
9403 esac
9404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9405 (eval "$ac_compile") 2>conftest.er1
9406 ac_status=$?
9407 grep -v '^ *+' conftest.er1 >conftest.err
9408 rm -f conftest.er1
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } && {
9412 test -z "$ac_c_werror_flag" ||
9413 test ! -s conftest.err
9414 } && test -s conftest.$ac_objext; then
9415 ac_cv_have_decl__snwprintf=yes
9416 else
9417 echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9419
9420 ac_cv_have_decl__snwprintf=no
9421 fi
9422
9423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9424 fi
9425 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9426 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9427 if test $ac_cv_have_decl__snwprintf = yes; then
9428 gt_value=1
9429 else
9430 gt_value=0
9431 fi
9432
9433 cat >>confdefs.h <<_ACEOF
9434 #define HAVE_DECL__SNWPRINTF $gt_value
9435 _ACEOF
9436
9437
9438
9439
9440 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9441 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9442 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 else
9445 cat >conftest.$ac_ext <<_ACEOF
9446 /* confdefs.h. */
9447 _ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h. */
9451 #include <stdio.h>
9452 int
9453 main ()
9454 {
9455
9456 #ifndef feof_unlocked
9457 char *p = (char *) feof_unlocked;
9458 #endif
9459
9460 ;
9461 return 0;
9462 }
9463 _ACEOF
9464 rm -f conftest.$ac_objext
9465 if { (ac_try="$ac_compile"
9466 case "(($ac_try" in
9467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9468 *) ac_try_echo=$ac_try;;
9469 esac
9470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9471 (eval "$ac_compile") 2>conftest.er1
9472 ac_status=$?
9473 grep -v '^ *+' conftest.er1 >conftest.err
9474 rm -f conftest.er1
9475 cat conftest.err >&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); } && {
9478 test -z "$ac_c_werror_flag" ||
9479 test ! -s conftest.err
9480 } && test -s conftest.$ac_objext; then
9481 ac_cv_have_decl_feof_unlocked=yes
9482 else
9483 echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9485
9486 ac_cv_have_decl_feof_unlocked=no
9487 fi
9488
9489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9490 fi
9491 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9492 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9493 if test $ac_cv_have_decl_feof_unlocked = yes; then
9494 gt_value=1
9495 else
9496 gt_value=0
9497 fi
9498
9499 cat >>confdefs.h <<_ACEOF
9500 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9501 _ACEOF
9502
9503
9504
9505 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9506 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9507 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 else
9510 cat >conftest.$ac_ext <<_ACEOF
9511 /* confdefs.h. */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9516 #include <stdio.h>
9517 int
9518 main ()
9519 {
9520
9521 #ifndef fgets_unlocked
9522 char *p = (char *) fgets_unlocked;
9523 #endif
9524
9525 ;
9526 return 0;
9527 }
9528 _ACEOF
9529 rm -f conftest.$ac_objext
9530 if { (ac_try="$ac_compile"
9531 case "(($ac_try" in
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9534 esac
9535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536 (eval "$ac_compile") 2>conftest.er1
9537 ac_status=$?
9538 grep -v '^ *+' conftest.er1 >conftest.err
9539 rm -f conftest.er1
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } && {
9543 test -z "$ac_c_werror_flag" ||
9544 test ! -s conftest.err
9545 } && test -s conftest.$ac_objext; then
9546 ac_cv_have_decl_fgets_unlocked=yes
9547 else
9548 echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.$ac_ext >&5
9550
9551 ac_cv_have_decl_fgets_unlocked=no
9552 fi
9553
9554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9555 fi
9556 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9557 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9558 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9559 gt_value=1
9560 else
9561 gt_value=0
9562 fi
9563
9564 cat >>confdefs.h <<_ACEOF
9565 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9566 _ACEOF
9567
9568
9569
9570 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9571 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9572 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 else
9575 cat >conftest.$ac_ext <<_ACEOF
9576 /* confdefs.h. */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h. */
9581 #include <stdio.h>
9582 int
9583 main ()
9584 {
9585
9586 #ifndef getc_unlocked
9587 char *p = (char *) getc_unlocked;
9588 #endif
9589
9590 ;
9591 return 0;
9592 }
9593 _ACEOF
9594 rm -f conftest.$ac_objext
9595 if { (ac_try="$ac_compile"
9596 case "(($ac_try" in
9597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9599 esac
9600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601 (eval "$ac_compile") 2>conftest.er1
9602 ac_status=$?
9603 grep -v '^ *+' conftest.er1 >conftest.err
9604 rm -f conftest.er1
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } && {
9608 test -z "$ac_c_werror_flag" ||
9609 test ! -s conftest.err
9610 } && test -s conftest.$ac_objext; then
9611 ac_cv_have_decl_getc_unlocked=yes
9612 else
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9615
9616 ac_cv_have_decl_getc_unlocked=no
9617 fi
9618
9619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9620 fi
9621 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9622 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9623 if test $ac_cv_have_decl_getc_unlocked = yes; then
9624 gt_value=1
9625 else
9626 gt_value=0
9627 fi
9628
9629 cat >>confdefs.h <<_ACEOF
9630 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9631 _ACEOF
9632
9633
9634
9635 case $gt_cv_func_printf_posix in
9636 *yes) HAVE_POSIX_PRINTF=1 ;;
9637 *) HAVE_POSIX_PRINTF=0 ;;
9638 esac
9639
9640 if test "$ac_cv_func_asprintf" = yes; then
9641 HAVE_ASPRINTF=1
9642 else
9643 HAVE_ASPRINTF=0
9644 fi
9645
9646 if test "$ac_cv_func_snprintf" = yes; then
9647 HAVE_SNPRINTF=1
9648 else
9649 HAVE_SNPRINTF=0
9650 fi
9651
9652 if test "$ac_cv_func_wprintf" = yes; then
9653 HAVE_WPRINTF=1
9654 else
9655 HAVE_WPRINTF=0
9656 fi
9657
9658
9659
9660
9661
9662
9663
9664 am_save_CPPFLAGS="$CPPFLAGS"
9665
9666 for element in $INCICONV; do
9667 haveit=
9668 for x in $CPPFLAGS; do
9669
9670 acl_save_prefix="$prefix"
9671 prefix="$acl_final_prefix"
9672 acl_save_exec_prefix="$exec_prefix"
9673 exec_prefix="$acl_final_exec_prefix"
9674 eval x=\"$x\"
9675 exec_prefix="$acl_save_exec_prefix"
9676 prefix="$acl_save_prefix"
9677
9678 if test "X$x" = "X$element"; then
9679 haveit=yes
9680 break
9681 fi
9682 done
9683 if test -z "$haveit"; then
9684 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9685 fi
9686 done
9687
9688
9689 { echo "$as_me:$LINENO: checking for iconv" >&5
9690 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9691 if test "${am_cv_func_iconv+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694
9695 am_cv_func_iconv="no, consider installing GNU libiconv"
9696 am_cv_lib_iconv=no
9697 cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h. */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9703 #include <stdlib.h>
9704 #include <iconv.h>
9705 int
9706 main ()
9707 {
9708 iconv_t cd = iconv_open("","");
9709 iconv(cd,NULL,NULL,NULL,NULL);
9710 iconv_close(cd);
9711 ;
9712 return 0;
9713 }
9714 _ACEOF
9715 rm -f conftest.$ac_objext conftest$ac_exeext
9716 if { (ac_try="$ac_link"
9717 case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9720 esac
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_link") 2>conftest.er1
9723 ac_status=$?
9724 grep -v '^ *+' conftest.er1 >conftest.err
9725 rm -f conftest.er1
9726 cat conftest.err >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } && {
9729 test -z "$ac_c_werror_flag" ||
9730 test ! -s conftest.err
9731 } && test -s conftest$ac_exeext &&
9732 $as_test_x conftest$ac_exeext; then
9733 am_cv_func_iconv=yes
9734 else
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9737
9738
9739 fi
9740
9741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9742 conftest$ac_exeext conftest.$ac_ext
9743 if test "$am_cv_func_iconv" != yes; then
9744 am_save_LIBS="$LIBS"
9745 LIBS="$LIBS $LIBICONV"
9746 cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h. */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9752 #include <stdlib.h>
9753 #include <iconv.h>
9754 int
9755 main ()
9756 {
9757 iconv_t cd = iconv_open("","");
9758 iconv(cd,NULL,NULL,NULL,NULL);
9759 iconv_close(cd);
9760 ;
9761 return 0;
9762 }
9763 _ACEOF
9764 rm -f conftest.$ac_objext conftest$ac_exeext
9765 if { (ac_try="$ac_link"
9766 case "(($ac_try" in
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9769 esac
9770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_link") 2>conftest.er1
9772 ac_status=$?
9773 grep -v '^ *+' conftest.er1 >conftest.err
9774 rm -f conftest.er1
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } && {
9778 test -z "$ac_c_werror_flag" ||
9779 test ! -s conftest.err
9780 } && test -s conftest$ac_exeext &&
9781 $as_test_x conftest$ac_exeext; then
9782 am_cv_lib_iconv=yes
9783 am_cv_func_iconv=yes
9784 else
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9787
9788
9789 fi
9790
9791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9792 conftest$ac_exeext conftest.$ac_ext
9793 LIBS="$am_save_LIBS"
9794 fi
9795
9796 fi
9797 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9798 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9799 if test "$am_cv_func_iconv" = yes; then
9800
9801 cat >>confdefs.h <<\_ACEOF
9802 #define HAVE_ICONV 1
9803 _ACEOF
9804
9805 fi
9806 if test "$am_cv_lib_iconv" = yes; then
9807 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9808 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9809 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9810 echo "${ECHO_T}$LIBICONV" >&6; }
9811 else
9812 CPPFLAGS="$am_save_CPPFLAGS"
9813 LIBICONV=
9814 LTLIBICONV=
9815 fi
9816
9817
9818
9819 if test "$am_cv_func_iconv" = yes; then
9820 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9821 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9822 if test "${am_cv_proto_iconv+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825
9826 cat >conftest.$ac_ext <<_ACEOF
9827 /* confdefs.h. */
9828 _ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832
9833 #include <stdlib.h>
9834 #include <iconv.h>
9835 extern
9836 #ifdef __cplusplus
9837 "C"
9838 #endif
9839 #if defined(__STDC__) || defined(__cplusplus)
9840 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9841 #else
9842 size_t iconv();
9843 #endif
9844
9845 int
9846 main ()
9847 {
9848
9849 ;
9850 return 0;
9851 }
9852 _ACEOF
9853 rm -f conftest.$ac_objext
9854 if { (ac_try="$ac_compile"
9855 case "(($ac_try" in
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9858 esac
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_compile") 2>conftest.er1
9861 ac_status=$?
9862 grep -v '^ *+' conftest.er1 >conftest.err
9863 rm -f conftest.er1
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } && {
9867 test -z "$ac_c_werror_flag" ||
9868 test ! -s conftest.err
9869 } && test -s conftest.$ac_objext; then
9870 am_cv_proto_iconv_arg1=""
9871 else
9872 echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9874
9875 am_cv_proto_iconv_arg1="const"
9876 fi
9877
9878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9879 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
9880 fi
9881
9882 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9883 { echo "$as_me:$LINENO: result: ${ac_t:-
9884 }$am_cv_proto_iconv" >&5
9885 echo "${ECHO_T}${ac_t:-
9886 }$am_cv_proto_iconv" >&6; }
9887
9888 cat >>confdefs.h <<_ACEOF
9889 #define ICONV_CONST $am_cv_proto_iconv_arg1
9890 _ACEOF
9891
9892 fi
9893
9894
9895 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9896 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9897 if test "${am_cv_langinfo_codeset+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9900 cat >conftest.$ac_ext <<_ACEOF
9901 /* confdefs.h. */
9902 _ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h. */
9906 #include <langinfo.h>
9907 int
9908 main ()
9909 {
9910 char* cs = nl_langinfo(CODESET);
9911 ;
9912 return 0;
9913 }
9914 _ACEOF
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (ac_try="$ac_link"
9917 case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_link") 2>conftest.er1
9923 ac_status=$?
9924 grep -v '^ *+' conftest.er1 >conftest.err
9925 rm -f conftest.er1
9926 cat conftest.err >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } && {
9929 test -z "$ac_c_werror_flag" ||
9930 test ! -s conftest.err
9931 } && test -s conftest$ac_exeext &&
9932 $as_test_x conftest$ac_exeext; then
9933 am_cv_langinfo_codeset=yes
9934 else
9935 echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9937
9938 am_cv_langinfo_codeset=no
9939 fi
9940
9941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9942 conftest$ac_exeext conftest.$ac_ext
9943
9944 fi
9945 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9946 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9947 if test $am_cv_langinfo_codeset = yes; then
9948
9949 cat >>confdefs.h <<\_ACEOF
9950 #define HAVE_LANGINFO_CODESET 1
9951 _ACEOF
9952
9953 fi
9954
9955 if test $ac_cv_header_locale_h = yes; then
9956
9957 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9958 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9959 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 else
9962 cat >conftest.$ac_ext <<_ACEOF
9963 /* confdefs.h. */
9964 _ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9967 /* end confdefs.h. */
9968 #include <locale.h>
9969 int
9970 main ()
9971 {
9972 return LC_MESSAGES
9973 ;
9974 return 0;
9975 }
9976 _ACEOF
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9979 case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982 esac
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_link") 2>conftest.er1
9985 ac_status=$?
9986 grep -v '^ *+' conftest.er1 >conftest.err
9987 rm -f conftest.er1
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } && {
9991 test -z "$ac_c_werror_flag" ||
9992 test ! -s conftest.err
9993 } && test -s conftest$ac_exeext &&
9994 $as_test_x conftest$ac_exeext; then
9995 am_cv_val_LC_MESSAGES=yes
9996 else
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
9999
10000 am_cv_val_LC_MESSAGES=no
10001 fi
10002
10003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10004 conftest$ac_exeext conftest.$ac_ext
10005 fi
10006 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10007 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
10008 if test $am_cv_val_LC_MESSAGES = yes; then
10009
10010 cat >>confdefs.h <<\_ACEOF
10011 #define HAVE_LC_MESSAGES 1
10012 _ACEOF
10013
10014 fi
10015
10016 fi
10017
10018 for ac_prog in bison
10019 do
10020 # Extract the first word of "$ac_prog", so it can be a program name with args.
10021 set dummy $ac_prog; ac_word=$2
10022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10024 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10026 else
10027 if test -n "$INTLBISON"; then
10028 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10029 else
10030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031 for as_dir in $PATH
10032 do
10033 IFS=$as_save_IFS
10034 test -z "$as_dir" && as_dir=.
10035 for ac_exec_ext in '' $ac_executable_extensions; do
10036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10037 ac_cv_prog_INTLBISON="$ac_prog"
10038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10039 break 2
10040 fi
10041 done
10042 done
10043 IFS=$as_save_IFS
10044
10045 fi
10046 fi
10047 INTLBISON=$ac_cv_prog_INTLBISON
10048 if test -n "$INTLBISON"; then
10049 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10050 echo "${ECHO_T}$INTLBISON" >&6; }
10051 else
10052 { echo "$as_me:$LINENO: result: no" >&5
10053 echo "${ECHO_T}no" >&6; }
10054 fi
10055
10056
10057 test -n "$INTLBISON" && break
10058 done
10059
10060 if test -z "$INTLBISON"; then
10061 ac_verc_fail=yes
10062 else
10063 { echo "$as_me:$LINENO: checking version of bison" >&5
10064 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10065 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10066 case $ac_prog_version in
10067 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10068 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10069 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10070 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10071 esac
10072 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10073 echo "${ECHO_T}$ac_prog_version" >&6; }
10074 fi
10075 if test $ac_verc_fail = yes; then
10076 INTLBISON=:
10077 fi
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10095 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10096 # Check whether --enable-nls was given.
10097 if test "${enable_nls+set}" = set; then
10098 enableval=$enable_nls; USE_NLS=$enableval
10099 else
10100 USE_NLS=yes
10101 fi
10102
10103 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10104 echo "${ECHO_T}$USE_NLS" >&6; }
10105
10106
10107
10108
10109 BUILD_INCLUDED_LIBINTL=no
10110 USE_INCLUDED_LIBINTL=no
10111
10112 LIBINTL=
10113 LTLIBINTL=
10114 POSUB=
10115
10116 if test "$USE_NLS" = "yes"; then
10117 gt_use_preinstalled_gnugettext=no
10118
10119 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10120 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10121
10122 # Check whether --with-included-gettext was given.
10123 if test "${with_included_gettext+set}" = set; then
10124 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10125 else
10126 nls_cv_force_use_gnu_gettext=no
10127 fi
10128
10129 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10130 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10131
10132 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10133 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10134
10135
10136
10137
10138
10139
10140 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10141 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10142 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10144 else
10145 cat >conftest.$ac_ext <<_ACEOF
10146 /* confdefs.h. */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10151 #include <libintl.h>
10152 extern int _nl_msg_cat_cntr;
10153 extern int *_nl_domain_bindings;
10154 int
10155 main ()
10156 {
10157 bindtextdomain ("", "");
10158 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10159 ;
10160 return 0;
10161 }
10162 _ACEOF
10163 rm -f conftest.$ac_objext conftest$ac_exeext
10164 if { (ac_try="$ac_link"
10165 case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10168 esac
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170 (eval "$ac_link") 2>conftest.er1
10171 ac_status=$?
10172 grep -v '^ *+' conftest.er1 >conftest.err
10173 rm -f conftest.er1
10174 cat conftest.err >&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } && {
10177 test -z "$ac_c_werror_flag" ||
10178 test ! -s conftest.err
10179 } && test -s conftest$ac_exeext &&
10180 $as_test_x conftest$ac_exeext; then
10181 gt_cv_func_gnugettext1_libc=yes
10182 else
10183 echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10185
10186 gt_cv_func_gnugettext1_libc=no
10187 fi
10188
10189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10190 conftest$ac_exeext conftest.$ac_ext
10191 fi
10192 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10193 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10194
10195 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10196
10197
10198
10199 use_additional=yes
10200
10201 acl_save_prefix="$prefix"
10202 prefix="$acl_final_prefix"
10203 acl_save_exec_prefix="$exec_prefix"
10204 exec_prefix="$acl_final_exec_prefix"
10205
10206 eval additional_includedir=\"$includedir\"
10207 eval additional_libdir=\"$libdir\"
10208
10209 exec_prefix="$acl_save_exec_prefix"
10210 prefix="$acl_save_prefix"
10211
10212
10213 # Check whether --with-libintl-prefix was given.
10214 if test "${with_libintl_prefix+set}" = set; then
10215 withval=$with_libintl_prefix;
10216 if test "X$withval" = "Xno"; then
10217 use_additional=no
10218 else
10219 if test "X$withval" = "X"; then
10220
10221 acl_save_prefix="$prefix"
10222 prefix="$acl_final_prefix"
10223 acl_save_exec_prefix="$exec_prefix"
10224 exec_prefix="$acl_final_exec_prefix"
10225
10226 eval additional_includedir=\"$includedir\"
10227 eval additional_libdir=\"$libdir\"
10228
10229 exec_prefix="$acl_save_exec_prefix"
10230 prefix="$acl_save_prefix"
10231
10232 else
10233 additional_includedir="$withval/include"
10234 additional_libdir="$withval/lib"
10235 fi
10236 fi
10237
10238 fi
10239
10240 LIBINTL=
10241 LTLIBINTL=
10242 INCINTL=
10243 rpathdirs=
10244 ltrpathdirs=
10245 names_already_handled=
10246 names_next_round='intl '
10247 while test -n "$names_next_round"; do
10248 names_this_round="$names_next_round"
10249 names_next_round=
10250 for name in $names_this_round; do
10251 already_handled=
10252 for n in $names_already_handled; do
10253 if test "$n" = "$name"; then
10254 already_handled=yes
10255 break
10256 fi
10257 done
10258 if test -z "$already_handled"; then
10259 names_already_handled="$names_already_handled $name"
10260 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10261 eval value=\"\$HAVE_LIB$uppername\"
10262 if test -n "$value"; then
10263 if test "$value" = yes; then
10264 eval value=\"\$LIB$uppername\"
10265 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10266 eval value=\"\$LTLIB$uppername\"
10267 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10268 else
10269 :
10270 fi
10271 else
10272 found_dir=
10273 found_la=
10274 found_so=
10275 found_a=
10276 if test $use_additional = yes; then
10277 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10278 found_dir="$additional_libdir"
10279 found_so="$additional_libdir/lib$name.$shlibext"
10280 if test -f "$additional_libdir/lib$name.la"; then
10281 found_la="$additional_libdir/lib$name.la"
10282 fi
10283 else
10284 if test -f "$additional_libdir/lib$name.$libext"; then
10285 found_dir="$additional_libdir"
10286 found_a="$additional_libdir/lib$name.$libext"
10287 if test -f "$additional_libdir/lib$name.la"; then
10288 found_la="$additional_libdir/lib$name.la"
10289 fi
10290 fi
10291 fi
10292 fi
10293 if test "X$found_dir" = "X"; then
10294 for x in $LDFLAGS $LTLIBINTL; do
10295
10296 acl_save_prefix="$prefix"
10297 prefix="$acl_final_prefix"
10298 acl_save_exec_prefix="$exec_prefix"
10299 exec_prefix="$acl_final_exec_prefix"
10300 eval x=\"$x\"
10301 exec_prefix="$acl_save_exec_prefix"
10302 prefix="$acl_save_prefix"
10303
10304 case "$x" in
10305 -L*)
10306 dir=`echo "X$x" | sed -e 's/^X-L//'`
10307 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10308 found_dir="$dir"
10309 found_so="$dir/lib$name.$shlibext"
10310 if test -f "$dir/lib$name.la"; then
10311 found_la="$dir/lib$name.la"
10312 fi
10313 else
10314 if test -f "$dir/lib$name.$libext"; then
10315 found_dir="$dir"
10316 found_a="$dir/lib$name.$libext"
10317 if test -f "$dir/lib$name.la"; then
10318 found_la="$dir/lib$name.la"
10319 fi
10320 fi
10321 fi
10322 ;;
10323 esac
10324 if test "X$found_dir" != "X"; then
10325 break
10326 fi
10327 done
10328 fi
10329 if test "X$found_dir" != "X"; then
10330 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10331 if test "X$found_so" != "X"; then
10332 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10333 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10334 else
10335 haveit=
10336 for x in $ltrpathdirs; do
10337 if test "X$x" = "X$found_dir"; then
10338 haveit=yes
10339 break
10340 fi
10341 done
10342 if test -z "$haveit"; then
10343 ltrpathdirs="$ltrpathdirs $found_dir"
10344 fi
10345 if test "$hardcode_direct" = yes; then
10346 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10347 else
10348 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10349 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10350 haveit=
10351 for x in $rpathdirs; do
10352 if test "X$x" = "X$found_dir"; then
10353 haveit=yes
10354 break
10355 fi
10356 done
10357 if test -z "$haveit"; then
10358 rpathdirs="$rpathdirs $found_dir"
10359 fi
10360 else
10361 haveit=
10362 for x in $LDFLAGS $LIBINTL; do
10363
10364 acl_save_prefix="$prefix"
10365 prefix="$acl_final_prefix"
10366 acl_save_exec_prefix="$exec_prefix"
10367 exec_prefix="$acl_final_exec_prefix"
10368 eval x=\"$x\"
10369 exec_prefix="$acl_save_exec_prefix"
10370 prefix="$acl_save_prefix"
10371
10372 if test "X$x" = "X-L$found_dir"; then
10373 haveit=yes
10374 break
10375 fi
10376 done
10377 if test -z "$haveit"; then
10378 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10379 fi
10380 if test "$hardcode_minus_L" != no; then
10381 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10382 else
10383 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10384 fi
10385 fi
10386 fi
10387 fi
10388 else
10389 if test "X$found_a" != "X"; then
10390 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10391 else
10392 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10393 fi
10394 fi
10395 additional_includedir=
10396 case "$found_dir" in
10397 */lib | */lib/)
10398 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10399 additional_includedir="$basedir/include"
10400 ;;
10401 esac
10402 if test "X$additional_includedir" != "X"; then
10403 if test "X$additional_includedir" != "X/usr/include"; then
10404 haveit=
10405 if test "X$additional_includedir" = "X/usr/local/include"; then
10406 if test -n "$GCC"; then
10407 case $host_os in
10408 linux*) haveit=yes;;
10409 esac
10410 fi
10411 fi
10412 if test -z "$haveit"; then
10413 for x in $CPPFLAGS $INCINTL; do
10414
10415 acl_save_prefix="$prefix"
10416 prefix="$acl_final_prefix"
10417 acl_save_exec_prefix="$exec_prefix"
10418 exec_prefix="$acl_final_exec_prefix"
10419 eval x=\"$x\"
10420 exec_prefix="$acl_save_exec_prefix"
10421 prefix="$acl_save_prefix"
10422
10423 if test "X$x" = "X-I$additional_includedir"; then
10424 haveit=yes
10425 break
10426 fi
10427 done
10428 if test -z "$haveit"; then
10429 if test -d "$additional_includedir"; then
10430 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10431 fi
10432 fi
10433 fi
10434 fi
10435 fi
10436 if test -n "$found_la"; then
10437 save_libdir="$libdir"
10438 case "$found_la" in
10439 */* | *\\*) . "$found_la" ;;
10440 *) . "./$found_la" ;;
10441 esac
10442 libdir="$save_libdir"
10443 for dep in $dependency_libs; do
10444 case "$dep" in
10445 -L*)
10446 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10447 if test "X$additional_libdir" != "X/usr/lib"; then
10448 haveit=
10449 if test "X$additional_libdir" = "X/usr/local/lib"; then
10450 if test -n "$GCC"; then
10451 case $host_os in
10452 linux*) haveit=yes;;
10453 esac
10454 fi
10455 fi
10456 if test -z "$haveit"; then
10457 haveit=
10458 for x in $LDFLAGS $LIBINTL; do
10459
10460 acl_save_prefix="$prefix"
10461 prefix="$acl_final_prefix"
10462 acl_save_exec_prefix="$exec_prefix"
10463 exec_prefix="$acl_final_exec_prefix"
10464 eval x=\"$x\"
10465 exec_prefix="$acl_save_exec_prefix"
10466 prefix="$acl_save_prefix"
10467
10468 if test "X$x" = "X-L$additional_libdir"; then
10469 haveit=yes
10470 break
10471 fi
10472 done
10473 if test -z "$haveit"; then
10474 if test -d "$additional_libdir"; then
10475 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10476 fi
10477 fi
10478 haveit=
10479 for x in $LDFLAGS $LTLIBINTL; do
10480
10481 acl_save_prefix="$prefix"
10482 prefix="$acl_final_prefix"
10483 acl_save_exec_prefix="$exec_prefix"
10484 exec_prefix="$acl_final_exec_prefix"
10485 eval x=\"$x\"
10486 exec_prefix="$acl_save_exec_prefix"
10487 prefix="$acl_save_prefix"
10488
10489 if test "X$x" = "X-L$additional_libdir"; then
10490 haveit=yes
10491 break
10492 fi
10493 done
10494 if test -z "$haveit"; then
10495 if test -d "$additional_libdir"; then
10496 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10497 fi
10498 fi
10499 fi
10500 fi
10501 ;;
10502 -R*)
10503 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10504 if test "$enable_rpath" != no; then
10505 haveit=
10506 for x in $rpathdirs; do
10507 if test "X$x" = "X$dir"; then
10508 haveit=yes
10509 break
10510 fi
10511 done
10512 if test -z "$haveit"; then
10513 rpathdirs="$rpathdirs $dir"
10514 fi
10515 haveit=
10516 for x in $ltrpathdirs; do
10517 if test "X$x" = "X$dir"; then
10518 haveit=yes
10519 break
10520 fi
10521 done
10522 if test -z "$haveit"; then
10523 ltrpathdirs="$ltrpathdirs $dir"
10524 fi
10525 fi
10526 ;;
10527 -l*)
10528 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10529 ;;
10530 *.la)
10531 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10532 ;;
10533 *)
10534 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10535 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10536 ;;
10537 esac
10538 done
10539 fi
10540 else
10541 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10542 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10543 fi
10544 fi
10545 fi
10546 done
10547 done
10548 if test "X$rpathdirs" != "X"; then
10549 if test -n "$hardcode_libdir_separator"; then
10550 alldirs=
10551 for found_dir in $rpathdirs; do
10552 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10553 done
10554 acl_save_libdir="$libdir"
10555 libdir="$alldirs"
10556 eval flag=\"$hardcode_libdir_flag_spec\"
10557 libdir="$acl_save_libdir"
10558 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10559 else
10560 for found_dir in $rpathdirs; do
10561 acl_save_libdir="$libdir"
10562 libdir="$found_dir"
10563 eval flag=\"$hardcode_libdir_flag_spec\"
10564 libdir="$acl_save_libdir"
10565 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10566 done
10567 fi
10568 fi
10569 if test "X$ltrpathdirs" != "X"; then
10570 for found_dir in $ltrpathdirs; do
10571 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10572 done
10573 fi
10574
10575 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10576 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10577 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 else
10580 gt_save_CPPFLAGS="$CPPFLAGS"
10581 CPPFLAGS="$CPPFLAGS $INCINTL"
10582 gt_save_LIBS="$LIBS"
10583 LIBS="$LIBS $LIBINTL"
10584 cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h. */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10590 #include <libintl.h>
10591 extern int _nl_msg_cat_cntr;
10592 extern
10593 #ifdef __cplusplus
10594 "C"
10595 #endif
10596 const char *_nl_expand_alias ();
10597 int
10598 main ()
10599 {
10600 bindtextdomain ("", "");
10601 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10602 ;
10603 return 0;
10604 }
10605 _ACEOF
10606 rm -f conftest.$ac_objext conftest$ac_exeext
10607 if { (ac_try="$ac_link"
10608 case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10611 esac
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_link") 2>conftest.er1
10614 ac_status=$?
10615 grep -v '^ *+' conftest.er1 >conftest.err
10616 rm -f conftest.er1
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } && {
10620 test -z "$ac_c_werror_flag" ||
10621 test ! -s conftest.err
10622 } && test -s conftest$ac_exeext &&
10623 $as_test_x conftest$ac_exeext; then
10624 gt_cv_func_gnugettext1_libintl=yes
10625 else
10626 echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10628
10629 gt_cv_func_gnugettext1_libintl=no
10630 fi
10631
10632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10633 conftest$ac_exeext conftest.$ac_ext
10634 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10635 LIBS="$LIBS $LIBICONV"
10636 cat >conftest.$ac_ext <<_ACEOF
10637 /* confdefs.h. */
10638 _ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h. */
10642 #include <libintl.h>
10643 extern int _nl_msg_cat_cntr;
10644 extern
10645 #ifdef __cplusplus
10646 "C"
10647 #endif
10648 const char *_nl_expand_alias ();
10649 int
10650 main ()
10651 {
10652 bindtextdomain ("", "");
10653 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10654 ;
10655 return 0;
10656 }
10657 _ACEOF
10658 rm -f conftest.$ac_objext conftest$ac_exeext
10659 if { (ac_try="$ac_link"
10660 case "(($ac_try" in
10661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662 *) ac_try_echo=$ac_try;;
10663 esac
10664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665 (eval "$ac_link") 2>conftest.er1
10666 ac_status=$?
10667 grep -v '^ *+' conftest.er1 >conftest.err
10668 rm -f conftest.er1
10669 cat conftest.err >&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } && {
10672 test -z "$ac_c_werror_flag" ||
10673 test ! -s conftest.err
10674 } && test -s conftest$ac_exeext &&
10675 $as_test_x conftest$ac_exeext; then
10676 LIBINTL="$LIBINTL $LIBICONV"
10677 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10678 gt_cv_func_gnugettext1_libintl=yes
10679
10680 else
10681 echo "$as_me: failed program was:" >&5
10682 sed 's/^/| /' conftest.$ac_ext >&5
10683
10684
10685 fi
10686
10687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10688 conftest$ac_exeext conftest.$ac_ext
10689 fi
10690 CPPFLAGS="$gt_save_CPPFLAGS"
10691 LIBS="$gt_save_LIBS"
10692 fi
10693 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10694 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10695 fi
10696
10697 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10698 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10699 && test "$PACKAGE" != gettext-runtime \
10700 && test "$PACKAGE" != gettext-tools; }; then
10701 gt_use_preinstalled_gnugettext=yes
10702 else
10703 LIBINTL=
10704 LTLIBINTL=
10705 INCINTL=
10706 fi
10707
10708
10709 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10710 nls_cv_use_gnu_gettext=yes
10711 fi
10712 fi
10713
10714 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10715 BUILD_INCLUDED_LIBINTL=yes
10716 USE_INCLUDED_LIBINTL=yes
10717 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10718 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10719 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10720 fi
10721
10722 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10723 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10724 CATOBJEXT=.gmo
10725 fi
10726
10727
10728 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10729 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10730
10731 cat >>confdefs.h <<\_ACEOF
10732 #define ENABLE_NLS 1
10733 _ACEOF
10734
10735 else
10736 USE_NLS=no
10737 fi
10738 fi
10739
10740 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10741 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10742 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10743 echo "${ECHO_T}$USE_NLS" >&6; }
10744 if test "$USE_NLS" = "yes"; then
10745 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10746 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10747 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10748 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10749 gt_source="external libintl"
10750 else
10751 gt_source="libc"
10752 fi
10753 else
10754 gt_source="included intl directory"
10755 fi
10756 { echo "$as_me:$LINENO: result: $gt_source" >&5
10757 echo "${ECHO_T}$gt_source" >&6; }
10758 fi
10759
10760 if test "$USE_NLS" = "yes"; then
10761
10762 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10763 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10764 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10765 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10766 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10767 echo "${ECHO_T}$LIBINTL" >&6; }
10768
10769 for element in $INCINTL; do
10770 haveit=
10771 for x in $CPPFLAGS; do
10772
10773 acl_save_prefix="$prefix"
10774 prefix="$acl_final_prefix"
10775 acl_save_exec_prefix="$exec_prefix"
10776 exec_prefix="$acl_final_exec_prefix"
10777 eval x=\"$x\"
10778 exec_prefix="$acl_save_exec_prefix"
10779 prefix="$acl_save_prefix"
10780
10781 if test "X$x" = "X$element"; then
10782 haveit=yes
10783 break
10784 fi
10785 done
10786 if test -z "$haveit"; then
10787 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10788 fi
10789 done
10790
10791 fi
10792
10793
10794 cat >>confdefs.h <<\_ACEOF
10795 #define HAVE_GETTEXT 1
10796 _ACEOF
10797
10798
10799 cat >>confdefs.h <<\_ACEOF
10800 #define HAVE_DCGETTEXT 1
10801 _ACEOF
10802
10803 fi
10804
10805 POSUB=po
10806 fi
10807
10808
10809 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10810 BUILD_INCLUDED_LIBINTL=yes
10811 fi
10812
10813
10814
10815
10816
10817 nls_cv_header_intl=
10818 nls_cv_header_libgt=
10819
10820 DATADIRNAME=share
10821
10822
10823 INSTOBJEXT=.mo
10824
10825
10826 GENCAT=gencat
10827
10828
10829 if test "$USE_INCLUDED_LIBINTL" = yes; then
10830 INTLOBJS="\$(GETTOBJS)"
10831 fi
10832
10833
10834 INTL_LIBTOOL_SUFFIX_PREFIX=
10835
10836
10837
10838 INTLLIBS="$LIBINTL"
10839
10840
10841
10842
10843
10844
10845
10846 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10847 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10848 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10849 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10851 else
10852 cat >conftest.make <<\_ACEOF
10853 SHELL = /bin/sh
10854 all:
10855 @echo '@@@%%%=$(MAKE)=@@@%%%'
10856 _ACEOF
10857 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10858 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10859 *@@@%%%=?*=@@@%%%*)
10860 eval ac_cv_prog_make_${ac_make}_set=yes;;
10861 *)
10862 eval ac_cv_prog_make_${ac_make}_set=no;;
10863 esac
10864 rm -f conftest.make
10865 fi
10866 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10867 { echo "$as_me:$LINENO: result: yes" >&5
10868 echo "${ECHO_T}yes" >&6; }
10869 SET_MAKE=
10870 else
10871 { echo "$as_me:$LINENO: result: no" >&5
10872 echo "${ECHO_T}no" >&6; }
10873 SET_MAKE="MAKE=${MAKE-make}"
10874 fi
10875
10876 # Extract the first word of "ln", so it can be a program name with args.
10877 set dummy ln; ac_word=$2
10878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10880 if test "${ac_cv_path_LN+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 else
10883 case $LN in
10884 [\\/]* | ?:[\\/]*)
10885 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10886 ;;
10887 *)
10888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889 for as_dir in $PATH
10890 do
10891 IFS=$as_save_IFS
10892 test -z "$as_dir" && as_dir=.
10893 for ac_exec_ext in '' $ac_executable_extensions; do
10894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10895 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10897 break 2
10898 fi
10899 done
10900 done
10901 IFS=$as_save_IFS
10902
10903 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10904 ;;
10905 esac
10906 fi
10907 LN=$ac_cv_path_LN
10908 if test -n "$LN"; then
10909 { echo "$as_me:$LINENO: result: $LN" >&5
10910 echo "${ECHO_T}$LN" >&6; }
10911 else
10912 { echo "$as_me:$LINENO: result: no" >&5
10913 echo "${ECHO_T}no" >&6; }
10914 fi
10915
10916
10917 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10918 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10919 LN_S=$as_ln_s
10920 if test "$LN_S" = "ln -s"; then
10921 { echo "$as_me:$LINENO: result: yes" >&5
10922 echo "${ECHO_T}yes" >&6; }
10923 else
10924 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10925 echo "${ECHO_T}no, using $LN_S" >&6; }
10926 fi
10927
10928 # Extract the first word of "mv", so it can be a program name with args.
10929 set dummy mv; ac_word=$2
10930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10932 if test "${ac_cv_path_MV+set}" = set; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10934 else
10935 case $MV in
10936 [\\/]* | ?:[\\/]*)
10937 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10938 ;;
10939 *)
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in $PATH
10942 do
10943 IFS=$as_save_IFS
10944 test -z "$as_dir" && as_dir=.
10945 for ac_exec_ext in '' $ac_executable_extensions; do
10946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10947 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10949 break 2
10950 fi
10951 done
10952 done
10953 IFS=$as_save_IFS
10954
10955 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10956 ;;
10957 esac
10958 fi
10959 MV=$ac_cv_path_MV
10960 if test -n "$MV"; then
10961 { echo "$as_me:$LINENO: result: $MV" >&5
10962 echo "${ECHO_T}$MV" >&6; }
10963 else
10964 { echo "$as_me:$LINENO: result: no" >&5
10965 echo "${ECHO_T}no" >&6; }
10966 fi
10967
10968
10969 # Extract the first word of "cp", so it can be a program name with args.
10970 set dummy cp; ac_word=$2
10971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10973 if test "${ac_cv_path_CP+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 else
10976 case $CP in
10977 [\\/]* | ?:[\\/]*)
10978 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10979 ;;
10980 *)
10981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982 for as_dir in $PATH
10983 do
10984 IFS=$as_save_IFS
10985 test -z "$as_dir" && as_dir=.
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10988 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10990 break 2
10991 fi
10992 done
10993 done
10994 IFS=$as_save_IFS
10995
10996 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10997 ;;
10998 esac
10999 fi
11000 CP=$ac_cv_path_CP
11001 if test -n "$CP"; then
11002 { echo "$as_me:$LINENO: result: $CP" >&5
11003 echo "${ECHO_T}$CP" >&6; }
11004 else
11005 { echo "$as_me:$LINENO: result: no" >&5
11006 echo "${ECHO_T}no" >&6; }
11007 fi
11008
11009
11010 # Extract the first word of "rm", so it can be a program name with args.
11011 set dummy rm; ac_word=$2
11012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11014 if test "${ac_cv_path_RM+set}" = set; then
11015 echo $ECHO_N "(cached) $ECHO_C" >&6
11016 else
11017 case $RM in
11018 [\\/]* | ?:[\\/]*)
11019 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11020 ;;
11021 *)
11022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11023 for as_dir in $PATH
11024 do
11025 IFS=$as_save_IFS
11026 test -z "$as_dir" && as_dir=.
11027 for ac_exec_ext in '' $ac_executable_extensions; do
11028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11029 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11031 break 2
11032 fi
11033 done
11034 done
11035 IFS=$as_save_IFS
11036
11037 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11038 ;;
11039 esac
11040 fi
11041 RM=$ac_cv_path_RM
11042 if test -n "$RM"; then
11043 { echo "$as_me:$LINENO: result: $RM" >&5
11044 echo "${ECHO_T}$RM" >&6; }
11045 else
11046 { echo "$as_me:$LINENO: result: no" >&5
11047 echo "${ECHO_T}no" >&6; }
11048 fi
11049
11050
11051 # Extract the first word of "chmod", so it can be a program name with args.
11052 set dummy chmod; ac_word=$2
11053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11055 if test "${ac_cv_path_CHMOD+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11057 else
11058 case $CHMOD in
11059 [\\/]* | ?:[\\/]*)
11060 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11061 ;;
11062 *)
11063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11064 for as_dir in $PATH
11065 do
11066 IFS=$as_save_IFS
11067 test -z "$as_dir" && as_dir=.
11068 for ac_exec_ext in '' $ac_executable_extensions; do
11069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11070 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11072 break 2
11073 fi
11074 done
11075 done
11076 IFS=$as_save_IFS
11077
11078 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11079 ;;
11080 esac
11081 fi
11082 CHMOD=$ac_cv_path_CHMOD
11083 if test -n "$CHMOD"; then
11084 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11085 echo "${ECHO_T}$CHMOD" >&6; }
11086 else
11087 { echo "$as_me:$LINENO: result: no" >&5
11088 echo "${ECHO_T}no" >&6; }
11089 fi
11090
11091
11092 for ac_prog in gawk mawk nawk awk
11093 do
11094 # Extract the first word of "$ac_prog", so it can be a program name with args.
11095 set dummy $ac_prog; ac_word=$2
11096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11098 if test "${ac_cv_prog_AWK+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 else
11101 if test -n "$AWK"; then
11102 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11103 else
11104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11105 for as_dir in $PATH
11106 do
11107 IFS=$as_save_IFS
11108 test -z "$as_dir" && as_dir=.
11109 for ac_exec_ext in '' $ac_executable_extensions; do
11110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11111 ac_cv_prog_AWK="$ac_prog"
11112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11113 break 2
11114 fi
11115 done
11116 done
11117 IFS=$as_save_IFS
11118
11119 fi
11120 fi
11121 AWK=$ac_cv_prog_AWK
11122 if test -n "$AWK"; then
11123 { echo "$as_me:$LINENO: result: $AWK" >&5
11124 echo "${ECHO_T}$AWK" >&6; }
11125 else
11126 { echo "$as_me:$LINENO: result: no" >&5
11127 echo "${ECHO_T}no" >&6; }
11128 fi
11129
11130
11131 test -n "$AWK" && break
11132 done
11133
11134 { echo "$as_me:$LINENO: checking for egrep" >&5
11135 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11136 if test "${ac_cv_path_EGREP+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 else
11139 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11140 then ac_cv_path_EGREP="$GREP -E"
11141 else
11142 # Extract the first word of "egrep" to use in msg output
11143 if test -z "$EGREP"; then
11144 set dummy egrep; ac_prog_name=$2
11145 if test "${ac_cv_path_EGREP+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11147 else
11148 ac_path_EGREP_found=false
11149 # Loop through the user's path and test for each of PROGNAME-LIST
11150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11151 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11152 do
11153 IFS=$as_save_IFS
11154 test -z "$as_dir" && as_dir=.
11155 for ac_prog in egrep; do
11156 for ac_exec_ext in '' $ac_executable_extensions; do
11157 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11158 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11159 # Check for GNU ac_path_EGREP and select it if it is found.
11160 # Check for GNU $ac_path_EGREP
11161 case `"$ac_path_EGREP" --version 2>&1` in
11162 *GNU*)
11163 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11164 *)
11165 ac_count=0
11166 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11167 while :
11168 do
11169 cat "conftest.in" "conftest.in" >"conftest.tmp"
11170 mv "conftest.tmp" "conftest.in"
11171 cp "conftest.in" "conftest.nl"
11172 echo 'EGREP' >> "conftest.nl"
11173 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11175 ac_count=`expr $ac_count + 1`
11176 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11177 # Best one so far, save it but keep looking for a better one
11178 ac_cv_path_EGREP="$ac_path_EGREP"
11179 ac_path_EGREP_max=$ac_count
11180 fi
11181 # 10*(2^10) chars as input seems more than enough
11182 test $ac_count -gt 10 && break
11183 done
11184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11185 esac
11186
11187
11188 $ac_path_EGREP_found && break 3
11189 done
11190 done
11191
11192 done
11193 IFS=$as_save_IFS
11194
11195
11196 fi
11197
11198 EGREP="$ac_cv_path_EGREP"
11199 if test -z "$EGREP"; then
11200 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11201 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11202 { (exit 1); exit 1; }; }
11203 fi
11204
11205 else
11206 ac_cv_path_EGREP=$EGREP
11207 fi
11208
11209
11210 fi
11211 fi
11212 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11213 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11214 EGREP="$ac_cv_path_EGREP"
11215
11216
11217 # Extract the first word of "sed", so it can be a program name with args.
11218 set dummy sed; ac_word=$2
11219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11221 if test "${ac_cv_path_SED+set}" = set; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11223 else
11224 case $SED in
11225 [\\/]* | ?:[\\/]*)
11226 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11227 ;;
11228 *)
11229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230 for as_dir in $PATH
11231 do
11232 IFS=$as_save_IFS
11233 test -z "$as_dir" && as_dir=.
11234 for ac_exec_ext in '' $ac_executable_extensions; do
11235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11236 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11238 break 2
11239 fi
11240 done
11241 done
11242 IFS=$as_save_IFS
11243
11244 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11245 ;;
11246 esac
11247 fi
11248 SED=$ac_cv_path_SED
11249 if test -n "$SED"; then
11250 { echo "$as_me:$LINENO: result: $SED" >&5
11251 echo "${ECHO_T}$SED" >&6; }
11252 else
11253 { echo "$as_me:$LINENO: result: no" >&5
11254 echo "${ECHO_T}no" >&6; }
11255 fi
11256
11257
11258 # Extract the first word of "perl", so it can be a program name with args.
11259 set dummy perl; ac_word=$2
11260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11262 if test "${ac_cv_path_PERL+set}" = set; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11264 else
11265 case $PERL in
11266 [\\/]* | ?:[\\/]*)
11267 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11268 ;;
11269 *)
11270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271 for as_dir in $PATH
11272 do
11273 IFS=$as_save_IFS
11274 test -z "$as_dir" && as_dir=.
11275 for ac_exec_ext in '' $ac_executable_extensions; do
11276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11277 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11279 break 2
11280 fi
11281 done
11282 done
11283 IFS=$as_save_IFS
11284
11285 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11286 ;;
11287 esac
11288 fi
11289 PERL=$ac_cv_path_PERL
11290 if test -n "$PERL"; then
11291 { echo "$as_me:$LINENO: result: $PERL" >&5
11292 echo "${ECHO_T}$PERL" >&6; }
11293 else
11294 { echo "$as_me:$LINENO: result: no" >&5
11295 echo "${ECHO_T}no" >&6; }
11296 fi
11297
11298
11299 # Extract the first word of "ldconfig", so it can be a program name with args.
11300 set dummy ldconfig; ac_word=$2
11301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11303 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11305 else
11306 case $LDCONFIG in
11307 [\\/]* | ?:[\\/]*)
11308 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11309 ;;
11310 *)
11311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312 for as_dir in $PATH
11313 do
11314 IFS=$as_save_IFS
11315 test -z "$as_dir" && as_dir=.
11316 for ac_exec_ext in '' $ac_executable_extensions; do
11317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11318 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11320 break 2
11321 fi
11322 done
11323 done
11324 IFS=$as_save_IFS
11325
11326 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11327 ;;
11328 esac
11329 fi
11330 LDCONFIG=$ac_cv_path_LDCONFIG
11331 if test -n "$LDCONFIG"; then
11332 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11333 echo "${ECHO_T}$LDCONFIG" >&6; }
11334 else
11335 { echo "$as_me:$LINENO: result: no" >&5
11336 echo "${ECHO_T}no" >&6; }
11337 fi
11338
11339
11340 if test -n "$ac_tool_prefix"; then
11341 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11342 set dummy ${ac_tool_prefix}ar; ac_word=$2
11343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11345 if test "${ac_cv_prog_AR+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11347 else
11348 if test -n "$AR"; then
11349 ac_cv_prog_AR="$AR" # Let the user override the test.
11350 else
11351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352 for as_dir in $PATH
11353 do
11354 IFS=$as_save_IFS
11355 test -z "$as_dir" && as_dir=.
11356 for ac_exec_ext in '' $ac_executable_extensions; do
11357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11358 ac_cv_prog_AR="${ac_tool_prefix}ar"
11359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11360 break 2
11361 fi
11362 done
11363 done
11364 IFS=$as_save_IFS
11365
11366 fi
11367 fi
11368 AR=$ac_cv_prog_AR
11369 if test -n "$AR"; then
11370 { echo "$as_me:$LINENO: result: $AR" >&5
11371 echo "${ECHO_T}$AR" >&6; }
11372 else
11373 { echo "$as_me:$LINENO: result: no" >&5
11374 echo "${ECHO_T}no" >&6; }
11375 fi
11376
11377
11378 fi
11379 if test -z "$ac_cv_prog_AR"; then
11380 ac_ct_AR=$AR
11381 # Extract the first word of "ar", so it can be a program name with args.
11382 set dummy ar; ac_word=$2
11383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11385 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388 if test -n "$ac_ct_AR"; then
11389 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11390 else
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11393 do
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398 ac_cv_prog_ac_ct_AR="ar"
11399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11400 break 2
11401 fi
11402 done
11403 done
11404 IFS=$as_save_IFS
11405
11406 fi
11407 fi
11408 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11409 if test -n "$ac_ct_AR"; then
11410 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11411 echo "${ECHO_T}$ac_ct_AR" >&6; }
11412 else
11413 { echo "$as_me:$LINENO: result: no" >&5
11414 echo "${ECHO_T}no" >&6; }
11415 fi
11416
11417 if test "x$ac_ct_AR" = x; then
11418 AR="ar"
11419 else
11420 case $cross_compiling:$ac_tool_warned in
11421 yes:)
11422 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11423 whose name does not start with the host triplet. If you think this
11424 configuration is useful to you, please write to autoconf@gnu.org." >&5
11425 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11426 whose name does not start with the host triplet. If you think this
11427 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11428 ac_tool_warned=yes ;;
11429 esac
11430 AR=$ac_ct_AR
11431 fi
11432 else
11433 AR="$ac_cv_prog_AR"
11434 fi
11435
11436 if test -n "$ac_tool_prefix"; then
11437 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11438 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11441 if test "${ac_cv_prog_RANLIB+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11443 else
11444 if test -n "$RANLIB"; then
11445 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11446 else
11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448 for as_dir in $PATH
11449 do
11450 IFS=$as_save_IFS
11451 test -z "$as_dir" && as_dir=.
11452 for ac_exec_ext in '' $ac_executable_extensions; do
11453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11454 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11456 break 2
11457 fi
11458 done
11459 done
11460 IFS=$as_save_IFS
11461
11462 fi
11463 fi
11464 RANLIB=$ac_cv_prog_RANLIB
11465 if test -n "$RANLIB"; then
11466 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11467 echo "${ECHO_T}$RANLIB" >&6; }
11468 else
11469 { echo "$as_me:$LINENO: result: no" >&5
11470 echo "${ECHO_T}no" >&6; }
11471 fi
11472
11473
11474 fi
11475 if test -z "$ac_cv_prog_RANLIB"; then
11476 ac_ct_RANLIB=$RANLIB
11477 # Extract the first word of "ranlib", so it can be a program name with args.
11478 set dummy ranlib; ac_word=$2
11479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11481 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 else
11484 if test -n "$ac_ct_RANLIB"; then
11485 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11486 else
11487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11488 for as_dir in $PATH
11489 do
11490 IFS=$as_save_IFS
11491 test -z "$as_dir" && as_dir=.
11492 for ac_exec_ext in '' $ac_executable_extensions; do
11493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11494 ac_cv_prog_ac_ct_RANLIB="ranlib"
11495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11496 break 2
11497 fi
11498 done
11499 done
11500 IFS=$as_save_IFS
11501
11502 fi
11503 fi
11504 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11505 if test -n "$ac_ct_RANLIB"; then
11506 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11507 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11508 else
11509 { echo "$as_me:$LINENO: result: no" >&5
11510 echo "${ECHO_T}no" >&6; }
11511 fi
11512
11513 if test "x$ac_ct_RANLIB" = x; then
11514 RANLIB=":"
11515 else
11516 case $cross_compiling:$ac_tool_warned in
11517 yes:)
11518 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11519 whose name does not start with the host triplet. If you think this
11520 configuration is useful to you, please write to autoconf@gnu.org." >&5
11521 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11522 whose name does not start with the host triplet. If you think this
11523 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11524 ac_tool_warned=yes ;;
11525 esac
11526 RANLIB=$ac_ct_RANLIB
11527 fi
11528 else
11529 RANLIB="$ac_cv_prog_RANLIB"
11530 fi
11531
11532 if test -n "$ac_tool_prefix"; then
11533 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11534 set dummy ${ac_tool_prefix}strip; ac_word=$2
11535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11537 if test "${ac_cv_prog_STRIP+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 else
11540 if test -n "$STRIP"; then
11541 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11542 else
11543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544 for as_dir in $PATH
11545 do
11546 IFS=$as_save_IFS
11547 test -z "$as_dir" && as_dir=.
11548 for ac_exec_ext in '' $ac_executable_extensions; do
11549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11550 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11552 break 2
11553 fi
11554 done
11555 done
11556 IFS=$as_save_IFS
11557
11558 fi
11559 fi
11560 STRIP=$ac_cv_prog_STRIP
11561 if test -n "$STRIP"; then
11562 { echo "$as_me:$LINENO: result: $STRIP" >&5
11563 echo "${ECHO_T}$STRIP" >&6; }
11564 else
11565 { echo "$as_me:$LINENO: result: no" >&5
11566 echo "${ECHO_T}no" >&6; }
11567 fi
11568
11569
11570 fi
11571 if test -z "$ac_cv_prog_STRIP"; then
11572 ac_ct_STRIP=$STRIP
11573 # Extract the first word of "strip", so it can be a program name with args.
11574 set dummy strip; ac_word=$2
11575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11577 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
11579 else
11580 if test -n "$ac_ct_STRIP"; then
11581 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11582 else
11583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in $PATH
11585 do
11586 IFS=$as_save_IFS
11587 test -z "$as_dir" && as_dir=.
11588 for ac_exec_ext in '' $ac_executable_extensions; do
11589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11590 ac_cv_prog_ac_ct_STRIP="strip"
11591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11592 break 2
11593 fi
11594 done
11595 done
11596 IFS=$as_save_IFS
11597
11598 fi
11599 fi
11600 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11601 if test -n "$ac_ct_STRIP"; then
11602 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11603 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11604 else
11605 { echo "$as_me:$LINENO: result: no" >&5
11606 echo "${ECHO_T}no" >&6; }
11607 fi
11608
11609 if test "x$ac_ct_STRIP" = x; then
11610 STRIP=":"
11611 else
11612 case $cross_compiling:$ac_tool_warned in
11613 yes:)
11614 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11615 whose name does not start with the host triplet. If you think this
11616 configuration is useful to you, please write to autoconf@gnu.org." >&5
11617 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11618 whose name does not start with the host triplet. If you think this
11619 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11620 ac_tool_warned=yes ;;
11621 esac
11622 STRIP=$ac_ct_STRIP
11623 fi
11624 else
11625 STRIP="$ac_cv_prog_STRIP"
11626 fi
11627
11628 # Extract the first word of "makeinfo", so it can be a program name with args.
11629 set dummy makeinfo; ac_word=$2
11630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11632 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635 if test -n "$MAKEINFO"; then
11636 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11637 else
11638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11639 for as_dir in $PATH
11640 do
11641 IFS=$as_save_IFS
11642 test -z "$as_dir" && as_dir=.
11643 for ac_exec_ext in '' $ac_executable_extensions; do
11644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11645 ac_cv_prog_MAKEINFO="makeinfo"
11646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11647 break 2
11648 fi
11649 done
11650 done
11651 IFS=$as_save_IFS
11652
11653 fi
11654 fi
11655 MAKEINFO=$ac_cv_prog_MAKEINFO
11656 if test -n "$MAKEINFO"; then
11657 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11658 echo "${ECHO_T}$MAKEINFO" >&6; }
11659 else
11660 { echo "$as_me:$LINENO: result: no" >&5
11661 echo "${ECHO_T}no" >&6; }
11662 fi
11663
11664
11665 if test "_$MAKEINFO" = "_"; then
11666 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11667 else
11668 case "$MAKEINFO" in
11669 */missing.*)
11670 { echo "$as_me:$LINENO: WARNING:
11671 *** Makeinfo is missing. Info documentation will not be built." >&5
11672 echo "$as_me: WARNING:
11673 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11674 ;;
11675 *)
11676 ;;
11677 esac
11678 fi
11679
11680 # Find a good install program. We prefer a C program (faster),
11681 # so one script is as good as another. But avoid the broken or
11682 # incompatible versions:
11683 # SysV /etc/install, /usr/sbin/install
11684 # SunOS /usr/etc/install
11685 # IRIX /sbin/install
11686 # AIX /bin/install
11687 # AmigaOS /C/install, which installs bootblocks on floppy discs
11688 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11689 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11690 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11691 # OS/2's system install, which has a completely different semantic
11692 # ./install, which can be erroneously created by make from ./install.sh.
11693 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11694 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11695 if test -z "$INSTALL"; then
11696 if test "${ac_cv_path_install+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11698 else
11699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11700 for as_dir in $PATH
11701 do
11702 IFS=$as_save_IFS
11703 test -z "$as_dir" && as_dir=.
11704 # Account for people who put trailing slashes in PATH elements.
11705 case $as_dir/ in
11706 ./ | .// | /cC/* | \
11707 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11708 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11709 /usr/ucb/* ) ;;
11710 *)
11711 # OSF1 and SCO ODT 3.0 have their own names for install.
11712 # Don't use installbsd from OSF since it installs stuff as root
11713 # by default.
11714 for ac_prog in ginstall scoinst install; do
11715 for ac_exec_ext in '' $ac_executable_extensions; do
11716 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11717 if test $ac_prog = install &&
11718 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11719 # AIX install. It has an incompatible calling convention.
11720 :
11721 elif test $ac_prog = install &&
11722 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11723 # program-specific install script used by HP pwplus--don't use.
11724 :
11725 else
11726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11727 break 3
11728 fi
11729 fi
11730 done
11731 done
11732 ;;
11733 esac
11734 done
11735 IFS=$as_save_IFS
11736
11737
11738 fi
11739 if test "${ac_cv_path_install+set}" = set; then
11740 INSTALL=$ac_cv_path_install
11741 else
11742 # As a last resort, use the slow shell script. Don't cache a
11743 # value for INSTALL within a source directory, because that will
11744 # break other packages using the cache if that directory is
11745 # removed, or if the value is a relative name.
11746 INSTALL=$ac_install_sh
11747 fi
11748 fi
11749 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11750 echo "${ECHO_T}$INSTALL" >&6; }
11751
11752 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11753 # It thinks the first close brace ends the variable substitution.
11754 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11755
11756 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11757
11758 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11759
11760 # See if we need a separate native compiler.
11761 if test $cross_compiling = no; then
11762 BUILD_CC="$CC"
11763
11764 else
11765 for ac_prog in gcc cc
11766 do
11767 # Extract the first word of "$ac_prog", so it can be a program name with args.
11768 set dummy $ac_prog; ac_word=$2
11769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11771 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11773 else
11774 if test -n "$BUILD_CC"; then
11775 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11776 else
11777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778 for as_dir in $PATH
11779 do
11780 IFS=$as_save_IFS
11781 test -z "$as_dir" && as_dir=.
11782 for ac_exec_ext in '' $ac_executable_extensions; do
11783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11784 ac_cv_prog_BUILD_CC="$ac_prog"
11785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11786 break 2
11787 fi
11788 done
11789 done
11790 IFS=$as_save_IFS
11791
11792 fi
11793 fi
11794 BUILD_CC=$ac_cv_prog_BUILD_CC
11795 if test -n "$BUILD_CC"; then
11796 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11797 echo "${ECHO_T}$BUILD_CC" >&6; }
11798 else
11799 { echo "$as_me:$LINENO: result: no" >&5
11800 echo "${ECHO_T}no" >&6; }
11801 fi
11802
11803
11804 test -n "$BUILD_CC" && break
11805 done
11806
11807 fi
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843 for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
11844 do
11845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11851 fi
11852 ac_res=`eval echo '${'$as_ac_Header'}'`
11853 { echo "$as_me:$LINENO: result: $ac_res" >&5
11854 echo "${ECHO_T}$ac_res" >&6; }
11855 else
11856 # Is the header compilable?
11857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11859 cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h. */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 $ac_includes_default
11866 #include <$ac_header>
11867 _ACEOF
11868 rm -f conftest.$ac_objext
11869 if { (ac_try="$ac_compile"
11870 case "(($ac_try" in
11871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872 *) ac_try_echo=$ac_try;;
11873 esac
11874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875 (eval "$ac_compile") 2>conftest.er1
11876 ac_status=$?
11877 grep -v '^ *+' conftest.er1 >conftest.err
11878 rm -f conftest.er1
11879 cat conftest.err >&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } && {
11882 test -z "$ac_c_werror_flag" ||
11883 test ! -s conftest.err
11884 } && test -s conftest.$ac_objext; then
11885 ac_header_compiler=yes
11886 else
11887 echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11889
11890 ac_header_compiler=no
11891 fi
11892
11893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11895 echo "${ECHO_T}$ac_header_compiler" >&6; }
11896
11897 # Is the header present?
11898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11900 cat >conftest.$ac_ext <<_ACEOF
11901 /* confdefs.h. */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11906 #include <$ac_header>
11907 _ACEOF
11908 if { (ac_try="$ac_cpp conftest.$ac_ext"
11909 case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11912 esac
11913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11915 ac_status=$?
11916 grep -v '^ *+' conftest.er1 >conftest.err
11917 rm -f conftest.er1
11918 cat conftest.err >&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } >/dev/null && {
11921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11922 test ! -s conftest.err
11923 }; then
11924 ac_header_preproc=yes
11925 else
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11928
11929 ac_header_preproc=no
11930 fi
11931
11932 rm -f conftest.err conftest.$ac_ext
11933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11934 echo "${ECHO_T}$ac_header_preproc" >&6; }
11935
11936 # So? What about this header?
11937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11938 yes:no: )
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11943 ac_header_preproc=yes
11944 ;;
11945 no:yes:* )
11946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11953 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11958
11959 ;;
11960 esac
11961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 else
11966 eval "$as_ac_Header=\$ac_header_preproc"
11967 fi
11968 ac_res=`eval echo '${'$as_ac_Header'}'`
11969 { echo "$as_me:$LINENO: result: $ac_res" >&5
11970 echo "${ECHO_T}$ac_res" >&6; }
11971
11972 fi
11973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11974 cat >>confdefs.h <<_ACEOF
11975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11976 _ACEOF
11977
11978 fi
11979
11980 done
11981
11982
11983
11984 for ac_header in sys/disk.h sys/mount.h
11985 do
11986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11991 else
11992 cat >conftest.$ac_ext <<_ACEOF
11993 /* confdefs.h. */
11994 _ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h. */
11998
11999 #if HAVE_SYS_QUEUE_H
12000 #include <sys/queue.h>
12001 #endif
12002
12003
12004 #include <$ac_header>
12005 _ACEOF
12006 rm -f conftest.$ac_objext
12007 if { (ac_try="$ac_compile"
12008 case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12011 esac
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_compile") 2>conftest.er1
12014 ac_status=$?
12015 grep -v '^ *+' conftest.er1 >conftest.err
12016 rm -f conftest.er1
12017 cat conftest.err >&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); } && {
12020 test -z "$ac_c_werror_flag" ||
12021 test ! -s conftest.err
12022 } && test -s conftest.$ac_objext; then
12023 eval "$as_ac_Header=yes"
12024 else
12025 echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12027
12028 eval "$as_ac_Header=no"
12029 fi
12030
12031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12032 fi
12033 ac_res=`eval echo '${'$as_ac_Header'}'`
12034 { echo "$as_me:$LINENO: result: $ac_res" >&5
12035 echo "${ECHO_T}$ac_res" >&6; }
12036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12037 cat >>confdefs.h <<_ACEOF
12038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12039 _ACEOF
12040
12041 fi
12042
12043 done
12044
12045
12046 for ac_header in net/if.h
12047 do
12048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 else
12054 cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h. */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12060
12061 #if HAVE_SYS_TYPES_H
12062 #include <sys/types.h>
12063 #endif
12064 #if HAVE_SYS_SOCKET
12065 #include <sys/socket.h>
12066 #endif
12067
12068
12069 #include <$ac_header>
12070 _ACEOF
12071 rm -f conftest.$ac_objext
12072 if { (ac_try="$ac_compile"
12073 case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12076 esac
12077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078 (eval "$ac_compile") 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } && {
12085 test -z "$ac_c_werror_flag" ||
12086 test ! -s conftest.err
12087 } && test -s conftest.$ac_objext; then
12088 eval "$as_ac_Header=yes"
12089 else
12090 echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12092
12093 eval "$as_ac_Header=no"
12094 fi
12095
12096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12097 fi
12098 ac_res=`eval echo '${'$as_ac_Header'}'`
12099 { echo "$as_me:$LINENO: result: $ac_res" >&5
12100 echo "${ECHO_T}$ac_res" >&6; }
12101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12102 cat >>confdefs.h <<_ACEOF
12103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12104 _ACEOF
12105
12106 fi
12107
12108 done
12109
12110
12111 for ac_func in vprintf
12112 do
12113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12114 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 else
12119 cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h. */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12127 #define $ac_func innocuous_$ac_func
12128
12129 /* System header to define __stub macros and hopefully few prototypes,
12130 which can conflict with char $ac_func (); below.
12131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12132 <limits.h> exists even on freestanding compilers. */
12133
12134 #ifdef __STDC__
12135 # include <limits.h>
12136 #else
12137 # include <assert.h>
12138 #endif
12139
12140 #undef $ac_func
12141
12142 /* Override any GCC internal prototype to avoid an error.
12143 Use char because int might match the return type of a GCC
12144 builtin and then its argument prototype would still apply. */
12145 #ifdef __cplusplus
12146 extern "C"
12147 #endif
12148 char $ac_func ();
12149 /* The GNU C library defines this for functions which it implements
12150 to always fail with ENOSYS. Some functions are actually named
12151 something starting with __ and the normal name is an alias. */
12152 #if defined __stub_$ac_func || defined __stub___$ac_func
12153 choke me
12154 #endif
12155
12156 int
12157 main ()
12158 {
12159 return $ac_func ();
12160 ;
12161 return 0;
12162 }
12163 _ACEOF
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (ac_try="$ac_link"
12166 case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12169 esac
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_link") 2>conftest.er1
12172 ac_status=$?
12173 grep -v '^ *+' conftest.er1 >conftest.err
12174 rm -f conftest.er1
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } && {
12178 test -z "$ac_c_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest$ac_exeext &&
12181 $as_test_x conftest$ac_exeext; then
12182 eval "$as_ac_var=yes"
12183 else
12184 echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12186
12187 eval "$as_ac_var=no"
12188 fi
12189
12190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12191 conftest$ac_exeext conftest.$ac_ext
12192 fi
12193 ac_res=`eval echo '${'$as_ac_var'}'`
12194 { echo "$as_me:$LINENO: result: $ac_res" >&5
12195 echo "${ECHO_T}$ac_res" >&6; }
12196 if test `eval echo '${'$as_ac_var'}'` = yes; then
12197 cat >>confdefs.h <<_ACEOF
12198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12199 _ACEOF
12200
12201 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12202 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12203 if test "${ac_cv_func__doprnt+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
12205 else
12206 cat >conftest.$ac_ext <<_ACEOF
12207 /* confdefs.h. */
12208 _ACEOF
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h. */
12212 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12214 #define _doprnt innocuous__doprnt
12215
12216 /* System header to define __stub macros and hopefully few prototypes,
12217 which can conflict with char _doprnt (); below.
12218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12219 <limits.h> exists even on freestanding compilers. */
12220
12221 #ifdef __STDC__
12222 # include <limits.h>
12223 #else
12224 # include <assert.h>
12225 #endif
12226
12227 #undef _doprnt
12228
12229 /* Override any GCC internal prototype to avoid an error.
12230 Use char because int might match the return type of a GCC
12231 builtin and then its argument prototype would still apply. */
12232 #ifdef __cplusplus
12233 extern "C"
12234 #endif
12235 char _doprnt ();
12236 /* The GNU C library defines this for functions which it implements
12237 to always fail with ENOSYS. Some functions are actually named
12238 something starting with __ and the normal name is an alias. */
12239 #if defined __stub__doprnt || defined __stub____doprnt
12240 choke me
12241 #endif
12242
12243 int
12244 main ()
12245 {
12246 return _doprnt ();
12247 ;
12248 return 0;
12249 }
12250 _ACEOF
12251 rm -f conftest.$ac_objext conftest$ac_exeext
12252 if { (ac_try="$ac_link"
12253 case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12256 esac
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_link") 2>conftest.er1
12259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } && {
12265 test -z "$ac_c_werror_flag" ||
12266 test ! -s conftest.err
12267 } && test -s conftest$ac_exeext &&
12268 $as_test_x conftest$ac_exeext; then
12269 ac_cv_func__doprnt=yes
12270 else
12271 echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12273
12274 ac_cv_func__doprnt=no
12275 fi
12276
12277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12278 conftest$ac_exeext conftest.$ac_ext
12279 fi
12280 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12281 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12282 if test $ac_cv_func__doprnt = yes; then
12283
12284 cat >>confdefs.h <<\_ACEOF
12285 #define HAVE_DOPRNT 1
12286 _ACEOF
12287
12288 fi
12289
12290 fi
12291 done
12292
12293
12294 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12295 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12296 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12298 else
12299 cat >conftest.$ac_ext <<_ACEOF
12300 /* confdefs.h. */
12301 _ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h. */
12305 #include <dirent.h>
12306
12307 int
12308 main ()
12309 {
12310 static struct dirent ac_aggr;
12311 if (ac_aggr.d_reclen)
12312 return 0;
12313 ;
12314 return 0;
12315 }
12316 _ACEOF
12317 rm -f conftest.$ac_objext
12318 if { (ac_try="$ac_compile"
12319 case "(($ac_try" in
12320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321 *) ac_try_echo=$ac_try;;
12322 esac
12323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324 (eval "$ac_compile") 2>conftest.er1
12325 ac_status=$?
12326 grep -v '^ *+' conftest.er1 >conftest.err
12327 rm -f conftest.er1
12328 cat conftest.err >&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } && {
12331 test -z "$ac_c_werror_flag" ||
12332 test ! -s conftest.err
12333 } && test -s conftest.$ac_objext; then
12334 ac_cv_member_struct_dirent_d_reclen=yes
12335 else
12336 echo "$as_me: failed program was:" >&5
12337 sed 's/^/| /' conftest.$ac_ext >&5
12338
12339 cat >conftest.$ac_ext <<_ACEOF
12340 /* confdefs.h. */
12341 _ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h. */
12345 #include <dirent.h>
12346
12347 int
12348 main ()
12349 {
12350 static struct dirent ac_aggr;
12351 if (sizeof ac_aggr.d_reclen)
12352 return 0;
12353 ;
12354 return 0;
12355 }
12356 _ACEOF
12357 rm -f conftest.$ac_objext
12358 if { (ac_try="$ac_compile"
12359 case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12362 esac
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_compile") 2>conftest.er1
12365 ac_status=$?
12366 grep -v '^ *+' conftest.er1 >conftest.err
12367 rm -f conftest.er1
12368 cat conftest.err >&5
12369 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_objext; then
12374 ac_cv_member_struct_dirent_d_reclen=yes
12375 else
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12378
12379 ac_cv_member_struct_dirent_d_reclen=no
12380 fi
12381
12382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12383 fi
12384
12385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12386 fi
12387 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12388 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12389 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12390 cat >>confdefs.h <<\_ACEOF
12391 #define HAVE_RECLEN_DIRENT 1
12392 _ACEOF
12393
12394 fi
12395
12396 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12397 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12398 if test "${ac_cv_type_ssize_t+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12400 else
12401 cat >conftest.$ac_ext <<_ACEOF
12402 /* confdefs.h. */
12403 _ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12407 #include <sys/types.h>
12408
12409 typedef ssize_t ac__type_new_;
12410 int
12411 main ()
12412 {
12413 if ((ac__type_new_ *) 0)
12414 return 0;
12415 if (sizeof (ac__type_new_))
12416 return 0;
12417 ;
12418 return 0;
12419 }
12420 _ACEOF
12421 rm -f conftest.$ac_objext
12422 if { (ac_try="$ac_compile"
12423 case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_compile") 2>conftest.er1
12429 ac_status=$?
12430 grep -v '^ *+' conftest.er1 >conftest.err
12431 rm -f conftest.er1
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } && {
12435 test -z "$ac_c_werror_flag" ||
12436 test ! -s conftest.err
12437 } && test -s conftest.$ac_objext; then
12438 ac_cv_type_ssize_t=yes
12439 else
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12442
12443 ac_cv_type_ssize_t=no
12444 fi
12445
12446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12447 fi
12448 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12449 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12450 if test $ac_cv_type_ssize_t = yes; then
12451 cat >>confdefs.h <<\_ACEOF
12452 #define HAVE_TYPE_SSIZE_T 1
12453 _ACEOF
12454
12455 fi
12456
12457 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12458 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12459 if test "${ac_cv_have_decl_llseek+set}" = set; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 else
12462 cat >conftest.$ac_ext <<_ACEOF
12463 /* confdefs.h. */
12464 _ACEOF
12465 cat confdefs.h >>conftest.$ac_ext
12466 cat >>conftest.$ac_ext <<_ACEOF
12467 /* end confdefs.h. */
12468 #include <unistd.h>
12469
12470 int
12471 main ()
12472 {
12473 #ifndef llseek
12474 (void) llseek;
12475 #endif
12476
12477 ;
12478 return 0;
12479 }
12480 _ACEOF
12481 rm -f conftest.$ac_objext
12482 if { (ac_try="$ac_compile"
12483 case "(($ac_try" in
12484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485 *) ac_try_echo=$ac_try;;
12486 esac
12487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12488 (eval "$ac_compile") 2>conftest.er1
12489 ac_status=$?
12490 grep -v '^ *+' conftest.er1 >conftest.err
12491 rm -f conftest.er1
12492 cat conftest.err >&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } && {
12495 test -z "$ac_c_werror_flag" ||
12496 test ! -s conftest.err
12497 } && test -s conftest.$ac_objext; then
12498 ac_cv_have_decl_llseek=yes
12499 else
12500 echo "$as_me: failed program was:" >&5
12501 sed 's/^/| /' conftest.$ac_ext >&5
12502
12503 ac_cv_have_decl_llseek=no
12504 fi
12505
12506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12507 fi
12508 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12509 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12510 if test $ac_cv_have_decl_llseek = yes; then
12511 cat >>confdefs.h <<\_ACEOF
12512 #define HAVE_LLSEEK_PROTOTYPE 1
12513 _ACEOF
12514
12515 fi
12516
12517 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12518 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12519 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12521 else
12522 cat >conftest.$ac_ext <<_ACEOF
12523 /* confdefs.h. */
12524 _ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h. */
12528 #define _LARGEFILE_SOURCE
12529 #define _LARGEFILE64_SOURCE
12530 #include <unistd.h>
12531
12532 int
12533 main ()
12534 {
12535 #ifndef lseek64
12536 (void) lseek64;
12537 #endif
12538
12539 ;
12540 return 0;
12541 }
12542 _ACEOF
12543 rm -f conftest.$ac_objext
12544 if { (ac_try="$ac_compile"
12545 case "(($ac_try" in
12546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547 *) ac_try_echo=$ac_try;;
12548 esac
12549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550 (eval "$ac_compile") 2>conftest.er1
12551 ac_status=$?
12552 grep -v '^ *+' conftest.er1 >conftest.err
12553 rm -f conftest.er1
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } && {
12557 test -z "$ac_c_werror_flag" ||
12558 test ! -s conftest.err
12559 } && test -s conftest.$ac_objext; then
12560 ac_cv_have_decl_lseek64=yes
12561 else
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12564
12565 ac_cv_have_decl_lseek64=no
12566 fi
12567
12568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12569 fi
12570 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12571 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12572 if test $ac_cv_have_decl_lseek64 = yes; then
12573 cat >>confdefs.h <<\_ACEOF
12574 #define HAVE_LSEEK64_PROTOTYPE 1
12575 _ACEOF
12576
12577 fi
12578
12579 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
12580 # if cross-compiling, with no cached values, just assume something common.
12581 ac_cv_sizeof_short=2
12582 ac_cv_sizeof_int=4
12583 ac_cv_sizeof_long=4
12584 ac_cv_sizeof_long_long=8
12585 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12586 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
12587 fi
12588 { echo "$as_me:$LINENO: checking for short" >&5
12589 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12590 if test "${ac_cv_type_short+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 else
12593 cat >conftest.$ac_ext <<_ACEOF
12594 /* confdefs.h. */
12595 _ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12599 $ac_includes_default
12600 typedef short ac__type_new_;
12601 int
12602 main ()
12603 {
12604 if ((ac__type_new_ *) 0)
12605 return 0;
12606 if (sizeof (ac__type_new_))
12607 return 0;
12608 ;
12609 return 0;
12610 }
12611 _ACEOF
12612 rm -f conftest.$ac_objext
12613 if { (ac_try="$ac_compile"
12614 case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12617 esac
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_compile") 2>conftest.er1
12620 ac_status=$?
12621 grep -v '^ *+' conftest.er1 >conftest.err
12622 rm -f conftest.er1
12623 cat conftest.err >&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } && {
12626 test -z "$ac_c_werror_flag" ||
12627 test ! -s conftest.err
12628 } && test -s conftest.$ac_objext; then
12629 ac_cv_type_short=yes
12630 else
12631 echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12633
12634 ac_cv_type_short=no
12635 fi
12636
12637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12638 fi
12639 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12640 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12641
12642 # The cast to long int works around a bug in the HP C Compiler
12643 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12644 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12645 # This bug is HP SR number 8606223364.
12646 { echo "$as_me:$LINENO: checking size of short" >&5
12647 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12648 if test "${ac_cv_sizeof_short+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12650 else
12651 if test "$cross_compiling" = yes; then
12652 # Depending upon the size, compute the lo and hi bounds.
12653 cat >conftest.$ac_ext <<_ACEOF
12654 /* confdefs.h. */
12655 _ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h. */
12659 $ac_includes_default
12660 typedef short ac__type_sizeof_;
12661 int
12662 main ()
12663 {
12664 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12665 test_array [0] = 0
12666
12667 ;
12668 return 0;
12669 }
12670 _ACEOF
12671 rm -f conftest.$ac_objext
12672 if { (ac_try="$ac_compile"
12673 case "(($ac_try" in
12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12676 esac
12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_compile") 2>conftest.er1
12679 ac_status=$?
12680 grep -v '^ *+' conftest.er1 >conftest.err
12681 rm -f conftest.er1
12682 cat conftest.err >&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); } && {
12685 test -z "$ac_c_werror_flag" ||
12686 test ! -s conftest.err
12687 } && test -s conftest.$ac_objext; then
12688 ac_lo=0 ac_mid=0
12689 while :; do
12690 cat >conftest.$ac_ext <<_ACEOF
12691 /* confdefs.h. */
12692 _ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12696 $ac_includes_default
12697 typedef short ac__type_sizeof_;
12698 int
12699 main ()
12700 {
12701 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12702 test_array [0] = 0
12703
12704 ;
12705 return 0;
12706 }
12707 _ACEOF
12708 rm -f conftest.$ac_objext
12709 if { (ac_try="$ac_compile"
12710 case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12713 esac
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_compile") 2>conftest.er1
12716 ac_status=$?
12717 grep -v '^ *+' conftest.er1 >conftest.err
12718 rm -f conftest.er1
12719 cat conftest.err >&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } && {
12722 test -z "$ac_c_werror_flag" ||
12723 test ! -s conftest.err
12724 } && test -s conftest.$ac_objext; then
12725 ac_hi=$ac_mid; break
12726 else
12727 echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12729
12730 ac_lo=`expr $ac_mid + 1`
12731 if test $ac_lo -le $ac_mid; then
12732 ac_lo= ac_hi=
12733 break
12734 fi
12735 ac_mid=`expr 2 '*' $ac_mid + 1`
12736 fi
12737
12738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12739 done
12740 else
12741 echo "$as_me: failed program was:" >&5
12742 sed 's/^/| /' conftest.$ac_ext >&5
12743
12744 cat >conftest.$ac_ext <<_ACEOF
12745 /* confdefs.h. */
12746 _ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h. */
12750 $ac_includes_default
12751 typedef short ac__type_sizeof_;
12752 int
12753 main ()
12754 {
12755 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12756 test_array [0] = 0
12757
12758 ;
12759 return 0;
12760 }
12761 _ACEOF
12762 rm -f conftest.$ac_objext
12763 if { (ac_try="$ac_compile"
12764 case "(($ac_try" in
12765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766 *) ac_try_echo=$ac_try;;
12767 esac
12768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769 (eval "$ac_compile") 2>conftest.er1
12770 ac_status=$?
12771 grep -v '^ *+' conftest.er1 >conftest.err
12772 rm -f conftest.er1
12773 cat conftest.err >&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } && {
12776 test -z "$ac_c_werror_flag" ||
12777 test ! -s conftest.err
12778 } && test -s conftest.$ac_objext; then
12779 ac_hi=-1 ac_mid=-1
12780 while :; do
12781 cat >conftest.$ac_ext <<_ACEOF
12782 /* confdefs.h. */
12783 _ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h. */
12787 $ac_includes_default
12788 typedef short ac__type_sizeof_;
12789 int
12790 main ()
12791 {
12792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12793 test_array [0] = 0
12794
12795 ;
12796 return 0;
12797 }
12798 _ACEOF
12799 rm -f conftest.$ac_objext
12800 if { (ac_try="$ac_compile"
12801 case "(($ac_try" in
12802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12804 esac
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_compile") 2>conftest.er1
12807 ac_status=$?
12808 grep -v '^ *+' conftest.er1 >conftest.err
12809 rm -f conftest.er1
12810 cat conftest.err >&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); } && {
12813 test -z "$ac_c_werror_flag" ||
12814 test ! -s conftest.err
12815 } && test -s conftest.$ac_objext; then
12816 ac_lo=$ac_mid; break
12817 else
12818 echo "$as_me: failed program was:" >&5
12819 sed 's/^/| /' conftest.$ac_ext >&5
12820
12821 ac_hi=`expr '(' $ac_mid ')' - 1`
12822 if test $ac_mid -le $ac_hi; then
12823 ac_lo= ac_hi=
12824 break
12825 fi
12826 ac_mid=`expr 2 '*' $ac_mid`
12827 fi
12828
12829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12830 done
12831 else
12832 echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12834
12835 ac_lo= ac_hi=
12836 fi
12837
12838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12839 fi
12840
12841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12842 # Binary search between lo and hi bounds.
12843 while test "x$ac_lo" != "x$ac_hi"; do
12844 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12845 cat >conftest.$ac_ext <<_ACEOF
12846 /* confdefs.h. */
12847 _ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12851 $ac_includes_default
12852 typedef short ac__type_sizeof_;
12853 int
12854 main ()
12855 {
12856 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12857 test_array [0] = 0
12858
12859 ;
12860 return 0;
12861 }
12862 _ACEOF
12863 rm -f conftest.$ac_objext
12864 if { (ac_try="$ac_compile"
12865 case "(($ac_try" in
12866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12867 *) ac_try_echo=$ac_try;;
12868 esac
12869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12870 (eval "$ac_compile") 2>conftest.er1
12871 ac_status=$?
12872 grep -v '^ *+' conftest.er1 >conftest.err
12873 rm -f conftest.er1
12874 cat conftest.err >&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); } && {
12877 test -z "$ac_c_werror_flag" ||
12878 test ! -s conftest.err
12879 } && test -s conftest.$ac_objext; then
12880 ac_hi=$ac_mid
12881 else
12882 echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12884
12885 ac_lo=`expr '(' $ac_mid ')' + 1`
12886 fi
12887
12888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12889 done
12890 case $ac_lo in
12891 ?*) ac_cv_sizeof_short=$ac_lo;;
12892 '') if test "$ac_cv_type_short" = yes; then
12893 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12894 See \`config.log' for more details." >&5
12895 echo "$as_me: error: cannot compute sizeof (short)
12896 See \`config.log' for more details." >&2;}
12897 { (exit 77); exit 77; }; }
12898 else
12899 ac_cv_sizeof_short=0
12900 fi ;;
12901 esac
12902 else
12903 cat >conftest.$ac_ext <<_ACEOF
12904 /* confdefs.h. */
12905 _ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h. */
12909 $ac_includes_default
12910 typedef short ac__type_sizeof_;
12911 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12912 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12913 #include <stdio.h>
12914 #include <stdlib.h>
12915 int
12916 main ()
12917 {
12918
12919 FILE *f = fopen ("conftest.val", "w");
12920 if (! f)
12921 return 1;
12922 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12923 {
12924 long int i = longval ();
12925 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12926 return 1;
12927 fprintf (f, "%ld\n", i);
12928 }
12929 else
12930 {
12931 unsigned long int i = ulongval ();
12932 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12933 return 1;
12934 fprintf (f, "%lu\n", i);
12935 }
12936 return ferror (f) || fclose (f) != 0;
12937
12938 ;
12939 return 0;
12940 }
12941 _ACEOF
12942 rm -f conftest$ac_exeext
12943 if { (ac_try="$ac_link"
12944 case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12947 esac
12948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949 (eval "$ac_link") 2>&5
12950 ac_status=$?
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12953 { (case "(($ac_try" in
12954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955 *) ac_try_echo=$ac_try;;
12956 esac
12957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958 (eval "$ac_try") 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_cv_sizeof_short=`cat conftest.val`
12963 else
12964 echo "$as_me: program exited with status $ac_status" >&5
12965 echo "$as_me: failed program was:" >&5
12966 sed 's/^/| /' conftest.$ac_ext >&5
12967
12968 ( exit $ac_status )
12969 if test "$ac_cv_type_short" = yes; then
12970 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12971 See \`config.log' for more details." >&5
12972 echo "$as_me: error: cannot compute sizeof (short)
12973 See \`config.log' for more details." >&2;}
12974 { (exit 77); exit 77; }; }
12975 else
12976 ac_cv_sizeof_short=0
12977 fi
12978 fi
12979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12980 fi
12981 rm -f conftest.val
12982 fi
12983 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12984 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12985
12986
12987
12988 cat >>confdefs.h <<_ACEOF
12989 #define SIZEOF_SHORT $ac_cv_sizeof_short
12990 _ACEOF
12991
12992
12993 { echo "$as_me:$LINENO: checking for int" >&5
12994 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12995 if test "${ac_cv_type_int+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12997 else
12998 cat >conftest.$ac_ext <<_ACEOF
12999 /* confdefs.h. */
13000 _ACEOF
13001 cat confdefs.h >>conftest.$ac_ext
13002 cat >>conftest.$ac_ext <<_ACEOF
13003 /* end confdefs.h. */
13004 $ac_includes_default
13005 typedef int ac__type_new_;
13006 int
13007 main ()
13008 {
13009 if ((ac__type_new_ *) 0)
13010 return 0;
13011 if (sizeof (ac__type_new_))
13012 return 0;
13013 ;
13014 return 0;
13015 }
13016 _ACEOF
13017 rm -f conftest.$ac_objext
13018 if { (ac_try="$ac_compile"
13019 case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13022 esac
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_compile") 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } && {
13031 test -z "$ac_c_werror_flag" ||
13032 test ! -s conftest.err
13033 } && test -s conftest.$ac_objext; then
13034 ac_cv_type_int=yes
13035 else
13036 echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13038
13039 ac_cv_type_int=no
13040 fi
13041
13042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13043 fi
13044 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13045 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13046
13047 # The cast to long int works around a bug in the HP C Compiler
13048 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13049 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13050 # This bug is HP SR number 8606223364.
13051 { echo "$as_me:$LINENO: checking size of int" >&5
13052 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13053 if test "${ac_cv_sizeof_int+set}" = set; then
13054 echo $ECHO_N "(cached) $ECHO_C" >&6
13055 else
13056 if test "$cross_compiling" = yes; then
13057 # Depending upon the size, compute the lo and hi bounds.
13058 cat >conftest.$ac_ext <<_ACEOF
13059 /* confdefs.h. */
13060 _ACEOF
13061 cat confdefs.h >>conftest.$ac_ext
13062 cat >>conftest.$ac_ext <<_ACEOF
13063 /* end confdefs.h. */
13064 $ac_includes_default
13065 typedef int ac__type_sizeof_;
13066 int
13067 main ()
13068 {
13069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13070 test_array [0] = 0
13071
13072 ;
13073 return 0;
13074 }
13075 _ACEOF
13076 rm -f conftest.$ac_objext
13077 if { (ac_try="$ac_compile"
13078 case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13081 esac
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_compile") 2>conftest.er1
13084 ac_status=$?
13085 grep -v '^ *+' conftest.er1 >conftest.err
13086 rm -f conftest.er1
13087 cat conftest.err >&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } && {
13090 test -z "$ac_c_werror_flag" ||
13091 test ! -s conftest.err
13092 } && test -s conftest.$ac_objext; then
13093 ac_lo=0 ac_mid=0
13094 while :; do
13095 cat >conftest.$ac_ext <<_ACEOF
13096 /* confdefs.h. */
13097 _ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h. */
13101 $ac_includes_default
13102 typedef int ac__type_sizeof_;
13103 int
13104 main ()
13105 {
13106 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13107 test_array [0] = 0
13108
13109 ;
13110 return 0;
13111 }
13112 _ACEOF
13113 rm -f conftest.$ac_objext
13114 if { (ac_try="$ac_compile"
13115 case "(($ac_try" in
13116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117 *) ac_try_echo=$ac_try;;
13118 esac
13119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120 (eval "$ac_compile") 2>conftest.er1
13121 ac_status=$?
13122 grep -v '^ *+' conftest.er1 >conftest.err
13123 rm -f conftest.er1
13124 cat conftest.err >&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } && {
13127 test -z "$ac_c_werror_flag" ||
13128 test ! -s conftest.err
13129 } && test -s conftest.$ac_objext; then
13130 ac_hi=$ac_mid; break
13131 else
13132 echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13134
13135 ac_lo=`expr $ac_mid + 1`
13136 if test $ac_lo -le $ac_mid; then
13137 ac_lo= ac_hi=
13138 break
13139 fi
13140 ac_mid=`expr 2 '*' $ac_mid + 1`
13141 fi
13142
13143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13144 done
13145 else
13146 echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13148
13149 cat >conftest.$ac_ext <<_ACEOF
13150 /* confdefs.h. */
13151 _ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13155 $ac_includes_default
13156 typedef int ac__type_sizeof_;
13157 int
13158 main ()
13159 {
13160 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13161 test_array [0] = 0
13162
13163 ;
13164 return 0;
13165 }
13166 _ACEOF
13167 rm -f conftest.$ac_objext
13168 if { (ac_try="$ac_compile"
13169 case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13172 esac
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_compile") 2>conftest.er1
13175 ac_status=$?
13176 grep -v '^ *+' conftest.er1 >conftest.err
13177 rm -f conftest.er1
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } && {
13181 test -z "$ac_c_werror_flag" ||
13182 test ! -s conftest.err
13183 } && test -s conftest.$ac_objext; then
13184 ac_hi=-1 ac_mid=-1
13185 while :; do
13186 cat >conftest.$ac_ext <<_ACEOF
13187 /* confdefs.h. */
13188 _ACEOF
13189 cat confdefs.h >>conftest.$ac_ext
13190 cat >>conftest.$ac_ext <<_ACEOF
13191 /* end confdefs.h. */
13192 $ac_includes_default
13193 typedef int ac__type_sizeof_;
13194 int
13195 main ()
13196 {
13197 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13198 test_array [0] = 0
13199
13200 ;
13201 return 0;
13202 }
13203 _ACEOF
13204 rm -f conftest.$ac_objext
13205 if { (ac_try="$ac_compile"
13206 case "(($ac_try" in
13207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208 *) ac_try_echo=$ac_try;;
13209 esac
13210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211 (eval "$ac_compile") 2>conftest.er1
13212 ac_status=$?
13213 grep -v '^ *+' conftest.er1 >conftest.err
13214 rm -f conftest.er1
13215 cat conftest.err >&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } && {
13218 test -z "$ac_c_werror_flag" ||
13219 test ! -s conftest.err
13220 } && test -s conftest.$ac_objext; then
13221 ac_lo=$ac_mid; break
13222 else
13223 echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13225
13226 ac_hi=`expr '(' $ac_mid ')' - 1`
13227 if test $ac_mid -le $ac_hi; then
13228 ac_lo= ac_hi=
13229 break
13230 fi
13231 ac_mid=`expr 2 '*' $ac_mid`
13232 fi
13233
13234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13235 done
13236 else
13237 echo "$as_me: failed program was:" >&5
13238 sed 's/^/| /' conftest.$ac_ext >&5
13239
13240 ac_lo= ac_hi=
13241 fi
13242
13243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13244 fi
13245
13246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13247 # Binary search between lo and hi bounds.
13248 while test "x$ac_lo" != "x$ac_hi"; do
13249 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13250 cat >conftest.$ac_ext <<_ACEOF
13251 /* confdefs.h. */
13252 _ACEOF
13253 cat confdefs.h >>conftest.$ac_ext
13254 cat >>conftest.$ac_ext <<_ACEOF
13255 /* end confdefs.h. */
13256 $ac_includes_default
13257 typedef int ac__type_sizeof_;
13258 int
13259 main ()
13260 {
13261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13262 test_array [0] = 0
13263
13264 ;
13265 return 0;
13266 }
13267 _ACEOF
13268 rm -f conftest.$ac_objext
13269 if { (ac_try="$ac_compile"
13270 case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13273 esac
13274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275 (eval "$ac_compile") 2>conftest.er1
13276 ac_status=$?
13277 grep -v '^ *+' conftest.er1 >conftest.err
13278 rm -f conftest.er1
13279 cat conftest.err >&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } && {
13282 test -z "$ac_c_werror_flag" ||
13283 test ! -s conftest.err
13284 } && test -s conftest.$ac_objext; then
13285 ac_hi=$ac_mid
13286 else
13287 echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13289
13290 ac_lo=`expr '(' $ac_mid ')' + 1`
13291 fi
13292
13293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13294 done
13295 case $ac_lo in
13296 ?*) ac_cv_sizeof_int=$ac_lo;;
13297 '') if test "$ac_cv_type_int" = yes; then
13298 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13299 See \`config.log' for more details." >&5
13300 echo "$as_me: error: cannot compute sizeof (int)
13301 See \`config.log' for more details." >&2;}
13302 { (exit 77); exit 77; }; }
13303 else
13304 ac_cv_sizeof_int=0
13305 fi ;;
13306 esac
13307 else
13308 cat >conftest.$ac_ext <<_ACEOF
13309 /* confdefs.h. */
13310 _ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h. */
13314 $ac_includes_default
13315 typedef int ac__type_sizeof_;
13316 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13317 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13318 #include <stdio.h>
13319 #include <stdlib.h>
13320 int
13321 main ()
13322 {
13323
13324 FILE *f = fopen ("conftest.val", "w");
13325 if (! f)
13326 return 1;
13327 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13328 {
13329 long int i = longval ();
13330 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13331 return 1;
13332 fprintf (f, "%ld\n", i);
13333 }
13334 else
13335 {
13336 unsigned long int i = ulongval ();
13337 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13338 return 1;
13339 fprintf (f, "%lu\n", i);
13340 }
13341 return ferror (f) || fclose (f) != 0;
13342
13343 ;
13344 return 0;
13345 }
13346 _ACEOF
13347 rm -f conftest$ac_exeext
13348 if { (ac_try="$ac_link"
13349 case "(($ac_try" in
13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13352 esac
13353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354 (eval "$ac_link") 2>&5
13355 ac_status=$?
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13358 { (case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13361 esac
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_try") 2>&5
13364 ac_status=$?
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; }; then
13367 ac_cv_sizeof_int=`cat conftest.val`
13368 else
13369 echo "$as_me: program exited with status $ac_status" >&5
13370 echo "$as_me: failed program was:" >&5
13371 sed 's/^/| /' conftest.$ac_ext >&5
13372
13373 ( exit $ac_status )
13374 if test "$ac_cv_type_int" = yes; then
13375 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13376 See \`config.log' for more details." >&5
13377 echo "$as_me: error: cannot compute sizeof (int)
13378 See \`config.log' for more details." >&2;}
13379 { (exit 77); exit 77; }; }
13380 else
13381 ac_cv_sizeof_int=0
13382 fi
13383 fi
13384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13385 fi
13386 rm -f conftest.val
13387 fi
13388 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13389 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13390
13391
13392
13393 cat >>confdefs.h <<_ACEOF
13394 #define SIZEOF_INT $ac_cv_sizeof_int
13395 _ACEOF
13396
13397
13398 { echo "$as_me:$LINENO: checking for long" >&5
13399 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13400 if test "${ac_cv_type_long+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13402 else
13403 cat >conftest.$ac_ext <<_ACEOF
13404 /* confdefs.h. */
13405 _ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h. */
13409 $ac_includes_default
13410 typedef long ac__type_new_;
13411 int
13412 main ()
13413 {
13414 if ((ac__type_new_ *) 0)
13415 return 0;
13416 if (sizeof (ac__type_new_))
13417 return 0;
13418 ;
13419 return 0;
13420 }
13421 _ACEOF
13422 rm -f conftest.$ac_objext
13423 if { (ac_try="$ac_compile"
13424 case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13427 esac
13428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429 (eval "$ac_compile") 2>conftest.er1
13430 ac_status=$?
13431 grep -v '^ *+' conftest.er1 >conftest.err
13432 rm -f conftest.er1
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } && {
13436 test -z "$ac_c_werror_flag" ||
13437 test ! -s conftest.err
13438 } && test -s conftest.$ac_objext; then
13439 ac_cv_type_long=yes
13440 else
13441 echo "$as_me: failed program was:" >&5
13442 sed 's/^/| /' conftest.$ac_ext >&5
13443
13444 ac_cv_type_long=no
13445 fi
13446
13447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13448 fi
13449 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13450 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13451
13452 # The cast to long int works around a bug in the HP C Compiler
13453 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13454 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13455 # This bug is HP SR number 8606223364.
13456 { echo "$as_me:$LINENO: checking size of long" >&5
13457 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13458 if test "${ac_cv_sizeof_long+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13460 else
13461 if test "$cross_compiling" = yes; then
13462 # Depending upon the size, compute the lo and hi bounds.
13463 cat >conftest.$ac_ext <<_ACEOF
13464 /* confdefs.h. */
13465 _ACEOF
13466 cat confdefs.h >>conftest.$ac_ext
13467 cat >>conftest.$ac_ext <<_ACEOF
13468 /* end confdefs.h. */
13469 $ac_includes_default
13470 typedef long ac__type_sizeof_;
13471 int
13472 main ()
13473 {
13474 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13475 test_array [0] = 0
13476
13477 ;
13478 return 0;
13479 }
13480 _ACEOF
13481 rm -f conftest.$ac_objext
13482 if { (ac_try="$ac_compile"
13483 case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13486 esac
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_compile") 2>conftest.er1
13489 ac_status=$?
13490 grep -v '^ *+' conftest.er1 >conftest.err
13491 rm -f conftest.er1
13492 cat conftest.err >&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } && {
13495 test -z "$ac_c_werror_flag" ||
13496 test ! -s conftest.err
13497 } && test -s conftest.$ac_objext; then
13498 ac_lo=0 ac_mid=0
13499 while :; do
13500 cat >conftest.$ac_ext <<_ACEOF
13501 /* confdefs.h. */
13502 _ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h. */
13506 $ac_includes_default
13507 typedef long ac__type_sizeof_;
13508 int
13509 main ()
13510 {
13511 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13512 test_array [0] = 0
13513
13514 ;
13515 return 0;
13516 }
13517 _ACEOF
13518 rm -f conftest.$ac_objext
13519 if { (ac_try="$ac_compile"
13520 case "(($ac_try" in
13521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13522 *) ac_try_echo=$ac_try;;
13523 esac
13524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13525 (eval "$ac_compile") 2>conftest.er1
13526 ac_status=$?
13527 grep -v '^ *+' conftest.er1 >conftest.err
13528 rm -f conftest.er1
13529 cat conftest.err >&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } && {
13532 test -z "$ac_c_werror_flag" ||
13533 test ! -s conftest.err
13534 } && test -s conftest.$ac_objext; then
13535 ac_hi=$ac_mid; break
13536 else
13537 echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13539
13540 ac_lo=`expr $ac_mid + 1`
13541 if test $ac_lo -le $ac_mid; then
13542 ac_lo= ac_hi=
13543 break
13544 fi
13545 ac_mid=`expr 2 '*' $ac_mid + 1`
13546 fi
13547
13548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13549 done
13550 else
13551 echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.$ac_ext >&5
13553
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h. */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 $ac_includes_default
13561 typedef long ac__type_sizeof_;
13562 int
13563 main ()
13564 {
13565 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13566 test_array [0] = 0
13567
13568 ;
13569 return 0;
13570 }
13571 _ACEOF
13572 rm -f conftest.$ac_objext
13573 if { (ac_try="$ac_compile"
13574 case "(($ac_try" in
13575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576 *) ac_try_echo=$ac_try;;
13577 esac
13578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579 (eval "$ac_compile") 2>conftest.er1
13580 ac_status=$?
13581 grep -v '^ *+' conftest.er1 >conftest.err
13582 rm -f conftest.er1
13583 cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } && {
13586 test -z "$ac_c_werror_flag" ||
13587 test ! -s conftest.err
13588 } && test -s conftest.$ac_objext; then
13589 ac_hi=-1 ac_mid=-1
13590 while :; do
13591 cat >conftest.$ac_ext <<_ACEOF
13592 /* confdefs.h. */
13593 _ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h. */
13597 $ac_includes_default
13598 typedef long ac__type_sizeof_;
13599 int
13600 main ()
13601 {
13602 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13603 test_array [0] = 0
13604
13605 ;
13606 return 0;
13607 }
13608 _ACEOF
13609 rm -f conftest.$ac_objext
13610 if { (ac_try="$ac_compile"
13611 case "(($ac_try" in
13612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13613 *) ac_try_echo=$ac_try;;
13614 esac
13615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13616 (eval "$ac_compile") 2>conftest.er1
13617 ac_status=$?
13618 grep -v '^ *+' conftest.er1 >conftest.err
13619 rm -f conftest.er1
13620 cat conftest.err >&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } && {
13623 test -z "$ac_c_werror_flag" ||
13624 test ! -s conftest.err
13625 } && test -s conftest.$ac_objext; then
13626 ac_lo=$ac_mid; break
13627 else
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13630
13631 ac_hi=`expr '(' $ac_mid ')' - 1`
13632 if test $ac_mid -le $ac_hi; then
13633 ac_lo= ac_hi=
13634 break
13635 fi
13636 ac_mid=`expr 2 '*' $ac_mid`
13637 fi
13638
13639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13640 done
13641 else
13642 echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.$ac_ext >&5
13644
13645 ac_lo= ac_hi=
13646 fi
13647
13648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13649 fi
13650
13651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13652 # Binary search between lo and hi bounds.
13653 while test "x$ac_lo" != "x$ac_hi"; do
13654 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13655 cat >conftest.$ac_ext <<_ACEOF
13656 /* confdefs.h. */
13657 _ACEOF
13658 cat confdefs.h >>conftest.$ac_ext
13659 cat >>conftest.$ac_ext <<_ACEOF
13660 /* end confdefs.h. */
13661 $ac_includes_default
13662 typedef long ac__type_sizeof_;
13663 int
13664 main ()
13665 {
13666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13667 test_array [0] = 0
13668
13669 ;
13670 return 0;
13671 }
13672 _ACEOF
13673 rm -f conftest.$ac_objext
13674 if { (ac_try="$ac_compile"
13675 case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678 esac
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_compile") 2>conftest.er1
13681 ac_status=$?
13682 grep -v '^ *+' conftest.er1 >conftest.err
13683 rm -f conftest.er1
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } && {
13687 test -z "$ac_c_werror_flag" ||
13688 test ! -s conftest.err
13689 } && test -s conftest.$ac_objext; then
13690 ac_hi=$ac_mid
13691 else
13692 echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13694
13695 ac_lo=`expr '(' $ac_mid ')' + 1`
13696 fi
13697
13698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13699 done
13700 case $ac_lo in
13701 ?*) ac_cv_sizeof_long=$ac_lo;;
13702 '') if test "$ac_cv_type_long" = yes; then
13703 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13704 See \`config.log' for more details." >&5
13705 echo "$as_me: error: cannot compute sizeof (long)
13706 See \`config.log' for more details." >&2;}
13707 { (exit 77); exit 77; }; }
13708 else
13709 ac_cv_sizeof_long=0
13710 fi ;;
13711 esac
13712 else
13713 cat >conftest.$ac_ext <<_ACEOF
13714 /* confdefs.h. */
13715 _ACEOF
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h. */
13719 $ac_includes_default
13720 typedef long ac__type_sizeof_;
13721 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13722 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13723 #include <stdio.h>
13724 #include <stdlib.h>
13725 int
13726 main ()
13727 {
13728
13729 FILE *f = fopen ("conftest.val", "w");
13730 if (! f)
13731 return 1;
13732 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13733 {
13734 long int i = longval ();
13735 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13736 return 1;
13737 fprintf (f, "%ld\n", i);
13738 }
13739 else
13740 {
13741 unsigned long int i = ulongval ();
13742 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13743 return 1;
13744 fprintf (f, "%lu\n", i);
13745 }
13746 return ferror (f) || fclose (f) != 0;
13747
13748 ;
13749 return 0;
13750 }
13751 _ACEOF
13752 rm -f conftest$ac_exeext
13753 if { (ac_try="$ac_link"
13754 case "(($ac_try" in
13755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756 *) ac_try_echo=$ac_try;;
13757 esac
13758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759 (eval "$ac_link") 2>&5
13760 ac_status=$?
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13763 { (case "(($ac_try" in
13764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765 *) ac_try_echo=$ac_try;;
13766 esac
13767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768 (eval "$ac_try") 2>&5
13769 ac_status=$?
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; }; then
13772 ac_cv_sizeof_long=`cat conftest.val`
13773 else
13774 echo "$as_me: program exited with status $ac_status" >&5
13775 echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13777
13778 ( exit $ac_status )
13779 if test "$ac_cv_type_long" = yes; then
13780 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13781 See \`config.log' for more details." >&5
13782 echo "$as_me: error: cannot compute sizeof (long)
13783 See \`config.log' for more details." >&2;}
13784 { (exit 77); exit 77; }; }
13785 else
13786 ac_cv_sizeof_long=0
13787 fi
13788 fi
13789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13790 fi
13791 rm -f conftest.val
13792 fi
13793 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13794 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13795
13796
13797
13798 cat >>confdefs.h <<_ACEOF
13799 #define SIZEOF_LONG $ac_cv_sizeof_long
13800 _ACEOF
13801
13802
13803 { echo "$as_me:$LINENO: checking for long long" >&5
13804 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13805 if test "${ac_cv_type_long_long+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13807 else
13808 cat >conftest.$ac_ext <<_ACEOF
13809 /* confdefs.h. */
13810 _ACEOF
13811 cat confdefs.h >>conftest.$ac_ext
13812 cat >>conftest.$ac_ext <<_ACEOF
13813 /* end confdefs.h. */
13814 $ac_includes_default
13815 typedef long long ac__type_new_;
13816 int
13817 main ()
13818 {
13819 if ((ac__type_new_ *) 0)
13820 return 0;
13821 if (sizeof (ac__type_new_))
13822 return 0;
13823 ;
13824 return 0;
13825 }
13826 _ACEOF
13827 rm -f conftest.$ac_objext
13828 if { (ac_try="$ac_compile"
13829 case "(($ac_try" in
13830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13832 esac
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_compile") 2>conftest.er1
13835 ac_status=$?
13836 grep -v '^ *+' conftest.er1 >conftest.err
13837 rm -f conftest.er1
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } && {
13841 test -z "$ac_c_werror_flag" ||
13842 test ! -s conftest.err
13843 } && test -s conftest.$ac_objext; then
13844 ac_cv_type_long_long=yes
13845 else
13846 echo "$as_me: failed program was:" >&5
13847 sed 's/^/| /' conftest.$ac_ext >&5
13848
13849 ac_cv_type_long_long=no
13850 fi
13851
13852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13853 fi
13854 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13855 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13856
13857 # The cast to long int works around a bug in the HP C Compiler
13858 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13859 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13860 # This bug is HP SR number 8606223364.
13861 { echo "$as_me:$LINENO: checking size of long long" >&5
13862 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13863 if test "${ac_cv_sizeof_long_long+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 else
13866 if test "$cross_compiling" = yes; then
13867 # Depending upon the size, compute the lo and hi bounds.
13868 cat >conftest.$ac_ext <<_ACEOF
13869 /* confdefs.h. */
13870 _ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h. */
13874 $ac_includes_default
13875 typedef long long ac__type_sizeof_;
13876 int
13877 main ()
13878 {
13879 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13880 test_array [0] = 0
13881
13882 ;
13883 return 0;
13884 }
13885 _ACEOF
13886 rm -f conftest.$ac_objext
13887 if { (ac_try="$ac_compile"
13888 case "(($ac_try" in
13889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13890 *) ac_try_echo=$ac_try;;
13891 esac
13892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13893 (eval "$ac_compile") 2>conftest.er1
13894 ac_status=$?
13895 grep -v '^ *+' conftest.er1 >conftest.err
13896 rm -f conftest.er1
13897 cat conftest.err >&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); } && {
13900 test -z "$ac_c_werror_flag" ||
13901 test ! -s conftest.err
13902 } && test -s conftest.$ac_objext; then
13903 ac_lo=0 ac_mid=0
13904 while :; do
13905 cat >conftest.$ac_ext <<_ACEOF
13906 /* confdefs.h. */
13907 _ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13911 $ac_includes_default
13912 typedef long long ac__type_sizeof_;
13913 int
13914 main ()
13915 {
13916 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13917 test_array [0] = 0
13918
13919 ;
13920 return 0;
13921 }
13922 _ACEOF
13923 rm -f conftest.$ac_objext
13924 if { (ac_try="$ac_compile"
13925 case "(($ac_try" in
13926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13927 *) ac_try_echo=$ac_try;;
13928 esac
13929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13930 (eval "$ac_compile") 2>conftest.er1
13931 ac_status=$?
13932 grep -v '^ *+' conftest.er1 >conftest.err
13933 rm -f conftest.er1
13934 cat conftest.err >&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } && {
13937 test -z "$ac_c_werror_flag" ||
13938 test ! -s conftest.err
13939 } && test -s conftest.$ac_objext; then
13940 ac_hi=$ac_mid; break
13941 else
13942 echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13944
13945 ac_lo=`expr $ac_mid + 1`
13946 if test $ac_lo -le $ac_mid; then
13947 ac_lo= ac_hi=
13948 break
13949 fi
13950 ac_mid=`expr 2 '*' $ac_mid + 1`
13951 fi
13952
13953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13954 done
13955 else
13956 echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13958
13959 cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h. */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13965 $ac_includes_default
13966 typedef long long ac__type_sizeof_;
13967 int
13968 main ()
13969 {
13970 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13971 test_array [0] = 0
13972
13973 ;
13974 return 0;
13975 }
13976 _ACEOF
13977 rm -f conftest.$ac_objext
13978 if { (ac_try="$ac_compile"
13979 case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13982 esac
13983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_compile") 2>conftest.er1
13985 ac_status=$?
13986 grep -v '^ *+' conftest.er1 >conftest.err
13987 rm -f conftest.er1
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } && {
13991 test -z "$ac_c_werror_flag" ||
13992 test ! -s conftest.err
13993 } && test -s conftest.$ac_objext; then
13994 ac_hi=-1 ac_mid=-1
13995 while :; do
13996 cat >conftest.$ac_ext <<_ACEOF
13997 /* confdefs.h. */
13998 _ACEOF
13999 cat confdefs.h >>conftest.$ac_ext
14000 cat >>conftest.$ac_ext <<_ACEOF
14001 /* end confdefs.h. */
14002 $ac_includes_default
14003 typedef long long ac__type_sizeof_;
14004 int
14005 main ()
14006 {
14007 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14008 test_array [0] = 0
14009
14010 ;
14011 return 0;
14012 }
14013 _ACEOF
14014 rm -f conftest.$ac_objext
14015 if { (ac_try="$ac_compile"
14016 case "(($ac_try" in
14017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018 *) ac_try_echo=$ac_try;;
14019 esac
14020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14021 (eval "$ac_compile") 2>conftest.er1
14022 ac_status=$?
14023 grep -v '^ *+' conftest.er1 >conftest.err
14024 rm -f conftest.er1
14025 cat conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } && {
14028 test -z "$ac_c_werror_flag" ||
14029 test ! -s conftest.err
14030 } && test -s conftest.$ac_objext; then
14031 ac_lo=$ac_mid; break
14032 else
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14035
14036 ac_hi=`expr '(' $ac_mid ')' - 1`
14037 if test $ac_mid -le $ac_hi; then
14038 ac_lo= ac_hi=
14039 break
14040 fi
14041 ac_mid=`expr 2 '*' $ac_mid`
14042 fi
14043
14044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14045 done
14046 else
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14049
14050 ac_lo= ac_hi=
14051 fi
14052
14053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14054 fi
14055
14056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14057 # Binary search between lo and hi bounds.
14058 while test "x$ac_lo" != "x$ac_hi"; do
14059 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14060 cat >conftest.$ac_ext <<_ACEOF
14061 /* confdefs.h. */
14062 _ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14066 $ac_includes_default
14067 typedef long long ac__type_sizeof_;
14068 int
14069 main ()
14070 {
14071 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14072 test_array [0] = 0
14073
14074 ;
14075 return 0;
14076 }
14077 _ACEOF
14078 rm -f conftest.$ac_objext
14079 if { (ac_try="$ac_compile"
14080 case "(($ac_try" in
14081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082 *) ac_try_echo=$ac_try;;
14083 esac
14084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085 (eval "$ac_compile") 2>conftest.er1
14086 ac_status=$?
14087 grep -v '^ *+' conftest.er1 >conftest.err
14088 rm -f conftest.er1
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } && {
14092 test -z "$ac_c_werror_flag" ||
14093 test ! -s conftest.err
14094 } && test -s conftest.$ac_objext; then
14095 ac_hi=$ac_mid
14096 else
14097 echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14099
14100 ac_lo=`expr '(' $ac_mid ')' + 1`
14101 fi
14102
14103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14104 done
14105 case $ac_lo in
14106 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14107 '') if test "$ac_cv_type_long_long" = yes; then
14108 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14109 See \`config.log' for more details." >&5
14110 echo "$as_me: error: cannot compute sizeof (long long)
14111 See \`config.log' for more details." >&2;}
14112 { (exit 77); exit 77; }; }
14113 else
14114 ac_cv_sizeof_long_long=0
14115 fi ;;
14116 esac
14117 else
14118 cat >conftest.$ac_ext <<_ACEOF
14119 /* confdefs.h. */
14120 _ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h. */
14124 $ac_includes_default
14125 typedef long long ac__type_sizeof_;
14126 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14127 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14128 #include <stdio.h>
14129 #include <stdlib.h>
14130 int
14131 main ()
14132 {
14133
14134 FILE *f = fopen ("conftest.val", "w");
14135 if (! f)
14136 return 1;
14137 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14138 {
14139 long int i = longval ();
14140 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14141 return 1;
14142 fprintf (f, "%ld\n", i);
14143 }
14144 else
14145 {
14146 unsigned long int i = ulongval ();
14147 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14148 return 1;
14149 fprintf (f, "%lu\n", i);
14150 }
14151 return ferror (f) || fclose (f) != 0;
14152
14153 ;
14154 return 0;
14155 }
14156 _ACEOF
14157 rm -f conftest$ac_exeext
14158 if { (ac_try="$ac_link"
14159 case "(($ac_try" in
14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14162 esac
14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164 (eval "$ac_link") 2>&5
14165 ac_status=$?
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14168 { (case "(($ac_try" in
14169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170 *) ac_try_echo=$ac_try;;
14171 esac
14172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14173 (eval "$ac_try") 2>&5
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }; then
14177 ac_cv_sizeof_long_long=`cat conftest.val`
14178 else
14179 echo "$as_me: program exited with status $ac_status" >&5
14180 echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14182
14183 ( exit $ac_status )
14184 if test "$ac_cv_type_long_long" = yes; then
14185 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14186 See \`config.log' for more details." >&5
14187 echo "$as_me: error: cannot compute sizeof (long long)
14188 See \`config.log' for more details." >&2;}
14189 { (exit 77); exit 77; }; }
14190 else
14191 ac_cv_sizeof_long_long=0
14192 fi
14193 fi
14194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14195 fi
14196 rm -f conftest.val
14197 fi
14198 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14199 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14200
14201
14202
14203 cat >>confdefs.h <<_ACEOF
14204 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14205 _ACEOF
14206
14207
14208 SIZEOF_SHORT=$ac_cv_sizeof_short
14209 SIZEOF_INT=$ac_cv_sizeof_int
14210 SIZEOF_LONG=$ac_cv_sizeof_long
14211 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14212
14213
14214
14215
14216 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14217 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14218 if test "${ac_cv_c_bigendian+set}" = set; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 else
14221 # See if sys/param.h defines the BYTE_ORDER macro.
14222 cat >conftest.$ac_ext <<_ACEOF
14223 /* confdefs.h. */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14228 #include <sys/types.h>
14229 #include <sys/param.h>
14230
14231 int
14232 main ()
14233 {
14234 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14235 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14236 bogus endian macros
14237 #endif
14238
14239 ;
14240 return 0;
14241 }
14242 _ACEOF
14243 rm -f conftest.$ac_objext
14244 if { (ac_try="$ac_compile"
14245 case "(($ac_try" in
14246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247 *) ac_try_echo=$ac_try;;
14248 esac
14249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14250 (eval "$ac_compile") 2>conftest.er1
14251 ac_status=$?
14252 grep -v '^ *+' conftest.er1 >conftest.err
14253 rm -f conftest.er1
14254 cat conftest.err >&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } && {
14257 test -z "$ac_c_werror_flag" ||
14258 test ! -s conftest.err
14259 } && test -s conftest.$ac_objext; then
14260 # It does; now see whether it defined to BIG_ENDIAN or not.
14261 cat >conftest.$ac_ext <<_ACEOF
14262 /* confdefs.h. */
14263 _ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h. */
14267 #include <sys/types.h>
14268 #include <sys/param.h>
14269
14270 int
14271 main ()
14272 {
14273 #if BYTE_ORDER != BIG_ENDIAN
14274 not big endian
14275 #endif
14276
14277 ;
14278 return 0;
14279 }
14280 _ACEOF
14281 rm -f conftest.$ac_objext
14282 if { (ac_try="$ac_compile"
14283 case "(($ac_try" in
14284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285 *) ac_try_echo=$ac_try;;
14286 esac
14287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288 (eval "$ac_compile") 2>conftest.er1
14289 ac_status=$?
14290 grep -v '^ *+' conftest.er1 >conftest.err
14291 rm -f conftest.er1
14292 cat conftest.err >&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } && {
14295 test -z "$ac_c_werror_flag" ||
14296 test ! -s conftest.err
14297 } && test -s conftest.$ac_objext; then
14298 ac_cv_c_bigendian=yes
14299 else
14300 echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14302
14303 ac_cv_c_bigendian=no
14304 fi
14305
14306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14307 else
14308 echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14310
14311 # It does not; compile a test program.
14312 if test "$cross_compiling" = yes; then
14313 # try to guess the endianness by grepping values into an object file
14314 ac_cv_c_bigendian=unknown
14315 cat >conftest.$ac_ext <<_ACEOF
14316 /* confdefs.h. */
14317 _ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h. */
14321 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14322 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14323 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14324 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14325 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14326 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14327 int
14328 main ()
14329 {
14330 _ascii (); _ebcdic ();
14331 ;
14332 return 0;
14333 }
14334 _ACEOF
14335 rm -f conftest.$ac_objext
14336 if { (ac_try="$ac_compile"
14337 case "(($ac_try" in
14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14340 esac
14341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342 (eval "$ac_compile") 2>conftest.er1
14343 ac_status=$?
14344 grep -v '^ *+' conftest.er1 >conftest.err
14345 rm -f conftest.er1
14346 cat conftest.err >&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } && {
14349 test -z "$ac_c_werror_flag" ||
14350 test ! -s conftest.err
14351 } && test -s conftest.$ac_objext; then
14352 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14353 ac_cv_c_bigendian=yes
14354 fi
14355 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14356 if test "$ac_cv_c_bigendian" = unknown; then
14357 ac_cv_c_bigendian=no
14358 else
14359 # finding both strings is unlikely to happen, but who knows?
14360 ac_cv_c_bigendian=unknown
14361 fi
14362 fi
14363 else
14364 echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14366
14367
14368 fi
14369
14370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14371 else
14372 cat >conftest.$ac_ext <<_ACEOF
14373 /* confdefs.h. */
14374 _ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14378 $ac_includes_default
14379 int
14380 main ()
14381 {
14382
14383 /* Are we little or big endian? From Harbison&Steele. */
14384 union
14385 {
14386 long int l;
14387 char c[sizeof (long int)];
14388 } u;
14389 u.l = 1;
14390 return u.c[sizeof (long int) - 1] == 1;
14391
14392 ;
14393 return 0;
14394 }
14395 _ACEOF
14396 rm -f conftest$ac_exeext
14397 if { (ac_try="$ac_link"
14398 case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14401 esac
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_link") 2>&5
14404 ac_status=$?
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14407 { (case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14410 esac
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_try") 2>&5
14413 ac_status=$?
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; }; then
14416 ac_cv_c_bigendian=no
14417 else
14418 echo "$as_me: program exited with status $ac_status" >&5
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14421
14422 ( exit $ac_status )
14423 ac_cv_c_bigendian=yes
14424 fi
14425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14426 fi
14427
14428
14429 fi
14430
14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432 fi
14433 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14434 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14435 case $ac_cv_c_bigendian in
14436 yes)
14437
14438 cat >>confdefs.h <<\_ACEOF
14439 #define WORDS_BIGENDIAN 1
14440 _ACEOF
14441 ;;
14442 no)
14443 ;;
14444 *)
14445 { { echo "$as_me:$LINENO: error: unknown endianness
14446 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14447 echo "$as_me: error: unknown endianness
14448 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14449 { (exit 1); exit 1; }; } ;;
14450 esac
14451
14452 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14453 ASM_TYPES_HEADER=./asm_types.h
14454
14455
14456 for ac_header in inttypes.h
14457 do
14458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 fi
14465 ac_res=`eval echo '${'$as_ac_Header'}'`
14466 { echo "$as_me:$LINENO: result: $ac_res" >&5
14467 echo "${ECHO_T}$ac_res" >&6; }
14468 else
14469 # Is the header compilable?
14470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14472 cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h. */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 $ac_includes_default
14479 #include <$ac_header>
14480 _ACEOF
14481 rm -f conftest.$ac_objext
14482 if { (ac_try="$ac_compile"
14483 case "(($ac_try" in
14484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485 *) ac_try_echo=$ac_try;;
14486 esac
14487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488 (eval "$ac_compile") 2>conftest.er1
14489 ac_status=$?
14490 grep -v '^ *+' conftest.er1 >conftest.err
14491 rm -f conftest.er1
14492 cat conftest.err >&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } && {
14495 test -z "$ac_c_werror_flag" ||
14496 test ! -s conftest.err
14497 } && test -s conftest.$ac_objext; then
14498 ac_header_compiler=yes
14499 else
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14502
14503 ac_header_compiler=no
14504 fi
14505
14506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14508 echo "${ECHO_T}$ac_header_compiler" >&6; }
14509
14510 # Is the header present?
14511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14513 cat >conftest.$ac_ext <<_ACEOF
14514 /* confdefs.h. */
14515 _ACEOF
14516 cat confdefs.h >>conftest.$ac_ext
14517 cat >>conftest.$ac_ext <<_ACEOF
14518 /* end confdefs.h. */
14519 #include <$ac_header>
14520 _ACEOF
14521 if { (ac_try="$ac_cpp conftest.$ac_ext"
14522 case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14525 esac
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14528 ac_status=$?
14529 grep -v '^ *+' conftest.er1 >conftest.err
14530 rm -f conftest.er1
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } >/dev/null && {
14534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14535 test ! -s conftest.err
14536 }; then
14537 ac_header_preproc=yes
14538 else
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14541
14542 ac_header_preproc=no
14543 fi
14544
14545 rm -f conftest.err conftest.$ac_ext
14546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14547 echo "${ECHO_T}$ac_header_preproc" >&6; }
14548
14549 # So? What about this header?
14550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14551 yes:no: )
14552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14556 ac_header_preproc=yes
14557 ;;
14558 no:yes:* )
14559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14571
14572 ;;
14573 esac
14574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14578 else
14579 eval "$as_ac_Header=\$ac_header_preproc"
14580 fi
14581 ac_res=`eval echo '${'$as_ac_Header'}'`
14582 { echo "$as_me:$LINENO: result: $ac_res" >&5
14583 echo "${ECHO_T}$ac_res" >&6; }
14584
14585 fi
14586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14587 cat >>confdefs.h <<_ACEOF
14588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14589 _ACEOF
14590
14591 fi
14592
14593 done
14594
14595 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14596 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14597 if test "${ac_cv_type_intptr_t+set}" = set; then
14598 echo $ECHO_N "(cached) $ECHO_C" >&6
14599 else
14600 cat >conftest.$ac_ext <<_ACEOF
14601 /* confdefs.h. */
14602 _ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 $ac_includes_default
14607 typedef intptr_t ac__type_new_;
14608 int
14609 main ()
14610 {
14611 if ((ac__type_new_ *) 0)
14612 return 0;
14613 if (sizeof (ac__type_new_))
14614 return 0;
14615 ;
14616 return 0;
14617 }
14618 _ACEOF
14619 rm -f conftest.$ac_objext
14620 if { (ac_try="$ac_compile"
14621 case "(($ac_try" in
14622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623 *) ac_try_echo=$ac_try;;
14624 esac
14625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626 (eval "$ac_compile") 2>conftest.er1
14627 ac_status=$?
14628 grep -v '^ *+' conftest.er1 >conftest.err
14629 rm -f conftest.er1
14630 cat conftest.err >&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } && {
14633 test -z "$ac_c_werror_flag" ||
14634 test ! -s conftest.err
14635 } && test -s conftest.$ac_objext; then
14636 ac_cv_type_intptr_t=yes
14637 else
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14640
14641 ac_cv_type_intptr_t=no
14642 fi
14643
14644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14645 fi
14646 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14647 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14648 if test $ac_cv_type_intptr_t = yes; then
14649
14650 cat >>confdefs.h <<_ACEOF
14651 #define HAVE_INTPTR_T 1
14652 _ACEOF
14653
14654
14655 fi
14656
14657 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14658 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14659 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14660 echo $ECHO_N "(cached) $ECHO_C" >&6
14661 else
14662 cat >conftest.$ac_ext <<_ACEOF
14663 /* confdefs.h. */
14664 _ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14668 #include <sys/stat.h>
14669 int
14670 main ()
14671 {
14672 struct stat stat; stat.st_flags = 0;
14673 ;
14674 return 0;
14675 }
14676 _ACEOF
14677 rm -f conftest.$ac_objext
14678 if { (ac_try="$ac_compile"
14679 case "(($ac_try" in
14680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14682 esac
14683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684 (eval "$ac_compile") 2>conftest.er1
14685 ac_status=$?
14686 grep -v '^ *+' conftest.er1 >conftest.err
14687 rm -f conftest.er1
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } && {
14691 test -z "$ac_c_werror_flag" ||
14692 test ! -s conftest.err
14693 } && test -s conftest.$ac_objext; then
14694 e2fsprogs_cv_struct_st_flags=yes
14695 else
14696 echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14698
14699 e2fsprogs_cv_struct_st_flags=no
14700 fi
14701
14702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14703 fi
14704
14705 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14706 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14707 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14708 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14709 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14710 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14712 else
14713 cat >conftest.$ac_ext <<_ACEOF
14714 /* confdefs.h. */
14715 _ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14719 #include <sys/stat.h>
14720 int
14721 main ()
14722 {
14723 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14724 ;
14725 return 0;
14726 }
14727 _ACEOF
14728 rm -f conftest.$ac_objext
14729 if { (ac_try="$ac_compile"
14730 case "(($ac_try" in
14731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732 *) ac_try_echo=$ac_try;;
14733 esac
14734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14735 (eval "$ac_compile") 2>conftest.er1
14736 ac_status=$?
14737 grep -v '^ *+' conftest.er1 >conftest.err
14738 rm -f conftest.er1
14739 cat conftest.err >&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } && {
14742 test -z "$ac_c_werror_flag" ||
14743 test ! -s conftest.err
14744 } && test -s conftest.$ac_objext; then
14745 e2fsprogs_cv_struct_st_flags_immut=yes
14746 else
14747 echo "$as_me: failed program was:" >&5
14748 sed 's/^/| /' conftest.$ac_ext >&5
14749
14750 e2fsprogs_cv_struct_st_flags_immut=no
14751 fi
14752
14753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14754 fi
14755
14756 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14757 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14758 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14759 cat >>confdefs.h <<\_ACEOF
14760 #define HAVE_STAT_FLAGS 1
14761 _ACEOF
14762
14763 fi
14764 fi
14765 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14766 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14767 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14768 echo $ECHO_N "(cached) $ECHO_C" >&6
14769 else
14770 cat >conftest.$ac_ext <<_ACEOF
14771 /* confdefs.h. */
14772 _ACEOF
14773 cat confdefs.h >>conftest.$ac_ext
14774 cat >>conftest.$ac_ext <<_ACEOF
14775 /* end confdefs.h. */
14776 #include <sys/types.h>
14777 #include <sys/socket.h>
14778
14779 int
14780 main ()
14781 {
14782 static struct sockaddr ac_aggr;
14783 if (ac_aggr.sa_len)
14784 return 0;
14785 ;
14786 return 0;
14787 }
14788 _ACEOF
14789 rm -f conftest.$ac_objext
14790 if { (ac_try="$ac_compile"
14791 case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14794 esac
14795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796 (eval "$ac_compile") 2>conftest.er1
14797 ac_status=$?
14798 grep -v '^ *+' conftest.er1 >conftest.err
14799 rm -f conftest.er1
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } && {
14803 test -z "$ac_c_werror_flag" ||
14804 test ! -s conftest.err
14805 } && test -s conftest.$ac_objext; then
14806 ac_cv_member_struct_sockaddr_sa_len=yes
14807 else
14808 echo "$as_me: failed program was:" >&5
14809 sed 's/^/| /' conftest.$ac_ext >&5
14810
14811 cat >conftest.$ac_ext <<_ACEOF
14812 /* confdefs.h. */
14813 _ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14817 #include <sys/types.h>
14818 #include <sys/socket.h>
14819
14820 int
14821 main ()
14822 {
14823 static struct sockaddr ac_aggr;
14824 if (sizeof ac_aggr.sa_len)
14825 return 0;
14826 ;
14827 return 0;
14828 }
14829 _ACEOF
14830 rm -f conftest.$ac_objext
14831 if { (ac_try="$ac_compile"
14832 case "(($ac_try" in
14833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14835 esac
14836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14837 (eval "$ac_compile") 2>conftest.er1
14838 ac_status=$?
14839 grep -v '^ *+' conftest.er1 >conftest.err
14840 rm -f conftest.er1
14841 cat conftest.err >&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } && {
14844 test -z "$ac_c_werror_flag" ||
14845 test ! -s conftest.err
14846 } && test -s conftest.$ac_objext; then
14847 ac_cv_member_struct_sockaddr_sa_len=yes
14848 else
14849 echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14851
14852 ac_cv_member_struct_sockaddr_sa_len=no
14853 fi
14854
14855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14856 fi
14857
14858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14859 fi
14860 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14861 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14862 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14863
14864 cat >>confdefs.h <<_ACEOF
14865 #define HAVE_SA_LEN 1
14866 _ACEOF
14867
14868 fi
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid
14900 do
14901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
14906 else
14907 cat >conftest.$ac_ext <<_ACEOF
14908 /* confdefs.h. */
14909 _ACEOF
14910 cat confdefs.h >>conftest.$ac_ext
14911 cat >>conftest.$ac_ext <<_ACEOF
14912 /* end confdefs.h. */
14913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14915 #define $ac_func innocuous_$ac_func
14916
14917 /* System header to define __stub macros and hopefully few prototypes,
14918 which can conflict with char $ac_func (); below.
14919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14920 <limits.h> exists even on freestanding compilers. */
14921
14922 #ifdef __STDC__
14923 # include <limits.h>
14924 #else
14925 # include <assert.h>
14926 #endif
14927
14928 #undef $ac_func
14929
14930 /* Override any GCC internal prototype to avoid an error.
14931 Use char because int might match the return type of a GCC
14932 builtin and then its argument prototype would still apply. */
14933 #ifdef __cplusplus
14934 extern "C"
14935 #endif
14936 char $ac_func ();
14937 /* The GNU C library defines this for functions which it implements
14938 to always fail with ENOSYS. Some functions are actually named
14939 something starting with __ and the normal name is an alias. */
14940 #if defined __stub_$ac_func || defined __stub___$ac_func
14941 choke me
14942 #endif
14943
14944 int
14945 main ()
14946 {
14947 return $ac_func ();
14948 ;
14949 return 0;
14950 }
14951 _ACEOF
14952 rm -f conftest.$ac_objext conftest$ac_exeext
14953 if { (ac_try="$ac_link"
14954 case "(($ac_try" in
14955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14956 *) ac_try_echo=$ac_try;;
14957 esac
14958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959 (eval "$ac_link") 2>conftest.er1
14960 ac_status=$?
14961 grep -v '^ *+' conftest.er1 >conftest.err
14962 rm -f conftest.er1
14963 cat conftest.err >&5
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); } && {
14966 test -z "$ac_c_werror_flag" ||
14967 test ! -s conftest.err
14968 } && test -s conftest$ac_exeext &&
14969 $as_test_x conftest$ac_exeext; then
14970 eval "$as_ac_var=yes"
14971 else
14972 echo "$as_me: failed program was:" >&5
14973 sed 's/^/| /' conftest.$ac_ext >&5
14974
14975 eval "$as_ac_var=no"
14976 fi
14977
14978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14979 conftest$ac_exeext conftest.$ac_ext
14980 fi
14981 ac_res=`eval echo '${'$as_ac_var'}'`
14982 { echo "$as_me:$LINENO: result: $ac_res" >&5
14983 echo "${ECHO_T}$ac_res" >&6; }
14984 if test `eval echo '${'$as_ac_var'}'` = yes; then
14985 cat >>confdefs.h <<_ACEOF
14986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14987 _ACEOF
14988
14989 fi
14990 done
14991
14992 SOCKET_LIB=''
14993 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14994 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14995 if test "${ac_cv_lib_socket_socket+set}" = set; then
14996 echo $ECHO_N "(cached) $ECHO_C" >&6
14997 else
14998 ac_check_lib_save_LIBS=$LIBS
14999 LIBS="-lsocket $LIBS"
15000 cat >conftest.$ac_ext <<_ACEOF
15001 /* confdefs.h. */
15002 _ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h. */
15006
15007 /* Override any GCC internal prototype to avoid an error.
15008 Use char because int might match the return type of a GCC
15009 builtin and then its argument prototype would still apply. */
15010 #ifdef __cplusplus
15011 extern "C"
15012 #endif
15013 char socket ();
15014 int
15015 main ()
15016 {
15017 return socket ();
15018 ;
15019 return 0;
15020 }
15021 _ACEOF
15022 rm -f conftest.$ac_objext conftest$ac_exeext
15023 if { (ac_try="$ac_link"
15024 case "(($ac_try" in
15025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026 *) ac_try_echo=$ac_try;;
15027 esac
15028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029 (eval "$ac_link") 2>conftest.er1
15030 ac_status=$?
15031 grep -v '^ *+' conftest.er1 >conftest.err
15032 rm -f conftest.er1
15033 cat conftest.err >&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); } && {
15036 test -z "$ac_c_werror_flag" ||
15037 test ! -s conftest.err
15038 } && test -s conftest$ac_exeext &&
15039 $as_test_x conftest$ac_exeext; then
15040 ac_cv_lib_socket_socket=yes
15041 else
15042 echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.$ac_ext >&5
15044
15045 ac_cv_lib_socket_socket=no
15046 fi
15047
15048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15049 conftest$ac_exeext conftest.$ac_ext
15050 LIBS=$ac_check_lib_save_LIBS
15051 fi
15052 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15053 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15054 if test $ac_cv_lib_socket_socket = yes; then
15055 SOCKET_LIB=-lsocket
15056 fi
15057
15058
15059 DLOPEN_LIB=''
15060 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15061 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15062 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15063 echo $ECHO_N "(cached) $ECHO_C" >&6
15064 else
15065 ac_check_lib_save_LIBS=$LIBS
15066 LIBS="-ldl $LIBS"
15067 cat >conftest.$ac_ext <<_ACEOF
15068 /* confdefs.h. */
15069 _ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15073
15074 /* Override any GCC internal prototype to avoid an error.
15075 Use char because int might match the return type of a GCC
15076 builtin and then its argument prototype would still apply. */
15077 #ifdef __cplusplus
15078 extern "C"
15079 #endif
15080 char dlopen ();
15081 int
15082 main ()
15083 {
15084 return dlopen ();
15085 ;
15086 return 0;
15087 }
15088 _ACEOF
15089 rm -f conftest.$ac_objext conftest$ac_exeext
15090 if { (ac_try="$ac_link"
15091 case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094 esac
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_link") 2>conftest.er1
15097 ac_status=$?
15098 grep -v '^ *+' conftest.er1 >conftest.err
15099 rm -f conftest.er1
15100 cat conftest.err >&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } && {
15103 test -z "$ac_c_werror_flag" ||
15104 test ! -s conftest.err
15105 } && test -s conftest$ac_exeext &&
15106 $as_test_x conftest$ac_exeext; then
15107 ac_cv_lib_dl_dlopen=yes
15108 else
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15111
15112 ac_cv_lib_dl_dlopen=no
15113 fi
15114
15115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15116 conftest$ac_exeext conftest.$ac_ext
15117 LIBS=$ac_check_lib_save_LIBS
15118 fi
15119 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15120 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15121 if test $ac_cv_lib_dl_dlopen = yes; then
15122 DLOPEN_LIB=-ldl
15123 cat >>confdefs.h <<\_ACEOF
15124 #define HAVE_DLOPEN 1
15125 _ACEOF
15126
15127 fi
15128
15129
15130 { echo "$as_me:$LINENO: checking for optreset" >&5
15131 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15132 if test "${ac_cv_have_optreset+set}" = set; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
15134 else
15135 cat >conftest.$ac_ext <<_ACEOF
15136 /* confdefs.h. */
15137 _ACEOF
15138 cat confdefs.h >>conftest.$ac_ext
15139 cat >>conftest.$ac_ext <<_ACEOF
15140 /* end confdefs.h. */
15141 #include <unistd.h>
15142
15143 _ACEOF
15144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15145 $EGREP "optreset" >/dev/null 2>&1; then
15146 ac_cv_have_optreset=yes
15147 else
15148 ac_cv_have_optreset=no
15149 fi
15150 rm -f conftest*
15151
15152 fi
15153 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15154 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15155 if test $ac_cv_have_optreset = yes; then
15156 cat >>confdefs.h <<\_ACEOF
15157 #define HAVE_OPTRESET 1
15158 _ACEOF
15159
15160 fi
15161 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15162 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15163 if diff -u $0 $0 > /dev/null 2>&1 ; then
15164 UNI_DIFF_OPTS=-u
15165 else
15166 UNI_DIFF_OPTS=-c
15167 fi
15168 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15169 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15170
15171 case "$host_os" in
15172 linux*)
15173 cat >>confdefs.h <<\_ACEOF
15174 #define HAVE_EXT2_IOCTLS 1
15175 _ACEOF
15176
15177 ;;
15178 esac
15179 LINUX_CMT="#"
15180 CYGWIN_CMT="#"
15181 UNIX_CMT=
15182 case "$host_os" in
15183 linux*)
15184 LINUX_CMT=
15185 ;;
15186 cygwin)
15187 CYGWIN_CMT=
15188 UNIX_CMT="#"
15189 ;;
15190 esac
15191
15192
15193
15194 case "$host_os" in
15195 linux* | gnu* | k*bsd*-gnu)
15196 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15197 root_prefix="";
15198 echo "On $host_os systems, root_prefix defaults to ''"
15199 fi
15200 ;;
15201 esac
15202 case "$host_os" in
15203 linux* | gnu* | k*bsd*-gnu)
15204 if test "$prefix" = NONE ; then
15205 prefix="/usr";
15206 echo "On $host_os systems, prefix defaults to /usr"
15207 if test "$mandir" = '${prefix}/man' ; then
15208 echo "...and mandir defaults to /usr/share/man"
15209 mandir=/usr/share/man
15210 fi
15211 fi
15212 ;;
15213 esac
15214 if test "$root_prefix" = NONE ; then
15215 if test "$prefix" = NONE ; then
15216 root_prefix="$ac_default_prefix"
15217 else
15218 root_prefix="$prefix"
15219 fi
15220 root_bindir=$bindir
15221 root_sbindir=$sbindir
15222 root_libdir=$libdir
15223 root_sysconfdir=$sysconfdir
15224 else
15225 root_bindir='${root_prefix}/bin'
15226 root_sbindir='${root_prefix}/sbin'
15227 root_libdir='${root_prefix}/lib'
15228 root_sysconfdir='${root_prefix}/etc'
15229 fi
15230 if test "$bindir" != '${exec_prefix}/bin'; then
15231 root_bindir=$bindir
15232 echo "Setting root_bindir to $root_bindir"
15233 fi
15234 if test "$sbindir" != '${exec_prefix}/sbin'; then
15235 root_sbindir=$sbindir
15236 echo "Setting root_sbindir to $root_sbindir"
15237 fi
15238 if test "$libdir" != '${exec_prefix}/lib'; then
15239 root_libdir=$libdir
15240 echo "Setting root_libdir to $root_libdir"
15241 fi
15242 if test "$sysconfdir" != '${prefix}/etc'; then
15243 root_sysconfdir=$sysconfdir
15244 echo "Setting root_sysconfdir to $root_sysconfdir"
15245 fi
15246
15247
15248
15249
15250
15251 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15252 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15253 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15254 echo $ECHO_N "(cached) $ECHO_C" >&6
15255 else
15256 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15257 cat >conftest.$ac_ext <<_ACEOF
15258 /* confdefs.h. */
15259 _ACEOF
15260 cat confdefs.h >>conftest.$ac_ext
15261 cat >>conftest.$ac_ext <<_ACEOF
15262 /* end confdefs.h. */
15263 #include <stdio.h>
15264 int
15265 main ()
15266 {
15267 fflush(stdout);
15268 ;
15269 return 0;
15270 }
15271 _ACEOF
15272 rm -f conftest.$ac_objext conftest$ac_exeext
15273 if { (ac_try="$ac_link"
15274 case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15277 esac
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_link") 2>conftest.er1
15280 ac_status=$?
15281 grep -v '^ *+' conftest.er1 >conftest.err
15282 rm -f conftest.er1
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } && {
15286 test -z "$ac_c_werror_flag" ||
15287 test ! -s conftest.err
15288 } && test -s conftest$ac_exeext &&
15289 $as_test_x conftest$ac_exeext; then
15290 ac_cv_e2fsprogs_use_static=yes
15291 else
15292 echo "$as_me: failed program was:" >&5
15293 sed 's/^/| /' conftest.$ac_ext >&5
15294
15295 ac_cv_e2fsprogs_use_static=no
15296 fi
15297
15298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15299 conftest$ac_exeext conftest.$ac_ext
15300 LDFLAGS=$SAVE_LDFLAGS
15301 fi
15302
15303 case "$host_os" in
15304 solaris2.*)
15305 ac_cv_e2fsprogs_use_static=no
15306 ;;
15307 esac
15308 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15309 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15310 LDFLAG_STATIC=
15311 if test $ac_cv_e2fsprogs_use_static = yes; then
15312 LDFLAG_STATIC=-static
15313 fi
15314
15315 case "$host_os" in
15316 darwin*)
15317 echo "Using Apple Darwin / GNU libintl workaround"
15318 cat >>confdefs.h <<\_ACEOF
15319 #define _INTL_REDIRECT_MACROS 1
15320 _ACEOF
15321
15322 ;;
15323 esac
15324 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15325 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15326
15327
15328 if test "$cross_compiling" = yes ; then
15329 DO_TEST_SUITE=
15330 else
15331 DO_TEST_SUITE=check
15332 fi
15333
15334 INTL_FLAGS=
15335 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15336 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15337 fi
15338
15339 if test $cross_compiling = no; then
15340 BUILD_CFLAGS="$CFLAGS"
15341 BUILD_LDFLAGS="$LDFLAGS"
15342 else
15343 BUILD_CFLAGS=
15344 BUILD_LDFLAGS=
15345 fi
15346
15347
15348 test -d lib || mkdir lib
15349 test -d include || mkdir include
15350 test -d include/linux || mkdir include/linux
15351 test -d include/asm || mkdir include/asm
15352 for i in MCONFIG Makefile e2fsprogs.spec \
15353 util/Makefile util/subst.conf util/gen-tarball \
15354 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15355 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15356 lib/uuid/Makefile lib/uuid/uuid_types.h \
15357 lib/blkid/Makefile lib/blkid/blkid_types.h \
15358 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15359 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15360 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15361 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15362 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15363 if test -d `dirname ${srcdir}/$i` ; then
15364 outlist="$outlist $i"
15365 fi
15366 done
15367 ac_config_files="$ac_config_files $outlist"
15368
15369 cat >confcache <<\_ACEOF
15370 # This file is a shell script that caches the results of configure
15371 # tests run on this system so they can be shared between configure
15372 # scripts and configure runs, see configure's option --config-cache.
15373 # It is not useful on other systems. If it contains results you don't
15374 # want to keep, you may remove or edit it.
15375 #
15376 # config.status only pays attention to the cache file if you give it
15377 # the --recheck option to rerun configure.
15378 #
15379 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15380 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15381 # following values.
15382
15383 _ACEOF
15384
15385 # The following way of writing the cache mishandles newlines in values,
15386 # but we know of no workaround that is simple, portable, and efficient.
15387 # So, we kill variables containing newlines.
15388 # Ultrix sh set writes to stderr and can't be redirected directly,
15389 # and sets the high bit in the cache file unless we assign to the vars.
15390 (
15391 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15392 eval ac_val=\$$ac_var
15393 case $ac_val in #(
15394 *${as_nl}*)
15395 case $ac_var in #(
15396 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15397 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15398 esac
15399 case $ac_var in #(
15400 _ | IFS | as_nl) ;; #(
15401 *) $as_unset $ac_var ;;
15402 esac ;;
15403 esac
15404 done
15405
15406 (set) 2>&1 |
15407 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15408 *${as_nl}ac_space=\ *)
15409 # `set' does not quote correctly, so add quotes (double-quote
15410 # substitution turns \\\\ into \\, and sed turns \\ into \).
15411 sed -n \
15412 "s/'/'\\\\''/g;
15413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15414 ;; #(
15415 *)
15416 # `set' quotes correctly as required by POSIX, so do not add quotes.
15417 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15418 ;;
15419 esac |
15420 sort
15421 ) |
15422 sed '
15423 /^ac_cv_env_/b end
15424 t clear
15425 :clear
15426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15427 t end
15428 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15429 :end' >>confcache
15430 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15431 if test -w "$cache_file"; then
15432 test "x$cache_file" != "x/dev/null" &&
15433 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15434 echo "$as_me: updating cache $cache_file" >&6;}
15435 cat confcache >$cache_file
15436 else
15437 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15438 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15439 fi
15440 fi
15441 rm -f confcache
15442
15443 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15444 # Let make expand exec_prefix.
15445 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15446
15447 # Transform confdefs.h into DEFS.
15448 # Protect against shell expansion while executing Makefile rules.
15449 # Protect against Makefile macro expansion.
15450 #
15451 # If the first sed substitution is executed (which looks for macros that
15452 # take arguments), then branch to the quote section. Otherwise,
15453 # look for a macro that doesn't take arguments.
15454 ac_script='
15455 t clear
15456 :clear
15457 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15458 t quote
15459 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15460 t quote
15461 b any
15462 :quote
15463 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15464 s/\[/\\&/g
15465 s/\]/\\&/g
15466 s/\$/$$/g
15467 H
15468 :any
15469 ${
15470 g
15471 s/^\n//
15472 s/\n/ /g
15473 p
15474 }
15475 '
15476 DEFS=`sed -n "$ac_script" confdefs.h`
15477
15478
15479 ac_libobjs=
15480 ac_ltlibobjs=
15481 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15482 # 1. Remove the extension, and $U if already installed.
15483 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15484 ac_i=`echo "$ac_i" | sed "$ac_script"`
15485 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15486 # will be set to the directory where LIBOBJS objects are built.
15487 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15488 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15489 done
15490 LIBOBJS=$ac_libobjs
15491
15492 LTLIBOBJS=$ac_ltlibobjs
15493
15494
15495
15496 : ${CONFIG_STATUS=./config.status}
15497 ac_clean_files_save=$ac_clean_files
15498 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15499 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15500 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15501 cat >$CONFIG_STATUS <<_ACEOF
15502 #! $SHELL
15503 # Generated by $as_me.
15504 # Run this file to recreate the current configuration.
15505 # Compiler output produced by configure, useful for debugging
15506 # configure, is in config.log if it exists.
15507
15508 debug=false
15509 ac_cs_recheck=false
15510 ac_cs_silent=false
15511 SHELL=\${CONFIG_SHELL-$SHELL}
15512 _ACEOF
15513
15514 cat >>$CONFIG_STATUS <<\_ACEOF
15515 ## --------------------- ##
15516 ## M4sh Initialization. ##
15517 ## --------------------- ##
15518
15519 # Be more Bourne compatible
15520 DUALCASE=1; export DUALCASE # for MKS sh
15521 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15522 emulate sh
15523 NULLCMD=:
15524 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15525 # is contrary to our usage. Disable this feature.
15526 alias -g '${1+"$@"}'='"$@"'
15527 setopt NO_GLOB_SUBST
15528 else
15529 case `(set -o) 2>/dev/null` in
15530 *posix*) set -o posix ;;
15531 esac
15532
15533 fi
15534
15535
15536
15537
15538 # PATH needs CR
15539 # Avoid depending upon Character Ranges.
15540 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15541 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15542 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15543 as_cr_digits='0123456789'
15544 as_cr_alnum=$as_cr_Letters$as_cr_digits
15545
15546 # The user is always right.
15547 if test "${PATH_SEPARATOR+set}" != set; then
15548 echo "#! /bin/sh" >conf$$.sh
15549 echo "exit 0" >>conf$$.sh
15550 chmod +x conf$$.sh
15551 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15552 PATH_SEPARATOR=';'
15553 else
15554 PATH_SEPARATOR=:
15555 fi
15556 rm -f conf$$.sh
15557 fi
15558
15559 # Support unset when possible.
15560 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15561 as_unset=unset
15562 else
15563 as_unset=false
15564 fi
15565
15566
15567 # IFS
15568 # We need space, tab and new line, in precisely that order. Quoting is
15569 # there to prevent editors from complaining about space-tab.
15570 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15571 # splitting by setting IFS to empty value.)
15572 as_nl='
15573 '
15574 IFS=" "" $as_nl"
15575
15576 # Find who we are. Look in the path if we contain no directory separator.
15577 case $0 in
15578 *[\\/]* ) as_myself=$0 ;;
15579 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15580 for as_dir in $PATH
15581 do
15582 IFS=$as_save_IFS
15583 test -z "$as_dir" && as_dir=.
15584 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15585 done
15586 IFS=$as_save_IFS
15587
15588 ;;
15589 esac
15590 # We did not find ourselves, most probably we were run as `sh COMMAND'
15591 # in which case we are not to be found in the path.
15592 if test "x$as_myself" = x; then
15593 as_myself=$0
15594 fi
15595 if test ! -f "$as_myself"; then
15596 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15597 { (exit 1); exit 1; }
15598 fi
15599
15600 # Work around bugs in pre-3.0 UWIN ksh.
15601 for as_var in ENV MAIL MAILPATH
15602 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15603 done
15604 PS1='$ '
15605 PS2='> '
15606 PS4='+ '
15607
15608 # NLS nuisances.
15609 for as_var in \
15610 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15611 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15612 LC_TELEPHONE LC_TIME
15613 do
15614 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15615 eval $as_var=C; export $as_var
15616 else
15617 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15618 fi
15619 done
15620
15621 # Required to use basename.
15622 if expr a : '\(a\)' >/dev/null 2>&1 &&
15623 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15624 as_expr=expr
15625 else
15626 as_expr=false
15627 fi
15628
15629 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15630 as_basename=basename
15631 else
15632 as_basename=false
15633 fi
15634
15635
15636 # Name of the executable.
15637 as_me=`$as_basename -- "$0" ||
15638 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15639 X"$0" : 'X\(//\)$' \| \
15640 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15641 echo X/"$0" |
15642 sed '/^.*\/\([^/][^/]*\)\/*$/{
15643 s//\1/
15644 q
15645 }
15646 /^X\/\(\/\/\)$/{
15647 s//\1/
15648 q
15649 }
15650 /^X\/\(\/\).*/{
15651 s//\1/
15652 q
15653 }
15654 s/.*/./; q'`
15655
15656 # CDPATH.
15657 $as_unset CDPATH
15658
15659
15660
15661 as_lineno_1=$LINENO
15662 as_lineno_2=$LINENO
15663 test "x$as_lineno_1" != "x$as_lineno_2" &&
15664 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15665
15666 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15667 # uniformly replaced by the line number. The first 'sed' inserts a
15668 # line-number line after each line using $LINENO; the second 'sed'
15669 # does the real work. The second script uses 'N' to pair each
15670 # line-number line with the line containing $LINENO, and appends
15671 # trailing '-' during substitution so that $LINENO is not a special
15672 # case at line end.
15673 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15674 # scripts with optimization help from Paolo Bonzini. Blame Lee
15675 # E. McMahon (1931-1989) for sed's syntax. :-)
15676 sed -n '
15677 p
15678 /[$]LINENO/=
15679 ' <$as_myself |
15680 sed '
15681 s/[$]LINENO.*/&-/
15682 t lineno
15683 b
15684 :lineno
15685 N
15686 :loop
15687 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15688 t loop
15689 s/-\n.*//
15690 ' >$as_me.lineno &&
15691 chmod +x "$as_me.lineno" ||
15692 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15693 { (exit 1); exit 1; }; }
15694
15695 # Don't try to exec as it changes $[0], causing all sort of problems
15696 # (the dirname of $[0] is not the place where we might find the
15697 # original and so on. Autoconf is especially sensitive to this).
15698 . "./$as_me.lineno"
15699 # Exit status is that of the last command.
15700 exit
15701 }
15702
15703
15704 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15705 as_dirname=dirname
15706 else
15707 as_dirname=false
15708 fi
15709
15710 ECHO_C= ECHO_N= ECHO_T=
15711 case `echo -n x` in
15712 -n*)
15713 case `echo 'x\c'` in
15714 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15715 *) ECHO_C='\c';;
15716 esac;;
15717 *)
15718 ECHO_N='-n';;
15719 esac
15720
15721 if expr a : '\(a\)' >/dev/null 2>&1 &&
15722 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15723 as_expr=expr
15724 else
15725 as_expr=false
15726 fi
15727
15728 rm -f conf$$ conf$$.exe conf$$.file
15729 if test -d conf$$.dir; then
15730 rm -f conf$$.dir/conf$$.file
15731 else
15732 rm -f conf$$.dir
15733 mkdir conf$$.dir
15734 fi
15735 echo >conf$$.file
15736 if ln -s conf$$.file conf$$ 2>/dev/null; then
15737 as_ln_s='ln -s'
15738 # ... but there are two gotchas:
15739 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15740 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15741 # In both cases, we have to default to `cp -p'.
15742 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15743 as_ln_s='cp -p'
15744 elif ln conf$$.file conf$$ 2>/dev/null; then
15745 as_ln_s=ln
15746 else
15747 as_ln_s='cp -p'
15748 fi
15749 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15750 rmdir conf$$.dir 2>/dev/null
15751
15752 if mkdir -p . 2>/dev/null; then
15753 as_mkdir_p=:
15754 else
15755 test -d ./-p && rmdir ./-p
15756 as_mkdir_p=false
15757 fi
15758
15759 if test -x / >/dev/null 2>&1; then
15760 as_test_x='test -x'
15761 else
15762 if ls -dL / >/dev/null 2>&1; then
15763 as_ls_L_option=L
15764 else
15765 as_ls_L_option=
15766 fi
15767 as_test_x='
15768 eval sh -c '\''
15769 if test -d "$1"; then
15770 test -d "$1/.";
15771 else
15772 case $1 in
15773 -*)set "./$1";;
15774 esac;
15775 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15776 ???[sx]*):;;*)false;;esac;fi
15777 '\'' sh
15778 '
15779 fi
15780 as_executable_p=$as_test_x
15781
15782 # Sed expression to map a string onto a valid CPP name.
15783 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15784
15785 # Sed expression to map a string onto a valid variable name.
15786 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15787
15788
15789 exec 6>&1
15790
15791 # Save the log message, to keep $[0] and so on meaningful, and to
15792 # report actual input values of CONFIG_FILES etc. instead of their
15793 # values after options handling.
15794 ac_log="
15795 This file was extended by $as_me, which was
15796 generated by GNU Autoconf 2.61. Invocation command line was
15797
15798 CONFIG_FILES = $CONFIG_FILES
15799 CONFIG_HEADERS = $CONFIG_HEADERS
15800 CONFIG_LINKS = $CONFIG_LINKS
15801 CONFIG_COMMANDS = $CONFIG_COMMANDS
15802 $ $0 $@
15803
15804 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15805 "
15806
15807 _ACEOF
15808
15809 cat >>$CONFIG_STATUS <<_ACEOF
15810 # Files that config.status was made for.
15811 config_files="$ac_config_files"
15812 config_commands="$ac_config_commands"
15813
15814 _ACEOF
15815
15816 cat >>$CONFIG_STATUS <<\_ACEOF
15817 ac_cs_usage="\
15818 \`$as_me' instantiates files from templates according to the
15819 current configuration.
15820
15821 Usage: $0 [OPTIONS] [FILE]...
15822
15823 -h, --help print this help, then exit
15824 -V, --version print version number and configuration settings, then exit
15825 -q, --quiet do not print progress messages
15826 -d, --debug don't remove temporary files
15827 --recheck update $as_me by reconfiguring in the same conditions
15828 --file=FILE[:TEMPLATE]
15829 instantiate the configuration file FILE
15830
15831 Configuration files:
15832 $config_files
15833
15834 Configuration commands:
15835 $config_commands
15836
15837 Report bugs to <bug-autoconf@gnu.org>."
15838
15839 _ACEOF
15840 cat >>$CONFIG_STATUS <<_ACEOF
15841 ac_cs_version="\\
15842 config.status
15843 configured by $0, generated by GNU Autoconf 2.61,
15844 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15845
15846 Copyright (C) 2006 Free Software Foundation, Inc.
15847 This config.status script is free software; the Free Software Foundation
15848 gives unlimited permission to copy, distribute and modify it."
15849
15850 ac_pwd='$ac_pwd'
15851 srcdir='$srcdir'
15852 INSTALL='$INSTALL'
15853 _ACEOF
15854
15855 cat >>$CONFIG_STATUS <<\_ACEOF
15856 # If no file are specified by the user, then we need to provide default
15857 # value. By we need to know if files were specified by the user.
15858 ac_need_defaults=:
15859 while test $# != 0
15860 do
15861 case $1 in
15862 --*=*)
15863 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15864 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15865 ac_shift=:
15866 ;;
15867 *)
15868 ac_option=$1
15869 ac_optarg=$2
15870 ac_shift=shift
15871 ;;
15872 esac
15873
15874 case $ac_option in
15875 # Handling of the options.
15876 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15877 ac_cs_recheck=: ;;
15878 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15879 echo "$ac_cs_version"; exit ;;
15880 --debug | --debu | --deb | --de | --d | -d )
15881 debug=: ;;
15882 --file | --fil | --fi | --f )
15883 $ac_shift
15884 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15885 ac_need_defaults=false;;
15886 --he | --h | --help | --hel | -h )
15887 echo "$ac_cs_usage"; exit ;;
15888 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15889 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15890 ac_cs_silent=: ;;
15891
15892 # This is an error.
15893 -*) { echo "$as_me: error: unrecognized option: $1
15894 Try \`$0 --help' for more information." >&2
15895 { (exit 1); exit 1; }; } ;;
15896
15897 *) ac_config_targets="$ac_config_targets $1"
15898 ac_need_defaults=false ;;
15899
15900 esac
15901 shift
15902 done
15903
15904 ac_configure_extra_args=
15905
15906 if $ac_cs_silent; then
15907 exec 6>/dev/null
15908 ac_configure_extra_args="$ac_configure_extra_args --silent"
15909 fi
15910
15911 _ACEOF
15912 cat >>$CONFIG_STATUS <<_ACEOF
15913 if \$ac_cs_recheck; then
15914 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15915 CONFIG_SHELL=$SHELL
15916 export CONFIG_SHELL
15917 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15918 fi
15919
15920 _ACEOF
15921 cat >>$CONFIG_STATUS <<\_ACEOF
15922 exec 5>>config.log
15923 {
15924 echo
15925 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15926 ## Running $as_me. ##
15927 _ASBOX
15928 echo "$ac_log"
15929 } >&5
15930
15931 _ACEOF
15932 cat >>$CONFIG_STATUS <<_ACEOF
15933 #
15934 # INIT-COMMANDS
15935 #
15936 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15937 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15938 # from automake.
15939 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15940 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15941 LINGUAS="${LINGUAS-%UNSET%}"
15942
15943
15944 _ACEOF
15945
15946 cat >>$CONFIG_STATUS <<\_ACEOF
15947
15948 # Handling of arguments.
15949 for ac_config_target in $ac_config_targets
15950 do
15951 case $ac_config_target in
15952 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15953 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15954
15955 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15956 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15957 { (exit 1); exit 1; }; };;
15958 esac
15959 done
15960
15961
15962 # If the user did not use the arguments to specify the items to instantiate,
15963 # then the envvar interface is used. Set only those that are not.
15964 # We use the long form for the default assignment because of an extremely
15965 # bizarre bug on SunOS 4.1.3.
15966 if $ac_need_defaults; then
15967 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15968 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15969 fi
15970
15971 # Have a temporary directory for convenience. Make it in the build tree
15972 # simply because there is no reason against having it here, and in addition,
15973 # creating and moving files from /tmp can sometimes cause problems.
15974 # Hook for its removal unless debugging.
15975 # Note that there is a small window in which the directory will not be cleaned:
15976 # after its creation but before its name has been assigned to `$tmp'.
15977 $debug ||
15978 {
15979 tmp=
15980 trap 'exit_status=$?
15981 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15982 ' 0
15983 trap '{ (exit 1); exit 1; }' 1 2 13 15
15984 }
15985 # Create a (secure) tmp directory for tmp files.
15986
15987 {
15988 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15989 test -n "$tmp" && test -d "$tmp"
15990 } ||
15991 {
15992 tmp=./conf$$-$RANDOM
15993 (umask 077 && mkdir "$tmp")
15994 } ||
15995 {
15996 echo "$me: cannot create a temporary directory in ." >&2
15997 { (exit 1); exit 1; }
15998 }
15999
16000 #
16001 # Set up the sed scripts for CONFIG_FILES section.
16002 #
16003
16004 # No need to generate the scripts if there are no CONFIG_FILES.
16005 # This happens for instance when ./config.status config.h
16006 if test -n "$CONFIG_FILES"; then
16007
16008 _ACEOF
16009
16010 # Create sed commands to just substitute file output variables.
16011
16012 # Remaining file output variables are in a fragment that also has non-file
16013 # output varibles.
16014
16015
16016
16017 ac_delim='%!_!# '
16018 for ac_last_try in false false false false false :; do
16019 cat >conf$$subs.sed <<_ACEOF
16020 SHELL!$SHELL$ac_delim
16021 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16022 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16023 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16024 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16025 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16026 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16027 exec_prefix!$exec_prefix$ac_delim
16028 prefix!$prefix$ac_delim
16029 program_transform_name!$program_transform_name$ac_delim
16030 bindir!$bindir$ac_delim
16031 sbindir!$sbindir$ac_delim
16032 libexecdir!$libexecdir$ac_delim
16033 datarootdir!$datarootdir$ac_delim
16034 datadir!$datadir$ac_delim
16035 sysconfdir!$sysconfdir$ac_delim
16036 sharedstatedir!$sharedstatedir$ac_delim
16037 localstatedir!$localstatedir$ac_delim
16038 includedir!$includedir$ac_delim
16039 oldincludedir!$oldincludedir$ac_delim
16040 docdir!$docdir$ac_delim
16041 infodir!$infodir$ac_delim
16042 htmldir!$htmldir$ac_delim
16043 dvidir!$dvidir$ac_delim
16044 pdfdir!$pdfdir$ac_delim
16045 psdir!$psdir$ac_delim
16046 libdir!$libdir$ac_delim
16047 localedir!$localedir$ac_delim
16048 mandir!$mandir$ac_delim
16049 DEFS!$DEFS$ac_delim
16050 ECHO_C!$ECHO_C$ac_delim
16051 ECHO_N!$ECHO_N$ac_delim
16052 ECHO_T!$ECHO_T$ac_delim
16053 LIBS!$LIBS$ac_delim
16054 build_alias!$build_alias$ac_delim
16055 host_alias!$host_alias$ac_delim
16056 target_alias!$target_alias$ac_delim
16057 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16058 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16059 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16060 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
16061 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
16062 build!$build$ac_delim
16063 build_cpu!$build_cpu$ac_delim
16064 build_vendor!$build_vendor$ac_delim
16065 build_os!$build_os$ac_delim
16066 host!$host$ac_delim
16067 host_cpu!$host_cpu$ac_delim
16068 host_vendor!$host_vendor$ac_delim
16069 host_os!$host_os$ac_delim
16070 CC!$CC$ac_delim
16071 CFLAGS!$CFLAGS$ac_delim
16072 LDFLAGS!$LDFLAGS$ac_delim
16073 CPPFLAGS!$CPPFLAGS$ac_delim
16074 ac_ct_CC!$ac_ct_CC$ac_delim
16075 EXEEXT!$EXEEXT$ac_delim
16076 OBJEXT!$OBJEXT$ac_delim
16077 CPP!$CPP$ac_delim
16078 LD!$LD$ac_delim
16079 GREP!$GREP$ac_delim
16080 EGREP!$EGREP$ac_delim
16081 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16082 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16083 HTREE_CMT!$HTREE_CMT$ac_delim
16084 ELF_CMT!$ELF_CMT$ac_delim
16085 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16086 PROFILE_CMT!$PROFILE_CMT$ac_delim
16087 CHECKER_CMT!$CHECKER_CMT$ac_delim
16088 LIB_EXT!$LIB_EXT$ac_delim
16089 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16090 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16091 SWAPFS_CMT!$SWAPFS_CMT$ac_delim
16092 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16093 IMAGER_CMT!$IMAGER_CMT$ac_delim
16094 RESIZER_CMT!$RESIZER_CMT$ac_delim
16095 FSCK_PROG!$FSCK_PROG$ac_delim
16096 _ACEOF
16097
16098 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
16099 break
16100 elif $ac_last_try; then
16101 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16102 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16103 { (exit 1); exit 1; }; }
16104 else
16105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16106 fi
16107 done
16108
16109 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16110 if test -n "$ac_eof"; then
16111 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16112 ac_eof=`expr $ac_eof + 1`
16113 fi
16114
16115 cat >>$CONFIG_STATUS <<_ACEOF
16116 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16118 /^[ ]*@MCONFIG@[ ]*$/{
16119 r $MCONFIG
16120 d
16121 }
16122 /^[ ]*@MAKEFILE_ELF@[ ]*$/{
16123 r $MAKEFILE_ELF
16124 d
16125 }
16126 /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16127 r $MAKEFILE_BSDLIB
16128 d
16129 }
16130 /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16131 r $MAKEFILE_PROFILE
16132 d
16133 }
16134 /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16135 r $MAKEFILE_CHECKER
16136 d
16137 }
16138 /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16139 r $MAKEFILE_LIBRARY
16140 d
16141 }
16142 /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16143 r $ASM_TYPES_HEADER
16144 d
16145 }
16146 _ACEOF
16147 sed '
16148 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16149 s/^/s,@/; s/!/@,|#_!!_#|/
16150 :n
16151 t n
16152 s/'"$ac_delim"'$/,g/; t
16153 s/$/\\/; p
16154 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16155 ' >>$CONFIG_STATUS <conf$$subs.sed
16156 rm -f conf$$subs.sed
16157 cat >>$CONFIG_STATUS <<_ACEOF
16158 CEOF$ac_eof
16159 _ACEOF
16160
16161
16162 ac_delim='%!_!# '
16163 for ac_last_try in false false false false false :; do
16164 cat >conf$$subs.sed <<_ACEOF
16165 FSCK_MAN!$FSCK_MAN$ac_delim
16166 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16167 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16168 PKG_CONFIG!$PKG_CONFIG$ac_delim
16169 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16170 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16171 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16172 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
16173 STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
16174 UUIDD_CMT!$UUIDD_CMT$ac_delim
16175 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16176 PACKAGE!$PACKAGE$ac_delim
16177 VERSION!$VERSION$ac_delim
16178 SET_MAKE!$SET_MAKE$ac_delim
16179 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16180 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16181 INSTALL_DATA!$INSTALL_DATA$ac_delim
16182 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16183 USE_NLS!$USE_NLS$ac_delim
16184 MSGFMT!$MSGFMT$ac_delim
16185 GMSGFMT!$GMSGFMT$ac_delim
16186 XGETTEXT!$XGETTEXT$ac_delim
16187 MSGMERGE!$MSGMERGE$ac_delim
16188 RANLIB!$RANLIB$ac_delim
16189 ALLOCA!$ALLOCA$ac_delim
16190 GLIBC21!$GLIBC21$ac_delim
16191 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16192 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16193 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16194 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16195 LIBICONV!$LIBICONV$ac_delim
16196 LTLIBICONV!$LTLIBICONV$ac_delim
16197 INTLBISON!$INTLBISON$ac_delim
16198 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16199 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16200 CATOBJEXT!$CATOBJEXT$ac_delim
16201 DATADIRNAME!$DATADIRNAME$ac_delim
16202 INSTOBJEXT!$INSTOBJEXT$ac_delim
16203 GENCAT!$GENCAT$ac_delim
16204 INTLOBJS!$INTLOBJS$ac_delim
16205 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16206 INTLLIBS!$INTLLIBS$ac_delim
16207 LIBINTL!$LIBINTL$ac_delim
16208 LTLIBINTL!$LTLIBINTL$ac_delim
16209 POSUB!$POSUB$ac_delim
16210 BINARY_TYPE!$BINARY_TYPE$ac_delim
16211 LN!$LN$ac_delim
16212 LN_S!$LN_S$ac_delim
16213 MV!$MV$ac_delim
16214 CP!$CP$ac_delim
16215 RM!$RM$ac_delim
16216 CHMOD!$CHMOD$ac_delim
16217 AWK!$AWK$ac_delim
16218 SED!$SED$ac_delim
16219 PERL!$PERL$ac_delim
16220 LDCONFIG!$LDCONFIG$ac_delim
16221 AR!$AR$ac_delim
16222 STRIP!$STRIP$ac_delim
16223 MAKEINFO!$MAKEINFO$ac_delim
16224 BUILD_CC!$BUILD_CC$ac_delim
16225 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16226 SIZEOF_INT!$SIZEOF_INT$ac_delim
16227 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16228 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16229 SOCKET_LIB!$SOCKET_LIB$ac_delim
16230 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16231 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16232 LINUX_CMT!$LINUX_CMT$ac_delim
16233 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16234 UNIX_CMT!$UNIX_CMT$ac_delim
16235 root_prefix!$root_prefix$ac_delim
16236 root_bindir!$root_bindir$ac_delim
16237 root_sbindir!$root_sbindir$ac_delim
16238 root_libdir!$root_libdir$ac_delim
16239 root_sysconfdir!$root_sysconfdir$ac_delim
16240 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16241 SS_DIR!$SS_DIR$ac_delim
16242 ET_DIR!$ET_DIR$ac_delim
16243 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16244 INTL_FLAGS!$INTL_FLAGS$ac_delim
16245 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16246 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16247 LIBOBJS!$LIBOBJS$ac_delim
16248 LTLIBOBJS!$LTLIBOBJS$ac_delim
16249 _ACEOF
16250
16251 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
16252 break
16253 elif $ac_last_try; then
16254 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16255 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16256 { (exit 1); exit 1; }; }
16257 else
16258 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16259 fi
16260 done
16261
16262 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16263 if test -n "$ac_eof"; then
16264 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16265 ac_eof=`expr $ac_eof + 1`
16266 fi
16267
16268 cat >>$CONFIG_STATUS <<_ACEOF
16269 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16270 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16271 _ACEOF
16272 sed '
16273 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16274 s/^/s,@/; s/!/@,|#_!!_#|/
16275 :n
16276 t n
16277 s/'"$ac_delim"'$/,g/; t
16278 s/$/\\/; p
16279 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16280 ' >>$CONFIG_STATUS <conf$$subs.sed
16281 rm -f conf$$subs.sed
16282 cat >>$CONFIG_STATUS <<_ACEOF
16283 :end
16284 s/|#_!!_#|//g
16285 CEOF$ac_eof
16286 _ACEOF
16287
16288
16289 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16290 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16291 # trailing colons and then remove the whole line if VPATH becomes empty
16292 # (actually we leave an empty line to preserve line numbers).
16293 if test "x$srcdir" = x.; then
16294 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16295 s/:*\$(srcdir):*/:/
16296 s/:*\${srcdir}:*/:/
16297 s/:*@srcdir@:*/:/
16298 s/^\([^=]*=[ ]*\):*/\1/
16299 s/:*$//
16300 s/^[^=]*=[ ]*$//
16301 }'
16302 fi
16303
16304 cat >>$CONFIG_STATUS <<\_ACEOF
16305 fi # test -n "$CONFIG_FILES"
16306
16307
16308 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16309 do
16310 case $ac_tag in
16311 :[FHLC]) ac_mode=$ac_tag; continue;;
16312 esac
16313 case $ac_mode$ac_tag in
16314 :[FHL]*:*);;
16315 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16316 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16317 { (exit 1); exit 1; }; };;
16318 :[FH]-) ac_tag=-:-;;
16319 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16320 esac
16321 ac_save_IFS=$IFS
16322 IFS=:
16323 set x $ac_tag
16324 IFS=$ac_save_IFS
16325 shift
16326 ac_file=$1
16327 shift
16328
16329 case $ac_mode in
16330 :L) ac_source=$1;;
16331 :[FH])
16332 ac_file_inputs=
16333 for ac_f
16334 do
16335 case $ac_f in
16336 -) ac_f="$tmp/stdin";;
16337 *) # Look for the file first in the build tree, then in the source tree
16338 # (if the path is not absolute). The absolute path cannot be DOS-style,
16339 # because $ac_f cannot contain `:'.
16340 test -f "$ac_f" ||
16341 case $ac_f in
16342 [\\/$]*) false;;
16343 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16344 esac ||
16345 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16346 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16347 { (exit 1); exit 1; }; };;
16348 esac
16349 ac_file_inputs="$ac_file_inputs $ac_f"
16350 done
16351
16352 # Let's still pretend it is `configure' which instantiates (i.e., don't
16353 # use $as_me), people would be surprised to read:
16354 # /* config.h. Generated by config.status. */
16355 configure_input="Generated from "`IFS=:
16356 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16357 if test x"$ac_file" != x-; then
16358 configure_input="$ac_file. $configure_input"
16359 { echo "$as_me:$LINENO: creating $ac_file" >&5
16360 echo "$as_me: creating $ac_file" >&6;}
16361 fi
16362
16363 case $ac_tag in
16364 *:-:* | *:-) cat >"$tmp/stdin";;
16365 esac
16366 ;;
16367 esac
16368
16369 ac_dir=`$as_dirname -- "$ac_file" ||
16370 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16371 X"$ac_file" : 'X\(//\)[^/]' \| \
16372 X"$ac_file" : 'X\(//\)$' \| \
16373 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16374 echo X"$ac_file" |
16375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16376 s//\1/
16377 q
16378 }
16379 /^X\(\/\/\)[^/].*/{
16380 s//\1/
16381 q
16382 }
16383 /^X\(\/\/\)$/{
16384 s//\1/
16385 q
16386 }
16387 /^X\(\/\).*/{
16388 s//\1/
16389 q
16390 }
16391 s/.*/./; q'`
16392 { as_dir="$ac_dir"
16393 case $as_dir in #(
16394 -*) as_dir=./$as_dir;;
16395 esac
16396 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16397 as_dirs=
16398 while :; do
16399 case $as_dir in #(
16400 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16401 *) as_qdir=$as_dir;;
16402 esac
16403 as_dirs="'$as_qdir' $as_dirs"
16404 as_dir=`$as_dirname -- "$as_dir" ||
16405 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16406 X"$as_dir" : 'X\(//\)[^/]' \| \
16407 X"$as_dir" : 'X\(//\)$' \| \
16408 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16409 echo X"$as_dir" |
16410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16411 s//\1/
16412 q
16413 }
16414 /^X\(\/\/\)[^/].*/{
16415 s//\1/
16416 q
16417 }
16418 /^X\(\/\/\)$/{
16419 s//\1/
16420 q
16421 }
16422 /^X\(\/\).*/{
16423 s//\1/
16424 q
16425 }
16426 s/.*/./; q'`
16427 test -d "$as_dir" && break
16428 done
16429 test -z "$as_dirs" || eval "mkdir $as_dirs"
16430 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16431 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16432 { (exit 1); exit 1; }; }; }
16433 ac_builddir=.
16434
16435 case "$ac_dir" in
16436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16437 *)
16438 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16439 # A ".." for each directory in $ac_dir_suffix.
16440 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16441 case $ac_top_builddir_sub in
16442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16444 esac ;;
16445 esac
16446 ac_abs_top_builddir=$ac_pwd
16447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16448 # for backward compatibility:
16449 ac_top_builddir=$ac_top_build_prefix
16450
16451 case $srcdir in
16452 .) # We are building in place.
16453 ac_srcdir=.
16454 ac_top_srcdir=$ac_top_builddir_sub
16455 ac_abs_top_srcdir=$ac_pwd ;;
16456 [\\/]* | ?:[\\/]* ) # Absolute name.
16457 ac_srcdir=$srcdir$ac_dir_suffix;
16458 ac_top_srcdir=$srcdir
16459 ac_abs_top_srcdir=$srcdir ;;
16460 *) # Relative name.
16461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16462 ac_top_srcdir=$ac_top_build_prefix$srcdir
16463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16464 esac
16465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16466
16467
16468 case $ac_mode in
16469 :F)
16470 #
16471 # CONFIG_FILE
16472 #
16473
16474 case $INSTALL in
16475 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16476 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16477 esac
16478 _ACEOF
16479
16480 cat >>$CONFIG_STATUS <<\_ACEOF
16481 # If the template does not know about datarootdir, expand it.
16482 # FIXME: This hack should be removed a few years after 2.60.
16483 ac_datarootdir_hack=; ac_datarootdir_seen=
16484
16485 case `sed -n '/datarootdir/ {
16486 p
16487 q
16488 }
16489 /@datadir@/p
16490 /@docdir@/p
16491 /@infodir@/p
16492 /@localedir@/p
16493 /@mandir@/p
16494 ' $ac_file_inputs` in
16495 *datarootdir*) ac_datarootdir_seen=yes;;
16496 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16497 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16498 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16499 _ACEOF
16500 cat >>$CONFIG_STATUS <<_ACEOF
16501 ac_datarootdir_hack='
16502 s&@datadir@&$datadir&g
16503 s&@docdir@&$docdir&g
16504 s&@infodir@&$infodir&g
16505 s&@localedir@&$localedir&g
16506 s&@mandir@&$mandir&g
16507 s&\\\${datarootdir}&$datarootdir&g' ;;
16508 esac
16509 _ACEOF
16510
16511 # Neutralize VPATH when `$srcdir' = `.'.
16512 # Shell code in configure.ac might set extrasub.
16513 # FIXME: do we really want to maintain this feature?
16514 cat >>$CONFIG_STATUS <<_ACEOF
16515 sed "$ac_vpsub
16516 $extrasub
16517 _ACEOF
16518 cat >>$CONFIG_STATUS <<\_ACEOF
16519 :t
16520 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16521 s&@configure_input@&$configure_input&;t t
16522 s&@top_builddir@&$ac_top_builddir_sub&;t t
16523 s&@srcdir@&$ac_srcdir&;t t
16524 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16525 s&@top_srcdir@&$ac_top_srcdir&;t t
16526 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16527 s&@builddir@&$ac_builddir&;t t
16528 s&@abs_builddir@&$ac_abs_builddir&;t t
16529 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16530 s&@INSTALL@&$ac_INSTALL&;t t
16531 $ac_datarootdir_hack
16532 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16533
16534 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16535 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16536 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16537 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16538 which seems to be undefined. Please make sure it is defined." >&5
16539 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16540 which seems to be undefined. Please make sure it is defined." >&2;}
16541
16542 rm -f "$tmp/stdin"
16543 case $ac_file in
16544 -) cat "$tmp/out"; rm -f "$tmp/out";;
16545 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16546 esac
16547 ;;
16548
16549
16550 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16551 echo "$as_me: executing $ac_file commands" >&6;}
16552 ;;
16553 esac
16554
16555
16556 case $ac_file$ac_mode in
16557 "default-1":C)
16558 for ac_file in $CONFIG_FILES; do
16559 # Support "outfile[:infile[:infile...]]"
16560 case "$ac_file" in
16561 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16562 esac
16563 # PO directories have a Makefile.in generated from Makefile.in.in.
16564 case "$ac_file" in */Makefile.in)
16565 # Adjust a relative srcdir.
16566 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16567 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16568 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16569 # In autoconf-2.13 it is called $ac_given_srcdir.
16570 # In autoconf-2.50 it is called $srcdir.
16571 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16572 case "$ac_given_srcdir" in
16573 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16574 /*) top_srcdir="$ac_given_srcdir" ;;
16575 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16576 esac
16577 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16578 rm -f "$ac_dir/POTFILES"
16579 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16580 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16581 POMAKEFILEDEPS="POTFILES.in"
16582 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16583 # on $ac_dir but don't depend on user-specified configuration
16584 # parameters.
16585 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16586 # The LINGUAS file contains the set of available languages.
16587 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16588 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16589 fi
16590 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16591 # Hide the ALL_LINGUAS assigment from automake.
16592 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16593 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16594 else
16595 # The set of available languages was given in configure.in.
16596 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16597 fi
16598 # Compute POFILES
16599 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16600 # Compute UPDATEPOFILES
16601 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16602 # Compute DUMMYPOFILES
16603 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16604 # Compute GMOFILES
16605 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16606 case "$ac_given_srcdir" in
16607 .) srcdirpre= ;;
16608 *) srcdirpre='$(srcdir)/' ;;
16609 esac
16610 POFILES=
16611 UPDATEPOFILES=
16612 DUMMYPOFILES=
16613 GMOFILES=
16614 for lang in $ALL_LINGUAS; do
16615 POFILES="$POFILES $srcdirpre$lang.po"
16616 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16617 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16618 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16619 done
16620 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16621 # environment variable.
16622 INST_LINGUAS=
16623 if test -n "$ALL_LINGUAS"; then
16624 for presentlang in $ALL_LINGUAS; do
16625 useit=no
16626 if test "%UNSET%" != "$LINGUAS"; then
16627 desiredlanguages="$LINGUAS"
16628 else
16629 desiredlanguages="$ALL_LINGUAS"
16630 fi
16631 for desiredlang in $desiredlanguages; do
16632 # Use the presentlang catalog if desiredlang is
16633 # a. equal to presentlang, or
16634 # b. a variant of presentlang (because in this case,
16635 # presentlang can be used as a fallback for messages
16636 # which are not translated in the desiredlang catalog).
16637 case "$desiredlang" in
16638 "$presentlang"*) useit=yes;;
16639 esac
16640 done
16641 if test $useit = yes; then
16642 INST_LINGUAS="$INST_LINGUAS $presentlang"
16643 fi
16644 done
16645 fi
16646 CATALOGS=
16647 if test -n "$INST_LINGUAS"; then
16648 for lang in $INST_LINGUAS; do
16649 CATALOGS="$CATALOGS $lang.gmo"
16650 done
16651 fi
16652 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16653 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16654 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16655 if test -f "$f"; then
16656 case "$f" in
16657 *.orig | *.bak | *~) ;;
16658 *) cat "$f" >> "$ac_dir/Makefile" ;;
16659 esac
16660 fi
16661 done
16662 fi
16663 ;;
16664 esac
16665 done ;;
16666
16667 esac
16668 done # for ac_tag
16669
16670
16671 { (exit 0); exit 0; }
16672 _ACEOF
16673 chmod +x $CONFIG_STATUS
16674 ac_clean_files=$ac_clean_files_save
16675
16676
16677 # configure is writing to config.log, and then calls config.status.
16678 # config.status does its own redirection, appending to config.log.
16679 # Unfortunately, on DOS this fails, as config.log is still kept open
16680 # by configure, so config.status won't be able to write to it; its
16681 # output is simply discarded. So we exec the FD to /dev/null,
16682 # effectively closing config.log, so it can be properly (re)opened and
16683 # appended to by config.status. When coming back to configure, we
16684 # need to make the FD available again.
16685 if test "$no_create" != yes; then
16686 ac_cs_success=:
16687 ac_config_status_args=
16688 test "$silent" = yes &&
16689 ac_config_status_args="$ac_config_status_args --quiet"
16690 exec 5>/dev/null
16691 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16692 exec 5>>config.log
16693 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16694 # would make configure fail if this is the last instruction.
16695 $ac_cs_success || { (exit 1); exit 1; }
16696 fi
16697
16698 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16699