]>
Commit | Line | Data |
---|---|---|
50e1e10f | 1 | #! /bin/sh |
50e1e10f | 2 | # Guess values for system-dependent variables and create Makefiles. |
b0cacab0 | 3 | # Generated by GNU Autoconf 2.59. |
50e1e10f | 4 | # |
b0cacab0 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
50e1e10f TT |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
b0cacab0 TT |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
23 | ||
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
78 | # PATH needs CR, and LINENO needs CR and PATH. | |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
116 | ||
117 | ;; | |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
224 | ||
225 | as_executable_p="test -f" | |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | ||
230 | # Sed expression to map a string onto a valid variable name. | |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
232 | ||
233 | ||
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
243 | ||
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
50e1e10f | 248 | |
b0cacab0 TT |
249 | exec 6>&1 |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
50e1e10f | 254 | ac_default_prefix=/usr/local |
b0cacab0 TT |
255 | ac_config_libobj_dir=. |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
262 | # Maximum number of lines to put in a shell here document. | |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
267 | # Identity of this package. | |
268 | PACKAGE_NAME= | |
269 | PACKAGE_TARNAME= | |
270 | PACKAGE_VERSION= | |
271 | PACKAGE_STRING= | |
272 | PACKAGE_BUGREPORT= | |
273 | ||
274 | ac_unique_file="version.h" | |
275 | # Factoring default headers for most tests. | |
276 | ac_includes_default="\ | |
277 | #include <stdio.h> | |
278 | #if HAVE_SYS_TYPES_H | |
279 | # include <sys/types.h> | |
280 | #endif | |
281 | #if HAVE_SYS_STAT_H | |
282 | # include <sys/stat.h> | |
283 | #endif | |
284 | #if STDC_HEADERS | |
285 | # include <stdlib.h> | |
286 | # include <stddef.h> | |
287 | #else | |
288 | # if HAVE_STDLIB_H | |
289 | # include <stdlib.h> | |
290 | # endif | |
291 | #endif | |
292 | #if HAVE_STRING_H | |
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
294 | # include <memory.h> | |
295 | # endif | |
296 | # include <string.h> | |
297 | #endif | |
298 | #if HAVE_STRINGS_H | |
299 | # include <strings.h> | |
300 | #endif | |
301 | #if HAVE_INTTYPES_H | |
302 | # include <inttypes.h> | |
303 | #else | |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
307 | #endif | |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
311 | ||
312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS E2FSPROGS_YEAR E2FSPROGS_MONTH E2FSPROGS_DAY E2FSPROGS_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LD CPP EGREP LINUX_INCLUDE HTREE_CMT HTREE_CLR_CMT ELF_CMT BSDLIB_CMT PROFILE_CMT CHECKER_CMT LIB_EXT STATIC_LIB_EXT PROFILED_LIB_EXT SWAPFS_CMT DEBUGFS_CMT IMAGER_CMT RESIZER_CMT E2FSCK_TYPE FSCK_PROG FSCK_MAN E2INITRD_PROG E2INITRD_MAN GETTEXT_PACKAGE PACKAGE VERSION SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE RANLIB ac_ct_RANLIB ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB BINARY_TYPE LN LN_S MV CP RM CHMOD AWK SED PERL LDCONFIG AR ac_ct_AR STRIP ac_ct_STRIP BUILD_CC SIZEOF_SHORT SIZEOF_INT SIZEOF_LONG SIZEOF_LONG_LONG SOCKET_LIB DLOPEN_LIB LINUX_CMT CYGWIN_CMT UNIX_CMT root_prefix root_bindir root_sbindir root_libdir root_sysconfdir LDFLAG_STATIC SS_DIR ET_DIR DO_TEST_SUITE INTL_FLAGS LIBOBJS LTLIBOBJS' | |
313 | ac_subst_files='MCONFIG MAKEFILE_ELF MAKEFILE_BSDLIB MAKEFILE_PROFILE MAKEFILE_CHECKER MAKEFILE_LIBRARY' | |
50e1e10f TT |
314 | |
315 | # Initialize some variables set by options. | |
b0cacab0 TT |
316 | ac_init_help= |
317 | ac_init_version=false | |
50e1e10f TT |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
b0cacab0 | 320 | cache_file=/dev/null |
50e1e10f | 321 | exec_prefix=NONE |
50e1e10f | 322 | no_create= |
50e1e10f TT |
323 | no_recursion= |
324 | prefix=NONE | |
325 | program_prefix=NONE | |
326 | program_suffix=NONE | |
327 | program_transform_name=s,x,x, | |
328 | silent= | |
329 | site= | |
330 | srcdir= | |
50e1e10f TT |
331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
b0cacab0 TT |
334 | |
335 | # Installation directory options. | |
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
337 | # and all the variables that are supposed to be based on exec_prefix | |
338 | # by default will actually change. | |
339 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
21c84b71 TT |
340 | bindir='${exec_prefix}/bin' |
341 | sbindir='${exec_prefix}/sbin' | |
342 | libexecdir='${exec_prefix}/libexec' | |
343 | datadir='${prefix}/share' | |
344 | sysconfdir='${prefix}/etc' | |
345 | sharedstatedir='${prefix}/com' | |
346 | localstatedir='${prefix}/var' | |
347 | libdir='${exec_prefix}/lib' | |
348 | includedir='${prefix}/include' | |
349 | oldincludedir='/usr/include' | |
350 | infodir='${prefix}/info' | |
351 | mandir='${prefix}/man' | |
50e1e10f | 352 | |
50e1e10f TT |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
50e1e10f TT |
356 | # If the previous option needs an argument, assign it. |
357 | if test -n "$ac_prev"; then | |
358 | eval "$ac_prev=\$ac_option" | |
359 | ac_prev= | |
360 | continue | |
361 | fi | |
362 | ||
b0cacab0 | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
50e1e10f TT |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
b0cacab0 | 367 | case $ac_option in |
50e1e10f | 368 | |
21c84b71 TT |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b0cacab0 | 372 | bindir=$ac_optarg ;; |
21c84b71 TT |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
b0cacab0 | 375 | ac_prev=build_alias ;; |
21c84b71 | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b0cacab0 | 377 | build_alias=$ac_optarg ;; |
50e1e10f TT |
378 | |
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
381 | ac_prev=cache_file ;; | |
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b0cacab0 TT |
384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
50e1e10f | 388 | |
21c84b71 TT |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
390 | ac_prev=datadir ;; | |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
392 | | --da=*) | |
b0cacab0 | 393 | datadir=$ac_optarg ;; |
21c84b71 | 394 | |
50e1e10f | 395 | -disable-* | --disable-*) |
b0cacab0 | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
50e1e10f | 397 | # Reject names that are not valid shell variable names. |
b0cacab0 TT |
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
400 | { (exit 1); exit 1; }; } | |
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
402 | eval "enable_$ac_feature=no" ;; | |
50e1e10f TT |
403 | |
404 | -enable-* | --enable-*) | |
b0cacab0 | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
50e1e10f | 406 | # Reject names that are not valid shell variable names. |
b0cacab0 TT |
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
409 | { (exit 1); exit 1; }; } | |
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
411 | case $ac_option in | |
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
50e1e10f TT |
413 | *) ac_optarg=yes ;; |
414 | esac | |
b0cacab0 | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
50e1e10f TT |
416 | |
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
419 | | --exec | --exe | --ex) | |
420 | ac_prev=exec_prefix ;; | |
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
423 | | --exec=* | --exe=* | --ex=*) | |
b0cacab0 | 424 | exec_prefix=$ac_optarg ;; |
50e1e10f TT |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
b0cacab0 TT |
430 | -help | --help | --hel | --he | -h) |
431 | ac_init_help=long ;; | |
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
433 | ac_init_help=recursive ;; | |
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
435 | ac_init_help=short ;; | |
50e1e10f TT |
436 | |
437 | -host | --host | --hos | --ho) | |
b0cacab0 | 438 | ac_prev=host_alias ;; |
50e1e10f | 439 | -host=* | --host=* | --hos=* | --ho=*) |
b0cacab0 | 440 | host_alias=$ac_optarg ;; |
50e1e10f | 441 | |
21c84b71 TT |
442 | -includedir | --includedir | --includedi | --included | --include \ |
443 | | --includ | --inclu | --incl | --inc) | |
444 | ac_prev=includedir ;; | |
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b0cacab0 | 447 | includedir=$ac_optarg ;; |
21c84b71 TT |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b0cacab0 | 452 | infodir=$ac_optarg ;; |
21c84b71 TT |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b0cacab0 | 457 | libdir=$ac_optarg ;; |
21c84b71 TT |
458 | |
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
460 | | --libexe | --libex | --libe) | |
461 | ac_prev=libexecdir ;; | |
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
463 | | --libexe=* | --libex=* | --libe=*) | |
b0cacab0 | 464 | libexecdir=$ac_optarg ;; |
21c84b71 TT |
465 | |
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
467 | | --localstate | --localstat | --localsta | --localst \ | |
468 | | --locals | --local | --loca | --loc | --lo) | |
469 | ac_prev=localstatedir ;; | |
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
b0cacab0 | 473 | localstatedir=$ac_optarg ;; |
21c84b71 TT |
474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b0cacab0 | 478 | mandir=$ac_optarg ;; |
21c84b71 | 479 | |
50e1e10f TT |
480 | -nfp | --nfp | --nf) |
481 | # Obsolete; use --without-fp. | |
482 | with_fp=no ;; | |
483 | ||
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b0cacab0 | 485 | | --no-cr | --no-c | -n) |
50e1e10f TT |
486 | no_create=yes ;; |
487 | ||
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
490 | no_recursion=yes ;; | |
491 | ||
21c84b71 TT |
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
494 | | --oldin | --oldi | --old | --ol | --o) | |
495 | ac_prev=oldincludedir ;; | |
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b0cacab0 | 499 | oldincludedir=$ac_optarg ;; |
21c84b71 | 500 | |
50e1e10f TT |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b0cacab0 | 504 | prefix=$ac_optarg ;; |
50e1e10f TT |
505 | |
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
507 | | --program-pre | --program-pr | --program-p) | |
508 | ac_prev=program_prefix ;; | |
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b0cacab0 | 511 | program_prefix=$ac_optarg ;; |
50e1e10f TT |
512 | |
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
514 | | --program-suf | --program-su | --program-s) | |
515 | ac_prev=program_suffix ;; | |
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b0cacab0 | 518 | program_suffix=$ac_optarg ;; |
50e1e10f TT |
519 | |
520 | -program-transform-name | --program-transform-name \ | |
521 | | --program-transform-nam | --program-transform-na \ | |
522 | | --program-transform-n | --program-transform- \ | |
523 | | --program-transform | --program-transfor \ | |
524 | | --program-transfo | --program-transf \ | |
525 | | --program-trans | --program-tran \ | |
526 | | --progr-tra | --program-tr | --program-t) | |
527 | ac_prev=program_transform_name ;; | |
528 | -program-transform-name=* | --program-transform-name=* \ | |
529 | | --program-transform-nam=* | --program-transform-na=* \ | |
530 | | --program-transform-n=* | --program-transform-=* \ | |
531 | | --program-transform=* | --program-transfor=* \ | |
532 | | --program-transfo=* | --program-transf=* \ | |
533 | | --program-trans=* | --program-tran=* \ | |
534 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b0cacab0 | 535 | program_transform_name=$ac_optarg ;; |
50e1e10f TT |
536 | |
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
538 | | -silent | --silent | --silen | --sile | --sil) | |
539 | silent=yes ;; | |
540 | ||
21c84b71 TT |
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
542 | ac_prev=sbindir ;; | |
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
544 | | --sbi=* | --sb=*) | |
b0cacab0 | 545 | sbindir=$ac_optarg ;; |
21c84b71 TT |
546 | |
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
549 | | --sharedst | --shareds | --shared | --share | --shar \ | |
550 | | --sha | --sh) | |
551 | ac_prev=sharedstatedir ;; | |
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
555 | | --sha=* | --sh=*) | |
b0cacab0 | 556 | sharedstatedir=$ac_optarg ;; |
21c84b71 | 557 | |
50e1e10f TT |
558 | -site | --site | --sit) |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
b0cacab0 | 561 | site=$ac_optarg ;; |
50e1e10f TT |
562 | |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b0cacab0 | 566 | srcdir=$ac_optarg ;; |
50e1e10f | 567 | |
21c84b71 TT |
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
569 | | --syscon | --sysco | --sysc | --sys | --sy) | |
570 | ac_prev=sysconfdir ;; | |
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b0cacab0 | 573 | sysconfdir=$ac_optarg ;; |
21c84b71 | 574 | |
50e1e10f | 575 | -target | --target | --targe | --targ | --tar | --ta | --t) |
b0cacab0 | 576 | ac_prev=target_alias ;; |
50e1e10f | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b0cacab0 | 578 | target_alias=$ac_optarg ;; |
50e1e10f TT |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
b0cacab0 TT |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
50e1e10f TT |
585 | |
586 | -with-* | --with-*) | |
b0cacab0 | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
50e1e10f | 588 | # Reject names that are not valid shell variable names. |
b0cacab0 TT |
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
591 | { (exit 1); exit 1; }; } | |
50e1e10f | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
b0cacab0 TT |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
50e1e10f TT |
595 | *) ac_optarg=yes ;; |
596 | esac | |
b0cacab0 | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
50e1e10f TT |
598 | |
599 | -without-* | --without-*) | |
b0cacab0 | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
50e1e10f | 601 | # Reject names that are not valid shell variable names. |
b0cacab0 TT |
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
604 | { (exit 1); exit 1; }; } | |
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
606 | eval "with_$ac_package=no" ;; | |
50e1e10f TT |
607 | |
608 | --x) | |
609 | # Obsolete; use --with-x. | |
610 | with_x=yes ;; | |
611 | ||
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
613 | | --x-incl | --x-inc | --x-in | --x-i) | |
614 | ac_prev=x_includes ;; | |
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b0cacab0 | 617 | x_includes=$ac_optarg ;; |
50e1e10f TT |
618 | |
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
621 | ac_prev=x_libraries ;; | |
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b0cacab0 | 624 | x_libraries=$ac_optarg ;; |
50e1e10f | 625 | |
b0cacab0 TT |
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
50e1e10f TT |
629 | ;; |
630 | ||
b0cacab0 TT |
631 | *=*) |
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
633 | # Reject names that are not valid shell variable names. | |
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
636 | { (exit 1); exit 1; }; } | |
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
638 | eval "$ac_envvar='$ac_optarg'" | |
639 | export $ac_envvar ;; | |
640 | ||
21c84b71 | 641 | *) |
b0cacab0 TT |
642 | # FIXME: should be removed in autoconf 3.0. |
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
50e1e10f TT |
647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
b0cacab0 TT |
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
655 | { (exit 1); exit 1; }; } | |
50e1e10f | 656 | fi |
50e1e10f | 657 | |
b0cacab0 TT |
658 | # Be sure to have absolute paths. |
659 | for ac_var in exec_prefix prefix | |
660 | do | |
661 | eval ac_val=$`echo $ac_var` | |
662 | case $ac_val in | |
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
665 | { (exit 1); exit 1; }; };; | |
666 | esac | |
667 | done | |
93636bde | 668 | |
b0cacab0 TT |
669 | # Be sure to have absolute paths. |
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
671 | localstatedir libdir includedir oldincludedir infodir mandir | |
50e1e10f | 672 | do |
b0cacab0 TT |
673 | eval ac_val=$`echo $ac_var` |
674 | case $ac_val in | |
675 | [\\/$]* | ?:[\\/]* ) ;; | |
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
677 | { (exit 1); exit 1; }; };; | |
50e1e10f TT |
678 | esac |
679 | done | |
680 | ||
b0cacab0 TT |
681 | # There might be people who depend on the old broken behavior: `$host' |
682 | # used to hold the argument of --host etc. | |
683 | # FIXME: To remove some day. | |
684 | build=$build_alias | |
685 | host=$host_alias | |
686 | target=$target_alias | |
687 | ||
688 | # FIXME: To remove some day. | |
689 | if test "x$host_alias" != x; then | |
690 | if test "x$build_alias" = x; then | |
691 | cross_compiling=maybe | |
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
693 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
694 | elif test "x$build_alias" != "x$host_alias"; then | |
695 | cross_compiling=yes | |
696 | fi | |
697 | fi | |
50e1e10f | 698 | |
b0cacab0 TT |
699 | ac_tool_prefix= |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
701 | ||
702 | test "$silent" = yes && exec 6>/dev/null | |
50e1e10f | 703 | |
50e1e10f TT |
704 | |
705 | # Find the source files, if location was not specified. | |
706 | if test -z "$srcdir"; then | |
707 | ac_srcdir_defaulted=yes | |
708 | # Try the directory containing this script, then its parent. | |
b0cacab0 TT |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
711 | X"$0" : 'X\(//\)[^/]' \| \ | |
712 | X"$0" : 'X\(//\)$' \| \ | |
713 | X"$0" : 'X\(/\)' \| \ | |
714 | . : '\(.\)' 2>/dev/null || | |
715 | echo X"$0" | | |
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
718 | /^X\(\/\/\)$/{ s//\1/; q; } | |
719 | /^X\(\/\).*/{ s//\1/; q; } | |
720 | s/.*/./; q'` | |
50e1e10f TT |
721 | srcdir=$ac_confdir |
722 | if test ! -r $srcdir/$ac_unique_file; then | |
723 | srcdir=.. | |
724 | fi | |
725 | else | |
726 | ac_srcdir_defaulted=no | |
727 | fi | |
728 | if test ! -r $srcdir/$ac_unique_file; then | |
729 | if test "$ac_srcdir_defaulted" = yes; then | |
b0cacab0 TT |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
50e1e10f | 732 | else |
b0cacab0 TT |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 | { (exit 1); exit 1; }; } | |
50e1e10f TT |
735 | fi |
736 | fi | |
b0cacab0 TT |
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
739 | { (exit 1); exit 1; }; } | |
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
741 | ac_env_build_alias_set=${build_alias+set} | |
742 | ac_env_build_alias_value=$build_alias | |
743 | ac_cv_env_build_alias_set=${build_alias+set} | |
744 | ac_cv_env_build_alias_value=$build_alias | |
745 | ac_env_host_alias_set=${host_alias+set} | |
746 | ac_env_host_alias_value=$host_alias | |
747 | ac_cv_env_host_alias_set=${host_alias+set} | |
748 | ac_cv_env_host_alias_value=$host_alias | |
749 | ac_env_target_alias_set=${target_alias+set} | |
750 | ac_env_target_alias_value=$target_alias | |
751 | ac_cv_env_target_alias_set=${target_alias+set} | |
752 | ac_cv_env_target_alias_value=$target_alias | |
753 | ac_env_CC_set=${CC+set} | |
754 | ac_env_CC_value=$CC | |
755 | ac_cv_env_CC_set=${CC+set} | |
756 | ac_cv_env_CC_value=$CC | |
757 | ac_env_CFLAGS_set=${CFLAGS+set} | |
758 | ac_env_CFLAGS_value=$CFLAGS | |
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
760 | ac_cv_env_CFLAGS_value=$CFLAGS | |
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
762 | ac_env_LDFLAGS_value=$LDFLAGS | |
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
766 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
769 | ac_env_CPP_set=${CPP+set} | |
770 | ac_env_CPP_value=$CPP | |
771 | ac_cv_env_CPP_set=${CPP+set} | |
772 | ac_cv_env_CPP_value=$CPP | |
773 | ||
774 | # | |
775 | # Report the --help message. | |
776 | # | |
777 | if test "$ac_init_help" = "long"; then | |
778 | # Omit some internal or obsolete options to make the list less imposing. | |
779 | # This message is too long to be a string in the A/UX 3.1 sh. | |
780 | cat <<_ACEOF | |
781 | \`configure' configures this package to adapt to many kinds of systems. | |
782 | ||
783 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
784 | ||
785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
786 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
787 | ||
788 | Defaults for the options are specified in brackets. | |
789 | ||
790 | Configuration: | |
791 | -h, --help display this help and exit | |
792 | --help=short display options specific to this package | |
793 | --help=recursive display the short help of all the included packages | |
794 | -V, --version display version information and exit | |
795 | -q, --quiet, --silent do not print \`checking...' messages | |
796 | --cache-file=FILE cache test results in FILE [disabled] | |
797 | -C, --config-cache alias for \`--cache-file=config.cache' | |
798 | -n, --no-create do not create output files | |
799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
800 | ||
801 | _ACEOF | |
802 | ||
803 | cat <<_ACEOF | |
804 | Installation directories: | |
805 | --prefix=PREFIX install architecture-independent files in PREFIX | |
806 | [$ac_default_prefix] | |
807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
808 | [PREFIX] | |
809 | ||
810 | By default, \`make install' will install all the files in | |
811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
813 | for instance \`--prefix=\$HOME'. | |
814 | ||
815 | For better control, use the options below. | |
816 | ||
817 | Fine tuning of the installation directories: | |
818 | --bindir=DIR user executables [EPREFIX/bin] | |
819 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
820 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
825 | --libdir=DIR object code libraries [EPREFIX/lib] | |
826 | --includedir=DIR C header files [PREFIX/include] | |
827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
828 | --infodir=DIR info documentation [PREFIX/info] | |
829 | --mandir=DIR man documentation [PREFIX/man] | |
830 | _ACEOF | |
831 | ||
832 | cat <<\_ACEOF | |
833 | ||
834 | System types: | |
835 | --build=BUILD configure for building on BUILD [guessed] | |
836 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
837 | _ACEOF | |
838 | fi | |
839 | ||
840 | if test -n "$ac_init_help"; then | |
841 | ||
842 | cat <<\_ACEOF | |
843 | ||
844 | Optional Features: | |
845 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
846 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
847 | --enable-compression enable EXPERIMENTAL compression support | |
848 | --enable-htree enable EXPERIMENTAL htree directory support | |
849 | --enable-htree-clear clear htree because we don't trust e2fsck | |
850 | --enable-elf-shlibs select ELF shared libraries | |
851 | --enable-bsd-shlibs select BSD shared libraries | |
852 | --enable-profile build profiling libraries | |
853 | --enable-checker build checker libraries | |
854 | --enable-jbd-debug enable journal debugging | |
855 | --enable-blkid-debug enable blkid debugging | |
856 | --enable-testio-debug enable the use of the test I/O manager for debugging | |
857 | --disable-swapfs disable support of legacy byte-swapped filesystems | |
858 | --disable-debugfs disable support of debugfs program | |
859 | --disable-imager disable support of e2image program | |
860 | --disable-resizer disable support of e2resize program | |
861 | --enable-dynamic-e2fsck build e2fsck dynamically | |
862 | --enable-fsck build fsck wrapper program | |
863 | --enable-e2initrd-helper build e2initrd-helper program | |
864 | --enable-old-bitops Use old (non-standard but native) bitmask operations | |
865 | --disable-nls do not use Native Language Support | |
866 | --disable-rpath do not hardcode runtime library paths | |
867 | ||
868 | Optional Packages: | |
869 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
870 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
871 | --with-diet-libc Use diet libc | |
872 | --with-cc=COMPILER select compiler to use | |
873 | --with-linker=LINKER select linker to use | |
874 | --with-ccopts=CCOPTS select compiler command line options | |
875 | --with-ldopts=LDOPTS select linker command line options | |
876 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root | |
877 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
878 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
879 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
880 | --with-included-gettext use the GNU gettext library included here | |
881 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | |
882 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
883 | ||
884 | Some influential environment variables: | |
885 | CC C compiler command | |
886 | CFLAGS C compiler flags | |
887 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
888 | nonstandard directory <lib dir> | |
889 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
890 | headers in a nonstandard directory <include dir> | |
891 | CPP C preprocessor | |
892 | ||
893 | Use these variables to override the choices made by `configure' or to help | |
894 | it to find libraries and programs with nonstandard names/locations. | |
895 | ||
896 | _ACEOF | |
897 | fi | |
898 | ||
899 | if test "$ac_init_help" = "recursive"; then | |
900 | # If there are subdirs, report their specific --help. | |
901 | ac_popdir=`pwd` | |
902 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
903 | test -d $ac_dir || continue | |
904 | ac_builddir=. | |
905 | ||
906 | if test "$ac_dir" != .; then | |
907 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
908 | # A "../" for each directory in $ac_dir_suffix. | |
909 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
910 | else | |
911 | ac_dir_suffix= ac_top_builddir= | |
912 | fi | |
913 | ||
914 | case $srcdir in | |
915 | .) # No --srcdir option. We are building in place. | |
916 | ac_srcdir=. | |
917 | if test -z "$ac_top_builddir"; then | |
918 | ac_top_srcdir=. | |
919 | else | |
920 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
921 | fi ;; | |
922 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
923 | ac_srcdir=$srcdir$ac_dir_suffix; | |
924 | ac_top_srcdir=$srcdir ;; | |
925 | *) # Relative path. | |
926 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
927 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
928 | esac | |
929 | ||
930 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
931 | # the directories may not exist. | |
932 | case `pwd` in | |
933 | .) ac_abs_builddir="$ac_dir";; | |
934 | *) | |
935 | case "$ac_dir" in | |
936 | .) ac_abs_builddir=`pwd`;; | |
937 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
938 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
939 | esac;; | |
940 | esac | |
941 | case $ac_abs_builddir in | |
942 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
943 | *) | |
944 | case ${ac_top_builddir}. in | |
945 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
946 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
947 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
948 | esac;; | |
949 | esac | |
950 | case $ac_abs_builddir in | |
951 | .) ac_abs_srcdir=$ac_srcdir;; | |
952 | *) | |
953 | case $ac_srcdir in | |
954 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
955 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
956 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
957 | esac;; | |
958 | esac | |
959 | case $ac_abs_builddir in | |
960 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
961 | *) | |
962 | case $ac_top_srcdir in | |
963 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
964 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
965 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
966 | esac;; | |
967 | esac | |
968 | ||
969 | cd $ac_dir | |
970 | # Check for guested configure; otherwise get Cygnus style configure. | |
971 | if test -f $ac_srcdir/configure.gnu; then | |
972 | echo | |
973 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
974 | elif test -f $ac_srcdir/configure; then | |
975 | echo | |
976 | $SHELL $ac_srcdir/configure --help=recursive | |
977 | elif test -f $ac_srcdir/configure.ac || | |
978 | test -f $ac_srcdir/configure.in; then | |
979 | echo | |
980 | $ac_configure --help | |
981 | else | |
982 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
983 | fi | |
984 | cd "$ac_popdir" | |
985 | done | |
986 | fi | |
987 | ||
988 | test -n "$ac_init_help" && exit 0 | |
989 | if $ac_init_version; then | |
990 | cat <<\_ACEOF | |
991 | ||
992 | Copyright (C) 2003 Free Software Foundation, Inc. | |
993 | This configure script is free software; the Free Software Foundation | |
994 | gives unlimited permission to copy, distribute and modify it. | |
995 | _ACEOF | |
996 | exit 0 | |
997 | fi | |
998 | exec 5>config.log | |
999 | cat >&5 <<_ACEOF | |
1000 | This file contains any messages produced by compilers while | |
1001 | running configure, to aid debugging if configure makes a mistake. | |
1002 | ||
1003 | It was created by $as_me, which was | |
1004 | generated by GNU Autoconf 2.59. Invocation command line was | |
1005 | ||
1006 | $ $0 $@ | |
1007 | ||
1008 | _ACEOF | |
1009 | { | |
1010 | cat <<_ASUNAME | |
1011 | ## --------- ## | |
1012 | ## Platform. ## | |
1013 | ## --------- ## | |
1014 | ||
1015 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1016 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1017 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1018 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1019 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1020 | ||
1021 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1022 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1023 | ||
1024 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1025 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1026 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1027 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1028 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1029 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1030 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1031 | ||
1032 | _ASUNAME | |
1033 | ||
1034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1035 | for as_dir in $PATH | |
1036 | do | |
1037 | IFS=$as_save_IFS | |
1038 | test -z "$as_dir" && as_dir=. | |
1039 | echo "PATH: $as_dir" | |
1040 | done | |
50e1e10f | 1041 | |
b0cacab0 TT |
1042 | } >&5 |
1043 | ||
1044 | cat >&5 <<_ACEOF | |
1045 | ||
1046 | ||
1047 | ## ----------- ## | |
1048 | ## Core tests. ## | |
1049 | ## ----------- ## | |
1050 | ||
1051 | _ACEOF | |
1052 | ||
1053 | ||
1054 | # Keep a trace of the command line. | |
1055 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1056 | # Strip out --silent because we don't want to record it for future runs. | |
1057 | # Also quote any args containing shell meta-characters. | |
1058 | # Make two passes to allow for proper duplicate-argument suppression. | |
1059 | ac_configure_args= | |
1060 | ac_configure_args0= | |
1061 | ac_configure_args1= | |
1062 | ac_sep= | |
1063 | ac_must_keep_next=false | |
1064 | for ac_pass in 1 2 | |
1065 | do | |
1066 | for ac_arg | |
1067 | do | |
1068 | case $ac_arg in | |
1069 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1070 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1071 | | -silent | --silent | --silen | --sile | --sil) | |
1072 | continue ;; | |
1073 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1074 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1075 | esac | |
1076 | case $ac_pass in | |
1077 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1078 | 2) | |
1079 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1080 | if test $ac_must_keep_next = true; then | |
1081 | ac_must_keep_next=false # Got value, back to normal. | |
1082 | else | |
1083 | case $ac_arg in | |
1084 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1085 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1086 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1087 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1088 | case "$ac_configure_args0 " in | |
1089 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1090 | esac | |
1091 | ;; | |
1092 | -* ) ac_must_keep_next=true ;; | |
1093 | esac | |
1094 | fi | |
1095 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1096 | # Get rid of the leading space. | |
1097 | ac_sep=" " | |
1098 | ;; | |
1099 | esac | |
1100 | done | |
1101 | done | |
1102 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1103 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1104 | ||
1105 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1106 | # config.log. We remove comments because anyway the quotes in there | |
1107 | # would cause problems or look ugly. | |
1108 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1109 | # such as our DU 5.0 friend, will then `close' the trap. | |
1110 | trap 'exit_status=$? | |
1111 | # Save into config.log some information that might help in debugging. | |
1112 | { | |
1113 | echo | |
1114 | ||
1115 | cat <<\_ASBOX | |
1116 | ## ---------------- ## | |
1117 | ## Cache variables. ## | |
1118 | ## ---------------- ## | |
1119 | _ASBOX | |
1120 | echo | |
1121 | # The following way of writing the cache mishandles newlines in values, | |
1122 | { | |
1123 | (set) 2>&1 | | |
1124 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1125 | *ac_space=\ *) | |
1126 | sed -n \ | |
1127 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1128 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1129 | ;; | |
1130 | *) | |
1131 | sed -n \ | |
1132 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1133 | ;; | |
1134 | esac; | |
1135 | } | |
1136 | echo | |
1137 | ||
1138 | cat <<\_ASBOX | |
1139 | ## ----------------- ## | |
1140 | ## Output variables. ## | |
1141 | ## ----------------- ## | |
1142 | _ASBOX | |
1143 | echo | |
1144 | for ac_var in $ac_subst_vars | |
1145 | do | |
1146 | eval ac_val=$`echo $ac_var` | |
1147 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1148 | done | sort | |
1149 | echo | |
1150 | ||
1151 | if test -n "$ac_subst_files"; then | |
1152 | cat <<\_ASBOX | |
1153 | ## ------------- ## | |
1154 | ## Output files. ## | |
1155 | ## ------------- ## | |
1156 | _ASBOX | |
1157 | echo | |
1158 | for ac_var in $ac_subst_files | |
1159 | do | |
1160 | eval ac_val=$`echo $ac_var` | |
1161 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1162 | done | sort | |
1163 | echo | |
1164 | fi | |
1165 | ||
1166 | if test -s confdefs.h; then | |
1167 | cat <<\_ASBOX | |
1168 | ## ----------- ## | |
1169 | ## confdefs.h. ## | |
1170 | ## ----------- ## | |
1171 | _ASBOX | |
1172 | echo | |
1173 | sed "/^$/d" confdefs.h | sort | |
1174 | echo | |
1175 | fi | |
1176 | test "$ac_signal" != 0 && | |
1177 | echo "$as_me: caught signal $ac_signal" | |
1178 | echo "$as_me: exit $exit_status" | |
1179 | } >&5 | |
1180 | rm -f core *.core && | |
1181 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1182 | exit $exit_status | |
1183 | ' 0 | |
1184 | for ac_signal in 1 2 13 15; do | |
1185 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1186 | done | |
1187 | ac_signal=0 | |
1188 | ||
1189 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1190 | rm -rf conftest* confdefs.h | |
1191 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1192 | echo >confdefs.h | |
1193 | ||
1194 | # Predefined preprocessor variables. | |
1195 | ||
1196 | cat >>confdefs.h <<_ACEOF | |
1197 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1198 | _ACEOF | |
1199 | ||
1200 | ||
1201 | cat >>confdefs.h <<_ACEOF | |
1202 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1203 | _ACEOF | |
1204 | ||
1205 | ||
1206 | cat >>confdefs.h <<_ACEOF | |
1207 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1208 | _ACEOF | |
1209 | ||
1210 | ||
1211 | cat >>confdefs.h <<_ACEOF | |
1212 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1213 | _ACEOF | |
1214 | ||
1215 | ||
1216 | cat >>confdefs.h <<_ACEOF | |
1217 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1218 | _ACEOF | |
1219 | ||
1220 | ||
1221 | # Let the site file select an alternate cache file if it wants to. | |
50e1e10f TT |
1222 | # Prefer explicitly selected file to automatically selected ones. |
1223 | if test -z "$CONFIG_SITE"; then | |
1224 | if test "x$prefix" != xNONE; then | |
1225 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1226 | else | |
1227 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1228 | fi | |
1229 | fi | |
1230 | for ac_site_file in $CONFIG_SITE; do | |
1231 | if test -r "$ac_site_file"; then | |
b0cacab0 TT |
1232 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1233 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1234 | sed 's/^/| /' "$ac_site_file" >&5 | |
50e1e10f TT |
1235 | . "$ac_site_file" |
1236 | fi | |
1237 | done | |
1238 | ||
1239 | if test -r "$cache_file"; then | |
b0cacab0 TT |
1240 | # Some versions of bash will fail to source /dev/null (special |
1241 | # files actually), so we avoid doing that. | |
1242 | if test -f "$cache_file"; then | |
1243 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1244 | echo "$as_me: loading cache $cache_file" >&6;} | |
1245 | case $cache_file in | |
1246 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1247 | *) . ./$cache_file;; | |
1248 | esac | |
1249 | fi | |
50e1e10f | 1250 | else |
b0cacab0 TT |
1251 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1252 | echo "$as_me: creating cache $cache_file" >&6;} | |
1253 | >$cache_file | |
1254 | fi | |
1255 | ||
1256 | # Check that the precious variables saved in the cache have kept the same | |
1257 | # value. | |
1258 | ac_cache_corrupted=false | |
1259 | for ac_var in `(set) 2>&1 | | |
1260 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1261 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1262 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1263 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1264 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1265 | case $ac_old_set,$ac_new_set in | |
1266 | set,) | |
1267 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1268 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1269 | ac_cache_corrupted=: ;; | |
1270 | ,set) | |
1271 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1272 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1273 | ac_cache_corrupted=: ;; | |
1274 | ,);; | |
1275 | *) | |
1276 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1277 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1278 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1279 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1280 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1281 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1282 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1283 | ac_cache_corrupted=: | |
1284 | fi;; | |
1285 | esac | |
1286 | # Pass precious variables to config.status. | |
1287 | if test "$ac_new_set" = set; then | |
1288 | case $ac_new_val in | |
1289 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1290 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1291 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1292 | esac | |
1293 | case " $ac_configure_args " in | |
1294 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1295 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1296 | esac | |
1297 | fi | |
1298 | done | |
1299 | if $ac_cache_corrupted; then | |
1300 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1301 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1302 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1303 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1304 | { (exit 1); exit 1; }; } | |
50e1e10f TT |
1305 | fi |
1306 | ||
1307 | ac_ext=c | |
50e1e10f | 1308 | ac_cpp='$CPP $CPPFLAGS' |
b0cacab0 TT |
1309 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1310 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1311 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1312 | ||
1313 | ||
1314 | ||
1315 | ||
a04eba3f | 1316 | |
07a0db15 | 1317 | |
74becf3c | 1318 | |
93636bde | 1319 | |
93636bde TT |
1320 | |
1321 | ||
1322 | ||
1323 | ||
b0cacab0 TT |
1324 | |
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | ||
1332 | ac_aux_dir= | |
1333 | for ac_dir in config $srcdir/config; do | |
1334 | if test -f $ac_dir/install-sh; then | |
1335 | ac_aux_dir=$ac_dir | |
1336 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1337 | break | |
1338 | elif test -f $ac_dir/install.sh; then | |
1339 | ac_aux_dir=$ac_dir | |
1340 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1341 | break | |
1342 | elif test -f $ac_dir/shtool; then | |
1343 | ac_aux_dir=$ac_dir | |
1344 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1345 | break | |
1346 | fi | |
1347 | done | |
1348 | if test -z "$ac_aux_dir"; then | |
1349 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 | |
1350 | echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} | |
1351 | { (exit 1); exit 1; }; } | |
1352 | fi | |
1353 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1354 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1355 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1356 | ||
93636bde TT |
1357 | MCONFIG=./MCONFIG |
1358 | ||
1359 | BINARY_TYPE=bin | |
1360 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ | |
1361 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` | |
1362 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ | |
1363 | | tr \" " "` | |
1364 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` | |
1365 | MONTH=`echo $DATE | awk -F- '{print $2}'` | |
1366 | YEAR=`echo $DATE | awk -F- '{print $3}'` | |
1367 | ||
1368 | if expr $YEAR ">" 1900 > /dev/null ; then | |
1369 | E2FSPROGS_YEAR=$YEAR | |
1370 | elif expr $YEAR ">" 90 >/dev/null ; then | |
1371 | E2FSPROGS_YEAR=19$YEAR | |
1372 | else | |
1373 | E2FSPROGS_YEAR=20$YEAR | |
1374 | fi | |
1375 | ||
1376 | case $MONTH in | |
1377 | Jan) E2FSPROGS_MONTH="January" ;; | |
74becf3c TT |
1378 | Feb) E2FSPROGS_MONTH="February" ;; |
1379 | Mar) E2FSPROGS_MONTH="March" ;; | |
1380 | Apr) E2FSPROGS_MONTH="April" ;; | |
1381 | May) E2FSPROGS_MONTH="May" ;; | |
1382 | Jun) E2FSPROGS_MONTH="June" ;; | |
1383 | Jul) E2FSPROGS_MONTH="July" ;; | |
1384 | Aug) E2FSPROGS_MONTH="August" ;; | |
1385 | Sep) E2FSPROGS_MONTH="September" ;; | |
1386 | Oct) E2FSPROGS_MONTH="October" ;; | |
1387 | Nov) E2FSPROGS_MONTH="November" ;; | |
1388 | Dec) E2FSPROGS_MONTH="December" ;; | |
1389 | *) echo "Unknown month $MONTH??" ;; | |
1390 | esac | |
1391 | ||
1392 | unset DATE MONTH YEAR | |
1393 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" | |
1394 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" | |
1395 | ||
93636bde TT |
1396 | |
1397 | ||
1398 | ||
fc6d9d51 | 1399 | # Make sure we can run config.sub. |
b0cacab0 TT |
1400 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1401 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1402 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1403 | { (exit 1); exit 1; }; } | |
1404 | ||
1405 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1406 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1407 | if test "${ac_cv_build+set}" = set; then | |
1408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1409 | else | |
1410 | ac_cv_build_alias=$build_alias | |
1411 | test -z "$ac_cv_build_alias" && | |
1412 | ac_cv_build_alias=`$ac_config_guess` | |
1413 | test -z "$ac_cv_build_alias" && | |
1414 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1415 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1416 | { (exit 1); exit 1; }; } | |
1417 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1418 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1419 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1420 | { (exit 1); exit 1; }; } | |
1421 | ||
1422 | fi | |
1423 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1424 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1425 | build=$ac_cv_build | |
1426 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1427 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1428 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1429 | ||
1430 | ||
1431 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1432 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1433 | if test "${ac_cv_host+set}" = set; then | |
1434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1435 | else | |
1436 | ac_cv_host_alias=$host_alias | |
1437 | test -z "$ac_cv_host_alias" && | |
1438 | ac_cv_host_alias=$ac_cv_build_alias | |
1439 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1440 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1441 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1442 | { (exit 1); exit 1; }; } | |
1443 | ||
1444 | fi | |
1445 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1446 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1447 | host=$ac_cv_host | |
1448 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1449 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1450 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
93636bde | 1451 | |
93636bde | 1452 | |
07a0db15 | 1453 | |
d21ae6c5 TT |
1454 | # Check whether --with-diet-libc or --without-diet-libc was given. |
1455 | if test "${with_diet_libc+set}" = set; then | |
1456 | withval="$with_diet_libc" | |
1457 | CC="diet cc -nostdinc" | |
b0cacab0 TT |
1458 | echo "$as_me:$LINENO: result: CC=$CC" >&5 |
1459 | echo "${ECHO_T}CC=$CC" >&6 | |
1460 | fi; | |
74becf3c | 1461 | # Check whether --with-cc or --without-cc was given. |
21c84b71 TT |
1462 | if test "${with_cc+set}" = set; then |
1463 | withval="$with_cc" | |
b0cacab0 TT |
1464 | echo "$as_me:$LINENO: result: CC=$withval" >&5 |
1465 | echo "${ECHO_T}CC=$withval" >&6 | |
74becf3c TT |
1466 | CC=$withval |
1467 | else | |
1468 | if test -z "$CC" ; then CC=cc; fi | |
b0cacab0 TT |
1469 | echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 |
1470 | echo "${ECHO_T}CC defaults to $CC" >&6 | |
1471 | fi; export CC | |
1472 | ||
1473 | ac_ext=c | |
1474 | ac_cpp='$CPP $CPPFLAGS' | |
1475 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1476 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1477 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1478 | if test -n "$ac_tool_prefix"; then | |
1479 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1480 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1481 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1483 | if test "${ac_cv_prog_CC+set}" = set; then | |
1484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1485 | else | |
1486 | if test -n "$CC"; then | |
1487 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1488 | else | |
1489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1490 | for as_dir in $PATH | |
1491 | do | |
1492 | IFS=$as_save_IFS | |
1493 | test -z "$as_dir" && as_dir=. | |
1494 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1495 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1496 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1497 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1498 | break 2 | |
1499 | fi | |
1500 | done | |
1501 | done | |
1502 | ||
1503 | fi | |
1504 | fi | |
1505 | CC=$ac_cv_prog_CC | |
1506 | if test -n "$CC"; then | |
1507 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1508 | echo "${ECHO_T}$CC" >&6 | |
1509 | else | |
1510 | echo "$as_me:$LINENO: result: no" >&5 | |
1511 | echo "${ECHO_T}no" >&6 | |
74becf3c | 1512 | fi |
74becf3c | 1513 | |
b0cacab0 TT |
1514 | fi |
1515 | if test -z "$ac_cv_prog_CC"; then | |
1516 | ac_ct_CC=$CC | |
1517 | # Extract the first word of "gcc", so it can be a program name with args. | |
73ae2d4a | 1518 | set dummy gcc; ac_word=$2 |
b0cacab0 TT |
1519 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1520 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1521 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1523 | else | |
1524 | if test -n "$ac_ct_CC"; then | |
1525 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1526 | else | |
1527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1528 | for as_dir in $PATH | |
1529 | do | |
1530 | IFS=$as_save_IFS | |
1531 | test -z "$as_dir" && as_dir=. | |
1532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1533 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1534 | ac_cv_prog_ac_ct_CC="gcc" | |
1535 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1536 | break 2 | |
1537 | fi | |
1538 | done | |
1539 | done | |
1540 | ||
1541 | fi | |
1542 | fi | |
1543 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1544 | if test -n "$ac_ct_CC"; then | |
1545 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1546 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1547 | else | |
1548 | echo "$as_me:$LINENO: result: no" >&5 | |
1549 | echo "${ECHO_T}no" >&6 | |
1550 | fi | |
1551 | ||
1552 | CC=$ac_ct_CC | |
1553 | else | |
1554 | CC="$ac_cv_prog_CC" | |
1555 | fi | |
1556 | ||
1557 | if test -z "$CC"; then | |
1558 | if test -n "$ac_tool_prefix"; then | |
1559 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1560 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1561 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1563 | if test "${ac_cv_prog_CC+set}" = set; then | |
1564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
73ae2d4a TT |
1565 | else |
1566 | if test -n "$CC"; then | |
1567 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1568 | else | |
b0cacab0 TT |
1569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1570 | for as_dir in $PATH | |
1571 | do | |
1572 | IFS=$as_save_IFS | |
1573 | test -z "$as_dir" && as_dir=. | |
1574 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1575 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1576 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1577 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1578 | break 2 | |
1579 | fi | |
1580 | done | |
1581 | done | |
1582 | ||
73ae2d4a TT |
1583 | fi |
1584 | fi | |
b0cacab0 | 1585 | CC=$ac_cv_prog_CC |
73ae2d4a | 1586 | if test -n "$CC"; then |
b0cacab0 TT |
1587 | echo "$as_me:$LINENO: result: $CC" >&5 |
1588 | echo "${ECHO_T}$CC" >&6 | |
1589 | else | |
1590 | echo "$as_me:$LINENO: result: no" >&5 | |
1591 | echo "${ECHO_T}no" >&6 | |
1592 | fi | |
1593 | ||
1594 | fi | |
1595 | if test -z "$ac_cv_prog_CC"; then | |
1596 | ac_ct_CC=$CC | |
1597 | # Extract the first word of "cc", so it can be a program name with args. | |
1598 | set dummy cc; ac_word=$2 | |
1599 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1601 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1603 | else | |
1604 | if test -n "$ac_ct_CC"; then | |
1605 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1606 | else | |
1607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1608 | for as_dir in $PATH | |
1609 | do | |
1610 | IFS=$as_save_IFS | |
1611 | test -z "$as_dir" && as_dir=. | |
1612 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1613 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1614 | ac_cv_prog_ac_ct_CC="cc" | |
1615 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1616 | break 2 | |
1617 | fi | |
1618 | done | |
1619 | done | |
1620 | ||
1621 | fi | |
1622 | fi | |
1623 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1624 | if test -n "$ac_ct_CC"; then | |
1625 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1626 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1627 | else | |
1628 | echo "$as_me:$LINENO: result: no" >&5 | |
1629 | echo "${ECHO_T}no" >&6 | |
1630 | fi | |
1631 | ||
1632 | CC=$ac_ct_CC | |
73ae2d4a | 1633 | else |
b0cacab0 | 1634 | CC="$ac_cv_prog_CC" |
73ae2d4a TT |
1635 | fi |
1636 | ||
b0cacab0 | 1637 | fi |
73ae2d4a TT |
1638 | if test -z "$CC"; then |
1639 | # Extract the first word of "cc", so it can be a program name with args. | |
1640 | set dummy cc; ac_word=$2 | |
b0cacab0 TT |
1641 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1642 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1643 | if test "${ac_cv_prog_CC+set}" = set; then | |
1644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
73ae2d4a TT |
1645 | else |
1646 | if test -n "$CC"; then | |
1647 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1648 | else | |
73ae2d4a | 1649 | ac_prog_rejected=no |
b0cacab0 TT |
1650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1651 | for as_dir in $PATH | |
1652 | do | |
1653 | IFS=$as_save_IFS | |
1654 | test -z "$as_dir" && as_dir=. | |
1655 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1656 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1657 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1658 | ac_prog_rejected=yes | |
1659 | continue | |
1660 | fi | |
1661 | ac_cv_prog_CC="cc" | |
1662 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1663 | break 2 | |
1664 | fi | |
1665 | done | |
1666 | done | |
1667 | ||
73ae2d4a TT |
1668 | if test $ac_prog_rejected = yes; then |
1669 | # We found a bogon in the path, so make sure we never use it. | |
1670 | set dummy $ac_cv_prog_CC | |
1671 | shift | |
b0cacab0 | 1672 | if test $# != 0; then |
73ae2d4a TT |
1673 | # We chose a different compiler from the bogus one. |
1674 | # However, it has the same basename, so the bogon will be chosen | |
1675 | # first if we set CC to just the basename; use the full file name. | |
1676 | shift | |
b0cacab0 | 1677 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
73ae2d4a TT |
1678 | fi |
1679 | fi | |
1680 | fi | |
1681 | fi | |
b0cacab0 | 1682 | CC=$ac_cv_prog_CC |
73ae2d4a | 1683 | if test -n "$CC"; then |
b0cacab0 TT |
1684 | echo "$as_me:$LINENO: result: $CC" >&5 |
1685 | echo "${ECHO_T}$CC" >&6 | |
73ae2d4a | 1686 | else |
b0cacab0 TT |
1687 | echo "$as_me:$LINENO: result: no" >&5 |
1688 | echo "${ECHO_T}no" >&6 | |
73ae2d4a TT |
1689 | fi |
1690 | ||
b0cacab0 TT |
1691 | fi |
1692 | if test -z "$CC"; then | |
1693 | if test -n "$ac_tool_prefix"; then | |
1694 | for ac_prog in cl | |
1695 | do | |
1696 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1697 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1698 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1699 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1700 | if test "${ac_cv_prog_CC+set}" = set; then | |
1701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
73ae2d4a TT |
1702 | else |
1703 | if test -n "$CC"; then | |
1704 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1705 | else | |
b0cacab0 TT |
1706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1707 | for as_dir in $PATH | |
1708 | do | |
1709 | IFS=$as_save_IFS | |
1710 | test -z "$as_dir" && as_dir=. | |
1711 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1712 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1713 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1714 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1715 | break 2 | |
1716 | fi | |
1717 | done | |
1718 | done | |
1719 | ||
73ae2d4a TT |
1720 | fi |
1721 | fi | |
b0cacab0 | 1722 | CC=$ac_cv_prog_CC |
73ae2d4a | 1723 | if test -n "$CC"; then |
b0cacab0 TT |
1724 | echo "$as_me:$LINENO: result: $CC" >&5 |
1725 | echo "${ECHO_T}$CC" >&6 | |
73ae2d4a | 1726 | else |
b0cacab0 TT |
1727 | echo "$as_me:$LINENO: result: no" >&5 |
1728 | echo "${ECHO_T}no" >&6 | |
73ae2d4a | 1729 | fi |
b0cacab0 TT |
1730 | |
1731 | test -n "$CC" && break | |
1732 | done | |
1733 | fi | |
1734 | if test -z "$CC"; then | |
1735 | ac_ct_CC=$CC | |
1736 | for ac_prog in cl | |
1737 | do | |
1738 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1739 | set dummy $ac_prog; ac_word=$2 | |
1740 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1741 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1742 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1744 | else | |
1745 | if test -n "$ac_ct_CC"; then | |
1746 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1747 | else | |
1748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1749 | for as_dir in $PATH | |
1750 | do | |
1751 | IFS=$as_save_IFS | |
1752 | test -z "$as_dir" && as_dir=. | |
1753 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1754 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1755 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1756 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1757 | break 2 | |
93636bde | 1758 | fi |
b0cacab0 TT |
1759 | done |
1760 | done | |
1761 | ||
1762 | fi | |
1763 | fi | |
1764 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1765 | if test -n "$ac_ct_CC"; then | |
1766 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1767 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1768 | else | |
1769 | echo "$as_me:$LINENO: result: no" >&5 | |
1770 | echo "${ECHO_T}no" >&6 | |
07a0db15 | 1771 | fi |
73ae2d4a | 1772 | |
b0cacab0 TT |
1773 | test -n "$ac_ct_CC" && break |
1774 | done | |
73ae2d4a | 1775 | |
b0cacab0 TT |
1776 | CC=$ac_ct_CC |
1777 | fi | |
1778 | ||
1779 | fi | |
1780 | ||
1781 | ||
1782 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1783 | See \`config.log' for more details." >&5 | |
1784 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1785 | See \`config.log' for more details." >&2;} | |
1786 | { (exit 1); exit 1; }; } | |
1787 | ||
1788 | # Provide some information about the compiler. | |
1789 | echo "$as_me:$LINENO:" \ | |
1790 | "checking for C compiler version" >&5 | |
1791 | ac_compiler=`set X $ac_compile; echo $2` | |
1792 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1793 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1794 | ac_status=$? | |
1795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1796 | (exit $ac_status); } | |
1797 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1798 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1799 | ac_status=$? | |
1800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1801 | (exit $ac_status); } | |
1802 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1803 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1804 | ac_status=$? | |
1805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1806 | (exit $ac_status); } | |
1807 | ||
1808 | cat >conftest.$ac_ext <<_ACEOF | |
1809 | /* confdefs.h. */ | |
1810 | _ACEOF | |
1811 | cat confdefs.h >>conftest.$ac_ext | |
1812 | cat >>conftest.$ac_ext <<_ACEOF | |
1813 | /* end confdefs.h. */ | |
1814 | ||
1815 | int | |
1816 | main () | |
1817 | { | |
1818 | ||
1819 | ; | |
1820 | return 0; | |
1821 | } | |
1822 | _ACEOF | |
1823 | ac_clean_files_save=$ac_clean_files | |
1824 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1825 | # Try to create an executable without -o first, disregard a.out. | |
1826 | # It will help us diagnose broken compilers, and finding out an intuition | |
1827 | # of exeext. | |
1828 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1829 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1830 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1831 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1832 | (eval $ac_link_default) 2>&5 | |
1833 | ac_status=$? | |
1834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1835 | (exit $ac_status); }; then | |
1836 | # Find the output, starting from the most likely. This scheme is | |
1837 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1838 | # resort. | |
1839 | ||
1840 | # Be careful to initialize this variable, since it used to be cached. | |
1841 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1842 | ac_cv_exeext= | |
1843 | # b.out is created by i960 compilers. | |
1844 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1845 | do | |
1846 | test -f "$ac_file" || continue | |
1847 | case $ac_file in | |
1848 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1849 | ;; | |
1850 | conftest.$ac_ext ) | |
1851 | # This is the source file. | |
1852 | ;; | |
1853 | [ab].out ) | |
1854 | # We found the default executable, but exeext='' is most | |
1855 | # certainly right. | |
1856 | break;; | |
1857 | *.* ) | |
1858 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1859 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1860 | # but it would be cool to find out if it's true. Does anybody | |
1861 | # maintain Libtool? --akim. | |
1862 | export ac_cv_exeext | |
1863 | break;; | |
1864 | * ) | |
1865 | break;; | |
1866 | esac | |
1867 | done | |
1868 | else | |
1869 | echo "$as_me: failed program was:" >&5 | |
1870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1871 | ||
1872 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1873 | See \`config.log' for more details." >&5 | |
1874 | echo "$as_me: error: C compiler cannot create executables | |
1875 | See \`config.log' for more details." >&2;} | |
1876 | { (exit 77); exit 77; }; } | |
1877 | fi | |
1878 | ||
1879 | ac_exeext=$ac_cv_exeext | |
1880 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1881 | echo "${ECHO_T}$ac_file" >&6 | |
1882 | ||
1883 | # Check the compiler produces executables we can run. If not, either | |
1884 | # the compiler is broken, or we cross compile. | |
1885 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1886 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1887 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1888 | # If not cross compiling, check that we can run a simple program. | |
1889 | if test "$cross_compiling" != yes; then | |
1890 | if { ac_try='./$ac_file' | |
1891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1892 | (eval $ac_try) 2>&5 | |
1893 | ac_status=$? | |
1894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1895 | (exit $ac_status); }; }; then | |
1896 | cross_compiling=no | |
73ae2d4a | 1897 | else |
b0cacab0 TT |
1898 | if test "$cross_compiling" = maybe; then |
1899 | cross_compiling=yes | |
1900 | else | |
1901 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1902 | If you meant to cross compile, use \`--host'. | |
1903 | See \`config.log' for more details." >&5 | |
1904 | echo "$as_me: error: cannot run C compiled programs. | |
1905 | If you meant to cross compile, use \`--host'. | |
1906 | See \`config.log' for more details." >&2;} | |
1907 | { (exit 1); exit 1; }; } | |
1908 | fi | |
73ae2d4a | 1909 | fi |
b0cacab0 TT |
1910 | fi |
1911 | echo "$as_me:$LINENO: result: yes" >&5 | |
1912 | echo "${ECHO_T}yes" >&6 | |
1913 | ||
1914 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1915 | ac_clean_files=$ac_clean_files_save | |
1916 | # Check the compiler produces executables we can run. If not, either | |
1917 | # the compiler is broken, or we cross compile. | |
1918 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1919 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1920 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1921 | echo "${ECHO_T}$cross_compiling" >&6 | |
1922 | ||
1923 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1924 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1926 | (eval $ac_link) 2>&5 | |
1927 | ac_status=$? | |
1928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1929 | (exit $ac_status); }; then | |
1930 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1931 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1932 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1933 | # `rm'. | |
1934 | for ac_file in conftest.exe conftest conftest.*; do | |
1935 | test -f "$ac_file" || continue | |
1936 | case $ac_file in | |
1937 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1938 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1939 | export ac_cv_exeext | |
1940 | break;; | |
1941 | * ) break;; | |
1942 | esac | |
1943 | done | |
73ae2d4a | 1944 | else |
b0cacab0 TT |
1945 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1946 | See \`config.log' for more details." >&5 | |
1947 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1948 | See \`config.log' for more details." >&2;} | |
1949 | { (exit 1); exit 1; }; } | |
73ae2d4a | 1950 | fi |
73ae2d4a | 1951 | |
b0cacab0 TT |
1952 | rm -f conftest$ac_cv_exeext |
1953 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1954 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
73ae2d4a | 1955 | |
b0cacab0 TT |
1956 | rm -f conftest.$ac_ext |
1957 | EXEEXT=$ac_cv_exeext | |
1958 | ac_exeext=$EXEEXT | |
1959 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1960 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1961 | if test "${ac_cv_objext+set}" = set; then | |
1962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
73ae2d4a | 1963 | else |
b0cacab0 TT |
1964 | cat >conftest.$ac_ext <<_ACEOF |
1965 | /* confdefs.h. */ | |
1966 | _ACEOF | |
1967 | cat confdefs.h >>conftest.$ac_ext | |
1968 | cat >>conftest.$ac_ext <<_ACEOF | |
1969 | /* end confdefs.h. */ | |
07a0db15 | 1970 | |
b0cacab0 TT |
1971 | int |
1972 | main () | |
1973 | { | |
07a0db15 | 1974 | |
b0cacab0 TT |
1975 | ; |
1976 | return 0; | |
1977 | } | |
1978 | _ACEOF | |
1979 | rm -f conftest.o conftest.obj | |
1980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1981 | (eval $ac_compile) 2>&5 | |
1982 | ac_status=$? | |
1983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1984 | (exit $ac_status); }; then | |
1985 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1986 | case $ac_file in | |
1987 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1988 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1989 | break;; | |
1990 | esac | |
1991 | done | |
93636bde | 1992 | else |
b0cacab0 TT |
1993 | echo "$as_me: failed program was:" >&5 |
1994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
07a0db15 | 1995 | |
b0cacab0 TT |
1996 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
1997 | See \`config.log' for more details." >&5 | |
1998 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1999 | See \`config.log' for more details." >&2;} | |
2000 | { (exit 1); exit 1; }; } | |
73ae2d4a | 2001 | fi |
93636bde | 2002 | |
b0cacab0 | 2003 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
73ae2d4a | 2004 | fi |
b0cacab0 TT |
2005 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2006 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2007 | OBJEXT=$ac_cv_objext | |
2008 | ac_objext=$OBJEXT | |
2009 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2010 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2011 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2013 | else | |
2014 | cat >conftest.$ac_ext <<_ACEOF | |
2015 | /* confdefs.h. */ | |
2016 | _ACEOF | |
2017 | cat confdefs.h >>conftest.$ac_ext | |
2018 | cat >>conftest.$ac_ext <<_ACEOF | |
2019 | /* end confdefs.h. */ | |
2020 | ||
2021 | int | |
2022 | main () | |
2023 | { | |
2024 | #ifndef __GNUC__ | |
2025 | choke me | |
2026 | #endif | |
2027 | ||
2028 | ; | |
2029 | return 0; | |
2030 | } | |
2031 | _ACEOF | |
2032 | rm -f conftest.$ac_objext | |
2033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2034 | (eval $ac_compile) 2>conftest.er1 | |
2035 | ac_status=$? | |
2036 | grep -v '^ *+' conftest.er1 >conftest.err | |
2037 | rm -f conftest.er1 | |
2038 | cat conftest.err >&5 | |
2039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2040 | (exit $ac_status); } && | |
2041 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2043 | (eval $ac_try) 2>&5 | |
2044 | ac_status=$? | |
2045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2046 | (exit $ac_status); }; } && | |
2047 | { ac_try='test -s conftest.$ac_objext' | |
2048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2049 | (eval $ac_try) 2>&5 | |
2050 | ac_status=$? | |
2051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2052 | (exit $ac_status); }; }; then | |
2053 | ac_compiler_gnu=yes | |
2054 | else | |
2055 | echo "$as_me: failed program was:" >&5 | |
2056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2057 | ||
2058 | ac_compiler_gnu=no | |
2059 | fi | |
2060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2061 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2062 | ||
2063 | fi | |
2064 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2065 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2066 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2067 | ac_test_CFLAGS=${CFLAGS+set} | |
2068 | ac_save_CFLAGS=$CFLAGS | |
2069 | CFLAGS="-g" | |
2070 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2071 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2072 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2074 | else | |
2075 | cat >conftest.$ac_ext <<_ACEOF | |
2076 | /* confdefs.h. */ | |
2077 | _ACEOF | |
2078 | cat confdefs.h >>conftest.$ac_ext | |
2079 | cat >>conftest.$ac_ext <<_ACEOF | |
2080 | /* end confdefs.h. */ | |
2081 | ||
2082 | int | |
2083 | main () | |
2084 | { | |
2085 | ||
2086 | ; | |
2087 | return 0; | |
2088 | } | |
2089 | _ACEOF | |
2090 | rm -f conftest.$ac_objext | |
2091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2092 | (eval $ac_compile) 2>conftest.er1 | |
2093 | ac_status=$? | |
2094 | grep -v '^ *+' conftest.er1 >conftest.err | |
2095 | rm -f conftest.er1 | |
2096 | cat conftest.err >&5 | |
2097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2098 | (exit $ac_status); } && | |
2099 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2101 | (eval $ac_try) 2>&5 | |
2102 | ac_status=$? | |
2103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2104 | (exit $ac_status); }; } && | |
2105 | { ac_try='test -s conftest.$ac_objext' | |
2106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2107 | (eval $ac_try) 2>&5 | |
2108 | ac_status=$? | |
2109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2110 | (exit $ac_status); }; }; then | |
2111 | ac_cv_prog_cc_g=yes | |
2112 | else | |
2113 | echo "$as_me: failed program was:" >&5 | |
2114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2115 | ||
2116 | ac_cv_prog_cc_g=no | |
2117 | fi | |
2118 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2119 | fi | |
2120 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2121 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2122 | if test "$ac_test_CFLAGS" = set; then | |
2123 | CFLAGS=$ac_save_CFLAGS | |
2124 | elif test $ac_cv_prog_cc_g = yes; then | |
2125 | if test "$GCC" = yes; then | |
2126 | CFLAGS="-g -O2" | |
2127 | else | |
2128 | CFLAGS="-g" | |
2129 | fi | |
73ae2d4a TT |
2130 | else |
2131 | if test "$GCC" = yes; then | |
2132 | CFLAGS="-O2" | |
2133 | else | |
2134 | CFLAGS= | |
2135 | fi | |
2136 | fi | |
b0cacab0 TT |
2137 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2138 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2139 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2141 | else | |
2142 | ac_cv_prog_cc_stdc=no | |
2143 | ac_save_CC=$CC | |
2144 | cat >conftest.$ac_ext <<_ACEOF | |
2145 | /* confdefs.h. */ | |
2146 | _ACEOF | |
2147 | cat confdefs.h >>conftest.$ac_ext | |
2148 | cat >>conftest.$ac_ext <<_ACEOF | |
2149 | /* end confdefs.h. */ | |
2150 | #include <stdarg.h> | |
2151 | #include <stdio.h> | |
2152 | #include <sys/types.h> | |
2153 | #include <sys/stat.h> | |
2154 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2155 | struct buf { int x; }; | |
2156 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2157 | static char *e (p, i) | |
2158 | char **p; | |
2159 | int i; | |
2160 | { | |
2161 | return p[i]; | |
2162 | } | |
2163 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2164 | { | |
2165 | char *s; | |
2166 | va_list v; | |
2167 | va_start (v,p); | |
2168 | s = g (p, va_arg (v,int)); | |
2169 | va_end (v); | |
2170 | return s; | |
2171 | } | |
2172 | ||
2173 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2174 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2175 | These don't provoke an error unfortunately, instead are silently treated | |
2176 | as 'x'. The following induces an error, until -std1 is added to get | |
2177 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2178 | array size at least. It's necessary to write '\x00'==0 to get something | |
2179 | that's true only with -std1. */ | |
2180 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2181 | ||
2182 | int test (int i, double x); | |
2183 | struct s1 {int (*f) (int a);}; | |
2184 | struct s2 {int (*f) (double a);}; | |
2185 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2186 | int argc; | |
2187 | char **argv; | |
2188 | int | |
2189 | main () | |
2190 | { | |
2191 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2192 | ; | |
2193 | return 0; | |
2194 | } | |
2195 | _ACEOF | |
2196 | # Don't try gcc -ansi; that turns off useful extensions and | |
2197 | # breaks some systems' header files. | |
2198 | # AIX -qlanglvl=ansi | |
2199 | # Ultrix and OSF/1 -std1 | |
2200 | # HP-UX 10.20 and later -Ae | |
2201 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2202 | # SVR4 -Xc -D__EXTENSIONS__ | |
2203 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2204 | do | |
2205 | CC="$ac_save_CC $ac_arg" | |
2206 | rm -f conftest.$ac_objext | |
2207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2208 | (eval $ac_compile) 2>conftest.er1 | |
2209 | ac_status=$? | |
2210 | grep -v '^ *+' conftest.er1 >conftest.err | |
2211 | rm -f conftest.er1 | |
2212 | cat conftest.err >&5 | |
2213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2214 | (exit $ac_status); } && | |
2215 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2217 | (eval $ac_try) 2>&5 | |
2218 | ac_status=$? | |
2219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2220 | (exit $ac_status); }; } && | |
2221 | { ac_try='test -s conftest.$ac_objext' | |
2222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2223 | (eval $ac_try) 2>&5 | |
2224 | ac_status=$? | |
2225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2226 | (exit $ac_status); }; }; then | |
2227 | ac_cv_prog_cc_stdc=$ac_arg | |
2228 | break | |
2229 | else | |
2230 | echo "$as_me: failed program was:" >&5 | |
2231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2232 | ||
2233 | fi | |
2234 | rm -f conftest.err conftest.$ac_objext | |
2235 | done | |
2236 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2237 | CC=$ac_save_CC | |
2238 | ||
2239 | fi | |
2240 | ||
2241 | case "x$ac_cv_prog_cc_stdc" in | |
2242 | x|xno) | |
2243 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2244 | echo "${ECHO_T}none needed" >&6 ;; | |
2245 | *) | |
2246 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2247 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2248 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2249 | esac | |
2250 | ||
2251 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2252 | # in C++ we need to declare it. In case someone uses the same compiler | |
2253 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2254 | # the declaration of exit, since it's the most demanding environment. | |
2255 | cat >conftest.$ac_ext <<_ACEOF | |
2256 | #ifndef __cplusplus | |
2257 | choke me | |
2258 | #endif | |
2259 | _ACEOF | |
2260 | rm -f conftest.$ac_objext | |
2261 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2262 | (eval $ac_compile) 2>conftest.er1 | |
2263 | ac_status=$? | |
2264 | grep -v '^ *+' conftest.er1 >conftest.err | |
2265 | rm -f conftest.er1 | |
2266 | cat conftest.err >&5 | |
2267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2268 | (exit $ac_status); } && | |
2269 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2271 | (eval $ac_try) 2>&5 | |
2272 | ac_status=$? | |
2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2274 | (exit $ac_status); }; } && | |
2275 | { ac_try='test -s conftest.$ac_objext' | |
2276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2277 | (eval $ac_try) 2>&5 | |
2278 | ac_status=$? | |
2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2280 | (exit $ac_status); }; }; then | |
2281 | for ac_declaration in \ | |
2282 | '' \ | |
2283 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2284 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2285 | 'extern "C" void exit (int) throw ();' \ | |
2286 | 'extern "C" void exit (int);' \ | |
2287 | 'void exit (int);' | |
2288 | do | |
2289 | cat >conftest.$ac_ext <<_ACEOF | |
2290 | /* confdefs.h. */ | |
2291 | _ACEOF | |
2292 | cat confdefs.h >>conftest.$ac_ext | |
2293 | cat >>conftest.$ac_ext <<_ACEOF | |
2294 | /* end confdefs.h. */ | |
2295 | $ac_declaration | |
2296 | #include <stdlib.h> | |
2297 | int | |
2298 | main () | |
2299 | { | |
2300 | exit (42); | |
2301 | ; | |
2302 | return 0; | |
2303 | } | |
2304 | _ACEOF | |
2305 | rm -f conftest.$ac_objext | |
2306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2307 | (eval $ac_compile) 2>conftest.er1 | |
2308 | ac_status=$? | |
2309 | grep -v '^ *+' conftest.er1 >conftest.err | |
2310 | rm -f conftest.er1 | |
2311 | cat conftest.err >&5 | |
2312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2313 | (exit $ac_status); } && | |
2314 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2316 | (eval $ac_try) 2>&5 | |
2317 | ac_status=$? | |
2318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2319 | (exit $ac_status); }; } && | |
2320 | { ac_try='test -s conftest.$ac_objext' | |
2321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2322 | (eval $ac_try) 2>&5 | |
2323 | ac_status=$? | |
2324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2325 | (exit $ac_status); }; }; then | |
2326 | : | |
2327 | else | |
2328 | echo "$as_me: failed program was:" >&5 | |
2329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2330 | ||
2331 | continue | |
2332 | fi | |
2333 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2334 | cat >conftest.$ac_ext <<_ACEOF | |
2335 | /* confdefs.h. */ | |
2336 | _ACEOF | |
2337 | cat confdefs.h >>conftest.$ac_ext | |
2338 | cat >>conftest.$ac_ext <<_ACEOF | |
2339 | /* end confdefs.h. */ | |
2340 | $ac_declaration | |
2341 | int | |
2342 | main () | |
2343 | { | |
2344 | exit (42); | |
2345 | ; | |
2346 | return 0; | |
2347 | } | |
2348 | _ACEOF | |
2349 | rm -f conftest.$ac_objext | |
2350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2351 | (eval $ac_compile) 2>conftest.er1 | |
2352 | ac_status=$? | |
2353 | grep -v '^ *+' conftest.er1 >conftest.err | |
2354 | rm -f conftest.er1 | |
2355 | cat conftest.err >&5 | |
2356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2357 | (exit $ac_status); } && | |
2358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2360 | (eval $ac_try) 2>&5 | |
2361 | ac_status=$? | |
2362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2363 | (exit $ac_status); }; } && | |
2364 | { ac_try='test -s conftest.$ac_objext' | |
2365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2366 | (eval $ac_try) 2>&5 | |
2367 | ac_status=$? | |
2368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2369 | (exit $ac_status); }; }; then | |
2370 | break | |
2371 | else | |
2372 | echo "$as_me: failed program was:" >&5 | |
2373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2374 | ||
2375 | fi | |
2376 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2377 | done | |
2378 | rm -f conftest* | |
2379 | if test -n "$ac_declaration"; then | |
2380 | echo '#ifdef __cplusplus' >>confdefs.h | |
2381 | echo $ac_declaration >>confdefs.h | |
2382 | echo '#endif' >>confdefs.h | |
2383 | fi | |
2384 | ||
2385 | else | |
2386 | echo "$as_me: failed program was:" >&5 | |
2387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2388 | ||
2389 | fi | |
2390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2391 | ac_ext=c | |
2392 | ac_cpp='$CPP $CPPFLAGS' | |
2393 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2394 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2395 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2396 | ||
73ae2d4a | 2397 | |
74becf3c | 2398 | # Check whether --with-linker or --without-linker was given. |
21c84b71 TT |
2399 | if test "${with_linker+set}" = set; then |
2400 | withval="$with_linker" | |
b0cacab0 TT |
2401 | echo "$as_me:$LINENO: result: LD=$withval" >&5 |
2402 | echo "${ECHO_T}LD=$withval" >&6 | |
74becf3c TT |
2403 | LD=$withval |
2404 | else | |
2405 | if test -z "$LD" ; then LD=$CC; fi | |
b0cacab0 TT |
2406 | echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 |
2407 | echo "${ECHO_T}LD defaults to $LD" >&6 | |
2408 | fi; export LD | |
2409 | ||
a64c9c13 TT |
2410 | |
2411 | # Check whether --with-ccopts or --without-ccopts was given. | |
2412 | if test "${with_ccopts+set}" = set; then | |
2413 | withval="$with_ccopts" | |
b0cacab0 TT |
2414 | echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 |
2415 | echo "${ECHO_T}CCOPTS is $withval" >&6 | |
877eb6d9 | 2416 | CFLAGS=$withval |
b0cacab0 TT |
2417 | fi; |
2418 | ac_ext=c | |
2419 | ac_cpp='$CPP $CPPFLAGS' | |
2420 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2421 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2422 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2423 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2424 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
a64c9c13 TT |
2425 | # On Suns, sometimes $CPP names a directory. |
2426 | if test -n "$CPP" && test -d "$CPP"; then | |
2427 | CPP= | |
2428 | fi | |
2429 | if test -z "$CPP"; then | |
b0cacab0 TT |
2430 | if test "${ac_cv_prog_CPP+set}" = set; then |
2431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2432 | else | |
2433 | # Double quotes because CPP needs to be expanded | |
2434 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2435 | do | |
2436 | ac_preproc_ok=false | |
2437 | for ac_c_preproc_warn_flag in '' yes | |
2438 | do | |
2439 | # Use a header file that comes with gcc, so configuring glibc | |
2440 | # with a fresh cross-compiler works. | |
2441 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2442 | # <limits.h> exists even on freestanding compilers. | |
2443 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2444 | # not just through cpp. "Syntax error" is here to catch this case. | |
2445 | cat >conftest.$ac_ext <<_ACEOF | |
2446 | /* confdefs.h. */ | |
2447 | _ACEOF | |
2448 | cat confdefs.h >>conftest.$ac_ext | |
2449 | cat >>conftest.$ac_ext <<_ACEOF | |
2450 | /* end confdefs.h. */ | |
2451 | #ifdef __STDC__ | |
2452 | # include <limits.h> | |
2453 | #else | |
2454 | # include <assert.h> | |
2455 | #endif | |
2456 | Syntax error | |
2457 | _ACEOF | |
2458 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2459 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2460 | ac_status=$? | |
2461 | grep -v '^ *+' conftest.er1 >conftest.err | |
2462 | rm -f conftest.er1 | |
2463 | cat conftest.err >&5 | |
2464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2465 | (exit $ac_status); } >/dev/null; then | |
2466 | if test -s conftest.err; then | |
2467 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2468 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2469 | else | |
2470 | ac_cpp_err= | |
2471 | fi | |
2472 | else | |
2473 | ac_cpp_err=yes | |
2474 | fi | |
2475 | if test -z "$ac_cpp_err"; then | |
2476 | : | |
2477 | else | |
2478 | echo "$as_me: failed program was:" >&5 | |
2479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2480 | ||
2481 | # Broken: fails on valid input. | |
2482 | continue | |
2483 | fi | |
2484 | rm -f conftest.err conftest.$ac_ext | |
2485 | ||
2486 | # OK, works on sane cases. Now check whether non-existent headers | |
2487 | # can be detected and how. | |
2488 | cat >conftest.$ac_ext <<_ACEOF | |
2489 | /* confdefs.h. */ | |
2490 | _ACEOF | |
2491 | cat confdefs.h >>conftest.$ac_ext | |
2492 | cat >>conftest.$ac_ext <<_ACEOF | |
2493 | /* end confdefs.h. */ | |
2494 | #include <ac_nonexistent.h> | |
2495 | _ACEOF | |
2496 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2497 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2498 | ac_status=$? | |
2499 | grep -v '^ *+' conftest.er1 >conftest.err | |
2500 | rm -f conftest.er1 | |
2501 | cat conftest.err >&5 | |
2502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2503 | (exit $ac_status); } >/dev/null; then | |
2504 | if test -s conftest.err; then | |
2505 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2506 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2507 | else | |
2508 | ac_cpp_err= | |
2509 | fi | |
2510 | else | |
2511 | ac_cpp_err=yes | |
2512 | fi | |
2513 | if test -z "$ac_cpp_err"; then | |
2514 | # Broken: success on invalid input. | |
2515 | continue | |
2516 | else | |
2517 | echo "$as_me: failed program was:" >&5 | |
2518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2519 | ||
2520 | # Passes both tests. | |
2521 | ac_preproc_ok=: | |
2522 | break | |
2523 | fi | |
2524 | rm -f conftest.err conftest.$ac_ext | |
2525 | ||
2526 | done | |
2527 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2528 | rm -f conftest.err conftest.$ac_ext | |
2529 | if $ac_preproc_ok; then | |
2530 | break | |
2531 | fi | |
2532 | ||
2533 | done | |
2534 | ac_cv_prog_CPP=$CPP | |
2535 | ||
2536 | fi | |
2537 | CPP=$ac_cv_prog_CPP | |
93636bde | 2538 | else |
b0cacab0 TT |
2539 | ac_cv_prog_CPP=$CPP |
2540 | fi | |
2541 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
2542 | echo "${ECHO_T}$CPP" >&6 | |
2543 | ac_preproc_ok=false | |
2544 | for ac_c_preproc_warn_flag in '' yes | |
2545 | do | |
2546 | # Use a header file that comes with gcc, so configuring glibc | |
2547 | # with a fresh cross-compiler works. | |
2548 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2549 | # <limits.h> exists even on freestanding compilers. | |
a64c9c13 | 2550 | # On the NeXT, cc -E runs the code through the compiler's parser, |
b0cacab0 TT |
2551 | # not just through cpp. "Syntax error" is here to catch this case. |
2552 | cat >conftest.$ac_ext <<_ACEOF | |
2553 | /* confdefs.h. */ | |
2554 | _ACEOF | |
2555 | cat confdefs.h >>conftest.$ac_ext | |
2556 | cat >>conftest.$ac_ext <<_ACEOF | |
2557 | /* end confdefs.h. */ | |
2558 | #ifdef __STDC__ | |
2559 | # include <limits.h> | |
2560 | #else | |
2561 | # include <assert.h> | |
2562 | #endif | |
2563 | Syntax error | |
2564 | _ACEOF | |
2565 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2566 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2567 | ac_status=$? | |
2568 | grep -v '^ *+' conftest.er1 >conftest.err | |
2569 | rm -f conftest.er1 | |
2570 | cat conftest.err >&5 | |
2571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2572 | (exit $ac_status); } >/dev/null; then | |
2573 | if test -s conftest.err; then | |
2574 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2575 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2576 | else | |
2577 | ac_cpp_err= | |
2578 | fi | |
2579 | else | |
2580 | ac_cpp_err=yes | |
2581 | fi | |
2582 | if test -z "$ac_cpp_err"; then | |
a64c9c13 TT |
2583 | : |
2584 | else | |
b0cacab0 TT |
2585 | echo "$as_me: failed program was:" >&5 |
2586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2587 | ||
2588 | # Broken: fails on valid input. | |
2589 | continue | |
2590 | fi | |
2591 | rm -f conftest.err conftest.$ac_ext | |
2592 | ||
2593 | # OK, works on sane cases. Now check whether non-existent headers | |
2594 | # can be detected and how. | |
2595 | cat >conftest.$ac_ext <<_ACEOF | |
2596 | /* confdefs.h. */ | |
2597 | _ACEOF | |
2598 | cat confdefs.h >>conftest.$ac_ext | |
2599 | cat >>conftest.$ac_ext <<_ACEOF | |
2600 | /* end confdefs.h. */ | |
2601 | #include <ac_nonexistent.h> | |
2602 | _ACEOF | |
2603 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2604 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2605 | ac_status=$? | |
2606 | grep -v '^ *+' conftest.er1 >conftest.err | |
2607 | rm -f conftest.er1 | |
2608 | cat conftest.err >&5 | |
2609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2610 | (exit $ac_status); } >/dev/null; then | |
2611 | if test -s conftest.err; then | |
2612 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2613 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2614 | else | |
2615 | ac_cpp_err= | |
2616 | fi | |
2617 | else | |
2618 | ac_cpp_err=yes | |
2619 | fi | |
2620 | if test -z "$ac_cpp_err"; then | |
2621 | # Broken: success on invalid input. | |
2622 | continue | |
2623 | else | |
2624 | echo "$as_me: failed program was:" >&5 | |
2625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2626 | ||
2627 | # Passes both tests. | |
2628 | ac_preproc_ok=: | |
2629 | break | |
2630 | fi | |
2631 | rm -f conftest.err conftest.$ac_ext | |
2632 | ||
2633 | done | |
2634 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2635 | rm -f conftest.err conftest.$ac_ext | |
2636 | if $ac_preproc_ok; then | |
93636bde | 2637 | : |
07a0db15 | 2638 | else |
b0cacab0 TT |
2639 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
2640 | See \`config.log' for more details." >&5 | |
2641 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2642 | See \`config.log' for more details." >&2;} | |
2643 | { (exit 1); exit 1; }; } | |
2644 | fi | |
2645 | ||
2646 | ac_ext=c | |
2647 | ac_cpp='$CPP $CPPFLAGS' | |
2648 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2649 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2650 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2651 | ||
2652 | ||
2653 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
2654 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2655 | if test "${ac_cv_prog_egrep+set}" = set; then | |
2656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2657 | else | |
2658 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
2659 | then ac_cv_prog_egrep='grep -E' | |
2660 | else ac_cv_prog_egrep='egrep' | |
2661 | fi | |
2662 | fi | |
2663 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
2664 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2665 | EGREP=$ac_cv_prog_egrep | |
2666 | ||
2667 | ||
2668 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
2669 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
2670 | if test "${ac_cv_header_stdc+set}" = set; then | |
2671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2672 | else | |
2673 | cat >conftest.$ac_ext <<_ACEOF | |
2674 | /* confdefs.h. */ | |
2675 | _ACEOF | |
2676 | cat confdefs.h >>conftest.$ac_ext | |
2677 | cat >>conftest.$ac_ext <<_ACEOF | |
2678 | /* end confdefs.h. */ | |
2679 | #include <stdlib.h> | |
2680 | #include <stdarg.h> | |
2681 | #include <string.h> | |
2682 | #include <float.h> | |
2683 | ||
2684 | int | |
2685 | main () | |
2686 | { | |
2687 | ||
2688 | ; | |
2689 | return 0; | |
2690 | } | |
2691 | _ACEOF | |
2692 | rm -f conftest.$ac_objext | |
2693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2694 | (eval $ac_compile) 2>conftest.er1 | |
2695 | ac_status=$? | |
2696 | grep -v '^ *+' conftest.er1 >conftest.err | |
2697 | rm -f conftest.er1 | |
2698 | cat conftest.err >&5 | |
2699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2700 | (exit $ac_status); } && | |
2701 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2703 | (eval $ac_try) 2>&5 | |
2704 | ac_status=$? | |
2705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2706 | (exit $ac_status); }; } && | |
2707 | { ac_try='test -s conftest.$ac_objext' | |
2708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2709 | (eval $ac_try) 2>&5 | |
2710 | ac_status=$? | |
2711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2712 | (exit $ac_status); }; }; then | |
2713 | ac_cv_header_stdc=yes | |
2714 | else | |
2715 | echo "$as_me: failed program was:" >&5 | |
2716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2717 | ||
2718 | ac_cv_header_stdc=no | |
2719 | fi | |
2720 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2721 | ||
2722 | if test $ac_cv_header_stdc = yes; then | |
2723 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2724 | cat >conftest.$ac_ext <<_ACEOF | |
2725 | /* confdefs.h. */ | |
2726 | _ACEOF | |
2727 | cat confdefs.h >>conftest.$ac_ext | |
2728 | cat >>conftest.$ac_ext <<_ACEOF | |
2729 | /* end confdefs.h. */ | |
2730 | #include <string.h> | |
2731 | ||
2732 | _ACEOF | |
2733 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2734 | $EGREP "memchr" >/dev/null 2>&1; then | |
93636bde | 2735 | : |
a64c9c13 | 2736 | else |
b0cacab0 | 2737 | ac_cv_header_stdc=no |
a64c9c13 | 2738 | fi |
93636bde | 2739 | rm -f conftest* |
b0cacab0 | 2740 | |
a64c9c13 | 2741 | fi |
b0cacab0 TT |
2742 | |
2743 | if test $ac_cv_header_stdc = yes; then | |
2744 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2745 | cat >conftest.$ac_ext <<_ACEOF | |
2746 | /* confdefs.h. */ | |
2747 | _ACEOF | |
2748 | cat confdefs.h >>conftest.$ac_ext | |
2749 | cat >>conftest.$ac_ext <<_ACEOF | |
2750 | /* end confdefs.h. */ | |
2751 | #include <stdlib.h> | |
2752 | ||
2753 | _ACEOF | |
2754 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2755 | $EGREP "free" >/dev/null 2>&1; then | |
2756 | : | |
2757 | else | |
2758 | ac_cv_header_stdc=no | |
a64c9c13 | 2759 | fi |
93636bde | 2760 | rm -f conftest* |
b0cacab0 | 2761 | |
a64c9c13 | 2762 | fi |
b0cacab0 TT |
2763 | |
2764 | if test $ac_cv_header_stdc = yes; then | |
2765 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2766 | if test "$cross_compiling" = yes; then | |
2767 | : | |
a64c9c13 | 2768 | else |
b0cacab0 TT |
2769 | cat >conftest.$ac_ext <<_ACEOF |
2770 | /* confdefs.h. */ | |
2771 | _ACEOF | |
2772 | cat confdefs.h >>conftest.$ac_ext | |
2773 | cat >>conftest.$ac_ext <<_ACEOF | |
2774 | /* end confdefs.h. */ | |
2775 | #include <ctype.h> | |
2776 | #if ((' ' & 0x0FF) == 0x020) | |
2777 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2778 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2779 | #else | |
2780 | # define ISLOWER(c) \ | |
2781 | (('a' <= (c) && (c) <= 'i') \ | |
2782 | || ('j' <= (c) && (c) <= 'r') \ | |
2783 | || ('s' <= (c) && (c) <= 'z')) | |
2784 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
2785 | #endif | |
93636bde | 2786 | |
b0cacab0 TT |
2787 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
2788 | int | |
2789 | main () | |
2790 | { | |
2791 | int i; | |
2792 | for (i = 0; i < 256; i++) | |
2793 | if (XOR (islower (i), ISLOWER (i)) | |
2794 | || toupper (i) != TOUPPER (i)) | |
2795 | exit(2); | |
2796 | exit (0); | |
2797 | } | |
2798 | _ACEOF | |
2799 | rm -f conftest$ac_exeext | |
2800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2801 | (eval $ac_link) 2>&5 | |
2802 | ac_status=$? | |
2803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2804 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
2805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2806 | (eval $ac_try) 2>&5 | |
2807 | ac_status=$? | |
2808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2809 | (exit $ac_status); }; }; then | |
2810 | : | |
a64c9c13 | 2811 | else |
b0cacab0 TT |
2812 | echo "$as_me: program exited with status $ac_status" >&5 |
2813 | echo "$as_me: failed program was:" >&5 | |
2814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2815 | ||
2816 | ( exit $ac_status ) | |
2817 | ac_cv_header_stdc=no | |
2818 | fi | |
2819 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
2820 | fi | |
2821 | fi | |
2822 | fi | |
2823 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
2824 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
2825 | if test $ac_cv_header_stdc = yes; then | |
2826 | ||
2827 | cat >>confdefs.h <<\_ACEOF | |
2828 | #define STDC_HEADERS 1 | |
2829 | _ACEOF | |
2830 | ||
2831 | fi | |
2832 | ||
2833 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
2834 | ||
2835 | ||
2836 | ||
2837 | ||
2838 | ||
2839 | ||
2840 | ||
2841 | ||
2842 | ||
2843 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
2844 | inttypes.h stdint.h unistd.h | |
2845 | do | |
2846 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
2847 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2848 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
2849 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2851 | else | |
2852 | cat >conftest.$ac_ext <<_ACEOF | |
2853 | /* confdefs.h. */ | |
2854 | _ACEOF | |
2855 | cat confdefs.h >>conftest.$ac_ext | |
2856 | cat >>conftest.$ac_ext <<_ACEOF | |
2857 | /* end confdefs.h. */ | |
2858 | $ac_includes_default | |
2859 | ||
2860 | #include <$ac_header> | |
2861 | _ACEOF | |
2862 | rm -f conftest.$ac_objext | |
2863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2864 | (eval $ac_compile) 2>conftest.er1 | |
2865 | ac_status=$? | |
2866 | grep -v '^ *+' conftest.er1 >conftest.err | |
2867 | rm -f conftest.er1 | |
2868 | cat conftest.err >&5 | |
2869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2870 | (exit $ac_status); } && | |
2871 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2873 | (eval $ac_try) 2>&5 | |
2874 | ac_status=$? | |
2875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2876 | (exit $ac_status); }; } && | |
2877 | { ac_try='test -s conftest.$ac_objext' | |
2878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2879 | (eval $ac_try) 2>&5 | |
2880 | ac_status=$? | |
2881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2882 | (exit $ac_status); }; }; then | |
2883 | eval "$as_ac_Header=yes" | |
2884 | else | |
2885 | echo "$as_me: failed program was:" >&5 | |
2886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2887 | ||
2888 | eval "$as_ac_Header=no" | |
2889 | fi | |
2890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2891 | fi | |
2892 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
2893 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2894 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2895 | cat >>confdefs.h <<_ACEOF | |
2896 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
2897 | _ACEOF | |
2898 | ||
2899 | fi | |
2900 | ||
2901 | done | |
2902 | ||
2903 | ||
2904 | if test "${ac_cv_header_linux_fs_h+set}" = set; then | |
2905 | echo "$as_me:$LINENO: checking for linux/fs.h" >&5 | |
2906 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6 | |
2907 | if test "${ac_cv_header_linux_fs_h+set}" = set; then | |
2908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2909 | fi | |
2910 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 | |
2911 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6 | |
2912 | else | |
2913 | # Is the header compilable? | |
2914 | echo "$as_me:$LINENO: checking linux/fs.h usability" >&5 | |
2915 | echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6 | |
2916 | cat >conftest.$ac_ext <<_ACEOF | |
2917 | /* confdefs.h. */ | |
2918 | _ACEOF | |
2919 | cat confdefs.h >>conftest.$ac_ext | |
2920 | cat >>conftest.$ac_ext <<_ACEOF | |
2921 | /* end confdefs.h. */ | |
2922 | $ac_includes_default | |
93636bde | 2923 | #include <linux/fs.h> |
b0cacab0 TT |
2924 | _ACEOF |
2925 | rm -f conftest.$ac_objext | |
2926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2927 | (eval $ac_compile) 2>conftest.er1 | |
2928 | ac_status=$? | |
2929 | grep -v '^ *+' conftest.er1 >conftest.err | |
2930 | rm -f conftest.er1 | |
2931 | cat conftest.err >&5 | |
2932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2933 | (exit $ac_status); } && | |
2934 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2936 | (eval $ac_try) 2>&5 | |
2937 | ac_status=$? | |
2938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2939 | (exit $ac_status); }; } && | |
2940 | { ac_try='test -s conftest.$ac_objext' | |
2941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2942 | (eval $ac_try) 2>&5 | |
2943 | ac_status=$? | |
2944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2945 | (exit $ac_status); }; }; then | |
2946 | ac_header_compiler=yes | |
2947 | else | |
2948 | echo "$as_me: failed program was:" >&5 | |
2949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2950 | ||
2951 | ac_header_compiler=no | |
2952 | fi | |
2953 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2954 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
2955 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
2956 | ||
2957 | # Is the header present? | |
2958 | echo "$as_me:$LINENO: checking linux/fs.h presence" >&5 | |
2959 | echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6 | |
2960 | cat >conftest.$ac_ext <<_ACEOF | |
2961 | /* confdefs.h. */ | |
2962 | _ACEOF | |
2963 | cat confdefs.h >>conftest.$ac_ext | |
2964 | cat >>conftest.$ac_ext <<_ACEOF | |
2965 | /* end confdefs.h. */ | |
2966 | #include <linux/fs.h> | |
2967 | _ACEOF | |
2968 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2969 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2970 | ac_status=$? | |
2971 | grep -v '^ *+' conftest.er1 >conftest.err | |
2972 | rm -f conftest.er1 | |
2973 | cat conftest.err >&5 | |
2974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2975 | (exit $ac_status); } >/dev/null; then | |
2976 | if test -s conftest.err; then | |
2977 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2978 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2979 | else | |
2980 | ac_cpp_err= | |
2981 | fi | |
2982 | else | |
2983 | ac_cpp_err=yes | |
a64c9c13 | 2984 | fi |
b0cacab0 TT |
2985 | if test -z "$ac_cpp_err"; then |
2986 | ac_header_preproc=yes | |
2987 | else | |
2988 | echo "$as_me: failed program was:" >&5 | |
2989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2990 | ||
2991 | ac_header_preproc=no | |
2992 | fi | |
2993 | rm -f conftest.err conftest.$ac_ext | |
2994 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
2995 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
2996 | ||
2997 | # So? What about this header? | |
2998 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
2999 | yes:no: ) | |
3000 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3001 | echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3002 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5 | |
3003 | echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;} | |
3004 | ac_header_preproc=yes | |
3005 | ;; | |
3006 | no:yes:* ) | |
3007 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5 | |
3008 | echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;} | |
3009 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5 | |
3010 | echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;} | |
3011 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5 | |
3012 | echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;} | |
3013 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5 | |
3014 | echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
3015 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5 | |
3016 | echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;} | |
3017 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5 | |
3018 | echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;} | |
3019 | ( | |
3020 | cat <<\_ASBOX | |
3021 | ## ------------------------------------------ ## | |
3022 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3023 | ## ------------------------------------------ ## | |
3024 | _ASBOX | |
3025 | ) | | |
3026 | sed "s/^/$as_me: WARNING: /" >&2 | |
3027 | ;; | |
3028 | esac | |
3029 | echo "$as_me:$LINENO: checking for linux/fs.h" >&5 | |
3030 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6 | |
3031 | if test "${ac_cv_header_linux_fs_h+set}" = set; then | |
3032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3033 | else | |
3034 | ac_cv_header_linux_fs_h=$ac_header_preproc | |
3035 | fi | |
3036 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 | |
3037 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6 | |
3038 | ||
07a0db15 | 3039 | fi |
b0cacab0 | 3040 | if test $ac_cv_header_linux_fs_h = yes; then |
07a0db15 TT |
3041 | linux_headers=yes |
3042 | else | |
b0cacab0 | 3043 | linux_headers=no |
a64c9c13 TT |
3044 | fi |
3045 | ||
b0cacab0 | 3046 | |
a64c9c13 TT |
3047 | if test "$linux_headers" != yes; then |
3048 | LINUX_INCLUDE='-I$(top_builddir)/include' | |
3049 | fi | |
3050 | ||
b0cacab0 TT |
3051 | echo "$as_me:$LINENO: checking for additional special compiler flags" >&5 |
3052 | echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6 | |
b1c92f91 MA |
3053 | if test "$GCC" = yes |
3054 | then | |
3055 | case "$host_cpu" in | |
3056 | alpha) addcflags="-mieee" ;; | |
3057 | esac | |
3058 | fi | |
3059 | if test "x$addcflags" != x | |
3060 | then | |
b0cacab0 TT |
3061 | echo "$as_me:$LINENO: result: $addcflags" >&5 |
3062 | echo "${ECHO_T}$addcflags" >&6 | |
b1c92f91 MA |
3063 | CFLAGS="$addcflags $CFLAGS" |
3064 | else | |
b0cacab0 TT |
3065 | echo "$as_me:$LINENO: result: (none)" >&5 |
3066 | echo "${ECHO_T}(none)" >&6 | |
b1c92f91 | 3067 | fi |
a64c9c13 TT |
3068 | LIB_EXT=.a |
3069 | STATIC_LIB_EXT=.a | |
3070 | PROFILE_LIB_EXT=.a | |
b0cacab0 | 3071 | |
a64c9c13 TT |
3072 | # Check whether --with-ldopts or --without-ldopts was given. |
3073 | if test "${with_ldopts+set}" = set; then | |
3074 | withval="$with_ldopts" | |
b0cacab0 TT |
3075 | echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 |
3076 | echo "${ECHO_T}LDFLAGS is $withval" >&6 | |
a64c9c13 TT |
3077 | LDFLAGS=$withval |
3078 | else | |
3079 | LDFLAGS= | |
b0cacab0 | 3080 | fi; |
a64c9c13 TT |
3081 | |
3082 | # Check whether --with-root-prefix or --without-root-prefix was given. | |
3083 | if test "${with_root_prefix+set}" = set; then | |
3084 | withval="$with_root_prefix" | |
3085 | root_prefix=$withval | |
3086 | else | |
3087 | root_prefix=NONE | |
b0cacab0 | 3088 | fi; # Check whether --enable-compression or --disable-compression was given. |
1917875f TT |
3089 | if test "${enable_compression+set}" = set; then |
3090 | enableval="$enable_compression" | |
3091 | if test "$enableval" = "no" | |
3092 | then | |
3093 | echo "Disabling compression support" | |
3094 | else | |
b0cacab0 | 3095 | cat >>confdefs.h <<\_ACEOF |
1917875f | 3096 | #define ENABLE_COMPRESSION 1 |
b0cacab0 | 3097 | _ACEOF |
1917875f TT |
3098 | |
3099 | echo "Enabling compression support" | |
3100 | echo "WARNING: Compression support is experimental" | |
3101 | fi | |
3102 | ||
3103 | else | |
3104 | echo "Disabling compression support by default" | |
3105 | ||
b0cacab0 | 3106 | fi; |
8fdc9985 TT |
3107 | # Check whether --enable-htree or --disable-htree was given. |
3108 | if test "${enable_htree+set}" = set; then | |
3109 | enableval="$enable_htree" | |
3110 | if test "$enableval" = "no" | |
3111 | then | |
3112 | HTREE_CMT=# | |
3113 | echo "Disabling htree directory support" | |
3114 | else | |
3115 | HTREE_CMT= | |
b0cacab0 | 3116 | cat >>confdefs.h <<\_ACEOF |
8fdc9985 | 3117 | #define ENABLE_HTREE 1 |
b0cacab0 | 3118 | _ACEOF |
8fdc9985 TT |
3119 | |
3120 | echo "Enabling htree directory support" | |
8fdc9985 TT |
3121 | fi |
3122 | ||
3123 | else | |
559ca6cb | 3124 | HTREE_CMT= |
b0cacab0 | 3125 | cat >>confdefs.h <<\_ACEOF |
559ca6cb | 3126 | #define ENABLE_HTREE 1 |
b0cacab0 | 3127 | _ACEOF |
559ca6cb TT |
3128 | |
3129 | echo "Enabling htree directory support by default" | |
8fdc9985 | 3130 | |
b0cacab0 | 3131 | fi; |
8fdc9985 TT |
3132 | |
3133 | # Check whether --enable-htree-clear or --disable-htree-clear was given. | |
3134 | if test "${enable_htree_clear+set}" = set; then | |
3135 | enableval="$enable_htree_clear" | |
3136 | if test "$enableval" = "no" | |
3137 | then | |
3138 | HTREE_CLR_CMT=# | |
3139 | echo "Disabling htree clearing" | |
3140 | else | |
3141 | HTREE_CLR_CMT= | |
b0cacab0 | 3142 | cat >>confdefs.h <<\_ACEOF |
8fdc9985 | 3143 | #define ENABLE_HTREE_CLEAR 1 |
b0cacab0 | 3144 | _ACEOF |
8fdc9985 TT |
3145 | |
3146 | echo "Enabling htree clearing" | |
3147 | fi | |
3148 | ||
3149 | else | |
3150 | HTREE_CLR_CMT=# | |
3151 | echo "Disabling htree clearing by default" | |
3152 | ||
b0cacab0 | 3153 | fi; |
8fdc9985 | 3154 | |
a64c9c13 TT |
3155 | # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given. |
3156 | if test "${enable_elf_shlibs+set}" = set; then | |
3157 | enableval="$enable_elf_shlibs" | |
3158 | if test "$enableval" = "no" | |
3159 | then | |
3160 | ELF_CMT=# | |
3161 | MAKEFILE_ELF=/dev/null | |
3162 | echo "Disabling ELF shared libraries" | |
3163 | else | |
3164 | ELF_CMT= | |
3165 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib | |
f5955dda TT |
3166 | case "$host_os" in |
3167 | solaris2.*) | |
3168 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib | |
3169 | ;; | |
3170 | esac | |
a64c9c13 TT |
3171 | BINARY_TYPE=elfbin |
3172 | LIB_EXT=.so | |
3173 | echo "Enabling ELF shared libraries" | |
3174 | fi | |
3175 | ||
3176 | else | |
3177 | MAKEFILE_ELF=/dev/null | |
3178 | ELF_CMT=# | |
3179 | echo "Disabling ELF shared libraries by default" | |
3180 | ||
b0cacab0 | 3181 | fi; |
93636bde | 3182 | |
a64c9c13 TT |
3183 | |
3184 | # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given. | |
3185 | if test "${enable_bsd_shlibs+set}" = set; then | |
3186 | enableval="$enable_bsd_shlibs" | |
3187 | if test "$enableval" = "no" | |
3188 | then | |
3189 | BSDLIB_CMT=# | |
3190 | MAKEFILE_BSDLIB=/dev/null | |
3191 | echo "Disabling BSD shared libraries" | |
3192 | else | |
3193 | BSDLIB_CMT= | |
3194 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib | |
3195 | LIB_EXT=.so | |
e1f07228 | 3196 | case "$host_os" in |
aa75eccc | 3197 | darwin*) |
e1f07228 TT |
3198 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
3199 | LIB_EXT=.dylib | |
3200 | ;; | |
3201 | esac | |
a64c9c13 TT |
3202 | echo "Enabling BSD shared libraries" |
3203 | fi | |
3204 | ||
3205 | else | |
3206 | MAKEFILE_BSDLIB=/dev/null | |
3207 | BSDLIB_CMT=# | |
3208 | echo "Disabling BSD shared libraries by default" | |
3209 | ||
b0cacab0 | 3210 | fi; |
93636bde | 3211 | |
a64c9c13 | 3212 | |
cdf186e4 TT |
3213 | # Check whether --enable-profile or --disable-profile was given. |
3214 | if test "${enable_profile+set}" = set; then | |
3215 | enableval="$enable_profile" | |
3216 | if test "$enableval" = "no" | |
3217 | then | |
3218 | PROFILE_CMT=# | |
3219 | MAKEFILE_PROFILE=/dev/null | |
3220 | echo "Disabling profiling libraries" | |
3221 | else | |
3222 | PROFILE_CMT= | |
3223 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile | |
3224 | PROFILED_LIB_EXT=_p.a | |
3225 | echo "Building profiling libraries" | |
3226 | fi | |
3227 | ||
3228 | else | |
3229 | PROFILE_CMT=# | |
3230 | MAKEFILE_PROFILE=/dev/null | |
3231 | echo "Disabling profiling libraries by default" | |
3232 | ||
b0cacab0 | 3233 | fi; |
93636bde | 3234 | |
cdf186e4 TT |
3235 | |
3236 | # Check whether --enable-checker or --disable-checker was given. | |
3237 | if test "${enable_checker+set}" = set; then | |
3238 | enableval="$enable_checker" | |
3239 | if test "$enableval" = "no" | |
3240 | then | |
3241 | CHECKER_CMT=# | |
3242 | MAKEFILE_CHECKER=/dev/null | |
3243 | echo "Disabling checker libraries" | |
3244 | else | |
3245 | CHECKER_CMT= | |
3246 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker | |
3247 | echo "Building checker libraries" | |
3248 | fi | |
3249 | ||
3250 | else | |
3251 | CHECKER_CMT=# | |
3252 | MAKEFILE_CHECKER=/dev/null | |
3253 | echo "Disabling checker libraries by default" | |
3254 | ||
b0cacab0 | 3255 | fi; |
93636bde TT |
3256 | |
3257 | ||
3258 | ||
3259 | ||
cdf186e4 | 3260 | |
782bebfd TT |
3261 | # Check whether --enable-jbd-debug or --disable-jbd-debug was given. |
3262 | if test "${enable_jbd_debug+set}" = set; then | |
3263 | enableval="$enable_jbd_debug" | |
80bfaa3e TT |
3264 | if test "$enableval" = "no" |
3265 | then | |
3266 | echo "Disabling journal debugging" | |
3267 | else | |
b0cacab0 | 3268 | cat >>confdefs.h <<\_ACEOF |
8cf93332 | 3269 | #define CONFIG_JBD_DEBUG 1 |
b0cacab0 | 3270 | _ACEOF |
80bfaa3e TT |
3271 | |
3272 | echo "Enabling journal debugging" | |
3273 | fi | |
3274 | ||
3275 | else | |
3276 | echo "Disabling journal debugging by default" | |
3277 | ||
b0cacab0 | 3278 | fi; |
f0a22d0f TT |
3279 | # Check whether --enable-blkid-debug or --disable-blkid-debug was given. |
3280 | if test "${enable_blkid_debug+set}" = set; then | |
3281 | enableval="$enable_blkid_debug" | |
3282 | if test "$enableval" = "no" | |
3283 | then | |
3284 | echo "Disabling blkid debugging" | |
3285 | else | |
b0cacab0 | 3286 | cat >>confdefs.h <<\_ACEOF |
f0a22d0f | 3287 | #define CONFIG_BLKID_DEBUG 1 |
b0cacab0 | 3288 | _ACEOF |
f0a22d0f TT |
3289 | |
3290 | echo "Enabling blkid debugging" | |
3291 | fi | |
3292 | ||
3293 | else | |
3294 | echo "Disabling blkid debugging by default" | |
3295 | ||
b0cacab0 | 3296 | fi; |
2a29f135 TT |
3297 | # Check whether --enable-testio-debug or --disable-testio-debug was given. |
3298 | if test "${enable_testio_debug+set}" = set; then | |
3299 | enableval="$enable_testio_debug" | |
3300 | if test "$enableval" = "no" | |
3301 | then | |
3302 | echo "Disabling testio debugging" | |
3303 | else | |
b0cacab0 | 3304 | cat >>confdefs.h <<\_ACEOF |
2a29f135 | 3305 | #define CONFIG_TESTIO_DEBUG 1 |
b0cacab0 | 3306 | _ACEOF |
2a29f135 TT |
3307 | |
3308 | echo "Enabling testio debugging" | |
3309 | fi | |
3310 | ||
3311 | else | |
3312 | echo "Disabling testio debugging by default" | |
3313 | ||
b0cacab0 | 3314 | fi; |
877eb6d9 TT |
3315 | # Check whether --enable-swapfs or --disable-swapfs was given. |
3316 | if test "${enable_swapfs+set}" = set; then | |
3317 | enableval="$enable_swapfs" | |
3318 | if test "$enableval" = "no" | |
3319 | then | |
feb44c69 | 3320 | SWAPFS_CMT=# |
877eb6d9 | 3321 | echo "Disabling swapfs support" |
877eb6d9 | 3322 | else |
feb44c69 | 3323 | SWAPFS_CMT= |
b0cacab0 | 3324 | cat >>confdefs.h <<\_ACEOF |
877eb6d9 | 3325 | #define ENABLE_SWAPFS 1 |
b0cacab0 | 3326 | _ACEOF |
877eb6d9 | 3327 | |
877eb6d9 TT |
3328 | echo "Enabling swapfs support" |
3329 | fi | |
3330 | ||
3331 | else | |
feb44c69 TT |
3332 | SWAPFS_CMT= |
3333 | echo "Enabling swapfs support by default" | |
b0cacab0 | 3334 | cat >>confdefs.h <<\_ACEOF |
877eb6d9 | 3335 | #define ENABLE_SWAPFS 1 |
b0cacab0 | 3336 | _ACEOF |
93636bde | 3337 | |
93636bde | 3338 | |
b0cacab0 | 3339 | fi; |
feb44c69 | 3340 | |
cdf186e4 TT |
3341 | # Check whether --enable-debugfs or --disable-debugfs was given. |
3342 | if test "${enable_debugfs+set}" = set; then | |
3343 | enableval="$enable_debugfs" | |
3344 | if test "$enableval" = "no" | |
3345 | then | |
3346 | echo "Disabling debugfs support" | |
3347 | DEBUGFS_CMT="#" | |
3348 | else | |
cdf186e4 TT |
3349 | DEBUGFS_CMT= |
3350 | echo "Enabling debugfs support" | |
3351 | fi | |
3352 | ||
3353 | else | |
3354 | echo "Enabling debugfs support by default" | |
cdf186e4 TT |
3355 | DEBUGFS_CMT= |
3356 | ||
b0cacab0 | 3357 | fi; |
cdf186e4 TT |
3358 | |
3359 | # Check whether --enable-imager or --disable-imager was given. | |
3360 | if test "${enable_imager+set}" = set; then | |
3361 | enableval="$enable_imager" | |
3362 | if test "$enableval" = "no" | |
3363 | then | |
3364 | echo "Disabling e2image support" | |
3365 | IMAGER_CMT="#" | |
3366 | else | |
cdf186e4 TT |
3367 | IMAGER_CMT= |
3368 | echo "Enabling e2image support" | |
3369 | fi | |
3370 | ||
3371 | else | |
3372 | echo "Enabling e2image support by default" | |
cdf186e4 TT |
3373 | IMAGER_CMT= |
3374 | ||
b0cacab0 | 3375 | fi; |
cdf186e4 TT |
3376 | |
3377 | # Check whether --enable-resizer or --disable-resizer was given. | |
3378 | if test "${enable_resizer+set}" = set; then | |
3379 | enableval="$enable_resizer" | |
3380 | if test "$enableval" = "no" | |
3381 | then | |
3382 | echo "Disabling e2resize support" | |
3383 | RESIZER_CMT="#" | |
3384 | else | |
cdf186e4 TT |
3385 | RESIZER_CMT= |
3386 | echo "Enabling e2resize support" | |
3387 | fi | |
3388 | ||
3389 | else | |
3390 | echo "Enabling e2resize support by default" | |
cdf186e4 TT |
3391 | RESIZER_CMT= |
3392 | ||
b0cacab0 | 3393 | fi; |
cdf186e4 TT |
3394 | |
3395 | # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given. | |
3396 | if test "${enable_dynamic_e2fsck+set}" = set; then | |
3397 | enableval="$enable_dynamic_e2fsck" | |
3398 | if test "$enableval" = "no" | |
3399 | then | |
3400 | E2FSCK_TYPE=static | |
3401 | echo "Building e2fsck statically" | |
3402 | else | |
3403 | E2FSCK_TYPE=shared | |
3404 | echo "Building e2fsck dynamically" | |
3405 | fi | |
3406 | ||
3407 | else | |
3408 | E2FSCK_TYPE=static | |
3409 | echo "Building e2fsck statically by default" | |
3410 | ||
b0cacab0 | 3411 | fi; |
cdf186e4 TT |
3412 | |
3413 | # Check whether --enable-fsck or --disable-fsck was given. | |
3414 | if test "${enable_fsck+set}" = set; then | |
3415 | enableval="$enable_fsck" | |
3416 | if test "$enableval" = "no" | |
3417 | then | |
3418 | FSCK_PROG='' FSCK_MAN='' | |
3419 | echo "Not building fsck wrapper" | |
3420 | else | |
3421 | FSCK_PROG=fsck FSCK_MAN=fsck.8 | |
3422 | echo "Building fsck wrapper" | |
3423 | fi | |
3424 | ||
3425 | else | |
3426 | case "$host_os" in | |
e363240d | 3427 | gnu*) |
cdf186e4 TT |
3428 | FSCK_PROG='' FSCK_MAN='' |
3429 | echo "Not building fsck wrapper by default" | |
3430 | ;; | |
3431 | *) | |
3432 | FSCK_PROG=fsck FSCK_MAN=fsck.8 | |
3433 | echo "Building fsck wrapper by default" | |
3434 | esac | |
3435 | ||
b0cacab0 | 3436 | fi; |
93636bde | 3437 | |
cdf186e4 | 3438 | |
5d40773b TT |
3439 | # Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given. |
3440 | if test "${enable_e2initrd_helper+set}" = set; then | |
3441 | enableval="$enable_e2initrd_helper" | |
3442 | if test "$enableval" = "no" | |
3443 | then | |
3444 | E2INITRD_PROG='' E2INITRD_MAN='' | |
3445 | echo "Not building e2initrd helper" | |
3446 | else | |
3447 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 | |
3448 | echo "Building e2initrd helper" | |
3449 | fi | |
3450 | ||
3451 | else | |
3452 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 | |
3453 | echo "Building e2initrd helper by default" | |
3454 | ||
b0cacab0 | 3455 | fi; |
5d40773b TT |
3456 | |
3457 | ||
cdf186e4 TT |
3458 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
3459 | ||
3460 | # Check whether --enable-old-bitops or --disable-old-bitops was given. | |
3461 | if test "${enable_old_bitops+set}" = set; then | |
3462 | enableval="$enable_old_bitops" | |
3463 | if test "$enableval" = "no" | |
3464 | then | |
3465 | echo "Using new (standard) bitmask operations" | |
3466 | else | |
b0cacab0 | 3467 | cat >>confdefs.h <<\_ACEOF |
cdf186e4 | 3468 | #define EXT2_OLD_BITOPS 1 |
b0cacab0 | 3469 | _ACEOF |
cdf186e4 TT |
3470 | |
3471 | echo "Using old (native) bitmask operations" | |
3472 | ||
3473 | fi | |
3474 | ||
3475 | else | |
3476 | echo "Using standard bitmask operations by default" | |
3477 | ||
b0cacab0 TT |
3478 | fi; |
3479 | GETTEXT_PACKAGE=e2fsprogs | |
a64c9c13 TT |
3480 | PACKAGE=e2fsprogs |
3481 | VERSION="$E2FSPROGS_VERSION" | |
b0cacab0 TT |
3482 | VERSION=0.14.1 |
3483 | cat >>confdefs.h <<_ACEOF | |
a64c9c13 | 3484 | #define PACKAGE "$PACKAGE" |
b0cacab0 | 3485 | _ACEOF |
a64c9c13 | 3486 | |
b0cacab0 | 3487 | cat >>confdefs.h <<_ACEOF |
a64c9c13 | 3488 | #define VERSION "$VERSION" |
b0cacab0 | 3489 | _ACEOF |
93636bde TT |
3490 | |
3491 | ||
93636bde | 3492 | |
93636bde TT |
3493 | |
3494 | ||
b0cacab0 TT |
3495 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3496 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
3497 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
3498 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
3499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a64c9c13 | 3500 | else |
b0cacab0 | 3501 | cat >conftest.make <<\_ACEOF |
a64c9c13 | 3502 | all: |
b0cacab0 TT |
3503 | @echo 'ac_maketemp="$(MAKE)"' |
3504 | _ACEOF | |
a64c9c13 | 3505 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
b0cacab0 | 3506 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
a64c9c13 TT |
3507 | if test -n "$ac_maketemp"; then |
3508 | eval ac_cv_prog_make_${ac_make}_set=yes | |
3509 | else | |
3510 | eval ac_cv_prog_make_${ac_make}_set=no | |
3511 | fi | |
b0cacab0 | 3512 | rm -f conftest.make |
a64c9c13 TT |
3513 | fi |
3514 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
b0cacab0 TT |
3515 | echo "$as_me:$LINENO: result: yes" >&5 |
3516 | echo "${ECHO_T}yes" >&6 | |
a64c9c13 TT |
3517 | SET_MAKE= |
3518 | else | |
b0cacab0 TT |
3519 | echo "$as_me:$LINENO: result: no" >&5 |
3520 | echo "${ECHO_T}no" >&6 | |
a64c9c13 TT |
3521 | SET_MAKE="MAKE=${MAKE-make}" |
3522 | fi | |
3523 | ||
a04eba3f TT |
3524 | # Find a good install program. We prefer a C program (faster), |
3525 | # so one script is as good as another. But avoid the broken or | |
3526 | # incompatible versions: | |
3527 | # SysV /etc/install, /usr/sbin/install | |
3528 | # SunOS /usr/etc/install | |
3529 | # IRIX /sbin/install | |
3530 | # AIX /bin/install | |
b0cacab0 | 3531 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
a04eba3f TT |
3532 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3533 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3534 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
b0cacab0 | 3535 | # OS/2's system install, which has a completely different semantic |
a04eba3f | 3536 | # ./install, which can be erroneously created by make from ./install.sh. |
b0cacab0 TT |
3537 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3538 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
a04eba3f | 3539 | if test -z "$INSTALL"; then |
b0cacab0 TT |
3540 | if test "${ac_cv_path_install+set}" = set; then |
3541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a04eba3f | 3542 | else |
b0cacab0 TT |
3543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3544 | for as_dir in $PATH | |
3545 | do | |
3546 | IFS=$as_save_IFS | |
3547 | test -z "$as_dir" && as_dir=. | |
3548 | # Account for people who put trailing slashes in PATH elements. | |
3549 | case $as_dir/ in | |
3550 | ./ | .// | /cC/* | \ | |
3551 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3552 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3553 | /usr/ucb/* ) ;; | |
3554 | *) | |
3555 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3556 | # Don't use installbsd from OSF since it installs stuff as root | |
3557 | # by default. | |
3558 | for ac_prog in ginstall scoinst install; do | |
3559 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3560 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
a04eba3f | 3561 | if test $ac_prog = install && |
b0cacab0 | 3562 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
a04eba3f TT |
3563 | # AIX install. It has an incompatible calling convention. |
3564 | : | |
b0cacab0 TT |
3565 | elif test $ac_prog = install && |
3566 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3567 | # program-specific install script used by HP pwplus--don't use. | |
3568 | : | |
a04eba3f | 3569 | else |
b0cacab0 TT |
3570 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3571 | break 3 | |
a04eba3f TT |
3572 | fi |
3573 | fi | |
3574 | done | |
b0cacab0 TT |
3575 | done |
3576 | ;; | |
3577 | esac | |
3578 | done | |
3579 | ||
a04eba3f TT |
3580 | |
3581 | fi | |
3582 | if test "${ac_cv_path_install+set}" = set; then | |
b0cacab0 | 3583 | INSTALL=$ac_cv_path_install |
a04eba3f TT |
3584 | else |
3585 | # As a last resort, use the slow shell script. We don't cache a | |
3586 | # path for INSTALL within a source directory, because that will | |
3587 | # break other packages using the cache if that directory is | |
3588 | # removed, or if the path is relative. | |
b0cacab0 | 3589 | INSTALL=$ac_install_sh |
a04eba3f TT |
3590 | fi |
3591 | fi | |
b0cacab0 TT |
3592 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3593 | echo "${ECHO_T}$INSTALL" >&6 | |
a04eba3f TT |
3594 | |
3595 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3596 | # It thinks the first close brace ends the variable substitution. | |
3597 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3598 | ||
b0cacab0 | 3599 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
a04eba3f TT |
3600 | |
3601 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3602 | ||
93636bde | 3603 | |
a04eba3f TT |
3604 | MKINSTALLDIRS= |
3605 | if test -n "$ac_aux_dir"; then | |
b0cacab0 TT |
3606 | case "$ac_aux_dir" in |
3607 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
3608 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
3609 | esac | |
a04eba3f TT |
3610 | fi |
3611 | if test -z "$MKINSTALLDIRS"; then | |
3612 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
3613 | fi | |
a04eba3f | 3614 | |
a64c9c13 | 3615 | |
93636bde | 3616 | |
b0cacab0 TT |
3617 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
3618 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
3619 | # Check whether --enable-nls or --disable-nls was given. | |
3620 | if test "${enable_nls+set}" = set; then | |
3621 | enableval="$enable_nls" | |
3622 | USE_NLS=$enableval | |
a04eba3f | 3623 | else |
b0cacab0 TT |
3624 | USE_NLS=yes |
3625 | fi; | |
3626 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
3627 | echo "${ECHO_T}$USE_NLS" >&6 | |
3628 | ||
3629 | ||
a64c9c13 | 3630 | |
b0cacab0 TT |
3631 | |
3632 | ||
3633 | ||
3634 | # Prepare PATH_SEPARATOR. | |
3635 | # The user is always right. | |
3636 | if test "${PATH_SEPARATOR+set}" != set; then | |
3637 | echo "#! /bin/sh" >conf$$.sh | |
3638 | echo "exit 0" >>conf$$.sh | |
3639 | chmod +x conf$$.sh | |
3640 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
3641 | PATH_SEPARATOR=';' | |
3642 | else | |
3643 | PATH_SEPARATOR=: | |
3644 | fi | |
3645 | rm -f conf$$.sh | |
93636bde | 3646 | fi |
b0cacab0 TT |
3647 | |
3648 | # Find out how to test for executable files. Don't use a zero-byte file, | |
3649 | # as systems may use methods other than mode bits to determine executability. | |
3650 | cat >conf$$.file <<_ASEOF | |
3651 | #! /bin/sh | |
3652 | exit 0 | |
3653 | _ASEOF | |
3654 | chmod +x conf$$.file | |
3655 | if test -x conf$$.file >/dev/null 2>&1; then | |
3656 | ac_executable_p="test -x" | |
a64c9c13 | 3657 | else |
b0cacab0 | 3658 | ac_executable_p="test -f" |
a64c9c13 | 3659 | fi |
b0cacab0 | 3660 | rm -f conf$$.file |
a64c9c13 | 3661 | |
b0cacab0 TT |
3662 | # Extract the first word of "msgfmt", so it can be a program name with args. |
3663 | set dummy msgfmt; ac_word=$2 | |
3664 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3665 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3666 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
3667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
07a0db15 | 3668 | else |
b0cacab0 TT |
3669 | case "$MSGFMT" in |
3670 | [\\/]* | ?:[\\/]*) | |
3671 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
3672 | ;; | |
3673 | *) | |
3674 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
3675 | for ac_dir in $PATH; do | |
3676 | IFS="$ac_save_IFS" | |
3677 | test -z "$ac_dir" && ac_dir=. | |
3678 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3679 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
3680 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
3681 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
3682 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
3683 | break 2 | |
3684 | fi | |
3685 | fi | |
3686 | done | |
3687 | done | |
3688 | IFS="$ac_save_IFS" | |
3689 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
3690 | ;; | |
3691 | esac | |
3692 | fi | |
3693 | MSGFMT="$ac_cv_path_MSGFMT" | |
3694 | if test "$MSGFMT" != ":"; then | |
3695 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
3696 | echo "${ECHO_T}$MSGFMT" >&6 | |
07a0db15 | 3697 | else |
b0cacab0 TT |
3698 | echo "$as_me:$LINENO: result: no" >&5 |
3699 | echo "${ECHO_T}no" >&6 | |
07a0db15 | 3700 | fi |
07a0db15 | 3701 | |
b0cacab0 TT |
3702 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
3703 | set dummy gmsgfmt; ac_word=$2 | |
3704 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3706 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
3707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a64c9c13 | 3708 | else |
b0cacab0 TT |
3709 | case $GMSGFMT in |
3710 | [\\/]* | ?:[\\/]*) | |
3711 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
3712 | ;; | |
3713 | *) | |
3714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3715 | for as_dir in $PATH | |
3716 | do | |
3717 | IFS=$as_save_IFS | |
3718 | test -z "$as_dir" && as_dir=. | |
3719 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3720 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3721 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
3722 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3723 | break 2 | |
3724 | fi | |
3725 | done | |
3726 | done | |
a64c9c13 | 3727 | |
b0cacab0 TT |
3728 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
3729 | ;; | |
3730 | esac | |
a64c9c13 | 3731 | fi |
b0cacab0 | 3732 | GMSGFMT=$ac_cv_path_GMSGFMT |
a64c9c13 | 3733 | |
b0cacab0 TT |
3734 | if test -n "$GMSGFMT"; then |
3735 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
3736 | echo "${ECHO_T}$GMSGFMT" >&6 | |
a64c9c13 | 3737 | else |
b0cacab0 TT |
3738 | echo "$as_me:$LINENO: result: no" >&5 |
3739 | echo "${ECHO_T}no" >&6 | |
a64c9c13 | 3740 | fi |
a64c9c13 | 3741 | |
a64c9c13 | 3742 | |
93636bde | 3743 | |
b0cacab0 TT |
3744 | # Prepare PATH_SEPARATOR. |
3745 | # The user is always right. | |
3746 | if test "${PATH_SEPARATOR+set}" != set; then | |
3747 | echo "#! /bin/sh" >conf$$.sh | |
3748 | echo "exit 0" >>conf$$.sh | |
3749 | chmod +x conf$$.sh | |
3750 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
3751 | PATH_SEPARATOR=';' | |
3752 | else | |
3753 | PATH_SEPARATOR=: | |
3754 | fi | |
3755 | rm -f conf$$.sh | |
a64c9c13 | 3756 | fi |
93636bde | 3757 | |
b0cacab0 TT |
3758 | # Find out how to test for executable files. Don't use a zero-byte file, |
3759 | # as systems may use methods other than mode bits to determine executability. | |
3760 | cat >conf$$.file <<_ASEOF | |
3761 | #! /bin/sh | |
3762 | exit 0 | |
3763 | _ASEOF | |
3764 | chmod +x conf$$.file | |
3765 | if test -x conf$$.file >/dev/null 2>&1; then | |
3766 | ac_executable_p="test -x" | |
3767 | else | |
3768 | ac_executable_p="test -f" | |
a64c9c13 | 3769 | fi |
b0cacab0 | 3770 | rm -f conf$$.file |
93636bde | 3771 | |
b0cacab0 TT |
3772 | # Extract the first word of "xgettext", so it can be a program name with args. |
3773 | set dummy xgettext; ac_word=$2 | |
3774 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3775 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3776 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
3777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a64c9c13 | 3778 | else |
b0cacab0 TT |
3779 | case "$XGETTEXT" in |
3780 | [\\/]* | ?:[\\/]*) | |
3781 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
3782 | ;; | |
3783 | *) | |
3784 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
3785 | for ac_dir in $PATH; do | |
3786 | IFS="$ac_save_IFS" | |
3787 | test -z "$ac_dir" && ac_dir=. | |
3788 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3789 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
3790 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
3791 | (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 | |
3792 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
3793 | break 2 | |
3794 | fi | |
3795 | fi | |
3796 | done | |
3797 | done | |
3798 | IFS="$ac_save_IFS" | |
3799 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
3800 | ;; | |
3801 | esac | |
a64c9c13 | 3802 | fi |
b0cacab0 TT |
3803 | XGETTEXT="$ac_cv_path_XGETTEXT" |
3804 | if test "$XGETTEXT" != ":"; then | |
3805 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
3806 | echo "${ECHO_T}$XGETTEXT" >&6 | |
3807 | else | |
3808 | echo "$as_me:$LINENO: result: no" >&5 | |
3809 | echo "${ECHO_T}no" >&6 | |
a64c9c13 | 3810 | fi |
07a0db15 | 3811 | |
b0cacab0 | 3812 | rm -f messages.po |
a64c9c13 | 3813 | |
a64c9c13 | 3814 | |
b0cacab0 TT |
3815 | # Prepare PATH_SEPARATOR. |
3816 | # The user is always right. | |
3817 | if test "${PATH_SEPARATOR+set}" != set; then | |
3818 | echo "#! /bin/sh" >conf$$.sh | |
3819 | echo "exit 0" >>conf$$.sh | |
3820 | chmod +x conf$$.sh | |
3821 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
3822 | PATH_SEPARATOR=';' | |
3823 | else | |
3824 | PATH_SEPARATOR=: | |
3825 | fi | |
3826 | rm -f conf$$.sh | |
a64c9c13 | 3827 | fi |
a64c9c13 | 3828 | |
b0cacab0 TT |
3829 | # Find out how to test for executable files. Don't use a zero-byte file, |
3830 | # as systems may use methods other than mode bits to determine executability. | |
3831 | cat >conf$$.file <<_ASEOF | |
3832 | #! /bin/sh | |
3833 | exit 0 | |
3834 | _ASEOF | |
3835 | chmod +x conf$$.file | |
3836 | if test -x conf$$.file >/dev/null 2>&1; then | |
3837 | ac_executable_p="test -x" | |
3838 | else | |
3839 | ac_executable_p="test -f" | |
a64c9c13 | 3840 | fi |
b0cacab0 | 3841 | rm -f conf$$.file |
93636bde | 3842 | |
b0cacab0 TT |
3843 | # Extract the first word of "msgmerge", so it can be a program name with args. |
3844 | set dummy msgmerge; ac_word=$2 | |
3845 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3846 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3847 | if test "${ac_cv_path_MSGMERGE+set}" = set; then | |
3848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
07a0db15 | 3849 | else |
b0cacab0 TT |
3850 | case "$MSGMERGE" in |
3851 | [\\/]* | ?:[\\/]*) | |
3852 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
3853 | ;; | |
3854 | *) | |
3855 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
3856 | for ac_dir in $PATH; do | |
3857 | IFS="$ac_save_IFS" | |
3858 | test -z "$ac_dir" && ac_dir=. | |
3859 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3860 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
3861 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
3862 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
3863 | break 2 | |
3864 | fi | |
3865 | fi | |
3866 | done | |
3867 | done | |
3868 | IFS="$ac_save_IFS" | |
3869 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
3870 | ;; | |
3871 | esac | |
3872 | fi | |
3873 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
3874 | if test "$MSGMERGE" != ":"; then | |
3875 | echo "$as_me:$LINENO: result: $MSGMERGE" >&5 | |
3876 | echo "${ECHO_T}$MSGMERGE" >&6 | |
a64c9c13 | 3877 | else |
b0cacab0 TT |
3878 | echo "$as_me:$LINENO: result: no" >&5 |
3879 | echo "${ECHO_T}no" >&6 | |
a64c9c13 | 3880 | fi |
07a0db15 | 3881 | |
a64c9c13 | 3882 | |
b0cacab0 TT |
3883 | if test "$GMSGFMT" != ":"; then |
3884 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
3885 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
3886 | : ; | |
3887 | else | |
3888 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
3889 | echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
3890 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 | |
3891 | GMSGFMT=":" | |
3892 | fi | |
3893 | fi | |
3894 | ||
3895 | if test "$XGETTEXT" != ":"; then | |
3896 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
3897 | (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 | |
3898 | : ; | |
3899 | else | |
3900 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
3901 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 | |
3902 | XGETTEXT=":" | |
3903 | fi | |
3904 | rm -f messages.po | |
3905 | fi | |
3906 | ||
3907 | ac_config_commands="$ac_config_commands default-1" | |
a64c9c13 | 3908 | |
b0cacab0 TT |
3909 | |
3910 | if test -n "$ac_tool_prefix"; then | |
3911 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3912 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3913 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3914 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3915 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a64c9c13 | 3917 | else |
b0cacab0 TT |
3918 | if test -n "$RANLIB"; then |
3919 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
a64c9c13 | 3920 | else |
b0cacab0 TT |
3921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3922 | for as_dir in $PATH | |
3923 | do | |
3924 | IFS=$as_save_IFS | |
3925 | test -z "$as_dir" && as_dir=. | |
3926 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3927 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3928 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3929 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3930 | break 2 | |
3931 | fi | |
3932 | done | |
3933 | done | |
07a0db15 | 3934 | |
93636bde | 3935 | fi |
b0cacab0 TT |
3936 | fi |
3937 | RANLIB=$ac_cv_prog_RANLIB | |
3938 | if test -n "$RANLIB"; then | |
3939 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3940 | echo "${ECHO_T}$RANLIB" >&6 | |
3941 | else | |
3942 | echo "$as_me:$LINENO: result: no" >&5 | |
3943 | echo "${ECHO_T}no" >&6 | |
3944 | fi | |
a64c9c13 TT |
3945 | |
3946 | fi | |
b0cacab0 TT |
3947 | if test -z "$ac_cv_prog_RANLIB"; then |
3948 | ac_ct_RANLIB=$RANLIB | |
3949 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3950 | set dummy ranlib; ac_word=$2 | |
3951 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3952 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3953 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3955 | else | |
3956 | if test -n "$ac_ct_RANLIB"; then | |
3957 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3958 | else | |
3959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3960 | for as_dir in $PATH | |
3961 | do | |
3962 | IFS=$as_save_IFS | |
3963 | test -z "$as_dir" && as_dir=. | |
3964 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3965 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3966 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3967 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3968 | break 2 | |
3969 | fi | |
3970 | done | |
3971 | done | |
a64c9c13 | 3972 | |
b0cacab0 | 3973 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
93636bde | 3974 | fi |
b0cacab0 TT |
3975 | fi |
3976 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3977 | if test -n "$ac_ct_RANLIB"; then | |
3978 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3979 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
3980 | else | |
3981 | echo "$as_me:$LINENO: result: no" >&5 | |
3982 | echo "${ECHO_T}no" >&6 | |
3983 | fi | |
3984 | ||
3985 | RANLIB=$ac_ct_RANLIB | |
3986 | else | |
3987 | RANLIB="$ac_cv_prog_RANLIB" | |
93636bde TT |
3988 | fi |
3989 | ||
a64c9c13 | 3990 | |
b0cacab0 TT |
3991 | echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
3992 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6 | |
3993 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then | |
3994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3995 | else | |
3996 | ac_check_lib_save_LIBS=$LIBS | |
3997 | LIBS="-lcposix $LIBS" | |
3998 | cat >conftest.$ac_ext <<_ACEOF | |
3999 | /* confdefs.h. */ | |
4000 | _ACEOF | |
4001 | cat confdefs.h >>conftest.$ac_ext | |
4002 | cat >>conftest.$ac_ext <<_ACEOF | |
4003 | /* end confdefs.h. */ | |
4004 | ||
4005 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4006 | #ifdef __cplusplus | |
4007 | extern "C" | |
4008 | #endif | |
4009 | /* We use char because int might match the return type of a gcc2 | |
4010 | builtin and then its argument prototype would still apply. */ | |
4011 | char strerror (); | |
4012 | int | |
4013 | main () | |
4014 | { | |
4015 | strerror (); | |
4016 | ; | |
4017 | return 0; | |
4018 | } | |
4019 | _ACEOF | |
4020 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4022 | (eval $ac_link) 2>conftest.er1 | |
4023 | ac_status=$? | |
4024 | grep -v '^ *+' conftest.er1 >conftest.err | |
4025 | rm -f conftest.er1 | |
4026 | cat conftest.err >&5 | |
4027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4028 | (exit $ac_status); } && | |
4029 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4031 | (eval $ac_try) 2>&5 | |
4032 | ac_status=$? | |
4033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4034 | (exit $ac_status); }; } && | |
4035 | { ac_try='test -s conftest$ac_exeext' | |
4036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4037 | (eval $ac_try) 2>&5 | |
4038 | ac_status=$? | |
4039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4040 | (exit $ac_status); }; }; then | |
4041 | ac_cv_lib_cposix_strerror=yes | |
4042 | else | |
4043 | echo "$as_me: failed program was:" >&5 | |
4044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4045 | ||
4046 | ac_cv_lib_cposix_strerror=no | |
4047 | fi | |
4048 | rm -f conftest.err conftest.$ac_objext \ | |
4049 | conftest$ac_exeext conftest.$ac_ext | |
4050 | LIBS=$ac_check_lib_save_LIBS | |
4051 | fi | |
4052 | echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 | |
4053 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6 | |
4054 | if test $ac_cv_lib_cposix_strerror = yes; then | |
4055 | LIBS="$LIBS -lcposix" | |
a64c9c13 TT |
4056 | fi |
4057 | ||
b0cacab0 TT |
4058 | |
4059 | ||
4060 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
4061 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
4062 | if test "${ac_cv_c_const+set}" = set; then | |
4063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a64c9c13 | 4064 | else |
b0cacab0 TT |
4065 | cat >conftest.$ac_ext <<_ACEOF |
4066 | /* confdefs.h. */ | |
4067 | _ACEOF | |
4068 | cat confdefs.h >>conftest.$ac_ext | |
4069 | cat >>conftest.$ac_ext <<_ACEOF | |
4070 | /* end confdefs.h. */ | |
93636bde | 4071 | |
b0cacab0 TT |
4072 | int |
4073 | main () | |
4074 | { | |
4075 | /* FIXME: Include the comments suggested by Paul. */ | |
4076 | #ifndef __cplusplus | |
4077 | /* Ultrix mips cc rejects this. */ | |
4078 | typedef int charset[2]; | |
4079 | const charset x; | |
4080 | /* SunOS 4.1.1 cc rejects this. */ | |
4081 | char const *const *ccp; | |
4082 | char **p; | |
4083 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
4084 | struct point {int x, y;}; | |
4085 | static struct point const zero = {0,0}; | |
4086 | /* AIX XL C 1.02.0.0 rejects this. | |
4087 | It does not let you subtract one const X* pointer from another in | |
4088 | an arm of an if-expression whose if-part is not a constant | |
4089 | expression */ | |
4090 | const char *g = "string"; | |
4091 | ccp = &g + (g ? g-g : 0); | |
4092 | /* HPUX 7.0 cc rejects these. */ | |
4093 | ++ccp; | |
4094 | p = (char**) ccp; | |
4095 | ccp = (char const *const *) p; | |
4096 | { /* SCO 3.2v4 cc rejects this. */ | |
4097 | char *t; | |
4098 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4099 | ||
4100 | *t++ = 0; | |
4101 | } | |
4102 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4103 | int x[] = {25, 17}; | |
4104 | const int *foo = &x[0]; | |
4105 | ++foo; | |
4106 | } | |
4107 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4108 | typedef const int *iptr; | |
4109 | iptr p = 0; | |
4110 | ++p; | |
4111 | } | |
4112 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4113 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4114 | struct s { int j; const int *ap[3]; }; | |
4115 | struct s *b; b->j = 5; | |
4116 | } | |
4117 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4118 | const int foo = 10; | |
4119 | } | |
a64c9c13 TT |
4120 | #endif |
4121 | ||
b0cacab0 TT |
4122 | ; |
4123 | return 0; | |
4124 | } | |
4125 | _ACEOF | |
4126 | rm -f conftest.$ac_objext | |
4127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4128 | (eval $ac_compile) 2>conftest.er1 | |
4129 | ac_status=$? | |
4130 | grep -v '^ *+' conftest.er1 >conftest.err | |
4131 | rm -f conftest.er1 | |
4132 | cat conftest.err >&5 | |
4133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4134 | (exit $ac_status); } && | |
4135 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4137 | (eval $ac_try) 2>&5 | |
4138 | ac_status=$? | |
4139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4140 | (exit $ac_status); }; } && | |
4141 | { ac_try='test -s conftest.$ac_objext' | |
4142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4143 | (eval $ac_try) 2>&5 | |
4144 | ac_status=$? | |
4145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4146 | (exit $ac_status); }; }; then | |
4147 | ac_cv_c_const=yes | |
a64c9c13 | 4148 | else |
b0cacab0 TT |
4149 | echo "$as_me: failed program was:" >&5 |
4150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4151 | ||
4152 | ac_cv_c_const=no | |
a64c9c13 | 4153 | fi |
b0cacab0 | 4154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a64c9c13 | 4155 | fi |
b0cacab0 TT |
4156 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
4157 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
4158 | if test $ac_cv_c_const = no; then | |
a64c9c13 | 4159 | |
b0cacab0 TT |
4160 | cat >>confdefs.h <<\_ACEOF |
4161 | #define const | |
4162 | _ACEOF | |
a64c9c13 | 4163 | |
93636bde | 4164 | fi |
07a0db15 | 4165 | |
a64c9c13 | 4166 | |
b0cacab0 TT |
4167 | echo "$as_me:$LINENO: checking for signed" >&5 |
4168 | echo $ECHO_N "checking for signed... $ECHO_C" >&6 | |
4169 | if test "${bh_cv_c_signed+set}" = set; then | |
4170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4171 | else | |
4172 | cat >conftest.$ac_ext <<_ACEOF | |
4173 | /* confdefs.h. */ | |
4174 | _ACEOF | |
4175 | cat confdefs.h >>conftest.$ac_ext | |
4176 | cat >>conftest.$ac_ext <<_ACEOF | |
4177 | /* end confdefs.h. */ | |
4178 | ||
4179 | int | |
4180 | main () | |
4181 | { | |
4182 | signed char x; | |
4183 | ; | |
4184 | return 0; | |
4185 | } | |
4186 | _ACEOF | |
4187 | rm -f conftest.$ac_objext | |
4188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4189 | (eval $ac_compile) 2>conftest.er1 | |
4190 | ac_status=$? | |
4191 | grep -v '^ *+' conftest.er1 >conftest.err | |
4192 | rm -f conftest.er1 | |
4193 | cat conftest.err >&5 | |
4194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4195 | (exit $ac_status); } && | |
4196 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4198 | (eval $ac_try) 2>&5 | |
4199 | ac_status=$? | |
4200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4201 | (exit $ac_status); }; } && | |
4202 | { ac_try='test -s conftest.$ac_objext' | |
4203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4204 | (eval $ac_try) 2>&5 | |
4205 | ac_status=$? | |
4206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4207 | (exit $ac_status); }; }; then | |
4208 | bh_cv_c_signed=yes | |
4209 | else | |
4210 | echo "$as_me: failed program was:" >&5 | |
4211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4212 | ||
4213 | bh_cv_c_signed=no | |
4214 | fi | |
4215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4216 | fi | |
4217 | echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 | |
4218 | echo "${ECHO_T}$bh_cv_c_signed" >&6 | |
4219 | if test $bh_cv_c_signed = no; then | |
4220 | ||
4221 | cat >>confdefs.h <<\_ACEOF | |
4222 | #define signed | |
4223 | _ACEOF | |
93636bde | 4224 | |
b0cacab0 TT |
4225 | fi |
4226 | ||
4227 | echo "$as_me:$LINENO: checking for inline" >&5 | |
4228 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
4229 | if test "${ac_cv_c_inline+set}" = set; then | |
4230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a64c9c13 | 4231 | else |
b0cacab0 TT |
4232 | ac_cv_c_inline=no |
4233 | for ac_kw in inline __inline__ __inline; do | |
4234 | cat >conftest.$ac_ext <<_ACEOF | |
4235 | /* confdefs.h. */ | |
4236 | _ACEOF | |
4237 | cat confdefs.h >>conftest.$ac_ext | |
4238 | cat >>conftest.$ac_ext <<_ACEOF | |
4239 | /* end confdefs.h. */ | |
4240 | #ifndef __cplusplus | |
4241 | typedef int foo_t; | |
4242 | static $ac_kw foo_t static_foo () {return 0; } | |
4243 | $ac_kw foo_t foo () {return 0; } | |
a64c9c13 TT |
4244 | #endif |
4245 | ||
b0cacab0 TT |
4246 | _ACEOF |
4247 | rm -f conftest.$ac_objext | |
4248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4249 | (eval $ac_compile) 2>conftest.er1 | |
4250 | ac_status=$? | |
4251 | grep -v '^ *+' conftest.er1 >conftest.err | |
4252 | rm -f conftest.er1 | |
4253 | cat conftest.err >&5 | |
4254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4255 | (exit $ac_status); } && | |
4256 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4258 | (eval $ac_try) 2>&5 | |
4259 | ac_status=$? | |
4260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4261 | (exit $ac_status); }; } && | |
4262 | { ac_try='test -s conftest.$ac_objext' | |
4263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4264 | (eval $ac_try) 2>&5 | |
4265 | ac_status=$? | |
4266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4267 | (exit $ac_status); }; }; then | |
4268 | ac_cv_c_inline=$ac_kw; break | |
a64c9c13 | 4269 | else |
b0cacab0 TT |
4270 | echo "$as_me: failed program was:" >&5 |
4271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a64c9c13 TT |
4272 | |
4273 | fi | |
b0cacab0 TT |
4274 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4275 | done | |
93636bde | 4276 | |
b0cacab0 TT |
4277 | fi |
4278 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
4279 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
93636bde | 4280 | |
a64c9c13 | 4281 | |
b0cacab0 TT |
4282 | case $ac_cv_c_inline in |
4283 | inline | yes) ;; | |
4284 | *) | |
4285 | case $ac_cv_c_inline in | |
4286 | no) ac_val=;; | |
4287 | *) ac_val=$ac_cv_c_inline;; | |
4288 | esac | |
4289 | cat >>confdefs.h <<_ACEOF | |
4290 | #ifndef __cplusplus | |
4291 | #define inline $ac_val | |
a64c9c13 | 4292 | #endif |
b0cacab0 TT |
4293 | _ACEOF |
4294 | ;; | |
4295 | esac | |
a64c9c13 | 4296 | |
b0cacab0 TT |
4297 | echo "$as_me:$LINENO: checking for off_t" >&5 |
4298 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
4299 | if test "${ac_cv_type_off_t+set}" = set; then | |
4300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4301 | else | |
4302 | cat >conftest.$ac_ext <<_ACEOF | |
4303 | /* confdefs.h. */ | |
4304 | _ACEOF | |
4305 | cat confdefs.h >>conftest.$ac_ext | |
4306 | cat >>conftest.$ac_ext <<_ACEOF | |
4307 | /* end confdefs.h. */ | |
4308 | $ac_includes_default | |
4309 | int | |
4310 | main () | |
4311 | { | |
4312 | if ((off_t *) 0) | |
4313 | return 0; | |
4314 | if (sizeof (off_t)) | |
4315 | return 0; | |
4316 | ; | |
4317 | return 0; | |
4318 | } | |
4319 | _ACEOF | |
4320 | rm -f conftest.$ac_objext | |
4321 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4322 | (eval $ac_compile) 2>conftest.er1 | |
4323 | ac_status=$? | |
4324 | grep -v '^ *+' conftest.er1 >conftest.err | |
4325 | rm -f conftest.er1 | |
4326 | cat conftest.err >&5 | |
4327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4328 | (exit $ac_status); } && | |
4329 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4331 | (eval $ac_try) 2>&5 | |
4332 | ac_status=$? | |
4333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4334 | (exit $ac_status); }; } && | |
4335 | { ac_try='test -s conftest.$ac_objext' | |
4336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4337 | (eval $ac_try) 2>&5 | |
4338 | ac_status=$? | |
4339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4340 | (exit $ac_status); }; }; then | |
4341 | ac_cv_type_off_t=yes | |
93636bde | 4342 | else |
b0cacab0 TT |
4343 | echo "$as_me: failed program was:" >&5 |
4344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4345 | ||
4346 | ac_cv_type_off_t=no | |
93636bde | 4347 | fi |
b0cacab0 | 4348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
93636bde | 4349 | fi |
b0cacab0 TT |
4350 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
4351 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
4352 | if test $ac_cv_type_off_t = yes; then | |
4353 | : | |
93636bde | 4354 | else |
a64c9c13 | 4355 | |
b0cacab0 TT |
4356 | cat >>confdefs.h <<_ACEOF |
4357 | #define off_t long | |
4358 | _ACEOF | |
4359 | ||
a64c9c13 TT |
4360 | fi |
4361 | ||
b0cacab0 TT |
4362 | echo "$as_me:$LINENO: checking for size_t" >&5 |
4363 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
4364 | if test "${ac_cv_type_size_t+set}" = set; then | |
4365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a64c9c13 | 4366 | else |
b0cacab0 TT |
4367 | cat >conftest.$ac_ext <<_ACEOF |
4368 | /* confdefs.h. */ | |
4369 | _ACEOF | |
4370 | cat confdefs.h >>conftest.$ac_ext | |
4371 | cat >>conftest.$ac_ext <<_ACEOF | |
4372 | /* end confdefs.h. */ | |
4373 | $ac_includes_default | |
4374 | int | |
a64c9c13 TT |
4375 | main () |
4376 | { | |
b0cacab0 TT |
4377 | if ((size_t *) 0) |
4378 | return 0; | |
4379 | if (sizeof (size_t)) | |
4380 | return 0; | |
4381 | ; | |
4382 | return 0; | |
a64c9c13 | 4383 | } |
b0cacab0 TT |
4384 | _ACEOF |
4385 | rm -f conftest.$ac_objext | |
4386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4387 | (eval $ac_compile) 2>conftest.er1 | |
4388 | ac_status=$? | |
4389 | grep -v '^ *+' conftest.er1 >conftest.err | |
4390 | rm -f conftest.er1 | |
4391 | cat conftest.err >&5 | |
4392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4393 | (exit $ac_status); } && | |
4394 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4396 | (eval $ac_try) 2>&5 | |
4397 | ac_status=$? | |
4398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4399 | (exit $ac_status); }; } && | |
4400 | { ac_try='test -s conftest.$ac_objext' | |
4401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4402 | (eval $ac_try) 2>&5 | |
4403 | ac_status=$? | |
4404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4405 | (exit $ac_status); }; }; then | |
4406 | ac_cv_type_size_t=yes | |
a64c9c13 | 4407 | else |
b0cacab0 TT |
4408 | echo "$as_me: failed program was:" >&5 |
4409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4410 | ||
4411 | ac_cv_type_size_t=no | |
a64c9c13 | 4412 | fi |
b0cacab0 | 4413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a64c9c13 | 4414 | fi |
b0cacab0 TT |
4415 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
4416 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
4417 | if test $ac_cv_type_size_t = yes; then | |
4418 | : | |
4419 | else | |
4420 | ||
4421 | cat >>confdefs.h <<_ACEOF | |
4422 | #define size_t unsigned | |
4423 | _ACEOF | |
93636bde | 4424 | |
a64c9c13 TT |
4425 | fi |
4426 | ||
a64c9c13 | 4427 | |
b0cacab0 TT |
4428 | echo "$as_me:$LINENO: checking for long long" >&5 |
4429 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
4430 | if test "${ac_cv_type_long_long+set}" = set; then | |
4431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4432 | else | |
4433 | cat >conftest.$ac_ext <<_ACEOF | |
4434 | /* confdefs.h. */ | |
4435 | _ACEOF | |
4436 | cat confdefs.h >>conftest.$ac_ext | |
4437 | cat >>conftest.$ac_ext <<_ACEOF | |
4438 | /* end confdefs.h. */ | |
4439 | long long ll = 1LL; int i = 63; | |
4440 | int | |
4441 | main () | |
4442 | { | |
4443 | long long llmax = (long long) -1; | |
4444 | return ll << i | ll >> i | llmax / ll | llmax % ll; | |
4445 | ; | |
4446 | return 0; | |
4447 | } | |
4448 | _ACEOF | |
4449 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4450 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4451 | (eval $ac_link) 2>conftest.er1 | |
4452 | ac_status=$? | |
4453 | grep -v '^ *+' conftest.er1 >conftest.err | |
4454 | rm -f conftest.er1 | |
4455 | cat conftest.err >&5 | |
4456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4457 | (exit $ac_status); } && | |
4458 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4460 | (eval $ac_try) 2>&5 | |
4461 | ac_status=$? | |
4462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4463 | (exit $ac_status); }; } && | |
4464 | { ac_try='test -s conftest$ac_exeext' | |
4465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4466 | (eval $ac_try) 2>&5 | |
4467 | ac_status=$? | |
4468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4469 | (exit $ac_status); }; }; then | |
4470 | ac_cv_type_long_long=yes | |
4471 | else | |
4472 | echo "$as_me: failed program was:" >&5 | |
4473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4474 | ||
4475 | ac_cv_type_long_long=no | |
4476 | fi | |
4477 | rm -f conftest.err conftest.$ac_objext \ | |
4478 | conftest$ac_exeext conftest.$ac_ext | |
4479 | fi | |
4480 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
4481 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
4482 | if test $ac_cv_type_long_long = yes; then | |
4483 | ||
4484 | cat >>confdefs.h <<\_ACEOF | |
4485 | #define HAVE_LONG_LONG 1 | |
4486 | _ACEOF | |
a64c9c13 | 4487 | |
b0cacab0 TT |
4488 | fi |
4489 | ||
4490 | ||
4491 | echo "$as_me:$LINENO: checking for long double" >&5 | |
4492 | echo $ECHO_N "checking for long double... $ECHO_C" >&6 | |
4493 | if test "${gt_cv_c_long_double+set}" = set; then | |
4494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
93636bde | 4495 | else |
b0cacab0 TT |
4496 | if test "$GCC" = yes; then |
4497 | gt_cv_c_long_double=yes | |
4498 | else | |
4499 | cat >conftest.$ac_ext <<_ACEOF | |
4500 | /* confdefs.h. */ | |
4501 | _ACEOF | |
4502 | cat confdefs.h >>conftest.$ac_ext | |
4503 | cat >>conftest.$ac_ext <<_ACEOF | |
4504 | /* end confdefs.h. */ | |
4505 | ||
4506 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ | |
4507 | long double foo = 0.0; | |
4508 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ | |
4509 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; | |
a64c9c13 | 4510 | |
b0cacab0 TT |
4511 | int |
4512 | main () | |
4513 | { | |
93636bde | 4514 | |
b0cacab0 TT |
4515 | ; |
4516 | return 0; | |
4517 | } | |
4518 | _ACEOF | |
4519 | rm -f conftest.$ac_objext | |
4520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4521 | (eval $ac_compile) 2>conftest.er1 | |
4522 | ac_status=$? | |
4523 | grep -v '^ *+' conftest.er1 >conftest.err | |
4524 | rm -f conftest.er1 | |
4525 | cat conftest.err >&5 | |
4526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4527 | (exit $ac_status); } && | |
4528 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4530 | (eval $ac_try) 2>&5 | |
4531 | ac_status=$? | |
4532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4533 | (exit $ac_status); }; } && | |
4534 | { ac_try='test -s conftest.$ac_objext' | |
4535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4536 | (eval $ac_try) 2>&5 | |
4537 | ac_status=$? | |
4538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4539 | (exit $ac_status); }; }; then | |
4540 | gt_cv_c_long_double=yes | |
4541 | else | |
4542 | echo "$as_me: failed program was:" >&5 | |
4543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4544 | ||
4545 | gt_cv_c_long_double=no | |
4546 | fi | |
4547 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4548 | fi | |
4549 | fi | |
4550 | echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 | |
4551 | echo "${ECHO_T}$gt_cv_c_long_double" >&6 | |
4552 | if test $gt_cv_c_long_double = yes; then | |
4553 | ||
4554 | cat >>confdefs.h <<\_ACEOF | |
4555 | #define HAVE_LONG_DOUBLE 1 | |
4556 | _ACEOF | |
a64c9c13 | 4557 | |
b0cacab0 | 4558 | fi |
a64c9c13 | 4559 | |
a64c9c13 | 4560 | |
b0cacab0 TT |
4561 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
4562 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
4563 | if test "${gt_cv_c_wchar_t+set}" = set; then | |
4564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
93636bde | 4565 | else |
b0cacab0 TT |
4566 | cat >conftest.$ac_ext <<_ACEOF |
4567 | /* confdefs.h. */ | |
4568 | _ACEOF | |
4569 | cat confdefs.h >>conftest.$ac_ext | |
4570 | cat >>conftest.$ac_ext <<_ACEOF | |
4571 | /* end confdefs.h. */ | |
4572 | #include <stddef.h> | |
4573 | wchar_t foo = (wchar_t)'\0'; | |
4574 | int | |
4575 | main () | |
4576 | { | |
a64c9c13 | 4577 | |
b0cacab0 TT |
4578 | ; |
4579 | return 0; | |
4580 | } | |
4581 | _ACEOF | |
4582 | rm -f conftest.$ac_objext | |
4583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4584 | (eval $ac_compile) 2>conftest.er1 | |
4585 | ac_status=$? | |
4586 | grep -v '^ *+' conftest.er1 >conftest.err | |
4587 | rm -f conftest.er1 | |
4588 | cat conftest.err >&5 | |
4589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4590 | (exit $ac_status); } && | |
4591 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4593 | (eval $ac_try) 2>&5 | |
4594 | ac_status=$? | |
4595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4596 | (exit $ac_status); }; } && | |
4597 | { ac_try='test -s conftest.$ac_objext' | |
4598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4599 | (eval $ac_try) 2>&5 | |
4600 | ac_status=$? | |
4601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4602 | (exit $ac_status); }; }; then | |
4603 | gt_cv_c_wchar_t=yes | |
4604 | else | |
4605 | echo "$as_me: failed program was:" >&5 | |
4606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4607 | ||
4608 | gt_cv_c_wchar_t=no | |
4609 | fi | |
4610 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4611 | fi | |
4612 | echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 | |
4613 | echo "${ECHO_T}$gt_cv_c_wchar_t" >&6 | |
4614 | if test $gt_cv_c_wchar_t = yes; then | |
4615 | ||
4616 | cat >>confdefs.h <<\_ACEOF | |
4617 | #define HAVE_WCHAR_T 1 | |
4618 | _ACEOF | |
4619 | ||
4620 | fi | |
4621 | ||
4622 | ||
4623 | echo "$as_me:$LINENO: checking for wint_t" >&5 | |
4624 | echo $ECHO_N "checking for wint_t... $ECHO_C" >&6 | |
4625 | if test "${gt_cv_c_wint_t+set}" = set; then | |
4626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a64c9c13 | 4627 | else |
b0cacab0 TT |
4628 | cat >conftest.$ac_ext <<_ACEOF |
4629 | /* confdefs.h. */ | |
4630 | _ACEOF | |
4631 | cat confdefs.h >>conftest.$ac_ext | |
4632 | cat >>conftest.$ac_ext <<_ACEOF | |
4633 | /* end confdefs.h. */ | |
4634 | #include <wchar.h> | |
4635 | wint_t foo = (wchar_t)'\0'; | |
4636 | int | |
4637 | main () | |
4638 | { | |
93636bde | 4639 | |
b0cacab0 TT |
4640 | ; |
4641 | return 0; | |
4642 | } | |
4643 | _ACEOF | |
4644 | rm -f conftest.$ac_objext | |
4645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4646 | (eval $ac_compile) 2>conftest.er1 | |
4647 | ac_status=$? | |
4648 | grep -v '^ *+' conftest.er1 >conftest.err | |
4649 | rm -f conftest.er1 | |
4650 | cat conftest.err >&5 | |
4651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4652 | (exit $ac_status); } && | |
4653 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4655 | (eval $ac_try) 2>&5 | |
4656 | ac_status=$? | |
4657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4658 | (exit $ac_status); }; } && | |
4659 | { ac_try='test -s conftest.$ac_objext' | |
4660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4661 | (eval $ac_try) 2>&5 | |
4662 | ac_status=$? | |
4663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4664 | (exit $ac_status); }; }; then | |
4665 | gt_cv_c_wint_t=yes | |
4666 | else | |
4667 | echo "$as_me: failed program was:" >&5 | |
4668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4669 | ||
4670 | gt_cv_c_wint_t=no | |
4671 | fi | |
4672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4673 | fi | |
4674 | echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 | |
4675 | echo "${ECHO_T}$gt_cv_c_wint_t" >&6 | |
4676 | if test $gt_cv_c_wint_t = yes; then | |
4677 | ||
4678 | cat >>confdefs.h <<\_ACEOF | |
4679 | #define HAVE_WINT_T 1 | |
4680 | _ACEOF | |
a64c9c13 | 4681 | |
b0cacab0 TT |
4682 | fi |
4683 | ||
4684 | ||
4685 | echo "$as_me:$LINENO: checking for inttypes.h" >&5 | |
4686 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 | |
4687 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then | |
4688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4689 | else | |
4690 | cat >conftest.$ac_ext <<_ACEOF | |
4691 | /* confdefs.h. */ | |
4692 | _ACEOF | |
4693 | cat confdefs.h >>conftest.$ac_ext | |
4694 | cat >>conftest.$ac_ext <<_ACEOF | |
4695 | /* end confdefs.h. */ | |
93636bde | 4696 | #include <sys/types.h> |
b0cacab0 TT |
4697 | #include <inttypes.h> |
4698 | int | |
4699 | main () | |
4700 | { | |
4701 | uintmax_t i = (uintmax_t) -1; | |
4702 | ; | |
4703 | return 0; | |
4704 | } | |
4705 | _ACEOF | |
4706 | rm -f conftest.$ac_objext | |
4707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4708 | (eval $ac_compile) 2>conftest.er1 | |
4709 | ac_status=$? | |
4710 | grep -v '^ *+' conftest.er1 >conftest.err | |
4711 | rm -f conftest.er1 | |
4712 | cat conftest.err >&5 | |
4713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4714 | (exit $ac_status); } && | |
4715 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4717 | (eval $ac_try) 2>&5 | |
4718 | ac_status=$? | |
4719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4720 | (exit $ac_status); }; } && | |
4721 | { ac_try='test -s conftest.$ac_objext' | |
4722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4723 | (eval $ac_try) 2>&5 | |
4724 | ac_status=$? | |
4725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4726 | (exit $ac_status); }; }; then | |
4727 | jm_ac_cv_header_inttypes_h=yes | |
4728 | else | |
4729 | echo "$as_me: failed program was:" >&5 | |
4730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a64c9c13 | 4731 | |
b0cacab0 TT |
4732 | jm_ac_cv_header_inttypes_h=no |
4733 | fi | |
4734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4735 | fi | |
4736 | echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 | |
4737 | echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6 | |
4738 | if test $jm_ac_cv_header_inttypes_h = yes; then | |
93636bde | 4739 | |
b0cacab0 TT |
4740 | cat >>confdefs.h <<_ACEOF |
4741 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 | |
4742 | _ACEOF | |
a64c9c13 | 4743 | |
b0cacab0 | 4744 | fi |
a64c9c13 | 4745 | |
a64c9c13 | 4746 | |
b0cacab0 TT |
4747 | echo "$as_me:$LINENO: checking for stdint.h" >&5 |
4748 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 | |
4749 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then | |
4750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4751 | else | |
4752 | cat >conftest.$ac_ext <<_ACEOF | |
4753 | /* confdefs.h. */ | |
4754 | _ACEOF | |
4755 | cat confdefs.h >>conftest.$ac_ext | |
4756 | cat >>conftest.$ac_ext <<_ACEOF | |
4757 | /* end confdefs.h. */ | |
4758 | #include <sys/types.h> | |
4759 | #include <stdint.h> | |
4760 | int | |
4761 | main () | |
4762 | { | |
4763 | uintmax_t i = (uintmax_t) -1; | |
4764 | ; | |
4765 | return 0; | |
4766 | } | |
4767 | _ACEOF | |
4768 | rm -f conftest.$ac_objext | |
4769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4770 | (eval $ac_compile) 2>conftest.er1 | |
4771 | ac_status=$? | |
4772 | grep -v '^ *+' conftest.er1 >conftest.err | |
4773 | rm -f conftest.er1 | |
4774 | cat conftest.err >&5 | |
4775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4776 | (exit $ac_status); } && | |
4777 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4779 | (eval $ac_try) 2>&5 | |
4780 | ac_status=$? | |
4781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4782 | (exit $ac_status); }; } && | |
4783 | { ac_try='test -s conftest.$ac_objext' | |
4784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4785 | (eval $ac_try) 2>&5 | |
4786 | ac_status=$? | |
4787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4788 | (exit $ac_status); }; }; then | |
4789 | jm_ac_cv_header_stdint_h=yes | |
4790 | else | |
4791 | echo "$as_me: failed program was:" >&5 | |
4792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4793 | ||
4794 | jm_ac_cv_header_stdint_h=no | |
4795 | fi | |
4796 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4797 | fi | |
4798 | echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 | |
4799 | echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6 | |
4800 | if test $jm_ac_cv_header_stdint_h = yes; then | |
4801 | ||
4802 | cat >>confdefs.h <<_ACEOF | |
4803 | #define HAVE_STDINT_H_WITH_UINTMAX 1 | |
4804 | _ACEOF | |
4805 | ||
4806 | fi | |
4807 | ||
4808 | ||
4809 | ||
4810 | ||
4811 | echo "$as_me:$LINENO: checking for intmax_t" >&5 | |
4812 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6 | |
4813 | if test "${gt_cv_c_intmax_t+set}" = set; then | |
4814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4815 | else | |
4816 | cat >conftest.$ac_ext <<_ACEOF | |
4817 | /* confdefs.h. */ | |
4818 | _ACEOF | |
4819 | cat confdefs.h >>conftest.$ac_ext | |
4820 | cat >>conftest.$ac_ext <<_ACEOF | |
4821 | /* end confdefs.h. */ | |
4822 | ||
4823 | #include <stddef.h> | |
4824 | #include <stdlib.h> | |
4825 | #if HAVE_STDINT_H_WITH_UINTMAX | |
4826 | #include <stdint.h> | |
4827 | #endif | |
4828 | #if HAVE_INTTYPES_H_WITH_UINTMAX | |
4829 | #include <inttypes.h> | |
93636bde TT |
4830 | #endif |
4831 | ||
a64c9c13 | 4832 | int |
b0cacab0 TT |
4833 | main () |
4834 | { | |
4835 | intmax_t x = -1; | |
4836 | ; | |
4837 | return 0; | |
a64c9c13 | 4838 | } |
b0cacab0 TT |
4839 | _ACEOF |
4840 | rm -f conftest.$ac_objext | |
4841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4842 | (eval $ac_compile) 2>conftest.er1 | |
4843 | ac_status=$? | |
4844 | grep -v '^ *+' conftest.er1 >conftest.err | |
4845 | rm -f conftest.er1 | |
4846 | cat conftest.err >&5 | |
4847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4848 | (exit $ac_status); } && | |
4849 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4851 | (eval $ac_try) 2>&5 | |
4852 | ac_status=$? | |
4853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4854 | (exit $ac_status); }; } && | |
4855 | { ac_try='test -s conftest.$ac_objext' | |
4856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4857 | (eval $ac_try) 2>&5 | |
4858 | ac_status=$? | |
4859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4860 | (exit $ac_status); }; }; then | |
4861 | gt_cv_c_intmax_t=yes | |
4862 | else | |
4863 | echo "$as_me: failed program was:" >&5 | |
4864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4865 | ||
4866 | gt_cv_c_intmax_t=no | |
4867 | fi | |
4868 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4869 | fi | |
4870 | echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 | |
4871 | echo "${ECHO_T}$gt_cv_c_intmax_t" >&6 | |
4872 | if test $gt_cv_c_intmax_t = yes; then | |
4873 | ||
4874 | cat >>confdefs.h <<\_ACEOF | |
4875 | #define HAVE_INTMAX_T 1 | |
4876 | _ACEOF | |
93636bde | 4877 | |
b0cacab0 TT |
4878 | fi |
4879 | ||
4880 | ||
4881 | ||
4882 | echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 | |
4883 | echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6 | |
4884 | if test "${gt_cv_func_printf_posix+set}" = set; then | |
4885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a64c9c13 | 4886 | else |
b0cacab0 TT |
4887 | |
4888 | if test "$cross_compiling" = yes; then | |
4889 | ||
4890 | cat >conftest.$ac_ext <<_ACEOF | |
4891 | /* confdefs.h. */ | |
4892 | _ACEOF | |
4893 | cat confdefs.h >>conftest.$ac_ext | |
4894 | cat >>conftest.$ac_ext <<_ACEOF | |
4895 | /* end confdefs.h. */ | |
4896 | ||
4897 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ | |
4898 | notposix | |
4899 | #endif | |
4900 | ||
4901 | _ACEOF | |
4902 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4903 | $EGREP "notposix" >/dev/null 2>&1; then | |
4904 | gt_cv_func_printf_posix="guessing no" | |
4905 | else | |
4906 | gt_cv_func_printf_posix="guessing yes" | |
a64c9c13 | 4907 | fi |
b0cacab0 TT |
4908 | rm -f conftest* |
4909 | ||
4910 | ||
4911 | else | |
4912 | cat >conftest.$ac_ext <<_ACEOF | |
4913 | /* confdefs.h. */ | |
4914 | _ACEOF | |
4915 | cat confdefs.h >>conftest.$ac_ext | |
4916 | cat >>conftest.$ac_ext <<_ACEOF | |
4917 | /* end confdefs.h. */ | |
4918 | ||
4919 | #include <stdio.h> | |
4920 | #include <string.h> | |
4921 | /* The string "%2$d %1$d", with dollar characters protected from the shell's | |
4922 | dollar expansion (possibly an autoconf bug). */ | |
4923 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; | |
4924 | static char buf[100]; | |
4925 | int main () | |
4926 | { | |
4927 | sprintf (buf, format, 33, 55); | |
4928 | return (strcmp (buf, "55 33") != 0); | |
4929 | } | |
4930 | _ACEOF | |
4931 | rm -f conftest$ac_exeext | |
4932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4933 | (eval $ac_link) 2>&5 | |
4934 | ac_status=$? | |
4935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4936 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4938 | (eval $ac_try) 2>&5 | |
4939 | ac_status=$? | |
4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4941 | (exit $ac_status); }; }; then | |
4942 | gt_cv_func_printf_posix=yes | |
4943 | else | |
4944 | echo "$as_me: program exited with status $ac_status" >&5 | |
4945 | echo "$as_me: failed program was:" >&5 | |
4946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4947 | ||
4948 | ( exit $ac_status ) | |
4949 | gt_cv_func_printf_posix=no | |
4950 | fi | |
4951 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
a64c9c13 | 4952 | fi |
93636bde | 4953 | |
a64c9c13 | 4954 | fi |
b0cacab0 TT |
4955 | echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 |
4956 | echo "${ECHO_T}$gt_cv_func_printf_posix" >&6 | |
4957 | case $gt_cv_func_printf_posix in | |
4958 | *yes) | |
07a0db15 | 4959 | |
b0cacab0 TT |
4960 | cat >>confdefs.h <<\_ACEOF |
4961 | #define HAVE_POSIX_PRINTF 1 | |
4962 | _ACEOF | |
4963 | ||
4964 | ;; | |
4965 | esac | |
4966 | ||
4967 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
4968 | # for constant arguments. Useless! | |
4969 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
4970 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
4971 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
4972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4973 | else | |
4974 | cat >conftest.$ac_ext <<_ACEOF | |
4975 | /* confdefs.h. */ | |
4976 | _ACEOF | |
4977 | cat confdefs.h >>conftest.$ac_ext | |
4978 | cat >>conftest.$ac_ext <<_ACEOF | |
4979 | /* end confdefs.h. */ | |
4980 | #include <alloca.h> | |
4981 | int | |
4982 | main () | |
4983 | { | |
4984 | char *p = (char *) alloca (2 * sizeof (int)); | |
4985 | ; | |
4986 | return 0; | |
4987 | } | |
4988 | _ACEOF | |
4989 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4991 | (eval $ac_link) 2>conftest.er1 | |
4992 | ac_status=$? | |
4993 | grep -v '^ *+' conftest.er1 >conftest.err | |
4994 | rm -f conftest.er1 | |
4995 | cat conftest.err >&5 | |
4996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4997 | (exit $ac_status); } && | |
4998 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5000 | (eval $ac_try) 2>&5 | |
5001 | ac_status=$? | |
5002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5003 | (exit $ac_status); }; } && | |
5004 | { ac_try='test -s conftest$ac_exeext' | |
5005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5006 | (eval $ac_try) 2>&5 | |
5007 | ac_status=$? | |
5008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5009 | (exit $ac_status); }; }; then | |
5010 | ac_cv_working_alloca_h=yes | |
5011 | else | |
5012 | echo "$as_me: failed program was:" >&5 | |
5013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5014 | ||
5015 | ac_cv_working_alloca_h=no | |
5016 | fi | |
5017 | rm -f conftest.err conftest.$ac_objext \ | |
5018 | conftest$ac_exeext conftest.$ac_ext | |
5019 | fi | |
5020 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
5021 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
5022 | if test $ac_cv_working_alloca_h = yes; then | |
5023 | ||
5024 | cat >>confdefs.h <<\_ACEOF | |
5025 | #define HAVE_ALLOCA_H 1 | |
5026 | _ACEOF | |
a64c9c13 TT |
5027 | |
5028 | fi | |
5029 | ||
b0cacab0 TT |
5030 | echo "$as_me:$LINENO: checking for alloca" >&5 |
5031 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
5032 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
5033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5034 | else | |
5035 | cat >conftest.$ac_ext <<_ACEOF | |
5036 | /* confdefs.h. */ | |
5037 | _ACEOF | |
5038 | cat confdefs.h >>conftest.$ac_ext | |
5039 | cat >>conftest.$ac_ext <<_ACEOF | |
5040 | /* end confdefs.h. */ | |
5041 | #ifdef __GNUC__ | |
5042 | # define alloca __builtin_alloca | |
5043 | #else | |
5044 | # ifdef _MSC_VER | |
5045 | # include <malloc.h> | |
5046 | # define alloca _alloca | |
5047 | # else | |
5048 | # if HAVE_ALLOCA_H | |
5049 | # include <alloca.h> | |
5050 | # else | |
5051 | # ifdef _AIX | |
5052 | #pragma alloca | |
5053 | # else | |
5054 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5055 | char *alloca (); | |
5056 | # endif | |
5057 | # endif | |
5058 | # endif | |
5059 | # endif | |
5060 | #endif | |
93636bde | 5061 | |
b0cacab0 TT |
5062 | int |
5063 | main () | |
5064 | { | |
5065 | char *p = (char *) alloca (1); | |
5066 | ; | |
5067 | return 0; | |
5068 | } | |
5069 | _ACEOF | |
5070 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5071 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5072 | (eval $ac_link) 2>conftest.er1 | |
5073 | ac_status=$? | |
5074 | grep -v '^ *+' conftest.er1 >conftest.err | |
5075 | rm -f conftest.er1 | |
5076 | cat conftest.err >&5 | |
5077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5078 | (exit $ac_status); } && | |
5079 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5081 | (eval $ac_try) 2>&5 | |
5082 | ac_status=$? | |
5083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5084 | (exit $ac_status); }; } && | |
5085 | { ac_try='test -s conftest$ac_exeext' | |
5086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5087 | (eval $ac_try) 2>&5 | |
5088 | ac_status=$? | |
5089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5090 | (exit $ac_status); }; }; then | |
5091 | ac_cv_func_alloca_works=yes | |
a64c9c13 | 5092 | else |
b0cacab0 TT |
5093 | echo "$as_me: failed program was:" >&5 |
5094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a04eba3f | 5095 | |
b0cacab0 TT |
5096 | ac_cv_func_alloca_works=no |
5097 | fi | |
5098 | rm -f conftest.err conftest.$ac_objext \ | |
5099 | conftest$ac_exeext conftest.$ac_ext | |
5100 | fi | |
5101 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | |
5102 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
5103 | ||
5104 | if test $ac_cv_func_alloca_works = yes; then | |
5105 | ||
5106 | cat >>confdefs.h <<\_ACEOF | |
5107 | #define HAVE_ALLOCA 1 | |
5108 | _ACEOF | |
5109 | ||
5110 | else | |
5111 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
5112 | # that cause trouble. Some versions do not even contain alloca or | |
5113 | # contain a buggy version. If you still want to use their alloca, | |
5114 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
5115 | ||
5116 | ALLOCA=alloca.$ac_objext | |
5117 | ||
5118 | cat >>confdefs.h <<\_ACEOF | |
5119 | #define C_ALLOCA 1 | |
5120 | _ACEOF | |
5121 | ||
5122 | ||
5123 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
5124 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
5125 | if test "${ac_cv_os_cray+set}" = set; then | |
5126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5127 | else | |
5128 | cat >conftest.$ac_ext <<_ACEOF | |
5129 | /* confdefs.h. */ | |
5130 | _ACEOF | |
5131 | cat confdefs.h >>conftest.$ac_ext | |
5132 | cat >>conftest.$ac_ext <<_ACEOF | |
5133 | /* end confdefs.h. */ | |
5134 | #if defined(CRAY) && ! defined(CRAY2) | |
5135 | webecray | |
5136 | #else | |
5137 | wenotbecray | |
a04eba3f | 5138 | #endif |
b0cacab0 TT |
5139 | |
5140 | _ACEOF | |
a04eba3f | 5141 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b0cacab0 TT |
5142 | $EGREP "webecray" >/dev/null 2>&1; then |
5143 | ac_cv_os_cray=yes | |
a64c9c13 | 5144 | else |
b0cacab0 | 5145 | ac_cv_os_cray=no |
a64c9c13 TT |
5146 | fi |
5147 | rm -f conftest* | |
a04eba3f | 5148 | |
a64c9c13 | 5149 | fi |
b0cacab0 TT |
5150 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
5151 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
5152 | if test $ac_cv_os_cray = yes; then | |
5153 | for ac_func in _getb67 GETB67 getb67; do | |
5154 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5155 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5156 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5157 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5159 | else | |
5160 | cat >conftest.$ac_ext <<_ACEOF | |
5161 | /* confdefs.h. */ | |
5162 | _ACEOF | |
5163 | cat confdefs.h >>conftest.$ac_ext | |
5164 | cat >>conftest.$ac_ext <<_ACEOF | |
5165 | /* end confdefs.h. */ | |
5166 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5167 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5168 | #define $ac_func innocuous_$ac_func | |
a64c9c13 | 5169 | |
b0cacab0 TT |
5170 | /* System header to define __stub macros and hopefully few prototypes, |
5171 | which can conflict with char $ac_func (); below. | |
5172 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5173 | <limits.h> exists even on freestanding compilers. */ | |
07a0db15 | 5174 | |
b0cacab0 TT |
5175 | #ifdef __STDC__ |
5176 | # include <limits.h> | |
5177 | #else | |
5178 | # include <assert.h> | |
5179 | #endif | |
a64c9c13 | 5180 | |
b0cacab0 | 5181 | #undef $ac_func |
a64c9c13 | 5182 | |
b0cacab0 | 5183 | /* Override any gcc2 internal prototype to avoid an error. */ |
a04eba3f | 5184 | #ifdef __cplusplus |
b0cacab0 TT |
5185 | extern "C" |
5186 | { | |
5187 | #endif | |
5188 | /* We use char because int might match the return type of a gcc2 | |
5189 | builtin and then its argument prototype would still apply. */ | |
5190 | char $ac_func (); | |
5191 | /* The GNU C library defines this for functions which it implements | |
5192 | to always fail with ENOSYS. Some functions are actually named | |
5193 | something starting with __ and the normal name is an alias. */ | |
5194 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5195 | choke me | |
a64c9c13 | 5196 | #else |
b0cacab0 | 5197 | char (*f) () = $ac_func; |
a64c9c13 | 5198 | #endif |
b0cacab0 TT |
5199 | #ifdef __cplusplus |
5200 | } | |
5201 | #endif | |
5202 | ||
5203 | int | |
5204 | main () | |
a04eba3f | 5205 | { |
b0cacab0 TT |
5206 | return f != $ac_func; |
5207 | ; | |
5208 | return 0; | |
a04eba3f | 5209 | } |
b0cacab0 TT |
5210 | _ACEOF |
5211 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5213 | (eval $ac_link) 2>conftest.er1 | |
5214 | ac_status=$? | |
5215 | grep -v '^ *+' conftest.er1 >conftest.err | |
5216 | rm -f conftest.er1 | |
5217 | cat conftest.err >&5 | |
5218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5219 | (exit $ac_status); } && | |
5220 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5222 | (eval $ac_try) 2>&5 | |
5223 | ac_status=$? | |
5224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5225 | (exit $ac_status); }; } && | |
5226 | { ac_try='test -s conftest$ac_exeext' | |
5227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5228 | (eval $ac_try) 2>&5 | |
5229 | ac_status=$? | |
5230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5231 | (exit $ac_status); }; }; then | |
5232 | eval "$as_ac_var=yes" | |
5233 | else | |
5234 | echo "$as_me: failed program was:" >&5 | |
5235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5236 | ||
5237 | eval "$as_ac_var=no" | |
5238 | fi | |
5239 | rm -f conftest.err conftest.$ac_objext \ | |
5240 | conftest$ac_exeext conftest.$ac_ext | |
5241 | fi | |
5242 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5243 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5244 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5245 | ||
5246 | cat >>confdefs.h <<_ACEOF | |
5247 | #define CRAY_STACKSEG_END $ac_func | |
5248 | _ACEOF | |
a04eba3f | 5249 | |
b0cacab0 TT |
5250 | break |
5251 | fi | |
a04eba3f | 5252 | |
b0cacab0 TT |
5253 | done |
5254 | fi | |
5255 | ||
5256 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | |
5257 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
5258 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
5259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5260 | else | |
5261 | if test "$cross_compiling" = yes; then | |
5262 | ac_cv_c_stack_direction=0 | |
5263 | else | |
5264 | cat >conftest.$ac_ext <<_ACEOF | |
5265 | /* confdefs.h. */ | |
5266 | _ACEOF | |
5267 | cat confdefs.h >>conftest.$ac_ext | |
5268 | cat >>conftest.$ac_ext <<_ACEOF | |
5269 | /* end confdefs.h. */ | |
5270 | int | |
5271 | find_stack_direction () | |
5272 | { | |
5273 | static char *addr = 0; | |
5274 | auto char dummy; | |
5275 | if (addr == 0) | |
5276 | { | |
5277 | addr = &dummy; | |
5278 | return find_stack_direction (); | |
5279 | } | |
5280 | else | |
5281 | return (&dummy > addr) ? 1 : -1; | |
5282 | } | |
5283 | ||
5284 | int | |
5285 | main () | |
5286 | { | |
5287 | exit (find_stack_direction () < 0); | |
5288 | } | |
5289 | _ACEOF | |
5290 | rm -f conftest$ac_exeext | |
5291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5292 | (eval $ac_link) 2>&5 | |
5293 | ac_status=$? | |
5294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5295 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5297 | (eval $ac_try) 2>&5 | |
5298 | ac_status=$? | |
5299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5300 | (exit $ac_status); }; }; then | |
5301 | ac_cv_c_stack_direction=1 | |
5302 | else | |
5303 | echo "$as_me: program exited with status $ac_status" >&5 | |
5304 | echo "$as_me: failed program was:" >&5 | |
5305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5306 | ||
5307 | ( exit $ac_status ) | |
5308 | ac_cv_c_stack_direction=-1 | |
5309 | fi | |
5310 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5311 | fi | |
5312 | fi | |
5313 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | |
5314 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
5315 | ||
5316 | cat >>confdefs.h <<_ACEOF | |
5317 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
5318 | _ACEOF | |
5319 | ||
5320 | ||
5321 | fi | |
5322 | ||
5323 | ||
5324 | ||
5325 | for ac_header in stdlib.h unistd.h | |
5326 | do | |
5327 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5328 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5329 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5330 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5331 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5333 | fi | |
5334 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5335 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5336 | else | |
5337 | # Is the header compilable? | |
5338 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5339 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5340 | cat >conftest.$ac_ext <<_ACEOF | |
5341 | /* confdefs.h. */ | |
5342 | _ACEOF | |
5343 | cat confdefs.h >>conftest.$ac_ext | |
5344 | cat >>conftest.$ac_ext <<_ACEOF | |
5345 | /* end confdefs.h. */ | |
5346 | $ac_includes_default | |
5347 | #include <$ac_header> | |
5348 | _ACEOF | |
5349 | rm -f conftest.$ac_objext | |
5350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5351 | (eval $ac_compile) 2>conftest.er1 | |
5352 | ac_status=$? | |
5353 | grep -v '^ *+' conftest.er1 >conftest.err | |
5354 | rm -f conftest.er1 | |
5355 | cat conftest.err >&5 | |
5356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5357 | (exit $ac_status); } && | |
5358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5360 | (eval $ac_try) 2>&5 | |
5361 | ac_status=$? | |
5362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5363 | (exit $ac_status); }; } && | |
5364 | { ac_try='test -s conftest.$ac_objext' | |
5365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5366 | (eval $ac_try) 2>&5 | |
5367 | ac_status=$? | |
5368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5369 | (exit $ac_status); }; }; then | |
5370 | ac_header_compiler=yes | |
5371 | else | |
5372 | echo "$as_me: failed program was:" >&5 | |
5373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5374 | ||
5375 | ac_header_compiler=no | |
5376 | fi | |
5377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5378 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5379 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5380 | ||
5381 | # Is the header present? | |
5382 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5383 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5384 | cat >conftest.$ac_ext <<_ACEOF | |
5385 | /* confdefs.h. */ | |
5386 | _ACEOF | |
5387 | cat confdefs.h >>conftest.$ac_ext | |
5388 | cat >>conftest.$ac_ext <<_ACEOF | |
5389 | /* end confdefs.h. */ | |
5390 | #include <$ac_header> | |
5391 | _ACEOF | |
5392 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5393 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5394 | ac_status=$? | |
5395 | grep -v '^ *+' conftest.er1 >conftest.err | |
5396 | rm -f conftest.er1 | |
5397 | cat conftest.err >&5 | |
5398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5399 | (exit $ac_status); } >/dev/null; then | |
5400 | if test -s conftest.err; then | |
5401 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5402 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5403 | else | |
5404 | ac_cpp_err= | |
5405 | fi | |
5406 | else | |
5407 | ac_cpp_err=yes | |
5408 | fi | |
5409 | if test -z "$ac_cpp_err"; then | |
5410 | ac_header_preproc=yes | |
5411 | else | |
5412 | echo "$as_me: failed program was:" >&5 | |
5413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5414 | ||
5415 | ac_header_preproc=no | |
5416 | fi | |
5417 | rm -f conftest.err conftest.$ac_ext | |
5418 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5419 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5420 | ||
5421 | # So? What about this header? | |
5422 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5423 | yes:no: ) | |
5424 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5425 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5426 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5427 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5428 | ac_header_preproc=yes | |
5429 | ;; | |
5430 | no:yes:* ) | |
5431 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5432 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5433 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5434 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5435 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5436 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5437 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5438 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5439 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5440 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5441 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5442 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5443 | ( | |
5444 | cat <<\_ASBOX | |
5445 | ## ------------------------------------------ ## | |
5446 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5447 | ## ------------------------------------------ ## | |
5448 | _ASBOX | |
5449 | ) | | |
5450 | sed "s/^/$as_me: WARNING: /" >&2 | |
5451 | ;; | |
5452 | esac | |
5453 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5454 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5455 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5457 | else | |
5458 | eval "$as_ac_Header=\$ac_header_preproc" | |
5459 | fi | |
5460 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5461 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5462 | ||
5463 | fi | |
5464 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5465 | cat >>confdefs.h <<_ACEOF | |
5466 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5467 | _ACEOF | |
5468 | ||
5469 | fi | |
5470 | ||
5471 | done | |
5472 | ||
5473 | ||
5474 | for ac_func in getpagesize | |
5475 | do | |
5476 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5477 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5478 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5479 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5481 | else | |
5482 | cat >conftest.$ac_ext <<_ACEOF | |
5483 | /* confdefs.h. */ | |
5484 | _ACEOF | |
5485 | cat confdefs.h >>conftest.$ac_ext | |
5486 | cat >>conftest.$ac_ext <<_ACEOF | |
5487 | /* end confdefs.h. */ | |
5488 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5489 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5490 | #define $ac_func innocuous_$ac_func | |
5491 | ||
5492 | /* System header to define __stub macros and hopefully few prototypes, | |
5493 | which can conflict with char $ac_func (); below. | |
5494 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5495 | <limits.h> exists even on freestanding compilers. */ | |
5496 | ||
5497 | #ifdef __STDC__ | |
5498 | # include <limits.h> | |
5499 | #else | |
5500 | # include <assert.h> | |
5501 | #endif | |
5502 | ||
5503 | #undef $ac_func | |
5504 | ||
5505 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5506 | #ifdef __cplusplus | |
5507 | extern "C" | |
5508 | { | |
5509 | #endif | |
5510 | /* We use char because int might match the return type of a gcc2 | |
5511 | builtin and then its argument prototype would still apply. */ | |
5512 | char $ac_func (); | |
5513 | /* The GNU C library defines this for functions which it implements | |
5514 | to always fail with ENOSYS. Some functions are actually named | |
5515 | something starting with __ and the normal name is an alias. */ | |
5516 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5517 | choke me | |
5518 | #else | |
5519 | char (*f) () = $ac_func; | |
5520 | #endif | |
5521 | #ifdef __cplusplus | |
5522 | } | |
5523 | #endif | |
5524 | ||
5525 | int | |
5526 | main () | |
5527 | { | |
5528 | return f != $ac_func; | |
5529 | ; | |
5530 | return 0; | |
5531 | } | |
5532 | _ACEOF | |
5533 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5535 | (eval $ac_link) 2>conftest.er1 | |
5536 | ac_status=$? | |
5537 | grep -v '^ *+' conftest.er1 >conftest.err | |
5538 | rm -f conftest.er1 | |
5539 | cat conftest.err >&5 | |
5540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5541 | (exit $ac_status); } && | |
5542 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5544 | (eval $ac_try) 2>&5 | |
5545 | ac_status=$? | |
5546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5547 | (exit $ac_status); }; } && | |
5548 | { ac_try='test -s conftest$ac_exeext' | |
5549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5550 | (eval $ac_try) 2>&5 | |
5551 | ac_status=$? | |
5552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5553 | (exit $ac_status); }; }; then | |
5554 | eval "$as_ac_var=yes" | |
5555 | else | |
5556 | echo "$as_me: failed program was:" >&5 | |
5557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5558 | ||
5559 | eval "$as_ac_var=no" | |
5560 | fi | |
5561 | rm -f conftest.err conftest.$ac_objext \ | |
5562 | conftest$ac_exeext conftest.$ac_ext | |
5563 | fi | |
5564 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5565 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5566 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5567 | cat >>confdefs.h <<_ACEOF | |
5568 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5569 | _ACEOF | |
5570 | ||
5571 | fi | |
5572 | done | |
5573 | ||
5574 | echo "$as_me:$LINENO: checking for working mmap" >&5 | |
5575 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
5576 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
5577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5578 | else | |
5579 | if test "$cross_compiling" = yes; then | |
5580 | ac_cv_func_mmap_fixed_mapped=no | |
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 | $ac_includes_default | |
5589 | /* malloc might have been renamed as rpl_malloc. */ | |
5590 | #undef malloc | |
5591 | ||
5592 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
5593 | Here is a matrix of mmap possibilities: | |
5594 | mmap private not fixed | |
5595 | mmap private fixed at somewhere currently unmapped | |
5596 | mmap private fixed at somewhere already mapped | |
5597 | mmap shared not fixed | |
5598 | mmap shared fixed at somewhere currently unmapped | |
5599 | mmap shared fixed at somewhere already mapped | |
5600 | For private mappings, we should verify that changes cannot be read() | |
5601 | back from the file, nor mmap's back from the file at a different | |
5602 | address. (There have been systems where private was not correctly | |
5603 | implemented like the infamous i386 svr4.0, and systems where the | |
5604 | VM page cache was not coherent with the file system buffer cache | |
5605 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
5606 | For shared mappings, we should conversely verify that changes get | |
5607 | propagated back to all the places they're supposed to be. | |
5608 | ||
5609 | Grep wants private fixed already mapped. | |
5610 | The main things grep needs to know about mmap are: | |
5611 | * does it exist and is it safe to write into the mmap'd area | |
5612 | * how to use it (BSD variants) */ | |
5613 | ||
5614 | #include <fcntl.h> | |
5615 | #include <sys/mman.h> | |
5616 | ||
5617 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
5618 | char *malloc (); | |
5619 | #endif | |
5620 | ||
5621 | /* This mess was copied from the GNU getpagesize.h. */ | |
5622 | #if !HAVE_GETPAGESIZE | |
5623 | /* Assume that all systems that can run configure have sys/param.h. */ | |
5624 | # if !HAVE_SYS_PARAM_H | |
5625 | # define HAVE_SYS_PARAM_H 1 | |
5626 | # endif | |
5627 | ||
5628 | # ifdef _SC_PAGESIZE | |
5629 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
5630 | # else /* no _SC_PAGESIZE */ | |
5631 | # if HAVE_SYS_PARAM_H | |
5632 | # include <sys/param.h> | |
5633 | # ifdef EXEC_PAGESIZE | |
5634 | # define getpagesize() EXEC_PAGESIZE | |
5635 | # else /* no EXEC_PAGESIZE */ | |
5636 | # ifdef NBPG | |
5637 | # define getpagesize() NBPG * CLSIZE | |
5638 | # ifndef CLSIZE | |
5639 | # define CLSIZE 1 | |
5640 | # endif /* no CLSIZE */ | |
5641 | # else /* no NBPG */ | |
5642 | # ifdef NBPC | |
5643 | # define getpagesize() NBPC | |
5644 | # else /* no NBPC */ | |
5645 | # ifdef PAGESIZE | |
5646 | # define getpagesize() PAGESIZE | |
5647 | # endif /* PAGESIZE */ | |
5648 | # endif /* no NBPC */ | |
5649 | # endif /* no NBPG */ | |
5650 | # endif /* no EXEC_PAGESIZE */ | |
5651 | # else /* no HAVE_SYS_PARAM_H */ | |
5652 | # define getpagesize() 8192 /* punt totally */ | |
5653 | # endif /* no HAVE_SYS_PARAM_H */ | |
5654 | # endif /* no _SC_PAGESIZE */ | |
5655 | ||
5656 | #endif /* no HAVE_GETPAGESIZE */ | |
5657 | ||
5658 | int | |
5659 | main () | |
5660 | { | |
5661 | char *data, *data2, *data3; | |
5662 | int i, pagesize; | |
5663 | int fd; | |
5664 | ||
5665 | pagesize = getpagesize (); | |
5666 | ||
5667 | /* First, make a file with some known garbage in it. */ | |
5668 | data = (char *) malloc (pagesize); | |
5669 | if (!data) | |
5670 | exit (1); | |
5671 | for (i = 0; i < pagesize; ++i) | |
5672 | *(data + i) = rand (); | |
5673 | umask (0); | |
5674 | fd = creat ("conftest.mmap", 0600); | |
5675 | if (fd < 0) | |
5676 | exit (1); | |
5677 | if (write (fd, data, pagesize) != pagesize) | |
5678 | exit (1); | |
5679 | close (fd); | |
5680 | ||
5681 | /* Next, try to mmap the file at a fixed address which already has | |
5682 | something else allocated at it. If we can, also make sure that | |
5683 | we see the same garbage. */ | |
5684 | fd = open ("conftest.mmap", O_RDWR); | |
5685 | if (fd < 0) | |
5686 | exit (1); | |
5687 | data2 = (char *) malloc (2 * pagesize); | |
5688 | if (!data2) | |
5689 | exit (1); | |
5690 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
5691 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
5692 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
5693 | exit (1); | |
5694 | for (i = 0; i < pagesize; ++i) | |
5695 | if (*(data + i) != *(data2 + i)) | |
5696 | exit (1); | |
5697 | ||
5698 | /* Finally, make sure that changes to the mapped area do not | |
5699 | percolate back to the file as seen by read(). (This is a bug on | |
5700 | some variants of i386 svr4.0.) */ | |
5701 | for (i = 0; i < pagesize; ++i) | |
5702 | *(data2 + i) = *(data2 + i) + 1; | |
5703 | data3 = (char *) malloc (pagesize); | |
5704 | if (!data3) | |
5705 | exit (1); | |
5706 | if (read (fd, data3, pagesize) != pagesize) | |
5707 | exit (1); | |
5708 | for (i = 0; i < pagesize; ++i) | |
5709 | if (*(data + i) != *(data3 + i)) | |
5710 | exit (1); | |
5711 | close (fd); | |
5712 | exit (0); | |
5713 | } | |
5714 | _ACEOF | |
5715 | rm -f conftest$ac_exeext | |
5716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5717 | (eval $ac_link) 2>&5 | |
5718 | ac_status=$? | |
5719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5720 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5722 | (eval $ac_try) 2>&5 | |
5723 | ac_status=$? | |
5724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5725 | (exit $ac_status); }; }; then | |
5726 | ac_cv_func_mmap_fixed_mapped=yes | |
5727 | else | |
5728 | echo "$as_me: program exited with status $ac_status" >&5 | |
5729 | echo "$as_me: failed program was:" >&5 | |
5730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5731 | ||
5732 | ( exit $ac_status ) | |
5733 | ac_cv_func_mmap_fixed_mapped=no | |
5734 | fi | |
5735 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5736 | fi | |
5737 | fi | |
5738 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
5739 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
5740 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
5741 | ||
5742 | cat >>confdefs.h <<\_ACEOF | |
5743 | #define HAVE_MMAP 1 | |
5744 | _ACEOF | |
5745 | ||
5746 | fi | |
5747 | rm -f conftest.mmap | |
5748 | ||
5749 | ||
5750 | echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 | |
5751 | echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 | |
5752 | if test "${ac_cv_gnu_library_2_1+set}" = set; then | |
5753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5754 | else | |
5755 | cat >conftest.$ac_ext <<_ACEOF | |
5756 | /* confdefs.h. */ | |
5757 | _ACEOF | |
5758 | cat confdefs.h >>conftest.$ac_ext | |
5759 | cat >>conftest.$ac_ext <<_ACEOF | |
5760 | /* end confdefs.h. */ | |
5761 | ||
5762 | #include <features.h> | |
5763 | #ifdef __GNU_LIBRARY__ | |
5764 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) | |
5765 | Lucky GNU user | |
5766 | #endif | |
5767 | #endif | |
5768 | ||
5769 | _ACEOF | |
5770 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5771 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then | |
5772 | ac_cv_gnu_library_2_1=yes | |
5773 | else | |
5774 | ac_cv_gnu_library_2_1=no | |
5775 | fi | |
5776 | rm -f conftest* | |
5777 | ||
5778 | ||
5779 | ||
5780 | fi | |
5781 | echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 | |
5782 | echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 | |
5783 | ||
5784 | GLIBC21="$ac_cv_gnu_library_2_1" | |
5785 | ||
5786 | ||
5787 | ||
5788 | ||
5789 | echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 | |
5790 | echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6 | |
5791 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then | |
5792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5793 | else | |
5794 | ||
5795 | if test "$cross_compiling" = yes; then | |
5796 | ||
5797 | # Guess based on the CPU. | |
5798 | case "$host_cpu" in | |
5799 | alpha* | i3456786 | m68k | s390*) | |
5800 | gt_cv_int_divbyzero_sigfpe="guessing yes";; | |
5801 | *) | |
5802 | gt_cv_int_divbyzero_sigfpe="guessing no";; | |
5803 | esac | |
5804 | ||
5805 | else | |
5806 | cat >conftest.$ac_ext <<_ACEOF | |
5807 | /* confdefs.h. */ | |
5808 | _ACEOF | |
5809 | cat confdefs.h >>conftest.$ac_ext | |
5810 | cat >>conftest.$ac_ext <<_ACEOF | |
5811 | /* end confdefs.h. */ | |
5812 | ||
5813 | #include <stdlib.h> | |
5814 | #include <signal.h> | |
5815 | ||
5816 | static void | |
5817 | #ifdef __cplusplus | |
5818 | sigfpe_handler (int sig) | |
5819 | #else | |
5820 | sigfpe_handler (sig) int sig; | |
5821 | #endif | |
5822 | { | |
5823 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ | |
5824 | exit (sig != SIGFPE); | |
5825 | } | |
5826 | ||
5827 | int x = 1; | |
5828 | int y = 0; | |
5829 | int z; | |
5830 | int nan; | |
5831 | ||
5832 | int main () | |
a04eba3f TT |
5833 | { |
5834 | signal (SIGFPE, sigfpe_handler); | |
5835 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ | |
5836 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) | |
5837 | signal (SIGTRAP, sigfpe_handler); | |
5838 | #endif | |
5839 | /* Linux/SPARC yields signal SIGILL. */ | |
5840 | #if defined (__sparc__) && defined (__linux__) | |
5841 | signal (SIGILL, sigfpe_handler); | |
5842 | #endif | |
5843 | ||
5844 | z = x / y; | |
5845 | nan = y / y; | |
5846 | exit (1); | |
5847 | } | |
a64c9c13 | 5848 | |
b0cacab0 TT |
5849 | _ACEOF |
5850 | rm -f conftest$ac_exeext | |
5851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5852 | (eval $ac_link) 2>&5 | |
5853 | ac_status=$? | |
5854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5855 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5857 | (eval $ac_try) 2>&5 | |
5858 | ac_status=$? | |
5859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5860 | (exit $ac_status); }; }; then | |
a04eba3f | 5861 | gt_cv_int_divbyzero_sigfpe=yes |
a64c9c13 | 5862 | else |
b0cacab0 TT |
5863 | echo "$as_me: program exited with status $ac_status" >&5 |
5864 | echo "$as_me: failed program was:" >&5 | |
5865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5866 | ||
5867 | ( exit $ac_status ) | |
5868 | gt_cv_int_divbyzero_sigfpe=no | |
5869 | fi | |
5870 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5871 | fi | |
5872 | ||
5873 | fi | |
5874 | echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 | |
5875 | echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6 | |
5876 | case "$gt_cv_int_divbyzero_sigfpe" in | |
5877 | *yes) value=1;; | |
5878 | *) value=0;; | |
5879 | esac | |
5880 | ||
5881 | cat >>confdefs.h <<_ACEOF | |
5882 | #define INTDIV0_RAISES_SIGFPE $value | |
5883 | _ACEOF | |
5884 | ||
5885 | ||
5886 | ||
5887 | echo "$as_me:$LINENO: checking for unsigned long long" >&5 | |
5888 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 | |
5889 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then | |
5890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5891 | else | |
5892 | cat >conftest.$ac_ext <<_ACEOF | |
5893 | /* confdefs.h. */ | |
5894 | _ACEOF | |
5895 | cat confdefs.h >>conftest.$ac_ext | |
5896 | cat >>conftest.$ac_ext <<_ACEOF | |
5897 | /* end confdefs.h. */ | |
5898 | unsigned long long ull = 1ULL; int i = 63; | |
5899 | int | |
5900 | main () | |
5901 | { | |
5902 | unsigned long long ullmax = (unsigned long long) -1; | |
5903 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; | |
5904 | ; | |
5905 | return 0; | |
5906 | } | |
5907 | _ACEOF | |
5908 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5910 | (eval $ac_link) 2>conftest.er1 | |
5911 | ac_status=$? | |
5912 | grep -v '^ *+' conftest.er1 >conftest.err | |
5913 | rm -f conftest.er1 | |
5914 | cat conftest.err >&5 | |
5915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5916 | (exit $ac_status); } && | |
5917 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5919 | (eval $ac_try) 2>&5 | |
5920 | ac_status=$? | |
5921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5922 | (exit $ac_status); }; } && | |
5923 | { ac_try='test -s conftest$ac_exeext' | |
5924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5925 | (eval $ac_try) 2>&5 | |
5926 | ac_status=$? | |
5927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5928 | (exit $ac_status); }; }; then | |
5929 | ac_cv_type_unsigned_long_long=yes | |
5930 | else | |
5931 | echo "$as_me: failed program was:" >&5 | |
5932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5933 | ||
5934 | ac_cv_type_unsigned_long_long=no | |
5935 | fi | |
5936 | rm -f conftest.err conftest.$ac_objext \ | |
5937 | conftest$ac_exeext conftest.$ac_ext | |
5938 | fi | |
5939 | echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 | |
5940 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 | |
5941 | if test $ac_cv_type_unsigned_long_long = yes; then | |
5942 | ||
5943 | cat >>confdefs.h <<\_ACEOF | |
5944 | #define HAVE_UNSIGNED_LONG_LONG 1 | |
5945 | _ACEOF | |
5946 | ||
5947 | fi | |
5948 | ||
5949 | ||
5950 | ||
5951 | ||
5952 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then | |
5953 | ||
5954 | test $ac_cv_type_unsigned_long_long = yes \ | |
5955 | && ac_type='unsigned long long' \ | |
5956 | || ac_type='unsigned long' | |
5957 | ||
5958 | cat >>confdefs.h <<_ACEOF | |
5959 | #define uintmax_t $ac_type | |
5960 | _ACEOF | |
5961 | ||
5962 | else | |
5963 | ||
5964 | cat >>confdefs.h <<\_ACEOF | |
5965 | #define HAVE_UINTMAX_T 1 | |
5966 | _ACEOF | |
5967 | ||
5968 | fi | |
5969 | ||
5970 | ||
5971 | echo "$as_me:$LINENO: checking for inttypes.h" >&5 | |
5972 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 | |
5973 | if test "${gt_cv_header_inttypes_h+set}" = set; then | |
5974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5975 | else | |
5976 | ||
5977 | cat >conftest.$ac_ext <<_ACEOF | |
5978 | /* confdefs.h. */ | |
5979 | _ACEOF | |
5980 | cat confdefs.h >>conftest.$ac_ext | |
5981 | cat >>conftest.$ac_ext <<_ACEOF | |
5982 | /* end confdefs.h. */ | |
5983 | #include <sys/types.h> | |
5984 | #include <inttypes.h> | |
5985 | int | |
5986 | main () | |
5987 | { | |
5988 | ||
5989 | ; | |
5990 | return 0; | |
5991 | } | |
5992 | _ACEOF | |
5993 | rm -f conftest.$ac_objext | |
5994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5995 | (eval $ac_compile) 2>conftest.er1 | |
5996 | ac_status=$? | |
5997 | grep -v '^ *+' conftest.er1 >conftest.err | |
5998 | rm -f conftest.er1 | |
5999 | cat conftest.err >&5 | |
6000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6001 | (exit $ac_status); } && | |
6002 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6004 | (eval $ac_try) 2>&5 | |
6005 | ac_status=$? | |
6006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6007 | (exit $ac_status); }; } && | |
6008 | { ac_try='test -s conftest.$ac_objext' | |
6009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6010 | (eval $ac_try) 2>&5 | |
6011 | ac_status=$? | |
6012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6013 | (exit $ac_status); }; }; then | |
6014 | gt_cv_header_inttypes_h=yes | |
6015 | else | |
6016 | echo "$as_me: failed program was:" >&5 | |
6017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6018 | ||
6019 | gt_cv_header_inttypes_h=no | |
6020 | fi | |
6021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6022 | ||
6023 | fi | |
6024 | echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 | |
6025 | echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6 | |
6026 | if test $gt_cv_header_inttypes_h = yes; then | |
6027 | ||
6028 | cat >>confdefs.h <<_ACEOF | |
6029 | #define HAVE_INTTYPES_H 1 | |
6030 | _ACEOF | |
6031 | ||
6032 | fi | |
6033 | ||
6034 | ||
6035 | ||
6036 | if test $gt_cv_header_inttypes_h = yes; then | |
6037 | echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 | |
6038 | echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6 | |
6039 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then | |
6040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6041 | else | |
6042 | ||
6043 | cat >conftest.$ac_ext <<_ACEOF | |
6044 | /* confdefs.h. */ | |
6045 | _ACEOF | |
6046 | cat confdefs.h >>conftest.$ac_ext | |
6047 | cat >>conftest.$ac_ext <<_ACEOF | |
6048 | /* end confdefs.h. */ | |
6049 | #include <inttypes.h> | |
6050 | #ifdef PRId32 | |
6051 | char *p = PRId32; | |
6052 | #endif | |
6053 | ||
6054 | int | |
6055 | main () | |
6056 | { | |
6057 | ||
6058 | ; | |
6059 | return 0; | |
6060 | } | |
6061 | _ACEOF | |
6062 | rm -f conftest.$ac_objext | |
6063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6064 | (eval $ac_compile) 2>conftest.er1 | |
6065 | ac_status=$? | |
6066 | grep -v '^ *+' conftest.er1 >conftest.err | |
6067 | rm -f conftest.er1 | |
6068 | cat conftest.err >&5 | |
6069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6070 | (exit $ac_status); } && | |
6071 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6073 | (eval $ac_try) 2>&5 | |
6074 | ac_status=$? | |
6075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6076 | (exit $ac_status); }; } && | |
6077 | { ac_try='test -s conftest.$ac_objext' | |
6078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6079 | (eval $ac_try) 2>&5 | |
6080 | ac_status=$? | |
6081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6082 | (exit $ac_status); }; }; then | |
6083 | gt_cv_inttypes_pri_broken=no | |
6084 | else | |
6085 | echo "$as_me: failed program was:" >&5 | |
6086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6087 | ||
6088 | gt_cv_inttypes_pri_broken=yes | |
6089 | fi | |
6090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6091 | ||
6092 | fi | |
6093 | echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 | |
6094 | echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6 | |
6095 | fi | |
6096 | if test "$gt_cv_inttypes_pri_broken" = yes; then | |
6097 | ||
6098 | cat >>confdefs.h <<_ACEOF | |
6099 | #define PRI_MACROS_BROKEN 1 | |
6100 | _ACEOF | |
6101 | ||
6102 | fi | |
6103 | ||
6104 | ||
6105 | ||
6106 | for ac_header in stdint.h | |
6107 | do | |
6108 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6109 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6110 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6111 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6112 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6114 | fi | |
6115 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6116 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6117 | else | |
6118 | # Is the header compilable? | |
6119 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6120 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6121 | cat >conftest.$ac_ext <<_ACEOF | |
6122 | /* confdefs.h. */ | |
6123 | _ACEOF | |
6124 | cat confdefs.h >>conftest.$ac_ext | |
6125 | cat >>conftest.$ac_ext <<_ACEOF | |
6126 | /* end confdefs.h. */ | |
6127 | $ac_includes_default | |
6128 | #include <$ac_header> | |
6129 | _ACEOF | |
6130 | rm -f conftest.$ac_objext | |
6131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6132 | (eval $ac_compile) 2>conftest.er1 | |
6133 | ac_status=$? | |
6134 | grep -v '^ *+' conftest.er1 >conftest.err | |
6135 | rm -f conftest.er1 | |
6136 | cat conftest.err >&5 | |
6137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6138 | (exit $ac_status); } && | |
6139 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6141 | (eval $ac_try) 2>&5 | |
6142 | ac_status=$? | |
6143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6144 | (exit $ac_status); }; } && | |
6145 | { ac_try='test -s conftest.$ac_objext' | |
6146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6147 | (eval $ac_try) 2>&5 | |
6148 | ac_status=$? | |
6149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6150 | (exit $ac_status); }; }; then | |
6151 | ac_header_compiler=yes | |
6152 | else | |
6153 | echo "$as_me: failed program was:" >&5 | |
6154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6155 | ||
6156 | ac_header_compiler=no | |
6157 | fi | |
6158 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6159 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6160 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6161 | ||
6162 | # Is the header present? | |
6163 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6164 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6165 | cat >conftest.$ac_ext <<_ACEOF | |
6166 | /* confdefs.h. */ | |
6167 | _ACEOF | |
6168 | cat confdefs.h >>conftest.$ac_ext | |
6169 | cat >>conftest.$ac_ext <<_ACEOF | |
6170 | /* end confdefs.h. */ | |
6171 | #include <$ac_header> | |
6172 | _ACEOF | |
6173 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6174 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6175 | ac_status=$? | |
6176 | grep -v '^ *+' conftest.er1 >conftest.err | |
6177 | rm -f conftest.er1 | |
6178 | cat conftest.err >&5 | |
6179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6180 | (exit $ac_status); } >/dev/null; then | |
6181 | if test -s conftest.err; then | |
6182 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6183 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6184 | else | |
6185 | ac_cpp_err= | |
6186 | fi | |
6187 | else | |
6188 | ac_cpp_err=yes | |
6189 | fi | |
6190 | if test -z "$ac_cpp_err"; then | |
6191 | ac_header_preproc=yes | |
6192 | else | |
6193 | echo "$as_me: failed program was:" >&5 | |
6194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6195 | ||
6196 | ac_header_preproc=no | |
6197 | fi | |
6198 | rm -f conftest.err conftest.$ac_ext | |
6199 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6200 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6201 | ||
6202 | # So? What about this header? | |
6203 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6204 | yes:no: ) | |
6205 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6206 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6207 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6208 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6209 | ac_header_preproc=yes | |
6210 | ;; | |
6211 | no:yes:* ) | |
6212 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6213 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6214 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6215 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6216 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6217 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6218 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6219 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6220 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6221 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6222 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6223 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6224 | ( | |
6225 | cat <<\_ASBOX | |
6226 | ## ------------------------------------------ ## | |
6227 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6228 | ## ------------------------------------------ ## | |
6229 | _ASBOX | |
6230 | ) | | |
6231 | sed "s/^/$as_me: WARNING: /" >&2 | |
6232 | ;; | |
6233 | esac | |
6234 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6235 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6236 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6238 | else | |
6239 | eval "$as_ac_Header=\$ac_header_preproc" | |
6240 | fi | |
6241 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6242 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6243 | ||
6244 | fi | |
6245 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6246 | cat >>confdefs.h <<_ACEOF | |
6247 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6248 | _ACEOF | |
6249 | ||
6250 | fi | |
6251 | ||
6252 | done | |
6253 | ||
6254 | echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 | |
6255 | echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6 | |
6256 | result= | |
6257 | cat >conftest.$ac_ext <<_ACEOF | |
6258 | /* confdefs.h. */ | |
6259 | _ACEOF | |
6260 | cat confdefs.h >>conftest.$ac_ext | |
6261 | cat >>conftest.$ac_ext <<_ACEOF | |
6262 | /* end confdefs.h. */ | |
6263 | ||
6264 | #include <limits.h> | |
6265 | #if HAVE_STDINT_H | |
6266 | #include <stdint.h> | |
6267 | #endif | |
6268 | #ifdef SIZE_MAX | |
6269 | Found it | |
6270 | #endif | |
6271 | ||
6272 | _ACEOF | |
6273 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6274 | $EGREP "Found it" >/dev/null 2>&1; then | |
6275 | result=yes | |
6276 | fi | |
6277 | rm -f conftest* | |
6278 | ||
6279 | if test -z "$result"; then | |
6280 | if test "$cross_compiling" = yes; then | |
6281 | # Depending upon the size, compute the lo and hi bounds. | |
6282 | cat >conftest.$ac_ext <<_ACEOF | |
6283 | /* confdefs.h. */ | |
6284 | _ACEOF | |
6285 | cat confdefs.h >>conftest.$ac_ext | |
6286 | cat >>conftest.$ac_ext <<_ACEOF | |
6287 | /* end confdefs.h. */ | |
6288 | #include <stddef.h> | |
6289 | int | |
6290 | main () | |
6291 | { | |
6292 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; | |
6293 | test_array [0] = 0 | |
6294 | ||
6295 | ; | |
6296 | return 0; | |
6297 | } | |
6298 | _ACEOF | |
6299 | rm -f conftest.$ac_objext | |
6300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6301 | (eval $ac_compile) 2>conftest.er1 | |
6302 | ac_status=$? | |
6303 | grep -v '^ *+' conftest.er1 >conftest.err | |
6304 | rm -f conftest.er1 | |
6305 | cat conftest.err >&5 | |
6306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6307 | (exit $ac_status); } && | |
6308 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6310 | (eval $ac_try) 2>&5 | |
6311 | ac_status=$? | |
6312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6313 | (exit $ac_status); }; } && | |
6314 | { ac_try='test -s conftest.$ac_objext' | |
6315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6316 | (eval $ac_try) 2>&5 | |
6317 | ac_status=$? | |
6318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6319 | (exit $ac_status); }; }; then | |
6320 | ac_lo=0 ac_mid=0 | |
6321 | while :; do | |
6322 | cat >conftest.$ac_ext <<_ACEOF | |
6323 | /* confdefs.h. */ | |
6324 | _ACEOF | |
6325 | cat confdefs.h >>conftest.$ac_ext | |
6326 | cat >>conftest.$ac_ext <<_ACEOF | |
6327 | /* end confdefs.h. */ | |
6328 | #include <stddef.h> | |
6329 | int | |
6330 | main () | |
6331 | { | |
6332 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; | |
6333 | test_array [0] = 0 | |
6334 | ||
6335 | ; | |
6336 | return 0; | |
6337 | } | |
6338 | _ACEOF | |
6339 | rm -f conftest.$ac_objext | |
6340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6341 | (eval $ac_compile) 2>conftest.er1 | |
6342 | ac_status=$? | |
6343 | grep -v '^ *+' conftest.er1 >conftest.err | |
6344 | rm -f conftest.er1 | |
6345 | cat conftest.err >&5 | |
6346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6347 | (exit $ac_status); } && | |
6348 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6350 | (eval $ac_try) 2>&5 | |
6351 | ac_status=$? | |
6352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6353 | (exit $ac_status); }; } && | |
6354 | { ac_try='test -s conftest.$ac_objext' | |
6355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6356 | (eval $ac_try) 2>&5 | |
6357 | ac_status=$? | |
6358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6359 | (exit $ac_status); }; }; then | |
6360 | ac_hi=$ac_mid; break | |
6361 | else | |
6362 | echo "$as_me: failed program was:" >&5 | |
6363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6364 | ||
6365 | ac_lo=`expr $ac_mid + 1` | |
6366 | if test $ac_lo -le $ac_mid; then | |
6367 | ac_lo= ac_hi= | |
6368 | break | |
6369 | fi | |
6370 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
6371 | fi | |
6372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6373 | done | |
6374 | else | |
6375 | echo "$as_me: failed program was:" >&5 | |
6376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6377 | ||
6378 | cat >conftest.$ac_ext <<_ACEOF | |
6379 | /* confdefs.h. */ | |
6380 | _ACEOF | |
6381 | cat confdefs.h >>conftest.$ac_ext | |
6382 | cat >>conftest.$ac_ext <<_ACEOF | |
6383 | /* end confdefs.h. */ | |
6384 | #include <stddef.h> | |
6385 | int | |
6386 | main () | |
6387 | { | |
6388 | static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; | |
6389 | test_array [0] = 0 | |
6390 | ||
6391 | ; | |
6392 | return 0; | |
6393 | } | |
6394 | _ACEOF | |
6395 | rm -f conftest.$ac_objext | |
6396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6397 | (eval $ac_compile) 2>conftest.er1 | |
6398 | ac_status=$? | |
6399 | grep -v '^ *+' conftest.er1 >conftest.err | |
6400 | rm -f conftest.er1 | |
6401 | cat conftest.err >&5 | |
6402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6403 | (exit $ac_status); } && | |
6404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6406 | (eval $ac_try) 2>&5 | |
6407 | ac_status=$? | |
6408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6409 | (exit $ac_status); }; } && | |
6410 | { ac_try='test -s conftest.$ac_objext' | |
6411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6412 | (eval $ac_try) 2>&5 | |
6413 | ac_status=$? | |
6414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6415 | (exit $ac_status); }; }; then | |
6416 | ac_hi=-1 ac_mid=-1 | |
6417 | while :; do | |
6418 | cat >conftest.$ac_ext <<_ACEOF | |
6419 | /* confdefs.h. */ | |
6420 | _ACEOF | |
6421 | cat confdefs.h >>conftest.$ac_ext | |
6422 | cat >>conftest.$ac_ext <<_ACEOF | |
6423 | /* end confdefs.h. */ | |
6424 | #include <stddef.h> | |
6425 | int | |
6426 | main () | |
6427 | { | |
6428 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; | |
6429 | test_array [0] = 0 | |
6430 | ||
6431 | ; | |
6432 | return 0; | |
6433 | } | |
6434 | _ACEOF | |
6435 | rm -f conftest.$ac_objext | |
6436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6437 | (eval $ac_compile) 2>conftest.er1 | |
6438 | ac_status=$? | |
6439 | grep -v '^ *+' conftest.er1 >conftest.err | |
6440 | rm -f conftest.er1 | |
6441 | cat conftest.err >&5 | |
6442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6443 | (exit $ac_status); } && | |
6444 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6446 | (eval $ac_try) 2>&5 | |
6447 | ac_status=$? | |
6448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6449 | (exit $ac_status); }; } && | |
6450 | { ac_try='test -s conftest.$ac_objext' | |
6451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6452 | (eval $ac_try) 2>&5 | |
6453 | ac_status=$? | |
6454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6455 | (exit $ac_status); }; }; then | |
6456 | ac_lo=$ac_mid; break | |
6457 | else | |
6458 | echo "$as_me: failed program was:" >&5 | |
6459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6460 | ||
6461 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
6462 | if test $ac_mid -le $ac_hi; then | |
6463 | ac_lo= ac_hi= | |
6464 | break | |
6465 | fi | |
6466 | ac_mid=`expr 2 '*' $ac_mid` | |
6467 | fi | |
6468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6469 | done | |
6470 | else | |
6471 | echo "$as_me: failed program was:" >&5 | |
6472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6473 | ||
6474 | ac_lo= ac_hi= | |
6475 | fi | |
6476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6477 | fi | |
6478 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6479 | # Binary search between lo and hi bounds. | |
6480 | while test "x$ac_lo" != "x$ac_hi"; do | |
6481 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6482 | cat >conftest.$ac_ext <<_ACEOF | |
6483 | /* confdefs.h. */ | |
6484 | _ACEOF | |
6485 | cat confdefs.h >>conftest.$ac_ext | |
6486 | cat >>conftest.$ac_ext <<_ACEOF | |
6487 | /* end confdefs.h. */ | |
6488 | #include <stddef.h> | |
6489 | int | |
6490 | main () | |
6491 | { | |
6492 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; | |
6493 | test_array [0] = 0 | |
6494 | ||
6495 | ; | |
6496 | return 0; | |
6497 | } | |
6498 | _ACEOF | |
6499 | rm -f conftest.$ac_objext | |
6500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6501 | (eval $ac_compile) 2>conftest.er1 | |
6502 | ac_status=$? | |
6503 | grep -v '^ *+' conftest.er1 >conftest.err | |
6504 | rm -f conftest.er1 | |
6505 | cat conftest.err >&5 | |
6506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6507 | (exit $ac_status); } && | |
6508 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6510 | (eval $ac_try) 2>&5 | |
6511 | ac_status=$? | |
6512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6513 | (exit $ac_status); }; } && | |
6514 | { ac_try='test -s conftest.$ac_objext' | |
6515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6516 | (eval $ac_try) 2>&5 | |
6517 | ac_status=$? | |
6518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6519 | (exit $ac_status); }; }; then | |
6520 | ac_hi=$ac_mid | |
6521 | else | |
6522 | echo "$as_me: failed program was:" >&5 | |
6523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6524 | ||
6525 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
6526 | fi | |
6527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6528 | done | |
6529 | case $ac_lo in | |
6530 | ?*) res_hi=$ac_lo;; | |
6531 | '') result=? ;; | |
6532 | esac | |
6533 | else | |
6534 | if test "$cross_compiling" = yes; then | |
6535 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 | |
6536 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
6537 | { (exit 1); exit 1; }; } | |
6538 | else | |
6539 | cat >conftest.$ac_ext <<_ACEOF | |
6540 | /* confdefs.h. */ | |
6541 | _ACEOF | |
6542 | cat confdefs.h >>conftest.$ac_ext | |
6543 | cat >>conftest.$ac_ext <<_ACEOF | |
6544 | /* end confdefs.h. */ | |
6545 | #include <stddef.h> | |
6546 | long longval () { return ~(size_t)0 / 10; } | |
6547 | unsigned long ulongval () { return ~(size_t)0 / 10; } | |
6548 | #include <stdio.h> | |
6549 | #include <stdlib.h> | |
6550 | int | |
6551 | main () | |
6552 | { | |
6553 | ||
6554 | FILE *f = fopen ("conftest.val", "w"); | |
6555 | if (! f) | |
6556 | exit (1); | |
6557 | if ((~(size_t)0 / 10) < 0) | |
6558 | { | |
6559 | long i = longval (); | |
6560 | if (i != (~(size_t)0 / 10)) | |
6561 | exit (1); | |
6562 | fprintf (f, "%ld\n", i); | |
6563 | } | |
6564 | else | |
6565 | { | |
6566 | unsigned long i = ulongval (); | |
6567 | if (i != (~(size_t)0 / 10)) | |
6568 | exit (1); | |
6569 | fprintf (f, "%lu\n", i); | |
6570 | } | |
6571 | exit (ferror (f) || fclose (f) != 0); | |
6572 | ||
6573 | ; | |
6574 | return 0; | |
6575 | } | |
6576 | _ACEOF | |
6577 | rm -f conftest$ac_exeext | |
6578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6579 | (eval $ac_link) 2>&5 | |
6580 | ac_status=$? | |
6581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6582 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6584 | (eval $ac_try) 2>&5 | |
6585 | ac_status=$? | |
6586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6587 | (exit $ac_status); }; }; then | |
6588 | res_hi=`cat conftest.val` | |
6589 | else | |
6590 | echo "$as_me: program exited with status $ac_status" >&5 | |
6591 | echo "$as_me: failed program was:" >&5 | |
6592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6593 | ||
6594 | ( exit $ac_status ) | |
6595 | result=? | |
6596 | fi | |
6597 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6598 | fi | |
6599 | fi | |
6600 | rm -f conftest.val | |
6601 | if test "$cross_compiling" = yes; then | |
6602 | # Depending upon the size, compute the lo and hi bounds. | |
6603 | cat >conftest.$ac_ext <<_ACEOF | |
6604 | /* confdefs.h. */ | |
6605 | _ACEOF | |
6606 | cat confdefs.h >>conftest.$ac_ext | |
6607 | cat >>conftest.$ac_ext <<_ACEOF | |
6608 | /* end confdefs.h. */ | |
6609 | #include <stddef.h> | |
6610 | int | |
6611 | main () | |
6612 | { | |
6613 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; | |
6614 | test_array [0] = 0 | |
6615 | ||
6616 | ; | |
6617 | return 0; | |
6618 | } | |
6619 | _ACEOF | |
6620 | rm -f conftest.$ac_objext | |
6621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6622 | (eval $ac_compile) 2>conftest.er1 | |
6623 | ac_status=$? | |
6624 | grep -v '^ *+' conftest.er1 >conftest.err | |
6625 | rm -f conftest.er1 | |
6626 | cat conftest.err >&5 | |
6627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6628 | (exit $ac_status); } && | |
6629 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6631 | (eval $ac_try) 2>&5 | |
6632 | ac_status=$? | |
6633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6634 | (exit $ac_status); }; } && | |
6635 | { ac_try='test -s conftest.$ac_objext' | |
6636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6637 | (eval $ac_try) 2>&5 | |
6638 | ac_status=$? | |
6639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6640 | (exit $ac_status); }; }; then | |
6641 | ac_lo=0 ac_mid=0 | |
6642 | while :; do | |
6643 | cat >conftest.$ac_ext <<_ACEOF | |
6644 | /* confdefs.h. */ | |
6645 | _ACEOF | |
6646 | cat confdefs.h >>conftest.$ac_ext | |
6647 | cat >>conftest.$ac_ext <<_ACEOF | |
6648 | /* end confdefs.h. */ | |
6649 | #include <stddef.h> | |
6650 | int | |
6651 | main () | |
6652 | { | |
6653 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; | |
6654 | test_array [0] = 0 | |
6655 | ||
6656 | ; | |
6657 | return 0; | |
6658 | } | |
6659 | _ACEOF | |
6660 | rm -f conftest.$ac_objext | |
6661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6662 | (eval $ac_compile) 2>conftest.er1 | |
6663 | ac_status=$? | |
6664 | grep -v '^ *+' conftest.er1 >conftest.err | |
6665 | rm -f conftest.er1 | |
6666 | cat conftest.err >&5 | |
6667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6668 | (exit $ac_status); } && | |
6669 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6671 | (eval $ac_try) 2>&5 | |
6672 | ac_status=$? | |
6673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6674 | (exit $ac_status); }; } && | |
6675 | { ac_try='test -s conftest.$ac_objext' | |
6676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6677 | (eval $ac_try) 2>&5 | |
6678 | ac_status=$? | |
6679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6680 | (exit $ac_status); }; }; then | |
6681 | ac_hi=$ac_mid; break | |
6682 | else | |
6683 | echo "$as_me: failed program was:" >&5 | |
6684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6685 | ||
6686 | ac_lo=`expr $ac_mid + 1` | |
6687 | if test $ac_lo -le $ac_mid; then | |
6688 | ac_lo= ac_hi= | |
6689 | break | |
6690 | fi | |
6691 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
6692 | fi | |
6693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6694 | done | |
6695 | else | |
6696 | echo "$as_me: failed program was:" >&5 | |
6697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6698 | ||
6699 | cat >conftest.$ac_ext <<_ACEOF | |
6700 | /* confdefs.h. */ | |
6701 | _ACEOF | |
6702 | cat confdefs.h >>conftest.$ac_ext | |
6703 | cat >>conftest.$ac_ext <<_ACEOF | |
6704 | /* end confdefs.h. */ | |
6705 | #include <stddef.h> | |
6706 | int | |
6707 | main () | |
6708 | { | |
6709 | static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; | |
6710 | test_array [0] = 0 | |
6711 | ||
6712 | ; | |
6713 | return 0; | |
6714 | } | |
6715 | _ACEOF | |
6716 | rm -f conftest.$ac_objext | |
6717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6718 | (eval $ac_compile) 2>conftest.er1 | |
6719 | ac_status=$? | |
6720 | grep -v '^ *+' conftest.er1 >conftest.err | |
6721 | rm -f conftest.er1 | |
6722 | cat conftest.err >&5 | |
6723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6724 | (exit $ac_status); } && | |
6725 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6727 | (eval $ac_try) 2>&5 | |
6728 | ac_status=$? | |
6729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6730 | (exit $ac_status); }; } && | |
6731 | { ac_try='test -s conftest.$ac_objext' | |
6732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6733 | (eval $ac_try) 2>&5 | |
6734 | ac_status=$? | |
6735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6736 | (exit $ac_status); }; }; then | |
6737 | ac_hi=-1 ac_mid=-1 | |
6738 | while :; do | |
6739 | cat >conftest.$ac_ext <<_ACEOF | |
6740 | /* confdefs.h. */ | |
6741 | _ACEOF | |
6742 | cat confdefs.h >>conftest.$ac_ext | |
6743 | cat >>conftest.$ac_ext <<_ACEOF | |
6744 | /* end confdefs.h. */ | |
6745 | #include <stddef.h> | |
6746 | int | |
6747 | main () | |
6748 | { | |
6749 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; | |
6750 | test_array [0] = 0 | |
6751 | ||
6752 | ; | |
6753 | return 0; | |
6754 | } | |
6755 | _ACEOF | |
6756 | rm -f conftest.$ac_objext | |
6757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6758 | (eval $ac_compile) 2>conftest.er1 | |
6759 | ac_status=$? | |
6760 | grep -v '^ *+' conftest.er1 >conftest.err | |
6761 | rm -f conftest.er1 | |
6762 | cat conftest.err >&5 | |
6763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6764 | (exit $ac_status); } && | |
6765 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6767 | (eval $ac_try) 2>&5 | |
6768 | ac_status=$? | |
6769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6770 | (exit $ac_status); }; } && | |
6771 | { ac_try='test -s conftest.$ac_objext' | |
6772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6773 | (eval $ac_try) 2>&5 | |
6774 | ac_status=$? | |
6775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6776 | (exit $ac_status); }; }; then | |
6777 | ac_lo=$ac_mid; break | |
6778 | else | |
6779 | echo "$as_me: failed program was:" >&5 | |
6780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6781 | ||
6782 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
6783 | if test $ac_mid -le $ac_hi; then | |
6784 | ac_lo= ac_hi= | |
6785 | break | |
6786 | fi | |
6787 | ac_mid=`expr 2 '*' $ac_mid` | |
6788 | fi | |
6789 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6790 | done | |
6791 | else | |
6792 | echo "$as_me: failed program was:" >&5 | |
6793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6794 | ||
6795 | ac_lo= ac_hi= | |
6796 | fi | |
6797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6798 | fi | |
6799 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6800 | # Binary search between lo and hi bounds. | |
6801 | while test "x$ac_lo" != "x$ac_hi"; do | |
6802 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6803 | cat >conftest.$ac_ext <<_ACEOF | |
6804 | /* confdefs.h. */ | |
6805 | _ACEOF | |
6806 | cat confdefs.h >>conftest.$ac_ext | |
6807 | cat >>conftest.$ac_ext <<_ACEOF | |
6808 | /* end confdefs.h. */ | |
6809 | #include <stddef.h> | |
6810 | int | |
6811 | main () | |
6812 | { | |
6813 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; | |
6814 | test_array [0] = 0 | |
6815 | ||
6816 | ; | |
6817 | return 0; | |
6818 | } | |
6819 | _ACEOF | |
6820 | rm -f conftest.$ac_objext | |
6821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6822 | (eval $ac_compile) 2>conftest.er1 | |
6823 | ac_status=$? | |
6824 | grep -v '^ *+' conftest.er1 >conftest.err | |
6825 | rm -f conftest.er1 | |
6826 | cat conftest.err >&5 | |
6827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6828 | (exit $ac_status); } && | |
6829 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6831 | (eval $ac_try) 2>&5 | |
6832 | ac_status=$? | |
6833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6834 | (exit $ac_status); }; } && | |
6835 | { ac_try='test -s conftest.$ac_objext' | |
6836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6837 | (eval $ac_try) 2>&5 | |
6838 | ac_status=$? | |
6839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6840 | (exit $ac_status); }; }; then | |
6841 | ac_hi=$ac_mid | |
6842 | else | |
6843 | echo "$as_me: failed program was:" >&5 | |
6844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6845 | ||
6846 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
6847 | fi | |
6848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6849 | done | |
6850 | case $ac_lo in | |
6851 | ?*) res_lo=$ac_lo;; | |
6852 | '') result=? ;; | |
6853 | esac | |
6854 | else | |
6855 | if test "$cross_compiling" = yes; then | |
6856 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 | |
6857 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
6858 | { (exit 1); exit 1; }; } | |
6859 | else | |
6860 | cat >conftest.$ac_ext <<_ACEOF | |
6861 | /* confdefs.h. */ | |
6862 | _ACEOF | |
6863 | cat confdefs.h >>conftest.$ac_ext | |
6864 | cat >>conftest.$ac_ext <<_ACEOF | |
6865 | /* end confdefs.h. */ | |
6866 | #include <stddef.h> | |
6867 | long longval () { return ~(size_t)0 % 10; } | |
6868 | unsigned long ulongval () { return ~(size_t)0 % 10; } | |
6869 | #include <stdio.h> | |
6870 | #include <stdlib.h> | |
6871 | int | |
6872 | main () | |
6873 | { | |
6874 | ||
6875 | FILE *f = fopen ("conftest.val", "w"); | |
6876 | if (! f) | |
6877 | exit (1); | |
6878 | if ((~(size_t)0 % 10) < 0) | |
6879 | { | |
6880 | long i = longval (); | |
6881 | if (i != (~(size_t)0 % 10)) | |
6882 | exit (1); | |
6883 | fprintf (f, "%ld\n", i); | |
6884 | } | |
6885 | else | |
6886 | { | |
6887 | unsigned long i = ulongval (); | |
6888 | if (i != (~(size_t)0 % 10)) | |
6889 | exit (1); | |
6890 | fprintf (f, "%lu\n", i); | |
6891 | } | |
6892 | exit (ferror (f) || fclose (f) != 0); | |
6893 | ||
6894 | ; | |
6895 | return 0; | |
6896 | } | |
6897 | _ACEOF | |
6898 | rm -f conftest$ac_exeext | |
6899 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6900 | (eval $ac_link) 2>&5 | |
6901 | ac_status=$? | |
6902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6903 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6905 | (eval $ac_try) 2>&5 | |
6906 | ac_status=$? | |
6907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6908 | (exit $ac_status); }; }; then | |
6909 | res_lo=`cat conftest.val` | |
6910 | else | |
6911 | echo "$as_me: program exited with status $ac_status" >&5 | |
6912 | echo "$as_me: failed program was:" >&5 | |
6913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6914 | ||
6915 | ( exit $ac_status ) | |
6916 | result=? | |
6917 | fi | |
6918 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6919 | fi | |
6920 | fi | |
6921 | rm -f conftest.val | |
6922 | if test "$cross_compiling" = yes; then | |
6923 | # Depending upon the size, compute the lo and hi bounds. | |
6924 | cat >conftest.$ac_ext <<_ACEOF | |
6925 | /* confdefs.h. */ | |
6926 | _ACEOF | |
6927 | cat confdefs.h >>conftest.$ac_ext | |
6928 | cat >>conftest.$ac_ext <<_ACEOF | |
6929 | /* end confdefs.h. */ | |
6930 | #include <stddef.h> | |
6931 | int | |
6932 | main () | |
6933 | { | |
6934 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; | |
6935 | test_array [0] = 0 | |
6936 | ||
6937 | ; | |
6938 | return 0; | |
6939 | } | |
6940 | _ACEOF | |
6941 | rm -f conftest.$ac_objext | |
6942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6943 | (eval $ac_compile) 2>conftest.er1 | |
6944 | ac_status=$? | |
6945 | grep -v '^ *+' conftest.er1 >conftest.err | |
6946 | rm -f conftest.er1 | |
6947 | cat conftest.err >&5 | |
6948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6949 | (exit $ac_status); } && | |
6950 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6952 | (eval $ac_try) 2>&5 | |
6953 | ac_status=$? | |
6954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6955 | (exit $ac_status); }; } && | |
6956 | { ac_try='test -s conftest.$ac_objext' | |
6957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6958 | (eval $ac_try) 2>&5 | |
6959 | ac_status=$? | |
6960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6961 | (exit $ac_status); }; }; then | |
6962 | ac_lo=0 ac_mid=0 | |
6963 | while :; do | |
6964 | cat >conftest.$ac_ext <<_ACEOF | |
6965 | /* confdefs.h. */ | |
6966 | _ACEOF | |
6967 | cat confdefs.h >>conftest.$ac_ext | |
6968 | cat >>conftest.$ac_ext <<_ACEOF | |
6969 | /* end confdefs.h. */ | |
6970 | #include <stddef.h> | |
6971 | int | |
6972 | main () | |
6973 | { | |
6974 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; | |
6975 | test_array [0] = 0 | |
6976 | ||
6977 | ; | |
6978 | return 0; | |
6979 | } | |
6980 | _ACEOF | |
6981 | rm -f conftest.$ac_objext | |
6982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6983 | (eval $ac_compile) 2>conftest.er1 | |
6984 | ac_status=$? | |
6985 | grep -v '^ *+' conftest.er1 >conftest.err | |
6986 | rm -f conftest.er1 | |
6987 | cat conftest.err >&5 | |
6988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6989 | (exit $ac_status); } && | |
6990 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6992 | (eval $ac_try) 2>&5 | |
6993 | ac_status=$? | |
6994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6995 | (exit $ac_status); }; } && | |
6996 | { ac_try='test -s conftest.$ac_objext' | |
6997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6998 | (eval $ac_try) 2>&5 | |
6999 | ac_status=$? | |
7000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7001 | (exit $ac_status); }; }; then | |
7002 | ac_hi=$ac_mid; break | |
7003 | else | |
7004 | echo "$as_me: failed program was:" >&5 | |
7005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7006 | ||
7007 | ac_lo=`expr $ac_mid + 1` | |
7008 | if test $ac_lo -le $ac_mid; then | |
7009 | ac_lo= ac_hi= | |
7010 | break | |
7011 | fi | |
7012 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
7013 | fi | |
7014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7015 | done | |
7016 | else | |
7017 | echo "$as_me: failed program was:" >&5 | |
7018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7019 | ||
7020 | cat >conftest.$ac_ext <<_ACEOF | |
7021 | /* confdefs.h. */ | |
7022 | _ACEOF | |
7023 | cat confdefs.h >>conftest.$ac_ext | |
7024 | cat >>conftest.$ac_ext <<_ACEOF | |
7025 | /* end confdefs.h. */ | |
7026 | #include <stddef.h> | |
7027 | int | |
7028 | main () | |
7029 | { | |
7030 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; | |
7031 | test_array [0] = 0 | |
7032 | ||
7033 | ; | |
7034 | return 0; | |
7035 | } | |
7036 | _ACEOF | |
7037 | rm -f conftest.$ac_objext | |
7038 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7039 | (eval $ac_compile) 2>conftest.er1 | |
7040 | ac_status=$? | |
7041 | grep -v '^ *+' conftest.er1 >conftest.err | |
7042 | rm -f conftest.er1 | |
7043 | cat conftest.err >&5 | |
7044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7045 | (exit $ac_status); } && | |
7046 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7048 | (eval $ac_try) 2>&5 | |
7049 | ac_status=$? | |
7050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7051 | (exit $ac_status); }; } && | |
7052 | { ac_try='test -s conftest.$ac_objext' | |
7053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7054 | (eval $ac_try) 2>&5 | |
7055 | ac_status=$? | |
7056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7057 | (exit $ac_status); }; }; then | |
7058 | ac_hi=-1 ac_mid=-1 | |
7059 | while :; do | |
7060 | cat >conftest.$ac_ext <<_ACEOF | |
7061 | /* confdefs.h. */ | |
7062 | _ACEOF | |
7063 | cat confdefs.h >>conftest.$ac_ext | |
7064 | cat >>conftest.$ac_ext <<_ACEOF | |
7065 | /* end confdefs.h. */ | |
7066 | #include <stddef.h> | |
7067 | int | |
7068 | main () | |
7069 | { | |
7070 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; | |
7071 | test_array [0] = 0 | |
7072 | ||
7073 | ; | |
7074 | return 0; | |
7075 | } | |
7076 | _ACEOF | |
7077 | rm -f conftest.$ac_objext | |
7078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7079 | (eval $ac_compile) 2>conftest.er1 | |
7080 | ac_status=$? | |
7081 | grep -v '^ *+' conftest.er1 >conftest.err | |
7082 | rm -f conftest.er1 | |
7083 | cat conftest.err >&5 | |
7084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7085 | (exit $ac_status); } && | |
7086 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7088 | (eval $ac_try) 2>&5 | |
7089 | ac_status=$? | |
7090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7091 | (exit $ac_status); }; } && | |
7092 | { ac_try='test -s conftest.$ac_objext' | |
7093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7094 | (eval $ac_try) 2>&5 | |
7095 | ac_status=$? | |
7096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7097 | (exit $ac_status); }; }; then | |
7098 | ac_lo=$ac_mid; break | |
7099 | else | |
7100 | echo "$as_me: failed program was:" >&5 | |
7101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7102 | ||
7103 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
7104 | if test $ac_mid -le $ac_hi; then | |
7105 | ac_lo= ac_hi= | |
7106 | break | |
7107 | fi | |
7108 | ac_mid=`expr 2 '*' $ac_mid` | |
7109 | fi | |
7110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7111 | done | |
7112 | else | |
7113 | echo "$as_me: failed program was:" >&5 | |
7114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7115 | ||
7116 | ac_lo= ac_hi= | |
7117 | fi | |
7118 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7119 | fi | |
7120 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7121 | # Binary search between lo and hi bounds. | |
7122 | while test "x$ac_lo" != "x$ac_hi"; do | |
7123 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
7124 | cat >conftest.$ac_ext <<_ACEOF | |
7125 | /* confdefs.h. */ | |
7126 | _ACEOF | |
7127 | cat confdefs.h >>conftest.$ac_ext | |
7128 | cat >>conftest.$ac_ext <<_ACEOF | |
7129 | /* end confdefs.h. */ | |
7130 | #include <stddef.h> | |
7131 | int | |
7132 | main () | |
7133 | { | |
7134 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; | |
7135 | test_array [0] = 0 | |
7136 | ||
7137 | ; | |
7138 | return 0; | |
7139 | } | |
7140 | _ACEOF | |
7141 | rm -f conftest.$ac_objext | |
7142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7143 | (eval $ac_compile) 2>conftest.er1 | |
7144 | ac_status=$? | |
7145 | grep -v '^ *+' conftest.er1 >conftest.err | |
7146 | rm -f conftest.er1 | |
7147 | cat conftest.err >&5 | |
7148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7149 | (exit $ac_status); } && | |
7150 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7152 | (eval $ac_try) 2>&5 | |
7153 | ac_status=$? | |
7154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7155 | (exit $ac_status); }; } && | |
7156 | { ac_try='test -s conftest.$ac_objext' | |
7157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7158 | (eval $ac_try) 2>&5 | |
7159 | ac_status=$? | |
7160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7161 | (exit $ac_status); }; }; then | |
7162 | ac_hi=$ac_mid | |
7163 | else | |
7164 | echo "$as_me: failed program was:" >&5 | |
7165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7166 | ||
7167 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
7168 | fi | |
7169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7170 | done | |
7171 | case $ac_lo in | |
7172 | ?*) fits_in_uint=$ac_lo;; | |
7173 | '') result=? ;; | |
7174 | esac | |
7175 | else | |
7176 | if test "$cross_compiling" = yes; then | |
7177 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 | |
7178 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
7179 | { (exit 1); exit 1; }; } | |
7180 | else | |
7181 | cat >conftest.$ac_ext <<_ACEOF | |
7182 | /* confdefs.h. */ | |
7183 | _ACEOF | |
7184 | cat confdefs.h >>conftest.$ac_ext | |
7185 | cat >>conftest.$ac_ext <<_ACEOF | |
7186 | /* end confdefs.h. */ | |
7187 | #include <stddef.h> | |
7188 | long longval () { return sizeof (size_t) <= sizeof (unsigned int); } | |
7189 | unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } | |
7190 | #include <stdio.h> | |
7191 | #include <stdlib.h> | |
7192 | int | |
7193 | main () | |
7194 | { | |
7195 | ||
7196 | FILE *f = fopen ("conftest.val", "w"); | |
7197 | if (! f) | |
7198 | exit (1); | |
7199 | if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) | |
7200 | { | |
7201 | long i = longval (); | |
7202 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) | |
7203 | exit (1); | |
7204 | fprintf (f, "%ld\n", i); | |
7205 | } | |
7206 | else | |
7207 | { | |
7208 | unsigned long i = ulongval (); | |
7209 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) | |
7210 | exit (1); | |
7211 | fprintf (f, "%lu\n", i); | |
7212 | } | |
7213 | exit (ferror (f) || fclose (f) != 0); | |
7214 | ||
7215 | ; | |
7216 | return 0; | |
7217 | } | |
7218 | _ACEOF | |
7219 | rm -f conftest$ac_exeext | |
7220 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7221 | (eval $ac_link) 2>&5 | |
7222 | ac_status=$? | |
7223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7224 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7226 | (eval $ac_try) 2>&5 | |
7227 | ac_status=$? | |
7228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7229 | (exit $ac_status); }; }; then | |
7230 | fits_in_uint=`cat conftest.val` | |
7231 | else | |
7232 | echo "$as_me: program exited with status $ac_status" >&5 | |
7233 | echo "$as_me: failed program was:" >&5 | |
7234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7235 | ||
7236 | ( exit $ac_status ) | |
7237 | result=? | |
7238 | fi | |
7239 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7240 | fi | |
7241 | fi | |
7242 | rm -f conftest.val | |
7243 | if test "$fits_in_uint" = 1; then | |
7244 | cat >conftest.$ac_ext <<_ACEOF | |
7245 | /* confdefs.h. */ | |
7246 | _ACEOF | |
7247 | cat confdefs.h >>conftest.$ac_ext | |
7248 | cat >>conftest.$ac_ext <<_ACEOF | |
7249 | /* end confdefs.h. */ | |
7250 | #include <stddef.h> | |
7251 | extern size_t foo; | |
7252 | extern unsigned long foo; | |
7253 | ||
7254 | int | |
7255 | main () | |
7256 | { | |
7257 | ||
7258 | ; | |
7259 | return 0; | |
7260 | } | |
7261 | _ACEOF | |
7262 | rm -f conftest.$ac_objext | |
7263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7264 | (eval $ac_compile) 2>conftest.er1 | |
7265 | ac_status=$? | |
7266 | grep -v '^ *+' conftest.er1 >conftest.err | |
7267 | rm -f conftest.er1 | |
7268 | cat conftest.err >&5 | |
7269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7270 | (exit $ac_status); } && | |
7271 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7273 | (eval $ac_try) 2>&5 | |
7274 | ac_status=$? | |
7275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7276 | (exit $ac_status); }; } && | |
7277 | { ac_try='test -s conftest.$ac_objext' | |
7278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7279 | (eval $ac_try) 2>&5 | |
7280 | ac_status=$? | |
7281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7282 | (exit $ac_status); }; }; then | |
7283 | fits_in_uint=0 | |
7284 | else | |
7285 | echo "$as_me: failed program was:" >&5 | |
7286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7287 | ||
7288 | fi | |
7289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7290 | fi | |
7291 | if test -z "$result"; then | |
7292 | if test "$fits_in_uint" = 1; then | |
7293 | result="$res_hi$res_lo"U | |
7294 | else | |
7295 | result="$res_hi$res_lo"UL | |
7296 | fi | |
7297 | else | |
7298 | result='~(size_t)0' | |
7299 | fi | |
7300 | fi | |
7301 | echo "$as_me:$LINENO: result: $result" >&5 | |
7302 | echo "${ECHO_T}$result" >&6 | |
7303 | if test "$result" != yes; then | |
7304 | ||
7305 | cat >>confdefs.h <<_ACEOF | |
7306 | #define SIZE_MAX $result | |
7307 | _ACEOF | |
7308 | ||
7309 | fi | |
7310 | ||
7311 | ||
7312 | ||
7313 | ||
7314 | for ac_header in stdint.h | |
7315 | do | |
7316 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7317 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7318 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7319 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7320 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7322 | fi | |
7323 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7324 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7325 | else | |
7326 | # Is the header compilable? | |
7327 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7328 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
7329 | cat >conftest.$ac_ext <<_ACEOF | |
7330 | /* confdefs.h. */ | |
7331 | _ACEOF | |
7332 | cat confdefs.h >>conftest.$ac_ext | |
7333 | cat >>conftest.$ac_ext <<_ACEOF | |
7334 | /* end confdefs.h. */ | |
7335 | $ac_includes_default | |
7336 | #include <$ac_header> | |
7337 | _ACEOF | |
7338 | rm -f conftest.$ac_objext | |
7339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7340 | (eval $ac_compile) 2>conftest.er1 | |
7341 | ac_status=$? | |
7342 | grep -v '^ *+' conftest.er1 >conftest.err | |
7343 | rm -f conftest.er1 | |
7344 | cat conftest.err >&5 | |
7345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7346 | (exit $ac_status); } && | |
7347 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7349 | (eval $ac_try) 2>&5 | |
7350 | ac_status=$? | |
7351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7352 | (exit $ac_status); }; } && | |
7353 | { ac_try='test -s conftest.$ac_objext' | |
7354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7355 | (eval $ac_try) 2>&5 | |
7356 | ac_status=$? | |
7357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7358 | (exit $ac_status); }; }; then | |
7359 | ac_header_compiler=yes | |
7360 | else | |
7361 | echo "$as_me: failed program was:" >&5 | |
7362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7363 | ||
7364 | ac_header_compiler=no | |
7365 | fi | |
7366 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7367 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7368 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7369 | ||
7370 | # Is the header present? | |
7371 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7372 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
7373 | cat >conftest.$ac_ext <<_ACEOF | |
7374 | /* confdefs.h. */ | |
7375 | _ACEOF | |
7376 | cat confdefs.h >>conftest.$ac_ext | |
7377 | cat >>conftest.$ac_ext <<_ACEOF | |
7378 | /* end confdefs.h. */ | |
7379 | #include <$ac_header> | |
7380 | _ACEOF | |
7381 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7382 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7383 | ac_status=$? | |
7384 | grep -v '^ *+' conftest.er1 >conftest.err | |
7385 | rm -f conftest.er1 | |
7386 | cat conftest.err >&5 | |
7387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7388 | (exit $ac_status); } >/dev/null; then | |
7389 | if test -s conftest.err; then | |
7390 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7391 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7392 | else | |
7393 | ac_cpp_err= | |
7394 | fi | |
7395 | else | |
7396 | ac_cpp_err=yes | |
7397 | fi | |
7398 | if test -z "$ac_cpp_err"; then | |
7399 | ac_header_preproc=yes | |
7400 | else | |
7401 | echo "$as_me: failed program was:" >&5 | |
7402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7403 | ||
7404 | ac_header_preproc=no | |
7405 | fi | |
7406 | rm -f conftest.err conftest.$ac_ext | |
7407 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7408 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7409 | ||
7410 | # So? What about this header? | |
7411 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7412 | yes:no: ) | |
7413 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7414 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7415 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7416 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7417 | ac_header_preproc=yes | |
7418 | ;; | |
7419 | no:yes:* ) | |
7420 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7421 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7422 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7423 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7424 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7425 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7426 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7427 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7428 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7429 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7430 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7431 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7432 | ( | |
7433 | cat <<\_ASBOX | |
7434 | ## ------------------------------------------ ## | |
7435 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7436 | ## ------------------------------------------ ## | |
7437 | _ASBOX | |
7438 | ) | | |
7439 | sed "s/^/$as_me: WARNING: /" >&2 | |
7440 | ;; | |
7441 | esac | |
7442 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7443 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7444 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7446 | else | |
7447 | eval "$as_ac_Header=\$ac_header_preproc" | |
7448 | fi | |
7449 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7450 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7451 | ||
7452 | fi | |
7453 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7454 | cat >>confdefs.h <<_ACEOF | |
7455 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7456 | _ACEOF | |
7457 | ||
7458 | fi | |
7459 | ||
7460 | done | |
7461 | ||
7462 | ||
7463 | ||
7464 | if test "X$prefix" = "XNONE"; then | |
7465 | acl_final_prefix="$ac_default_prefix" | |
7466 | else | |
7467 | acl_final_prefix="$prefix" | |
7468 | fi | |
7469 | if test "X$exec_prefix" = "XNONE"; then | |
7470 | acl_final_exec_prefix='${prefix}' | |
7471 | else | |
7472 | acl_final_exec_prefix="$exec_prefix" | |
7473 | fi | |
7474 | acl_save_prefix="$prefix" | |
7475 | prefix="$acl_final_prefix" | |
7476 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
7477 | prefix="$acl_save_prefix" | |
7478 | ||
7479 | ||
7480 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
7481 | if test "${with_gnu_ld+set}" = set; then | |
7482 | withval="$with_gnu_ld" | |
7483 | test "$withval" = no || with_gnu_ld=yes | |
7484 | else | |
7485 | with_gnu_ld=no | |
7486 | fi; | |
7487 | # Prepare PATH_SEPARATOR. | |
7488 | # The user is always right. | |
7489 | if test "${PATH_SEPARATOR+set}" != set; then | |
7490 | echo "#! /bin/sh" >conf$$.sh | |
7491 | echo "exit 0" >>conf$$.sh | |
7492 | chmod +x conf$$.sh | |
7493 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7494 | PATH_SEPARATOR=';' | |
7495 | else | |
7496 | PATH_SEPARATOR=: | |
7497 | fi | |
7498 | rm -f conf$$.sh | |
7499 | fi | |
7500 | ac_prog=ld | |
7501 | if test "$GCC" = yes; then | |
7502 | # Check if gcc -print-prog-name=ld gives a path. | |
7503 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
7504 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
7505 | case $host in | |
7506 | *-*-mingw*) | |
7507 | # gcc leaves a trailing carriage return which upsets mingw | |
7508 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
7509 | *) | |
7510 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
7511 | esac | |
7512 | case $ac_prog in | |
7513 | # Accept absolute paths. | |
7514 | [\\/]* | [A-Za-z]:[\\/]*) | |
7515 | re_direlt='/[^/][^/]*/\.\./' | |
7516 | # Canonicalize the path of ld | |
7517 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
7518 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
7519 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
7520 | done | |
7521 | test -z "$LD" && LD="$ac_prog" | |
7522 | ;; | |
7523 | "") | |
7524 | # If it fails, then pretend we aren't using GCC. | |
7525 | ac_prog=ld | |
7526 | ;; | |
7527 | *) | |
7528 | # If it is relative, then search for the first ld in PATH. | |
7529 | with_gnu_ld=unknown | |
7530 | ;; | |
7531 | esac | |
7532 | elif test "$with_gnu_ld" = yes; then | |
7533 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
7534 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
7535 | else | |
7536 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
7537 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
a64c9c13 | 7538 | fi |
b0cacab0 TT |
7539 | if test "${acl_cv_path_LD+set}" = set; then |
7540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7541 | else | |
7542 | if test -z "$LD"; then | |
7543 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
7544 | for ac_dir in $PATH; do | |
7545 | test -z "$ac_dir" && ac_dir=. | |
7546 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
7547 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
7548 | # Check to see if the program is GNU ld. I'd rather use --version, | |
7549 | # but apparently some GNU ld's only accept -v. | |
7550 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
7551 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
7552 | *GNU* | *'with BFD'*) | |
7553 | test "$with_gnu_ld" != no && break ;; | |
7554 | *) | |
7555 | test "$with_gnu_ld" != yes && break ;; | |
7556 | esac | |
7557 | fi | |
7558 | done | |
7559 | IFS="$ac_save_ifs" | |
7560 | else | |
7561 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
a64c9c13 | 7562 | fi |
a04eba3f | 7563 | fi |
93636bde | 7564 | |
b0cacab0 TT |
7565 | LD="$acl_cv_path_LD" |
7566 | if test -n "$LD"; then | |
7567 | echo "$as_me:$LINENO: result: $LD" >&5 | |
7568 | echo "${ECHO_T}$LD" >&6 | |
a64c9c13 | 7569 | else |
b0cacab0 TT |
7570 | echo "$as_me:$LINENO: result: no" >&5 |
7571 | echo "${ECHO_T}no" >&6 | |
a64c9c13 | 7572 | fi |
b0cacab0 TT |
7573 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
7574 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
7575 | { (exit 1); exit 1; }; } | |
7576 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
7577 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
7578 | if test "${acl_cv_prog_gnu_ld+set}" = set; then | |
7579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7580 | else | |
7581 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
7582 | case `$LD -v 2>&1 </dev/null` in | |
7583 | *GNU* | *'with BFD'*) | |
7584 | acl_cv_prog_gnu_ld=yes ;; | |
7585 | *) | |
7586 | acl_cv_prog_gnu_ld=no ;; | |
7587 | esac | |
07a0db15 | 7588 | fi |
b0cacab0 TT |
7589 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
7590 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 | |
7591 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
07a0db15 | 7592 | |
a64c9c13 | 7593 | |
07a0db15 | 7594 | |
b0cacab0 TT |
7595 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
7596 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 | |
7597 | if test "${acl_cv_rpath+set}" = set; then | |
7598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7599 | else | |
a04eba3f | 7600 | |
b0cacab0 TT |
7601 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
7602 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
7603 | . ./conftest.sh | |
7604 | rm -f ./conftest.sh | |
7605 | acl_cv_rpath=done | |
a04eba3f | 7606 | |
07a0db15 | 7607 | fi |
b0cacab0 TT |
7608 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
7609 | echo "${ECHO_T}$acl_cv_rpath" >&6 | |
7610 | wl="$acl_cv_wl" | |
7611 | libext="$acl_cv_libext" | |
7612 | shlibext="$acl_cv_shlibext" | |
7613 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
7614 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
7615 | hardcode_direct="$acl_cv_hardcode_direct" | |
7616 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
7617 | # Check whether --enable-rpath or --disable-rpath was given. | |
7618 | if test "${enable_rpath+set}" = set; then | |
7619 | enableval="$enable_rpath" | |
7620 | : | |
7621 | else | |
7622 | enable_rpath=yes | |
7623 | fi; | |
7624 | ||
7625 | ||
93636bde | 7626 | |
a64c9c13 | 7627 | |
a64c9c13 | 7628 | |
93636bde | 7629 | |
93636bde | 7630 | |
93636bde | 7631 | use_additional=yes |
b0cacab0 | 7632 | |
07a0db15 TT |
7633 | acl_save_prefix="$prefix" |
7634 | prefix="$acl_final_prefix" | |
93636bde TT |
7635 | acl_save_exec_prefix="$exec_prefix" |
7636 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 7637 | |
93636bde TT |
7638 | eval additional_includedir=\"$includedir\" |
7639 | eval additional_libdir=\"$libdir\" | |
b0cacab0 | 7640 | |
93636bde TT |
7641 | exec_prefix="$acl_save_exec_prefix" |
7642 | prefix="$acl_save_prefix" | |
7643 | ||
b0cacab0 TT |
7644 | |
7645 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
93636bde TT |
7646 | if test "${with_libiconv_prefix+set}" = set; then |
7647 | withval="$with_libiconv_prefix" | |
b0cacab0 | 7648 | |
93636bde TT |
7649 | if test "X$withval" = "Xno"; then |
7650 | use_additional=no | |
7651 | else | |
7652 | if test "X$withval" = "X"; then | |
b0cacab0 | 7653 | |
93636bde TT |
7654 | acl_save_prefix="$prefix" |
7655 | prefix="$acl_final_prefix" | |
7656 | acl_save_exec_prefix="$exec_prefix" | |
7657 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 7658 | |
93636bde TT |
7659 | eval additional_includedir=\"$includedir\" |
7660 | eval additional_libdir=\"$libdir\" | |
b0cacab0 | 7661 | |
93636bde | 7662 | exec_prefix="$acl_save_exec_prefix" |
07a0db15 TT |
7663 | prefix="$acl_save_prefix" |
7664 | ||
07a0db15 | 7665 | else |
93636bde TT |
7666 | additional_includedir="$withval/include" |
7667 | additional_libdir="$withval/lib" | |
07a0db15 TT |
7668 | fi |
7669 | fi | |
07a0db15 | 7670 | |
b0cacab0 | 7671 | fi; |
a04eba3f TT |
7672 | LIBICONV= |
7673 | LTLIBICONV= | |
7674 | INCICONV= | |
7675 | rpathdirs= | |
7676 | ltrpathdirs= | |
7677 | names_already_handled= | |
7678 | names_next_round='iconv ' | |
7679 | while test -n "$names_next_round"; do | |
7680 | names_this_round="$names_next_round" | |
7681 | names_next_round= | |
7682 | for name in $names_this_round; do | |
7683 | already_handled= | |
7684 | for n in $names_already_handled; do | |
7685 | if test "$n" = "$name"; then | |
7686 | already_handled=yes | |
7687 | break | |
7688 | fi | |
7689 | done | |
7690 | if test -z "$already_handled"; then | |
7691 | names_already_handled="$names_already_handled $name" | |
7692 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
7693 | eval value=\"\$HAVE_LIB$uppername\" | |
7694 | if test -n "$value"; then | |
7695 | if test "$value" = yes; then | |
7696 | eval value=\"\$LIB$uppername\" | |
7697 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
7698 | eval value=\"\$LTLIB$uppername\" | |
7699 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
7700 | else | |
7701 | : | |
7702 | fi | |
7703 | else | |
7704 | found_dir= | |
7705 | found_la= | |
7706 | found_so= | |
7707 | found_a= | |
7708 | if test $use_additional = yes; then | |
7709 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
7710 | found_dir="$additional_libdir" | |
7711 | found_so="$additional_libdir/lib$name.$shlibext" | |
7712 | if test -f "$additional_libdir/lib$name.la"; then | |
7713 | found_la="$additional_libdir/lib$name.la" | |
7714 | fi | |
7715 | else | |
7716 | if test -f "$additional_libdir/lib$name.$libext"; then | |
7717 | found_dir="$additional_libdir" | |
7718 | found_a="$additional_libdir/lib$name.$libext" | |
7719 | if test -f "$additional_libdir/lib$name.la"; then | |
7720 | found_la="$additional_libdir/lib$name.la" | |
7721 | fi | |
7722 | fi | |
7723 | fi | |
7724 | fi | |
7725 | if test "X$found_dir" = "X"; then | |
7726 | for x in $LDFLAGS $LTLIBICONV; do | |
b0cacab0 | 7727 | |
a04eba3f TT |
7728 | acl_save_prefix="$prefix" |
7729 | prefix="$acl_final_prefix" | |
7730 | acl_save_exec_prefix="$exec_prefix" | |
7731 | exec_prefix="$acl_final_exec_prefix" | |
7732 | eval x=\"$x\" | |
7733 | exec_prefix="$acl_save_exec_prefix" | |
7734 | prefix="$acl_save_prefix" | |
7735 | ||
7736 | case "$x" in | |
7737 | -L*) | |
7738 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
7739 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
7740 | found_dir="$dir" | |
7741 | found_so="$dir/lib$name.$shlibext" | |
7742 | if test -f "$dir/lib$name.la"; then | |
7743 | found_la="$dir/lib$name.la" | |
7744 | fi | |
7745 | else | |
7746 | if test -f "$dir/lib$name.$libext"; then | |
7747 | found_dir="$dir" | |
7748 | found_a="$dir/lib$name.$libext" | |
7749 | if test -f "$dir/lib$name.la"; then | |
7750 | found_la="$dir/lib$name.la" | |
7751 | fi | |
7752 | fi | |
7753 | fi | |
7754 | ;; | |
7755 | esac | |
7756 | if test "X$found_dir" != "X"; then | |
7757 | break | |
7758 | fi | |
7759 | done | |
7760 | fi | |
7761 | if test "X$found_dir" != "X"; then | |
7762 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
7763 | if test "X$found_so" != "X"; then | |
7764 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
7765 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7766 | else | |
7767 | haveit= | |
7768 | for x in $ltrpathdirs; do | |
7769 | if test "X$x" = "X$found_dir"; then | |
7770 | haveit=yes | |
7771 | break | |
7772 | fi | |
7773 | done | |
7774 | if test -z "$haveit"; then | |
7775 | ltrpathdirs="$ltrpathdirs $found_dir" | |
7776 | fi | |
7777 | if test "$hardcode_direct" = yes; then | |
7778 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7779 | else | |
7780 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
7781 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7782 | haveit= | |
7783 | for x in $rpathdirs; do | |
7784 | if test "X$x" = "X$found_dir"; then | |
7785 | haveit=yes | |
7786 | break | |
7787 | fi | |
7788 | done | |
7789 | if test -z "$haveit"; then | |
7790 | rpathdirs="$rpathdirs $found_dir" | |
7791 | fi | |
7792 | else | |
7793 | haveit= | |
7794 | for x in $LDFLAGS $LIBICONV; do | |
b0cacab0 | 7795 | |
a04eba3f TT |
7796 | acl_save_prefix="$prefix" |
7797 | prefix="$acl_final_prefix" | |
7798 | acl_save_exec_prefix="$exec_prefix" | |
7799 | exec_prefix="$acl_final_exec_prefix" | |
7800 | eval x=\"$x\" | |
7801 | exec_prefix="$acl_save_exec_prefix" | |
7802 | prefix="$acl_save_prefix" | |
7803 | ||
7804 | if test "X$x" = "X-L$found_dir"; then | |
7805 | haveit=yes | |
7806 | break | |
7807 | fi | |
7808 | done | |
7809 | if test -z "$haveit"; then | |
7810 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
7811 | fi | |
7812 | if test "$hardcode_minus_L" != no; then | |
7813 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7814 | else | |
7815 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
7816 | fi | |
7817 | fi | |
7818 | fi | |
7819 | fi | |
7820 | else | |
7821 | if test "X$found_a" != "X"; then | |
7822 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
7823 | else | |
7824 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
7825 | fi | |
7826 | fi | |
7827 | additional_includedir= | |
7828 | case "$found_dir" in | |
7829 | */lib | */lib/) | |
7830 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
7831 | additional_includedir="$basedir/include" | |
7832 | ;; | |
7833 | esac | |
7834 | if test "X$additional_includedir" != "X"; then | |
7835 | if test "X$additional_includedir" != "X/usr/include"; then | |
7836 | haveit= | |
7837 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
7838 | if test -n "$GCC"; then | |
7839 | case $host_os in | |
7840 | linux*) haveit=yes;; | |
7841 | esac | |
7842 | fi | |
7843 | fi | |
7844 | if test -z "$haveit"; then | |
7845 | for x in $CPPFLAGS $INCICONV; do | |
b0cacab0 | 7846 | |
a04eba3f TT |
7847 | acl_save_prefix="$prefix" |
7848 | prefix="$acl_final_prefix" | |
7849 | acl_save_exec_prefix="$exec_prefix" | |
7850 | exec_prefix="$acl_final_exec_prefix" | |
7851 | eval x=\"$x\" | |
7852 | exec_prefix="$acl_save_exec_prefix" | |
7853 | prefix="$acl_save_prefix" | |
7854 | ||
7855 | if test "X$x" = "X-I$additional_includedir"; then | |
7856 | haveit=yes | |
7857 | break | |
7858 | fi | |
7859 | done | |
7860 | if test -z "$haveit"; then | |
7861 | if test -d "$additional_includedir"; then | |
7862 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
7863 | fi | |
7864 | fi | |
7865 | fi | |
7866 | fi | |
7867 | fi | |
7868 | if test -n "$found_la"; then | |
7869 | save_libdir="$libdir" | |
7870 | case "$found_la" in | |
7871 | */* | *\\*) . "$found_la" ;; | |
7872 | *) . "./$found_la" ;; | |
7873 | esac | |
7874 | libdir="$save_libdir" | |
7875 | for dep in $dependency_libs; do | |
7876 | case "$dep" in | |
7877 | -L*) | |
7878 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
7879 | if test "X$additional_libdir" != "X/usr/lib"; then | |
7880 | haveit= | |
7881 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
7882 | if test -n "$GCC"; then | |
7883 | case $host_os in | |
7884 | linux*) haveit=yes;; | |
7885 | esac | |
7886 | fi | |
7887 | fi | |
7888 | if test -z "$haveit"; then | |
7889 | haveit= | |
7890 | for x in $LDFLAGS $LIBICONV; do | |
b0cacab0 | 7891 | |
a04eba3f TT |
7892 | acl_save_prefix="$prefix" |
7893 | prefix="$acl_final_prefix" | |
7894 | acl_save_exec_prefix="$exec_prefix" | |
7895 | exec_prefix="$acl_final_exec_prefix" | |
7896 | eval x=\"$x\" | |
7897 | exec_prefix="$acl_save_exec_prefix" | |
7898 | prefix="$acl_save_prefix" | |
7899 | ||
7900 | if test "X$x" = "X-L$additional_libdir"; then | |
7901 | haveit=yes | |
7902 | break | |
7903 | fi | |
7904 | done | |
7905 | if test -z "$haveit"; then | |
7906 | if test -d "$additional_libdir"; then | |
7907 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
7908 | fi | |
7909 | fi | |
7910 | haveit= | |
7911 | for x in $LDFLAGS $LTLIBICONV; do | |
b0cacab0 | 7912 | |
a04eba3f TT |
7913 | acl_save_prefix="$prefix" |
7914 | prefix="$acl_final_prefix" | |
7915 | acl_save_exec_prefix="$exec_prefix" | |
7916 | exec_prefix="$acl_final_exec_prefix" | |
7917 | eval x=\"$x\" | |
7918 | exec_prefix="$acl_save_exec_prefix" | |
7919 | prefix="$acl_save_prefix" | |
7920 | ||
7921 | if test "X$x" = "X-L$additional_libdir"; then | |
7922 | haveit=yes | |
7923 | break | |
7924 | fi | |
7925 | done | |
7926 | if test -z "$haveit"; then | |
7927 | if test -d "$additional_libdir"; then | |
7928 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
7929 | fi | |
7930 | fi | |
7931 | fi | |
7932 | fi | |
7933 | ;; | |
7934 | -R*) | |
7935 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
7936 | if test "$enable_rpath" != no; then | |
7937 | haveit= | |
7938 | for x in $rpathdirs; do | |
7939 | if test "X$x" = "X$dir"; then | |
7940 | haveit=yes | |
7941 | break | |
7942 | fi | |
7943 | done | |
7944 | if test -z "$haveit"; then | |
7945 | rpathdirs="$rpathdirs $dir" | |
7946 | fi | |
7947 | haveit= | |
7948 | for x in $ltrpathdirs; do | |
7949 | if test "X$x" = "X$dir"; then | |
7950 | haveit=yes | |
7951 | break | |
7952 | fi | |
7953 | done | |
7954 | if test -z "$haveit"; then | |
7955 | ltrpathdirs="$ltrpathdirs $dir" | |
7956 | fi | |
7957 | fi | |
7958 | ;; | |
7959 | -l*) | |
7960 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
7961 | ;; | |
7962 | *.la) | |
7963 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
7964 | ;; | |
7965 | *) | |
7966 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
7967 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
7968 | ;; | |
7969 | esac | |
7970 | done | |
7971 | fi | |
7972 | else | |
7973 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
7974 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
7975 | fi | |
7976 | fi | |
7977 | fi | |
7978 | done | |
7979 | done | |
7980 | if test "X$rpathdirs" != "X"; then | |
7981 | if test -n "$hardcode_libdir_separator"; then | |
7982 | alldirs= | |
7983 | for found_dir in $rpathdirs; do | |
7984 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
7985 | done | |
7986 | acl_save_libdir="$libdir" | |
7987 | libdir="$alldirs" | |
7988 | eval flag=\"$hardcode_libdir_flag_spec\" | |
7989 | libdir="$acl_save_libdir" | |
7990 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
7991 | else | |
7992 | for found_dir in $rpathdirs; do | |
7993 | acl_save_libdir="$libdir" | |
7994 | libdir="$found_dir" | |
7995 | eval flag=\"$hardcode_libdir_flag_spec\" | |
7996 | libdir="$acl_save_libdir" | |
7997 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
7998 | done | |
7999 | fi | |
8000 | fi | |
8001 | if test "X$ltrpathdirs" != "X"; then | |
8002 | for found_dir in $ltrpathdirs; do | |
8003 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
8004 | done | |
8005 | fi | |
a64c9c13 | 8006 | |
93636bde TT |
8007 | |
8008 | ||
93636bde | 8009 | |
b0cacab0 TT |
8010 | |
8011 | ||
8012 | ||
8013 | ||
8014 | echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 | |
8015 | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6 | |
8016 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then | |
8017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8018 | else | |
8019 | cat >conftest.$ac_ext <<_ACEOF | |
8020 | /* confdefs.h. */ | |
8021 | _ACEOF | |
8022 | cat confdefs.h >>conftest.$ac_ext | |
8023 | cat >>conftest.$ac_ext <<_ACEOF | |
8024 | /* end confdefs.h. */ | |
8025 | $ac_includes_default | |
8026 | int | |
8027 | main () | |
8028 | { | |
8029 | if ((ptrdiff_t *) 0) | |
8030 | return 0; | |
8031 | if (sizeof (ptrdiff_t)) | |
8032 | return 0; | |
8033 | ; | |
8034 | return 0; | |
8035 | } | |
8036 | _ACEOF | |
8037 | rm -f conftest.$ac_objext | |
8038 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8039 | (eval $ac_compile) 2>conftest.er1 | |
8040 | ac_status=$? | |
8041 | grep -v '^ *+' conftest.er1 >conftest.err | |
8042 | rm -f conftest.er1 | |
8043 | cat conftest.err >&5 | |
8044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8045 | (exit $ac_status); } && | |
8046 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8048 | (eval $ac_try) 2>&5 | |
8049 | ac_status=$? | |
8050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8051 | (exit $ac_status); }; } && | |
8052 | { ac_try='test -s conftest.$ac_objext' | |
8053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8054 | (eval $ac_try) 2>&5 | |
8055 | ac_status=$? | |
8056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8057 | (exit $ac_status); }; }; then | |
8058 | ac_cv_type_ptrdiff_t=yes | |
8059 | else | |
8060 | echo "$as_me: failed program was:" >&5 | |
8061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8062 | ||
8063 | ac_cv_type_ptrdiff_t=no | |
8064 | fi | |
8065 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8066 | fi | |
8067 | echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 | |
8068 | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6 | |
8069 | if test $ac_cv_type_ptrdiff_t = yes; then | |
8070 | : | |
8071 | else | |
8072 | ||
8073 | cat >>confdefs.h <<\_ACEOF | |
8074 | #define ptrdiff_t long | |
8075 | _ACEOF | |
8076 | ||
8077 | ||
8078 | fi | |
8079 | ||
8080 | ||
8081 | ||
8082 | ||
8083 | ||
8084 | ||
8085 | ||
8086 | ||
8087 | ||
8088 | ||
8089 | ||
8090 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ | |
8091 | stdlib.h string.h unistd.h sys/param.h | |
8092 | do | |
8093 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8094 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8095 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8096 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8097 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8099 | fi | |
8100 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8101 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8102 | else | |
8103 | # Is the header compilable? | |
8104 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8105 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8106 | cat >conftest.$ac_ext <<_ACEOF | |
8107 | /* confdefs.h. */ | |
8108 | _ACEOF | |
8109 | cat confdefs.h >>conftest.$ac_ext | |
8110 | cat >>conftest.$ac_ext <<_ACEOF | |
8111 | /* end confdefs.h. */ | |
8112 | $ac_includes_default | |
8113 | #include <$ac_header> | |
8114 | _ACEOF | |
8115 | rm -f conftest.$ac_objext | |
8116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8117 | (eval $ac_compile) 2>conftest.er1 | |
8118 | ac_status=$? | |
8119 | grep -v '^ *+' conftest.er1 >conftest.err | |
8120 | rm -f conftest.er1 | |
8121 | cat conftest.err >&5 | |
8122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8123 | (exit $ac_status); } && | |
8124 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8126 | (eval $ac_try) 2>&5 | |
8127 | ac_status=$? | |
8128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8129 | (exit $ac_status); }; } && | |
8130 | { ac_try='test -s conftest.$ac_objext' | |
8131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8132 | (eval $ac_try) 2>&5 | |
8133 | ac_status=$? | |
8134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8135 | (exit $ac_status); }; }; then | |
8136 | ac_header_compiler=yes | |
8137 | else | |
8138 | echo "$as_me: failed program was:" >&5 | |
8139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8140 | ||
8141 | ac_header_compiler=no | |
8142 | fi | |
8143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8144 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8145 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8146 | ||
8147 | # Is the header present? | |
8148 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8149 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8150 | cat >conftest.$ac_ext <<_ACEOF | |
8151 | /* confdefs.h. */ | |
8152 | _ACEOF | |
8153 | cat confdefs.h >>conftest.$ac_ext | |
8154 | cat >>conftest.$ac_ext <<_ACEOF | |
8155 | /* end confdefs.h. */ | |
8156 | #include <$ac_header> | |
8157 | _ACEOF | |
8158 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8159 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8160 | ac_status=$? | |
8161 | grep -v '^ *+' conftest.er1 >conftest.err | |
8162 | rm -f conftest.er1 | |
8163 | cat conftest.err >&5 | |
8164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8165 | (exit $ac_status); } >/dev/null; then | |
8166 | if test -s conftest.err; then | |
8167 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8168 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8169 | else | |
8170 | ac_cpp_err= | |
8171 | fi | |
8172 | else | |
8173 | ac_cpp_err=yes | |
8174 | fi | |
8175 | if test -z "$ac_cpp_err"; then | |
8176 | ac_header_preproc=yes | |
8177 | else | |
8178 | echo "$as_me: failed program was:" >&5 | |
8179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8180 | ||
8181 | ac_header_preproc=no | |
8182 | fi | |
8183 | rm -f conftest.err conftest.$ac_ext | |
8184 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8185 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8186 | ||
8187 | # So? What about this header? | |
8188 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8189 | yes:no: ) | |
8190 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8191 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8192 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8193 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8194 | ac_header_preproc=yes | |
8195 | ;; | |
8196 | no:yes:* ) | |
8197 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8198 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8199 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8200 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8201 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8202 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8203 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8204 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8205 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8206 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8207 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8208 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8209 | ( | |
8210 | cat <<\_ASBOX | |
8211 | ## ------------------------------------------ ## | |
8212 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8213 | ## ------------------------------------------ ## | |
8214 | _ASBOX | |
8215 | ) | | |
8216 | sed "s/^/$as_me: WARNING: /" >&2 | |
8217 | ;; | |
8218 | esac | |
8219 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8220 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8221 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8223 | else | |
8224 | eval "$as_ac_Header=\$ac_header_preproc" | |
8225 | fi | |
8226 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8227 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8228 | ||
8229 | fi | |
8230 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8231 | cat >>confdefs.h <<_ACEOF | |
8232 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8233 | _ACEOF | |
8234 | ||
8235 | fi | |
8236 | ||
8237 | done | |
8238 | ||
8239 | ||
8240 | ||
8241 | ||
8242 | ||
8243 | ||
8244 | ||
8245 | ||
8246 | ||
8247 | ||
8248 | ||
8249 | ||
8250 | ||
8251 | ||
8252 | ||
8253 | ||
8254 | ||
8255 | ||
8256 | ||
8257 | ||
8258 | ||
8259 | ||
8260 | ||
8261 | ||
8262 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ | |
8263 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ | |
8264 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ | |
8265 | __fsetlocking | |
8266 | do | |
8267 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8268 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8269 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8270 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8272 | else | |
8273 | cat >conftest.$ac_ext <<_ACEOF | |
8274 | /* confdefs.h. */ | |
8275 | _ACEOF | |
8276 | cat confdefs.h >>conftest.$ac_ext | |
8277 | cat >>conftest.$ac_ext <<_ACEOF | |
8278 | /* end confdefs.h. */ | |
8279 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8280 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8281 | #define $ac_func innocuous_$ac_func | |
8282 | ||
8283 | /* System header to define __stub macros and hopefully few prototypes, | |
8284 | which can conflict with char $ac_func (); below. | |
8285 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8286 | <limits.h> exists even on freestanding compilers. */ | |
8287 | ||
8288 | #ifdef __STDC__ | |
8289 | # include <limits.h> | |
8290 | #else | |
8291 | # include <assert.h> | |
8292 | #endif | |
8293 | ||
8294 | #undef $ac_func | |
8295 | ||
8296 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8297 | #ifdef __cplusplus | |
8298 | extern "C" | |
8299 | { | |
8300 | #endif | |
8301 | /* We use char because int might match the return type of a gcc2 | |
8302 | builtin and then its argument prototype would still apply. */ | |
8303 | char $ac_func (); | |
8304 | /* The GNU C library defines this for functions which it implements | |
8305 | to always fail with ENOSYS. Some functions are actually named | |
8306 | something starting with __ and the normal name is an alias. */ | |
8307 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8308 | choke me | |
8309 | #else | |
8310 | char (*f) () = $ac_func; | |
8311 | #endif | |
8312 | #ifdef __cplusplus | |
8313 | } | |
8314 | #endif | |
8315 | ||
8316 | int | |
8317 | main () | |
8318 | { | |
8319 | return f != $ac_func; | |
8320 | ; | |
8321 | return 0; | |
8322 | } | |
8323 | _ACEOF | |
8324 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8325 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8326 | (eval $ac_link) 2>conftest.er1 | |
8327 | ac_status=$? | |
8328 | grep -v '^ *+' conftest.er1 >conftest.err | |
8329 | rm -f conftest.er1 | |
8330 | cat conftest.err >&5 | |
8331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8332 | (exit $ac_status); } && | |
8333 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8335 | (eval $ac_try) 2>&5 | |
8336 | ac_status=$? | |
8337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8338 | (exit $ac_status); }; } && | |
8339 | { ac_try='test -s conftest$ac_exeext' | |
8340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8341 | (eval $ac_try) 2>&5 | |
8342 | ac_status=$? | |
8343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8344 | (exit $ac_status); }; }; then | |
8345 | eval "$as_ac_var=yes" | |
8346 | else | |
8347 | echo "$as_me: failed program was:" >&5 | |
8348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8349 | ||
8350 | eval "$as_ac_var=no" | |
8351 | fi | |
8352 | rm -f conftest.err conftest.$ac_objext \ | |
8353 | conftest$ac_exeext conftest.$ac_ext | |
8354 | fi | |
8355 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
8356 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
8357 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8358 | cat >>confdefs.h <<_ACEOF | |
8359 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8360 | _ACEOF | |
8361 | ||
8362 | fi | |
8363 | done | |
8364 | ||
8365 | ||
8366 | ||
8367 | echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 | |
8368 | echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6 | |
8369 | if test "${ac_cv_have_decl__snprintf+set}" = set; then | |
8370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8371 | else | |
8372 | cat >conftest.$ac_ext <<_ACEOF | |
8373 | /* confdefs.h. */ | |
8374 | _ACEOF | |
8375 | cat confdefs.h >>conftest.$ac_ext | |
8376 | cat >>conftest.$ac_ext <<_ACEOF | |
8377 | /* end confdefs.h. */ | |
8378 | #include <stdio.h> | |
8379 | int | |
8380 | main () | |
8381 | { | |
8382 | ||
8383 | #ifndef _snprintf | |
8384 | char *p = (char *) _snprintf; | |
8385 | #endif | |
8386 | ||
8387 | ; | |
8388 | return 0; | |
8389 | } | |
8390 | _ACEOF | |
8391 | rm -f conftest.$ac_objext | |
8392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8393 | (eval $ac_compile) 2>conftest.er1 | |
8394 | ac_status=$? | |
8395 | grep -v '^ *+' conftest.er1 >conftest.err | |
8396 | rm -f conftest.er1 | |
8397 | cat conftest.err >&5 | |
8398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8399 | (exit $ac_status); } && | |
8400 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8402 | (eval $ac_try) 2>&5 | |
8403 | ac_status=$? | |
8404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8405 | (exit $ac_status); }; } && | |
8406 | { ac_try='test -s conftest.$ac_objext' | |
8407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8408 | (eval $ac_try) 2>&5 | |
8409 | ac_status=$? | |
8410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8411 | (exit $ac_status); }; }; then | |
8412 | ac_cv_have_decl__snprintf=yes | |
8413 | else | |
8414 | echo "$as_me: failed program was:" >&5 | |
8415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8416 | ||
8417 | ac_cv_have_decl__snprintf=no | |
8418 | fi | |
8419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8420 | fi | |
8421 | echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 | |
8422 | echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6 | |
8423 | if test $ac_cv_have_decl__snprintf = yes; then | |
8424 | gt_value=1 | |
8425 | else | |
8426 | gt_value=0 | |
8427 | fi | |
8428 | ||
8429 | cat >>confdefs.h <<_ACEOF | |
8430 | #define HAVE_DECL__SNPRINTF $gt_value | |
8431 | _ACEOF | |
8432 | ||
8433 | ||
8434 | ||
8435 | echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 | |
8436 | echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6 | |
8437 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then | |
8438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8439 | else | |
8440 | cat >conftest.$ac_ext <<_ACEOF | |
8441 | /* confdefs.h. */ | |
8442 | _ACEOF | |
8443 | cat confdefs.h >>conftest.$ac_ext | |
8444 | cat >>conftest.$ac_ext <<_ACEOF | |
8445 | /* end confdefs.h. */ | |
8446 | #include <stdio.h> | |
8447 | int | |
8448 | main () | |
8449 | { | |
8450 | ||
8451 | #ifndef _snwprintf | |
8452 | char *p = (char *) _snwprintf; | |
8453 | #endif | |
8454 | ||
8455 | ; | |
8456 | return 0; | |
8457 | } | |
8458 | _ACEOF | |
8459 | rm -f conftest.$ac_objext | |
8460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8461 | (eval $ac_compile) 2>conftest.er1 | |
8462 | ac_status=$? | |
8463 | grep -v '^ *+' conftest.er1 >conftest.err | |
8464 | rm -f conftest.er1 | |
8465 | cat conftest.err >&5 | |
8466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8467 | (exit $ac_status); } && | |
8468 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8470 | (eval $ac_try) 2>&5 | |
8471 | ac_status=$? | |
8472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8473 | (exit $ac_status); }; } && | |
8474 | { ac_try='test -s conftest.$ac_objext' | |
8475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8476 | (eval $ac_try) 2>&5 | |
8477 | ac_status=$? | |
8478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8479 | (exit $ac_status); }; }; then | |
8480 | ac_cv_have_decl__snwprintf=yes | |
8481 | else | |
8482 | echo "$as_me: failed program was:" >&5 | |
8483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8484 | ||
8485 | ac_cv_have_decl__snwprintf=no | |
8486 | fi | |
8487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8488 | fi | |
8489 | echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 | |
8490 | echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6 | |
8491 | if test $ac_cv_have_decl__snwprintf = yes; then | |
8492 | gt_value=1 | |
8493 | else | |
8494 | gt_value=0 | |
8495 | fi | |
8496 | ||
8497 | cat >>confdefs.h <<_ACEOF | |
8498 | #define HAVE_DECL__SNWPRINTF $gt_value | |
8499 | _ACEOF | |
8500 | ||
8501 | ||
8502 | ||
8503 | ||
8504 | echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 | |
8505 | echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6 | |
8506 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then | |
8507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8508 | else | |
8509 | cat >conftest.$ac_ext <<_ACEOF | |
8510 | /* confdefs.h. */ | |
8511 | _ACEOF | |
8512 | cat confdefs.h >>conftest.$ac_ext | |
8513 | cat >>conftest.$ac_ext <<_ACEOF | |
8514 | /* end confdefs.h. */ | |
8515 | #include <stdio.h> | |
8516 | int | |
8517 | main () | |
8518 | { | |
8519 | ||
8520 | #ifndef feof_unlocked | |
8521 | char *p = (char *) feof_unlocked; | |
8522 | #endif | |
8523 | ||
8524 | ; | |
8525 | return 0; | |
8526 | } | |
8527 | _ACEOF | |
8528 | rm -f conftest.$ac_objext | |
8529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8530 | (eval $ac_compile) 2>conftest.er1 | |
8531 | ac_status=$? | |
8532 | grep -v '^ *+' conftest.er1 >conftest.err | |
8533 | rm -f conftest.er1 | |
8534 | cat conftest.err >&5 | |
8535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8536 | (exit $ac_status); } && | |
8537 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8539 | (eval $ac_try) 2>&5 | |
8540 | ac_status=$? | |
8541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8542 | (exit $ac_status); }; } && | |
8543 | { ac_try='test -s conftest.$ac_objext' | |
8544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8545 | (eval $ac_try) 2>&5 | |
8546 | ac_status=$? | |
8547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8548 | (exit $ac_status); }; }; then | |
8549 | ac_cv_have_decl_feof_unlocked=yes | |
8550 | else | |
8551 | echo "$as_me: failed program was:" >&5 | |
8552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8553 | ||
8554 | ac_cv_have_decl_feof_unlocked=no | |
8555 | fi | |
8556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8557 | fi | |
8558 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 | |
8559 | echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6 | |
8560 | if test $ac_cv_have_decl_feof_unlocked = yes; then | |
8561 | gt_value=1 | |
8562 | else | |
8563 | gt_value=0 | |
8564 | fi | |
8565 | ||
8566 | cat >>confdefs.h <<_ACEOF | |
8567 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value | |
8568 | _ACEOF | |
8569 | ||
8570 | ||
8571 | ||
8572 | echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 | |
8573 | echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6 | |
8574 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then | |
8575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
93636bde | 8576 | else |
b0cacab0 TT |
8577 | cat >conftest.$ac_ext <<_ACEOF |
8578 | /* confdefs.h. */ | |
8579 | _ACEOF | |
8580 | cat confdefs.h >>conftest.$ac_ext | |
8581 | cat >>conftest.$ac_ext <<_ACEOF | |
8582 | /* end confdefs.h. */ | |
8583 | #include <stdio.h> | |
8584 | int | |
8585 | main () | |
8586 | { | |
93636bde | 8587 | |
b0cacab0 TT |
8588 | #ifndef fgets_unlocked |
8589 | char *p = (char *) fgets_unlocked; | |
8590 | #endif | |
93636bde | 8591 | |
b0cacab0 TT |
8592 | ; |
8593 | return 0; | |
8594 | } | |
8595 | _ACEOF | |
8596 | rm -f conftest.$ac_objext | |
8597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8598 | (eval $ac_compile) 2>conftest.er1 | |
8599 | ac_status=$? | |
8600 | grep -v '^ *+' conftest.er1 >conftest.err | |
8601 | rm -f conftest.er1 | |
8602 | cat conftest.err >&5 | |
8603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8604 | (exit $ac_status); } && | |
8605 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8607 | (eval $ac_try) 2>&5 | |
8608 | ac_status=$? | |
8609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8610 | (exit $ac_status); }; } && | |
8611 | { ac_try='test -s conftest.$ac_objext' | |
8612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8613 | (eval $ac_try) 2>&5 | |
8614 | ac_status=$? | |
8615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8616 | (exit $ac_status); }; }; then | |
8617 | ac_cv_have_decl_fgets_unlocked=yes | |
8618 | else | |
8619 | echo "$as_me: failed program was:" >&5 | |
8620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8621 | ||
8622 | ac_cv_have_decl_fgets_unlocked=no | |
8623 | fi | |
8624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8625 | fi | |
8626 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 | |
8627 | echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6 | |
8628 | if test $ac_cv_have_decl_fgets_unlocked = yes; then | |
8629 | gt_value=1 | |
8630 | else | |
8631 | gt_value=0 | |
8632 | fi | |
93636bde | 8633 | |
b0cacab0 TT |
8634 | cat >>confdefs.h <<_ACEOF |
8635 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value | |
8636 | _ACEOF | |
93636bde | 8637 | |
b0cacab0 TT |
8638 | |
8639 | ||
8640 | echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 | |
8641 | echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6 | |
8642 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then | |
8643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
07a0db15 | 8644 | else |
b0cacab0 TT |
8645 | cat >conftest.$ac_ext <<_ACEOF |
8646 | /* confdefs.h. */ | |
8647 | _ACEOF | |
8648 | cat confdefs.h >>conftest.$ac_ext | |
8649 | cat >>conftest.$ac_ext <<_ACEOF | |
8650 | /* end confdefs.h. */ | |
8651 | #include <stdio.h> | |
8652 | int | |
8653 | main () | |
8654 | { | |
93636bde | 8655 | |
b0cacab0 TT |
8656 | #ifndef getc_unlocked |
8657 | char *p = (char *) getc_unlocked; | |
8658 | #endif | |
93636bde | 8659 | |
b0cacab0 TT |
8660 | ; |
8661 | return 0; | |
8662 | } | |
8663 | _ACEOF | |
8664 | rm -f conftest.$ac_objext | |
8665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8666 | (eval $ac_compile) 2>conftest.er1 | |
8667 | ac_status=$? | |
8668 | grep -v '^ *+' conftest.er1 >conftest.err | |
8669 | rm -f conftest.er1 | |
8670 | cat conftest.err >&5 | |
8671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8672 | (exit $ac_status); } && | |
8673 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8675 | (eval $ac_try) 2>&5 | |
8676 | ac_status=$? | |
8677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8678 | (exit $ac_status); }; } && | |
8679 | { ac_try='test -s conftest.$ac_objext' | |
8680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8681 | (eval $ac_try) 2>&5 | |
8682 | ac_status=$? | |
8683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8684 | (exit $ac_status); }; }; then | |
8685 | ac_cv_have_decl_getc_unlocked=yes | |
8686 | else | |
8687 | echo "$as_me: failed program was:" >&5 | |
8688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8689 | ||
8690 | ac_cv_have_decl_getc_unlocked=no | |
8691 | fi | |
8692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8693 | fi | |
8694 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 | |
8695 | echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6 | |
8696 | if test $ac_cv_have_decl_getc_unlocked = yes; then | |
8697 | gt_value=1 | |
8698 | else | |
8699 | gt_value=0 | |
93636bde TT |
8700 | fi |
8701 | ||
b0cacab0 TT |
8702 | cat >>confdefs.h <<_ACEOF |
8703 | #define HAVE_DECL_GETC_UNLOCKED $gt_value | |
8704 | _ACEOF | |
93636bde | 8705 | |
93636bde TT |
8706 | |
8707 | ||
b0cacab0 TT |
8708 | case $gt_cv_func_printf_posix in |
8709 | *yes) HAVE_POSIX_PRINTF=1 ;; | |
8710 | *) HAVE_POSIX_PRINTF=0 ;; | |
8711 | esac | |
a04eba3f | 8712 | |
b0cacab0 TT |
8713 | if test "$ac_cv_func_asprintf" = yes; then |
8714 | HAVE_ASPRINTF=1 | |
8715 | else | |
8716 | HAVE_ASPRINTF=0 | |
8717 | fi | |
8718 | ||
8719 | if test "$ac_cv_func_snprintf" = yes; then | |
8720 | HAVE_SNPRINTF=1 | |
8721 | else | |
8722 | HAVE_SNPRINTF=0 | |
8723 | fi | |
8724 | ||
8725 | if test "$ac_cv_func_wprintf" = yes; then | |
8726 | HAVE_WPRINTF=1 | |
8727 | else | |
8728 | HAVE_WPRINTF=0 | |
8729 | fi | |
93636bde | 8730 | |
a64c9c13 | 8731 | |
a64c9c13 | 8732 | |
a64c9c13 | 8733 | |
a64c9c13 | 8734 | |
07a0db15 | 8735 | |
93636bde TT |
8736 | |
8737 | am_save_CPPFLAGS="$CPPFLAGS" | |
b0cacab0 | 8738 | |
a04eba3f TT |
8739 | for element in $INCICONV; do |
8740 | haveit= | |
8741 | for x in $CPPFLAGS; do | |
b0cacab0 | 8742 | |
a04eba3f TT |
8743 | acl_save_prefix="$prefix" |
8744 | prefix="$acl_final_prefix" | |
8745 | acl_save_exec_prefix="$exec_prefix" | |
8746 | exec_prefix="$acl_final_exec_prefix" | |
8747 | eval x=\"$x\" | |
8748 | exec_prefix="$acl_save_exec_prefix" | |
8749 | prefix="$acl_save_prefix" | |
8750 | ||
8751 | if test "X$x" = "X$element"; then | |
8752 | haveit=yes | |
8753 | break | |
8754 | fi | |
8755 | done | |
8756 | if test -z "$haveit"; then | |
8757 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
a64c9c13 TT |
8758 | fi |
8759 | done | |
a64c9c13 | 8760 | |
07a0db15 | 8761 | |
b0cacab0 TT |
8762 | echo "$as_me:$LINENO: checking for iconv" >&5 |
8763 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
8764 | if test "${am_cv_func_iconv+set}" = set; then | |
8765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
93636bde | 8766 | else |
b0cacab0 | 8767 | |
a04eba3f TT |
8768 | am_cv_func_iconv="no, consider installing GNU libiconv" |
8769 | am_cv_lib_iconv=no | |
b0cacab0 TT |
8770 | cat >conftest.$ac_ext <<_ACEOF |
8771 | /* confdefs.h. */ | |
8772 | _ACEOF | |
8773 | cat confdefs.h >>conftest.$ac_ext | |
8774 | cat >>conftest.$ac_ext <<_ACEOF | |
8775 | /* end confdefs.h. */ | |
a04eba3f TT |
8776 | #include <stdlib.h> |
8777 | #include <iconv.h> | |
b0cacab0 TT |
8778 | int |
8779 | main () | |
8780 | { | |
a04eba3f TT |
8781 | iconv_t cd = iconv_open("",""); |
8782 | iconv(cd,NULL,NULL,NULL,NULL); | |
8783 | iconv_close(cd); | |
b0cacab0 TT |
8784 | ; |
8785 | return 0; | |
8786 | } | |
8787 | _ACEOF | |
8788 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8789 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8790 | (eval $ac_link) 2>conftest.er1 | |
8791 | ac_status=$? | |
8792 | grep -v '^ *+' conftest.er1 >conftest.err | |
8793 | rm -f conftest.er1 | |
8794 | cat conftest.err >&5 | |
8795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8796 | (exit $ac_status); } && | |
8797 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8799 | (eval $ac_try) 2>&5 | |
8800 | ac_status=$? | |
8801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8802 | (exit $ac_status); }; } && | |
8803 | { ac_try='test -s conftest$ac_exeext' | |
8804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8805 | (eval $ac_try) 2>&5 | |
8806 | ac_status=$? | |
8807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8808 | (exit $ac_status); }; }; then | |
a04eba3f | 8809 | am_cv_func_iconv=yes |
a64c9c13 | 8810 | else |
b0cacab0 TT |
8811 | echo "$as_me: failed program was:" >&5 |
8812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8813 | ||
a64c9c13 | 8814 | fi |
b0cacab0 TT |
8815 | rm -f conftest.err conftest.$ac_objext \ |
8816 | conftest$ac_exeext conftest.$ac_ext | |
a04eba3f TT |
8817 | if test "$am_cv_func_iconv" != yes; then |
8818 | am_save_LIBS="$LIBS" | |
8819 | LIBS="$LIBS $LIBICONV" | |
b0cacab0 TT |
8820 | cat >conftest.$ac_ext <<_ACEOF |
8821 | /* confdefs.h. */ | |
8822 | _ACEOF | |
8823 | cat confdefs.h >>conftest.$ac_ext | |
8824 | cat >>conftest.$ac_ext <<_ACEOF | |
8825 | /* end confdefs.h. */ | |
a04eba3f TT |
8826 | #include <stdlib.h> |
8827 | #include <iconv.h> | |
b0cacab0 TT |
8828 | int |
8829 | main () | |
8830 | { | |
a04eba3f TT |
8831 | iconv_t cd = iconv_open("",""); |
8832 | iconv(cd,NULL,NULL,NULL,NULL); | |
8833 | iconv_close(cd); | |
b0cacab0 TT |
8834 | ; |
8835 | return 0; | |
8836 | } | |
8837 | _ACEOF | |
8838 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8840 | (eval $ac_link) 2>conftest.er1 | |
8841 | ac_status=$? | |
8842 | grep -v '^ *+' conftest.er1 >conftest.err | |
8843 | rm -f conftest.er1 | |
8844 | cat conftest.err >&5 | |
8845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8846 | (exit $ac_status); } && | |
8847 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8849 | (eval $ac_try) 2>&5 | |
8850 | ac_status=$? | |
8851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8852 | (exit $ac_status); }; } && | |
8853 | { ac_try='test -s conftest$ac_exeext' | |
8854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8855 | (eval $ac_try) 2>&5 | |
8856 | ac_status=$? | |
8857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8858 | (exit $ac_status); }; }; then | |
a04eba3f TT |
8859 | am_cv_lib_iconv=yes |
8860 | am_cv_func_iconv=yes | |
a64c9c13 | 8861 | else |
b0cacab0 TT |
8862 | echo "$as_me: failed program was:" >&5 |
8863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8864 | ||
a64c9c13 | 8865 | fi |
b0cacab0 TT |
8866 | rm -f conftest.err conftest.$ac_objext \ |
8867 | conftest$ac_exeext conftest.$ac_ext | |
a04eba3f TT |
8868 | LIBS="$am_save_LIBS" |
8869 | fi | |
07a0db15 | 8870 | |
b0cacab0 TT |
8871 | fi |
8872 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
8873 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
93636bde | 8874 | if test "$am_cv_func_iconv" = yes; then |
b0cacab0 TT |
8875 | |
8876 | cat >>confdefs.h <<\_ACEOF | |
a04eba3f | 8877 | #define HAVE_ICONV 1 |
b0cacab0 | 8878 | _ACEOF |
a64c9c13 | 8879 | |
a04eba3f TT |
8880 | fi |
8881 | if test "$am_cv_lib_iconv" = yes; then | |
b0cacab0 TT |
8882 | echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
8883 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 | |
8884 | echo "$as_me:$LINENO: result: $LIBICONV" >&5 | |
8885 | echo "${ECHO_T}$LIBICONV" >&6 | |
a04eba3f TT |
8886 | else |
8887 | CPPFLAGS="$am_save_CPPFLAGS" | |
8888 | LIBICONV= | |
8889 | LTLIBICONV= | |
8890 | fi | |
b0cacab0 TT |
8891 | |
8892 | ||
a64c9c13 | 8893 | |
a04eba3f | 8894 | if test "$am_cv_func_iconv" = yes; then |
b0cacab0 TT |
8895 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
8896 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 | |
8897 | if test "${am_cv_proto_iconv+set}" = set; then | |
8898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
93636bde | 8899 | else |
b0cacab0 TT |
8900 | |
8901 | cat >conftest.$ac_ext <<_ACEOF | |
8902 | /* confdefs.h. */ | |
8903 | _ACEOF | |
8904 | cat confdefs.h >>conftest.$ac_ext | |
8905 | cat >>conftest.$ac_ext <<_ACEOF | |
8906 | /* end confdefs.h. */ | |
a64c9c13 | 8907 | |
a04eba3f TT |
8908 | #include <stdlib.h> |
8909 | #include <iconv.h> | |
8910 | extern | |
8911 | #ifdef __cplusplus | |
8912 | "C" | |
8913 | #endif | |
8914 | #if defined(__STDC__) || defined(__cplusplus) | |
8915 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
8916 | #else | |
8917 | size_t iconv(); | |
8918 | #endif | |
8919 | ||
b0cacab0 TT |
8920 | int |
8921 | main () | |
8922 | { | |
a04eba3f | 8923 | |
b0cacab0 TT |
8924 | ; |
8925 | return 0; | |
8926 | } | |
8927 | _ACEOF | |
8928 | rm -f conftest.$ac_objext | |
8929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8930 | (eval $ac_compile) 2>conftest.er1 | |
8931 | ac_status=$? | |
8932 | grep -v '^ *+' conftest.er1 >conftest.err | |
8933 | rm -f conftest.er1 | |
8934 | cat conftest.err >&5 | |
8935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8936 | (exit $ac_status); } && | |
8937 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8939 | (eval $ac_try) 2>&5 | |
8940 | ac_status=$? | |
8941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8942 | (exit $ac_status); }; } && | |
8943 | { ac_try='test -s conftest.$ac_objext' | |
8944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8945 | (eval $ac_try) 2>&5 | |
8946 | ac_status=$? | |
8947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8948 | (exit $ac_status); }; }; then | |
a04eba3f | 8949 | am_cv_proto_iconv_arg1="" |
a64c9c13 | 8950 | else |
b0cacab0 TT |
8951 | echo "$as_me: failed program was:" >&5 |
8952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8953 | ||
8954 | am_cv_proto_iconv_arg1="const" | |
a64c9c13 | 8955 | fi |
b0cacab0 | 8956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a04eba3f | 8957 | 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);" |
a64c9c13 | 8958 | fi |
a64c9c13 | 8959 | |
a04eba3f | 8960 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
b0cacab0 TT |
8961 | echo "$as_me:$LINENO: result: ${ac_t:- |
8962 | }$am_cv_proto_iconv" >&5 | |
8963 | echo "${ECHO_T}${ac_t:- | |
8964 | }$am_cv_proto_iconv" >&6 | |
8965 | ||
8966 | cat >>confdefs.h <<_ACEOF | |
a04eba3f | 8967 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
b0cacab0 | 8968 | _ACEOF |
a64c9c13 | 8969 | |
a04eba3f | 8970 | fi |
a64c9c13 | 8971 | |
b0cacab0 TT |
8972 | |
8973 | echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 | |
8974 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 | |
8975 | if test "${am_cv_langinfo_codeset+set}" = set; then | |
8976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a64c9c13 | 8977 | else |
b0cacab0 TT |
8978 | cat >conftest.$ac_ext <<_ACEOF |
8979 | /* confdefs.h. */ | |
8980 | _ACEOF | |
8981 | cat confdefs.h >>conftest.$ac_ext | |
8982 | cat >>conftest.$ac_ext <<_ACEOF | |
8983 | /* end confdefs.h. */ | |
a04eba3f | 8984 | #include <langinfo.h> |
b0cacab0 TT |
8985 | int |
8986 | main () | |
8987 | { | |
a04eba3f | 8988 | char* cs = nl_langinfo(CODESET); |
b0cacab0 TT |
8989 | ; |
8990 | return 0; | |
8991 | } | |
8992 | _ACEOF | |
8993 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8994 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8995 | (eval $ac_link) 2>conftest.er1 | |
8996 | ac_status=$? | |
8997 | grep -v '^ *+' conftest.er1 >conftest.err | |
8998 | rm -f conftest.er1 | |
8999 | cat conftest.err >&5 | |
9000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9001 | (exit $ac_status); } && | |
9002 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9004 | (eval $ac_try) 2>&5 | |
9005 | ac_status=$? | |
9006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9007 | (exit $ac_status); }; } && | |
9008 | { ac_try='test -s conftest$ac_exeext' | |
9009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9010 | (eval $ac_try) 2>&5 | |
9011 | ac_status=$? | |
9012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9013 | (exit $ac_status); }; }; then | |
a04eba3f | 9014 | am_cv_langinfo_codeset=yes |
a64c9c13 | 9015 | else |
b0cacab0 TT |
9016 | echo "$as_me: failed program was:" >&5 |
9017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9018 | ||
9019 | am_cv_langinfo_codeset=no | |
07a0db15 | 9020 | fi |
b0cacab0 TT |
9021 | rm -f conftest.err conftest.$ac_objext \ |
9022 | conftest$ac_exeext conftest.$ac_ext | |
07a0db15 | 9023 | |
b0cacab0 TT |
9024 | fi |
9025 | echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 | |
9026 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 | |
93636bde | 9027 | if test $am_cv_langinfo_codeset = yes; then |
b0cacab0 TT |
9028 | |
9029 | cat >>confdefs.h <<\_ACEOF | |
a04eba3f | 9030 | #define HAVE_LANGINFO_CODESET 1 |
b0cacab0 | 9031 | _ACEOF |
a64c9c13 | 9032 | |
a04eba3f | 9033 | fi |
a64c9c13 | 9034 | |
a04eba3f | 9035 | if test $ac_cv_header_locale_h = yes; then |
b0cacab0 TT |
9036 | |
9037 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 | |
9038 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
9039 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
9040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9041 | else | |
9042 | cat >conftest.$ac_ext <<_ACEOF | |
9043 | /* confdefs.h. */ | |
9044 | _ACEOF | |
9045 | cat confdefs.h >>conftest.$ac_ext | |
9046 | cat >>conftest.$ac_ext <<_ACEOF | |
9047 | /* end confdefs.h. */ | |
a04eba3f | 9048 | #include <locale.h> |
b0cacab0 TT |
9049 | int |
9050 | main () | |
9051 | { | |
a04eba3f | 9052 | return LC_MESSAGES |
b0cacab0 TT |
9053 | ; |
9054 | return 0; | |
9055 | } | |
9056 | _ACEOF | |
9057 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9059 | (eval $ac_link) 2>conftest.er1 | |
9060 | ac_status=$? | |
9061 | grep -v '^ *+' conftest.er1 >conftest.err | |
9062 | rm -f conftest.er1 | |
9063 | cat conftest.err >&5 | |
9064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9065 | (exit $ac_status); } && | |
9066 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9068 | (eval $ac_try) 2>&5 | |
9069 | ac_status=$? | |
9070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9071 | (exit $ac_status); }; } && | |
9072 | { ac_try='test -s conftest$ac_exeext' | |
9073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9074 | (eval $ac_try) 2>&5 | |
9075 | ac_status=$? | |
9076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9077 | (exit $ac_status); }; }; then | |
a04eba3f | 9078 | am_cv_val_LC_MESSAGES=yes |
a64c9c13 | 9079 | else |
b0cacab0 TT |
9080 | echo "$as_me: failed program was:" >&5 |
9081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9082 | ||
9083 | am_cv_val_LC_MESSAGES=no | |
a64c9c13 | 9084 | fi |
b0cacab0 TT |
9085 | rm -f conftest.err conftest.$ac_objext \ |
9086 | conftest$ac_exeext conftest.$ac_ext | |
a64c9c13 | 9087 | fi |
b0cacab0 TT |
9088 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
9089 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
93636bde | 9090 | if test $am_cv_val_LC_MESSAGES = yes; then |
b0cacab0 TT |
9091 | |
9092 | cat >>confdefs.h <<\_ACEOF | |
a04eba3f | 9093 | #define HAVE_LC_MESSAGES 1 |
b0cacab0 | 9094 | _ACEOF |
a64c9c13 | 9095 | |
a04eba3f | 9096 | fi |
a64c9c13 | 9097 | |
a04eba3f | 9098 | fi |
a64c9c13 | 9099 | |
a04eba3f TT |
9100 | for ac_prog in bison |
9101 | do | |
b0cacab0 | 9102 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a04eba3f | 9103 | set dummy $ac_prog; ac_word=$2 |
b0cacab0 TT |
9104 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9105 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9106 | if test "${ac_cv_prog_INTLBISON+set}" = set; then | |
9107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a64c9c13 | 9108 | else |
a04eba3f TT |
9109 | if test -n "$INTLBISON"; then |
9110 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. | |
f8bd9807 | 9111 | else |
b0cacab0 TT |
9112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9113 | for as_dir in $PATH | |
9114 | do | |
9115 | IFS=$as_save_IFS | |
9116 | test -z "$as_dir" && as_dir=. | |
9117 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9118 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9119 | ac_cv_prog_INTLBISON="$ac_prog" | |
9120 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9121 | break 2 | |
9122 | fi | |
9123 | done | |
9124 | done | |
9125 | ||
f8bd9807 | 9126 | fi |
a04eba3f | 9127 | fi |
b0cacab0 | 9128 | INTLBISON=$ac_cv_prog_INTLBISON |
a04eba3f | 9129 | if test -n "$INTLBISON"; then |
b0cacab0 TT |
9130 | echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
9131 | echo "${ECHO_T}$INTLBISON" >&6 | |
f8bd9807 | 9132 | else |
b0cacab0 TT |
9133 | echo "$as_me:$LINENO: result: no" >&5 |
9134 | echo "${ECHO_T}no" >&6 | |
f8bd9807 | 9135 | fi |
f8bd9807 | 9136 | |
b0cacab0 | 9137 | test -n "$INTLBISON" && break |
a04eba3f TT |
9138 | done |
9139 | ||
9140 | if test -z "$INTLBISON"; then | |
9141 | ac_verc_fail=yes | |
9142 | else | |
b0cacab0 TT |
9143 | echo "$as_me:$LINENO: checking version of bison" >&5 |
9144 | echo $ECHO_N "checking version of bison... $ECHO_C" >&6 | |
a04eba3f TT |
9145 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
9146 | case $ac_prog_version in | |
9147 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
9148 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | |
9149 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
9150 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
9151 | esac | |
b0cacab0 TT |
9152 | echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
9153 | echo "${ECHO_T}$ac_prog_version" >&6 | |
a04eba3f TT |
9154 | fi |
9155 | if test $ac_verc_fail = yes; then | |
9156 | INTLBISON=: | |
9157 | fi | |
a64c9c13 | 9158 | |
93636bde | 9159 | |
93636bde | 9160 | |
93636bde | 9161 | |
93636bde | 9162 | |
93636bde | 9163 | |
b0cacab0 TT |
9164 | |
9165 | ||
9166 | ||
9167 | ||
9168 | ||
9169 | ||
9170 | ||
9171 | ||
9172 | ||
9173 | ||
9174 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
9175 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
a04eba3f TT |
9176 | # Check whether --enable-nls or --disable-nls was given. |
9177 | if test "${enable_nls+set}" = set; then | |
9178 | enableval="$enable_nls" | |
9179 | USE_NLS=$enableval | |
9180 | else | |
9181 | USE_NLS=yes | |
b0cacab0 TT |
9182 | fi; |
9183 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
9184 | echo "${ECHO_T}$USE_NLS" >&6 | |
9185 | ||
9186 | ||
a64c9c13 | 9187 | |
93636bde | 9188 | |
a04eba3f TT |
9189 | BUILD_INCLUDED_LIBINTL=no |
9190 | USE_INCLUDED_LIBINTL=no | |
b0cacab0 | 9191 | |
a04eba3f TT |
9192 | LIBINTL= |
9193 | LTLIBINTL= | |
9194 | POSUB= | |
a64c9c13 | 9195 | |
a04eba3f TT |
9196 | if test "$USE_NLS" = "yes"; then |
9197 | gt_use_preinstalled_gnugettext=no | |
b0cacab0 TT |
9198 | |
9199 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 | |
9200 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
9201 | ||
9202 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
a04eba3f TT |
9203 | if test "${with_included_gettext+set}" = set; then |
9204 | withval="$with_included_gettext" | |
9205 | nls_cv_force_use_gnu_gettext=$withval | |
9206 | else | |
9207 | nls_cv_force_use_gnu_gettext=no | |
b0cacab0 TT |
9208 | fi; |
9209 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
9210 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
a04eba3f TT |
9211 | |
9212 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
9213 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
b0cacab0 TT |
9214 | |
9215 | ||
9216 | ||
9217 | ||
9218 | ||
9219 | ||
9220 | echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 | |
9221 | echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 | |
9222 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then | |
9223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9224 | else | |
9225 | cat >conftest.$ac_ext <<_ACEOF | |
9226 | /* confdefs.h. */ | |
9227 | _ACEOF | |
9228 | cat confdefs.h >>conftest.$ac_ext | |
9229 | cat >>conftest.$ac_ext <<_ACEOF | |
9230 | /* end confdefs.h. */ | |
a04eba3f TT |
9231 | #include <libintl.h> |
9232 | extern int _nl_msg_cat_cntr; | |
9233 | extern int *_nl_domain_bindings; | |
b0cacab0 TT |
9234 | int |
9235 | main () | |
9236 | { | |
a04eba3f TT |
9237 | bindtextdomain ("", ""); |
9238 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings | |
b0cacab0 TT |
9239 | ; |
9240 | return 0; | |
9241 | } | |
9242 | _ACEOF | |
9243 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9245 | (eval $ac_link) 2>conftest.er1 | |
9246 | ac_status=$? | |
9247 | grep -v '^ *+' conftest.er1 >conftest.err | |
9248 | rm -f conftest.er1 | |
9249 | cat conftest.err >&5 | |
9250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9251 | (exit $ac_status); } && | |
9252 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9254 | (eval $ac_try) 2>&5 | |
9255 | ac_status=$? | |
9256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9257 | (exit $ac_status); }; } && | |
9258 | { ac_try='test -s conftest$ac_exeext' | |
9259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9260 | (eval $ac_try) 2>&5 | |
9261 | ac_status=$? | |
9262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9263 | (exit $ac_status); }; }; then | |
a04eba3f | 9264 | gt_cv_func_gnugettext1_libc=yes |
f8bd9807 | 9265 | else |
b0cacab0 TT |
9266 | echo "$as_me: failed program was:" >&5 |
9267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9268 | ||
9269 | gt_cv_func_gnugettext1_libc=no | |
f8bd9807 | 9270 | fi |
b0cacab0 TT |
9271 | rm -f conftest.err conftest.$ac_objext \ |
9272 | conftest$ac_exeext conftest.$ac_ext | |
f8bd9807 | 9273 | fi |
b0cacab0 TT |
9274 | echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 |
9275 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 | |
07a0db15 | 9276 | |
93636bde | 9277 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
b0cacab0 TT |
9278 | |
9279 | ||
9280 | ||
a04eba3f | 9281 | use_additional=yes |
b0cacab0 | 9282 | |
a04eba3f TT |
9283 | acl_save_prefix="$prefix" |
9284 | prefix="$acl_final_prefix" | |
9285 | acl_save_exec_prefix="$exec_prefix" | |
9286 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 9287 | |
a04eba3f TT |
9288 | eval additional_includedir=\"$includedir\" |
9289 | eval additional_libdir=\"$libdir\" | |
b0cacab0 | 9290 | |
a04eba3f TT |
9291 | exec_prefix="$acl_save_exec_prefix" |
9292 | prefix="$acl_save_prefix" | |
9293 | ||
b0cacab0 TT |
9294 | |
9295 | # Check whether --with-libintl-prefix or --without-libintl-prefix was given. | |
a04eba3f TT |
9296 | if test "${with_libintl_prefix+set}" = set; then |
9297 | withval="$with_libintl_prefix" | |
b0cacab0 | 9298 | |
a04eba3f TT |
9299 | if test "X$withval" = "Xno"; then |
9300 | use_additional=no | |
9301 | else | |
9302 | if test "X$withval" = "X"; then | |
b0cacab0 | 9303 | |
a04eba3f TT |
9304 | acl_save_prefix="$prefix" |
9305 | prefix="$acl_final_prefix" | |
9306 | acl_save_exec_prefix="$exec_prefix" | |
9307 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 9308 | |
a04eba3f TT |
9309 | eval additional_includedir=\"$includedir\" |
9310 | eval additional_libdir=\"$libdir\" | |
b0cacab0 | 9311 | |
a04eba3f TT |
9312 | exec_prefix="$acl_save_exec_prefix" |
9313 | prefix="$acl_save_prefix" | |
9314 | ||
9315 | else | |
9316 | additional_includedir="$withval/include" | |
9317 | additional_libdir="$withval/lib" | |
9318 | fi | |
9319 | fi | |
9320 | ||
b0cacab0 | 9321 | fi; |
a04eba3f TT |
9322 | LIBINTL= |
9323 | LTLIBINTL= | |
9324 | INCINTL= | |
9325 | rpathdirs= | |
9326 | ltrpathdirs= | |
9327 | names_already_handled= | |
9328 | names_next_round='intl ' | |
9329 | while test -n "$names_next_round"; do | |
9330 | names_this_round="$names_next_round" | |
9331 | names_next_round= | |
9332 | for name in $names_this_round; do | |
9333 | already_handled= | |
9334 | for n in $names_already_handled; do | |
9335 | if test "$n" = "$name"; then | |
9336 | already_handled=yes | |
9337 | break | |
9338 | fi | |
9339 | done | |
9340 | if test -z "$already_handled"; then | |
9341 | names_already_handled="$names_already_handled $name" | |
9342 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
9343 | eval value=\"\$HAVE_LIB$uppername\" | |
9344 | if test -n "$value"; then | |
9345 | if test "$value" = yes; then | |
9346 | eval value=\"\$LIB$uppername\" | |
9347 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
9348 | eval value=\"\$LTLIB$uppername\" | |
9349 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
9350 | else | |
9351 | : | |
9352 | fi | |
9353 | else | |
9354 | found_dir= | |
9355 | found_la= | |
9356 | found_so= | |
9357 | found_a= | |
9358 | if test $use_additional = yes; then | |
9359 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
9360 | found_dir="$additional_libdir" | |
9361 | found_so="$additional_libdir/lib$name.$shlibext" | |
9362 | if test -f "$additional_libdir/lib$name.la"; then | |
9363 | found_la="$additional_libdir/lib$name.la" | |
9364 | fi | |
9365 | else | |
9366 | if test -f "$additional_libdir/lib$name.$libext"; then | |
9367 | found_dir="$additional_libdir" | |
9368 | found_a="$additional_libdir/lib$name.$libext" | |
9369 | if test -f "$additional_libdir/lib$name.la"; then | |
9370 | found_la="$additional_libdir/lib$name.la" | |
9371 | fi | |
9372 | fi | |
9373 | fi | |
9374 | fi | |
9375 | if test "X$found_dir" = "X"; then | |
9376 | for x in $LDFLAGS $LTLIBINTL; do | |
b0cacab0 | 9377 | |
a04eba3f TT |
9378 | acl_save_prefix="$prefix" |
9379 | prefix="$acl_final_prefix" | |
9380 | acl_save_exec_prefix="$exec_prefix" | |
9381 | exec_prefix="$acl_final_exec_prefix" | |
9382 | eval x=\"$x\" | |
9383 | exec_prefix="$acl_save_exec_prefix" | |
9384 | prefix="$acl_save_prefix" | |
9385 | ||
9386 | case "$x" in | |
9387 | -L*) | |
9388 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
9389 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
9390 | found_dir="$dir" | |
9391 | found_so="$dir/lib$name.$shlibext" | |
9392 | if test -f "$dir/lib$name.la"; then | |
9393 | found_la="$dir/lib$name.la" | |
9394 | fi | |
9395 | else | |
9396 | if test -f "$dir/lib$name.$libext"; then | |
9397 | found_dir="$dir" | |
9398 | found_a="$dir/lib$name.$libext" | |
9399 | if test -f "$dir/lib$name.la"; then | |
9400 | found_la="$dir/lib$name.la" | |
9401 | fi | |
9402 | fi | |
9403 | fi | |
9404 | ;; | |
9405 | esac | |
9406 | if test "X$found_dir" != "X"; then | |
9407 | break | |
9408 | fi | |
9409 | done | |
9410 | fi | |
9411 | if test "X$found_dir" != "X"; then | |
9412 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
9413 | if test "X$found_so" != "X"; then | |
9414 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
9415 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
9416 | else | |
9417 | haveit= | |
9418 | for x in $ltrpathdirs; do | |
9419 | if test "X$x" = "X$found_dir"; then | |
9420 | haveit=yes | |
9421 | break | |
9422 | fi | |
9423 | done | |
9424 | if test -z "$haveit"; then | |
9425 | ltrpathdirs="$ltrpathdirs $found_dir" | |
9426 | fi | |
9427 | if test "$hardcode_direct" = yes; then | |
9428 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
9429 | else | |
9430 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
9431 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
9432 | haveit= | |
9433 | for x in $rpathdirs; do | |
9434 | if test "X$x" = "X$found_dir"; then | |
9435 | haveit=yes | |
9436 | break | |
9437 | fi | |
9438 | done | |
9439 | if test -z "$haveit"; then | |
9440 | rpathdirs="$rpathdirs $found_dir" | |
9441 | fi | |
9442 | else | |
9443 | haveit= | |
9444 | for x in $LDFLAGS $LIBINTL; do | |
b0cacab0 | 9445 | |
a04eba3f TT |
9446 | acl_save_prefix="$prefix" |
9447 | prefix="$acl_final_prefix" | |
9448 | acl_save_exec_prefix="$exec_prefix" | |
9449 | exec_prefix="$acl_final_exec_prefix" | |
9450 | eval x=\"$x\" | |
9451 | exec_prefix="$acl_save_exec_prefix" | |
9452 | prefix="$acl_save_prefix" | |
9453 | ||
9454 | if test "X$x" = "X-L$found_dir"; then | |
9455 | haveit=yes | |
9456 | break | |
9457 | fi | |
9458 | done | |
9459 | if test -z "$haveit"; then | |
9460 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
9461 | fi | |
9462 | if test "$hardcode_minus_L" != no; then | |
9463 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
9464 | else | |
9465 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
9466 | fi | |
9467 | fi | |
9468 | fi | |
9469 | fi | |
9470 | else | |
9471 | if test "X$found_a" != "X"; then | |
9472 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
9473 | else | |
9474 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
9475 | fi | |
9476 | fi | |
9477 | additional_includedir= | |
9478 | case "$found_dir" in | |
9479 | */lib | */lib/) | |
9480 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
9481 | additional_includedir="$basedir/include" | |
9482 | ;; | |
9483 | esac | |
9484 | if test "X$additional_includedir" != "X"; then | |
9485 | if test "X$additional_includedir" != "X/usr/include"; then | |
9486 | haveit= | |
9487 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
9488 | if test -n "$GCC"; then | |
9489 | case $host_os in | |
9490 | linux*) haveit=yes;; | |
9491 | esac | |
9492 | fi | |
9493 | fi | |
9494 | if test -z "$haveit"; then | |
9495 | for x in $CPPFLAGS $INCINTL; do | |
b0cacab0 | 9496 | |
a04eba3f TT |
9497 | acl_save_prefix="$prefix" |
9498 | prefix="$acl_final_prefix" | |
9499 | acl_save_exec_prefix="$exec_prefix" | |
9500 | exec_prefix="$acl_final_exec_prefix" | |
9501 | eval x=\"$x\" | |
9502 | exec_prefix="$acl_save_exec_prefix" | |
9503 | prefix="$acl_save_prefix" | |
9504 | ||
9505 | if test "X$x" = "X-I$additional_includedir"; then | |
9506 | haveit=yes | |
9507 | break | |
9508 | fi | |
9509 | done | |
9510 | if test -z "$haveit"; then | |
9511 | if test -d "$additional_includedir"; then | |
9512 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
9513 | fi | |
9514 | fi | |
9515 | fi | |
9516 | fi | |
9517 | fi | |
9518 | if test -n "$found_la"; then | |
9519 | save_libdir="$libdir" | |
9520 | case "$found_la" in | |
9521 | */* | *\\*) . "$found_la" ;; | |
9522 | *) . "./$found_la" ;; | |
9523 | esac | |
9524 | libdir="$save_libdir" | |
9525 | for dep in $dependency_libs; do | |
9526 | case "$dep" in | |
9527 | -L*) | |
9528 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
9529 | if test "X$additional_libdir" != "X/usr/lib"; then | |
9530 | haveit= | |
9531 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
9532 | if test -n "$GCC"; then | |
9533 | case $host_os in | |
9534 | linux*) haveit=yes;; | |
9535 | esac | |
9536 | fi | |
9537 | fi | |
9538 | if test -z "$haveit"; then | |
9539 | haveit= | |
9540 | for x in $LDFLAGS $LIBINTL; do | |
b0cacab0 | 9541 | |
a04eba3f TT |
9542 | acl_save_prefix="$prefix" |
9543 | prefix="$acl_final_prefix" | |
9544 | acl_save_exec_prefix="$exec_prefix" | |
9545 | exec_prefix="$acl_final_exec_prefix" | |
9546 | eval x=\"$x\" | |
9547 | exec_prefix="$acl_save_exec_prefix" | |
9548 | prefix="$acl_save_prefix" | |
9549 | ||
9550 | if test "X$x" = "X-L$additional_libdir"; then | |
9551 | haveit=yes | |
9552 | break | |
9553 | fi | |
9554 | done | |
9555 | if test -z "$haveit"; then | |
9556 | if test -d "$additional_libdir"; then | |
9557 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
9558 | fi | |
9559 | fi | |
9560 | haveit= | |
9561 | for x in $LDFLAGS $LTLIBINTL; do | |
b0cacab0 | 9562 | |
a04eba3f TT |
9563 | acl_save_prefix="$prefix" |
9564 | prefix="$acl_final_prefix" | |
9565 | acl_save_exec_prefix="$exec_prefix" | |
9566 | exec_prefix="$acl_final_exec_prefix" | |
9567 | eval x=\"$x\" | |
9568 | exec_prefix="$acl_save_exec_prefix" | |
9569 | prefix="$acl_save_prefix" | |
9570 | ||
9571 | if test "X$x" = "X-L$additional_libdir"; then | |
9572 | haveit=yes | |
9573 | break | |
9574 | fi | |
9575 | done | |
9576 | if test -z "$haveit"; then | |
9577 | if test -d "$additional_libdir"; then | |
9578 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
9579 | fi | |
9580 | fi | |
9581 | fi | |
9582 | fi | |
9583 | ;; | |
9584 | -R*) | |
9585 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
9586 | if test "$enable_rpath" != no; then | |
9587 | haveit= | |
9588 | for x in $rpathdirs; do | |
9589 | if test "X$x" = "X$dir"; then | |
9590 | haveit=yes | |
9591 | break | |
9592 | fi | |
9593 | done | |
9594 | if test -z "$haveit"; then | |
9595 | rpathdirs="$rpathdirs $dir" | |
9596 | fi | |
9597 | haveit= | |
9598 | for x in $ltrpathdirs; do | |
9599 | if test "X$x" = "X$dir"; then | |
9600 | haveit=yes | |
9601 | break | |
9602 | fi | |
9603 | done | |
9604 | if test -z "$haveit"; then | |
9605 | ltrpathdirs="$ltrpathdirs $dir" | |
9606 | fi | |
9607 | fi | |
9608 | ;; | |
9609 | -l*) | |
9610 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
9611 | ;; | |
9612 | *.la) | |
9613 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
9614 | ;; | |
9615 | *) | |
9616 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
9617 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
9618 | ;; | |
9619 | esac | |
9620 | done | |
9621 | fi | |
9622 | else | |
9623 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
9624 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
9625 | fi | |
9626 | fi | |
9627 | fi | |
9628 | done | |
9629 | done | |
9630 | if test "X$rpathdirs" != "X"; then | |
9631 | if test -n "$hardcode_libdir_separator"; then | |
9632 | alldirs= | |
9633 | for found_dir in $rpathdirs; do | |
9634 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
9635 | done | |
9636 | acl_save_libdir="$libdir" | |
9637 | libdir="$alldirs" | |
9638 | eval flag=\"$hardcode_libdir_flag_spec\" | |
9639 | libdir="$acl_save_libdir" | |
9640 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
9641 | else | |
9642 | for found_dir in $rpathdirs; do | |
9643 | acl_save_libdir="$libdir" | |
9644 | libdir="$found_dir" | |
9645 | eval flag=\"$hardcode_libdir_flag_spec\" | |
9646 | libdir="$acl_save_libdir" | |
9647 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
9648 | done | |
9649 | fi | |
9650 | fi | |
9651 | if test "X$ltrpathdirs" != "X"; then | |
9652 | for found_dir in $ltrpathdirs; do | |
9653 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
9654 | done | |
9655 | fi | |
9656 | ||
b0cacab0 TT |
9657 | echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
9658 | echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 | |
9659 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then | |
9660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f8bd9807 | 9661 | else |
a04eba3f TT |
9662 | gt_save_CPPFLAGS="$CPPFLAGS" |
9663 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
9664 | gt_save_LIBS="$LIBS" | |
9665 | LIBS="$LIBS $LIBINTL" | |
b0cacab0 TT |
9666 | cat >conftest.$ac_ext <<_ACEOF |
9667 | /* confdefs.h. */ | |
9668 | _ACEOF | |
9669 | cat confdefs.h >>conftest.$ac_ext | |
9670 | cat >>conftest.$ac_ext <<_ACEOF | |
9671 | /* end confdefs.h. */ | |
a04eba3f TT |
9672 | #include <libintl.h> |
9673 | extern int _nl_msg_cat_cntr; | |
9674 | extern | |
9675 | #ifdef __cplusplus | |
9676 | "C" | |
9677 | #endif | |
9678 | const char *_nl_expand_alias (); | |
b0cacab0 TT |
9679 | int |
9680 | main () | |
9681 | { | |
a04eba3f TT |
9682 | bindtextdomain ("", ""); |
9683 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) | |
b0cacab0 TT |
9684 | ; |
9685 | return 0; | |
9686 | } | |
9687 | _ACEOF | |
9688 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9690 | (eval $ac_link) 2>conftest.er1 | |
9691 | ac_status=$? | |
9692 | grep -v '^ *+' conftest.er1 >conftest.err | |
9693 | rm -f conftest.er1 | |
9694 | cat conftest.err >&5 | |
9695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9696 | (exit $ac_status); } && | |
9697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9699 | (eval $ac_try) 2>&5 | |
9700 | ac_status=$? | |
9701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9702 | (exit $ac_status); }; } && | |
9703 | { ac_try='test -s conftest$ac_exeext' | |
9704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9705 | (eval $ac_try) 2>&5 | |
9706 | ac_status=$? | |
9707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9708 | (exit $ac_status); }; }; then | |
a04eba3f TT |
9709 | gt_cv_func_gnugettext1_libintl=yes |
9710 | else | |
b0cacab0 TT |
9711 | echo "$as_me: failed program was:" >&5 |
9712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9713 | ||
9714 | gt_cv_func_gnugettext1_libintl=no | |
a04eba3f | 9715 | fi |
b0cacab0 TT |
9716 | rm -f conftest.err conftest.$ac_objext \ |
9717 | conftest$ac_exeext conftest.$ac_ext | |
a04eba3f TT |
9718 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
9719 | LIBS="$LIBS $LIBICONV" | |
b0cacab0 TT |
9720 | cat >conftest.$ac_ext <<_ACEOF |
9721 | /* confdefs.h. */ | |
9722 | _ACEOF | |
9723 | cat confdefs.h >>conftest.$ac_ext | |
9724 | cat >>conftest.$ac_ext <<_ACEOF | |
9725 | /* end confdefs.h. */ | |
a04eba3f TT |
9726 | #include <libintl.h> |
9727 | extern int _nl_msg_cat_cntr; | |
9728 | extern | |
9729 | #ifdef __cplusplus | |
9730 | "C" | |
9731 | #endif | |
9732 | const char *_nl_expand_alias (); | |
b0cacab0 TT |
9733 | int |
9734 | main () | |
9735 | { | |
a04eba3f TT |
9736 | bindtextdomain ("", ""); |
9737 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) | |
b0cacab0 TT |
9738 | ; |
9739 | return 0; | |
9740 | } | |
9741 | _ACEOF | |
9742 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9744 | (eval $ac_link) 2>conftest.er1 | |
9745 | ac_status=$? | |
9746 | grep -v '^ *+' conftest.er1 >conftest.err | |
9747 | rm -f conftest.er1 | |
9748 | cat conftest.err >&5 | |
9749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9750 | (exit $ac_status); } && | |
9751 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9753 | (eval $ac_try) 2>&5 | |
9754 | ac_status=$? | |
9755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9756 | (exit $ac_status); }; } && | |
9757 | { ac_try='test -s conftest$ac_exeext' | |
9758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9759 | (eval $ac_try) 2>&5 | |
9760 | ac_status=$? | |
9761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9762 | (exit $ac_status); }; }; then | |
a04eba3f TT |
9763 | LIBINTL="$LIBINTL $LIBICONV" |
9764 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" | |
9765 | gt_cv_func_gnugettext1_libintl=yes | |
b0cacab0 | 9766 | |
a04eba3f | 9767 | else |
b0cacab0 TT |
9768 | echo "$as_me: failed program was:" >&5 |
9769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9770 | ||
a04eba3f | 9771 | fi |
b0cacab0 TT |
9772 | rm -f conftest.err conftest.$ac_objext \ |
9773 | conftest$ac_exeext conftest.$ac_ext | |
a04eba3f TT |
9774 | fi |
9775 | CPPFLAGS="$gt_save_CPPFLAGS" | |
9776 | LIBS="$gt_save_LIBS" | |
a64c9c13 | 9777 | fi |
b0cacab0 TT |
9778 | echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 |
9779 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 | |
a04eba3f | 9780 | fi |
a64c9c13 | 9781 | |
a04eba3f TT |
9782 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
9783 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ | |
b0cacab0 TT |
9784 | && test "$PACKAGE" != gettext-runtime \ |
9785 | && test "$PACKAGE" != gettext-tools; }; then | |
a04eba3f TT |
9786 | gt_use_preinstalled_gnugettext=yes |
9787 | else | |
9788 | LIBINTL= | |
9789 | LTLIBINTL= | |
9790 | INCINTL= | |
9791 | fi | |
a64c9c13 | 9792 | |
b0cacab0 | 9793 | |
a04eba3f TT |
9794 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
9795 | nls_cv_use_gnu_gettext=yes | |
9796 | fi | |
9797 | fi | |
a64c9c13 | 9798 | |
a04eba3f | 9799 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
b0cacab0 | 9800 | BUILD_INCLUDED_LIBINTL=yes |
a04eba3f TT |
9801 | USE_INCLUDED_LIBINTL=yes |
9802 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" | |
9803 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" | |
9804 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` | |
9805 | fi | |
a64c9c13 | 9806 | |
a04eba3f TT |
9807 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
9808 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
9809 | CATOBJEXT=.gmo | |
9810 | fi | |
b0cacab0 | 9811 | |
a04eba3f TT |
9812 | |
9813 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
9814 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
b0cacab0 TT |
9815 | |
9816 | cat >>confdefs.h <<\_ACEOF | |
a04eba3f | 9817 | #define ENABLE_NLS 1 |
b0cacab0 | 9818 | _ACEOF |
a04eba3f TT |
9819 | |
9820 | else | |
9821 | USE_NLS=no | |
9822 | fi | |
9823 | fi | |
9824 | ||
b0cacab0 TT |
9825 | echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
9826 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6 | |
9827 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
9828 | echo "${ECHO_T}$USE_NLS" >&6 | |
9829 | if test "$USE_NLS" = "yes"; then | |
9830 | echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 | |
9831 | echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6 | |
9832 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
9833 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then | |
9834 | gt_source="external libintl" | |
9835 | else | |
9836 | gt_source="libc" | |
9837 | fi | |
9838 | else | |
9839 | gt_source="included intl directory" | |
9840 | fi | |
9841 | echo "$as_me:$LINENO: result: $gt_source" >&5 | |
9842 | echo "${ECHO_T}$gt_source" >&6 | |
9843 | fi | |
9844 | ||
a04eba3f TT |
9845 | if test "$USE_NLS" = "yes"; then |
9846 | ||
9847 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
9848 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then | |
b0cacab0 TT |
9849 | echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
9850 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6 | |
9851 | echo "$as_me:$LINENO: result: $LIBINTL" >&5 | |
9852 | echo "${ECHO_T}$LIBINTL" >&6 | |
9853 | ||
a04eba3f TT |
9854 | for element in $INCINTL; do |
9855 | haveit= | |
9856 | for x in $CPPFLAGS; do | |
b0cacab0 | 9857 | |
a04eba3f TT |
9858 | acl_save_prefix="$prefix" |
9859 | prefix="$acl_final_prefix" | |
9860 | acl_save_exec_prefix="$exec_prefix" | |
9861 | exec_prefix="$acl_final_exec_prefix" | |
9862 | eval x=\"$x\" | |
9863 | exec_prefix="$acl_save_exec_prefix" | |
9864 | prefix="$acl_save_prefix" | |
9865 | ||
9866 | if test "X$x" = "X$element"; then | |
9867 | haveit=yes | |
9868 | break | |
9869 | fi | |
9870 | done | |
9871 | if test -z "$haveit"; then | |
9872 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
9873 | fi | |
9874 | done | |
9875 | ||
9876 | fi | |
9877 | ||
b0cacab0 TT |
9878 | |
9879 | cat >>confdefs.h <<\_ACEOF | |
a04eba3f | 9880 | #define HAVE_GETTEXT 1 |
b0cacab0 TT |
9881 | _ACEOF |
9882 | ||
a04eba3f | 9883 | |
b0cacab0 | 9884 | cat >>confdefs.h <<\_ACEOF |
a04eba3f | 9885 | #define HAVE_DCGETTEXT 1 |
b0cacab0 | 9886 | _ACEOF |
a04eba3f TT |
9887 | |
9888 | fi | |
9889 | ||
9890 | POSUB=po | |
9891 | fi | |
9892 | ||
b0cacab0 TT |
9893 | |
9894 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then | |
a04eba3f TT |
9895 | BUILD_INCLUDED_LIBINTL=yes |
9896 | fi | |
9897 | ||
b0cacab0 TT |
9898 | |
9899 | ||
9900 | ||
93636bde | 9901 | |
a04eba3f TT |
9902 | nls_cv_header_intl= |
9903 | nls_cv_header_libgt= | |
9904 | ||
9905 | DATADIRNAME=share | |
b0cacab0 | 9906 | |
a04eba3f TT |
9907 | |
9908 | INSTOBJEXT=.mo | |
b0cacab0 | 9909 | |
a04eba3f TT |
9910 | |
9911 | GENCAT=gencat | |
b0cacab0 TT |
9912 | |
9913 | ||
9914 | if test "$USE_INCLUDED_LIBINTL" = yes; then | |
9915 | INTLOBJS="\$(GETTOBJS)" | |
9916 | fi | |
9917 | ||
a04eba3f TT |
9918 | |
9919 | INTL_LIBTOOL_SUFFIX_PREFIX= | |
b0cacab0 TT |
9920 | |
9921 | ||
a04eba3f TT |
9922 | |
9923 | INTLLIBS="$LIBINTL" | |
93636bde | 9924 | |
a64c9c13 | 9925 | |
93636bde | 9926 | |
b0cacab0 TT |
9927 | |
9928 | ||
9929 | ||
9930 | ||
9931 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
9932 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
9933 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
9934 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
9935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 9936 | else |
b0cacab0 | 9937 | cat >conftest.make <<\_ACEOF |
50e1e10f | 9938 | all: |
b0cacab0 TT |
9939 | @echo 'ac_maketemp="$(MAKE)"' |
9940 | _ACEOF | |
50e1e10f | 9941 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
b0cacab0 | 9942 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
50e1e10f TT |
9943 | if test -n "$ac_maketemp"; then |
9944 | eval ac_cv_prog_make_${ac_make}_set=yes | |
9945 | else | |
9946 | eval ac_cv_prog_make_${ac_make}_set=no | |
9947 | fi | |
b0cacab0 | 9948 | rm -f conftest.make |
50e1e10f TT |
9949 | fi |
9950 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
b0cacab0 TT |
9951 | echo "$as_me:$LINENO: result: yes" >&5 |
9952 | echo "${ECHO_T}yes" >&6 | |
50e1e10f TT |
9953 | SET_MAKE= |
9954 | else | |
b0cacab0 TT |
9955 | echo "$as_me:$LINENO: result: no" >&5 |
9956 | echo "${ECHO_T}no" >&6 | |
50e1e10f TT |
9957 | SET_MAKE="MAKE=${MAKE-make}" |
9958 | fi | |
9959 | ||
9960 | # Extract the first word of "ln", so it can be a program name with args. | |
9961 | set dummy ln; ac_word=$2 | |
b0cacab0 TT |
9962 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9963 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9964 | if test "${ac_cv_path_LN+set}" = set; then | |
9965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 9966 | else |
b0cacab0 TT |
9967 | case $LN in |
9968 | [\\/]* | ?:[\\/]*) | |
50e1e10f TT |
9969 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
9970 | ;; | |
9971 | *) | |
b0cacab0 TT |
9972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9973 | for as_dir in $PATH | |
9974 | do | |
9975 | IFS=$as_save_IFS | |
9976 | test -z "$as_dir" && as_dir=. | |
9977 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9978 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9979 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" | |
9980 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9981 | break 2 | |
9982 | fi | |
9983 | done | |
9984 | done | |
9985 | ||
50e1e10f TT |
9986 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
9987 | ;; | |
9988 | esac | |
9989 | fi | |
b0cacab0 TT |
9990 | LN=$ac_cv_path_LN |
9991 | ||
50e1e10f | 9992 | if test -n "$LN"; then |
b0cacab0 TT |
9993 | echo "$as_me:$LINENO: result: $LN" >&5 |
9994 | echo "${ECHO_T}$LN" >&6 | |
50e1e10f | 9995 | else |
b0cacab0 TT |
9996 | echo "$as_me:$LINENO: result: no" >&5 |
9997 | echo "${ECHO_T}no" >&6 | |
50e1e10f TT |
9998 | fi |
9999 | ||
b0cacab0 TT |
10000 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
10001 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
10002 | LN_S=$as_ln_s | |
10003 | if test "$LN_S" = "ln -s"; then | |
10004 | echo "$as_me:$LINENO: result: yes" >&5 | |
10005 | echo "${ECHO_T}yes" >&6 | |
fc6d9d51 | 10006 | else |
b0cacab0 TT |
10007 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
10008 | echo "${ECHO_T}no, using $LN_S" >&6 | |
fc6d9d51 TT |
10009 | fi |
10010 | ||
50e1e10f TT |
10011 | # Extract the first word of "mv", so it can be a program name with args. |
10012 | set dummy mv; ac_word=$2 | |
b0cacab0 TT |
10013 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10014 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10015 | if test "${ac_cv_path_MV+set}" = set; then | |
10016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 10017 | else |
b0cacab0 TT |
10018 | case $MV in |
10019 | [\\/]* | ?:[\\/]*) | |
50e1e10f TT |
10020 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
10021 | ;; | |
10022 | *) | |
b0cacab0 TT |
10023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10024 | for as_dir in $PATH | |
10025 | do | |
10026 | IFS=$as_save_IFS | |
10027 | test -z "$as_dir" && as_dir=. | |
10028 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10029 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10030 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | |
10031 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10032 | break 2 | |
10033 | fi | |
10034 | done | |
10035 | done | |
10036 | ||
50e1e10f TT |
10037 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
10038 | ;; | |
10039 | esac | |
10040 | fi | |
b0cacab0 TT |
10041 | MV=$ac_cv_path_MV |
10042 | ||
50e1e10f | 10043 | if test -n "$MV"; then |
b0cacab0 TT |
10044 | echo "$as_me:$LINENO: result: $MV" >&5 |
10045 | echo "${ECHO_T}$MV" >&6 | |
50e1e10f | 10046 | else |
b0cacab0 TT |
10047 | echo "$as_me:$LINENO: result: no" >&5 |
10048 | echo "${ECHO_T}no" >&6 | |
50e1e10f TT |
10049 | fi |
10050 | ||
10051 | # Extract the first word of "cp", so it can be a program name with args. | |
10052 | set dummy cp; ac_word=$2 | |
b0cacab0 TT |
10053 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10054 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10055 | if test "${ac_cv_path_CP+set}" = set; then | |
10056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 10057 | else |
b0cacab0 TT |
10058 | case $CP in |
10059 | [\\/]* | ?:[\\/]*) | |
50e1e10f TT |
10060 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
10061 | ;; | |
10062 | *) | |
b0cacab0 TT |
10063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10064 | for as_dir in $PATH | |
10065 | do | |
10066 | IFS=$as_save_IFS | |
10067 | test -z "$as_dir" && as_dir=. | |
10068 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10069 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10070 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | |
10071 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10072 | break 2 | |
10073 | fi | |
10074 | done | |
10075 | done | |
10076 | ||
50e1e10f TT |
10077 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
10078 | ;; | |
10079 | esac | |
10080 | fi | |
b0cacab0 TT |
10081 | CP=$ac_cv_path_CP |
10082 | ||
50e1e10f | 10083 | if test -n "$CP"; then |
b0cacab0 TT |
10084 | echo "$as_me:$LINENO: result: $CP" >&5 |
10085 | echo "${ECHO_T}$CP" >&6 | |
50e1e10f | 10086 | else |
b0cacab0 TT |
10087 | echo "$as_me:$LINENO: result: no" >&5 |
10088 | echo "${ECHO_T}no" >&6 | |
50e1e10f TT |
10089 | fi |
10090 | ||
10091 | # Extract the first word of "rm", so it can be a program name with args. | |
10092 | set dummy rm; ac_word=$2 | |
b0cacab0 TT |
10093 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10094 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10095 | if test "${ac_cv_path_RM+set}" = set; then | |
10096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 10097 | else |
b0cacab0 TT |
10098 | case $RM in |
10099 | [\\/]* | ?:[\\/]*) | |
50e1e10f TT |
10100 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
10101 | ;; | |
10102 | *) | |
b0cacab0 TT |
10103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10104 | for as_dir in $PATH | |
10105 | do | |
10106 | IFS=$as_save_IFS | |
10107 | test -z "$as_dir" && as_dir=. | |
10108 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10109 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10110 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | |
10111 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10112 | break 2 | |
10113 | fi | |
10114 | done | |
10115 | done | |
10116 | ||
50e1e10f TT |
10117 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
10118 | ;; | |
10119 | esac | |
10120 | fi | |
b0cacab0 TT |
10121 | RM=$ac_cv_path_RM |
10122 | ||
50e1e10f | 10123 | if test -n "$RM"; then |
b0cacab0 TT |
10124 | echo "$as_me:$LINENO: result: $RM" >&5 |
10125 | echo "${ECHO_T}$RM" >&6 | |
50e1e10f | 10126 | else |
b0cacab0 TT |
10127 | echo "$as_me:$LINENO: result: no" >&5 |
10128 | echo "${ECHO_T}no" >&6 | |
50e1e10f TT |
10129 | fi |
10130 | ||
10131 | # Extract the first word of "chmod", so it can be a program name with args. | |
10132 | set dummy chmod; ac_word=$2 | |
b0cacab0 TT |
10133 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10134 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10135 | if test "${ac_cv_path_CHMOD+set}" = set; then | |
10136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 10137 | else |
b0cacab0 TT |
10138 | case $CHMOD in |
10139 | [\\/]* | ?:[\\/]*) | |
50e1e10f TT |
10140 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
10141 | ;; | |
10142 | *) | |
b0cacab0 TT |
10143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10144 | for as_dir in $PATH | |
10145 | do | |
10146 | IFS=$as_save_IFS | |
10147 | test -z "$as_dir" && as_dir=. | |
10148 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10149 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10150 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" | |
10151 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10152 | break 2 | |
10153 | fi | |
10154 | done | |
10155 | done | |
10156 | ||
50e1e10f TT |
10157 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
10158 | ;; | |
10159 | esac | |
10160 | fi | |
b0cacab0 TT |
10161 | CHMOD=$ac_cv_path_CHMOD |
10162 | ||
50e1e10f | 10163 | if test -n "$CHMOD"; then |
b0cacab0 TT |
10164 | echo "$as_me:$LINENO: result: $CHMOD" >&5 |
10165 | echo "${ECHO_T}$CHMOD" >&6 | |
50e1e10f | 10166 | else |
b0cacab0 TT |
10167 | echo "$as_me:$LINENO: result: no" >&5 |
10168 | echo "${ECHO_T}no" >&6 | |
50e1e10f TT |
10169 | fi |
10170 | ||
10171 | # Extract the first word of "awk", so it can be a program name with args. | |
10172 | set dummy awk; ac_word=$2 | |
b0cacab0 TT |
10173 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10174 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10175 | if test "${ac_cv_path_AWK+set}" = set; then | |
10176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 10177 | else |
b0cacab0 TT |
10178 | case $AWK in |
10179 | [\\/]* | ?:[\\/]*) | |
50e1e10f TT |
10180 | ac_cv_path_AWK="$AWK" # Let the user override the test with a path. |
10181 | ;; | |
10182 | *) | |
b0cacab0 TT |
10183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10184 | for as_dir in $PATH | |
10185 | do | |
10186 | IFS=$as_save_IFS | |
10187 | test -z "$as_dir" && as_dir=. | |
10188 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10189 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10190 | ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" | |
10191 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10192 | break 2 | |
10193 | fi | |
10194 | done | |
10195 | done | |
10196 | ||
50e1e10f TT |
10197 | test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk" |
10198 | ;; | |
10199 | esac | |
10200 | fi | |
b0cacab0 TT |
10201 | AWK=$ac_cv_path_AWK |
10202 | ||
50e1e10f | 10203 | if test -n "$AWK"; then |
b0cacab0 TT |
10204 | echo "$as_me:$LINENO: result: $AWK" >&5 |
10205 | echo "${ECHO_T}$AWK" >&6 | |
50e1e10f | 10206 | else |
b0cacab0 TT |
10207 | echo "$as_me:$LINENO: result: no" >&5 |
10208 | echo "${ECHO_T}no" >&6 | |
50e1e10f TT |
10209 | fi |
10210 | ||
10211 | # Extract the first word of "sed", so it can be a program name with args. | |
10212 | set dummy sed; ac_word=$2 | |
b0cacab0 TT |
10213 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10214 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10215 | if test "${ac_cv_path_SED+set}" = set; then | |
10216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 10217 | else |
b0cacab0 TT |
10218 | case $SED in |
10219 | [\\/]* | ?:[\\/]*) | |
50e1e10f TT |
10220 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
10221 | ;; | |
10222 | *) | |
b0cacab0 TT |
10223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10224 | for as_dir in $PATH | |
10225 | do | |
10226 | IFS=$as_save_IFS | |
10227 | test -z "$as_dir" && as_dir=. | |
10228 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10229 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10230 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | |
10231 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10232 | break 2 | |
10233 | fi | |
10234 | done | |
10235 | done | |
10236 | ||
50e1e10f TT |
10237 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
10238 | ;; | |
10239 | esac | |
10240 | fi | |
b0cacab0 TT |
10241 | SED=$ac_cv_path_SED |
10242 | ||
50e1e10f | 10243 | if test -n "$SED"; then |
b0cacab0 TT |
10244 | echo "$as_me:$LINENO: result: $SED" >&5 |
10245 | echo "${ECHO_T}$SED" >&6 | |
50e1e10f | 10246 | else |
b0cacab0 TT |
10247 | echo "$as_me:$LINENO: result: no" >&5 |
10248 | echo "${ECHO_T}no" >&6 | |
50e1e10f TT |
10249 | fi |
10250 | ||
9d564f73 TT |
10251 | # Extract the first word of "perl", so it can be a program name with args. |
10252 | set dummy perl; ac_word=$2 | |
b0cacab0 TT |
10253 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10254 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10255 | if test "${ac_cv_path_PERL+set}" = set; then | |
10256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9d564f73 | 10257 | else |
b0cacab0 TT |
10258 | case $PERL in |
10259 | [\\/]* | ?:[\\/]*) | |
9d564f73 TT |
10260 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
10261 | ;; | |
9d564f73 | 10262 | *) |
b0cacab0 TT |
10263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10264 | for as_dir in $PATH | |
10265 | do | |
10266 | IFS=$as_save_IFS | |
10267 | test -z "$as_dir" && as_dir=. | |
10268 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10269 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10270 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | |
10271 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10272 | break 2 | |
10273 | fi | |
10274 | done | |
10275 | done | |
10276 | ||
9d564f73 TT |
10277 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
10278 | ;; | |
10279 | esac | |
10280 | fi | |
b0cacab0 TT |
10281 | PERL=$ac_cv_path_PERL |
10282 | ||
9d564f73 | 10283 | if test -n "$PERL"; then |
b0cacab0 TT |
10284 | echo "$as_me:$LINENO: result: $PERL" >&5 |
10285 | echo "${ECHO_T}$PERL" >&6 | |
9d564f73 | 10286 | else |
b0cacab0 TT |
10287 | echo "$as_me:$LINENO: result: no" >&5 |
10288 | echo "${ECHO_T}no" >&6 | |
9d564f73 TT |
10289 | fi |
10290 | ||
250f79f0 TT |
10291 | # Extract the first word of "ldconfig", so it can be a program name with args. |
10292 | set dummy ldconfig; ac_word=$2 | |
b0cacab0 TT |
10293 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10294 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10295 | if test "${ac_cv_path_LDCONFIG+set}" = set; then | |
10296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
250f79f0 | 10297 | else |
b0cacab0 TT |
10298 | case $LDCONFIG in |
10299 | [\\/]* | ?:[\\/]*) | |
250f79f0 TT |
10300 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
10301 | ;; | |
250f79f0 | 10302 | *) |
b0cacab0 TT |
10303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10304 | for as_dir in $PATH | |
10305 | do | |
10306 | IFS=$as_save_IFS | |
10307 | test -z "$as_dir" && as_dir=. | |
10308 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10309 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10310 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10311 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10312 | break 2 | |
10313 | fi | |
10314 | done | |
10315 | done | |
10316 | ||
250f79f0 TT |
10317 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
10318 | ;; | |
10319 | esac | |
10320 | fi | |
b0cacab0 | 10321 | LDCONFIG=$ac_cv_path_LDCONFIG |
50e1e10f | 10322 | |
b0cacab0 TT |
10323 | if test -n "$LDCONFIG"; then |
10324 | echo "$as_me:$LINENO: result: $LDCONFIG" >&5 | |
10325 | echo "${ECHO_T}$LDCONFIG" >&6 | |
93636bde | 10326 | else |
b0cacab0 TT |
10327 | echo "$as_me:$LINENO: result: no" >&5 |
10328 | echo "${ECHO_T}no" >&6 | |
93636bde TT |
10329 | fi |
10330 | ||
b0cacab0 TT |
10331 | if test -n "$ac_tool_prefix"; then |
10332 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
50e1e10f | 10333 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
b0cacab0 TT |
10334 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10335 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10336 | if test "${ac_cv_prog_AR+set}" = set; then | |
10337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f TT |
10338 | else |
10339 | if test -n "$AR"; then | |
10340 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10341 | else | |
b0cacab0 TT |
10342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10343 | for as_dir in $PATH | |
10344 | do | |
10345 | IFS=$as_save_IFS | |
10346 | test -z "$as_dir" && as_dir=. | |
10347 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10348 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10349 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
10350 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10351 | break 2 | |
10352 | fi | |
10353 | done | |
10354 | done | |
10355 | ||
50e1e10f TT |
10356 | fi |
10357 | fi | |
b0cacab0 | 10358 | AR=$ac_cv_prog_AR |
50e1e10f | 10359 | if test -n "$AR"; then |
b0cacab0 TT |
10360 | echo "$as_me:$LINENO: result: $AR" >&5 |
10361 | echo "${ECHO_T}$AR" >&6 | |
50e1e10f | 10362 | else |
b0cacab0 TT |
10363 | echo "$as_me:$LINENO: result: no" >&5 |
10364 | echo "${ECHO_T}no" >&6 | |
50e1e10f TT |
10365 | fi |
10366 | ||
b0cacab0 | 10367 | fi |
50e1e10f | 10368 | if test -z "$ac_cv_prog_AR"; then |
b0cacab0 | 10369 | ac_ct_AR=$AR |
50e1e10f TT |
10370 | # Extract the first word of "ar", so it can be a program name with args. |
10371 | set dummy ar; ac_word=$2 | |
b0cacab0 TT |
10372 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10374 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
10375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
93636bde | 10376 | else |
b0cacab0 TT |
10377 | if test -n "$ac_ct_AR"; then |
10378 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
93636bde | 10379 | else |
b0cacab0 TT |
10380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10381 | for as_dir in $PATH | |
10382 | do | |
10383 | IFS=$as_save_IFS | |
10384 | test -z "$as_dir" && as_dir=. | |
10385 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10386 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10387 | ac_cv_prog_ac_ct_AR="ar" | |
10388 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10389 | break 2 | |
10390 | fi | |
10391 | done | |
10392 | done | |
10393 | ||
10394 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
50e1e10f TT |
10395 | fi |
10396 | fi | |
b0cacab0 TT |
10397 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
10398 | if test -n "$ac_ct_AR"; then | |
10399 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
10400 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
50e1e10f | 10401 | else |
b0cacab0 TT |
10402 | echo "$as_me:$LINENO: result: no" >&5 |
10403 | echo "${ECHO_T}no" >&6 | |
50e1e10f TT |
10404 | fi |
10405 | ||
b0cacab0 | 10406 | AR=$ac_ct_AR |
50e1e10f | 10407 | else |
b0cacab0 | 10408 | AR="$ac_cv_prog_AR" |
50e1e10f TT |
10409 | fi |
10410 | ||
b0cacab0 TT |
10411 | if test -n "$ac_tool_prefix"; then |
10412 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
50e1e10f | 10413 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
b0cacab0 TT |
10414 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10415 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10416 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
10417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f TT |
10418 | else |
10419 | if test -n "$RANLIB"; then | |
10420 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
10421 | else | |
b0cacab0 TT |
10422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10423 | for as_dir in $PATH | |
10424 | do | |
10425 | IFS=$as_save_IFS | |
10426 | test -z "$as_dir" && as_dir=. | |
10427 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10428 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10429 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
10430 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10431 | break 2 | |
10432 | fi | |
10433 | done | |
10434 | done | |
10435 | ||
50e1e10f TT |
10436 | fi |
10437 | fi | |
b0cacab0 | 10438 | RANLIB=$ac_cv_prog_RANLIB |
50e1e10f | 10439 | if test -n "$RANLIB"; then |
b0cacab0 TT |
10440 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
10441 | echo "${ECHO_T}$RANLIB" >&6 | |
50e1e10f | 10442 | else |
b0cacab0 TT |
10443 | echo "$as_me:$LINENO: result: no" >&5 |
10444 | echo "${ECHO_T}no" >&6 | |
50e1e10f TT |
10445 | fi |
10446 | ||
b0cacab0 | 10447 | fi |
50e1e10f | 10448 | if test -z "$ac_cv_prog_RANLIB"; then |
b0cacab0 | 10449 | ac_ct_RANLIB=$RANLIB |
50e1e10f TT |
10450 | # Extract the first word of "ranlib", so it can be a program name with args. |
10451 | set dummy ranlib; ac_word=$2 | |
b0cacab0 TT |
10452 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10453 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10454 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
10455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
93636bde | 10456 | else |
b0cacab0 TT |
10457 | if test -n "$ac_ct_RANLIB"; then |
10458 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
93636bde | 10459 | else |
b0cacab0 TT |
10460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10461 | for as_dir in $PATH | |
10462 | do | |
10463 | IFS=$as_save_IFS | |
10464 | test -z "$as_dir" && as_dir=. | |
10465 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10466 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10467 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
10468 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10469 | break 2 | |
10470 | fi | |
10471 | done | |
10472 | done | |
10473 | ||
10474 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
50e1e10f TT |
10475 | fi |
10476 | fi | |
b0cacab0 TT |
10477 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
10478 | if test -n "$ac_ct_RANLIB"; then | |
10479 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
10480 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
50e1e10f | 10481 | else |
b0cacab0 TT |
10482 | echo "$as_me:$LINENO: result: no" >&5 |
10483 | echo "${ECHO_T}no" >&6 | |
50e1e10f TT |
10484 | fi |
10485 | ||
b0cacab0 | 10486 | RANLIB=$ac_ct_RANLIB |
50e1e10f | 10487 | else |
b0cacab0 | 10488 | RANLIB="$ac_cv_prog_RANLIB" |
50e1e10f TT |
10489 | fi |
10490 | ||
b0cacab0 TT |
10491 | if test -n "$ac_tool_prefix"; then |
10492 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
50e1e10f | 10493 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
b0cacab0 TT |
10494 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10495 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10496 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
10497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f TT |
10498 | else |
10499 | if test -n "$STRIP"; then | |
10500 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
10501 | else | |
b0cacab0 TT |
10502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10503 | for as_dir in $PATH | |
10504 | do | |
10505 | IFS=$as_save_IFS | |
10506 | test -z "$as_dir" && as_dir=. | |
10507 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10508 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10509 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
10510 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10511 | break 2 | |
10512 | fi | |
10513 | done | |
10514 | done | |
10515 | ||
50e1e10f TT |
10516 | fi |
10517 | fi | |
b0cacab0 | 10518 | STRIP=$ac_cv_prog_STRIP |
50e1e10f | 10519 | if test -n "$STRIP"; then |
b0cacab0 TT |
10520 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
10521 | echo "${ECHO_T}$STRIP" >&6 | |
50e1e10f | 10522 | else |
b0cacab0 TT |
10523 | echo "$as_me:$LINENO: result: no" >&5 |
10524 | echo "${ECHO_T}no" >&6 | |
50e1e10f TT |
10525 | fi |
10526 | ||
b0cacab0 | 10527 | fi |
50e1e10f | 10528 | if test -z "$ac_cv_prog_STRIP"; then |
b0cacab0 | 10529 | ac_ct_STRIP=$STRIP |
50e1e10f TT |
10530 | # Extract the first word of "strip", so it can be a program name with args. |
10531 | set dummy strip; ac_word=$2 | |
b0cacab0 TT |
10532 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10533 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10534 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
10535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
93636bde | 10536 | else |
b0cacab0 TT |
10537 | if test -n "$ac_ct_STRIP"; then |
10538 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
93636bde | 10539 | else |
b0cacab0 TT |
10540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10541 | for as_dir in $PATH | |
10542 | do | |
10543 | IFS=$as_save_IFS | |
10544 | test -z "$as_dir" && as_dir=. | |
10545 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10546 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10547 | ac_cv_prog_ac_ct_STRIP="strip" | |
10548 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10549 | break 2 | |
10550 | fi | |
10551 | done | |
10552 | done | |
10553 | ||
10554 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
50e1e10f TT |
10555 | fi |
10556 | fi | |
b0cacab0 TT |
10557 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
10558 | if test -n "$ac_ct_STRIP"; then | |
10559 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
10560 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
50e1e10f | 10561 | else |
b0cacab0 TT |
10562 | echo "$as_me:$LINENO: result: no" >&5 |
10563 | echo "${ECHO_T}no" >&6 | |
50e1e10f TT |
10564 | fi |
10565 | ||
b0cacab0 | 10566 | STRIP=$ac_ct_STRIP |
50e1e10f | 10567 | else |
b0cacab0 | 10568 | STRIP="$ac_cv_prog_STRIP" |
50e1e10f TT |
10569 | fi |
10570 | ||
50e1e10f TT |
10571 | # Find a good install program. We prefer a C program (faster), |
10572 | # so one script is as good as another. But avoid the broken or | |
10573 | # incompatible versions: | |
10574 | # SysV /etc/install, /usr/sbin/install | |
10575 | # SunOS /usr/etc/install | |
10576 | # IRIX /sbin/install | |
10577 | # AIX /bin/install | |
b0cacab0 | 10578 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
a4bf69d9 | 10579 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
50e1e10f TT |
10580 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
10581 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
b0cacab0 | 10582 | # OS/2's system install, which has a completely different semantic |
50e1e10f | 10583 | # ./install, which can be erroneously created by make from ./install.sh. |
b0cacab0 TT |
10584 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
10585 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
50e1e10f | 10586 | if test -z "$INSTALL"; then |
b0cacab0 TT |
10587 | if test "${ac_cv_path_install+set}" = set; then |
10588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 10589 | else |
b0cacab0 TT |
10590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10591 | for as_dir in $PATH | |
10592 | do | |
10593 | IFS=$as_save_IFS | |
10594 | test -z "$as_dir" && as_dir=. | |
10595 | # Account for people who put trailing slashes in PATH elements. | |
10596 | case $as_dir/ in | |
10597 | ./ | .// | /cC/* | \ | |
10598 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
10599 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
10600 | /usr/ucb/* ) ;; | |
10601 | *) | |
10602 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
10603 | # Don't use installbsd from OSF since it installs stuff as root | |
10604 | # by default. | |
10605 | for ac_prog in ginstall scoinst install; do | |
10606 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10607 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
50e1e10f | 10608 | if test $ac_prog = install && |
b0cacab0 | 10609 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
50e1e10f | 10610 | # AIX install. It has an incompatible calling convention. |
50e1e10f | 10611 | : |
b0cacab0 TT |
10612 | elif test $ac_prog = install && |
10613 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
10614 | # program-specific install script used by HP pwplus--don't use. | |
10615 | : | |
50e1e10f | 10616 | else |
b0cacab0 TT |
10617 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
10618 | break 3 | |
50e1e10f TT |
10619 | fi |
10620 | fi | |
10621 | done | |
b0cacab0 TT |
10622 | done |
10623 | ;; | |
10624 | esac | |
10625 | done | |
10626 | ||
21c84b71 | 10627 | |
50e1e10f | 10628 | fi |
21c84b71 | 10629 | if test "${ac_cv_path_install+set}" = set; then |
b0cacab0 | 10630 | INSTALL=$ac_cv_path_install |
21c84b71 TT |
10631 | else |
10632 | # As a last resort, use the slow shell script. We don't cache a | |
10633 | # path for INSTALL within a source directory, because that will | |
10634 | # break other packages using the cache if that directory is | |
10635 | # removed, or if the path is relative. | |
b0cacab0 | 10636 | INSTALL=$ac_install_sh |
21c84b71 | 10637 | fi |
50e1e10f | 10638 | fi |
b0cacab0 TT |
10639 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
10640 | echo "${ECHO_T}$INSTALL" >&6 | |
50e1e10f TT |
10641 | |
10642 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
10643 | # It thinks the first close brace ends the variable substitution. | |
10644 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
10645 | ||
b0cacab0 | 10646 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
a4bf69d9 | 10647 | |
50e1e10f TT |
10648 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
10649 | ||
6c133523 TT |
10650 | # See if we need a separate native compiler. |
10651 | if test $cross_compiling = no; then | |
10652 | BUILD_CC="$CC" | |
b0cacab0 | 10653 | |
6c133523 TT |
10654 | else |
10655 | for ac_prog in gcc cc | |
10656 | do | |
b0cacab0 | 10657 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
6c133523 | 10658 | set dummy $ac_prog; ac_word=$2 |
b0cacab0 TT |
10659 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10660 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10661 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then | |
10662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6c133523 | 10663 | else |
b0cacab0 TT |
10664 | if test -n "$BUILD_CC"; then |
10665 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
10666 | else | |
10667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10668 | for as_dir in $PATH | |
10669 | do | |
10670 | IFS=$as_save_IFS | |
10671 | test -z "$as_dir" && as_dir=. | |
10672 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10673 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10674 | ac_cv_prog_BUILD_CC="$ac_prog" | |
10675 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10676 | break 2 | |
10677 | fi | |
10678 | done | |
10679 | done | |
10680 | ||
6c133523 TT |
10681 | fi |
10682 | fi | |
b0cacab0 | 10683 | BUILD_CC=$ac_cv_prog_BUILD_CC |
6c133523 | 10684 | if test -n "$BUILD_CC"; then |
b0cacab0 TT |
10685 | echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
10686 | echo "${ECHO_T}$BUILD_CC" >&6 | |
6c133523 | 10687 | else |
b0cacab0 TT |
10688 | echo "$as_me:$LINENO: result: no" >&5 |
10689 | echo "${ECHO_T}no" >&6 | |
6c133523 TT |
10690 | fi |
10691 | ||
b0cacab0 | 10692 | test -n "$BUILD_CC" && break |
6c133523 TT |
10693 | done |
10694 | ||
10695 | fi | |
b0cacab0 TT |
10696 | |
10697 | ||
10698 | ||
10699 | ||
10700 | ||
10701 | ||
10702 | ||
10703 | ||
10704 | ||
10705 | ||
10706 | ||
10707 | ||
10708 | ||
10709 | ||
10710 | ||
10711 | ||
10712 | ||
10713 | ||
10714 | ||
10715 | ||
10716 | ||
10717 | ||
10718 | ||
10719 | ||
10720 | ||
10721 | ||
10722 | ||
10723 | ||
10724 | ||
10725 | ||
10726 | ||
10727 | ||
10728 | for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disk.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if.h net/if_dl.h netinet/in.h | |
50e1e10f | 10729 | do |
b0cacab0 TT |
10730 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10731 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10732 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10733 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10734 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10736 | fi | |
10737 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10738 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10739 | else | |
10740 | # Is the header compilable? | |
10741 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10742 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10743 | cat >conftest.$ac_ext <<_ACEOF | |
10744 | /* confdefs.h. */ | |
10745 | _ACEOF | |
10746 | cat confdefs.h >>conftest.$ac_ext | |
10747 | cat >>conftest.$ac_ext <<_ACEOF | |
10748 | /* end confdefs.h. */ | |
10749 | $ac_includes_default | |
10750 | #include <$ac_header> | |
10751 | _ACEOF | |
10752 | rm -f conftest.$ac_objext | |
10753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10754 | (eval $ac_compile) 2>conftest.er1 | |
10755 | ac_status=$? | |
10756 | grep -v '^ *+' conftest.er1 >conftest.err | |
10757 | rm -f conftest.er1 | |
10758 | cat conftest.err >&5 | |
10759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10760 | (exit $ac_status); } && | |
10761 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
10762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10763 | (eval $ac_try) 2>&5 | |
10764 | ac_status=$? | |
10765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10766 | (exit $ac_status); }; } && | |
10767 | { ac_try='test -s conftest.$ac_objext' | |
10768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10769 | (eval $ac_try) 2>&5 | |
10770 | ac_status=$? | |
10771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10772 | (exit $ac_status); }; }; then | |
10773 | ac_header_compiler=yes | |
10774 | else | |
10775 | echo "$as_me: failed program was:" >&5 | |
10776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10777 | ||
10778 | ac_header_compiler=no | |
10779 | fi | |
10780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10781 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10782 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10783 | ||
10784 | # Is the header present? | |
10785 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10786 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10787 | cat >conftest.$ac_ext <<_ACEOF | |
10788 | /* confdefs.h. */ | |
10789 | _ACEOF | |
10790 | cat confdefs.h >>conftest.$ac_ext | |
10791 | cat >>conftest.$ac_ext <<_ACEOF | |
10792 | /* end confdefs.h. */ | |
10793 | #include <$ac_header> | |
10794 | _ACEOF | |
10795 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10796 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10797 | ac_status=$? | |
10798 | grep -v '^ *+' conftest.er1 >conftest.err | |
10799 | rm -f conftest.er1 | |
10800 | cat conftest.err >&5 | |
10801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10802 | (exit $ac_status); } >/dev/null; then | |
10803 | if test -s conftest.err; then | |
10804 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10805 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10806 | else | |
10807 | ac_cpp_err= | |
10808 | fi | |
10809 | else | |
10810 | ac_cpp_err=yes | |
50e1e10f | 10811 | fi |
b0cacab0 TT |
10812 | if test -z "$ac_cpp_err"; then |
10813 | ac_header_preproc=yes | |
10814 | else | |
10815 | echo "$as_me: failed program was:" >&5 | |
10816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10817 | ||
10818 | ac_header_preproc=no | |
50e1e10f | 10819 | fi |
b0cacab0 TT |
10820 | rm -f conftest.err conftest.$ac_ext |
10821 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10822 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10823 | ||
10824 | # So? What about this header? | |
10825 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10826 | yes:no: ) | |
10827 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10828 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10829 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10830 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10831 | ac_header_preproc=yes | |
10832 | ;; | |
10833 | no:yes:* ) | |
10834 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10835 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10836 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10837 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10838 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10839 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10840 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10841 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10842 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10843 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10844 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10845 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10846 | ( | |
10847 | cat <<\_ASBOX | |
10848 | ## ------------------------------------------ ## | |
10849 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10850 | ## ------------------------------------------ ## | |
10851 | _ASBOX | |
10852 | ) | | |
10853 | sed "s/^/$as_me: WARNING: /" >&2 | |
10854 | ;; | |
10855 | esac | |
10856 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10857 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10858 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
93636bde | 10860 | else |
b0cacab0 TT |
10861 | eval "$as_ac_Header=\$ac_header_preproc" |
10862 | fi | |
10863 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10864 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10865 | ||
50e1e10f | 10866 | fi |
b0cacab0 TT |
10867 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10868 | cat >>confdefs.h <<_ACEOF | |
10869 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10870 | _ACEOF | |
10871 | ||
10872 | fi | |
10873 | ||
50e1e10f TT |
10874 | done |
10875 | ||
b0cacab0 TT |
10876 | |
10877 | for ac_func in vprintf | |
10878 | do | |
10879 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10880 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10881 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10882 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10884 | else | |
10885 | cat >conftest.$ac_ext <<_ACEOF | |
10886 | /* confdefs.h. */ | |
10887 | _ACEOF | |
10888 | cat confdefs.h >>conftest.$ac_ext | |
10889 | cat >>conftest.$ac_ext <<_ACEOF | |
10890 | /* end confdefs.h. */ | |
10891 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10892 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10893 | #define $ac_func innocuous_$ac_func | |
10894 | ||
50e1e10f | 10895 | /* System header to define __stub macros and hopefully few prototypes, |
b0cacab0 TT |
10896 | which can conflict with char $ac_func (); below. |
10897 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10898 | <limits.h> exists even on freestanding compilers. */ | |
10899 | ||
10900 | #ifdef __STDC__ | |
10901 | # include <limits.h> | |
10902 | #else | |
10903 | # include <assert.h> | |
10904 | #endif | |
93636bde | 10905 | |
b0cacab0 | 10906 | #undef $ac_func |
50e1e10f | 10907 | |
b0cacab0 TT |
10908 | /* Override any gcc2 internal prototype to avoid an error. */ |
10909 | #ifdef __cplusplus | |
10910 | extern "C" | |
10911 | { | |
10912 | #endif | |
10913 | /* We use char because int might match the return type of a gcc2 | |
10914 | builtin and then its argument prototype would still apply. */ | |
10915 | char $ac_func (); | |
50e1e10f TT |
10916 | /* The GNU C library defines this for functions which it implements |
10917 | to always fail with ENOSYS. Some functions are actually named | |
07a0db15 | 10918 | something starting with __ and the normal name is an alias. */ |
b0cacab0 | 10919 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
07a0db15 TT |
10920 | choke me |
10921 | #else | |
b0cacab0 TT |
10922 | char (*f) () = $ac_func; |
10923 | #endif | |
10924 | #ifdef __cplusplus | |
10925 | } | |
07a0db15 | 10926 | #endif |
50e1e10f | 10927 | |
b0cacab0 TT |
10928 | int |
10929 | main () | |
10930 | { | |
10931 | return f != $ac_func; | |
10932 | ; | |
10933 | return 0; | |
10934 | } | |
10935 | _ACEOF | |
10936 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10938 | (eval $ac_link) 2>conftest.er1 | |
10939 | ac_status=$? | |
10940 | grep -v '^ *+' conftest.er1 >conftest.err | |
10941 | rm -f conftest.er1 | |
10942 | cat conftest.err >&5 | |
10943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10944 | (exit $ac_status); } && | |
10945 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
10946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10947 | (eval $ac_try) 2>&5 | |
10948 | ac_status=$? | |
10949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10950 | (exit $ac_status); }; } && | |
10951 | { ac_try='test -s conftest$ac_exeext' | |
10952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10953 | (eval $ac_try) 2>&5 | |
10954 | ac_status=$? | |
10955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10956 | (exit $ac_status); }; }; then | |
10957 | eval "$as_ac_var=yes" | |
10958 | else | |
10959 | echo "$as_me: failed program was:" >&5 | |
10960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10961 | ||
10962 | eval "$as_ac_var=no" | |
10963 | fi | |
10964 | rm -f conftest.err conftest.$ac_objext \ | |
10965 | conftest$ac_exeext conftest.$ac_ext | |
10966 | fi | |
10967 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
10968 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10969 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10970 | cat >>confdefs.h <<_ACEOF | |
10971 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10972 | _ACEOF | |
10973 | ||
10974 | echo "$as_me:$LINENO: checking for _doprnt" >&5 | |
10975 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 | |
10976 | if test "${ac_cv_func__doprnt+set}" = set; then | |
10977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10978 | else | |
10979 | cat >conftest.$ac_ext <<_ACEOF | |
10980 | /* confdefs.h. */ | |
10981 | _ACEOF | |
10982 | cat confdefs.h >>conftest.$ac_ext | |
10983 | cat >>conftest.$ac_ext <<_ACEOF | |
10984 | /* end confdefs.h. */ | |
10985 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
10986 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10987 | #define _doprnt innocuous__doprnt | |
93636bde | 10988 | |
b0cacab0 TT |
10989 | /* System header to define __stub macros and hopefully few prototypes, |
10990 | which can conflict with char _doprnt (); below. | |
10991 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10992 | <limits.h> exists even on freestanding compilers. */ | |
93636bde | 10993 | |
b0cacab0 TT |
10994 | #ifdef __STDC__ |
10995 | # include <limits.h> | |
10996 | #else | |
10997 | # include <assert.h> | |
10998 | #endif | |
10999 | ||
11000 | #undef _doprnt | |
93636bde | 11001 | |
50e1e10f | 11002 | /* Override any gcc2 internal prototype to avoid an error. */ |
b0cacab0 TT |
11003 | #ifdef __cplusplus |
11004 | extern "C" | |
11005 | { | |
11006 | #endif | |
21c84b71 | 11007 | /* We use char because int might match the return type of a gcc2 |
b0cacab0 TT |
11008 | builtin and then its argument prototype would still apply. */ |
11009 | char _doprnt (); | |
50e1e10f TT |
11010 | /* The GNU C library defines this for functions which it implements |
11011 | to always fail with ENOSYS. Some functions are actually named | |
11012 | something starting with __ and the normal name is an alias. */ | |
11013 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
11014 | choke me | |
11015 | #else | |
b0cacab0 TT |
11016 | char (*f) () = _doprnt; |
11017 | #endif | |
11018 | #ifdef __cplusplus | |
11019 | } | |
50e1e10f TT |
11020 | #endif |
11021 | ||
b0cacab0 TT |
11022 | int |
11023 | main () | |
11024 | { | |
11025 | return f != _doprnt; | |
11026 | ; | |
11027 | return 0; | |
11028 | } | |
11029 | _ACEOF | |
11030 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11031 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11032 | (eval $ac_link) 2>conftest.er1 | |
11033 | ac_status=$? | |
11034 | grep -v '^ *+' conftest.er1 >conftest.err | |
11035 | rm -f conftest.er1 | |
11036 | cat conftest.err >&5 | |
11037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11038 | (exit $ac_status); } && | |
11039 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11041 | (eval $ac_try) 2>&5 | |
11042 | ac_status=$? | |
11043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11044 | (exit $ac_status); }; } && | |
11045 | { ac_try='test -s conftest$ac_exeext' | |
11046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11047 | (eval $ac_try) 2>&5 | |
11048 | ac_status=$? | |
11049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11050 | (exit $ac_status); }; }; then | |
11051 | ac_cv_func__doprnt=yes | |
11052 | else | |
11053 | echo "$as_me: failed program was:" >&5 | |
11054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11055 | ||
11056 | ac_cv_func__doprnt=no | |
11057 | fi | |
11058 | rm -f conftest.err conftest.$ac_objext \ | |
11059 | conftest$ac_exeext conftest.$ac_ext | |
11060 | fi | |
11061 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 | |
11062 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6 | |
11063 | if test $ac_cv_func__doprnt = yes; then | |
11064 | ||
11065 | cat >>confdefs.h <<\_ACEOF | |
50e1e10f | 11066 | #define HAVE_DOPRNT 1 |
b0cacab0 | 11067 | _ACEOF |
50e1e10f | 11068 | |
50e1e10f TT |
11069 | fi |
11070 | ||
11071 | fi | |
b0cacab0 | 11072 | done |
50e1e10f | 11073 | |
b0cacab0 TT |
11074 | |
11075 | echo "$as_me:$LINENO: checking whether d_reclen declared in dirent" >&5 | |
11076 | echo $ECHO_N "checking whether d_reclen declared in dirent... $ECHO_C" >&6 | |
11077 | if test "${e2fsprogs_cv_have_d_reclen_dirent+set}" = set; then | |
11078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fff45483 | 11079 | else |
b0cacab0 TT |
11080 | cat >conftest.$ac_ext <<_ACEOF |
11081 | /* confdefs.h. */ | |
11082 | _ACEOF | |
11083 | cat confdefs.h >>conftest.$ac_ext | |
11084 | cat >>conftest.$ac_ext <<_ACEOF | |
11085 | /* end confdefs.h. */ | |
fff45483 | 11086 | #include <dirent.h> |
b0cacab0 TT |
11087 | int |
11088 | main () | |
11089 | { | |
11090 | struct dirent de; de.d_reclen = 0; | |
11091 | ; | |
11092 | return 0; | |
11093 | } | |
11094 | _ACEOF | |
11095 | rm -f conftest.$ac_objext | |
11096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11097 | (eval $ac_compile) 2>conftest.er1 | |
11098 | ac_status=$? | |
11099 | grep -v '^ *+' conftest.er1 >conftest.err | |
11100 | rm -f conftest.er1 | |
11101 | cat conftest.err >&5 | |
11102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11103 | (exit $ac_status); } && | |
11104 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11106 | (eval $ac_try) 2>&5 | |
11107 | ac_status=$? | |
11108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11109 | (exit $ac_status); }; } && | |
11110 | { ac_try='test -s conftest.$ac_objext' | |
11111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11112 | (eval $ac_try) 2>&5 | |
11113 | ac_status=$? | |
11114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11115 | (exit $ac_status); }; }; then | |
fff45483 TT |
11116 | e2fsprogs_cv_have_d_reclen_dirent=yes |
11117 | else | |
b0cacab0 TT |
11118 | echo "$as_me: failed program was:" >&5 |
11119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11120 | ||
11121 | e2fsprogs_cv_have_d_reclen_dirent=no | |
fff45483 | 11122 | fi |
b0cacab0 | 11123 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
fff45483 TT |
11124 | fi |
11125 | ||
b0cacab0 TT |
11126 | echo "$as_me:$LINENO: result: $e2fsprogs_cv_have_d_reclen_dirent" >&5 |
11127 | echo "${ECHO_T}$e2fsprogs_cv_have_d_reclen_dirent" >&6 | |
fff45483 | 11128 | if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then |
b0cacab0 | 11129 | cat >>confdefs.h <<\_ACEOF |
fff45483 | 11130 | #define HAVE_RECLEN_DIRENT 1 |
b0cacab0 | 11131 | _ACEOF |
fff45483 TT |
11132 | |
11133 | fi | |
b0cacab0 TT |
11134 | echo "$as_me:$LINENO: checking whether ssize_t declared" >&5 |
11135 | echo $ECHO_N "checking whether ssize_t declared... $ECHO_C" >&6 | |
11136 | if test "${e2fsprogs_cv_have_ssize_t+set}" = set; then | |
11137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fff45483 | 11138 | else |
b0cacab0 TT |
11139 | cat >conftest.$ac_ext <<_ACEOF |
11140 | /* confdefs.h. */ | |
11141 | _ACEOF | |
11142 | cat confdefs.h >>conftest.$ac_ext | |
11143 | cat >>conftest.$ac_ext <<_ACEOF | |
11144 | /* end confdefs.h. */ | |
fff45483 | 11145 | #include <sys/types.h> |
b0cacab0 TT |
11146 | int |
11147 | main () | |
11148 | { | |
11149 | ssize_t a = 0; | |
11150 | ; | |
11151 | return 0; | |
11152 | } | |
11153 | _ACEOF | |
11154 | rm -f conftest.$ac_objext | |
11155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11156 | (eval $ac_compile) 2>conftest.er1 | |
11157 | ac_status=$? | |
11158 | grep -v '^ *+' conftest.er1 >conftest.err | |
11159 | rm -f conftest.er1 | |
11160 | cat conftest.err >&5 | |
11161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11162 | (exit $ac_status); } && | |
11163 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11165 | (eval $ac_try) 2>&5 | |
11166 | ac_status=$? | |
11167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11168 | (exit $ac_status); }; } && | |
11169 | { ac_try='test -s conftest.$ac_objext' | |
11170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11171 | (eval $ac_try) 2>&5 | |
11172 | ac_status=$? | |
11173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11174 | (exit $ac_status); }; }; then | |
fff45483 TT |
11175 | e2fsprogs_cv_have_ssize_t=yes |
11176 | else | |
b0cacab0 TT |
11177 | echo "$as_me: failed program was:" >&5 |
11178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11179 | ||
11180 | e2fsprogs_cv_have_ssize_t=no | |
fff45483 | 11181 | fi |
b0cacab0 | 11182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
fff45483 TT |
11183 | fi |
11184 | ||
b0cacab0 TT |
11185 | echo "$as_me:$LINENO: result: $e2fsprogs_cv_have_ssize_t" >&5 |
11186 | echo "${ECHO_T}$e2fsprogs_cv_have_ssize_t" >&6 | |
fff45483 | 11187 | if test "$e2fsprogs_cv_have_ssize_t" = yes; then |
b0cacab0 | 11188 | cat >>confdefs.h <<\_ACEOF |
fff45483 | 11189 | #define HAVE_TYPE_SSIZE_T 1 |
b0cacab0 | 11190 | _ACEOF |
fff45483 TT |
11191 | |
11192 | fi | |
b0cacab0 TT |
11193 | echo "$as_me:$LINENO: checking whether llseek declared in unistd.h" >&5 |
11194 | echo $ECHO_N "checking whether llseek declared in unistd.h... $ECHO_C" >&6 | |
11195 | if test "${e2fsprogs_cv_have_llseek_prototype+set}" = set; then | |
11196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b0b9c4de | 11197 | else |
b0cacab0 TT |
11198 | cat >conftest.$ac_ext <<_ACEOF |
11199 | /* confdefs.h. */ | |
11200 | _ACEOF | |
11201 | cat confdefs.h >>conftest.$ac_ext | |
11202 | cat >>conftest.$ac_ext <<_ACEOF | |
11203 | /* end confdefs.h. */ | |
b0b9c4de | 11204 | #include <unistd.h> |
b0cacab0 TT |
11205 | int |
11206 | main () | |
11207 | { | |
b0b9c4de | 11208 | extern int llseek(int); |
b0cacab0 TT |
11209 | ; |
11210 | return 0; | |
11211 | } | |
11212 | _ACEOF | |
11213 | rm -f conftest.$ac_objext | |
11214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11215 | (eval $ac_compile) 2>conftest.er1 | |
11216 | ac_status=$? | |
11217 | grep -v '^ *+' conftest.er1 >conftest.err | |
11218 | rm -f conftest.er1 | |
11219 | cat conftest.err >&5 | |
11220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11221 | (exit $ac_status); } && | |
11222 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11224 | (eval $ac_try) 2>&5 | |
11225 | ac_status=$? | |
11226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11227 | (exit $ac_status); }; } && | |
11228 | { ac_try='test -s conftest.$ac_objext' | |
11229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11230 | (eval $ac_try) 2>&5 | |
11231 | ac_status=$? | |
11232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11233 | (exit $ac_status); }; }; then | |
b0b9c4de TT |
11234 | e2fsprogs_cv_have_llseek_prototype=no |
11235 | else | |
b0cacab0 TT |
11236 | echo "$as_me: failed program was:" >&5 |
11237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11238 | ||
11239 | e2fsprogs_cv_have_llseek_prototype=yes | |
b0b9c4de | 11240 | fi |
b0cacab0 | 11241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b0b9c4de TT |
11242 | fi |
11243 | ||
b0cacab0 TT |
11244 | echo "$as_me:$LINENO: result: $e2fsprogs_cv_have_llseek_prototype" >&5 |
11245 | echo "${ECHO_T}$e2fsprogs_cv_have_llseek_prototype" >&6 | |
b0b9c4de | 11246 | if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then |
b0cacab0 | 11247 | cat >>confdefs.h <<\_ACEOF |
b0b9c4de | 11248 | #define HAVE_LLSEEK_PROTOTYPE 1 |
b0cacab0 | 11249 | _ACEOF |
b0b9c4de | 11250 | |
6928adc9 | 11251 | fi |
b0cacab0 TT |
11252 | echo "$as_me:$LINENO: checking whether lseek64 declared in unistd.h" >&5 |
11253 | echo $ECHO_N "checking whether lseek64 declared in unistd.h... $ECHO_C" >&6 | |
11254 | if test "${e2fsprogs_cv_have_lseek64_prototype+set}" = set; then | |
11255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6928adc9 | 11256 | else |
b0cacab0 TT |
11257 | cat >conftest.$ac_ext <<_ACEOF |
11258 | /* confdefs.h. */ | |
11259 | _ACEOF | |
11260 | cat confdefs.h >>conftest.$ac_ext | |
11261 | cat >>conftest.$ac_ext <<_ACEOF | |
11262 | /* end confdefs.h. */ | |
6928adc9 TT |
11263 | #define _LARGEFILE_SOURCE |
11264 | #define _LARGEFILE64_SOURCE | |
11265 | #include <unistd.h> | |
b0cacab0 TT |
11266 | int |
11267 | main () | |
11268 | { | |
6928adc9 | 11269 | extern int lseek64(int); |
b0cacab0 TT |
11270 | ; |
11271 | return 0; | |
11272 | } | |
11273 | _ACEOF | |
11274 | rm -f conftest.$ac_objext | |
11275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11276 | (eval $ac_compile) 2>conftest.er1 | |
11277 | ac_status=$? | |
11278 | grep -v '^ *+' conftest.er1 >conftest.err | |
11279 | rm -f conftest.er1 | |
11280 | cat conftest.err >&5 | |
11281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11282 | (exit $ac_status); } && | |
11283 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11285 | (eval $ac_try) 2>&5 | |
11286 | ac_status=$? | |
11287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11288 | (exit $ac_status); }; } && | |
11289 | { ac_try='test -s conftest.$ac_objext' | |
11290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11291 | (eval $ac_try) 2>&5 | |
11292 | ac_status=$? | |
11293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11294 | (exit $ac_status); }; }; then | |
6928adc9 TT |
11295 | e2fsprogs_cv_have_lseek64_prototype=no |
11296 | else | |
b0cacab0 TT |
11297 | echo "$as_me: failed program was:" >&5 |
11298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11299 | ||
11300 | e2fsprogs_cv_have_lseek64_prototype=yes | |
6928adc9 | 11301 | fi |
b0cacab0 | 11302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6928adc9 TT |
11303 | fi |
11304 | ||
b0cacab0 TT |
11305 | echo "$as_me:$LINENO: result: $e2fsprogs_cv_have_lseek64_prototype" >&5 |
11306 | echo "${ECHO_T}$e2fsprogs_cv_have_lseek64_prototype" >&6 | |
6928adc9 | 11307 | if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then |
b0cacab0 | 11308 | cat >>confdefs.h <<\_ACEOF |
6928adc9 | 11309 | #define HAVE_LSEEK64_PROTOTYPE 1 |
b0cacab0 | 11310 | _ACEOF |
6928adc9 | 11311 | |
50e1e10f TT |
11312 | fi |
11313 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then | |
b0cacab0 | 11314 | # if cross-compiling, with no cached values, just assume something common. |
50e1e10f TT |
11315 | ac_cv_sizeof_short=2 |
11316 | ac_cv_sizeof_int=4 | |
11317 | ac_cv_sizeof_long=4 | |
6c133523 | 11318 | ac_cv_sizeof_long_long=8 |
b0cacab0 TT |
11319 | { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5 |
11320 | echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;} | |
11321 | fi | |
11322 | echo "$as_me:$LINENO: checking for short" >&5 | |
11323 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
11324 | if test "${ac_cv_type_short+set}" = set; then | |
11325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11326 | else | |
11327 | cat >conftest.$ac_ext <<_ACEOF | |
11328 | /* confdefs.h. */ | |
11329 | _ACEOF | |
11330 | cat confdefs.h >>conftest.$ac_ext | |
11331 | cat >>conftest.$ac_ext <<_ACEOF | |
11332 | /* end confdefs.h. */ | |
11333 | $ac_includes_default | |
11334 | int | |
11335 | main () | |
11336 | { | |
11337 | if ((short *) 0) | |
11338 | return 0; | |
11339 | if (sizeof (short)) | |
11340 | return 0; | |
11341 | ; | |
11342 | return 0; | |
11343 | } | |
11344 | _ACEOF | |
11345 | rm -f conftest.$ac_objext | |
11346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11347 | (eval $ac_compile) 2>conftest.er1 | |
11348 | ac_status=$? | |
11349 | grep -v '^ *+' conftest.er1 >conftest.err | |
11350 | rm -f conftest.er1 | |
11351 | cat conftest.err >&5 | |
11352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11353 | (exit $ac_status); } && | |
11354 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11356 | (eval $ac_try) 2>&5 | |
11357 | ac_status=$? | |
11358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11359 | (exit $ac_status); }; } && | |
11360 | { ac_try='test -s conftest.$ac_objext' | |
11361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11362 | (eval $ac_try) 2>&5 | |
11363 | ac_status=$? | |
11364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11365 | (exit $ac_status); }; }; then | |
11366 | ac_cv_type_short=yes | |
11367 | else | |
11368 | echo "$as_me: failed program was:" >&5 | |
11369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11370 | ||
11371 | ac_cv_type_short=no | |
11372 | fi | |
11373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11374 | fi | |
11375 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
11376 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
11377 | ||
11378 | echo "$as_me:$LINENO: checking size of short" >&5 | |
11379 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
11380 | if test "${ac_cv_sizeof_short+set}" = set; then | |
11381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11382 | else | |
11383 | if test "$ac_cv_type_short" = yes; then | |
11384 | # The cast to unsigned long works around a bug in the HP C Compiler | |
11385 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
11386 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11387 | # This bug is HP SR number 8606223364. | |
11388 | if test "$cross_compiling" = yes; then | |
11389 | # Depending upon the size, compute the lo and hi bounds. | |
11390 | cat >conftest.$ac_ext <<_ACEOF | |
11391 | /* confdefs.h. */ | |
11392 | _ACEOF | |
11393 | cat confdefs.h >>conftest.$ac_ext | |
11394 | cat >>conftest.$ac_ext <<_ACEOF | |
11395 | /* end confdefs.h. */ | |
11396 | $ac_includes_default | |
11397 | int | |
11398 | main () | |
11399 | { | |
11400 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
11401 | test_array [0] = 0 | |
11402 | ||
11403 | ; | |
11404 | return 0; | |
11405 | } | |
11406 | _ACEOF | |
11407 | rm -f conftest.$ac_objext | |
11408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11409 | (eval $ac_compile) 2>conftest.er1 | |
11410 | ac_status=$? | |
11411 | grep -v '^ *+' conftest.er1 >conftest.err | |
11412 | rm -f conftest.er1 | |
11413 | cat conftest.err >&5 | |
11414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11415 | (exit $ac_status); } && | |
11416 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11418 | (eval $ac_try) 2>&5 | |
11419 | ac_status=$? | |
11420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11421 | (exit $ac_status); }; } && | |
11422 | { ac_try='test -s conftest.$ac_objext' | |
11423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11424 | (eval $ac_try) 2>&5 | |
11425 | ac_status=$? | |
11426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11427 | (exit $ac_status); }; }; then | |
11428 | ac_lo=0 ac_mid=0 | |
11429 | while :; do | |
11430 | cat >conftest.$ac_ext <<_ACEOF | |
11431 | /* confdefs.h. */ | |
11432 | _ACEOF | |
11433 | cat confdefs.h >>conftest.$ac_ext | |
11434 | cat >>conftest.$ac_ext <<_ACEOF | |
11435 | /* end confdefs.h. */ | |
11436 | $ac_includes_default | |
11437 | int | |
11438 | main () | |
11439 | { | |
11440 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
11441 | test_array [0] = 0 | |
11442 | ||
11443 | ; | |
11444 | return 0; | |
11445 | } | |
11446 | _ACEOF | |
11447 | rm -f conftest.$ac_objext | |
11448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11449 | (eval $ac_compile) 2>conftest.er1 | |
11450 | ac_status=$? | |
11451 | grep -v '^ *+' conftest.er1 >conftest.err | |
11452 | rm -f conftest.er1 | |
11453 | cat conftest.err >&5 | |
11454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11455 | (exit $ac_status); } && | |
11456 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11458 | (eval $ac_try) 2>&5 | |
11459 | ac_status=$? | |
11460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11461 | (exit $ac_status); }; } && | |
11462 | { ac_try='test -s conftest.$ac_objext' | |
11463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11464 | (eval $ac_try) 2>&5 | |
11465 | ac_status=$? | |
11466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11467 | (exit $ac_status); }; }; then | |
11468 | ac_hi=$ac_mid; break | |
11469 | else | |
11470 | echo "$as_me: failed program was:" >&5 | |
11471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11472 | ||
11473 | ac_lo=`expr $ac_mid + 1` | |
11474 | if test $ac_lo -le $ac_mid; then | |
11475 | ac_lo= ac_hi= | |
11476 | break | |
11477 | fi | |
11478 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
11479 | fi | |
11480 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11481 | done | |
11482 | else | |
11483 | echo "$as_me: failed program was:" >&5 | |
11484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11485 | ||
11486 | cat >conftest.$ac_ext <<_ACEOF | |
11487 | /* confdefs.h. */ | |
11488 | _ACEOF | |
11489 | cat confdefs.h >>conftest.$ac_ext | |
11490 | cat >>conftest.$ac_ext <<_ACEOF | |
11491 | /* end confdefs.h. */ | |
11492 | $ac_includes_default | |
11493 | int | |
11494 | main () | |
11495 | { | |
11496 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
11497 | test_array [0] = 0 | |
11498 | ||
11499 | ; | |
11500 | return 0; | |
11501 | } | |
11502 | _ACEOF | |
11503 | rm -f conftest.$ac_objext | |
11504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11505 | (eval $ac_compile) 2>conftest.er1 | |
11506 | ac_status=$? | |
11507 | grep -v '^ *+' conftest.er1 >conftest.err | |
11508 | rm -f conftest.er1 | |
11509 | cat conftest.err >&5 | |
11510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11511 | (exit $ac_status); } && | |
11512 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11514 | (eval $ac_try) 2>&5 | |
11515 | ac_status=$? | |
11516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11517 | (exit $ac_status); }; } && | |
11518 | { ac_try='test -s conftest.$ac_objext' | |
11519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11520 | (eval $ac_try) 2>&5 | |
11521 | ac_status=$? | |
11522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11523 | (exit $ac_status); }; }; then | |
11524 | ac_hi=-1 ac_mid=-1 | |
11525 | while :; do | |
11526 | cat >conftest.$ac_ext <<_ACEOF | |
11527 | /* confdefs.h. */ | |
11528 | _ACEOF | |
11529 | cat confdefs.h >>conftest.$ac_ext | |
11530 | cat >>conftest.$ac_ext <<_ACEOF | |
11531 | /* end confdefs.h. */ | |
11532 | $ac_includes_default | |
11533 | int | |
11534 | main () | |
11535 | { | |
11536 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
11537 | test_array [0] = 0 | |
11538 | ||
11539 | ; | |
11540 | return 0; | |
11541 | } | |
11542 | _ACEOF | |
11543 | rm -f conftest.$ac_objext | |
11544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11545 | (eval $ac_compile) 2>conftest.er1 | |
11546 | ac_status=$? | |
11547 | grep -v '^ *+' conftest.er1 >conftest.err | |
11548 | rm -f conftest.er1 | |
11549 | cat conftest.err >&5 | |
11550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11551 | (exit $ac_status); } && | |
11552 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11554 | (eval $ac_try) 2>&5 | |
11555 | ac_status=$? | |
11556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11557 | (exit $ac_status); }; } && | |
11558 | { ac_try='test -s conftest.$ac_objext' | |
11559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11560 | (eval $ac_try) 2>&5 | |
11561 | ac_status=$? | |
11562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11563 | (exit $ac_status); }; }; then | |
11564 | ac_lo=$ac_mid; break | |
11565 | else | |
11566 | echo "$as_me: failed program was:" >&5 | |
11567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11568 | ||
11569 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
11570 | if test $ac_mid -le $ac_hi; then | |
11571 | ac_lo= ac_hi= | |
11572 | break | |
11573 | fi | |
11574 | ac_mid=`expr 2 '*' $ac_mid` | |
11575 | fi | |
11576 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11577 | done | |
11578 | else | |
11579 | echo "$as_me: failed program was:" >&5 | |
11580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11581 | ||
11582 | ac_lo= ac_hi= | |
11583 | fi | |
11584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11585 | fi | |
11586 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11587 | # Binary search between lo and hi bounds. | |
11588 | while test "x$ac_lo" != "x$ac_hi"; do | |
11589 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
11590 | cat >conftest.$ac_ext <<_ACEOF | |
11591 | /* confdefs.h. */ | |
11592 | _ACEOF | |
11593 | cat confdefs.h >>conftest.$ac_ext | |
11594 | cat >>conftest.$ac_ext <<_ACEOF | |
11595 | /* end confdefs.h. */ | |
11596 | $ac_includes_default | |
11597 | int | |
11598 | main () | |
11599 | { | |
11600 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
11601 | test_array [0] = 0 | |
11602 | ||
11603 | ; | |
11604 | return 0; | |
11605 | } | |
11606 | _ACEOF | |
11607 | rm -f conftest.$ac_objext | |
11608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11609 | (eval $ac_compile) 2>conftest.er1 | |
11610 | ac_status=$? | |
11611 | grep -v '^ *+' conftest.er1 >conftest.err | |
11612 | rm -f conftest.er1 | |
11613 | cat conftest.err >&5 | |
11614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11615 | (exit $ac_status); } && | |
11616 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11618 | (eval $ac_try) 2>&5 | |
11619 | ac_status=$? | |
11620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11621 | (exit $ac_status); }; } && | |
11622 | { ac_try='test -s conftest.$ac_objext' | |
11623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11624 | (eval $ac_try) 2>&5 | |
11625 | ac_status=$? | |
11626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11627 | (exit $ac_status); }; }; then | |
11628 | ac_hi=$ac_mid | |
11629 | else | |
11630 | echo "$as_me: failed program was:" >&5 | |
11631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11632 | ||
11633 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
11634 | fi | |
11635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11636 | done | |
11637 | case $ac_lo in | |
11638 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
11639 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
11640 | See \`config.log' for more details." >&5 | |
11641 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
11642 | See \`config.log' for more details." >&2;} | |
11643 | { (exit 1); exit 1; }; } ;; | |
11644 | esac | |
11645 | else | |
11646 | if test "$cross_compiling" = yes; then | |
11647 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 | |
11648 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
11649 | { (exit 1); exit 1; }; } | |
11650 | else | |
11651 | cat >conftest.$ac_ext <<_ACEOF | |
11652 | /* confdefs.h. */ | |
11653 | _ACEOF | |
11654 | cat confdefs.h >>conftest.$ac_ext | |
11655 | cat >>conftest.$ac_ext <<_ACEOF | |
11656 | /* end confdefs.h. */ | |
11657 | $ac_includes_default | |
11658 | long longval () { return (long) (sizeof (short)); } | |
11659 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
11660 | #include <stdio.h> | |
11661 | #include <stdlib.h> | |
11662 | int | |
11663 | main () | |
11664 | { | |
11665 | ||
11666 | FILE *f = fopen ("conftest.val", "w"); | |
11667 | if (! f) | |
11668 | exit (1); | |
11669 | if (((long) (sizeof (short))) < 0) | |
11670 | { | |
11671 | long i = longval (); | |
11672 | if (i != ((long) (sizeof (short)))) | |
11673 | exit (1); | |
11674 | fprintf (f, "%ld\n", i); | |
11675 | } | |
11676 | else | |
11677 | { | |
11678 | unsigned long i = ulongval (); | |
11679 | if (i != ((long) (sizeof (short)))) | |
11680 | exit (1); | |
11681 | fprintf (f, "%lu\n", i); | |
11682 | } | |
11683 | exit (ferror (f) || fclose (f) != 0); | |
11684 | ||
11685 | ; | |
11686 | return 0; | |
11687 | } | |
11688 | _ACEOF | |
11689 | rm -f conftest$ac_exeext | |
11690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11691 | (eval $ac_link) 2>&5 | |
11692 | ac_status=$? | |
11693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11694 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
11695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11696 | (eval $ac_try) 2>&5 | |
11697 | ac_status=$? | |
11698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11699 | (exit $ac_status); }; }; then | |
11700 | ac_cv_sizeof_short=`cat conftest.val` | |
11701 | else | |
11702 | echo "$as_me: program exited with status $ac_status" >&5 | |
11703 | echo "$as_me: failed program was:" >&5 | |
11704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11705 | ||
11706 | ( exit $ac_status ) | |
11707 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
11708 | See \`config.log' for more details." >&5 | |
11709 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
11710 | See \`config.log' for more details." >&2;} | |
11711 | { (exit 1); exit 1; }; } | |
11712 | fi | |
11713 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11714 | fi | |
11715 | fi | |
11716 | rm -f conftest.val | |
11717 | else | |
11718 | ac_cv_sizeof_short=0 | |
11719 | fi | |
11720 | fi | |
11721 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
11722 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
11723 | cat >>confdefs.h <<_ACEOF | |
11724 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
11725 | _ACEOF | |
11726 | ||
11727 | ||
11728 | echo "$as_me:$LINENO: checking for int" >&5 | |
11729 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
11730 | if test "${ac_cv_type_int+set}" = set; then | |
11731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11732 | else | |
11733 | cat >conftest.$ac_ext <<_ACEOF | |
11734 | /* confdefs.h. */ | |
11735 | _ACEOF | |
11736 | cat confdefs.h >>conftest.$ac_ext | |
11737 | cat >>conftest.$ac_ext <<_ACEOF | |
11738 | /* end confdefs.h. */ | |
11739 | $ac_includes_default | |
11740 | int | |
11741 | main () | |
11742 | { | |
11743 | if ((int *) 0) | |
11744 | return 0; | |
11745 | if (sizeof (int)) | |
11746 | return 0; | |
11747 | ; | |
11748 | return 0; | |
11749 | } | |
11750 | _ACEOF | |
11751 | rm -f conftest.$ac_objext | |
11752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11753 | (eval $ac_compile) 2>conftest.er1 | |
11754 | ac_status=$? | |
11755 | grep -v '^ *+' conftest.er1 >conftest.err | |
11756 | rm -f conftest.er1 | |
11757 | cat conftest.err >&5 | |
11758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11759 | (exit $ac_status); } && | |
11760 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11762 | (eval $ac_try) 2>&5 | |
11763 | ac_status=$? | |
11764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11765 | (exit $ac_status); }; } && | |
11766 | { ac_try='test -s conftest.$ac_objext' | |
11767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11768 | (eval $ac_try) 2>&5 | |
11769 | ac_status=$? | |
11770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11771 | (exit $ac_status); }; }; then | |
11772 | ac_cv_type_int=yes | |
11773 | else | |
11774 | echo "$as_me: failed program was:" >&5 | |
11775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11776 | ||
11777 | ac_cv_type_int=no | |
11778 | fi | |
11779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11780 | fi | |
11781 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
11782 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
11783 | ||
11784 | echo "$as_me:$LINENO: checking size of int" >&5 | |
11785 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
11786 | if test "${ac_cv_sizeof_int+set}" = set; then | |
11787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11788 | else | |
11789 | if test "$ac_cv_type_int" = yes; then | |
11790 | # The cast to unsigned long works around a bug in the HP C Compiler | |
11791 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
11792 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11793 | # This bug is HP SR number 8606223364. | |
11794 | if test "$cross_compiling" = yes; then | |
11795 | # Depending upon the size, compute the lo and hi bounds. | |
11796 | cat >conftest.$ac_ext <<_ACEOF | |
11797 | /* confdefs.h. */ | |
11798 | _ACEOF | |
11799 | cat confdefs.h >>conftest.$ac_ext | |
11800 | cat >>conftest.$ac_ext <<_ACEOF | |
11801 | /* end confdefs.h. */ | |
11802 | $ac_includes_default | |
11803 | int | |
11804 | main () | |
11805 | { | |
11806 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
11807 | test_array [0] = 0 | |
11808 | ||
11809 | ; | |
11810 | return 0; | |
11811 | } | |
11812 | _ACEOF | |
11813 | rm -f conftest.$ac_objext | |
11814 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11815 | (eval $ac_compile) 2>conftest.er1 | |
11816 | ac_status=$? | |
11817 | grep -v '^ *+' conftest.er1 >conftest.err | |
11818 | rm -f conftest.er1 | |
11819 | cat conftest.err >&5 | |
11820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11821 | (exit $ac_status); } && | |
11822 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11824 | (eval $ac_try) 2>&5 | |
11825 | ac_status=$? | |
11826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11827 | (exit $ac_status); }; } && | |
11828 | { ac_try='test -s conftest.$ac_objext' | |
11829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11830 | (eval $ac_try) 2>&5 | |
11831 | ac_status=$? | |
11832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11833 | (exit $ac_status); }; }; then | |
11834 | ac_lo=0 ac_mid=0 | |
11835 | while :; do | |
11836 | cat >conftest.$ac_ext <<_ACEOF | |
11837 | /* confdefs.h. */ | |
11838 | _ACEOF | |
11839 | cat confdefs.h >>conftest.$ac_ext | |
11840 | cat >>conftest.$ac_ext <<_ACEOF | |
11841 | /* end confdefs.h. */ | |
11842 | $ac_includes_default | |
11843 | int | |
11844 | main () | |
11845 | { | |
11846 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
11847 | test_array [0] = 0 | |
11848 | ||
11849 | ; | |
11850 | return 0; | |
11851 | } | |
11852 | _ACEOF | |
11853 | rm -f conftest.$ac_objext | |
11854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11855 | (eval $ac_compile) 2>conftest.er1 | |
11856 | ac_status=$? | |
11857 | grep -v '^ *+' conftest.er1 >conftest.err | |
11858 | rm -f conftest.er1 | |
11859 | cat conftest.err >&5 | |
11860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11861 | (exit $ac_status); } && | |
11862 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11864 | (eval $ac_try) 2>&5 | |
11865 | ac_status=$? | |
11866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11867 | (exit $ac_status); }; } && | |
11868 | { ac_try='test -s conftest.$ac_objext' | |
11869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11870 | (eval $ac_try) 2>&5 | |
11871 | ac_status=$? | |
11872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11873 | (exit $ac_status); }; }; then | |
11874 | ac_hi=$ac_mid; break | |
11875 | else | |
11876 | echo "$as_me: failed program was:" >&5 | |
11877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11878 | ||
11879 | ac_lo=`expr $ac_mid + 1` | |
11880 | if test $ac_lo -le $ac_mid; then | |
11881 | ac_lo= ac_hi= | |
11882 | break | |
11883 | fi | |
11884 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
11885 | fi | |
11886 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11887 | done | |
11888 | else | |
11889 | echo "$as_me: failed program was:" >&5 | |
11890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11891 | ||
11892 | cat >conftest.$ac_ext <<_ACEOF | |
11893 | /* confdefs.h. */ | |
11894 | _ACEOF | |
11895 | cat confdefs.h >>conftest.$ac_ext | |
11896 | cat >>conftest.$ac_ext <<_ACEOF | |
11897 | /* end confdefs.h. */ | |
11898 | $ac_includes_default | |
11899 | int | |
11900 | main () | |
11901 | { | |
11902 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
11903 | test_array [0] = 0 | |
11904 | ||
11905 | ; | |
11906 | return 0; | |
11907 | } | |
11908 | _ACEOF | |
11909 | rm -f conftest.$ac_objext | |
11910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11911 | (eval $ac_compile) 2>conftest.er1 | |
11912 | ac_status=$? | |
11913 | grep -v '^ *+' conftest.er1 >conftest.err | |
11914 | rm -f conftest.er1 | |
11915 | cat conftest.err >&5 | |
11916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11917 | (exit $ac_status); } && | |
11918 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11920 | (eval $ac_try) 2>&5 | |
11921 | ac_status=$? | |
11922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11923 | (exit $ac_status); }; } && | |
11924 | { ac_try='test -s conftest.$ac_objext' | |
11925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11926 | (eval $ac_try) 2>&5 | |
11927 | ac_status=$? | |
11928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11929 | (exit $ac_status); }; }; then | |
11930 | ac_hi=-1 ac_mid=-1 | |
11931 | while :; do | |
11932 | cat >conftest.$ac_ext <<_ACEOF | |
11933 | /* confdefs.h. */ | |
11934 | _ACEOF | |
11935 | cat confdefs.h >>conftest.$ac_ext | |
11936 | cat >>conftest.$ac_ext <<_ACEOF | |
11937 | /* end confdefs.h. */ | |
11938 | $ac_includes_default | |
11939 | int | |
11940 | main () | |
11941 | { | |
11942 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
11943 | test_array [0] = 0 | |
11944 | ||
11945 | ; | |
11946 | return 0; | |
11947 | } | |
11948 | _ACEOF | |
11949 | rm -f conftest.$ac_objext | |
11950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11951 | (eval $ac_compile) 2>conftest.er1 | |
11952 | ac_status=$? | |
11953 | grep -v '^ *+' conftest.er1 >conftest.err | |
11954 | rm -f conftest.er1 | |
11955 | cat conftest.err >&5 | |
11956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11957 | (exit $ac_status); } && | |
11958 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11960 | (eval $ac_try) 2>&5 | |
11961 | ac_status=$? | |
11962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11963 | (exit $ac_status); }; } && | |
11964 | { ac_try='test -s conftest.$ac_objext' | |
11965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11966 | (eval $ac_try) 2>&5 | |
11967 | ac_status=$? | |
11968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11969 | (exit $ac_status); }; }; then | |
11970 | ac_lo=$ac_mid; break | |
11971 | else | |
11972 | echo "$as_me: failed program was:" >&5 | |
11973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11974 | ||
11975 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
11976 | if test $ac_mid -le $ac_hi; then | |
11977 | ac_lo= ac_hi= | |
11978 | break | |
11979 | fi | |
11980 | ac_mid=`expr 2 '*' $ac_mid` | |
11981 | fi | |
11982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11983 | done | |
11984 | else | |
11985 | echo "$as_me: failed program was:" >&5 | |
11986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11987 | ||
11988 | ac_lo= ac_hi= | |
11989 | fi | |
11990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11991 | fi | |
11992 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11993 | # Binary search between lo and hi bounds. | |
11994 | while test "x$ac_lo" != "x$ac_hi"; do | |
11995 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
11996 | cat >conftest.$ac_ext <<_ACEOF | |
11997 | /* confdefs.h. */ | |
11998 | _ACEOF | |
11999 | cat confdefs.h >>conftest.$ac_ext | |
12000 | cat >>conftest.$ac_ext <<_ACEOF | |
12001 | /* end confdefs.h. */ | |
12002 | $ac_includes_default | |
12003 | int | |
12004 | main () | |
12005 | { | |
12006 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
12007 | test_array [0] = 0 | |
12008 | ||
12009 | ; | |
12010 | return 0; | |
12011 | } | |
12012 | _ACEOF | |
12013 | rm -f conftest.$ac_objext | |
12014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12015 | (eval $ac_compile) 2>conftest.er1 | |
12016 | ac_status=$? | |
12017 | grep -v '^ *+' conftest.er1 >conftest.err | |
12018 | rm -f conftest.er1 | |
12019 | cat conftest.err >&5 | |
12020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12021 | (exit $ac_status); } && | |
12022 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12024 | (eval $ac_try) 2>&5 | |
12025 | ac_status=$? | |
12026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12027 | (exit $ac_status); }; } && | |
12028 | { ac_try='test -s conftest.$ac_objext' | |
12029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12030 | (eval $ac_try) 2>&5 | |
12031 | ac_status=$? | |
12032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12033 | (exit $ac_status); }; }; then | |
12034 | ac_hi=$ac_mid | |
12035 | else | |
12036 | echo "$as_me: failed program was:" >&5 | |
12037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12038 | ||
12039 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
12040 | fi | |
12041 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12042 | done | |
12043 | case $ac_lo in | |
12044 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
12045 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
12046 | See \`config.log' for more details." >&5 | |
12047 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
12048 | See \`config.log' for more details." >&2;} | |
12049 | { (exit 1); exit 1; }; } ;; | |
12050 | esac | |
12051 | else | |
12052 | if test "$cross_compiling" = yes; then | |
12053 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 | |
12054 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
12055 | { (exit 1); exit 1; }; } | |
12056 | else | |
12057 | cat >conftest.$ac_ext <<_ACEOF | |
12058 | /* confdefs.h. */ | |
12059 | _ACEOF | |
12060 | cat confdefs.h >>conftest.$ac_ext | |
12061 | cat >>conftest.$ac_ext <<_ACEOF | |
12062 | /* end confdefs.h. */ | |
12063 | $ac_includes_default | |
12064 | long longval () { return (long) (sizeof (int)); } | |
12065 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
12066 | #include <stdio.h> | |
12067 | #include <stdlib.h> | |
12068 | int | |
12069 | main () | |
12070 | { | |
12071 | ||
12072 | FILE *f = fopen ("conftest.val", "w"); | |
12073 | if (! f) | |
12074 | exit (1); | |
12075 | if (((long) (sizeof (int))) < 0) | |
12076 | { | |
12077 | long i = longval (); | |
12078 | if (i != ((long) (sizeof (int)))) | |
12079 | exit (1); | |
12080 | fprintf (f, "%ld\n", i); | |
12081 | } | |
12082 | else | |
12083 | { | |
12084 | unsigned long i = ulongval (); | |
12085 | if (i != ((long) (sizeof (int)))) | |
12086 | exit (1); | |
12087 | fprintf (f, "%lu\n", i); | |
12088 | } | |
12089 | exit (ferror (f) || fclose (f) != 0); | |
12090 | ||
12091 | ; | |
12092 | return 0; | |
12093 | } | |
12094 | _ACEOF | |
12095 | rm -f conftest$ac_exeext | |
12096 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12097 | (eval $ac_link) 2>&5 | |
12098 | ac_status=$? | |
12099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12100 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12102 | (eval $ac_try) 2>&5 | |
12103 | ac_status=$? | |
12104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12105 | (exit $ac_status); }; }; then | |
12106 | ac_cv_sizeof_int=`cat conftest.val` | |
12107 | else | |
12108 | echo "$as_me: program exited with status $ac_status" >&5 | |
12109 | echo "$as_me: failed program was:" >&5 | |
12110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12111 | ||
12112 | ( exit $ac_status ) | |
12113 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
12114 | See \`config.log' for more details." >&5 | |
12115 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
12116 | See \`config.log' for more details." >&2;} | |
12117 | { (exit 1); exit 1; }; } | |
12118 | fi | |
12119 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12120 | fi | |
12121 | fi | |
12122 | rm -f conftest.val | |
12123 | else | |
12124 | ac_cv_sizeof_int=0 | |
12125 | fi | |
07a0db15 | 12126 | fi |
b0cacab0 TT |
12127 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
12128 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
12129 | cat >>confdefs.h <<_ACEOF | |
12130 | #define SIZEOF_INT $ac_cv_sizeof_int | |
12131 | _ACEOF | |
12132 | ||
12133 | ||
12134 | echo "$as_me:$LINENO: checking for long" >&5 | |
12135 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
12136 | if test "${ac_cv_type_long+set}" = set; then | |
12137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
07a0db15 | 12138 | else |
b0cacab0 TT |
12139 | cat >conftest.$ac_ext <<_ACEOF |
12140 | /* confdefs.h. */ | |
12141 | _ACEOF | |
12142 | cat confdefs.h >>conftest.$ac_ext | |
12143 | cat >>conftest.$ac_ext <<_ACEOF | |
12144 | /* end confdefs.h. */ | |
12145 | $ac_includes_default | |
12146 | int | |
12147 | main () | |
12148 | { | |
12149 | if ((long *) 0) | |
12150 | return 0; | |
12151 | if (sizeof (long)) | |
12152 | return 0; | |
12153 | ; | |
12154 | return 0; | |
12155 | } | |
12156 | _ACEOF | |
12157 | rm -f conftest.$ac_objext | |
12158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12159 | (eval $ac_compile) 2>conftest.er1 | |
12160 | ac_status=$? | |
12161 | grep -v '^ *+' conftest.er1 >conftest.err | |
12162 | rm -f conftest.er1 | |
12163 | cat conftest.err >&5 | |
12164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12165 | (exit $ac_status); } && | |
12166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12168 | (eval $ac_try) 2>&5 | |
12169 | ac_status=$? | |
12170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12171 | (exit $ac_status); }; } && | |
12172 | { ac_try='test -s conftest.$ac_objext' | |
12173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12174 | (eval $ac_try) 2>&5 | |
12175 | ac_status=$? | |
12176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12177 | (exit $ac_status); }; }; then | |
12178 | ac_cv_type_long=yes | |
12179 | else | |
12180 | echo "$as_me: failed program was:" >&5 | |
12181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12182 | ||
12183 | ac_cv_type_long=no | |
12184 | fi | |
12185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12186 | fi | |
12187 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
12188 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
12189 | ||
12190 | echo "$as_me:$LINENO: checking size of long" >&5 | |
12191 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
12192 | if test "${ac_cv_sizeof_long+set}" = set; then | |
12193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12194 | else | |
12195 | if test "$ac_cv_type_long" = yes; then | |
12196 | # The cast to unsigned long works around a bug in the HP C Compiler | |
12197 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12198 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12199 | # This bug is HP SR number 8606223364. | |
07a0db15 | 12200 | if test "$cross_compiling" = yes; then |
b0cacab0 TT |
12201 | # Depending upon the size, compute the lo and hi bounds. |
12202 | cat >conftest.$ac_ext <<_ACEOF | |
12203 | /* confdefs.h. */ | |
12204 | _ACEOF | |
12205 | cat confdefs.h >>conftest.$ac_ext | |
12206 | cat >>conftest.$ac_ext <<_ACEOF | |
12207 | /* end confdefs.h. */ | |
12208 | $ac_includes_default | |
12209 | int | |
12210 | main () | |
12211 | { | |
12212 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
12213 | test_array [0] = 0 | |
12214 | ||
12215 | ; | |
12216 | return 0; | |
12217 | } | |
12218 | _ACEOF | |
12219 | rm -f conftest.$ac_objext | |
12220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12221 | (eval $ac_compile) 2>conftest.er1 | |
12222 | ac_status=$? | |
12223 | grep -v '^ *+' conftest.er1 >conftest.err | |
12224 | rm -f conftest.er1 | |
12225 | cat conftest.err >&5 | |
12226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12227 | (exit $ac_status); } && | |
12228 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12230 | (eval $ac_try) 2>&5 | |
12231 | ac_status=$? | |
12232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12233 | (exit $ac_status); }; } && | |
12234 | { ac_try='test -s conftest.$ac_objext' | |
12235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12236 | (eval $ac_try) 2>&5 | |
12237 | ac_status=$? | |
12238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12239 | (exit $ac_status); }; }; then | |
12240 | ac_lo=0 ac_mid=0 | |
12241 | while :; do | |
12242 | cat >conftest.$ac_ext <<_ACEOF | |
12243 | /* confdefs.h. */ | |
12244 | _ACEOF | |
12245 | cat confdefs.h >>conftest.$ac_ext | |
12246 | cat >>conftest.$ac_ext <<_ACEOF | |
12247 | /* end confdefs.h. */ | |
12248 | $ac_includes_default | |
12249 | int | |
12250 | main () | |
12251 | { | |
12252 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
12253 | test_array [0] = 0 | |
12254 | ||
12255 | ; | |
12256 | return 0; | |
12257 | } | |
12258 | _ACEOF | |
12259 | rm -f conftest.$ac_objext | |
12260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12261 | (eval $ac_compile) 2>conftest.er1 | |
12262 | ac_status=$? | |
12263 | grep -v '^ *+' conftest.er1 >conftest.err | |
12264 | rm -f conftest.er1 | |
12265 | cat conftest.err >&5 | |
12266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12267 | (exit $ac_status); } && | |
12268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12270 | (eval $ac_try) 2>&5 | |
12271 | ac_status=$? | |
12272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12273 | (exit $ac_status); }; } && | |
12274 | { ac_try='test -s conftest.$ac_objext' | |
12275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12276 | (eval $ac_try) 2>&5 | |
12277 | ac_status=$? | |
12278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12279 | (exit $ac_status); }; }; then | |
12280 | ac_hi=$ac_mid; break | |
12281 | else | |
12282 | echo "$as_me: failed program was:" >&5 | |
12283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12284 | ||
12285 | ac_lo=`expr $ac_mid + 1` | |
12286 | if test $ac_lo -le $ac_mid; then | |
12287 | ac_lo= ac_hi= | |
12288 | break | |
12289 | fi | |
12290 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
12291 | fi | |
12292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12293 | done | |
07a0db15 | 12294 | else |
b0cacab0 TT |
12295 | echo "$as_me: failed program was:" >&5 |
12296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12297 | ||
12298 | cat >conftest.$ac_ext <<_ACEOF | |
12299 | /* confdefs.h. */ | |
12300 | _ACEOF | |
12301 | cat confdefs.h >>conftest.$ac_ext | |
12302 | cat >>conftest.$ac_ext <<_ACEOF | |
12303 | /* end confdefs.h. */ | |
12304 | $ac_includes_default | |
12305 | int | |
12306 | main () | |
50e1e10f | 12307 | { |
b0cacab0 TT |
12308 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
12309 | test_array [0] = 0 | |
12310 | ||
12311 | ; | |
12312 | return 0; | |
50e1e10f | 12313 | } |
b0cacab0 TT |
12314 | _ACEOF |
12315 | rm -f conftest.$ac_objext | |
12316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12317 | (eval $ac_compile) 2>conftest.er1 | |
12318 | ac_status=$? | |
12319 | grep -v '^ *+' conftest.er1 >conftest.err | |
12320 | rm -f conftest.er1 | |
12321 | cat conftest.err >&5 | |
12322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12323 | (exit $ac_status); } && | |
12324 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12326 | (eval $ac_try) 2>&5 | |
12327 | ac_status=$? | |
12328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12329 | (exit $ac_status); }; } && | |
12330 | { ac_try='test -s conftest.$ac_objext' | |
12331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12332 | (eval $ac_try) 2>&5 | |
12333 | ac_status=$? | |
12334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12335 | (exit $ac_status); }; }; then | |
12336 | ac_hi=-1 ac_mid=-1 | |
12337 | while :; do | |
12338 | cat >conftest.$ac_ext <<_ACEOF | |
12339 | /* confdefs.h. */ | |
12340 | _ACEOF | |
12341 | cat confdefs.h >>conftest.$ac_ext | |
12342 | cat >>conftest.$ac_ext <<_ACEOF | |
12343 | /* end confdefs.h. */ | |
12344 | $ac_includes_default | |
12345 | int | |
12346 | main () | |
12347 | { | |
12348 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
12349 | test_array [0] = 0 | |
12350 | ||
12351 | ; | |
12352 | return 0; | |
12353 | } | |
12354 | _ACEOF | |
12355 | rm -f conftest.$ac_objext | |
12356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12357 | (eval $ac_compile) 2>conftest.er1 | |
12358 | ac_status=$? | |
12359 | grep -v '^ *+' conftest.er1 >conftest.err | |
12360 | rm -f conftest.er1 | |
12361 | cat conftest.err >&5 | |
12362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12363 | (exit $ac_status); } && | |
12364 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12366 | (eval $ac_try) 2>&5 | |
12367 | ac_status=$? | |
12368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12369 | (exit $ac_status); }; } && | |
12370 | { ac_try='test -s conftest.$ac_objext' | |
12371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12372 | (eval $ac_try) 2>&5 | |
12373 | ac_status=$? | |
12374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12375 | (exit $ac_status); }; }; then | |
12376 | ac_lo=$ac_mid; break | |
12377 | else | |
12378 | echo "$as_me: failed program was:" >&5 | |
12379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12380 | ||
12381 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
12382 | if test $ac_mid -le $ac_hi; then | |
12383 | ac_lo= ac_hi= | |
12384 | break | |
12385 | fi | |
12386 | ac_mid=`expr 2 '*' $ac_mid` | |
12387 | fi | |
12388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12389 | done | |
07a0db15 | 12390 | else |
b0cacab0 TT |
12391 | echo "$as_me: failed program was:" >&5 |
12392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
93636bde | 12393 | |
b0cacab0 | 12394 | ac_lo= ac_hi= |
93636bde | 12395 | fi |
b0cacab0 TT |
12396 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12397 | fi | |
12398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12399 | # Binary search between lo and hi bounds. | |
12400 | while test "x$ac_lo" != "x$ac_hi"; do | |
12401 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
12402 | cat >conftest.$ac_ext <<_ACEOF | |
12403 | /* confdefs.h. */ | |
12404 | _ACEOF | |
12405 | cat confdefs.h >>conftest.$ac_ext | |
12406 | cat >>conftest.$ac_ext <<_ACEOF | |
12407 | /* end confdefs.h. */ | |
12408 | $ac_includes_default | |
12409 | int | |
12410 | main () | |
12411 | { | |
12412 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
12413 | test_array [0] = 0 | |
93636bde | 12414 | |
b0cacab0 TT |
12415 | ; |
12416 | return 0; | |
12417 | } | |
12418 | _ACEOF | |
12419 | rm -f conftest.$ac_objext | |
12420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12421 | (eval $ac_compile) 2>conftest.er1 | |
12422 | ac_status=$? | |
12423 | grep -v '^ *+' conftest.er1 >conftest.err | |
12424 | rm -f conftest.er1 | |
12425 | cat conftest.err >&5 | |
12426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12427 | (exit $ac_status); } && | |
12428 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12430 | (eval $ac_try) 2>&5 | |
12431 | ac_status=$? | |
12432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12433 | (exit $ac_status); }; } && | |
12434 | { ac_try='test -s conftest.$ac_objext' | |
12435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12436 | (eval $ac_try) 2>&5 | |
12437 | ac_status=$? | |
12438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12439 | (exit $ac_status); }; }; then | |
12440 | ac_hi=$ac_mid | |
12441 | else | |
12442 | echo "$as_me: failed program was:" >&5 | |
12443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12444 | ||
12445 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
12446 | fi | |
12447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12448 | done | |
12449 | case $ac_lo in | |
12450 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
12451 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
12452 | See \`config.log' for more details." >&5 | |
12453 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
12454 | See \`config.log' for more details." >&2;} | |
12455 | { (exit 1); exit 1; }; } ;; | |
12456 | esac | |
50e1e10f | 12457 | else |
07a0db15 | 12458 | if test "$cross_compiling" = yes; then |
b0cacab0 TT |
12459 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
12460 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
12461 | { (exit 1); exit 1; }; } | |
12462 | else | |
12463 | cat >conftest.$ac_ext <<_ACEOF | |
12464 | /* confdefs.h. */ | |
12465 | _ACEOF | |
12466 | cat confdefs.h >>conftest.$ac_ext | |
12467 | cat >>conftest.$ac_ext <<_ACEOF | |
12468 | /* end confdefs.h. */ | |
12469 | $ac_includes_default | |
12470 | long longval () { return (long) (sizeof (long)); } | |
12471 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
93636bde | 12472 | #include <stdio.h> |
b0cacab0 TT |
12473 | #include <stdlib.h> |
12474 | int | |
12475 | main () | |
07a0db15 | 12476 | { |
b0cacab0 TT |
12477 | |
12478 | FILE *f = fopen ("conftest.val", "w"); | |
12479 | if (! f) | |
12480 | exit (1); | |
12481 | if (((long) (sizeof (long))) < 0) | |
12482 | { | |
12483 | long i = longval (); | |
12484 | if (i != ((long) (sizeof (long)))) | |
12485 | exit (1); | |
12486 | fprintf (f, "%ld\n", i); | |
12487 | } | |
12488 | else | |
12489 | { | |
12490 | unsigned long i = ulongval (); | |
12491 | if (i != ((long) (sizeof (long)))) | |
12492 | exit (1); | |
12493 | fprintf (f, "%lu\n", i); | |
12494 | } | |
12495 | exit (ferror (f) || fclose (f) != 0); | |
12496 | ||
12497 | ; | |
12498 | return 0; | |
07a0db15 | 12499 | } |
b0cacab0 TT |
12500 | _ACEOF |
12501 | rm -f conftest$ac_exeext | |
12502 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12503 | (eval $ac_link) 2>&5 | |
12504 | ac_status=$? | |
12505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12506 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12508 | (eval $ac_try) 2>&5 | |
12509 | ac_status=$? | |
12510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12511 | (exit $ac_status); }; }; then | |
12512 | ac_cv_sizeof_long=`cat conftest.val` | |
12513 | else | |
12514 | echo "$as_me: program exited with status $ac_status" >&5 | |
12515 | echo "$as_me: failed program was:" >&5 | |
12516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12517 | ||
12518 | ( exit $ac_status ) | |
12519 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
12520 | See \`config.log' for more details." >&5 | |
12521 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
12522 | See \`config.log' for more details." >&2;} | |
12523 | { (exit 1); exit 1; }; } | |
12524 | fi | |
12525 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12526 | fi | |
12527 | fi | |
12528 | rm -f conftest.val | |
07a0db15 | 12529 | else |
b0cacab0 | 12530 | ac_cv_sizeof_long=0 |
93636bde | 12531 | fi |
50e1e10f | 12532 | fi |
b0cacab0 TT |
12533 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
12534 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
12535 | cat >>confdefs.h <<_ACEOF | |
12536 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12537 | _ACEOF | |
50e1e10f | 12538 | |
93636bde | 12539 | |
b0cacab0 TT |
12540 | echo "$as_me:$LINENO: checking for long long" >&5 |
12541 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
12542 | if test "${ac_cv_type_long_long+set}" = set; then | |
12543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 12544 | else |
b0cacab0 TT |
12545 | cat >conftest.$ac_ext <<_ACEOF |
12546 | /* confdefs.h. */ | |
12547 | _ACEOF | |
12548 | cat confdefs.h >>conftest.$ac_ext | |
12549 | cat >>conftest.$ac_ext <<_ACEOF | |
12550 | /* end confdefs.h. */ | |
12551 | $ac_includes_default | |
12552 | int | |
12553 | main () | |
12554 | { | |
12555 | if ((long long *) 0) | |
12556 | return 0; | |
12557 | if (sizeof (long long)) | |
12558 | return 0; | |
12559 | ; | |
12560 | return 0; | |
12561 | } | |
12562 | _ACEOF | |
12563 | rm -f conftest.$ac_objext | |
12564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12565 | (eval $ac_compile) 2>conftest.er1 | |
12566 | ac_status=$? | |
12567 | grep -v '^ *+' conftest.er1 >conftest.err | |
12568 | rm -f conftest.er1 | |
12569 | cat conftest.err >&5 | |
12570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12571 | (exit $ac_status); } && | |
12572 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12574 | (eval $ac_try) 2>&5 | |
12575 | ac_status=$? | |
12576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12577 | (exit $ac_status); }; } && | |
12578 | { ac_try='test -s conftest.$ac_objext' | |
12579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12580 | (eval $ac_try) 2>&5 | |
12581 | ac_status=$? | |
12582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12583 | (exit $ac_status); }; }; then | |
12584 | ac_cv_type_long_long=yes | |
12585 | else | |
12586 | echo "$as_me: failed program was:" >&5 | |
12587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12588 | ||
12589 | ac_cv_type_long_long=no | |
12590 | fi | |
12591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12592 | fi | |
12593 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
12594 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
12595 | ||
12596 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
12597 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
12598 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
12599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12600 | else | |
12601 | if test "$ac_cv_type_long_long" = yes; then | |
12602 | # The cast to unsigned long works around a bug in the HP C Compiler | |
12603 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12604 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12605 | # This bug is HP SR number 8606223364. | |
50e1e10f | 12606 | if test "$cross_compiling" = yes; then |
b0cacab0 TT |
12607 | # Depending upon the size, compute the lo and hi bounds. |
12608 | cat >conftest.$ac_ext <<_ACEOF | |
12609 | /* confdefs.h. */ | |
12610 | _ACEOF | |
12611 | cat confdefs.h >>conftest.$ac_ext | |
12612 | cat >>conftest.$ac_ext <<_ACEOF | |
12613 | /* end confdefs.h. */ | |
12614 | $ac_includes_default | |
12615 | int | |
12616 | main () | |
12617 | { | |
12618 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
12619 | test_array [0] = 0 | |
12620 | ||
12621 | ; | |
12622 | return 0; | |
12623 | } | |
12624 | _ACEOF | |
12625 | rm -f conftest.$ac_objext | |
12626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12627 | (eval $ac_compile) 2>conftest.er1 | |
12628 | ac_status=$? | |
12629 | grep -v '^ *+' conftest.er1 >conftest.err | |
12630 | rm -f conftest.er1 | |
12631 | cat conftest.err >&5 | |
12632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12633 | (exit $ac_status); } && | |
12634 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12636 | (eval $ac_try) 2>&5 | |
12637 | ac_status=$? | |
12638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12639 | (exit $ac_status); }; } && | |
12640 | { ac_try='test -s conftest.$ac_objext' | |
12641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12642 | (eval $ac_try) 2>&5 | |
12643 | ac_status=$? | |
12644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12645 | (exit $ac_status); }; }; then | |
12646 | ac_lo=0 ac_mid=0 | |
12647 | while :; do | |
12648 | cat >conftest.$ac_ext <<_ACEOF | |
12649 | /* confdefs.h. */ | |
12650 | _ACEOF | |
12651 | cat confdefs.h >>conftest.$ac_ext | |
12652 | cat >>conftest.$ac_ext <<_ACEOF | |
12653 | /* end confdefs.h. */ | |
12654 | $ac_includes_default | |
12655 | int | |
12656 | main () | |
12657 | { | |
12658 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
12659 | test_array [0] = 0 | |
12660 | ||
12661 | ; | |
12662 | return 0; | |
12663 | } | |
12664 | _ACEOF | |
12665 | rm -f conftest.$ac_objext | |
12666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12667 | (eval $ac_compile) 2>conftest.er1 | |
12668 | ac_status=$? | |
12669 | grep -v '^ *+' conftest.er1 >conftest.err | |
12670 | rm -f conftest.er1 | |
12671 | cat conftest.err >&5 | |
12672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12673 | (exit $ac_status); } && | |
12674 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12676 | (eval $ac_try) 2>&5 | |
12677 | ac_status=$? | |
12678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12679 | (exit $ac_status); }; } && | |
12680 | { ac_try='test -s conftest.$ac_objext' | |
12681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12682 | (eval $ac_try) 2>&5 | |
12683 | ac_status=$? | |
12684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12685 | (exit $ac_status); }; }; then | |
12686 | ac_hi=$ac_mid; break | |
12687 | else | |
12688 | echo "$as_me: failed program was:" >&5 | |
12689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12690 | ||
12691 | ac_lo=`expr $ac_mid + 1` | |
12692 | if test $ac_lo -le $ac_mid; then | |
12693 | ac_lo= ac_hi= | |
12694 | break | |
12695 | fi | |
12696 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
12697 | fi | |
12698 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12699 | done | |
50e1e10f | 12700 | else |
b0cacab0 TT |
12701 | echo "$as_me: failed program was:" >&5 |
12702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12703 | ||
12704 | cat >conftest.$ac_ext <<_ACEOF | |
12705 | /* confdefs.h. */ | |
12706 | _ACEOF | |
12707 | cat confdefs.h >>conftest.$ac_ext | |
12708 | cat >>conftest.$ac_ext <<_ACEOF | |
12709 | /* end confdefs.h. */ | |
12710 | $ac_includes_default | |
12711 | int | |
12712 | main () | |
50e1e10f | 12713 | { |
b0cacab0 TT |
12714 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
12715 | test_array [0] = 0 | |
12716 | ||
12717 | ; | |
12718 | return 0; | |
50e1e10f | 12719 | } |
b0cacab0 TT |
12720 | _ACEOF |
12721 | rm -f conftest.$ac_objext | |
12722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12723 | (eval $ac_compile) 2>conftest.er1 | |
12724 | ac_status=$? | |
12725 | grep -v '^ *+' conftest.er1 >conftest.err | |
12726 | rm -f conftest.er1 | |
12727 | cat conftest.err >&5 | |
12728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12729 | (exit $ac_status); } && | |
12730 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12732 | (eval $ac_try) 2>&5 | |
12733 | ac_status=$? | |
12734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12735 | (exit $ac_status); }; } && | |
12736 | { ac_try='test -s conftest.$ac_objext' | |
12737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12738 | (eval $ac_try) 2>&5 | |
12739 | ac_status=$? | |
12740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12741 | (exit $ac_status); }; }; then | |
12742 | ac_hi=-1 ac_mid=-1 | |
12743 | while :; do | |
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 | int | |
12752 | main () | |
12753 | { | |
12754 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
12755 | test_array [0] = 0 | |
12756 | ||
12757 | ; | |
12758 | return 0; | |
12759 | } | |
12760 | _ACEOF | |
12761 | rm -f conftest.$ac_objext | |
12762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12763 | (eval $ac_compile) 2>conftest.er1 | |
12764 | ac_status=$? | |
12765 | grep -v '^ *+' conftest.er1 >conftest.err | |
12766 | rm -f conftest.er1 | |
12767 | cat conftest.err >&5 | |
12768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12769 | (exit $ac_status); } && | |
12770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12772 | (eval $ac_try) 2>&5 | |
12773 | ac_status=$? | |
12774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12775 | (exit $ac_status); }; } && | |
12776 | { ac_try='test -s conftest.$ac_objext' | |
12777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12778 | (eval $ac_try) 2>&5 | |
12779 | ac_status=$? | |
12780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12781 | (exit $ac_status); }; }; then | |
12782 | ac_lo=$ac_mid; break | |
12783 | else | |
12784 | echo "$as_me: failed program was:" >&5 | |
12785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12786 | ||
12787 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
12788 | if test $ac_mid -le $ac_hi; then | |
12789 | ac_lo= ac_hi= | |
12790 | break | |
12791 | fi | |
12792 | ac_mid=`expr 2 '*' $ac_mid` | |
12793 | fi | |
12794 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12795 | done | |
07a0db15 | 12796 | else |
b0cacab0 TT |
12797 | echo "$as_me: failed program was:" >&5 |
12798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
93636bde | 12799 | |
b0cacab0 | 12800 | ac_lo= ac_hi= |
07a0db15 | 12801 | fi |
b0cacab0 TT |
12802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12803 | fi | |
12804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12805 | # Binary search between lo and hi bounds. | |
12806 | while test "x$ac_lo" != "x$ac_hi"; do | |
12807 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
12808 | cat >conftest.$ac_ext <<_ACEOF | |
12809 | /* confdefs.h. */ | |
12810 | _ACEOF | |
12811 | cat confdefs.h >>conftest.$ac_ext | |
12812 | cat >>conftest.$ac_ext <<_ACEOF | |
12813 | /* end confdefs.h. */ | |
12814 | $ac_includes_default | |
12815 | int | |
12816 | main () | |
12817 | { | |
12818 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
12819 | test_array [0] = 0 | |
93636bde | 12820 | |
b0cacab0 TT |
12821 | ; |
12822 | return 0; | |
12823 | } | |
12824 | _ACEOF | |
12825 | rm -f conftest.$ac_objext | |
12826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12827 | (eval $ac_compile) 2>conftest.er1 | |
12828 | ac_status=$? | |
12829 | grep -v '^ *+' conftest.er1 >conftest.err | |
12830 | rm -f conftest.er1 | |
12831 | cat conftest.err >&5 | |
12832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12833 | (exit $ac_status); } && | |
12834 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12836 | (eval $ac_try) 2>&5 | |
12837 | ac_status=$? | |
12838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12839 | (exit $ac_status); }; } && | |
12840 | { ac_try='test -s conftest.$ac_objext' | |
12841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12842 | (eval $ac_try) 2>&5 | |
12843 | ac_status=$? | |
12844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12845 | (exit $ac_status); }; }; then | |
12846 | ac_hi=$ac_mid | |
12847 | else | |
12848 | echo "$as_me: failed program was:" >&5 | |
12849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12850 | ||
12851 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
12852 | fi | |
12853 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12854 | done | |
12855 | case $ac_lo in | |
12856 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
12857 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
12858 | See \`config.log' for more details." >&5 | |
12859 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
12860 | See \`config.log' for more details." >&2;} | |
12861 | { (exit 1); exit 1; }; } ;; | |
12862 | esac | |
fc6d9d51 | 12863 | else |
07a0db15 | 12864 | if test "$cross_compiling" = yes; then |
b0cacab0 TT |
12865 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
12866 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
12867 | { (exit 1); exit 1; }; } | |
12868 | else | |
12869 | cat >conftest.$ac_ext <<_ACEOF | |
12870 | /* confdefs.h. */ | |
12871 | _ACEOF | |
12872 | cat confdefs.h >>conftest.$ac_ext | |
12873 | cat >>conftest.$ac_ext <<_ACEOF | |
12874 | /* end confdefs.h. */ | |
12875 | $ac_includes_default | |
12876 | long longval () { return (long) (sizeof (long long)); } | |
12877 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
93636bde | 12878 | #include <stdio.h> |
b0cacab0 TT |
12879 | #include <stdlib.h> |
12880 | int | |
12881 | main () | |
07a0db15 | 12882 | { |
b0cacab0 TT |
12883 | |
12884 | FILE *f = fopen ("conftest.val", "w"); | |
12885 | if (! f) | |
12886 | exit (1); | |
12887 | if (((long) (sizeof (long long))) < 0) | |
12888 | { | |
12889 | long i = longval (); | |
12890 | if (i != ((long) (sizeof (long long)))) | |
12891 | exit (1); | |
12892 | fprintf (f, "%ld\n", i); | |
12893 | } | |
12894 | else | |
12895 | { | |
12896 | unsigned long i = ulongval (); | |
12897 | if (i != ((long) (sizeof (long long)))) | |
12898 | exit (1); | |
12899 | fprintf (f, "%lu\n", i); | |
12900 | } | |
12901 | exit (ferror (f) || fclose (f) != 0); | |
12902 | ||
12903 | ; | |
12904 | return 0; | |
07a0db15 | 12905 | } |
b0cacab0 TT |
12906 | _ACEOF |
12907 | rm -f conftest$ac_exeext | |
12908 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12909 | (eval $ac_link) 2>&5 | |
12910 | ac_status=$? | |
12911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12912 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12914 | (eval $ac_try) 2>&5 | |
12915 | ac_status=$? | |
12916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12917 | (exit $ac_status); }; }; then | |
12918 | ac_cv_sizeof_long_long=`cat conftest.val` | |
12919 | else | |
12920 | echo "$as_me: program exited with status $ac_status" >&5 | |
12921 | echo "$as_me: failed program was:" >&5 | |
12922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12923 | ||
12924 | ( exit $ac_status ) | |
12925 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
12926 | See \`config.log' for more details." >&5 | |
12927 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
12928 | See \`config.log' for more details." >&2;} | |
12929 | { (exit 1); exit 1; }; } | |
12930 | fi | |
12931 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12932 | fi | |
12933 | fi | |
12934 | rm -f conftest.val | |
07a0db15 TT |
12935 | else |
12936 | ac_cv_sizeof_long_long=0 | |
21c84b71 | 12937 | fi |
fc6d9d51 | 12938 | fi |
b0cacab0 TT |
12939 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
12940 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
12941 | cat >>confdefs.h <<_ACEOF | |
fc6d9d51 | 12942 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
b0cacab0 | 12943 | _ACEOF |
fc6d9d51 | 12944 | |
93636bde | 12945 | |
50e1e10f TT |
12946 | SIZEOF_SHORT=$ac_cv_sizeof_short |
12947 | SIZEOF_INT=$ac_cv_sizeof_int | |
12948 | SIZEOF_LONG=$ac_cv_sizeof_long | |
fc6d9d51 TT |
12949 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
12950 | ||
93636bde TT |
12951 | |
12952 | ||
12953 | ||
b0cacab0 TT |
12954 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
12955 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
12956 | if test "${ac_cv_c_bigendian+set}" = set; then | |
12957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
877eb6d9 | 12958 | else |
b0cacab0 TT |
12959 | # See if sys/param.h defines the BYTE_ORDER macro. |
12960 | cat >conftest.$ac_ext <<_ACEOF | |
12961 | /* confdefs.h. */ | |
12962 | _ACEOF | |
12963 | cat confdefs.h >>conftest.$ac_ext | |
12964 | cat >>conftest.$ac_ext <<_ACEOF | |
12965 | /* end confdefs.h. */ | |
877eb6d9 TT |
12966 | #include <sys/types.h> |
12967 | #include <sys/param.h> | |
877eb6d9 | 12968 | |
b0cacab0 TT |
12969 | int |
12970 | main () | |
12971 | { | |
877eb6d9 TT |
12972 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
12973 | bogus endian macros | |
12974 | #endif | |
b0cacab0 TT |
12975 | |
12976 | ; | |
12977 | return 0; | |
12978 | } | |
12979 | _ACEOF | |
12980 | rm -f conftest.$ac_objext | |
12981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12982 | (eval $ac_compile) 2>conftest.er1 | |
12983 | ac_status=$? | |
12984 | grep -v '^ *+' conftest.er1 >conftest.err | |
12985 | rm -f conftest.er1 | |
12986 | cat conftest.err >&5 | |
12987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12988 | (exit $ac_status); } && | |
12989 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12991 | (eval $ac_try) 2>&5 | |
12992 | ac_status=$? | |
12993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12994 | (exit $ac_status); }; } && | |
12995 | { ac_try='test -s conftest.$ac_objext' | |
12996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12997 | (eval $ac_try) 2>&5 | |
12998 | ac_status=$? | |
12999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13000 | (exit $ac_status); }; }; then | |
877eb6d9 | 13001 | # It does; now see whether it defined to BIG_ENDIAN or not. |
b0cacab0 TT |
13002 | cat >conftest.$ac_ext <<_ACEOF |
13003 | /* confdefs.h. */ | |
13004 | _ACEOF | |
13005 | cat confdefs.h >>conftest.$ac_ext | |
13006 | cat >>conftest.$ac_ext <<_ACEOF | |
13007 | /* end confdefs.h. */ | |
877eb6d9 TT |
13008 | #include <sys/types.h> |
13009 | #include <sys/param.h> | |
877eb6d9 | 13010 | |
b0cacab0 TT |
13011 | int |
13012 | main () | |
13013 | { | |
877eb6d9 TT |
13014 | #if BYTE_ORDER != BIG_ENDIAN |
13015 | not big endian | |
13016 | #endif | |
b0cacab0 TT |
13017 | |
13018 | ; | |
13019 | return 0; | |
13020 | } | |
13021 | _ACEOF | |
13022 | rm -f conftest.$ac_objext | |
13023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
13032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13033 | (eval $ac_try) 2>&5 | |
13034 | ac_status=$? | |
13035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13036 | (exit $ac_status); }; } && | |
13037 | { ac_try='test -s conftest.$ac_objext' | |
13038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13039 | (eval $ac_try) 2>&5 | |
13040 | ac_status=$? | |
13041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13042 | (exit $ac_status); }; }; then | |
877eb6d9 TT |
13043 | ac_cv_c_bigendian=yes |
13044 | else | |
b0cacab0 TT |
13045 | echo "$as_me: failed program was:" >&5 |
13046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13047 | ||
13048 | ac_cv_c_bigendian=no | |
877eb6d9 | 13049 | fi |
b0cacab0 | 13050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
877eb6d9 | 13051 | else |
b0cacab0 TT |
13052 | echo "$as_me: failed program was:" >&5 |
13053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13054 | ||
13055 | # It does not; compile a test program. | |
877eb6d9 | 13056 | if test "$cross_compiling" = yes; then |
b0cacab0 TT |
13057 | # try to guess the endianness by grepping values into an object file |
13058 | ac_cv_c_bigendian=unknown | |
13059 | cat >conftest.$ac_ext <<_ACEOF | |
13060 | /* confdefs.h. */ | |
13061 | _ACEOF | |
13062 | cat confdefs.h >>conftest.$ac_ext | |
13063 | cat >>conftest.$ac_ext <<_ACEOF | |
13064 | /* end confdefs.h. */ | |
13065 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
13066 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
13067 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
13068 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
13069 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
13070 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
13071 | int | |
13072 | main () | |
13073 | { | |
13074 | _ascii (); _ebcdic (); | |
13075 | ; | |
13076 | return 0; | |
13077 | } | |
13078 | _ACEOF | |
13079 | rm -f conftest.$ac_objext | |
13080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13081 | (eval $ac_compile) 2>conftest.er1 | |
13082 | ac_status=$? | |
13083 | grep -v '^ *+' conftest.er1 >conftest.err | |
13084 | rm -f conftest.er1 | |
13085 | cat conftest.err >&5 | |
13086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13087 | (exit $ac_status); } && | |
13088 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
13089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13090 | (eval $ac_try) 2>&5 | |
13091 | ac_status=$? | |
13092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13093 | (exit $ac_status); }; } && | |
13094 | { ac_try='test -s conftest.$ac_objext' | |
13095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13096 | (eval $ac_try) 2>&5 | |
13097 | ac_status=$? | |
13098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13099 | (exit $ac_status); }; }; then | |
13100 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
13101 | ac_cv_c_bigendian=yes | |
13102 | fi | |
13103 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
13104 | if test "$ac_cv_c_bigendian" = unknown; then | |
13105 | ac_cv_c_bigendian=no | |
13106 | else | |
13107 | # finding both strings is unlikely to happen, but who knows? | |
13108 | ac_cv_c_bigendian=unknown | |
13109 | fi | |
13110 | fi | |
13111 | else | |
13112 | echo "$as_me: failed program was:" >&5 | |
13113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13114 | ||
13115 | fi | |
13116 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
877eb6d9 | 13117 | else |
b0cacab0 TT |
13118 | cat >conftest.$ac_ext <<_ACEOF |
13119 | /* confdefs.h. */ | |
13120 | _ACEOF | |
13121 | cat confdefs.h >>conftest.$ac_ext | |
13122 | cat >>conftest.$ac_ext <<_ACEOF | |
13123 | /* end confdefs.h. */ | |
13124 | int | |
13125 | main () | |
13126 | { | |
877eb6d9 TT |
13127 | /* Are we little or big endian? From Harbison&Steele. */ |
13128 | union | |
13129 | { | |
13130 | long l; | |
13131 | char c[sizeof (long)]; | |
13132 | } u; | |
13133 | u.l = 1; | |
13134 | exit (u.c[sizeof (long) - 1] == 1); | |
13135 | } | |
b0cacab0 TT |
13136 | _ACEOF |
13137 | rm -f conftest$ac_exeext | |
13138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13139 | (eval $ac_link) 2>&5 | |
13140 | ac_status=$? | |
13141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13142 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13144 | (eval $ac_try) 2>&5 | |
13145 | ac_status=$? | |
13146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13147 | (exit $ac_status); }; }; then | |
877eb6d9 TT |
13148 | ac_cv_c_bigendian=no |
13149 | else | |
b0cacab0 TT |
13150 | echo "$as_me: program exited with status $ac_status" >&5 |
13151 | echo "$as_me: failed program was:" >&5 | |
13152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13153 | ||
13154 | ( exit $ac_status ) | |
13155 | ac_cv_c_bigendian=yes | |
877eb6d9 | 13156 | fi |
b0cacab0 | 13157 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
877eb6d9 | 13158 | fi |
877eb6d9 | 13159 | fi |
b0cacab0 | 13160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
877eb6d9 | 13161 | fi |
b0cacab0 TT |
13162 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
13163 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
13164 | case $ac_cv_c_bigendian in | |
13165 | yes) | |
07a0db15 | 13166 | |
b0cacab0 | 13167 | cat >>confdefs.h <<\_ACEOF |
877eb6d9 | 13168 | #define WORDS_BIGENDIAN 1 |
b0cacab0 TT |
13169 | _ACEOF |
13170 | ;; | |
13171 | no) | |
13172 | ;; | |
13173 | *) | |
13174 | { { echo "$as_me:$LINENO: error: unknown endianness | |
13175 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
13176 | echo "$as_me: error: unknown endianness | |
13177 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
13178 | { (exit 1); exit 1; }; } ;; | |
13179 | esac | |
877eb6d9 | 13180 | |
877eb6d9 | 13181 | |
b0cacab0 | 13182 | for ac_header in inttypes.h |
0c193f82 | 13183 | do |
b0cacab0 TT |
13184 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13185 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13186 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13187 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13188 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13190 | fi | |
13191 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13192 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13193 | else | |
13194 | # Is the header compilable? | |
13195 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13196 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13197 | cat >conftest.$ac_ext <<_ACEOF | |
13198 | /* confdefs.h. */ | |
13199 | _ACEOF | |
13200 | cat confdefs.h >>conftest.$ac_ext | |
13201 | cat >>conftest.$ac_ext <<_ACEOF | |
13202 | /* end confdefs.h. */ | |
13203 | $ac_includes_default | |
13204 | #include <$ac_header> | |
13205 | _ACEOF | |
13206 | rm -f conftest.$ac_objext | |
13207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13208 | (eval $ac_compile) 2>conftest.er1 | |
13209 | ac_status=$? | |
13210 | grep -v '^ *+' conftest.er1 >conftest.err | |
13211 | rm -f conftest.er1 | |
13212 | cat conftest.err >&5 | |
13213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13214 | (exit $ac_status); } && | |
13215 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
13216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13217 | (eval $ac_try) 2>&5 | |
13218 | ac_status=$? | |
13219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13220 | (exit $ac_status); }; } && | |
13221 | { ac_try='test -s conftest.$ac_objext' | |
13222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13223 | (eval $ac_try) 2>&5 | |
13224 | ac_status=$? | |
13225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13226 | (exit $ac_status); }; }; then | |
13227 | ac_header_compiler=yes | |
13228 | else | |
13229 | echo "$as_me: failed program was:" >&5 | |
13230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13231 | ||
13232 | ac_header_compiler=no | |
13233 | fi | |
13234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13235 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13236 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13237 | ||
13238 | # Is the header present? | |
13239 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13240 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13241 | cat >conftest.$ac_ext <<_ACEOF | |
13242 | /* confdefs.h. */ | |
13243 | _ACEOF | |
13244 | cat confdefs.h >>conftest.$ac_ext | |
13245 | cat >>conftest.$ac_ext <<_ACEOF | |
13246 | /* end confdefs.h. */ | |
13247 | #include <$ac_header> | |
13248 | _ACEOF | |
13249 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13250 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13251 | ac_status=$? | |
13252 | grep -v '^ *+' conftest.er1 >conftest.err | |
13253 | rm -f conftest.er1 | |
13254 | cat conftest.err >&5 | |
13255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13256 | (exit $ac_status); } >/dev/null; then | |
13257 | if test -s conftest.err; then | |
13258 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13259 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
13260 | else | |
13261 | ac_cpp_err= | |
13262 | fi | |
13263 | else | |
13264 | ac_cpp_err=yes | |
0c193f82 | 13265 | fi |
b0cacab0 TT |
13266 | if test -z "$ac_cpp_err"; then |
13267 | ac_header_preproc=yes | |
13268 | else | |
13269 | echo "$as_me: failed program was:" >&5 | |
13270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13271 | ||
13272 | ac_header_preproc=no | |
0c193f82 | 13273 | fi |
b0cacab0 TT |
13274 | rm -f conftest.err conftest.$ac_ext |
13275 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13276 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13277 | ||
13278 | # So? What about this header? | |
13279 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13280 | yes:no: ) | |
13281 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13282 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13283 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13284 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13285 | ac_header_preproc=yes | |
13286 | ;; | |
13287 | no:yes:* ) | |
13288 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13289 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13290 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13291 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13292 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13293 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13294 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13295 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13296 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13297 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13298 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13299 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13300 | ( | |
13301 | cat <<\_ASBOX | |
13302 | ## ------------------------------------------ ## | |
13303 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13304 | ## ------------------------------------------ ## | |
13305 | _ASBOX | |
13306 | ) | | |
13307 | sed "s/^/$as_me: WARNING: /" >&2 | |
13308 | ;; | |
13309 | esac | |
13310 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13311 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13312 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0c193f82 | 13314 | else |
b0cacab0 TT |
13315 | eval "$as_ac_Header=\$ac_header_preproc" |
13316 | fi | |
13317 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13318 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13319 | ||
0c193f82 | 13320 | fi |
b0cacab0 TT |
13321 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13322 | cat >>confdefs.h <<_ACEOF | |
13323 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13324 | _ACEOF | |
13325 | ||
13326 | fi | |
13327 | ||
0c193f82 TT |
13328 | done |
13329 | ||
b0cacab0 TT |
13330 | echo "$as_me:$LINENO: checking for intptr_t" >&5 |
13331 | echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6 | |
13332 | if test "${ac_cv_type_intptr_t+set}" = set; then | |
13333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13334 | else | |
13335 | cat >conftest.$ac_ext <<_ACEOF | |
13336 | /* confdefs.h. */ | |
13337 | _ACEOF | |
13338 | cat confdefs.h >>conftest.$ac_ext | |
13339 | cat >>conftest.$ac_ext <<_ACEOF | |
13340 | /* end confdefs.h. */ | |
13341 | $ac_includes_default | |
13342 | int | |
13343 | main () | |
13344 | { | |
13345 | if ((intptr_t *) 0) | |
13346 | return 0; | |
13347 | if (sizeof (intptr_t)) | |
13348 | return 0; | |
13349 | ; | |
13350 | return 0; | |
13351 | } | |
13352 | _ACEOF | |
13353 | rm -f conftest.$ac_objext | |
13354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13355 | (eval $ac_compile) 2>conftest.er1 | |
13356 | ac_status=$? | |
13357 | grep -v '^ *+' conftest.er1 >conftest.err | |
13358 | rm -f conftest.er1 | |
13359 | cat conftest.err >&5 | |
13360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13361 | (exit $ac_status); } && | |
13362 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
13363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13364 | (eval $ac_try) 2>&5 | |
13365 | ac_status=$? | |
13366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13367 | (exit $ac_status); }; } && | |
13368 | { ac_try='test -s conftest.$ac_objext' | |
13369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13370 | (eval $ac_try) 2>&5 | |
13371 | ac_status=$? | |
13372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13373 | (exit $ac_status); }; }; then | |
0c193f82 TT |
13374 | ac_cv_type_intptr_t=yes |
13375 | else | |
b0cacab0 TT |
13376 | echo "$as_me: failed program was:" >&5 |
13377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0c193f82 | 13378 | |
b0cacab0 | 13379 | ac_cv_type_intptr_t=no |
0c193f82 | 13380 | fi |
b0cacab0 TT |
13381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13382 | fi | |
13383 | echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 | |
13384 | echo "${ECHO_T}$ac_cv_type_intptr_t" >&6 | |
13385 | if test $ac_cv_type_intptr_t = yes; then | |
13386 | : | |
13387 | else | |
13388 | ||
13389 | cat >>confdefs.h <<_ACEOF | |
0c193f82 | 13390 | #define intptr_t long |
b0cacab0 | 13391 | _ACEOF |
0c193f82 TT |
13392 | |
13393 | fi | |
13394 | ||
b0cacab0 TT |
13395 | echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5 |
13396 | echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6 | |
13397 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then | |
13398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 13399 | else |
b0cacab0 TT |
13400 | cat >conftest.$ac_ext <<_ACEOF |
13401 | /* confdefs.h. */ | |
13402 | _ACEOF | |
13403 | cat confdefs.h >>conftest.$ac_ext | |
13404 | cat >>conftest.$ac_ext <<_ACEOF | |
13405 | /* end confdefs.h. */ | |
50e1e10f | 13406 | #include <sys/stat.h> |
b0cacab0 TT |
13407 | int |
13408 | main () | |
13409 | { | |
50e1e10f | 13410 | struct stat stat; stat.st_flags = 0; |
b0cacab0 TT |
13411 | ; |
13412 | return 0; | |
13413 | } | |
13414 | _ACEOF | |
13415 | rm -f conftest.$ac_objext | |
13416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13417 | (eval $ac_compile) 2>conftest.er1 | |
13418 | ac_status=$? | |
13419 | grep -v '^ *+' conftest.er1 >conftest.err | |
13420 | rm -f conftest.er1 | |
13421 | cat conftest.err >&5 | |
13422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13423 | (exit $ac_status); } && | |
13424 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
13425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13426 | (eval $ac_try) 2>&5 | |
13427 | ac_status=$? | |
13428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13429 | (exit $ac_status); }; } && | |
13430 | { ac_try='test -s conftest.$ac_objext' | |
13431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13432 | (eval $ac_try) 2>&5 | |
13433 | ac_status=$? | |
13434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13435 | (exit $ac_status); }; }; then | |
50e1e10f TT |
13436 | e2fsprogs_cv_struct_st_flags=yes |
13437 | else | |
b0cacab0 TT |
13438 | echo "$as_me: failed program was:" >&5 |
13439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13440 | ||
13441 | e2fsprogs_cv_struct_st_flags=no | |
50e1e10f | 13442 | fi |
b0cacab0 | 13443 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
50e1e10f TT |
13444 | fi |
13445 | ||
b0cacab0 TT |
13446 | echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5 |
13447 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6 | |
50e1e10f | 13448 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
b0cacab0 TT |
13449 | echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5 |
13450 | echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6 | |
13451 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then | |
13452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13453 | else | |
13454 | cat >conftest.$ac_ext <<_ACEOF | |
13455 | /* confdefs.h. */ | |
13456 | _ACEOF | |
13457 | cat confdefs.h >>conftest.$ac_ext | |
13458 | cat >>conftest.$ac_ext <<_ACEOF | |
13459 | /* end confdefs.h. */ | |
c03bc4e8 | 13460 | #include <sys/stat.h> |
b0cacab0 TT |
13461 | int |
13462 | main () | |
13463 | { | |
c03bc4e8 | 13464 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
b0cacab0 TT |
13465 | ; |
13466 | return 0; | |
13467 | } | |
13468 | _ACEOF | |
13469 | rm -f conftest.$ac_objext | |
13470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13471 | (eval $ac_compile) 2>conftest.er1 | |
13472 | ac_status=$? | |
13473 | grep -v '^ *+' conftest.er1 >conftest.err | |
13474 | rm -f conftest.er1 | |
13475 | cat conftest.err >&5 | |
13476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13477 | (exit $ac_status); } && | |
13478 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
13479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13480 | (eval $ac_try) 2>&5 | |
13481 | ac_status=$? | |
13482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13483 | (exit $ac_status); }; } && | |
13484 | { ac_try='test -s conftest.$ac_objext' | |
13485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13486 | (eval $ac_try) 2>&5 | |
13487 | ac_status=$? | |
13488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13489 | (exit $ac_status); }; }; then | |
c03bc4e8 TT |
13490 | e2fsprogs_cv_struct_st_flags_immut=yes |
13491 | else | |
b0cacab0 TT |
13492 | echo "$as_me: failed program was:" >&5 |
13493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13494 | ||
13495 | e2fsprogs_cv_struct_st_flags_immut=no | |
c03bc4e8 | 13496 | fi |
b0cacab0 | 13497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c03bc4e8 TT |
13498 | fi |
13499 | ||
b0cacab0 TT |
13500 | echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
13501 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6 | |
c03bc4e8 | 13502 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
b0cacab0 | 13503 | cat >>confdefs.h <<\_ACEOF |
50e1e10f | 13504 | #define HAVE_STAT_FLAGS 1 |
b0cacab0 | 13505 | _ACEOF |
50e1e10f | 13506 | |
c03bc4e8 | 13507 | fi |
84ea6e70 | 13508 | fi |
b0cacab0 TT |
13509 | echo "$as_me:$LINENO: checking whether struct sockaddr contains sa_len" >&5 |
13510 | echo $ECHO_N "checking whether struct sockaddr contains sa_len... $ECHO_C" >&6 | |
13511 | if test "${e2fsprogs_cv_sockaddr_sa_len+set}" = set; then | |
13512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13513 | else | |
13514 | cat >conftest.$ac_ext <<_ACEOF | |
13515 | /* confdefs.h. */ | |
13516 | _ACEOF | |
13517 | cat confdefs.h >>conftest.$ac_ext | |
13518 | cat >>conftest.$ac_ext <<_ACEOF | |
13519 | /* end confdefs.h. */ | |
84ea6e70 TT |
13520 | #include <sys/types.h> |
13521 | #include <sys/socket.h> | |
13522 | ||
b0cacab0 TT |
13523 | int |
13524 | main () | |
13525 | { | |
84ea6e70 TT |
13526 | struct sockaddr sa; |
13527 | sa.sa_len; | |
b0cacab0 TT |
13528 | ; |
13529 | return 0; | |
13530 | } | |
13531 | _ACEOF | |
13532 | rm -f conftest.$ac_objext | |
13533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13534 | (eval $ac_compile) 2>conftest.er1 | |
13535 | ac_status=$? | |
13536 | grep -v '^ *+' conftest.er1 >conftest.err | |
13537 | rm -f conftest.er1 | |
13538 | cat conftest.err >&5 | |
13539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13540 | (exit $ac_status); } && | |
13541 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
13542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13543 | (eval $ac_try) 2>&5 | |
13544 | ac_status=$? | |
13545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13546 | (exit $ac_status); }; } && | |
13547 | { ac_try='test -s conftest.$ac_objext' | |
13548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13549 | (eval $ac_try) 2>&5 | |
13550 | ac_status=$? | |
13551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13552 | (exit $ac_status); }; }; then | |
84ea6e70 TT |
13553 | e2fsprogs_cv_sockaddr_sa_len=yes |
13554 | else | |
b0cacab0 TT |
13555 | echo "$as_me: failed program was:" >&5 |
13556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13557 | ||
13558 | e2fsprogs_cv_sockaddr_sa_len=no | |
84ea6e70 | 13559 | fi |
b0cacab0 | 13560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
84ea6e70 TT |
13561 | fi |
13562 | ||
b0cacab0 TT |
13563 | echo "$as_me:$LINENO: result: $e2fsprogs_cv_sockaddr_sa_len" >&5 |
13564 | echo "${ECHO_T}$e2fsprogs_cv_sockaddr_sa_len" >&6 | |
84ea6e70 | 13565 | if test $e2fsprogs_cv_sockaddr_sa_len = yes; then |
b0cacab0 TT |
13566 | |
13567 | cat >>confdefs.h <<_ACEOF | |
84ea6e70 | 13568 | #define HAVE_SA_LEN 1 |
b0cacab0 | 13569 | _ACEOF |
84ea6e70 | 13570 | |
50e1e10f | 13571 | fi |
b0cacab0 TT |
13572 | |
13573 | ||
13574 | ||
13575 | ||
13576 | ||
13577 | ||
13578 | ||
13579 | ||
13580 | ||
13581 | ||
13582 | ||
13583 | ||
13584 | ||
13585 | ||
13586 | ||
13587 | ||
13588 | ||
13589 | ||
13590 | ||
1c29b097 | 13591 | for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc |
50e1e10f | 13592 | do |
b0cacab0 TT |
13593 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13594 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13595 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13596 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13598 | else | |
13599 | cat >conftest.$ac_ext <<_ACEOF | |
13600 | /* confdefs.h. */ | |
13601 | _ACEOF | |
13602 | cat confdefs.h >>conftest.$ac_ext | |
13603 | cat >>conftest.$ac_ext <<_ACEOF | |
13604 | /* end confdefs.h. */ | |
13605 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13606 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13607 | #define $ac_func innocuous_$ac_func | |
13608 | ||
50e1e10f | 13609 | /* System header to define __stub macros and hopefully few prototypes, |
b0cacab0 TT |
13610 | which can conflict with char $ac_func (); below. |
13611 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13612 | <limits.h> exists even on freestanding compilers. */ | |
13613 | ||
13614 | #ifdef __STDC__ | |
13615 | # include <limits.h> | |
13616 | #else | |
13617 | # include <assert.h> | |
13618 | #endif | |
93636bde | 13619 | |
b0cacab0 | 13620 | #undef $ac_func |
50e1e10f | 13621 | |
b0cacab0 TT |
13622 | /* Override any gcc2 internal prototype to avoid an error. */ |
13623 | #ifdef __cplusplus | |
13624 | extern "C" | |
13625 | { | |
13626 | #endif | |
13627 | /* We use char because int might match the return type of a gcc2 | |
13628 | builtin and then its argument prototype would still apply. */ | |
13629 | char $ac_func (); | |
50e1e10f TT |
13630 | /* The GNU C library defines this for functions which it implements |
13631 | to always fail with ENOSYS. Some functions are actually named | |
13632 | something starting with __ and the normal name is an alias. */ | |
13633 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13634 | choke me | |
13635 | #else | |
b0cacab0 TT |
13636 | char (*f) () = $ac_func; |
13637 | #endif | |
13638 | #ifdef __cplusplus | |
13639 | } | |
50e1e10f TT |
13640 | #endif |
13641 | ||
b0cacab0 TT |
13642 | int |
13643 | main () | |
13644 | { | |
13645 | return f != $ac_func; | |
13646 | ; | |
13647 | return 0; | |
13648 | } | |
13649 | _ACEOF | |
13650 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13652 | (eval $ac_link) 2>conftest.er1 | |
13653 | ac_status=$? | |
13654 | grep -v '^ *+' conftest.er1 >conftest.err | |
13655 | rm -f conftest.er1 | |
13656 | cat conftest.err >&5 | |
13657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13658 | (exit $ac_status); } && | |
13659 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
13660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13661 | (eval $ac_try) 2>&5 | |
13662 | ac_status=$? | |
13663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13664 | (exit $ac_status); }; } && | |
13665 | { ac_try='test -s conftest$ac_exeext' | |
13666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13667 | (eval $ac_try) 2>&5 | |
13668 | ac_status=$? | |
13669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13670 | (exit $ac_status); }; }; then | |
13671 | eval "$as_ac_var=yes" | |
13672 | else | |
13673 | echo "$as_me: failed program was:" >&5 | |
13674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13675 | ||
13676 | eval "$as_ac_var=no" | |
13677 | fi | |
13678 | rm -f conftest.err conftest.$ac_objext \ | |
13679 | conftest$ac_exeext conftest.$ac_ext | |
13680 | fi | |
13681 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13682 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13683 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13684 | cat >>confdefs.h <<_ACEOF | |
13685 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13686 | _ACEOF | |
21c84b71 | 13687 | |
50e1e10f TT |
13688 | fi |
13689 | done | |
13690 | ||
fc6d9d51 | 13691 | SOCKET_LIB='' |
b0cacab0 TT |
13692 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
13693 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
13694 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
13695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 13696 | else |
b0cacab0 | 13697 | ac_check_lib_save_LIBS=$LIBS |
fc6d9d51 | 13698 | LIBS="-lsocket $LIBS" |
b0cacab0 TT |
13699 | cat >conftest.$ac_ext <<_ACEOF |
13700 | /* confdefs.h. */ | |
13701 | _ACEOF | |
13702 | cat confdefs.h >>conftest.$ac_ext | |
13703 | cat >>conftest.$ac_ext <<_ACEOF | |
13704 | /* end confdefs.h. */ | |
93636bde | 13705 | |
b0cacab0 TT |
13706 | /* Override any gcc2 internal prototype to avoid an error. */ |
13707 | #ifdef __cplusplus | |
13708 | extern "C" | |
13709 | #endif | |
13710 | /* We use char because int might match the return type of a gcc2 | |
13711 | builtin and then its argument prototype would still apply. */ | |
13712 | char socket (); | |
13713 | int | |
13714 | main () | |
13715 | { | |
13716 | socket (); | |
13717 | ; | |
13718 | return 0; | |
13719 | } | |
13720 | _ACEOF | |
13721 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13723 | (eval $ac_link) 2>conftest.er1 | |
13724 | ac_status=$? | |
13725 | grep -v '^ *+' conftest.er1 >conftest.err | |
13726 | rm -f conftest.er1 | |
13727 | cat conftest.err >&5 | |
13728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13729 | (exit $ac_status); } && | |
13730 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
13731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13732 | (eval $ac_try) 2>&5 | |
13733 | ac_status=$? | |
13734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13735 | (exit $ac_status); }; } && | |
13736 | { ac_try='test -s conftest$ac_exeext' | |
13737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13738 | (eval $ac_try) 2>&5 | |
13739 | ac_status=$? | |
13740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13741 | (exit $ac_status); }; }; then | |
13742 | ac_cv_lib_socket_socket=yes | |
13743 | else | |
13744 | echo "$as_me: failed program was:" >&5 | |
13745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13746 | ||
13747 | ac_cv_lib_socket_socket=no | |
13748 | fi | |
13749 | rm -f conftest.err conftest.$ac_objext \ | |
13750 | conftest$ac_exeext conftest.$ac_ext | |
13751 | LIBS=$ac_check_lib_save_LIBS | |
13752 | fi | |
13753 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
13754 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
13755 | if test $ac_cv_lib_socket_socket = yes; then | |
fc6d9d51 | 13756 | SOCKET_LIB=-lsocket |
50e1e10f | 13757 | fi |
fc6d9d51 | 13758 | |
93636bde | 13759 | |
bbac86bb | 13760 | DLOPEN_LIB='' |
b0cacab0 TT |
13761 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
13762 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
13763 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
13764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bbac86bb | 13765 | else |
b0cacab0 | 13766 | ac_check_lib_save_LIBS=$LIBS |
bbac86bb | 13767 | LIBS="-ldl $LIBS" |
b0cacab0 TT |
13768 | cat >conftest.$ac_ext <<_ACEOF |
13769 | /* confdefs.h. */ | |
13770 | _ACEOF | |
13771 | cat confdefs.h >>conftest.$ac_ext | |
13772 | cat >>conftest.$ac_ext <<_ACEOF | |
13773 | /* end confdefs.h. */ | |
13774 | ||
bbac86bb | 13775 | /* Override any gcc2 internal prototype to avoid an error. */ |
b0cacab0 TT |
13776 | #ifdef __cplusplus |
13777 | extern "C" | |
13778 | #endif | |
bbac86bb | 13779 | /* We use char because int might match the return type of a gcc2 |
b0cacab0 TT |
13780 | builtin and then its argument prototype would still apply. */ |
13781 | char dlopen (); | |
13782 | int | |
13783 | main () | |
13784 | { | |
13785 | dlopen (); | |
13786 | ; | |
13787 | return 0; | |
13788 | } | |
13789 | _ACEOF | |
13790 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13792 | (eval $ac_link) 2>conftest.er1 | |
13793 | ac_status=$? | |
13794 | grep -v '^ *+' conftest.er1 >conftest.err | |
13795 | rm -f conftest.er1 | |
13796 | cat conftest.err >&5 | |
13797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13798 | (exit $ac_status); } && | |
13799 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
13800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13801 | (eval $ac_try) 2>&5 | |
13802 | ac_status=$? | |
13803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13804 | (exit $ac_status); }; } && | |
13805 | { ac_try='test -s conftest$ac_exeext' | |
13806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13807 | (eval $ac_try) 2>&5 | |
13808 | ac_status=$? | |
13809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13810 | (exit $ac_status); }; }; then | |
13811 | ac_cv_lib_dl_dlopen=yes | |
13812 | else | |
13813 | echo "$as_me: failed program was:" >&5 | |
13814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13815 | ||
13816 | ac_cv_lib_dl_dlopen=no | |
13817 | fi | |
13818 | rm -f conftest.err conftest.$ac_objext \ | |
13819 | conftest$ac_exeext conftest.$ac_ext | |
13820 | LIBS=$ac_check_lib_save_LIBS | |
13821 | fi | |
13822 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
13823 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
13824 | if test $ac_cv_lib_dl_dlopen = yes; then | |
bbac86bb | 13825 | DLOPEN_LIB=-ldl |
b0cacab0 | 13826 | cat >>confdefs.h <<\_ACEOF |
bbac86bb | 13827 | #define HAVE_DLOPEN 1 |
b0cacab0 | 13828 | _ACEOF |
bbac86bb | 13829 | |
bbac86bb TT |
13830 | fi |
13831 | ||
93636bde | 13832 | |
b0cacab0 TT |
13833 | echo "$as_me:$LINENO: checking for optreset" >&5 |
13834 | echo $ECHO_N "checking for optreset... $ECHO_C" >&6 | |
13835 | if test "${ac_cv_have_optreset+set}" = set; then | |
13836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 13837 | else |
b0cacab0 TT |
13838 | cat >conftest.$ac_ext <<_ACEOF |
13839 | /* confdefs.h. */ | |
13840 | _ACEOF | |
13841 | cat confdefs.h >>conftest.$ac_ext | |
13842 | cat >>conftest.$ac_ext <<_ACEOF | |
13843 | /* end confdefs.h. */ | |
fc6d9d51 | 13844 | #include <unistd.h> |
b0cacab0 TT |
13845 | |
13846 | _ACEOF | |
fc6d9d51 | 13847 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b0cacab0 | 13848 | $EGREP "optreset" >/dev/null 2>&1; then |
fc6d9d51 | 13849 | ac_cv_have_optreset=yes |
50e1e10f | 13850 | else |
fc6d9d51 | 13851 | ac_cv_have_optreset=no |
50e1e10f TT |
13852 | fi |
13853 | rm -f conftest* | |
13854 | ||
13855 | fi | |
b0cacab0 TT |
13856 | echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5 |
13857 | echo "${ECHO_T}$ac_cv_have_optreset" >&6 | |
fc6d9d51 | 13858 | if test $ac_cv_have_optreset = yes; then |
b0cacab0 | 13859 | cat >>confdefs.h <<\_ACEOF |
fc6d9d51 | 13860 | #define HAVE_OPTRESET 1 |
b0cacab0 | 13861 | _ACEOF |
50e1e10f TT |
13862 | |
13863 | fi | |
8f3f29d3 TT |
13864 | case "$host_os" in |
13865 | linux*) | |
b0cacab0 | 13866 | cat >>confdefs.h <<\_ACEOF |
50e1e10f | 13867 | #define HAVE_EXT2_IOCTLS 1 |
b0cacab0 | 13868 | _ACEOF |
50e1e10f | 13869 | |
8f3f29d3 TT |
13870 | ;; |
13871 | esac | |
e6f2bda3 | 13872 | LINUX_CMT="#" |
fff45483 TT |
13873 | CYGWIN_CMT="#" |
13874 | UNIX_CMT= | |
e6f2bda3 TT |
13875 | case "$host_os" in |
13876 | linux*) | |
13877 | LINUX_CMT= | |
fff45483 TT |
13878 | ;; |
13879 | cygwin) | |
13880 | CYGWIN_CMT= | |
13881 | UNIX_CMT="#" | |
e6f2bda3 TT |
13882 | ;; |
13883 | esac | |
13884 | ||
93636bde TT |
13885 | |
13886 | ||
50e1e10f | 13887 | case "$host_os" in |
93636bde | 13888 | linux* | gnu* | k*bsd*-gnu) |
a4b2d3ce TT |
13889 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
13890 | root_prefix=""; | |
13891 | echo "On $host_os systems, root_prefix defaults to ''" | |
fc6d9d51 TT |
13892 | fi |
13893 | ;; | |
13894 | esac | |
fc6d9d51 | 13895 | case "$host_os" in |
93636bde | 13896 | linux* | gnu* | k*bsd*-gnu) |
fc6d9d51 | 13897 | if test "$prefix" = NONE ; then |
a4b2d3ce TT |
13898 | prefix="/usr"; |
13899 | echo "On $host_os systems, prefix defaults to /usr" | |
bff61a7a TT |
13900 | if test "$mandir" = '${prefix}/man' ; then |
13901 | echo "...and mandir defaults to /usr/share/man" | |
13902 | mandir=/usr/share/man | |
13903 | fi | |
50e1e10f TT |
13904 | fi |
13905 | ;; | |
13906 | esac | |
a4b2d3ce | 13907 | if test "$root_prefix" = NONE ; then |
ffe1991f | 13908 | if test "$prefix" = NONE ; then |
a4b2d3ce TT |
13909 | root_prefix="$ac_default_prefix" |
13910 | else | |
13911 | root_prefix="$prefix" | |
13912 | fi | |
b5ffeade TT |
13913 | root_bindir=$bindir |
13914 | root_sbindir=$sbindir | |
13915 | root_libdir=$libdir | |
13916 | root_sysconfdir=$sysconfdir | |
13917 | else | |
13918 | root_bindir='${root_prefix}/bin' | |
13919 | root_sbindir='${root_prefix}/sbin' | |
13920 | root_libdir='${root_prefix}/lib' | |
13921 | root_sysconfdir='${root_prefix}/etc' | |
a4b2d3ce TT |
13922 | fi |
13923 | ||
93636bde TT |
13924 | |
13925 | ||
13926 | ||
13927 | ||
b0cacab0 TT |
13928 | echo "$as_me:$LINENO: checking whether linker accepts -static" >&5 |
13929 | echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6 | |
13930 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then | |
13931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ae851482 TT |
13932 | else |
13933 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" | |
b0cacab0 TT |
13934 | cat >conftest.$ac_ext <<_ACEOF |
13935 | /* confdefs.h. */ | |
13936 | _ACEOF | |
13937 | cat confdefs.h >>conftest.$ac_ext | |
13938 | cat >>conftest.$ac_ext <<_ACEOF | |
13939 | /* end confdefs.h. */ | |
ae851482 | 13940 | #include <stdio.h> |
b0cacab0 TT |
13941 | int |
13942 | main () | |
13943 | { | |
ae851482 | 13944 | fflush(stdout); |
b0cacab0 TT |
13945 | ; |
13946 | return 0; | |
13947 | } | |
13948 | _ACEOF | |
13949 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13950 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13951 | (eval $ac_link) 2>conftest.er1 | |
13952 | ac_status=$? | |
13953 | grep -v '^ *+' conftest.er1 >conftest.err | |
13954 | rm -f conftest.er1 | |
13955 | cat conftest.err >&5 | |
13956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13957 | (exit $ac_status); } && | |
13958 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
13959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13960 | (eval $ac_try) 2>&5 | |
13961 | ac_status=$? | |
13962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13963 | (exit $ac_status); }; } && | |
13964 | { ac_try='test -s conftest$ac_exeext' | |
13965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13966 | (eval $ac_try) 2>&5 | |
13967 | ac_status=$? | |
13968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13969 | (exit $ac_status); }; }; then | |
ae851482 TT |
13970 | ac_cv_e2fsprogs_use_static=yes |
13971 | else | |
b0cacab0 TT |
13972 | echo "$as_me: failed program was:" >&5 |
13973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13974 | ||
13975 | ac_cv_e2fsprogs_use_static=no | |
ae851482 | 13976 | fi |
b0cacab0 TT |
13977 | rm -f conftest.err conftest.$ac_objext \ |
13978 | conftest$ac_exeext conftest.$ac_ext | |
ae851482 TT |
13979 | LDFLAGS=$SAVE_LDFLAGS |
13980 | fi | |
50e1e10f | 13981 | |
defde784 TT |
13982 | case "$host_os" in |
13983 | solaris2.*) | |
b0cacab0 | 13984 | ac_cv_e2fsprogs_use_static=no |
defde784 TT |
13985 | ;; |
13986 | esac | |
b0cacab0 TT |
13987 | echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5 |
13988 | echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6 | |
74becf3c | 13989 | LDFLAG_STATIC= |
ae851482 | 13990 | if test $ac_cv_e2fsprogs_use_static = yes; then |
50e1e10f | 13991 | LDFLAG_STATIC=-static |
ae851482 | 13992 | fi |
50e1e10f | 13993 | |
07a0db15 TT |
13994 | case "$host_os" in |
13995 | darwin*) | |
13996 | echo "Using Apple Darwin / GNU libintl workaround" | |
b0cacab0 | 13997 | cat >>confdefs.h <<\_ACEOF |
07a0db15 | 13998 | #define _INTL_REDIRECT_MACROS 1 |
b0cacab0 | 13999 | _ACEOF |
07a0db15 TT |
14000 | |
14001 | ;; | |
14002 | esac | |
50e1e10f TT |
14003 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
14004 | ET_DIR=`cd ${srcdir}/lib/et; pwd` | |
14005 | ||
93636bde | 14006 | |
50e1e10f TT |
14007 | if test "$cross_compiling" = yes ; then |
14008 | DO_TEST_SUITE= | |
14009 | else | |
14010 | DO_TEST_SUITE=check | |
14011 | fi | |
14012 | ||
c6f35b8a TT |
14013 | INTL_FLAGS= |
14014 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then | |
14015 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' | |
14016 | fi | |
14017 | ||
50e1e10f TT |
14018 | test -d lib || mkdir lib |
14019 | test -d include || mkdir include | |
14020 | test -d include/linux || mkdir include/linux | |
defde784 | 14021 | test -d include/asm || mkdir include/asm |
bff0cc95 TT |
14022 | for i in MCONFIG Makefile e2fsprogs.spec \ |
14023 | util/Makefile util/subst.conf util/gen-tarball \ | |
14024 | lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \ | |
94ba8c75 TT |
14025 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
14026 | lib/blkid/Makefile lib/blkid/blkid_types.h \ | |
921f4ad5 | 14027 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
94ba8c75 TT |
14028 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
14029 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do | |
14030 | if test -d `dirname ${srcdir}/$i` ; then | |
14031 | outlist="$outlist $i" | |
14032 | fi | |
14033 | done | |
b0cacab0 TT |
14034 | ac_config_files="$ac_config_files $outlist" |
14035 | cat >confcache <<\_ACEOF | |
50e1e10f TT |
14036 | # This file is a shell script that caches the results of configure |
14037 | # tests run on this system so they can be shared between configure | |
b0cacab0 TT |
14038 | # scripts and configure runs, see configure's option --config-cache. |
14039 | # It is not useful on other systems. If it contains results you don't | |
14040 | # want to keep, you may remove or edit it. | |
50e1e10f | 14041 | # |
b0cacab0 TT |
14042 | # config.status only pays attention to the cache file if you give it |
14043 | # the --recheck option to rerun configure. | |
50e1e10f | 14044 | # |
b0cacab0 TT |
14045 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14046 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14047 | # following values. | |
14048 | ||
14049 | _ACEOF | |
14050 | ||
21c84b71 TT |
14051 | # The following way of writing the cache mishandles newlines in values, |
14052 | # but we know of no workaround that is simple, portable, and efficient. | |
14053 | # So, don't put newlines in cache variables' values. | |
50e1e10f TT |
14054 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14055 | # and sets the high bit in the cache file unless we assign to the vars. | |
b0cacab0 TT |
14056 | { |
14057 | (set) 2>&1 | | |
14058 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
14059 | *ac_space=\ *) | |
14060 | # `set' does not quote correctly, so add quotes (double-quote | |
14061 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
14062 | sed -n \ | |
14063 | "s/'/'\\\\''/g; | |
14064 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
14065 | ;; | |
14066 | *) | |
14067 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
14068 | sed -n \ | |
14069 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
14070 | ;; | |
14071 | esac; | |
14072 | } | | |
14073 | sed ' | |
14074 | t clear | |
14075 | : clear | |
14076 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
14077 | t end | |
14078 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
14079 | : end' >>confcache | |
14080 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
50e1e10f | 14081 | if test -w $cache_file; then |
b0cacab0 TT |
14082 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
14083 | cat confcache >$cache_file | |
50e1e10f TT |
14084 | else |
14085 | echo "not updating unwritable cache $cache_file" | |
14086 | fi | |
14087 | fi | |
14088 | rm -f confcache | |
14089 | ||
50e1e10f TT |
14090 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14091 | # Let make expand exec_prefix. | |
14092 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14093 | ||
b0cacab0 TT |
14094 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
14095 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
14096 | # trailing colons and then remove the whole line if VPATH becomes empty | |
14097 | # (actually we leave an empty line to preserve line numbers). | |
50e1e10f | 14098 | if test "x$srcdir" = x.; then |
b0cacab0 TT |
14099 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
14100 | s/:*\$(srcdir):*/:/; | |
14101 | s/:*\${srcdir}:*/:/; | |
14102 | s/:*@srcdir@:*/:/; | |
14103 | s/^\([^=]*=[ ]*\):*/\1/; | |
14104 | s/:*$//; | |
14105 | s/^[^=]*=[ ]*$//; | |
14106 | }' | |
50e1e10f TT |
14107 | fi |
14108 | ||
50e1e10f TT |
14109 | # Transform confdefs.h into DEFS. |
14110 | # Protect against shell expansion while executing Makefile rules. | |
14111 | # Protect against Makefile macro expansion. | |
b0cacab0 TT |
14112 | # |
14113 | # If the first sed substitution is executed (which looks for macros that | |
14114 | # take arguments), then we branch to the quote section. Otherwise, | |
14115 | # look for a macro that doesn't take arguments. | |
14116 | cat >confdef2opt.sed <<\_ACEOF | |
14117 | t clear | |
14118 | : clear | |
14119 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g | |
14120 | t quote | |
14121 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g | |
14122 | t quote | |
14123 | d | |
14124 | : quote | |
14125 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g | |
14126 | s,\[,\\&,g | |
14127 | s,\],\\&,g | |
14128 | s,\$,$$,g | |
14129 | p | |
14130 | _ACEOF | |
14131 | # We use echo to avoid assuming a particular line-breaking character. | |
14132 | # The extra dot is to prevent the shell from consuming trailing | |
14133 | # line-breaks from the sub-command output. A line-break within | |
14134 | # single-quotes doesn't work because, if this script is created in a | |
14135 | # platform that uses two characters for line-breaks (e.g., DOS), tr | |
14136 | # would break. | |
14137 | ac_LF_and_DOT=`echo; echo .` | |
14138 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` | |
14139 | rm -f confdef2opt.sed | |
14140 | ||
14141 | ||
14142 | ac_libobjs= | |
14143 | ac_ltlibobjs= | |
14144 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14145 | # 1. Remove the extension, and $U if already installed. | |
14146 | ac_i=`echo "$ac_i" | | |
14147 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
14148 | # 2. Add them. | |
14149 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
14150 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
14151 | done | |
14152 | LIBOBJS=$ac_libobjs | |
50e1e10f | 14153 | |
b0cacab0 TT |
14154 | LTLIBOBJS=$ac_ltlibobjs |
14155 | ||
14156 | ||
14157 | ||
14158 | : ${CONFIG_STATUS=./config.status} | |
14159 | ac_clean_files_save=$ac_clean_files | |
14160 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
14161 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
14162 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14163 | cat >$CONFIG_STATUS <<_ACEOF | |
14164 | #! $SHELL | |
14165 | # Generated by $as_me. | |
93636bde | 14166 | # Run this file to recreate the current configuration. |
93636bde | 14167 | # Compiler output produced by configure, useful for debugging |
b0cacab0 | 14168 | # configure, is in config.log if it exists. |
07a0db15 | 14169 | |
b0cacab0 TT |
14170 | debug=false |
14171 | ac_cs_recheck=false | |
14172 | ac_cs_silent=false | |
14173 | SHELL=\${CONFIG_SHELL-$SHELL} | |
14174 | _ACEOF | |
14175 | ||
14176 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14177 | ## --------------------- ## | |
14178 | ## M4sh Initialization. ## | |
14179 | ## --------------------- ## | |
14180 | ||
14181 | # Be Bourne compatible | |
14182 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14183 | emulate sh | |
14184 | NULLCMD=: | |
14185 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
14186 | # is contrary to our usage. Disable this feature. | |
14187 | alias -g '${1+"$@"}'='"$@"' | |
14188 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
14189 | set -o posix | |
14190 | fi | |
14191 | DUALCASE=1; export DUALCASE # for MKS sh | |
14192 | ||
14193 | # Support unset when possible. | |
14194 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
14195 | as_unset=unset | |
14196 | else | |
14197 | as_unset=false | |
14198 | fi | |
14199 | ||
14200 | ||
14201 | # Work around bugs in pre-3.0 UWIN ksh. | |
14202 | $as_unset ENV MAIL MAILPATH | |
14203 | PS1='$ ' | |
14204 | PS2='> ' | |
14205 | PS4='+ ' | |
14206 | ||
14207 | # NLS nuisances. | |
14208 | for as_var in \ | |
14209 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
14210 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
14211 | LC_TELEPHONE LC_TIME | |
14212 | do | |
14213 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
14214 | eval $as_var=C; export $as_var | |
14215 | else | |
14216 | $as_unset $as_var | |
14217 | fi | |
14218 | done | |
14219 | ||
14220 | # Required to use basename. | |
14221 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
14222 | as_expr=expr | |
14223 | else | |
14224 | as_expr=false | |
14225 | fi | |
14226 | ||
14227 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
14228 | as_basename=basename | |
14229 | else | |
14230 | as_basename=false | |
14231 | fi | |
14232 | ||
14233 | ||
14234 | # Name of the executable. | |
14235 | as_me=`$as_basename "$0" || | |
14236 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
14237 | X"$0" : 'X\(//\)$' \| \ | |
14238 | X"$0" : 'X\(/\)$' \| \ | |
14239 | . : '\(.\)' 2>/dev/null || | |
14240 | echo X/"$0" | | |
14241 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
14242 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
14243 | /^X\/\(\/\).*/{ s//\1/; q; } | |
14244 | s/.*/./; q'` | |
14245 | ||
14246 | ||
14247 | # PATH needs CR, and LINENO needs CR and PATH. | |
14248 | # Avoid depending upon Character Ranges. | |
14249 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14250 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14251 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14252 | as_cr_digits='0123456789' | |
14253 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14254 | ||
14255 | # The user is always right. | |
14256 | if test "${PATH_SEPARATOR+set}" != set; then | |
14257 | echo "#! /bin/sh" >conf$$.sh | |
14258 | echo "exit 0" >>conf$$.sh | |
14259 | chmod +x conf$$.sh | |
14260 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
14261 | PATH_SEPARATOR=';' | |
14262 | else | |
14263 | PATH_SEPARATOR=: | |
14264 | fi | |
14265 | rm -f conf$$.sh | |
14266 | fi | |
14267 | ||
14268 | ||
14269 | as_lineno_1=$LINENO | |
14270 | as_lineno_2=$LINENO | |
14271 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
14272 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
14273 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
14274 | # Find who we are. Look in the path if we contain no path at all | |
14275 | # relative or not. | |
14276 | case $0 in | |
14277 | *[\\/]* ) as_myself=$0 ;; | |
14278 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14279 | for as_dir in $PATH | |
14280 | do | |
14281 | IFS=$as_save_IFS | |
14282 | test -z "$as_dir" && as_dir=. | |
14283 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14284 | done | |
14285 | ||
14286 | ;; | |
14287 | esac | |
14288 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14289 | # in which case we are not to be found in the path. | |
14290 | if test "x$as_myself" = x; then | |
14291 | as_myself=$0 | |
14292 | fi | |
14293 | if test ! -f "$as_myself"; then | |
14294 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
14295 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
14296 | { (exit 1); exit 1; }; } | |
14297 | fi | |
14298 | case $CONFIG_SHELL in | |
14299 | '') | |
14300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14301 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
14302 | do | |
14303 | IFS=$as_save_IFS | |
14304 | test -z "$as_dir" && as_dir=. | |
14305 | for as_base in sh bash ksh sh5; do | |
14306 | case $as_dir in | |
14307 | /*) | |
14308 | if ("$as_dir/$as_base" -c ' | |
14309 | as_lineno_1=$LINENO | |
14310 | as_lineno_2=$LINENO | |
14311 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
14312 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
14313 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
14314 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
14315 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
14316 | CONFIG_SHELL=$as_dir/$as_base | |
14317 | export CONFIG_SHELL | |
14318 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
14319 | fi;; | |
14320 | esac | |
14321 | done | |
14322 | done | |
14323 | ;; | |
14324 | esac | |
14325 | ||
14326 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
14327 | # uniformly replaced by the line number. The first 'sed' inserts a | |
14328 | # line-number line before each line; the second 'sed' does the real | |
14329 | # work. The second script uses 'N' to pair each line-number line | |
14330 | # with the numbered line, and appends trailing '-' during | |
14331 | # substitution so that $LINENO is not a special case at line end. | |
14332 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
14333 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
14334 | sed '=' <$as_myself | | |
14335 | sed ' | |
14336 | N | |
14337 | s,$,-, | |
14338 | : loop | |
14339 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
14340 | t loop | |
14341 | s,-$,, | |
14342 | s,^['$as_cr_digits']*\n,, | |
14343 | ' >$as_me.lineno && | |
14344 | chmod +x $as_me.lineno || | |
14345 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
14346 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
14347 | { (exit 1); exit 1; }; } | |
14348 | ||
14349 | # Don't try to exec as it changes $[0], causing all sort of problems | |
14350 | # (the dirname of $[0] is not the place where we might find the | |
14351 | # original and so on. Autoconf is especially sensible to this). | |
14352 | . ./$as_me.lineno | |
14353 | # Exit status is that of the last command. | |
14354 | exit | |
14355 | } | |
14356 | ||
14357 | ||
14358 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
14359 | *c*,-n*) ECHO_N= ECHO_C=' | |
14360 | ' ECHO_T=' ' ;; | |
14361 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
14362 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
14363 | esac | |
14364 | ||
14365 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
14366 | as_expr=expr | |
14367 | else | |
14368 | as_expr=false | |
14369 | fi | |
14370 | ||
14371 | rm -f conf$$ conf$$.exe conf$$.file | |
14372 | echo >conf$$.file | |
14373 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
14374 | # We could just check for DJGPP; but this test a) works b) is more generic | |
14375 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
14376 | if test -f conf$$.exe; then | |
14377 | # Don't use ln at all; we don't have any links | |
14378 | as_ln_s='cp -p' | |
14379 | else | |
14380 | as_ln_s='ln -s' | |
14381 | fi | |
14382 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14383 | as_ln_s=ln | |
14384 | else | |
14385 | as_ln_s='cp -p' | |
14386 | fi | |
14387 | rm -f conf$$ conf$$.exe conf$$.file | |
14388 | ||
14389 | if mkdir -p . 2>/dev/null; then | |
14390 | as_mkdir_p=: | |
14391 | else | |
14392 | test -d ./-p && rmdir ./-p | |
14393 | as_mkdir_p=false | |
14394 | fi | |
14395 | ||
14396 | as_executable_p="test -f" | |
14397 | ||
14398 | # Sed expression to map a string onto a valid CPP name. | |
14399 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14400 | ||
14401 | # Sed expression to map a string onto a valid variable name. | |
14402 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14403 | ||
14404 | ||
14405 | # IFS | |
14406 | # We need space, tab and new line, in precisely that order. | |
14407 | as_nl=' | |
14408 | ' | |
14409 | IFS=" $as_nl" | |
14410 | ||
14411 | # CDPATH. | |
14412 | $as_unset CDPATH | |
14413 | ||
14414 | exec 6>&1 | |
14415 | ||
14416 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
14417 | # report actual input values of CONFIG_FILES etc. instead of their | |
14418 | # values after options handling. Logging --version etc. is OK. | |
14419 | exec 5>>config.log | |
14420 | { | |
14421 | echo | |
14422 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14423 | ## Running $as_me. ## | |
14424 | _ASBOX | |
14425 | } >&5 | |
14426 | cat >&5 <<_CSEOF | |
14427 | ||
14428 | This file was extended by $as_me, which was | |
14429 | generated by GNU Autoconf 2.59. Invocation command line was | |
14430 | ||
14431 | CONFIG_FILES = $CONFIG_FILES | |
14432 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14433 | CONFIG_LINKS = $CONFIG_LINKS | |
14434 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14435 | $ $0 $@ | |
14436 | ||
14437 | _CSEOF | |
14438 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
14439 | echo >&5 | |
14440 | _ACEOF | |
14441 | ||
14442 | # Files that config.status was made for. | |
14443 | if test -n "$ac_config_files"; then | |
14444 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
14445 | fi | |
14446 | ||
14447 | if test -n "$ac_config_headers"; then | |
14448 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
14449 | fi | |
14450 | ||
14451 | if test -n "$ac_config_links"; then | |
14452 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
14453 | fi | |
14454 | ||
14455 | if test -n "$ac_config_commands"; then | |
14456 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
14457 | fi | |
14458 | ||
14459 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14460 | ||
14461 | ac_cs_usage="\ | |
14462 | \`$as_me' instantiates files from templates according to the | |
14463 | current configuration. | |
14464 | ||
14465 | Usage: $0 [OPTIONS] [FILE]... | |
14466 | ||
14467 | -h, --help print this help, then exit | |
14468 | -V, --version print version number, then exit | |
14469 | -q, --quiet do not print progress messages | |
14470 | -d, --debug don't remove temporary files | |
14471 | --recheck update $as_me by reconfiguring in the same conditions | |
14472 | --file=FILE[:TEMPLATE] | |
14473 | instantiate the configuration file FILE | |
14474 | ||
14475 | Configuration files: | |
14476 | $config_files | |
14477 | ||
14478 | Configuration commands: | |
14479 | $config_commands | |
14480 | ||
14481 | Report bugs to <bug-autoconf@gnu.org>." | |
14482 | _ACEOF | |
14483 | ||
14484 | cat >>$CONFIG_STATUS <<_ACEOF | |
14485 | ac_cs_version="\\ | |
14486 | config.status | |
14487 | configured by $0, generated by GNU Autoconf 2.59, | |
14488 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
14489 | ||
14490 | Copyright (C) 2003 Free Software Foundation, Inc. | |
14491 | This config.status script is free software; the Free Software Foundation | |
14492 | gives unlimited permission to copy, distribute and modify it." | |
14493 | srcdir=$srcdir | |
14494 | INSTALL="$INSTALL" | |
14495 | _ACEOF | |
14496 | ||
14497 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14498 | # If no file are specified by the user, then we need to provide default | |
14499 | # value. By we need to know if files were specified by the user. | |
14500 | ac_need_defaults=: | |
14501 | while test $# != 0 | |
07a0db15 | 14502 | do |
b0cacab0 TT |
14503 | case $1 in |
14504 | --*=*) | |
14505 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
14506 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
14507 | ac_shift=: | |
14508 | ;; | |
14509 | -*) | |
14510 | ac_option=$1 | |
14511 | ac_optarg=$2 | |
14512 | ac_shift=shift | |
14513 | ;; | |
14514 | *) # This is not an option, so the user has probably given explicit | |
14515 | # arguments. | |
14516 | ac_option=$1 | |
14517 | ac_need_defaults=false;; | |
14518 | esac | |
14519 | ||
14520 | case $ac_option in | |
14521 | # Handling of the options. | |
14522 | _ACEOF | |
14523 | cat >>$CONFIG_STATUS <<\_ACEOF | |
93636bde | 14524 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
b0cacab0 TT |
14525 | ac_cs_recheck=: ;; |
14526 | --version | --vers* | -V ) | |
14527 | echo "$ac_cs_version"; exit 0 ;; | |
14528 | --he | --h) | |
14529 | # Conflict between --help and --header | |
14530 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
14531 | Try \`$0 --help' for more information." >&5 | |
14532 | echo "$as_me: error: ambiguous option: $1 | |
14533 | Try \`$0 --help' for more information." >&2;} | |
14534 | { (exit 1); exit 1; }; };; | |
14535 | --help | --hel | -h ) | |
14536 | echo "$ac_cs_usage"; exit 0 ;; | |
14537 | --debug | --d* | -d ) | |
14538 | debug=: ;; | |
14539 | --file | --fil | --fi | --f ) | |
14540 | $ac_shift | |
14541 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
14542 | ac_need_defaults=false;; | |
14543 | --header | --heade | --head | --hea ) | |
14544 | $ac_shift | |
14545 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
14546 | ac_need_defaults=false;; | |
14547 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
14548 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14549 | ac_cs_silent=: ;; | |
14550 | ||
14551 | # This is an error. | |
14552 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
14553 | Try \`$0 --help' for more information." >&5 | |
14554 | echo "$as_me: error: unrecognized option: $1 | |
14555 | Try \`$0 --help' for more information." >&2;} | |
14556 | { (exit 1); exit 1; }; } ;; | |
14557 | ||
14558 | *) ac_config_targets="$ac_config_targets $1" ;; | |
14559 | ||
07a0db15 | 14560 | esac |
b0cacab0 | 14561 | shift |
07a0db15 TT |
14562 | done |
14563 | ||
b0cacab0 TT |
14564 | ac_configure_extra_args= |
14565 | ||
14566 | if $ac_cs_silent; then | |
14567 | exec 6>/dev/null | |
14568 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14569 | fi | |
14570 | ||
14571 | _ACEOF | |
14572 | cat >>$CONFIG_STATUS <<_ACEOF | |
14573 | if \$ac_cs_recheck; then | |
14574 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
14575 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
14576 | fi | |
07a0db15 | 14577 | |
b0cacab0 | 14578 | _ACEOF |
07a0db15 | 14579 | |
b0cacab0 TT |
14580 | cat >>$CONFIG_STATUS <<_ACEOF |
14581 | # | |
14582 | # INIT-COMMANDS section. | |
14583 | # | |
14584 | ||
14585 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute | |
14586 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it | |
14587 | # from automake. | |
14588 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
14589 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
14590 | LINGUAS="${LINGUAS-%UNSET%}" | |
14591 | ||
14592 | ||
14593 | _ACEOF | |
14594 | ||
14595 | ||
14596 | ||
14597 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14598 | for ac_config_target in $ac_config_targets | |
14599 | do | |
14600 | case "$ac_config_target" in | |
14601 | # Handling of arguments. | |
14602 | "$outlist" ) CONFIG_FILES="$CONFIG_FILES $outlist" ;; | |
14603 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
14604 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
14605 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
14606 | { (exit 1); exit 1; }; };; | |
14607 | esac | |
14608 | done | |
14609 | ||
14610 | # If the user did not use the arguments to specify the items to instantiate, | |
14611 | # then the envvar interface is used. Set only those that are not. | |
14612 | # We use the long form for the default assignment because of an extremely | |
14613 | # bizarre bug on SunOS 4.1.3. | |
14614 | if $ac_need_defaults; then | |
14615 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14616 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
14617 | fi | |
14618 | ||
14619 | # Have a temporary directory for convenience. Make it in the build tree | |
14620 | # simply because there is no reason to put it here, and in addition, | |
14621 | # creating and moving files from /tmp can sometimes cause problems. | |
14622 | # Create a temporary directory, and hook for its removal unless debugging. | |
14623 | $debug || | |
14624 | { | |
14625 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
14626 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
14627 | } | |
14628 | ||
14629 | # Create a (secure) tmp directory for tmp files. | |
14630 | ||
14631 | { | |
14632 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
14633 | test -n "$tmp" && test -d "$tmp" | |
14634 | } || | |
14635 | { | |
14636 | tmp=./confstat$$-$RANDOM | |
14637 | (umask 077 && mkdir $tmp) | |
14638 | } || | |
14639 | { | |
14640 | echo "$me: cannot create a temporary directory in ." >&2 | |
14641 | { (exit 1); exit 1; } | |
14642 | } | |
14643 | ||
14644 | _ACEOF | |
14645 | ||
14646 | cat >>$CONFIG_STATUS <<_ACEOF | |
14647 | ||
14648 | # | |
14649 | # CONFIG_FILES section. | |
14650 | # | |
14651 | ||
14652 | # No need to generate the scripts if there are no CONFIG_FILES. | |
14653 | # This happens for instance when ./config.status config.h | |
14654 | if test -n "\$CONFIG_FILES"; then | |
14655 | # Protect against being on the right side of a sed subst in config.status. | |
14656 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
14657 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
14658 | s,@SHELL@,$SHELL,;t t | |
14659 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
14660 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
14661 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
14662 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
14663 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
14664 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
14665 | s,@exec_prefix@,$exec_prefix,;t t | |
14666 | s,@prefix@,$prefix,;t t | |
14667 | s,@program_transform_name@,$program_transform_name,;t t | |
14668 | s,@bindir@,$bindir,;t t | |
14669 | s,@sbindir@,$sbindir,;t t | |
14670 | s,@libexecdir@,$libexecdir,;t t | |
14671 | s,@datadir@,$datadir,;t t | |
14672 | s,@sysconfdir@,$sysconfdir,;t t | |
14673 | s,@sharedstatedir@,$sharedstatedir,;t t | |
14674 | s,@localstatedir@,$localstatedir,;t t | |
14675 | s,@libdir@,$libdir,;t t | |
14676 | s,@includedir@,$includedir,;t t | |
14677 | s,@oldincludedir@,$oldincludedir,;t t | |
14678 | s,@infodir@,$infodir,;t t | |
14679 | s,@mandir@,$mandir,;t t | |
14680 | s,@build_alias@,$build_alias,;t t | |
14681 | s,@host_alias@,$host_alias,;t t | |
14682 | s,@target_alias@,$target_alias,;t t | |
14683 | s,@DEFS@,$DEFS,;t t | |
14684 | s,@ECHO_C@,$ECHO_C,;t t | |
14685 | s,@ECHO_N@,$ECHO_N,;t t | |
14686 | s,@ECHO_T@,$ECHO_T,;t t | |
14687 | s,@LIBS@,$LIBS,;t t | |
14688 | s,@E2FSPROGS_YEAR@,$E2FSPROGS_YEAR,;t t | |
14689 | s,@E2FSPROGS_MONTH@,$E2FSPROGS_MONTH,;t t | |
14690 | s,@E2FSPROGS_DAY@,$E2FSPROGS_DAY,;t t | |
14691 | s,@E2FSPROGS_VERSION@,$E2FSPROGS_VERSION,;t t | |
14692 | s,@build@,$build,;t t | |
14693 | s,@build_cpu@,$build_cpu,;t t | |
14694 | s,@build_vendor@,$build_vendor,;t t | |
14695 | s,@build_os@,$build_os,;t t | |
14696 | s,@host@,$host,;t t | |
14697 | s,@host_cpu@,$host_cpu,;t t | |
14698 | s,@host_vendor@,$host_vendor,;t t | |
14699 | s,@host_os@,$host_os,;t t | |
14700 | s,@CC@,$CC,;t t | |
14701 | s,@CFLAGS@,$CFLAGS,;t t | |
14702 | s,@LDFLAGS@,$LDFLAGS,;t t | |
14703 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
14704 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
14705 | s,@EXEEXT@,$EXEEXT,;t t | |
14706 | s,@OBJEXT@,$OBJEXT,;t t | |
14707 | s,@LD@,$LD,;t t | |
14708 | s,@CPP@,$CPP,;t t | |
14709 | s,@EGREP@,$EGREP,;t t | |
14710 | s,@LINUX_INCLUDE@,$LINUX_INCLUDE,;t t | |
14711 | s,@HTREE_CMT@,$HTREE_CMT,;t t | |
14712 | s,@HTREE_CLR_CMT@,$HTREE_CLR_CMT,;t t | |
14713 | s,@ELF_CMT@,$ELF_CMT,;t t | |
14714 | s,@BSDLIB_CMT@,$BSDLIB_CMT,;t t | |
14715 | s,@PROFILE_CMT@,$PROFILE_CMT,;t t | |
14716 | s,@CHECKER_CMT@,$CHECKER_CMT,;t t | |
14717 | s,@LIB_EXT@,$LIB_EXT,;t t | |
14718 | s,@STATIC_LIB_EXT@,$STATIC_LIB_EXT,;t t | |
14719 | s,@PROFILED_LIB_EXT@,$PROFILED_LIB_EXT,;t t | |
14720 | s,@SWAPFS_CMT@,$SWAPFS_CMT,;t t | |
14721 | s,@DEBUGFS_CMT@,$DEBUGFS_CMT,;t t | |
14722 | s,@IMAGER_CMT@,$IMAGER_CMT,;t t | |
14723 | s,@RESIZER_CMT@,$RESIZER_CMT,;t t | |
14724 | s,@E2FSCK_TYPE@,$E2FSCK_TYPE,;t t | |
14725 | s,@FSCK_PROG@,$FSCK_PROG,;t t | |
14726 | s,@FSCK_MAN@,$FSCK_MAN,;t t | |
14727 | s,@E2INITRD_PROG@,$E2INITRD_PROG,;t t | |
14728 | s,@E2INITRD_MAN@,$E2INITRD_MAN,;t t | |
14729 | s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t | |
14730 | s,@PACKAGE@,$PACKAGE,;t t | |
14731 | s,@VERSION@,$VERSION,;t t | |
14732 | s,@SET_MAKE@,$SET_MAKE,;t t | |
14733 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
14734 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
14735 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
14736 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
14737 | s,@USE_NLS@,$USE_NLS,;t t | |
14738 | s,@MSGFMT@,$MSGFMT,;t t | |
14739 | s,@GMSGFMT@,$GMSGFMT,;t t | |
14740 | s,@XGETTEXT@,$XGETTEXT,;t t | |
14741 | s,@MSGMERGE@,$MSGMERGE,;t t | |
14742 | s,@RANLIB@,$RANLIB,;t t | |
14743 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
14744 | s,@ALLOCA@,$ALLOCA,;t t | |
14745 | s,@GLIBC21@,$GLIBC21,;t t | |
14746 | s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t | |
14747 | s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t | |
14748 | s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t | |
14749 | s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t | |
14750 | s,@LIBICONV@,$LIBICONV,;t t | |
14751 | s,@LTLIBICONV@,$LTLIBICONV,;t t | |
14752 | s,@INTLBISON@,$INTLBISON,;t t | |
14753 | s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t | |
14754 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
14755 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
14756 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
14757 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
14758 | s,@GENCAT@,$GENCAT,;t t | |
14759 | s,@INTLOBJS@,$INTLOBJS,;t t | |
14760 | s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t | |
14761 | s,@INTLLIBS@,$INTLLIBS,;t t | |
14762 | s,@LIBINTL@,$LIBINTL,;t t | |
14763 | s,@LTLIBINTL@,$LTLIBINTL,;t t | |
14764 | s,@POSUB@,$POSUB,;t t | |
14765 | s,@BINARY_TYPE@,$BINARY_TYPE,;t t | |
14766 | s,@LN@,$LN,;t t | |
14767 | s,@LN_S@,$LN_S,;t t | |
14768 | s,@MV@,$MV,;t t | |
14769 | s,@CP@,$CP,;t t | |
14770 | s,@RM@,$RM,;t t | |
14771 | s,@CHMOD@,$CHMOD,;t t | |
14772 | s,@AWK@,$AWK,;t t | |
14773 | s,@SED@,$SED,;t t | |
14774 | s,@PERL@,$PERL,;t t | |
14775 | s,@LDCONFIG@,$LDCONFIG,;t t | |
14776 | s,@AR@,$AR,;t t | |
14777 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
14778 | s,@STRIP@,$STRIP,;t t | |
14779 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
14780 | s,@BUILD_CC@,$BUILD_CC,;t t | |
14781 | s,@SIZEOF_SHORT@,$SIZEOF_SHORT,;t t | |
14782 | s,@SIZEOF_INT@,$SIZEOF_INT,;t t | |
14783 | s,@SIZEOF_LONG@,$SIZEOF_LONG,;t t | |
14784 | s,@SIZEOF_LONG_LONG@,$SIZEOF_LONG_LONG,;t t | |
14785 | s,@SOCKET_LIB@,$SOCKET_LIB,;t t | |
14786 | s,@DLOPEN_LIB@,$DLOPEN_LIB,;t t | |
14787 | s,@LINUX_CMT@,$LINUX_CMT,;t t | |
14788 | s,@CYGWIN_CMT@,$CYGWIN_CMT,;t t | |
14789 | s,@UNIX_CMT@,$UNIX_CMT,;t t | |
14790 | s,@root_prefix@,$root_prefix,;t t | |
14791 | s,@root_bindir@,$root_bindir,;t t | |
14792 | s,@root_sbindir@,$root_sbindir,;t t | |
14793 | s,@root_libdir@,$root_libdir,;t t | |
14794 | s,@root_sysconfdir@,$root_sysconfdir,;t t | |
14795 | s,@LDFLAG_STATIC@,$LDFLAG_STATIC,;t t | |
14796 | s,@SS_DIR@,$SS_DIR,;t t | |
14797 | s,@ET_DIR@,$ET_DIR,;t t | |
14798 | s,@DO_TEST_SUITE@,$DO_TEST_SUITE,;t t | |
14799 | s,@INTL_FLAGS@,$INTL_FLAGS,;t t | |
14800 | s,@LIBOBJS@,$LIBOBJS,;t t | |
14801 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
50e1e10f | 14802 | /@MCONFIG@/r $MCONFIG |
b0cacab0 | 14803 | s,@MCONFIG@,,;t t |
50e1e10f | 14804 | /@MAKEFILE_ELF@/r $MAKEFILE_ELF |
b0cacab0 | 14805 | s,@MAKEFILE_ELF@,,;t t |
50e1e10f | 14806 | /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB |
b0cacab0 | 14807 | s,@MAKEFILE_BSDLIB@,,;t t |
cdf186e4 | 14808 | /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE |
b0cacab0 | 14809 | s,@MAKEFILE_PROFILE@,,;t t |
cdf186e4 | 14810 | /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER |
b0cacab0 | 14811 | s,@MAKEFILE_CHECKER@,,;t t |
cdf186e4 | 14812 | /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY |
b0cacab0 | 14813 | s,@MAKEFILE_LIBRARY@,,;t t |
93636bde | 14814 | CEOF |
b0cacab0 TT |
14815 | |
14816 | _ACEOF | |
14817 | ||
14818 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14819 | # Split the substitutions into bite-sized pieces for seds with | |
14820 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
14821 | ac_max_sed_lines=48 | |
14822 | ac_sed_frag=1 # Number of current file. | |
14823 | ac_beg=1 # First line for current file. | |
14824 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
14825 | ac_more_lines=: | |
14826 | ac_sed_cmds= | |
14827 | while $ac_more_lines; do | |
14828 | if test $ac_beg -gt 1; then | |
14829 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
14830 | else | |
14831 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
14832 | fi | |
14833 | if test ! -s $tmp/subs.frag; then | |
14834 | ac_more_lines=false | |
21c84b71 | 14835 | else |
b0cacab0 TT |
14836 | # The purpose of the label and of the branching condition is to |
14837 | # speed up the sed processing (if there are no `@' at all, there | |
14838 | # is no need to browse any of the substitutions). | |
14839 | # These are the two extra sed commands mentioned above. | |
14840 | (echo ':t | |
14841 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
14842 | if test -z "$ac_sed_cmds"; then | |
14843 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
14844 | else | |
14845 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
14846 | fi | |
14847 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
14848 | ac_beg=$ac_end | |
14849 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
21c84b71 | 14850 | fi |
b0cacab0 TT |
14851 | done |
14852 | if test -z "$ac_sed_cmds"; then | |
14853 | ac_sed_cmds=cat | |
21c84b71 | 14854 | fi |
b0cacab0 TT |
14855 | fi # test -n "$CONFIG_FILES" |
14856 | ||
14857 | _ACEOF | |
14858 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14859 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
14860 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
14861 | case $ac_file in | |
14862 | - | *:- | *:-:* ) # input from stdin | |
14863 | cat >$tmp/stdin | |
14864 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
14865 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
14866 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
14867 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
14868 | * ) ac_file_in=$ac_file.in ;; | |
14869 | esac | |
14870 | ||
14871 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
14872 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
14873 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14874 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14875 | X"$ac_file" : 'X\(//\)$' \| \ | |
14876 | X"$ac_file" : 'X\(/\)' \| \ | |
14877 | . : '\(.\)' 2>/dev/null || | |
14878 | echo X"$ac_file" | | |
14879 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14880 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14881 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14882 | /^X\(\/\).*/{ s//\1/; q; } | |
14883 | s/.*/./; q'` | |
14884 | { if $as_mkdir_p; then | |
14885 | mkdir -p "$ac_dir" | |
14886 | else | |
14887 | as_dir="$ac_dir" | |
14888 | as_dirs= | |
14889 | while test ! -d "$as_dir"; do | |
14890 | as_dirs="$as_dir $as_dirs" | |
14891 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
14892 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14893 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14894 | X"$as_dir" : 'X\(//\)$' \| \ | |
14895 | X"$as_dir" : 'X\(/\)' \| \ | |
14896 | . : '\(.\)' 2>/dev/null || | |
14897 | echo X"$as_dir" | | |
14898 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14899 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14900 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14901 | /^X\(\/\).*/{ s//\1/; q; } | |
14902 | s/.*/./; q'` | |
14903 | done | |
14904 | test ! -n "$as_dirs" || mkdir $as_dirs | |
14905 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
14906 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
14907 | { (exit 1); exit 1; }; }; } | |
14908 | ||
14909 | ac_builddir=. | |
14910 | ||
14911 | if test "$ac_dir" != .; then | |
14912 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
14913 | # A "../" for each directory in $ac_dir_suffix. | |
14914 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
14915 | else | |
14916 | ac_dir_suffix= ac_top_builddir= | |
93636bde | 14917 | fi |
93636bde | 14918 | |
b0cacab0 TT |
14919 | case $srcdir in |
14920 | .) # No --srcdir option. We are building in place. | |
14921 | ac_srcdir=. | |
14922 | if test -z "$ac_top_builddir"; then | |
14923 | ac_top_srcdir=. | |
14924 | else | |
14925 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
14926 | fi ;; | |
14927 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
14928 | ac_srcdir=$srcdir$ac_dir_suffix; | |
14929 | ac_top_srcdir=$srcdir ;; | |
14930 | *) # Relative path. | |
14931 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
14932 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
14933 | esac | |
14934 | ||
14935 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
14936 | # the directories may not exist. | |
14937 | case `pwd` in | |
14938 | .) ac_abs_builddir="$ac_dir";; | |
14939 | *) | |
14940 | case "$ac_dir" in | |
14941 | .) ac_abs_builddir=`pwd`;; | |
14942 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
14943 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
14944 | esac;; | |
14945 | esac | |
14946 | case $ac_abs_builddir in | |
14947 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
14948 | *) | |
14949 | case ${ac_top_builddir}. in | |
14950 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
14951 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
14952 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
14953 | esac;; | |
14954 | esac | |
14955 | case $ac_abs_builddir in | |
14956 | .) ac_abs_srcdir=$ac_srcdir;; | |
14957 | *) | |
14958 | case $ac_srcdir in | |
14959 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
14960 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
14961 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
14962 | esac;; | |
14963 | esac | |
14964 | case $ac_abs_builddir in | |
14965 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
14966 | *) | |
14967 | case $ac_top_srcdir in | |
14968 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
14969 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
14970 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
14971 | esac;; | |
14972 | esac | |
14973 | ||
50e1e10f | 14974 | |
b0cacab0 TT |
14975 | case $INSTALL in |
14976 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
14977 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
50e1e10f TT |
14978 | esac |
14979 | ||
b0cacab0 TT |
14980 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
14981 | # use $as_me), people would be surprised to read: | |
14982 | # /* config.h. Generated by config.status. */ | |
14983 | if test x"$ac_file" = x-; then | |
14984 | configure_input= | |
14985 | else | |
14986 | configure_input="$ac_file. " | |
14987 | fi | |
14988 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
14989 | sed 's,.*/,,'` by configure." | |
14990 | ||
14991 | # First look for the input files in the build tree, otherwise in the | |
14992 | # src tree. | |
14993 | ac_file_inputs=`IFS=: | |
14994 | for f in $ac_file_in; do | |
14995 | case $f in | |
14996 | -) echo $tmp/stdin ;; | |
14997 | [\\/$]*) | |
14998 | # Absolute (can't be DOS-style, as IFS=:) | |
14999 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
15000 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
15001 | { (exit 1); exit 1; }; } | |
15002 | echo "$f";; | |
15003 | *) # Relative | |
15004 | if test -f "$f"; then | |
15005 | # Build tree | |
15006 | echo "$f" | |
15007 | elif test -f "$srcdir/$f"; then | |
15008 | # Source tree | |
15009 | echo "$srcdir/$f" | |
15010 | else | |
15011 | # /dev/null tree | |
15012 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
15013 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
15014 | { (exit 1); exit 1; }; } | |
15015 | fi;; | |
15016 | esac | |
15017 | done` || { (exit 1); exit 1; } | |
07a0db15 | 15018 | |
b0cacab0 TT |
15019 | if test x"$ac_file" != x-; then |
15020 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
15021 | echo "$as_me: creating $ac_file" >&6;} | |
15022 | rm -f "$ac_file" | |
15023 | fi | |
15024 | _ACEOF | |
15025 | cat >>$CONFIG_STATUS <<_ACEOF | |
15026 | sed "$ac_vpsub | |
15027 | $extrasub | |
15028 | _ACEOF | |
15029 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15030 | :t | |
15031 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
15032 | s,@configure_input@,$configure_input,;t t | |
15033 | s,@srcdir@,$ac_srcdir,;t t | |
15034 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
15035 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
15036 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
15037 | s,@builddir@,$ac_builddir,;t t | |
15038 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
15039 | s,@top_builddir@,$ac_top_builddir,;t t | |
15040 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
15041 | s,@INSTALL@,$ac_INSTALL,;t t | |
15042 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
15043 | rm -f $tmp/stdin | |
15044 | if test x"$ac_file" != x-; then | |
15045 | mv $tmp/out $ac_file | |
50e1e10f | 15046 | else |
b0cacab0 TT |
15047 | cat $tmp/out |
15048 | rm -f $tmp/out | |
50e1e10f TT |
15049 | fi |
15050 | ||
b0cacab0 TT |
15051 | done |
15052 | _ACEOF | |
15053 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21c84b71 | 15054 | |
b0cacab0 TT |
15055 | # |
15056 | # CONFIG_COMMANDS section. | |
15057 | # | |
15058 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
15059 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
15060 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
15061 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
15062 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15063 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
15064 | X"$ac_dest" : 'X\(//\)$' \| \ | |
15065 | X"$ac_dest" : 'X\(/\)' \| \ | |
15066 | . : '\(.\)' 2>/dev/null || | |
15067 | echo X"$ac_dest" | | |
15068 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15069 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15070 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15071 | /^X\(\/\).*/{ s//\1/; q; } | |
15072 | s/.*/./; q'` | |
15073 | { if $as_mkdir_p; then | |
15074 | mkdir -p "$ac_dir" | |
15075 | else | |
15076 | as_dir="$ac_dir" | |
15077 | as_dirs= | |
15078 | while test ! -d "$as_dir"; do | |
15079 | as_dirs="$as_dir $as_dirs" | |
15080 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
15081 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15082 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15083 | X"$as_dir" : 'X\(//\)$' \| \ | |
15084 | X"$as_dir" : 'X\(/\)' \| \ | |
15085 | . : '\(.\)' 2>/dev/null || | |
15086 | echo X"$as_dir" | | |
15087 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15088 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15089 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15090 | /^X\(\/\).*/{ s//\1/; q; } | |
15091 | s/.*/./; q'` | |
15092 | done | |
15093 | test ! -n "$as_dirs" || mkdir $as_dirs | |
15094 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
15095 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
15096 | { (exit 1); exit 1; }; }; } | |
21c84b71 | 15097 | |
b0cacab0 | 15098 | ac_builddir=. |
93636bde | 15099 | |
b0cacab0 TT |
15100 | if test "$ac_dir" != .; then |
15101 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
15102 | # A "../" for each directory in $ac_dir_suffix. | |
15103 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
15104 | else | |
15105 | ac_dir_suffix= ac_top_builddir= | |
15106 | fi | |
15107 | ||
15108 | case $srcdir in | |
15109 | .) # No --srcdir option. We are building in place. | |
15110 | ac_srcdir=. | |
15111 | if test -z "$ac_top_builddir"; then | |
15112 | ac_top_srcdir=. | |
15113 | else | |
15114 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
15115 | fi ;; | |
15116 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
15117 | ac_srcdir=$srcdir$ac_dir_suffix; | |
15118 | ac_top_srcdir=$srcdir ;; | |
15119 | *) # Relative path. | |
15120 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
15121 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
15122 | esac | |
07a0db15 | 15123 | |
b0cacab0 TT |
15124 | # Do not use `cd foo && pwd` to compute absolute paths, because |
15125 | # the directories may not exist. | |
15126 | case `pwd` in | |
15127 | .) ac_abs_builddir="$ac_dir";; | |
15128 | *) | |
15129 | case "$ac_dir" in | |
15130 | .) ac_abs_builddir=`pwd`;; | |
15131 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
15132 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
15133 | esac;; | |
15134 | esac | |
15135 | case $ac_abs_builddir in | |
15136 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
15137 | *) | |
15138 | case ${ac_top_builddir}. in | |
15139 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
15140 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
15141 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
15142 | esac;; | |
15143 | esac | |
15144 | case $ac_abs_builddir in | |
15145 | .) ac_abs_srcdir=$ac_srcdir;; | |
15146 | *) | |
15147 | case $ac_srcdir in | |
15148 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
15149 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
15150 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
15151 | esac;; | |
15152 | esac | |
15153 | case $ac_abs_builddir in | |
15154 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
15155 | *) | |
15156 | case $ac_top_srcdir in | |
15157 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
15158 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
15159 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
15160 | esac;; | |
15161 | esac | |
a04eba3f | 15162 | |
b0cacab0 TT |
15163 | |
15164 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
15165 | echo "$as_me: executing $ac_dest commands" >&6;} | |
15166 | case $ac_dest in | |
15167 | default-1 ) | |
a04eba3f TT |
15168 | for ac_file in $CONFIG_FILES; do |
15169 | # Support "outfile[:infile[:infile...]]" | |
15170 | case "$ac_file" in | |
15171 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
15172 | esac | |
15173 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
15174 | case "$ac_file" in */Makefile.in) | |
15175 | # Adjust a relative srcdir. | |
15176 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
15177 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
15178 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
15179 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
15180 | # In autoconf-2.50 it is called $srcdir. | |
15181 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
15182 | case "$ac_given_srcdir" in | |
15183 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
15184 | /*) top_srcdir="$ac_given_srcdir" ;; | |
15185 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
15186 | esac | |
15187 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
15188 | rm -f "$ac_dir/POTFILES" | |
15189 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
15190 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
b0cacab0 TT |
15191 | POMAKEFILEDEPS="POTFILES.in" |
15192 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend | |
a04eba3f TT |
15193 | # on $ac_dir but don't depend on user-specified configuration |
15194 | # parameters. | |
15195 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
15196 | # The LINGUAS file contains the set of available languages. | |
b0cacab0 | 15197 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
a04eba3f TT |
15198 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
15199 | fi | |
15200 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
15201 | # Hide the ALL_LINGUAS assigment from automake. | |
15202 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
b0cacab0 TT |
15203 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
15204 | else | |
15205 | # The set of available languages was given in configure.in. | |
15206 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
a04eba3f | 15207 | fi |
b0cacab0 TT |
15208 | # Compute POFILES |
15209 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | |
15210 | # Compute UPDATEPOFILES | |
15211 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) | |
15212 | # Compute DUMMYPOFILES | |
15213 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) | |
15214 | # Compute GMOFILES | |
15215 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) | |
a04eba3f TT |
15216 | case "$ac_given_srcdir" in |
15217 | .) srcdirpre= ;; | |
15218 | *) srcdirpre='$(srcdir)/' ;; | |
15219 | esac | |
15220 | POFILES= | |
a04eba3f TT |
15221 | UPDATEPOFILES= |
15222 | DUMMYPOFILES= | |
b0cacab0 | 15223 | GMOFILES= |
a04eba3f TT |
15224 | for lang in $ALL_LINGUAS; do |
15225 | POFILES="$POFILES $srcdirpre$lang.po" | |
a04eba3f TT |
15226 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
15227 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
b0cacab0 | 15228 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
a04eba3f TT |
15229 | done |
15230 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
15231 | # environment variable. | |
15232 | INST_LINGUAS= | |
15233 | if test -n "$ALL_LINGUAS"; then | |
15234 | for presentlang in $ALL_LINGUAS; do | |
15235 | useit=no | |
15236 | if test "%UNSET%" != "$LINGUAS"; then | |
15237 | desiredlanguages="$LINGUAS" | |
15238 | else | |
15239 | desiredlanguages="$ALL_LINGUAS" | |
15240 | fi | |
15241 | for desiredlang in $desiredlanguages; do | |
15242 | # Use the presentlang catalog if desiredlang is | |
15243 | # a. equal to presentlang, or | |
15244 | # b. a variant of presentlang (because in this case, | |
15245 | # presentlang can be used as a fallback for messages | |
15246 | # which are not translated in the desiredlang catalog). | |
15247 | case "$desiredlang" in | |
15248 | "$presentlang"*) useit=yes;; | |
15249 | esac | |
15250 | done | |
15251 | if test $useit = yes; then | |
15252 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
15253 | fi | |
15254 | done | |
15255 | fi | |
15256 | CATALOGS= | |
15257 | if test -n "$INST_LINGUAS"; then | |
15258 | for lang in $INST_LINGUAS; do | |
15259 | CATALOGS="$CATALOGS $lang.gmo" | |
15260 | done | |
15261 | fi | |
15262 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
b0cacab0 | 15263 | 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" |
a04eba3f TT |
15264 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
15265 | if test -f "$f"; then | |
15266 | case "$f" in | |
15267 | *.orig | *.bak | *~) ;; | |
15268 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
15269 | esac | |
15270 | fi | |
15271 | done | |
15272 | fi | |
15273 | ;; | |
a64c9c13 | 15274 | esac |
b0cacab0 TT |
15275 | done ;; |
15276 | esac | |
15277 | done | |
15278 | _ACEOF | |
07a0db15 | 15279 | |
b0cacab0 TT |
15280 | cat >>$CONFIG_STATUS <<\_ACEOF |
15281 | ||
15282 | { (exit 0); exit 0; } | |
15283 | _ACEOF | |
50e1e10f | 15284 | chmod +x $CONFIG_STATUS |
b0cacab0 TT |
15285 | ac_clean_files=$ac_clean_files_save |
15286 | ||
15287 | ||
15288 | # configure is writing to config.log, and then calls config.status. | |
15289 | # config.status does its own redirection, appending to config.log. | |
15290 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15291 | # by configure, so config.status won't be able to write to it; its | |
15292 | # output is simply discarded. So we exec the FD to /dev/null, | |
15293 | # effectively closing config.log, so it can be properly (re)opened and | |
15294 | # appended to by config.status. When coming back to configure, we | |
15295 | # need to make the FD available again. | |
15296 | if test "$no_create" != yes; then | |
15297 | ac_cs_success=: | |
15298 | ac_config_status_args= | |
15299 | test "$silent" = yes && | |
15300 | ac_config_status_args="$ac_config_status_args --quiet" | |
15301 | exec 5>/dev/null | |
15302 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15303 | exec 5>>config.log | |
15304 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15305 | # would make configure fail if this is the last instruction. | |
15306 | $ac_cs_success || { (exit 1); exit 1; } | |
15307 | fi | |
50e1e10f | 15308 |