]>
Commit | Line | Data |
---|---|---|
ccc6cda3 | 1 | #! /bin/sh |
3ffb039a | 2 | # From configure.in for Bash 3.1, version 3.175, from autoconf version AC_ACVERSION. |
f73dda09 | 3 | # Guess values for system-dependent variables and create Makefiles. |
a82a04b3 | 4 | # Generated by GNU Autoconf 2.59 for bash 3.1-devel. |
f73dda09 JA |
5 | # |
6 | # Report bugs to <bug-bash@gnu.org>. | |
7 | # | |
a82a04b3 | 8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
f73dda09 JA |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
a82a04b3 CR |
11 | ## --------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
ccc6cda3 | 14 | |
a82a04b3 CR |
15 | # Be Bourne compatible |
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
17 | emulate sh | |
18 | NULLCMD=: | |
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
20 | # is contrary to our usage. Disable this feature. | |
21 | alias -g '${1+"$@"}'='"$@"' | |
22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
23 | set -o posix | |
24 | fi | |
25 | DUALCASE=1; export DUALCASE # for MKS sh | |
26 | ||
27 | # Support unset when possible. | |
28 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
29 | as_unset=unset | |
30 | else | |
31 | as_unset=false | |
32 | fi | |
33 | ||
34 | ||
35 | # Work around bugs in pre-3.0 UWIN ksh. | |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
40 | ||
41 | # NLS nuisances. | |
42 | for as_var in \ | |
43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
45 | LC_TELEPHONE LC_TIME | |
46 | do | |
47 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
48 | eval $as_var=C; export $as_var | |
49 | else | |
50 | $as_unset $as_var | |
51 | fi | |
52 | done | |
53 | ||
54 | # Required to use basename. | |
55 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
56 | as_expr=expr | |
57 | else | |
58 | as_expr=false | |
59 | fi | |
60 | ||
61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
62 | as_basename=basename | |
63 | else | |
64 | as_basename=false | |
65 | fi | |
66 | ||
67 | ||
68 | # Name of the executable. | |
69 | as_me=`$as_basename "$0" || | |
70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
71 | X"$0" : 'X\(//\)$' \| \ | |
72 | X"$0" : 'X\(/\)$' \| \ | |
73 | . : '\(.\)' 2>/dev/null || | |
74 | echo X/"$0" | | |
75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
76 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
77 | /^X\/\(\/\).*/{ s//\1/; q; } | |
78 | s/.*/./; q'` | |
79 | ||
80 | ||
81 | # PATH needs CR, and LINENO needs CR and PATH. | |
f73dda09 JA |
82 | # Avoid depending upon Character Ranges. |
83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
86 | as_cr_digits='0123456789' | |
87 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
ccc6cda3 | 88 | |
a82a04b3 CR |
89 | # The user is always right. |
90 | if test "${PATH_SEPARATOR+set}" != set; then | |
91 | echo "#! /bin/sh" >conf$$.sh | |
92 | echo "exit 0" >>conf$$.sh | |
93 | chmod +x conf$$.sh | |
94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
95 | PATH_SEPARATOR=';' | |
96 | else | |
97 | PATH_SEPARATOR=: | |
98 | fi | |
99 | rm -f conf$$.sh | |
100 | fi | |
545f34cf | 101 | |
545f34cf | 102 | |
a82a04b3 CR |
103 | as_lineno_1=$LINENO |
104 | as_lineno_2=$LINENO | |
105 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
106 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
107 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
108 | # Find who we are. Look in the path if we contain no path at all | |
109 | # relative or not. | |
110 | case $0 in | |
111 | *[\\/]* ) as_myself=$0 ;; | |
112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
113 | for as_dir in $PATH | |
114 | do | |
115 | IFS=$as_save_IFS | |
116 | test -z "$as_dir" && as_dir=. | |
117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
118 | done | |
545f34cf | 119 | |
a82a04b3 CR |
120 | ;; |
121 | esac | |
122 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
123 | # in which case we are not to be found in the path. | |
124 | if test "x$as_myself" = x; then | |
125 | as_myself=$0 | |
126 | fi | |
127 | if test ! -f "$as_myself"; then | |
128 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
129 | { (exit 1); exit 1; }; } | |
130 | fi | |
131 | case $CONFIG_SHELL in | |
132 | '') | |
133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
135 | do | |
136 | IFS=$as_save_IFS | |
137 | test -z "$as_dir" && as_dir=. | |
138 | for as_base in sh bash ksh sh5; do | |
139 | case $as_dir in | |
140 | /*) | |
141 | if ("$as_dir/$as_base" -c ' | |
142 | as_lineno_1=$LINENO | |
143 | as_lineno_2=$LINENO | |
144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
145 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
146 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
149 | CONFIG_SHELL=$as_dir/$as_base | |
150 | export CONFIG_SHELL | |
151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
152 | fi;; | |
153 | esac | |
154 | done | |
155 | done | |
156 | ;; | |
157 | esac | |
158 | ||
159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
160 | # uniformly replaced by the line number. The first 'sed' inserts a | |
161 | # line-number line before each line; the second 'sed' does the real | |
162 | # work. The second script uses 'N' to pair each line-number line | |
163 | # with the numbered line, and appends trailing '-' during | |
164 | # substitution so that $LINENO is not a special case at line end. | |
165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
167 | sed '=' <$as_myself | | |
168 | sed ' | |
169 | N | |
170 | s,$,-, | |
171 | : loop | |
172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
173 | t loop | |
174 | s,-$,, | |
175 | s,^['$as_cr_digits']*\n,, | |
176 | ' >$as_me.lineno && | |
177 | chmod +x $as_me.lineno || | |
178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
179 | { (exit 1); exit 1; }; } | |
180 | ||
181 | # Don't try to exec as it changes $[0], causing all sort of problems | |
182 | # (the dirname of $[0] is not the place where we might find the | |
183 | # original and so on. Autoconf is especially sensible to this). | |
184 | . ./$as_me.lineno | |
185 | # Exit status is that of the last command. | |
186 | exit | |
187 | } | |
188 | ||
189 | ||
190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
191 | *c*,-n*) ECHO_N= ECHO_C=' | |
192 | ' ECHO_T=' ' ;; | |
193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
195 | esac | |
ccc6cda3 | 196 | |
f73dda09 JA |
197 | if expr a : '\(a\)' >/dev/null 2>&1; then |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
ccc6cda3 | 202 | |
f73dda09 JA |
203 | rm -f conf$$ conf$$.exe conf$$.file |
204 | echo >conf$$.file | |
205 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
206 | # We could just check for DJGPP; but this test a) works b) is more generic | |
207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
208 | if test -f conf$$.exe; then | |
209 | # Don't use ln at all; we don't have any links | |
210 | as_ln_s='cp -p' | |
211 | else | |
212 | as_ln_s='ln -s' | |
213 | fi | |
214 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
215 | as_ln_s=ln | |
216 | else | |
217 | as_ln_s='cp -p' | |
218 | fi | |
219 | rm -f conf$$ conf$$.exe conf$$.file | |
ccc6cda3 | 220 | |
a82a04b3 CR |
221 | if mkdir -p . 2>/dev/null; then |
222 | as_mkdir_p=: | |
e624d0f7 | 223 | else |
a82a04b3 CR |
224 | test -d ./-p && rmdir ./-p |
225 | as_mkdir_p=false | |
e624d0f7 | 226 | fi |
545f34cf | 227 | |
a82a04b3 CR |
228 | as_executable_p="test -f" |
229 | ||
230 | # Sed expression to map a string onto a valid CPP name. | |
231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
232 | ||
233 | # Sed expression to map a string onto a valid variable name. | |
234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
235 | ||
f73dda09 JA |
236 | |
237 | # IFS | |
238 | # We need space, tab and new line, in precisely that order. | |
239 | as_nl=' | |
240 | ' | |
241 | IFS=" $as_nl" | |
242 | ||
243 | # CDPATH. | |
a82a04b3 CR |
244 | $as_unset CDPATH |
245 | ||
f73dda09 JA |
246 | |
247 | # Name of the host. | |
248 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
249 | # so uname gets run too. | |
250 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
251 | ||
252 | exec 6>&1 | |
ccc6cda3 | 253 | |
726f6388 | 254 | # |
f73dda09 JA |
255 | # Initializations. |
256 | # | |
ccc6cda3 | 257 | ac_default_prefix=/usr/local |
a82a04b3 | 258 | ac_config_libobj_dir=. |
f73dda09 JA |
259 | cross_compiling=no |
260 | subdirs= | |
a82a04b3 CR |
261 | MFLAGS= |
262 | MAKEFLAGS= | |
f73dda09 JA |
263 | SHELL=${CONFIG_SHELL-/bin/sh} |
264 | ||
265 | # Maximum number of lines to put in a shell here document. | |
266 | # This variable seems obsolete. It should probably be removed, and | |
267 | # only ac_max_sed_lines should be used. | |
268 | : ${ac_max_here_lines=38} | |
269 | ||
a82a04b3 CR |
270 | # Identity of this package. |
271 | PACKAGE_NAME='bash' | |
272 | PACKAGE_TARNAME='bash' | |
273 | PACKAGE_VERSION='3.1-devel' | |
274 | PACKAGE_STRING='bash 3.1-devel' | |
275 | PACKAGE_BUGREPORT='bug-bash@gnu.org' | |
276 | ||
f73dda09 JA |
277 | ac_unique_file="shell.h" |
278 | # Factoring default headers for most tests. | |
279 | ac_includes_default="\ | |
280 | #include <stdio.h> | |
281 | #if HAVE_SYS_TYPES_H | |
282 | # include <sys/types.h> | |
283 | #endif | |
284 | #if HAVE_SYS_STAT_H | |
285 | # include <sys/stat.h> | |
286 | #endif | |
287 | #if STDC_HEADERS | |
288 | # include <stdlib.h> | |
289 | # include <stddef.h> | |
290 | #else | |
291 | # if HAVE_STDLIB_H | |
292 | # include <stdlib.h> | |
293 | # endif | |
294 | #endif | |
295 | #if HAVE_STRING_H | |
296 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
297 | # include <memory.h> | |
298 | # endif | |
299 | # include <string.h> | |
300 | #endif | |
301 | #if HAVE_STRINGS_H | |
302 | # include <strings.h> | |
303 | #endif | |
304 | #if HAVE_INTTYPES_H | |
305 | # include <inttypes.h> | |
306 | #else | |
307 | # if HAVE_STDINT_H | |
308 | # include <stdint.h> | |
309 | # endif | |
310 | #endif | |
311 | #if HAVE_UNISTD_H | |
312 | # include <unistd.h> | |
313 | #endif" | |
ccc6cda3 | 314 | |
9607141c | 315 | 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os EMACS lispdir DEBUGGER_START_FILE TESTSCRIPT PURIFY MALLOC_TARGET MALLOC_SRC MALLOC_LIB MALLOC_LIBRARY MALLOC_LDFLAGS MALLOC_DEP htmldir HELPDIR HELPDIRDEFINE HELPINSTALL HELPSTRINGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CROSS_COMPILE SIGNAMES_H CC_FOR_BUILD STATIC_LD CFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD RL_VERSION RL_MAJOR RL_MINOR READLINE_LIB READLINE_DEP RL_LIBDIR RL_INCLUDEDIR RL_INCLUDE HISTORY_LIB HISTORY_DEP HIST_LIBDIR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR RANLIB ac_ct_RANLIB YACC SET_MAKE MAKE_SHELL SIZE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS INTL_DEP INTL_INC LIBINTL_H SIGLIST_O TERMCAP_LIB TERMCAP_DEP JOBS_O SHOBJ_CC SHOBJ_CFLAGS SHOBJ_LD SHOBJ_LDFLAGS SHOBJ_XLDFLAGS SHOBJ_LIBS SHOBJ_STATUS PROFILE_FLAGS incdir BUILD_DIR ARFLAGS BASHVERS RELSTATUS DEBUG MALLOC_DEBUG LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS LTLIBOBJS' |
a82a04b3 CR |
316 | ac_subst_files='' |
317 | ||
ccc6cda3 | 318 | # Initialize some variables set by options. |
f73dda09 JA |
319 | ac_init_help= |
320 | ac_init_version=false | |
ccc6cda3 JA |
321 | # The variables have the same names as the options, with |
322 | # dashes changed to underlines. | |
f73dda09 | 323 | cache_file=/dev/null |
ccc6cda3 | 324 | exec_prefix=NONE |
ccc6cda3 | 325 | no_create= |
ccc6cda3 JA |
326 | no_recursion= |
327 | prefix=NONE | |
328 | program_prefix=NONE | |
329 | program_suffix=NONE | |
330 | program_transform_name=s,x,x, | |
331 | silent= | |
332 | site= | |
333 | srcdir= | |
ccc6cda3 JA |
334 | verbose= |
335 | x_includes=NONE | |
336 | x_libraries=NONE | |
f73dda09 JA |
337 | |
338 | # Installation directory options. | |
339 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
340 | # and all the variables that are supposed to be based on exec_prefix | |
341 | # by default will actually change. | |
342 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
ccc6cda3 JA |
343 | bindir='${exec_prefix}/bin' |
344 | sbindir='${exec_prefix}/sbin' | |
345 | libexecdir='${exec_prefix}/libexec' | |
346 | datadir='${prefix}/share' | |
347 | sysconfdir='${prefix}/etc' | |
348 | sharedstatedir='${prefix}/com' | |
349 | localstatedir='${prefix}/var' | |
350 | libdir='${exec_prefix}/lib' | |
351 | includedir='${prefix}/include' | |
352 | oldincludedir='/usr/include' | |
353 | infodir='${prefix}/info' | |
354 | mandir='${prefix}/man' | |
355 | ||
ccc6cda3 JA |
356 | ac_prev= |
357 | for ac_option | |
358 | do | |
ccc6cda3 JA |
359 | # If the previous option needs an argument, assign it. |
360 | if test -n "$ac_prev"; then | |
361 | eval "$ac_prev=\$ac_option" | |
362 | ac_prev= | |
363 | continue | |
364 | fi | |
365 | ||
f73dda09 | 366 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
ccc6cda3 JA |
367 | |
368 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
369 | ||
f73dda09 | 370 | case $ac_option in |
ccc6cda3 JA |
371 | |
372 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
373 | ac_prev=bindir ;; | |
374 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
f73dda09 | 375 | bindir=$ac_optarg ;; |
ccc6cda3 JA |
376 | |
377 | -build | --build | --buil | --bui | --bu) | |
f73dda09 | 378 | ac_prev=build_alias ;; |
ccc6cda3 | 379 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
f73dda09 | 380 | build_alias=$ac_optarg ;; |
ccc6cda3 JA |
381 | |
382 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
383 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
384 | ac_prev=cache_file ;; | |
385 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
386 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
f73dda09 JA |
387 | cache_file=$ac_optarg ;; |
388 | ||
389 | --config-cache | -C) | |
390 | cache_file=config.cache ;; | |
ccc6cda3 JA |
391 | |
392 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
393 | ac_prev=datadir ;; | |
394 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
395 | | --da=*) | |
f73dda09 | 396 | datadir=$ac_optarg ;; |
ccc6cda3 JA |
397 | |
398 | -disable-* | --disable-*) | |
f73dda09 | 399 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
ccc6cda3 | 400 | # Reject names that are not valid shell variable names. |
f73dda09 JA |
401 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
402 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
403 | { (exit 1); exit 1; }; } | |
404 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
405 | eval "enable_$ac_feature=no" ;; | |
ccc6cda3 JA |
406 | |
407 | -enable-* | --enable-*) | |
f73dda09 | 408 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
ccc6cda3 | 409 | # Reject names that are not valid shell variable names. |
f73dda09 JA |
410 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
411 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
412 | { (exit 1); exit 1; }; } | |
413 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
414 | case $ac_option in | |
415 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
ccc6cda3 JA |
416 | *) ac_optarg=yes ;; |
417 | esac | |
f73dda09 | 418 | eval "enable_$ac_feature='$ac_optarg'" ;; |
ccc6cda3 JA |
419 | |
420 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
421 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
422 | | --exec | --exe | --ex) | |
423 | ac_prev=exec_prefix ;; | |
424 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
425 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
426 | | --exec=* | --exe=* | --ex=*) | |
f73dda09 | 427 | exec_prefix=$ac_optarg ;; |
ccc6cda3 JA |
428 | |
429 | -gas | --gas | --ga | --g) | |
430 | # Obsolete; use --with-gas. | |
431 | with_gas=yes ;; | |
432 | ||
f73dda09 JA |
433 | -help | --help | --hel | --he | -h) |
434 | ac_init_help=long ;; | |
435 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
436 | ac_init_help=recursive ;; | |
437 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
438 | ac_init_help=short ;; | |
ccc6cda3 JA |
439 | |
440 | -host | --host | --hos | --ho) | |
f73dda09 | 441 | ac_prev=host_alias ;; |
ccc6cda3 | 442 | -host=* | --host=* | --hos=* | --ho=*) |
f73dda09 | 443 | host_alias=$ac_optarg ;; |
ccc6cda3 JA |
444 | |
445 | -includedir | --includedir | --includedi | --included | --include \ | |
446 | | --includ | --inclu | --incl | --inc) | |
447 | ac_prev=includedir ;; | |
448 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
449 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
f73dda09 | 450 | includedir=$ac_optarg ;; |
ccc6cda3 JA |
451 | |
452 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
453 | ac_prev=infodir ;; | |
454 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
f73dda09 | 455 | infodir=$ac_optarg ;; |
ccc6cda3 JA |
456 | |
457 | -libdir | --libdir | --libdi | --libd) | |
458 | ac_prev=libdir ;; | |
459 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
f73dda09 | 460 | libdir=$ac_optarg ;; |
ccc6cda3 JA |
461 | |
462 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
463 | | --libexe | --libex | --libe) | |
464 | ac_prev=libexecdir ;; | |
465 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
466 | | --libexe=* | --libex=* | --libe=*) | |
f73dda09 | 467 | libexecdir=$ac_optarg ;; |
ccc6cda3 JA |
468 | |
469 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
470 | | --localstate | --localstat | --localsta | --localst \ | |
471 | | --locals | --local | --loca | --loc | --lo) | |
472 | ac_prev=localstatedir ;; | |
473 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
474 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
475 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
f73dda09 | 476 | localstatedir=$ac_optarg ;; |
ccc6cda3 JA |
477 | |
478 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
479 | ac_prev=mandir ;; | |
480 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
f73dda09 | 481 | mandir=$ac_optarg ;; |
ccc6cda3 JA |
482 | |
483 | -nfp | --nfp | --nf) | |
484 | # Obsolete; use --without-fp. | |
485 | with_fp=no ;; | |
486 | ||
487 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
a82a04b3 | 488 | | --no-cr | --no-c | -n) |
ccc6cda3 JA |
489 | no_create=yes ;; |
490 | ||
491 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
492 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
493 | no_recursion=yes ;; | |
494 | ||
495 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
496 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
497 | | --oldin | --oldi | --old | --ol | --o) | |
498 | ac_prev=oldincludedir ;; | |
499 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
500 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
501 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
f73dda09 | 502 | oldincludedir=$ac_optarg ;; |
ccc6cda3 JA |
503 | |
504 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
505 | ac_prev=prefix ;; | |
506 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
f73dda09 | 507 | prefix=$ac_optarg ;; |
ccc6cda3 JA |
508 | |
509 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
510 | | --program-pre | --program-pr | --program-p) | |
511 | ac_prev=program_prefix ;; | |
512 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
513 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
f73dda09 | 514 | program_prefix=$ac_optarg ;; |
ccc6cda3 JA |
515 | |
516 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
517 | | --program-suf | --program-su | --program-s) | |
518 | ac_prev=program_suffix ;; | |
519 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
520 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
f73dda09 | 521 | program_suffix=$ac_optarg ;; |
ccc6cda3 JA |
522 | |
523 | -program-transform-name | --program-transform-name \ | |
524 | | --program-transform-nam | --program-transform-na \ | |
525 | | --program-transform-n | --program-transform- \ | |
526 | | --program-transform | --program-transfor \ | |
527 | | --program-transfo | --program-transf \ | |
528 | | --program-trans | --program-tran \ | |
529 | | --progr-tra | --program-tr | --program-t) | |
530 | ac_prev=program_transform_name ;; | |
531 | -program-transform-name=* | --program-transform-name=* \ | |
532 | | --program-transform-nam=* | --program-transform-na=* \ | |
533 | | --program-transform-n=* | --program-transform-=* \ | |
534 | | --program-transform=* | --program-transfor=* \ | |
535 | | --program-transfo=* | --program-transf=* \ | |
536 | | --program-trans=* | --program-tran=* \ | |
537 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
f73dda09 | 538 | program_transform_name=$ac_optarg ;; |
ccc6cda3 JA |
539 | |
540 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
541 | | -silent | --silent | --silen | --sile | --sil) | |
542 | silent=yes ;; | |
543 | ||
544 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
545 | ac_prev=sbindir ;; | |
546 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
547 | | --sbi=* | --sb=*) | |
f73dda09 | 548 | sbindir=$ac_optarg ;; |
ccc6cda3 JA |
549 | |
550 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
551 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
552 | | --sharedst | --shareds | --shared | --share | --shar \ | |
553 | | --sha | --sh) | |
554 | ac_prev=sharedstatedir ;; | |
555 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
556 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
557 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
558 | | --sha=* | --sh=*) | |
f73dda09 | 559 | sharedstatedir=$ac_optarg ;; |
ccc6cda3 JA |
560 | |
561 | -site | --site | --sit) | |
562 | ac_prev=site ;; | |
563 | -site=* | --site=* | --sit=*) | |
f73dda09 | 564 | site=$ac_optarg ;; |
ccc6cda3 JA |
565 | |
566 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
567 | ac_prev=srcdir ;; | |
568 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
f73dda09 | 569 | srcdir=$ac_optarg ;; |
ccc6cda3 JA |
570 | |
571 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
572 | | --syscon | --sysco | --sysc | --sys | --sy) | |
573 | ac_prev=sysconfdir ;; | |
574 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
575 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
f73dda09 | 576 | sysconfdir=$ac_optarg ;; |
ccc6cda3 JA |
577 | |
578 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
f73dda09 | 579 | ac_prev=target_alias ;; |
ccc6cda3 | 580 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
f73dda09 | 581 | target_alias=$ac_optarg ;; |
ccc6cda3 JA |
582 | |
583 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
584 | verbose=yes ;; | |
585 | ||
f73dda09 JA |
586 | -version | --version | --versio | --versi | --vers | -V) |
587 | ac_init_version=: ;; | |
ccc6cda3 JA |
588 | |
589 | -with-* | --with-*) | |
f73dda09 | 590 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
ccc6cda3 | 591 | # Reject names that are not valid shell variable names. |
f73dda09 JA |
592 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
593 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
594 | { (exit 1); exit 1; }; } | |
ccc6cda3 | 595 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
f73dda09 JA |
596 | case $ac_option in |
597 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
ccc6cda3 JA |
598 | *) ac_optarg=yes ;; |
599 | esac | |
f73dda09 | 600 | eval "with_$ac_package='$ac_optarg'" ;; |
ccc6cda3 JA |
601 | |
602 | -without-* | --without-*) | |
f73dda09 | 603 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
ccc6cda3 | 604 | # Reject names that are not valid shell variable names. |
f73dda09 JA |
605 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
606 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
607 | { (exit 1); exit 1; }; } | |
608 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
609 | eval "with_$ac_package=no" ;; | |
ccc6cda3 JA |
610 | |
611 | --x) | |
612 | # Obsolete; use --with-x. | |
613 | with_x=yes ;; | |
614 | ||
615 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
616 | | --x-incl | --x-inc | --x-in | --x-i) | |
617 | ac_prev=x_includes ;; | |
618 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
619 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
f73dda09 | 620 | x_includes=$ac_optarg ;; |
ccc6cda3 JA |
621 | |
622 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
623 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
624 | ac_prev=x_libraries ;; | |
625 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
626 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
f73dda09 | 627 | x_libraries=$ac_optarg ;; |
ccc6cda3 | 628 | |
f73dda09 JA |
629 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
630 | Try \`$0 --help' for more information." >&2 | |
631 | { (exit 1); exit 1; }; } | |
ccc6cda3 JA |
632 | ;; |
633 | ||
f73dda09 JA |
634 | *=*) |
635 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
636 | # Reject names that are not valid shell variable names. | |
637 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
638 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
639 | { (exit 1); exit 1; }; } | |
640 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
641 | eval "$ac_envvar='$ac_optarg'" | |
642 | export $ac_envvar ;; | |
643 | ||
ccc6cda3 | 644 | *) |
f73dda09 JA |
645 | # FIXME: should be removed in autoconf 3.0. |
646 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
647 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
648 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
649 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
ccc6cda3 JA |
650 | ;; |
651 | ||
652 | esac | |
653 | done | |
654 | ||
655 | if test -n "$ac_prev"; then | |
f73dda09 JA |
656 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
657 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
658 | { (exit 1); exit 1; }; } | |
ccc6cda3 | 659 | fi |
ccc6cda3 | 660 | |
f73dda09 JA |
661 | # Be sure to have absolute paths. |
662 | for ac_var in exec_prefix prefix | |
663 | do | |
664 | eval ac_val=$`echo $ac_var` | |
665 | case $ac_val in | |
666 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
a82a04b3 | 667 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
f73dda09 JA |
668 | { (exit 1); exit 1; }; };; |
669 | esac | |
670 | done | |
ccc6cda3 | 671 | |
f73dda09 JA |
672 | # Be sure to have absolute paths. |
673 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
a82a04b3 | 674 | localstatedir libdir includedir oldincludedir infodir mandir |
ccc6cda3 | 675 | do |
f73dda09 JA |
676 | eval ac_val=$`echo $ac_var` |
677 | case $ac_val in | |
678 | [\\/$]* | ?:[\\/]* ) ;; | |
a82a04b3 | 679 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
f73dda09 | 680 | { (exit 1); exit 1; }; };; |
ccc6cda3 JA |
681 | esac |
682 | done | |
683 | ||
f73dda09 JA |
684 | # There might be people who depend on the old broken behavior: `$host' |
685 | # used to hold the argument of --host etc. | |
a82a04b3 | 686 | # FIXME: To remove some day. |
f73dda09 JA |
687 | build=$build_alias |
688 | host=$host_alias | |
689 | target=$target_alias | |
690 | ||
a82a04b3 | 691 | # FIXME: To remove some day. |
f73dda09 JA |
692 | if test "x$host_alias" != x; then |
693 | if test "x$build_alias" = x; then | |
694 | cross_compiling=maybe | |
695 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
696 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
697 | elif test "x$build_alias" != "x$host_alias"; then | |
698 | cross_compiling=yes | |
699 | fi | |
700 | fi | |
ccc6cda3 | 701 | |
f73dda09 JA |
702 | ac_tool_prefix= |
703 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
ccc6cda3 | 704 | |
f73dda09 | 705 | test "$silent" = yes && exec 6>/dev/null |
ccc6cda3 | 706 | |
a82a04b3 | 707 | |
ccc6cda3 JA |
708 | # Find the source files, if location was not specified. |
709 | if test -z "$srcdir"; then | |
710 | ac_srcdir_defaulted=yes | |
711 | # Try the directory containing this script, then its parent. | |
a82a04b3 CR |
712 | ac_confdir=`(dirname "$0") 2>/dev/null || |
713 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
714 | X"$0" : 'X\(//\)[^/]' \| \ | |
715 | X"$0" : 'X\(//\)$' \| \ | |
716 | X"$0" : 'X\(/\)' \| \ | |
717 | . : '\(.\)' 2>/dev/null || | |
718 | echo X"$0" | | |
719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
720 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
721 | /^X\(\/\/\)$/{ s//\1/; q; } | |
722 | /^X\(\/\).*/{ s//\1/; q; } | |
723 | s/.*/./; q'` | |
ccc6cda3 JA |
724 | srcdir=$ac_confdir |
725 | if test ! -r $srcdir/$ac_unique_file; then | |
726 | srcdir=.. | |
727 | fi | |
728 | else | |
729 | ac_srcdir_defaulted=no | |
730 | fi | |
731 | if test ! -r $srcdir/$ac_unique_file; then | |
732 | if test "$ac_srcdir_defaulted" = yes; then | |
a82a04b3 | 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
f73dda09 | 734 | { (exit 1); exit 1; }; } |
ccc6cda3 | 735 | else |
a82a04b3 | 736 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
f73dda09 | 737 | { (exit 1); exit 1; }; } |
ccc6cda3 JA |
738 | fi |
739 | fi | |
a82a04b3 CR |
740 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
741 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
742 | { (exit 1); exit 1; }; } | |
f73dda09 JA |
743 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
744 | ac_env_build_alias_set=${build_alias+set} | |
745 | ac_env_build_alias_value=$build_alias | |
746 | ac_cv_env_build_alias_set=${build_alias+set} | |
747 | ac_cv_env_build_alias_value=$build_alias | |
748 | ac_env_host_alias_set=${host_alias+set} | |
749 | ac_env_host_alias_value=$host_alias | |
750 | ac_cv_env_host_alias_set=${host_alias+set} | |
751 | ac_cv_env_host_alias_value=$host_alias | |
752 | ac_env_target_alias_set=${target_alias+set} | |
753 | ac_env_target_alias_value=$target_alias | |
754 | ac_cv_env_target_alias_set=${target_alias+set} | |
755 | ac_cv_env_target_alias_value=$target_alias | |
d3a24ed2 CR |
756 | ac_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set} |
757 | ac_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE | |
758 | ac_cv_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set} | |
759 | ac_cv_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE | |
f73dda09 JA |
760 | ac_env_CC_set=${CC+set} |
761 | ac_env_CC_value=$CC | |
762 | ac_cv_env_CC_set=${CC+set} | |
763 | ac_cv_env_CC_value=$CC | |
764 | ac_env_CFLAGS_set=${CFLAGS+set} | |
765 | ac_env_CFLAGS_value=$CFLAGS | |
766 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
767 | ac_cv_env_CFLAGS_value=$CFLAGS | |
768 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
769 | ac_env_LDFLAGS_value=$LDFLAGS | |
770 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
771 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
772 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
773 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
774 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
775 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
776 | ac_env_CPP_set=${CPP+set} | |
777 | ac_env_CPP_value=$CPP | |
778 | ac_cv_env_CPP_set=${CPP+set} | |
779 | ac_cv_env_CPP_value=$CPP | |
ccc6cda3 | 780 | |
f73dda09 JA |
781 | # |
782 | # Report the --help message. | |
783 | # | |
784 | if test "$ac_init_help" = "long"; then | |
785 | # Omit some internal or obsolete options to make the list less imposing. | |
786 | # This message is too long to be a string in the A/UX 3.1 sh. | |
a82a04b3 | 787 | cat <<_ACEOF |
301e2142 | 788 | \`configure' configures bash 3.1-devel to adapt to many kinds of systems. |
ccc6cda3 | 789 | |
f73dda09 | 790 | Usage: $0 [OPTION]... [VAR=VALUE]... |
ccc6cda3 | 791 | |
f73dda09 JA |
792 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
793 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
794 | ||
795 | Defaults for the options are specified in brackets. | |
ccc6cda3 | 796 | |
f73dda09 JA |
797 | Configuration: |
798 | -h, --help display this help and exit | |
799 | --help=short display options specific to this package | |
800 | --help=recursive display the short help of all the included packages | |
801 | -V, --version display version information and exit | |
802 | -q, --quiet, --silent do not print \`checking...' messages | |
803 | --cache-file=FILE cache test results in FILE [disabled] | |
804 | -C, --config-cache alias for \`--cache-file=config.cache' | |
805 | -n, --no-create do not create output files | |
806 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
ccc6cda3 | 807 | |
a82a04b3 | 808 | _ACEOF |
ccc6cda3 | 809 | |
a82a04b3 | 810 | cat <<_ACEOF |
f73dda09 JA |
811 | Installation directories: |
812 | --prefix=PREFIX install architecture-independent files in PREFIX | |
a82a04b3 | 813 | [$ac_default_prefix] |
f73dda09 | 814 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
a82a04b3 | 815 | [PREFIX] |
ccc6cda3 | 816 | |
f73dda09 JA |
817 | By default, \`make install' will install all the files in |
818 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
819 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
820 | for instance \`--prefix=\$HOME'. | |
ccc6cda3 | 821 | |
f73dda09 | 822 | For better control, use the options below. |
ccc6cda3 | 823 | |
f73dda09 JA |
824 | Fine tuning of the installation directories: |
825 | --bindir=DIR user executables [EPREFIX/bin] | |
826 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
827 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
828 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
829 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
830 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
831 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
832 | --libdir=DIR object code libraries [EPREFIX/lib] | |
833 | --includedir=DIR C header files [PREFIX/include] | |
834 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
835 | --infodir=DIR info documentation [PREFIX/info] | |
836 | --mandir=DIR man documentation [PREFIX/man] | |
a82a04b3 | 837 | _ACEOF |
f73dda09 | 838 | |
a82a04b3 | 839 | cat <<\_ACEOF |
f73dda09 JA |
840 | |
841 | System types: | |
842 | --build=BUILD configure for building on BUILD [guessed] | |
a82a04b3 CR |
843 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
844 | _ACEOF | |
ccc6cda3 | 845 | fi |
ccc6cda3 | 846 | |
f73dda09 JA |
847 | if test -n "$ac_init_help"; then |
848 | case $ac_init_help in | |
301e2142 | 849 | short | recursive ) echo "Configuration of bash 3.1-devel:";; |
f73dda09 | 850 | esac |
a82a04b3 | 851 | cat <<\_ACEOF |
ccc6cda3 | 852 | |
f73dda09 JA |
853 | Optional Features: |
854 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
855 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
7117c2d2 JA |
856 | --enable-minimal-config a minimal sh-like configuration |
857 | --enable-alias enable shell aliases | |
858 | --enable-arith-for-command | |
859 | enable arithmetic for command | |
860 | --enable-array-variables | |
861 | include shell array variables | |
862 | --enable-bang-history turn on csh-style history substitution | |
863 | --enable-brace-expansion | |
864 | include brace expansion | |
865 | --enable-command-timing enable the time reserved word and command timing | |
866 | --enable-cond-command enable the conditional command | |
d3a24ed2 CR |
867 | --enable-cond-regexp enable extgended regular expression matching in |
868 | conditional commands | |
869 | --enable-debugger enable support for bash debugger | |
7117c2d2 JA |
870 | --enable-directory-stack |
871 | enable builtins pushd/popd/dirs | |
872 | --enable-disabled-builtins | |
873 | allow disabled builtins to still be invoked | |
874 | --enable-dparen-arithmetic | |
875 | include ((...)) command | |
876 | --enable-extended-glob include ksh-style extended pattern matching | |
877 | --enable-help-builtin include the help builtin | |
878 | --enable-history turn on command history | |
879 | --enable-job-control enable job control features | |
d3a24ed2 | 880 | --enable-multibyte enable multibyte characters if OS supports them |
7117c2d2 JA |
881 | --enable-net-redirections |
882 | enable /dev/tcp/host/port redirection | |
883 | --enable-process-substitution | |
884 | enable process substitution | |
885 | --enable-progcomp enable programmable completion and the complete | |
886 | builtin | |
887 | --enable-prompt-string-decoding | |
888 | turn on escape character decoding in prompts | |
889 | --enable-readline turn on command line editing | |
890 | --enable-restricted enable a restricted shell | |
891 | --enable-select include select command | |
892 | --enable-separate-helpfiles | |
893 | use external files for help builtin documentation | |
01ed5ba4 CR |
894 | --enable-single-help-strings |
895 | store help documentation as a single string to ease | |
896 | translation | |
7117c2d2 JA |
897 | --enable-usg-echo-default |
898 | a synonym for --enable-xpg-echo-default | |
899 | --enable-xpg-echo-default | |
900 | make the echo builtin expand escape sequences by | |
901 | default | |
902 | --enable-mem-scramble scramble memory on calls to malloc and free | |
903 | --enable-profiling allow profiling with gprof | |
904 | --enable-static-link link bash statically, for use as a root shell | |
f73dda09 | 905 | --disable-largefile omit support for large files |
5e13499c CR |
906 | --disable-nls do not use Native Language Support |
907 | --disable-rpath do not hardcode runtime library paths | |
f73dda09 JA |
908 | |
909 | Optional Packages: | |
910 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
911 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d3a24ed2 | 912 | --with-lispdir override the default lisp directory |
7117c2d2 JA |
913 | --with-afs if you are running AFS |
914 | --with-bash-malloc use the Bash version of malloc | |
915 | --with-curses use the curses library instead of the termcap | |
916 | library | |
917 | --with-gnu-malloc synonym for --with-bash-malloc | |
918 | --with-installed-readline | |
919 | use a version of the readline library that is | |
920 | already installed | |
921 | --with-purecov configure to postprocess with pure coverage | |
922 | --with-purify configure to postprocess with purify | |
5e13499c CR |
923 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
924 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
925 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
926 | --with-included-gettext use the GNU gettext library included here | |
927 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | |
928 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
f73dda09 JA |
929 | |
930 | Some influential environment variables: | |
d3a24ed2 CR |
931 | DEBUGGER_START_FILE |
932 | location of bash debugger initialization file | |
f73dda09 JA |
933 | CC C compiler command |
934 | CFLAGS C compiler flags | |
935 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
936 | nonstandard directory <lib dir> | |
937 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
938 | headers in a nonstandard directory <include dir> | |
939 | CPP C preprocessor | |
940 | ||
941 | Use these variables to override the choices made by `configure' or to help | |
942 | it to find libraries and programs with nonstandard names/locations. | |
943 | ||
944 | Report bugs to <bug-bash@gnu.org>. | |
a82a04b3 | 945 | _ACEOF |
f73dda09 JA |
946 | fi |
947 | ||
948 | if test "$ac_init_help" = "recursive"; then | |
949 | # If there are subdirs, report their specific --help. | |
950 | ac_popdir=`pwd` | |
a82a04b3 CR |
951 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
952 | test -d $ac_dir || continue | |
953 | ac_builddir=. | |
954 | ||
955 | if test "$ac_dir" != .; then | |
956 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
957 | # A "../" for each directory in $ac_dir_suffix. | |
958 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
959 | else | |
960 | ac_dir_suffix= ac_top_builddir= | |
961 | fi | |
962 | ||
963 | case $srcdir in | |
964 | .) # No --srcdir option. We are building in place. | |
965 | ac_srcdir=. | |
966 | if test -z "$ac_top_builddir"; then | |
967 | ac_top_srcdir=. | |
968 | else | |
969 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
970 | fi ;; | |
971 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
972 | ac_srcdir=$srcdir$ac_dir_suffix; | |
973 | ac_top_srcdir=$srcdir ;; | |
974 | *) # Relative path. | |
975 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
976 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
977 | esac | |
978 | ||
979 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
980 | # the directories may not exist. | |
981 | case `pwd` in | |
982 | .) ac_abs_builddir="$ac_dir";; | |
983 | *) | |
984 | case "$ac_dir" in | |
985 | .) ac_abs_builddir=`pwd`;; | |
986 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
987 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
988 | esac;; | |
989 | esac | |
990 | case $ac_abs_builddir in | |
991 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
992 | *) | |
993 | case ${ac_top_builddir}. in | |
994 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
995 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
996 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
997 | esac;; | |
998 | esac | |
999 | case $ac_abs_builddir in | |
1000 | .) ac_abs_srcdir=$ac_srcdir;; | |
1001 | *) | |
1002 | case $ac_srcdir in | |
1003 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1004 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1005 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1006 | esac;; | |
1007 | esac | |
1008 | case $ac_abs_builddir in | |
1009 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1010 | *) | |
1011 | case $ac_top_srcdir in | |
1012 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1013 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1014 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1015 | esac;; | |
1016 | esac | |
ccc6cda3 | 1017 | |
a82a04b3 | 1018 | cd $ac_dir |
f73dda09 | 1019 | # Check for guested configure; otherwise get Cygnus style configure. |
a82a04b3 | 1020 | if test -f $ac_srcdir/configure.gnu; then |
f73dda09 | 1021 | echo |
a82a04b3 CR |
1022 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
1023 | elif test -f $ac_srcdir/configure; then | |
f73dda09 | 1024 | echo |
a82a04b3 CR |
1025 | $SHELL $ac_srcdir/configure --help=recursive |
1026 | elif test -f $ac_srcdir/configure.ac || | |
1027 | test -f $ac_srcdir/configure.in; then | |
f73dda09 JA |
1028 | echo |
1029 | $ac_configure --help | |
1030 | else | |
a82a04b3 | 1031 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
f73dda09 JA |
1032 | fi |
1033 | cd $ac_popdir | |
1034 | done | |
1035 | fi | |
ccc6cda3 | 1036 | |
f73dda09 JA |
1037 | test -n "$ac_init_help" && exit 0 |
1038 | if $ac_init_version; then | |
a82a04b3 | 1039 | cat <<\_ACEOF |
301e2142 | 1040 | bash configure 3.1-devel |
a82a04b3 | 1041 | generated by GNU Autoconf 2.59 |
ccc6cda3 | 1042 | |
a82a04b3 | 1043 | Copyright (C) 2003 Free Software Foundation, Inc. |
f73dda09 JA |
1044 | This configure script is free software; the Free Software Foundation |
1045 | gives unlimited permission to copy, distribute and modify it. | |
a82a04b3 | 1046 | _ACEOF |
f73dda09 JA |
1047 | exit 0 |
1048 | fi | |
1049 | exec 5>config.log | |
a82a04b3 | 1050 | cat >&5 <<_ACEOF |
f73dda09 JA |
1051 | This file contains any messages produced by compilers while |
1052 | running configure, to aid debugging if configure makes a mistake. | |
ccc6cda3 | 1053 | |
301e2142 | 1054 | It was created by bash $as_me 3.1-devel, which was |
a82a04b3 | 1055 | generated by GNU Autoconf 2.59. Invocation command line was |
ccc6cda3 | 1056 | |
f73dda09 | 1057 | $ $0 $@ |
bb70624e | 1058 | |
a82a04b3 | 1059 | _ACEOF |
f73dda09 JA |
1060 | { |
1061 | cat <<_ASUNAME | |
a82a04b3 CR |
1062 | ## --------- ## |
1063 | ## Platform. ## | |
1064 | ## --------- ## | |
f73dda09 JA |
1065 | |
1066 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1067 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1068 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1069 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1070 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1071 | ||
1072 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1073 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1074 | ||
1075 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1076 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1077 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1078 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1079 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1080 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1081 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1082 | ||
e624d0f7 | 1083 | _ASUNAME |
a82a04b3 CR |
1084 | |
1085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1086 | for as_dir in $PATH | |
1087 | do | |
1088 | IFS=$as_save_IFS | |
1089 | test -z "$as_dir" && as_dir=. | |
1090 | echo "PATH: $as_dir" | |
1091 | done | |
1092 | ||
f73dda09 JA |
1093 | } >&5 |
1094 | ||
a82a04b3 CR |
1095 | cat >&5 <<_ACEOF |
1096 | ||
1097 | ||
1098 | ## ----------- ## | |
1099 | ## Core tests. ## | |
1100 | ## ----------- ## | |
1101 | ||
1102 | _ACEOF | |
f73dda09 | 1103 | |
f73dda09 JA |
1104 | |
1105 | # Keep a trace of the command line. | |
1106 | # Strip out --no-create and --no-recursion so they do not pile up. | |
a82a04b3 | 1107 | # Strip out --silent because we don't want to record it for future runs. |
f73dda09 | 1108 | # Also quote any args containing shell meta-characters. |
a82a04b3 | 1109 | # Make two passes to allow for proper duplicate-argument suppression. |
f73dda09 | 1110 | ac_configure_args= |
a82a04b3 CR |
1111 | ac_configure_args0= |
1112 | ac_configure_args1= | |
f73dda09 | 1113 | ac_sep= |
a82a04b3 CR |
1114 | ac_must_keep_next=false |
1115 | for ac_pass in 1 2 | |
f73dda09 | 1116 | do |
a82a04b3 CR |
1117 | for ac_arg |
1118 | do | |
1119 | case $ac_arg in | |
1120 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1121 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1122 | | -silent | --silent | --silen | --sile | --sil) | |
1123 | continue ;; | |
1124 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1125 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1126 | esac | |
1127 | case $ac_pass in | |
1128 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1129 | 2) | |
1130 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1131 | if test $ac_must_keep_next = true; then | |
1132 | ac_must_keep_next=false # Got value, back to normal. | |
1133 | else | |
1134 | case $ac_arg in | |
1135 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1136 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1137 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1138 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1139 | case "$ac_configure_args0 " in | |
1140 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1141 | esac | |
1142 | ;; | |
1143 | -* ) ac_must_keep_next=true ;; | |
1144 | esac | |
1145 | fi | |
1146 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1147 | # Get rid of the leading space. | |
1148 | ac_sep=" " | |
1149 | ;; | |
1150 | esac | |
1151 | done | |
f73dda09 | 1152 | done |
a82a04b3 CR |
1153 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1154 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
f73dda09 JA |
1155 | |
1156 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1157 | # config.log. We remove comments because anyway the quotes in there | |
1158 | # would cause problems or look ugly. | |
a82a04b3 CR |
1159 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1160 | # such as our DU 5.0 friend, will then `close' the trap. | |
f73dda09 JA |
1161 | trap 'exit_status=$? |
1162 | # Save into config.log some information that might help in debugging. | |
a82a04b3 CR |
1163 | { |
1164 | echo | |
1165 | ||
1166 | cat <<\_ASBOX | |
1167 | ## ---------------- ## | |
1168 | ## Cache variables. ## | |
1169 | ## ---------------- ## | |
1170 | _ASBOX | |
1171 | echo | |
1172 | # The following way of writing the cache mishandles newlines in values, | |
f73dda09 JA |
1173 | { |
1174 | (set) 2>&1 | | |
1175 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1176 | *ac_space=\ *) | |
1177 | sed -n \ | |
a82a04b3 CR |
1178 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1179 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
f73dda09 JA |
1180 | ;; |
1181 | *) | |
1182 | sed -n \ | |
a82a04b3 | 1183 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
f73dda09 JA |
1184 | ;; |
1185 | esac; | |
a82a04b3 CR |
1186 | } |
1187 | echo | |
1188 | ||
1189 | cat <<\_ASBOX | |
1190 | ## ----------------- ## | |
1191 | ## Output variables. ## | |
1192 | ## ----------------- ## | |
1193 | _ASBOX | |
1194 | echo | |
1195 | for ac_var in $ac_subst_vars | |
1196 | do | |
1197 | eval ac_val=$`echo $ac_var` | |
1198 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1199 | done | sort | |
1200 | echo | |
1201 | ||
1202 | if test -n "$ac_subst_files"; then | |
1203 | cat <<\_ASBOX | |
1204 | ## ------------- ## | |
1205 | ## Output files. ## | |
1206 | ## ------------- ## | |
1207 | _ASBOX | |
1208 | echo | |
1209 | for ac_var in $ac_subst_files | |
1210 | do | |
1211 | eval ac_val=$`echo $ac_var` | |
1212 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1213 | done | sort | |
1214 | echo | |
1215 | fi | |
1216 | ||
1217 | if test -s confdefs.h; then | |
1218 | cat <<\_ASBOX | |
1219 | ## ----------- ## | |
1220 | ## confdefs.h. ## | |
1221 | ## ----------- ## | |
1222 | _ASBOX | |
1223 | echo | |
1224 | sed "/^$/d" confdefs.h | sort | |
1225 | echo | |
1226 | fi | |
1227 | test "$ac_signal" != 0 && | |
1228 | echo "$as_me: caught signal $ac_signal" | |
1229 | echo "$as_me: exit $exit_status" | |
1230 | } >&5 | |
1231 | rm -f core *.core && | |
1232 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
f73dda09 JA |
1233 | exit $exit_status |
1234 | ' 0 | |
1235 | for ac_signal in 1 2 13 15; do | |
1236 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1237 | done | |
1238 | ac_signal=0 | |
1239 | ||
1240 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1241 | rm -rf conftest* confdefs.h | |
1242 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1243 | echo >confdefs.h | |
1244 | ||
a82a04b3 CR |
1245 | # Predefined preprocessor variables. |
1246 | ||
1247 | cat >>confdefs.h <<_ACEOF | |
1248 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1249 | _ACEOF | |
1250 | ||
1251 | ||
1252 | cat >>confdefs.h <<_ACEOF | |
1253 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1254 | _ACEOF | |
1255 | ||
1256 | ||
1257 | cat >>confdefs.h <<_ACEOF | |
1258 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1259 | _ACEOF | |
1260 | ||
1261 | ||
1262 | cat >>confdefs.h <<_ACEOF | |
1263 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1264 | _ACEOF | |
1265 | ||
1266 | ||
1267 | cat >>confdefs.h <<_ACEOF | |
1268 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1269 | _ACEOF | |
1270 | ||
1271 | ||
f73dda09 JA |
1272 | # Let the site file select an alternate cache file if it wants to. |
1273 | # Prefer explicitly selected file to automatically selected ones. | |
1274 | if test -z "$CONFIG_SITE"; then | |
1275 | if test "x$prefix" != xNONE; then | |
1276 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1277 | else | |
1278 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1279 | fi | |
1280 | fi | |
1281 | for ac_site_file in $CONFIG_SITE; do | |
1282 | if test -r "$ac_site_file"; then | |
a82a04b3 | 1283 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
f73dda09 | 1284 | echo "$as_me: loading site script $ac_site_file" >&6;} |
a82a04b3 | 1285 | sed 's/^/| /' "$ac_site_file" >&5 |
f73dda09 JA |
1286 | . "$ac_site_file" |
1287 | fi | |
1288 | done | |
1289 | ||
1290 | if test -r "$cache_file"; then | |
1291 | # Some versions of bash will fail to source /dev/null (special | |
1292 | # files actually), so we avoid doing that. | |
1293 | if test -f "$cache_file"; then | |
a82a04b3 | 1294 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
f73dda09 JA |
1295 | echo "$as_me: loading cache $cache_file" >&6;} |
1296 | case $cache_file in | |
1297 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1298 | *) . ./$cache_file;; | |
1299 | esac | |
1300 | fi | |
1301 | else | |
a82a04b3 | 1302 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
f73dda09 JA |
1303 | echo "$as_me: creating cache $cache_file" >&6;} |
1304 | >$cache_file | |
1305 | fi | |
1306 | ||
1307 | # Check that the precious variables saved in the cache have kept the same | |
1308 | # value. | |
1309 | ac_cache_corrupted=false | |
1310 | for ac_var in `(set) 2>&1 | | |
a82a04b3 | 1311 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
f73dda09 JA |
1312 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1313 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1314 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1315 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1316 | case $ac_old_set,$ac_new_set in | |
1317 | set,) | |
a82a04b3 | 1318 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
f73dda09 JA |
1319 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1320 | ac_cache_corrupted=: ;; | |
1321 | ,set) | |
a82a04b3 | 1322 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
f73dda09 JA |
1323 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1324 | ac_cache_corrupted=: ;; | |
1325 | ,);; | |
1326 | *) | |
1327 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
a82a04b3 | 1328 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
f73dda09 | 1329 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
a82a04b3 | 1330 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
f73dda09 | 1331 | echo "$as_me: former value: $ac_old_val" >&2;} |
a82a04b3 | 1332 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
f73dda09 | 1333 | echo "$as_me: current value: $ac_new_val" >&2;} |
a82a04b3 | 1334 | ac_cache_corrupted=: |
f73dda09 JA |
1335 | fi;; |
1336 | esac | |
a82a04b3 | 1337 | # Pass precious variables to config.status. |
f73dda09 JA |
1338 | if test "$ac_new_set" = set; then |
1339 | case $ac_new_val in | |
1340 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
a82a04b3 CR |
1341 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1342 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1343 | esac | |
1344 | case " $ac_configure_args " in | |
1345 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1346 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
f73dda09 JA |
1347 | esac |
1348 | fi | |
1349 | done | |
1350 | if $ac_cache_corrupted; then | |
a82a04b3 | 1351 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
f73dda09 | 1352 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
a82a04b3 | 1353 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
f73dda09 JA |
1354 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1355 | { (exit 1); exit 1; }; } | |
1356 | fi | |
1357 | ||
1358 | ac_ext=c | |
1359 | ac_cpp='$CPP $CPPFLAGS' | |
1360 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1361 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1362 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1363 | ||
a82a04b3 CR |
1364 | |
1365 | ||
1366 | ||
1367 | ||
1368 | ||
1369 | ||
1370 | ||
1371 | ||
1372 | ||
1373 | ||
1374 | ||
1375 | ||
1376 | ||
1377 | ||
1378 | ||
1379 | ||
1380 | ||
1381 | ||
1382 | ||
1383 | ||
1384 | ||
1385 | ||
1386 | ||
1387 | ||
1388 | ||
1389 | ||
1390 | ||
1391 | ||
1392 | ||
f73dda09 JA |
1393 | |
1394 | ac_aux_dir= | |
1395 | for ac_dir in ./support $srcdir/./support; do | |
1396 | if test -f $ac_dir/install-sh; then | |
1397 | ac_aux_dir=$ac_dir | |
1398 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1399 | break | |
1400 | elif test -f $ac_dir/install.sh; then | |
1401 | ac_aux_dir=$ac_dir | |
1402 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1403 | break | |
1404 | elif test -f $ac_dir/shtool; then | |
1405 | ac_aux_dir=$ac_dir | |
1406 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1407 | break | |
1408 | fi | |
1409 | done | |
1410 | if test -z "$ac_aux_dir"; then | |
a82a04b3 | 1411 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&5 |
f73dda09 JA |
1412 | echo "$as_me: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&2;} |
1413 | { (exit 1); exit 1; }; } | |
1414 | fi | |
1415 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1416 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1417 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1418 | ||
a82a04b3 CR |
1419 | ac_config_headers="$ac_config_headers config.h" |
1420 | ||
f73dda09 | 1421 | |
301e2142 CR |
1422 | BASHVERS=3.1 |
1423 | RELSTATUS=devel | |
7117c2d2 JA |
1424 | |
1425 | case "$RELSTATUS" in | |
1426 | alp*|bet*|dev*|rc*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;; | |
1427 | *) DEBUG= MALLOC_DEBUG= ;; | |
1428 | esac | |
f73dda09 JA |
1429 | |
1430 | # Make sure we can run config.sub. | |
1431 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
a82a04b3 | 1432 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
f73dda09 JA |
1433 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1434 | { (exit 1); exit 1; }; } | |
1435 | ||
a82a04b3 | 1436 | echo "$as_me:$LINENO: checking build system type" >&5 |
f73dda09 JA |
1437 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1438 | if test "${ac_cv_build+set}" = set; then | |
1439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1440 | else | |
1441 | ac_cv_build_alias=$build_alias | |
1442 | test -z "$ac_cv_build_alias" && | |
1443 | ac_cv_build_alias=`$ac_config_guess` | |
1444 | test -z "$ac_cv_build_alias" && | |
a82a04b3 | 1445 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
f73dda09 JA |
1446 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1447 | { (exit 1); exit 1; }; } | |
1448 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
a82a04b3 CR |
1449 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
1450 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
f73dda09 JA |
1451 | { (exit 1); exit 1; }; } |
1452 | ||
1453 | fi | |
a82a04b3 | 1454 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
f73dda09 JA |
1455 | echo "${ECHO_T}$ac_cv_build" >&6 |
1456 | build=$ac_cv_build | |
1457 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1458 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1459 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1460 | ||
a82a04b3 CR |
1461 | |
1462 | echo "$as_me:$LINENO: checking host system type" >&5 | |
f73dda09 JA |
1463 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1464 | if test "${ac_cv_host+set}" = set; then | |
1465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1466 | else | |
1467 | ac_cv_host_alias=$host_alias | |
1468 | test -z "$ac_cv_host_alias" && | |
1469 | ac_cv_host_alias=$ac_cv_build_alias | |
1470 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
a82a04b3 | 1471 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
f73dda09 JA |
1472 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1473 | { (exit 1); exit 1; }; } | |
1474 | ||
1475 | fi | |
a82a04b3 | 1476 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
f73dda09 JA |
1477 | echo "${ECHO_T}$ac_cv_host" >&6 |
1478 | host=$ac_cv_host | |
1479 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1480 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1481 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1482 | ||
a82a04b3 CR |
1483 | |
1484 | ||
f73dda09 JA |
1485 | opt_bash_malloc=yes |
1486 | opt_purify=no | |
1487 | opt_purecov=no | |
1488 | opt_afs=no | |
1489 | opt_curses=no | |
1490 | opt_with_installed_readline=no | |
1491 | ||
1492 | #htmldir= | |
1493 | ||
1494 | case "${host_cpu}-${host_os}" in | |
1495 | alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux | |
1496 | *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays | |
1497 | *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines | |
1498 | sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2 | |
1499 | sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment | |
bb70624e JA |
1500 | mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment |
1501 | m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir | |
1502 | sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF | |
8ed8525c | 1503 | #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here |
7117c2d2 | 1504 | #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree |
f73dda09 | 1505 | *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment |
bb70624e JA |
1506 | *-aix*) opt_bash_malloc=no ;; # AIX machines |
1507 | *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep | |
28ef6c31 JA |
1508 | *-macos*) opt_bash_malloc=no ;; # Apple MacOS X |
1509 | *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X) | |
1510 | *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X) | |
bb70624e JA |
1511 | *-dgux*) opt_bash_malloc=no ;; # DG/UX machines |
1512 | *-qnx*) opt_bash_malloc=no ;; # QNX 4.2 | |
1513 | *-machten4) opt_bash_malloc=no ;; # MachTen 4.x | |
1514 | *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins | |
1515 | *-beos*) opt_bash_malloc=no ;; # they say it's suitable | |
28ef6c31 JA |
1516 | *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment |
1517 | *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft | |
ccc6cda3 JA |
1518 | esac |
1519 | ||
7117c2d2 JA |
1520 | # memory scrambling on free() |
1521 | case "${host_os}" in | |
1522 | sco3.2v5*|sco3.2v4*) opt_memscramble=no ;; | |
1523 | *) opt_memscramble=yes ;; | |
1524 | esac | |
1525 | ||
a82a04b3 | 1526 | |
d3a24ed2 CR |
1527 | # Check whether --with-lispdir or --without-lispdir was given. |
1528 | if test "${with_lispdir+set}" = set; then | |
1529 | withval="$with_lispdir" | |
1530 | lispdir="$withval" | |
a82a04b3 | 1531 | echo "$as_me:$LINENO: checking where .elc files should go" >&5 |
d3a24ed2 | 1532 | echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6 |
a82a04b3 | 1533 | echo "$as_me:$LINENO: result: $lispdir" >&5 |
d3a24ed2 CR |
1534 | echo "${ECHO_T}$lispdir" >&6 |
1535 | else | |
1536 | ||
1537 | # If set to t, that means we are running in a shell under Emacs. | |
1538 | # If you have an Emacs named "t", then use the full path. | |
1539 | test x"$EMACS" = xt && EMACS= | |
1540 | for ac_prog in emacs xemacs | |
1541 | do | |
1542 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1543 | set dummy $ac_prog; ac_word=$2 | |
a82a04b3 | 1544 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
d3a24ed2 CR |
1545 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1546 | if test "${ac_cv_prog_EMACS+set}" = set; then | |
1547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1548 | else | |
1549 | if test -n "$EMACS"; then | |
1550 | ac_cv_prog_EMACS="$EMACS" # Let the user override the test. | |
1551 | else | |
a82a04b3 CR |
1552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1553 | for as_dir in $PATH | |
1554 | do | |
1555 | IFS=$as_save_IFS | |
1556 | test -z "$as_dir" && as_dir=. | |
1557 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1558 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1559 | ac_cv_prog_EMACS="$ac_prog" | |
1560 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1561 | break 2 | |
1562 | fi | |
1563 | done | |
d3a24ed2 CR |
1564 | done |
1565 | ||
1566 | fi | |
1567 | fi | |
1568 | EMACS=$ac_cv_prog_EMACS | |
1569 | if test -n "$EMACS"; then | |
a82a04b3 | 1570 | echo "$as_me:$LINENO: result: $EMACS" >&5 |
d3a24ed2 CR |
1571 | echo "${ECHO_T}$EMACS" >&6 |
1572 | else | |
a82a04b3 | 1573 | echo "$as_me:$LINENO: result: no" >&5 |
d3a24ed2 CR |
1574 | echo "${ECHO_T}no" >&6 |
1575 | fi | |
1576 | ||
1577 | test -n "$EMACS" && break | |
1578 | done | |
1579 | test -n "$EMACS" || EMACS="no" | |
1580 | ||
1581 | if test $EMACS != "no"; then | |
1582 | if test x${lispdir+set} != xset; then | |
a82a04b3 | 1583 | echo "$as_me:$LINENO: checking where .elc files should go" >&5 |
d3a24ed2 CR |
1584 | echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6 |
1585 | if test "${am_cv_lispdir+set}" = set; then | |
1586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1587 | else | |
1588 | am_cv_lispdir=`$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' | sed -n -e 's,/$,,' -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}'` | |
1589 | if test -z "$am_cv_lispdir"; then | |
1590 | am_cv_lispdir='${datadir}/emacs/site-lisp' | |
1591 | fi | |
1592 | ||
1593 | fi | |
a82a04b3 | 1594 | echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5 |
d3a24ed2 CR |
1595 | echo "${ECHO_T}$am_cv_lispdir" >&6 |
1596 | lispdir="$am_cv_lispdir" | |
1597 | fi | |
1598 | fi | |
1599 | ||
1600 | fi; | |
1601 | ||
a82a04b3 CR |
1602 | |
1603 | ||
1604 | ||
1605 | ||
d166f048 JA |
1606 | # Check whether --with-afs or --without-afs was given. |
1607 | if test "${with_afs+set}" = set; then | |
1608 | withval="$with_afs" | |
1609 | opt_afs=$withval | |
f73dda09 | 1610 | fi; |
d166f048 | 1611 | |
bb70624e JA |
1612 | # Check whether --with-bash-malloc or --without-bash-malloc was given. |
1613 | if test "${with_bash_malloc+set}" = set; then | |
1614 | withval="$with_bash_malloc" | |
1615 | opt_bash_malloc=$withval | |
f73dda09 | 1616 | fi; |
bb70624e | 1617 | |
d166f048 JA |
1618 | # Check whether --with-curses or --without-curses was given. |
1619 | if test "${with_curses+set}" = set; then | |
1620 | withval="$with_curses" | |
1621 | opt_curses=$withval | |
f73dda09 | 1622 | fi; |
ccc6cda3 | 1623 | |
d166f048 JA |
1624 | # Check whether --with-gnu-malloc or --without-gnu-malloc was given. |
1625 | if test "${with_gnu_malloc+set}" = set; then | |
1626 | withval="$with_gnu_malloc" | |
bb70624e | 1627 | opt_bash_malloc=$withval |
f73dda09 | 1628 | fi; |
d166f048 | 1629 | |
b72432fd JA |
1630 | # Check whether --with-installed-readline or --without-installed-readline was given. |
1631 | if test "${with_installed_readline+set}" = set; then | |
1632 | withval="$with_installed_readline" | |
1633 | opt_with_installed_readline=$withval | |
f73dda09 | 1634 | fi; |
b72432fd | 1635 | |
d166f048 JA |
1636 | # Check whether --with-purecov or --without-purecov was given. |
1637 | if test "${with_purecov+set}" = set; then | |
1638 | withval="$with_purecov" | |
1639 | opt_purecov=$withval | |
f73dda09 | 1640 | fi; |
d166f048 | 1641 | |
ccc6cda3 JA |
1642 | # Check whether --with-purify or --without-purify was given. |
1643 | if test "${with_purify+set}" = set; then | |
1644 | withval="$with_purify" | |
1645 | opt_purify=$withval | |
f73dda09 | 1646 | fi; |
ccc6cda3 | 1647 | |
f73dda09 | 1648 | if test "$opt_bash_malloc" = yes; then |
d166f048 JA |
1649 | MALLOC_TARGET=malloc |
1650 | MALLOC_SRC=malloc.c | |
f73dda09 JA |
1651 | |
1652 | MALLOC_LIB='-lmalloc' | |
1653 | MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a' | |
1654 | MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)' | |
1655 | MALLOC_DEP='$(MALLOC_LIBRARY)' | |
1656 | ||
a82a04b3 | 1657 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 1658 | #define USING_BASH_MALLOC 1 |
a82a04b3 | 1659 | _ACEOF |
bb70624e | 1660 | |
ccc6cda3 | 1661 | else |
f73dda09 JA |
1662 | MALLOC_LIB= |
1663 | MALLOC_LIBRARY= | |
1664 | MALLOC_LDFLAGS= | |
1665 | MALLOC_DEP= | |
ccc6cda3 JA |
1666 | fi |
1667 | ||
1668 | if test "$opt_purify" = yes; then | |
d166f048 | 1669 | PURIFY="purify " |
a82a04b3 | 1670 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 1671 | #define DISABLE_MALLOC_WRAPPERS 1 |
a82a04b3 | 1672 | _ACEOF |
7117c2d2 | 1673 | |
ccc6cda3 JA |
1674 | else |
1675 | PURIFY= | |
1676 | fi | |
1677 | ||
d166f048 JA |
1678 | if test "$opt_purecov" = yes; then |
1679 | PURIFY="${PURIFY}purecov" | |
1680 | fi | |
1681 | ||
ccc6cda3 | 1682 | if test "$opt_afs" = yes; then |
a82a04b3 | 1683 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 1684 | #define AFS 1 |
a82a04b3 | 1685 | _ACEOF |
ccc6cda3 JA |
1686 | |
1687 | fi | |
1688 | ||
d166f048 JA |
1689 | if test "$opt_curses" = yes; then |
1690 | prefer_curses=yes | |
1691 | fi | |
1692 | ||
d3a24ed2 CR |
1693 | if test -z "${DEBUGGER_START_FILE}"; then |
1694 | DEBUGGER_START_FILE=${ac_default_prefix}/lib/bashdb/bashdb-main.inc | |
1695 | fi | |
1696 | ||
ccc6cda3 JA |
1697 | opt_minimal_config=no |
1698 | ||
1699 | opt_job_control=yes | |
1700 | opt_alias=yes | |
1701 | opt_readline=yes | |
1702 | opt_history=yes | |
1703 | opt_bang_history=yes | |
1704 | opt_dirstack=yes | |
1705 | opt_restricted=yes | |
1706 | opt_process_subst=yes | |
1707 | opt_prompt_decoding=yes | |
1708 | opt_select=yes | |
1709 | opt_help=yes | |
1710 | opt_array_variables=yes | |
1711 | opt_dparen_arith=yes | |
cce855bc | 1712 | opt_extended_glob=yes |
ccc6cda3 JA |
1713 | opt_brace_expansion=yes |
1714 | opt_disabled_builtins=no | |
1715 | opt_command_timing=yes | |
bb70624e | 1716 | opt_xpg_echo=no |
cce855bc | 1717 | opt_cond_command=yes |
d3a24ed2 | 1718 | opt_cond_regexp=yes |
bb70624e JA |
1719 | opt_arith_for_command=yes |
1720 | opt_net_redirs=yes | |
1721 | opt_progcomp=yes | |
7117c2d2 | 1722 | opt_separate_help=no |
d3a24ed2 CR |
1723 | opt_multibyte=yes |
1724 | opt_debugger=yes | |
01ed5ba4 | 1725 | opt_single_longdoc_strings=yes |
cce855bc JA |
1726 | |
1727 | opt_static_link=no | |
1728 | opt_profiling=no | |
ccc6cda3 JA |
1729 | |
1730 | # Check whether --enable-minimal-config or --disable-minimal-config was given. | |
1731 | if test "${enable_minimal_config+set}" = set; then | |
1732 | enableval="$enable_minimal_config" | |
1733 | opt_minimal_config=$enableval | |
f73dda09 | 1734 | fi; |
ccc6cda3 JA |
1735 | |
1736 | if test $opt_minimal_config = yes; then | |
1737 | opt_job_control=no opt_alias=no opt_readline=no | |
1738 | opt_history=no opt_bang_history=no opt_dirstack=no | |
1739 | opt_restricted=no opt_process_subst=no opt_prompt_decoding=no | |
1740 | opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no | |
1741 | opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no | |
bb70624e | 1742 | opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no |
7117c2d2 | 1743 | opt_net_redirs=no opt_progcomp=no opt_separate_help=no |
d3a24ed2 | 1744 | opt_multibyte=yes opt_cond_regexp=no |
ccc6cda3 JA |
1745 | fi |
1746 | ||
ccc6cda3 JA |
1747 | # Check whether --enable-alias or --disable-alias was given. |
1748 | if test "${enable_alias+set}" = set; then | |
1749 | enableval="$enable_alias" | |
1750 | opt_alias=$enableval | |
f73dda09 | 1751 | fi; |
bb70624e JA |
1752 | # Check whether --enable-arith-for-command or --disable-arith-for-command was given. |
1753 | if test "${enable_arith_for_command+set}" = set; then | |
1754 | enableval="$enable_arith_for_command" | |
1755 | opt_arith_for_command=$enableval | |
f73dda09 | 1756 | fi; |
d166f048 JA |
1757 | # Check whether --enable-array-variables or --disable-array-variables was given. |
1758 | if test "${enable_array_variables+set}" = set; then | |
1759 | enableval="$enable_array_variables" | |
1760 | opt_array_variables=$enableval | |
f73dda09 | 1761 | fi; |
ccc6cda3 JA |
1762 | # Check whether --enable-bang-history or --disable-bang-history was given. |
1763 | if test "${enable_bang_history+set}" = set; then | |
1764 | enableval="$enable_bang_history" | |
1765 | opt_bang_history=$enableval | |
f73dda09 | 1766 | fi; |
d166f048 JA |
1767 | # Check whether --enable-brace-expansion or --disable-brace-expansion was given. |
1768 | if test "${enable_brace_expansion+set}" = set; then | |
1769 | enableval="$enable_brace_expansion" | |
1770 | opt_brace_expansion=$enableval | |
f73dda09 | 1771 | fi; |
d166f048 JA |
1772 | # Check whether --enable-command-timing or --disable-command-timing was given. |
1773 | if test "${enable_command_timing+set}" = set; then | |
1774 | enableval="$enable_command_timing" | |
1775 | opt_command_timing=$enableval | |
f73dda09 | 1776 | fi; |
cce855bc JA |
1777 | # Check whether --enable-cond-command or --disable-cond-command was given. |
1778 | if test "${enable_cond_command+set}" = set; then | |
1779 | enableval="$enable_cond_command" | |
1780 | opt_cond_command=$enableval | |
f73dda09 | 1781 | fi; |
d3a24ed2 CR |
1782 | # Check whether --enable-cond-regexp or --disable-cond-regexp was given. |
1783 | if test "${enable_cond_regexp+set}" = set; then | |
1784 | enableval="$enable_cond_regexp" | |
1785 | opt_cond_regexp=$enableval | |
1786 | fi; | |
1787 | # Check whether --enable-debugger or --disable-debugger was given. | |
1788 | if test "${enable_debugger+set}" = set; then | |
1789 | enableval="$enable_debugger" | |
1790 | opt_debugger=$enableval | |
1791 | fi; | |
d166f048 JA |
1792 | # Check whether --enable-directory-stack or --disable-directory-stack was given. |
1793 | if test "${enable_directory_stack+set}" = set; then | |
1794 | enableval="$enable_directory_stack" | |
1795 | opt_dirstack=$enableval | |
f73dda09 | 1796 | fi; |
d166f048 JA |
1797 | # Check whether --enable-disabled-builtins or --disable-disabled-builtins was given. |
1798 | if test "${enable_disabled_builtins+set}" = set; then | |
1799 | enableval="$enable_disabled_builtins" | |
1800 | opt_disabled_builtins=$enableval | |
f73dda09 | 1801 | fi; |
d166f048 JA |
1802 | # Check whether --enable-dparen-arithmetic or --disable-dparen-arithmetic was given. |
1803 | if test "${enable_dparen_arithmetic+set}" = set; then | |
1804 | enableval="$enable_dparen_arithmetic" | |
1805 | opt_dparen_arith=$enableval | |
f73dda09 | 1806 | fi; |
cce855bc JA |
1807 | # Check whether --enable-extended-glob or --disable-extended-glob was given. |
1808 | if test "${enable_extended_glob+set}" = set; then | |
1809 | enableval="$enable_extended_glob" | |
1810 | opt_extended_glob=$enableval | |
f73dda09 | 1811 | fi; |
ccc6cda3 JA |
1812 | # Check whether --enable-help-builtin or --disable-help-builtin was given. |
1813 | if test "${enable_help_builtin+set}" = set; then | |
1814 | enableval="$enable_help_builtin" | |
1815 | opt_help=$enableval | |
f73dda09 | 1816 | fi; |
d166f048 JA |
1817 | # Check whether --enable-history or --disable-history was given. |
1818 | if test "${enable_history+set}" = set; then | |
1819 | enableval="$enable_history" | |
1820 | opt_history=$enableval | |
f73dda09 | 1821 | fi; |
d166f048 JA |
1822 | # Check whether --enable-job-control or --disable-job-control was given. |
1823 | if test "${enable_job_control+set}" = set; then | |
1824 | enableval="$enable_job_control" | |
1825 | opt_job_control=$enableval | |
f73dda09 | 1826 | fi; |
d3a24ed2 CR |
1827 | # Check whether --enable-multibyte or --disable-multibyte was given. |
1828 | if test "${enable_multibyte+set}" = set; then | |
1829 | enableval="$enable_multibyte" | |
1830 | opt_multibyte=$enableval | |
1831 | fi; | |
bb70624e JA |
1832 | # Check whether --enable-net-redirections or --disable-net-redirections was given. |
1833 | if test "${enable_net_redirections+set}" = set; then | |
1834 | enableval="$enable_net_redirections" | |
1835 | opt_net_redirs=$enableval | |
f73dda09 | 1836 | fi; |
d166f048 JA |
1837 | # Check whether --enable-process-substitution or --disable-process-substitution was given. |
1838 | if test "${enable_process_substitution+set}" = set; then | |
1839 | enableval="$enable_process_substitution" | |
1840 | opt_process_subst=$enableval | |
f73dda09 | 1841 | fi; |
bb70624e JA |
1842 | # Check whether --enable-progcomp or --disable-progcomp was given. |
1843 | if test "${enable_progcomp+set}" = set; then | |
1844 | enableval="$enable_progcomp" | |
1845 | opt_progcomp=$enableval | |
f73dda09 | 1846 | fi; |
d166f048 JA |
1847 | # Check whether --enable-prompt-string-decoding or --disable-prompt-string-decoding was given. |
1848 | if test "${enable_prompt_string_decoding+set}" = set; then | |
1849 | enableval="$enable_prompt_string_decoding" | |
1850 | opt_prompt_decoding=$enableval | |
f73dda09 | 1851 | fi; |
d166f048 JA |
1852 | # Check whether --enable-readline or --disable-readline was given. |
1853 | if test "${enable_readline+set}" = set; then | |
1854 | enableval="$enable_readline" | |
1855 | opt_readline=$enableval | |
f73dda09 | 1856 | fi; |
d166f048 JA |
1857 | # Check whether --enable-restricted or --disable-restricted was given. |
1858 | if test "${enable_restricted+set}" = set; then | |
1859 | enableval="$enable_restricted" | |
1860 | opt_restricted=$enableval | |
f73dda09 | 1861 | fi; |
d166f048 JA |
1862 | # Check whether --enable-select or --disable-select was given. |
1863 | if test "${enable_select+set}" = set; then | |
1864 | enableval="$enable_select" | |
1865 | opt_select=$enableval | |
f73dda09 | 1866 | fi; |
7117c2d2 JA |
1867 | # Check whether --enable-separate-helpfiles or --disable-separate-helpfiles was given. |
1868 | if test "${enable_separate_helpfiles+set}" = set; then | |
1869 | enableval="$enable_separate_helpfiles" | |
1870 | opt_separate_help=$enableval | |
1871 | fi; | |
01ed5ba4 CR |
1872 | # Check whether --enable-single-help-strings or --disable-single-help-strings was given. |
1873 | if test "${enable_single_help_strings+set}" = set; then | |
1874 | enableval="$enable_single_help_strings" | |
1875 | opt_single_longdoc_strings=$enableval | |
1876 | fi; | |
ccc6cda3 JA |
1877 | # Check whether --enable-usg-echo-default or --disable-usg-echo-default was given. |
1878 | if test "${enable_usg_echo_default+set}" = set; then | |
1879 | enableval="$enable_usg_echo_default" | |
bb70624e | 1880 | opt_xpg_echo=$enableval |
f73dda09 | 1881 | fi; |
bb70624e JA |
1882 | # Check whether --enable-xpg-echo-default or --disable-xpg-echo-default was given. |
1883 | if test "${enable_xpg_echo_default+set}" = set; then | |
1884 | enableval="$enable_xpg_echo_default" | |
1885 | opt_xpg_echo=$enableval | |
f73dda09 | 1886 | fi; |
ccc6cda3 | 1887 | |
7117c2d2 JA |
1888 | # Check whether --enable-mem-scramble or --disable-mem-scramble was given. |
1889 | if test "${enable_mem_scramble+set}" = set; then | |
1890 | enableval="$enable_mem_scramble" | |
1891 | opt_memscramble=$enableval | |
1892 | fi; | |
cce855bc JA |
1893 | # Check whether --enable-profiling or --disable-profiling was given. |
1894 | if test "${enable_profiling+set}" = set; then | |
1895 | enableval="$enable_profiling" | |
1896 | opt_profiling=$enableval | |
f73dda09 | 1897 | fi; |
cce855bc JA |
1898 | # Check whether --enable-static-link or --disable-static-link was given. |
1899 | if test "${enable_static_link+set}" = set; then | |
1900 | enableval="$enable_static_link" | |
1901 | opt_static_link=$enableval | |
f73dda09 | 1902 | fi; |
b72432fd | 1903 | |
a82a04b3 CR |
1904 | |
1905 | ||
ccc6cda3 | 1906 | if test $opt_alias = yes; then |
a82a04b3 | 1907 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 1908 | #define ALIAS 1 |
a82a04b3 | 1909 | _ACEOF |
ccc6cda3 | 1910 | |
ccc6cda3 JA |
1911 | fi |
1912 | if test $opt_dirstack = yes; then | |
a82a04b3 | 1913 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 1914 | #define PUSHD_AND_POPD 1 |
a82a04b3 | 1915 | _ACEOF |
ccc6cda3 JA |
1916 | |
1917 | fi | |
1918 | if test $opt_restricted = yes; then | |
a82a04b3 | 1919 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 1920 | #define RESTRICTED_SHELL 1 |
a82a04b3 | 1921 | _ACEOF |
ccc6cda3 JA |
1922 | |
1923 | fi | |
1924 | if test $opt_process_subst = yes; then | |
a82a04b3 | 1925 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 1926 | #define PROCESS_SUBSTITUTION 1 |
a82a04b3 | 1927 | _ACEOF |
ccc6cda3 JA |
1928 | |
1929 | fi | |
1930 | if test $opt_prompt_decoding = yes; then | |
a82a04b3 | 1931 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 1932 | #define PROMPT_STRING_DECODE 1 |
a82a04b3 | 1933 | _ACEOF |
ccc6cda3 JA |
1934 | |
1935 | fi | |
1936 | if test $opt_select = yes; then | |
a82a04b3 | 1937 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 1938 | #define SELECT_COMMAND 1 |
a82a04b3 | 1939 | _ACEOF |
ccc6cda3 JA |
1940 | |
1941 | fi | |
1942 | if test $opt_help = yes; then | |
a82a04b3 | 1943 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 1944 | #define HELP_BUILTIN 1 |
a82a04b3 | 1945 | _ACEOF |
ccc6cda3 JA |
1946 | |
1947 | fi | |
1948 | if test $opt_array_variables = yes; then | |
a82a04b3 | 1949 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 1950 | #define ARRAY_VARS 1 |
a82a04b3 | 1951 | _ACEOF |
ccc6cda3 JA |
1952 | |
1953 | fi | |
1954 | if test $opt_dparen_arith = yes; then | |
a82a04b3 | 1955 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 1956 | #define DPAREN_ARITHMETIC 1 |
a82a04b3 | 1957 | _ACEOF |
ccc6cda3 JA |
1958 | |
1959 | fi | |
1960 | if test $opt_brace_expansion = yes; then | |
a82a04b3 | 1961 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 1962 | #define BRACE_EXPANSION 1 |
a82a04b3 | 1963 | _ACEOF |
ccc6cda3 JA |
1964 | |
1965 | fi | |
1966 | if test $opt_disabled_builtins = yes; then | |
a82a04b3 | 1967 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 1968 | #define DISABLED_BUILTINS 1 |
a82a04b3 | 1969 | _ACEOF |
ccc6cda3 JA |
1970 | |
1971 | fi | |
1972 | if test $opt_command_timing = yes; then | |
a82a04b3 | 1973 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 1974 | #define COMMAND_TIMING 1 |
a82a04b3 | 1975 | _ACEOF |
ccc6cda3 JA |
1976 | |
1977 | fi | |
bb70624e | 1978 | if test $opt_xpg_echo = yes ; then |
a82a04b3 | 1979 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 1980 | #define DEFAULT_ECHO_TO_XPG 1 |
a82a04b3 | 1981 | _ACEOF |
ccc6cda3 | 1982 | |
cce855bc JA |
1983 | fi |
1984 | if test $opt_extended_glob = yes ; then | |
a82a04b3 | 1985 | cat >>confdefs.h <<\_ACEOF |
cce855bc | 1986 | #define EXTENDED_GLOB 1 |
a82a04b3 | 1987 | _ACEOF |
cce855bc JA |
1988 | |
1989 | fi | |
1990 | if test $opt_cond_command = yes ; then | |
a82a04b3 | 1991 | cat >>confdefs.h <<\_ACEOF |
cce855bc | 1992 | #define COND_COMMAND 1 |
a82a04b3 | 1993 | _ACEOF |
cce855bc | 1994 | |
d3a24ed2 CR |
1995 | fi |
1996 | if test $opt_cond_regexp = yes ; then | |
a82a04b3 | 1997 | cat >>confdefs.h <<\_ACEOF |
d3a24ed2 | 1998 | #define COND_REGEXP 1 |
a82a04b3 | 1999 | _ACEOF |
d3a24ed2 | 2000 | |
bb70624e JA |
2001 | fi |
2002 | if test $opt_arith_for_command = yes; then | |
a82a04b3 | 2003 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 2004 | #define ARITH_FOR_COMMAND 1 |
a82a04b3 | 2005 | _ACEOF |
bb70624e JA |
2006 | |
2007 | fi | |
2008 | if test $opt_net_redirs = yes; then | |
a82a04b3 | 2009 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 2010 | #define NETWORK_REDIRECTIONS 1 |
a82a04b3 | 2011 | _ACEOF |
bb70624e JA |
2012 | |
2013 | fi | |
2014 | if test $opt_progcomp = yes; then | |
a82a04b3 | 2015 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 2016 | #define PROGRAMMABLE_COMPLETION 1 |
a82a04b3 | 2017 | _ACEOF |
bb70624e | 2018 | |
d3a24ed2 CR |
2019 | fi |
2020 | if test $opt_multibyte = no; then | |
a82a04b3 | 2021 | cat >>confdefs.h <<\_ACEOF |
d3a24ed2 | 2022 | #define NO_MULTIBYTE_SUPPORT 1 |
a82a04b3 | 2023 | _ACEOF |
d3a24ed2 CR |
2024 | |
2025 | fi | |
2026 | if test $opt_debugger = yes; then | |
a82a04b3 | 2027 | cat >>confdefs.h <<\_ACEOF |
d3a24ed2 | 2028 | #define DEBUGGER 1 |
a82a04b3 | 2029 | _ACEOF |
d3a24ed2 | 2030 | |
ccc6cda3 JA |
2031 | fi |
2032 | ||
7117c2d2 | 2033 | if test $opt_memscramble = yes; then |
a82a04b3 | 2034 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 2035 | #define MEMSCRAMBLE 1 |
a82a04b3 | 2036 | _ACEOF |
7117c2d2 JA |
2037 | |
2038 | fi | |
2039 | ||
d166f048 JA |
2040 | if test "$opt_minimal_config" = yes; then |
2041 | TESTSCRIPT=run-minimal | |
2042 | else | |
2043 | TESTSCRIPT=run-all | |
2044 | fi | |
2045 | ||
7117c2d2 JA |
2046 | HELPDIR= HELPDIRDEFINE= HELPINSTALL= |
2047 | if test "$opt_separate_help" != no; then | |
2048 | if test "$opt_separate_help" = "yes" ; then | |
2049 | HELPDIR='${datadir}/bash' | |
2050 | else | |
2051 | HELPDIR=$opt_separate_help | |
2052 | fi | |
2053 | HELPDIRDEFINE='-H ${HELPDIR}' | |
2054 | HELPINSTALL='install-help' | |
2055 | fi | |
01ed5ba4 CR |
2056 | HELPSTRINGS= |
2057 | if test "$opt_single_longdoc_strings" != "yes"; then | |
2058 | HELPSTRINGS='-S' | |
2059 | fi | |
2060 | ||
a82a04b3 CR |
2061 | |
2062 | ||
2063 | ||
2064 | ||
2065 | ||
2066 | ||
2067 | ||
2068 | ||
2069 | ||
2070 | ||
2071 | ||
2072 | ||
2073 | ||
2074 | ||
2075 | ||
2076 | ||
2077 | ||
f73dda09 | 2078 | echo "" |
7117c2d2 | 2079 | echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}" |
f73dda09 | 2080 | echo "" |
d166f048 | 2081 | |
f73dda09 JA |
2082 | ac_ext=c |
2083 | ac_cpp='$CPP $CPPFLAGS' | |
2084 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2085 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2086 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2087 | if test -n "$ac_tool_prefix"; then | |
2088 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2089 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
a82a04b3 | 2090 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f73dda09 JA |
2091 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2092 | if test "${ac_cv_prog_CC+set}" = set; then | |
2093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2094 | else | |
2095 | if test -n "$CC"; then | |
2096 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2097 | else | |
a82a04b3 CR |
2098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2099 | for as_dir in $PATH | |
2100 | do | |
2101 | IFS=$as_save_IFS | |
2102 | test -z "$as_dir" && as_dir=. | |
2103 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2104 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2105 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2106 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2107 | break 2 | |
2108 | fi | |
2109 | done | |
f73dda09 | 2110 | done |
ccc6cda3 | 2111 | |
f73dda09 JA |
2112 | fi |
2113 | fi | |
2114 | CC=$ac_cv_prog_CC | |
2115 | if test -n "$CC"; then | |
a82a04b3 | 2116 | echo "$as_me:$LINENO: result: $CC" >&5 |
f73dda09 JA |
2117 | echo "${ECHO_T}$CC" >&6 |
2118 | else | |
a82a04b3 | 2119 | echo "$as_me:$LINENO: result: no" >&5 |
f73dda09 JA |
2120 | echo "${ECHO_T}no" >&6 |
2121 | fi | |
ccc6cda3 | 2122 | |
f73dda09 JA |
2123 | fi |
2124 | if test -z "$ac_cv_prog_CC"; then | |
2125 | ac_ct_CC=$CC | |
2126 | # Extract the first word of "gcc", so it can be a program name with args. | |
2127 | set dummy gcc; ac_word=$2 | |
a82a04b3 | 2128 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f73dda09 JA |
2129 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2130 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2132 | else | |
2133 | if test -n "$ac_ct_CC"; then | |
2134 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2135 | else | |
a82a04b3 CR |
2136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2137 | for as_dir in $PATH | |
2138 | do | |
2139 | IFS=$as_save_IFS | |
2140 | test -z "$as_dir" && as_dir=. | |
2141 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2142 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2143 | ac_cv_prog_ac_ct_CC="gcc" | |
2144 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2145 | break 2 | |
2146 | fi | |
2147 | done | |
f73dda09 | 2148 | done |
ccc6cda3 | 2149 | |
f73dda09 JA |
2150 | fi |
2151 | fi | |
2152 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2153 | if test -n "$ac_ct_CC"; then | |
a82a04b3 | 2154 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
f73dda09 JA |
2155 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2156 | else | |
a82a04b3 | 2157 | echo "$as_me:$LINENO: result: no" >&5 |
f73dda09 JA |
2158 | echo "${ECHO_T}no" >&6 |
2159 | fi | |
ccc6cda3 | 2160 | |
f73dda09 JA |
2161 | CC=$ac_ct_CC |
2162 | else | |
2163 | CC="$ac_cv_prog_CC" | |
2164 | fi | |
bb70624e | 2165 | |
f73dda09 JA |
2166 | if test -z "$CC"; then |
2167 | if test -n "$ac_tool_prefix"; then | |
2168 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2169 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
a82a04b3 | 2170 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f73dda09 JA |
2171 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2172 | if test "${ac_cv_prog_CC+set}" = set; then | |
2173 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 JA |
2174 | else |
2175 | if test -n "$CC"; then | |
2176 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2177 | else | |
a82a04b3 CR |
2178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2179 | for as_dir in $PATH | |
2180 | do | |
2181 | IFS=$as_save_IFS | |
2182 | test -z "$as_dir" && as_dir=. | |
2183 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2184 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2185 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2186 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2187 | break 2 | |
2188 | fi | |
2189 | done | |
f73dda09 JA |
2190 | done |
2191 | ||
ccc6cda3 JA |
2192 | fi |
2193 | fi | |
f73dda09 | 2194 | CC=$ac_cv_prog_CC |
ccc6cda3 | 2195 | if test -n "$CC"; then |
a82a04b3 | 2196 | echo "$as_me:$LINENO: result: $CC" >&5 |
f73dda09 JA |
2197 | echo "${ECHO_T}$CC" >&6 |
2198 | else | |
a82a04b3 | 2199 | echo "$as_me:$LINENO: result: no" >&5 |
f73dda09 JA |
2200 | echo "${ECHO_T}no" >&6 |
2201 | fi | |
2202 | ||
2203 | fi | |
2204 | if test -z "$ac_cv_prog_CC"; then | |
2205 | ac_ct_CC=$CC | |
2206 | # Extract the first word of "cc", so it can be a program name with args. | |
2207 | set dummy cc; ac_word=$2 | |
a82a04b3 | 2208 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f73dda09 JA |
2209 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2210 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2212 | else | |
2213 | if test -n "$ac_ct_CC"; then | |
2214 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2215 | else | |
a82a04b3 CR |
2216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2217 | for as_dir in $PATH | |
2218 | do | |
2219 | IFS=$as_save_IFS | |
2220 | test -z "$as_dir" && as_dir=. | |
2221 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2222 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2223 | ac_cv_prog_ac_ct_CC="cc" | |
2224 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2225 | break 2 | |
2226 | fi | |
2227 | done | |
f73dda09 JA |
2228 | done |
2229 | ||
2230 | fi | |
2231 | fi | |
2232 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2233 | if test -n "$ac_ct_CC"; then | |
a82a04b3 | 2234 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
f73dda09 JA |
2235 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2236 | else | |
a82a04b3 | 2237 | echo "$as_me:$LINENO: result: no" >&5 |
f73dda09 JA |
2238 | echo "${ECHO_T}no" >&6 |
2239 | fi | |
2240 | ||
2241 | CC=$ac_ct_CC | |
ccc6cda3 | 2242 | else |
f73dda09 | 2243 | CC="$ac_cv_prog_CC" |
ccc6cda3 JA |
2244 | fi |
2245 | ||
f73dda09 | 2246 | fi |
ccc6cda3 JA |
2247 | if test -z "$CC"; then |
2248 | # Extract the first word of "cc", so it can be a program name with args. | |
2249 | set dummy cc; ac_word=$2 | |
a82a04b3 | 2250 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f73dda09 JA |
2251 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2252 | if test "${ac_cv_prog_CC+set}" = set; then | |
2253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 JA |
2254 | else |
2255 | if test -n "$CC"; then | |
2256 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2257 | else | |
ccc6cda3 | 2258 | ac_prog_rejected=no |
a82a04b3 CR |
2259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2260 | for as_dir in $PATH | |
2261 | do | |
2262 | IFS=$as_save_IFS | |
2263 | test -z "$as_dir" && as_dir=. | |
2264 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2265 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2266 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2267 | ac_prog_rejected=yes | |
2268 | continue | |
2269 | fi | |
2270 | ac_cv_prog_CC="cc" | |
2271 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2272 | break 2 | |
2273 | fi | |
2274 | done | |
f73dda09 JA |
2275 | done |
2276 | ||
ccc6cda3 JA |
2277 | if test $ac_prog_rejected = yes; then |
2278 | # We found a bogon in the path, so make sure we never use it. | |
2279 | set dummy $ac_cv_prog_CC | |
2280 | shift | |
f73dda09 | 2281 | if test $# != 0; then |
ccc6cda3 JA |
2282 | # We chose a different compiler from the bogus one. |
2283 | # However, it has the same basename, so the bogon will be chosen | |
2284 | # first if we set CC to just the basename; use the full file name. | |
2285 | shift | |
a82a04b3 | 2286 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
ccc6cda3 JA |
2287 | fi |
2288 | fi | |
2289 | fi | |
2290 | fi | |
f73dda09 | 2291 | CC=$ac_cv_prog_CC |
ccc6cda3 | 2292 | if test -n "$CC"; then |
a82a04b3 | 2293 | echo "$as_me:$LINENO: result: $CC" >&5 |
f73dda09 | 2294 | echo "${ECHO_T}$CC" >&6 |
ccc6cda3 | 2295 | else |
a82a04b3 | 2296 | echo "$as_me:$LINENO: result: no" >&5 |
f73dda09 | 2297 | echo "${ECHO_T}no" >&6 |
ccc6cda3 JA |
2298 | fi |
2299 | ||
f73dda09 JA |
2300 | fi |
2301 | if test -z "$CC"; then | |
2302 | if test -n "$ac_tool_prefix"; then | |
2303 | for ac_prog in cl | |
2304 | do | |
2305 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2306 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
a82a04b3 | 2307 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f73dda09 JA |
2308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2309 | if test "${ac_cv_prog_CC+set}" = set; then | |
2310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bb70624e JA |
2311 | else |
2312 | if test -n "$CC"; then | |
2313 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2314 | else | |
a82a04b3 CR |
2315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2316 | for as_dir in $PATH | |
2317 | do | |
2318 | IFS=$as_save_IFS | |
2319 | test -z "$as_dir" && as_dir=. | |
2320 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2321 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2322 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2323 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2324 | break 2 | |
2325 | fi | |
2326 | done | |
f73dda09 JA |
2327 | done |
2328 | ||
bb70624e JA |
2329 | fi |
2330 | fi | |
f73dda09 | 2331 | CC=$ac_cv_prog_CC |
bb70624e | 2332 | if test -n "$CC"; then |
a82a04b3 | 2333 | echo "$as_me:$LINENO: result: $CC" >&5 |
f73dda09 | 2334 | echo "${ECHO_T}$CC" >&6 |
bb70624e | 2335 | else |
a82a04b3 | 2336 | echo "$as_me:$LINENO: result: no" >&5 |
f73dda09 | 2337 | echo "${ECHO_T}no" >&6 |
bb70624e | 2338 | fi |
ccc6cda3 | 2339 | |
f73dda09 JA |
2340 | test -n "$CC" && break |
2341 | done | |
ccc6cda3 | 2342 | fi |
f73dda09 JA |
2343 | if test -z "$CC"; then |
2344 | ac_ct_CC=$CC | |
2345 | for ac_prog in cl | |
2346 | do | |
2347 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2348 | set dummy $ac_prog; ac_word=$2 | |
a82a04b3 | 2349 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f73dda09 JA |
2350 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2351 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2353 | else | |
2354 | if test -n "$ac_ct_CC"; then | |
2355 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2356 | else | |
a82a04b3 CR |
2357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2358 | for as_dir in $PATH | |
2359 | do | |
2360 | IFS=$as_save_IFS | |
2361 | test -z "$as_dir" && as_dir=. | |
2362 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2363 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2364 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2365 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2366 | break 2 | |
2367 | fi | |
2368 | done | |
f73dda09 | 2369 | done |
ccc6cda3 | 2370 | |
ccc6cda3 | 2371 | fi |
ccc6cda3 | 2372 | fi |
f73dda09 JA |
2373 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2374 | if test -n "$ac_ct_CC"; then | |
a82a04b3 | 2375 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
f73dda09 JA |
2376 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2377 | else | |
a82a04b3 | 2378 | echo "$as_me:$LINENO: result: no" >&5 |
f73dda09 | 2379 | echo "${ECHO_T}no" >&6 |
ccc6cda3 JA |
2380 | fi |
2381 | ||
f73dda09 JA |
2382 | test -n "$ac_ct_CC" && break |
2383 | done | |
ccc6cda3 | 2384 | |
f73dda09 | 2385 | CC=$ac_ct_CC |
bb70624e JA |
2386 | fi |
2387 | ||
f73dda09 JA |
2388 | fi |
2389 | ||
a82a04b3 CR |
2390 | |
2391 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2392 | See \`config.log' for more details." >&5 | |
2393 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2394 | See \`config.log' for more details." >&2;} | |
f73dda09 JA |
2395 | { (exit 1); exit 1; }; } |
2396 | ||
2397 | # Provide some information about the compiler. | |
a82a04b3 | 2398 | echo "$as_me:$LINENO:" \ |
f73dda09 JA |
2399 | "checking for C compiler version" >&5 |
2400 | ac_compiler=`set X $ac_compile; echo $2` | |
a82a04b3 | 2401 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
f73dda09 JA |
2402 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2403 | ac_status=$? | |
a82a04b3 | 2404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 2405 | (exit $ac_status); } |
a82a04b3 | 2406 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
f73dda09 JA |
2407 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
2408 | ac_status=$? | |
a82a04b3 | 2409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 2410 | (exit $ac_status); } |
a82a04b3 | 2411 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
f73dda09 JA |
2412 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2413 | ac_status=$? | |
a82a04b3 | 2414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
2415 | (exit $ac_status); } |
2416 | ||
2417 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
2418 | /* confdefs.h. */ |
2419 | _ACEOF | |
2420 | cat confdefs.h >>conftest.$ac_ext | |
2421 | cat >>conftest.$ac_ext <<_ACEOF | |
2422 | /* end confdefs.h. */ | |
f73dda09 JA |
2423 | |
2424 | int | |
2425 | main () | |
2426 | { | |
2427 | ||
2428 | ; | |
2429 | return 0; | |
2430 | } | |
2431 | _ACEOF | |
2432 | ac_clean_files_save=$ac_clean_files | |
a82a04b3 | 2433 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
f73dda09 JA |
2434 | # Try to create an executable without -o first, disregard a.out. |
2435 | # It will help us diagnose broken compilers, and finding out an intuition | |
2436 | # of exeext. | |
a82a04b3 CR |
2437 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2438 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
f73dda09 | 2439 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
a82a04b3 | 2440 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
f73dda09 JA |
2441 | (eval $ac_link_default) 2>&5 |
2442 | ac_status=$? | |
a82a04b3 | 2443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
2444 | (exit $ac_status); }; then |
2445 | # Find the output, starting from the most likely. This scheme is | |
2446 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2447 | # resort. | |
a82a04b3 CR |
2448 | |
2449 | # Be careful to initialize this variable, since it used to be cached. | |
2450 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2451 | ac_cv_exeext= | |
2452 | # b.out is created by i960 compilers. | |
2453 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2454 | do | |
2455 | test -f "$ac_file" || continue | |
f73dda09 | 2456 | case $ac_file in |
a82a04b3 CR |
2457 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
2458 | ;; | |
2459 | conftest.$ac_ext ) | |
2460 | # This is the source file. | |
2461 | ;; | |
2462 | [ab].out ) | |
2463 | # We found the default executable, but exeext='' is most | |
2464 | # certainly right. | |
2465 | break;; | |
2466 | *.* ) | |
2467 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2468 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2469 | # but it would be cool to find out if it's true. Does anybody | |
2470 | # maintain Libtool? --akim. | |
2471 | export ac_cv_exeext | |
2472 | break;; | |
2473 | * ) | |
2474 | break;; | |
f73dda09 JA |
2475 | esac |
2476 | done | |
ccc6cda3 | 2477 | else |
f73dda09 | 2478 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
2479 | sed 's/^/| /' conftest.$ac_ext >&5 |
2480 | ||
2481 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2482 | See \`config.log' for more details." >&5 | |
2483 | echo "$as_me: error: C compiler cannot create executables | |
2484 | See \`config.log' for more details." >&2;} | |
f73dda09 JA |
2485 | { (exit 77); exit 77; }; } |
2486 | fi | |
2487 | ||
2488 | ac_exeext=$ac_cv_exeext | |
a82a04b3 | 2489 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
f73dda09 JA |
2490 | echo "${ECHO_T}$ac_file" >&6 |
2491 | ||
2492 | # Check the compiler produces executables we can run. If not, either | |
2493 | # the compiler is broken, or we cross compile. | |
a82a04b3 | 2494 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
f73dda09 JA |
2495 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2496 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2497 | # If not cross compiling, check that we can run a simple program. | |
2498 | if test "$cross_compiling" != yes; then | |
2499 | if { ac_try='./$ac_file' | |
a82a04b3 | 2500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
2501 | (eval $ac_try) 2>&5 |
2502 | ac_status=$? | |
a82a04b3 | 2503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
2504 | (exit $ac_status); }; }; then |
2505 | cross_compiling=no | |
2506 | else | |
2507 | if test "$cross_compiling" = maybe; then | |
2508 | cross_compiling=yes | |
2509 | else | |
a82a04b3 CR |
2510 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2511 | If you meant to cross compile, use \`--host'. | |
2512 | See \`config.log' for more details." >&5 | |
f73dda09 | 2513 | echo "$as_me: error: cannot run C compiled programs. |
a82a04b3 CR |
2514 | If you meant to cross compile, use \`--host'. |
2515 | See \`config.log' for more details." >&2;} | |
f73dda09 JA |
2516 | { (exit 1); exit 1; }; } |
2517 | fi | |
2518 | fi | |
2519 | fi | |
a82a04b3 | 2520 | echo "$as_me:$LINENO: result: yes" >&5 |
f73dda09 JA |
2521 | echo "${ECHO_T}yes" >&6 |
2522 | ||
a82a04b3 | 2523 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
f73dda09 JA |
2524 | ac_clean_files=$ac_clean_files_save |
2525 | # Check the compiler produces executables we can run. If not, either | |
2526 | # the compiler is broken, or we cross compile. | |
a82a04b3 | 2527 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
f73dda09 | 2528 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
a82a04b3 | 2529 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
f73dda09 JA |
2530 | echo "${ECHO_T}$cross_compiling" >&6 |
2531 | ||
a82a04b3 CR |
2532 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2533 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f73dda09 JA |
2535 | (eval $ac_link) 2>&5 |
2536 | ac_status=$? | |
a82a04b3 | 2537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
2538 | (exit $ac_status); }; then |
2539 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2540 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2541 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2542 | # `rm'. | |
a82a04b3 CR |
2543 | for ac_file in conftest.exe conftest conftest.*; do |
2544 | test -f "$ac_file" || continue | |
f73dda09 | 2545 | case $ac_file in |
a82a04b3 | 2546 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
f73dda09 | 2547 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
a82a04b3 CR |
2548 | export ac_cv_exeext |
2549 | break;; | |
f73dda09 JA |
2550 | * ) break;; |
2551 | esac | |
2552 | done | |
ccc6cda3 | 2553 | else |
a82a04b3 CR |
2554 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2555 | See \`config.log' for more details." >&5 | |
2556 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2557 | See \`config.log' for more details." >&2;} | |
f73dda09 JA |
2558 | { (exit 1); exit 1; }; } |
2559 | fi | |
2560 | ||
2561 | rm -f conftest$ac_cv_exeext | |
a82a04b3 | 2562 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
f73dda09 JA |
2563 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
2564 | ||
2565 | rm -f conftest.$ac_ext | |
2566 | EXEEXT=$ac_cv_exeext | |
2567 | ac_exeext=$EXEEXT | |
a82a04b3 CR |
2568 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2569 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
f73dda09 JA |
2570 | if test "${ac_cv_objext+set}" = set; then |
2571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2572 | else | |
2573 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
2574 | /* confdefs.h. */ |
2575 | _ACEOF | |
2576 | cat confdefs.h >>conftest.$ac_ext | |
2577 | cat >>conftest.$ac_ext <<_ACEOF | |
2578 | /* end confdefs.h. */ | |
f73dda09 JA |
2579 | |
2580 | int | |
2581 | main () | |
2582 | { | |
2583 | ||
2584 | ; | |
2585 | return 0; | |
2586 | } | |
2587 | _ACEOF | |
2588 | rm -f conftest.o conftest.obj | |
a82a04b3 | 2589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f73dda09 JA |
2590 | (eval $ac_compile) 2>&5 |
2591 | ac_status=$? | |
a82a04b3 | 2592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
2593 | (exit $ac_status); }; then |
2594 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2595 | case $ac_file in | |
a82a04b3 | 2596 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
f73dda09 JA |
2597 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2598 | break;; | |
2599 | esac | |
2600 | done | |
2601 | else | |
2602 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
2603 | sed 's/^/| /' conftest.$ac_ext >&5 |
2604 | ||
2605 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2606 | See \`config.log' for more details." >&5 | |
2607 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2608 | See \`config.log' for more details." >&2;} | |
f73dda09 | 2609 | { (exit 1); exit 1; }; } |
ccc6cda3 | 2610 | fi |
ccc6cda3 | 2611 | |
f73dda09 | 2612 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
ccc6cda3 | 2613 | fi |
a82a04b3 | 2614 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
f73dda09 JA |
2615 | echo "${ECHO_T}$ac_cv_objext" >&6 |
2616 | OBJEXT=$ac_cv_objext | |
2617 | ac_objext=$OBJEXT | |
a82a04b3 | 2618 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
f73dda09 JA |
2619 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2620 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2622 | else | |
2623 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
2624 | /* confdefs.h. */ |
2625 | _ACEOF | |
2626 | cat confdefs.h >>conftest.$ac_ext | |
2627 | cat >>conftest.$ac_ext <<_ACEOF | |
2628 | /* end confdefs.h. */ | |
f73dda09 JA |
2629 | |
2630 | int | |
2631 | main () | |
2632 | { | |
2633 | #ifndef __GNUC__ | |
2634 | choke me | |
2635 | #endif | |
2636 | ||
2637 | ; | |
2638 | return 0; | |
2639 | } | |
2640 | _ACEOF | |
2641 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
2642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2643 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 2644 | ac_status=$? |
a82a04b3 CR |
2645 | grep -v '^ *+' conftest.er1 >conftest.err |
2646 | rm -f conftest.er1 | |
2647 | cat conftest.err >&5 | |
2648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 2649 | (exit $ac_status); } && |
a82a04b3 CR |
2650 | { ac_try='test -z "$ac_c_werror_flag" |
2651 | || test ! -s conftest.err' | |
2652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2653 | (eval $ac_try) 2>&5 | |
2654 | ac_status=$? | |
2655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2656 | (exit $ac_status); }; } && | |
2657 | { ac_try='test -s conftest.$ac_objext' | |
2658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
2659 | (eval $ac_try) 2>&5 |
2660 | ac_status=$? | |
a82a04b3 | 2661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
2662 | (exit $ac_status); }; }; then |
2663 | ac_compiler_gnu=yes | |
2664 | else | |
2665 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
2666 | sed 's/^/| /' conftest.$ac_ext >&5 |
2667 | ||
f73dda09 JA |
2668 | ac_compiler_gnu=no |
2669 | fi | |
a82a04b3 | 2670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 JA |
2671 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2672 | ||
2673 | fi | |
a82a04b3 | 2674 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
f73dda09 JA |
2675 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2676 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2677 | ac_test_CFLAGS=${CFLAGS+set} | |
2678 | ac_save_CFLAGS=$CFLAGS | |
2679 | CFLAGS="-g" | |
a82a04b3 | 2680 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
f73dda09 JA |
2681 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2682 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2684 | else | |
2685 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
2686 | /* confdefs.h. */ |
2687 | _ACEOF | |
2688 | cat confdefs.h >>conftest.$ac_ext | |
2689 | cat >>conftest.$ac_ext <<_ACEOF | |
2690 | /* end confdefs.h. */ | |
f73dda09 JA |
2691 | |
2692 | int | |
2693 | main () | |
2694 | { | |
ccc6cda3 | 2695 | |
f73dda09 JA |
2696 | ; |
2697 | return 0; | |
2698 | } | |
2699 | _ACEOF | |
2700 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
2701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2702 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 2703 | ac_status=$? |
a82a04b3 CR |
2704 | grep -v '^ *+' conftest.er1 >conftest.err |
2705 | rm -f conftest.er1 | |
2706 | cat conftest.err >&5 | |
2707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 2708 | (exit $ac_status); } && |
a82a04b3 CR |
2709 | { ac_try='test -z "$ac_c_werror_flag" |
2710 | || test ! -s conftest.err' | |
2711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
2712 | (eval $ac_try) 2>&5 |
2713 | ac_status=$? | |
a82a04b3 CR |
2714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2715 | (exit $ac_status); }; } && | |
2716 | { ac_try='test -s conftest.$ac_objext' | |
2717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2718 | (eval $ac_try) 2>&5 | |
2719 | ac_status=$? | |
2720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
2721 | (exit $ac_status); }; }; then |
2722 | ac_cv_prog_cc_g=yes | |
2723 | else | |
2724 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
2725 | sed 's/^/| /' conftest.$ac_ext >&5 |
2726 | ||
f73dda09 JA |
2727 | ac_cv_prog_cc_g=no |
2728 | fi | |
a82a04b3 | 2729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 2730 | fi |
a82a04b3 | 2731 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
f73dda09 | 2732 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
bb70624e | 2733 | if test "$ac_test_CFLAGS" = set; then |
f73dda09 | 2734 | CFLAGS=$ac_save_CFLAGS |
bb70624e JA |
2735 | elif test $ac_cv_prog_cc_g = yes; then |
2736 | if test "$GCC" = yes; then | |
ccc6cda3 JA |
2737 | CFLAGS="-g -O2" |
2738 | else | |
bb70624e | 2739 | CFLAGS="-g" |
ccc6cda3 JA |
2740 | fi |
2741 | else | |
bb70624e JA |
2742 | if test "$GCC" = yes; then |
2743 | CFLAGS="-O2" | |
2744 | else | |
2745 | CFLAGS= | |
2746 | fi | |
ccc6cda3 | 2747 | fi |
a82a04b3 CR |
2748 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2749 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2750 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2752 | else | |
2753 | ac_cv_prog_cc_stdc=no | |
2754 | ac_save_CC=$CC | |
2755 | cat >conftest.$ac_ext <<_ACEOF | |
2756 | /* confdefs.h. */ | |
2757 | _ACEOF | |
2758 | cat confdefs.h >>conftest.$ac_ext | |
2759 | cat >>conftest.$ac_ext <<_ACEOF | |
2760 | /* end confdefs.h. */ | |
2761 | #include <stdarg.h> | |
2762 | #include <stdio.h> | |
2763 | #include <sys/types.h> | |
2764 | #include <sys/stat.h> | |
2765 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2766 | struct buf { int x; }; | |
2767 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2768 | static char *e (p, i) | |
2769 | char **p; | |
2770 | int i; | |
2771 | { | |
2772 | return p[i]; | |
2773 | } | |
2774 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2775 | { | |
2776 | char *s; | |
2777 | va_list v; | |
2778 | va_start (v,p); | |
2779 | s = g (p, va_arg (v,int)); | |
2780 | va_end (v); | |
2781 | return s; | |
2782 | } | |
2783 | ||
2784 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2785 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2786 | These don't provoke an error unfortunately, instead are silently treated | |
2787 | as 'x'. The following induces an error, until -std1 is added to get | |
2788 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2789 | array size at least. It's necessary to write '\x00'==0 to get something | |
2790 | that's true only with -std1. */ | |
2791 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2792 | ||
2793 | int test (int i, double x); | |
2794 | struct s1 {int (*f) (int a);}; | |
2795 | struct s2 {int (*f) (double a);}; | |
2796 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2797 | int argc; | |
2798 | char **argv; | |
2799 | int | |
2800 | main () | |
2801 | { | |
2802 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2803 | ; | |
2804 | return 0; | |
2805 | } | |
2806 | _ACEOF | |
2807 | # Don't try gcc -ansi; that turns off useful extensions and | |
2808 | # breaks some systems' header files. | |
2809 | # AIX -qlanglvl=ansi | |
2810 | # Ultrix and OSF/1 -std1 | |
2811 | # HP-UX 10.20 and later -Ae | |
2812 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2813 | # SVR4 -Xc -D__EXTENSIONS__ | |
2814 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2815 | do | |
2816 | CC="$ac_save_CC $ac_arg" | |
2817 | rm -f conftest.$ac_objext | |
2818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2819 | (eval $ac_compile) 2>conftest.er1 | |
2820 | ac_status=$? | |
2821 | grep -v '^ *+' conftest.er1 >conftest.err | |
2822 | rm -f conftest.er1 | |
2823 | cat conftest.err >&5 | |
2824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2825 | (exit $ac_status); } && | |
2826 | { ac_try='test -z "$ac_c_werror_flag" | |
2827 | || test ! -s conftest.err' | |
2828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2829 | (eval $ac_try) 2>&5 | |
2830 | ac_status=$? | |
2831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2832 | (exit $ac_status); }; } && | |
2833 | { ac_try='test -s conftest.$ac_objext' | |
2834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2835 | (eval $ac_try) 2>&5 | |
2836 | ac_status=$? | |
2837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2838 | (exit $ac_status); }; }; then | |
2839 | ac_cv_prog_cc_stdc=$ac_arg | |
2840 | break | |
2841 | else | |
2842 | echo "$as_me: failed program was:" >&5 | |
2843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2844 | ||
2845 | fi | |
2846 | rm -f conftest.err conftest.$ac_objext | |
2847 | done | |
2848 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2849 | CC=$ac_save_CC | |
2850 | ||
2851 | fi | |
2852 | ||
2853 | case "x$ac_cv_prog_cc_stdc" in | |
2854 | x|xno) | |
2855 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2856 | echo "${ECHO_T}none needed" >&6 ;; | |
2857 | *) | |
2858 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2859 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2860 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2861 | esac | |
2862 | ||
f73dda09 JA |
2863 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2864 | # in C++ we need to declare it. In case someone uses the same compiler | |
2865 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2866 | # the declaration of exit, since it's the most demanding environment. | |
2867 | cat >conftest.$ac_ext <<_ACEOF | |
2868 | #ifndef __cplusplus | |
2869 | choke me | |
2870 | #endif | |
2871 | _ACEOF | |
2872 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
2873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2874 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 2875 | ac_status=$? |
a82a04b3 CR |
2876 | grep -v '^ *+' conftest.er1 >conftest.err |
2877 | rm -f conftest.er1 | |
2878 | cat conftest.err >&5 | |
2879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 2880 | (exit $ac_status); } && |
a82a04b3 CR |
2881 | { ac_try='test -z "$ac_c_werror_flag" |
2882 | || test ! -s conftest.err' | |
2883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
2884 | (eval $ac_try) 2>&5 |
2885 | ac_status=$? | |
a82a04b3 CR |
2886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2887 | (exit $ac_status); }; } && | |
2888 | { ac_try='test -s conftest.$ac_objext' | |
2889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2890 | (eval $ac_try) 2>&5 | |
2891 | ac_status=$? | |
2892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
2893 | (exit $ac_status); }; }; then |
2894 | for ac_declaration in \ | |
a82a04b3 | 2895 | '' \ |
f73dda09 JA |
2896 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2897 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2898 | 'extern "C" void exit (int) throw ();' \ | |
2899 | 'extern "C" void exit (int);' \ | |
2900 | 'void exit (int);' | |
2901 | do | |
2902 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
2903 | /* confdefs.h. */ |
2904 | _ACEOF | |
2905 | cat confdefs.h >>conftest.$ac_ext | |
2906 | cat >>conftest.$ac_ext <<_ACEOF | |
2907 | /* end confdefs.h. */ | |
f73dda09 | 2908 | $ac_declaration |
a82a04b3 | 2909 | #include <stdlib.h> |
f73dda09 JA |
2910 | int |
2911 | main () | |
2912 | { | |
2913 | exit (42); | |
2914 | ; | |
2915 | return 0; | |
2916 | } | |
2917 | _ACEOF | |
2918 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
2919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2920 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 2921 | ac_status=$? |
a82a04b3 CR |
2922 | grep -v '^ *+' conftest.er1 >conftest.err |
2923 | rm -f conftest.er1 | |
2924 | cat conftest.err >&5 | |
2925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 2926 | (exit $ac_status); } && |
a82a04b3 CR |
2927 | { ac_try='test -z "$ac_c_werror_flag" |
2928 | || test ! -s conftest.err' | |
2929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
2930 | (eval $ac_try) 2>&5 |
2931 | ac_status=$? | |
a82a04b3 CR |
2932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2933 | (exit $ac_status); }; } && | |
2934 | { ac_try='test -s conftest.$ac_objext' | |
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 | |
f73dda09 JA |
2939 | (exit $ac_status); }; }; then |
2940 | : | |
2941 | else | |
2942 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
2943 | sed 's/^/| /' conftest.$ac_ext >&5 |
2944 | ||
f73dda09 JA |
2945 | continue |
2946 | fi | |
a82a04b3 | 2947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 2948 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
2949 | /* confdefs.h. */ |
2950 | _ACEOF | |
2951 | cat confdefs.h >>conftest.$ac_ext | |
2952 | cat >>conftest.$ac_ext <<_ACEOF | |
2953 | /* end confdefs.h. */ | |
f73dda09 JA |
2954 | $ac_declaration |
2955 | int | |
2956 | main () | |
2957 | { | |
2958 | exit (42); | |
2959 | ; | |
2960 | return 0; | |
2961 | } | |
2962 | _ACEOF | |
2963 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
2964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2965 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 2966 | ac_status=$? |
a82a04b3 CR |
2967 | grep -v '^ *+' conftest.er1 >conftest.err |
2968 | rm -f conftest.er1 | |
2969 | cat conftest.err >&5 | |
2970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 2971 | (exit $ac_status); } && |
a82a04b3 CR |
2972 | { ac_try='test -z "$ac_c_werror_flag" |
2973 | || test ! -s conftest.err' | |
2974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2975 | (eval $ac_try) 2>&5 | |
2976 | ac_status=$? | |
2977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2978 | (exit $ac_status); }; } && | |
2979 | { ac_try='test -s conftest.$ac_objext' | |
2980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
2981 | (eval $ac_try) 2>&5 |
2982 | ac_status=$? | |
a82a04b3 | 2983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
2984 | (exit $ac_status); }; }; then |
2985 | break | |
2986 | else | |
2987 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
2988 | sed 's/^/| /' conftest.$ac_ext >&5 |
2989 | ||
f73dda09 | 2990 | fi |
a82a04b3 | 2991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cce855bc | 2992 | done |
f73dda09 JA |
2993 | rm -f conftest* |
2994 | if test -n "$ac_declaration"; then | |
2995 | echo '#ifdef __cplusplus' >>confdefs.h | |
2996 | echo $ac_declaration >>confdefs.h | |
2997 | echo '#endif' >>confdefs.h | |
2998 | fi | |
cce855bc | 2999 | |
f73dda09 JA |
3000 | else |
3001 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
3002 | sed 's/^/| /' conftest.$ac_ext >&5 |
3003 | ||
f73dda09 | 3004 | fi |
a82a04b3 | 3005 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 JA |
3006 | ac_ext=c |
3007 | ac_cpp='$CPP $CPPFLAGS' | |
3008 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3009 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3010 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bb70624e | 3011 | |
a82a04b3 CR |
3012 | |
3013 | ||
3014 | ||
3015 | echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 | |
5e13499c CR |
3016 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6 |
3017 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then | |
3018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3019 | else | |
3020 | ac_check_lib_save_LIBS=$LIBS | |
3021 | LIBS="-lcposix $LIBS" | |
3022 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
3023 | /* confdefs.h. */ |
3024 | _ACEOF | |
3025 | cat confdefs.h >>conftest.$ac_ext | |
3026 | cat >>conftest.$ac_ext <<_ACEOF | |
3027 | /* end confdefs.h. */ | |
ccc6cda3 | 3028 | |
5e13499c CR |
3029 | /* Override any gcc2 internal prototype to avoid an error. */ |
3030 | #ifdef __cplusplus | |
3031 | extern "C" | |
3032 | #endif | |
3033 | /* We use char because int might match the return type of a gcc2 | |
3034 | builtin and then its argument prototype would still apply. */ | |
3035 | char strerror (); | |
3036 | int | |
3037 | main () | |
3038 | { | |
3039 | strerror (); | |
3040 | ; | |
3041 | return 0; | |
3042 | } | |
3043 | _ACEOF | |
3044 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
3045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3046 | (eval $ac_link) 2>conftest.er1 | |
5e13499c | 3047 | ac_status=$? |
a82a04b3 CR |
3048 | grep -v '^ *+' conftest.er1 >conftest.err |
3049 | rm -f conftest.er1 | |
3050 | cat conftest.err >&5 | |
3051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c | 3052 | (exit $ac_status); } && |
a82a04b3 CR |
3053 | { ac_try='test -z "$ac_c_werror_flag" |
3054 | || test ! -s conftest.err' | |
3055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3056 | (eval $ac_try) 2>&5 | |
3057 | ac_status=$? | |
3058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3059 | (exit $ac_status); }; } && | |
3060 | { ac_try='test -s conftest$ac_exeext' | |
3061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5e13499c CR |
3062 | (eval $ac_try) 2>&5 |
3063 | ac_status=$? | |
a82a04b3 | 3064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c CR |
3065 | (exit $ac_status); }; }; then |
3066 | ac_cv_lib_cposix_strerror=yes | |
ccc6cda3 | 3067 | else |
5e13499c | 3068 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
3069 | sed 's/^/| /' conftest.$ac_ext >&5 |
3070 | ||
5e13499c CR |
3071 | ac_cv_lib_cposix_strerror=no |
3072 | fi | |
a82a04b3 CR |
3073 | rm -f conftest.err conftest.$ac_objext \ |
3074 | conftest$ac_exeext conftest.$ac_ext | |
5e13499c CR |
3075 | LIBS=$ac_check_lib_save_LIBS |
3076 | fi | |
a82a04b3 | 3077 | echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
5e13499c CR |
3078 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6 |
3079 | if test $ac_cv_lib_cposix_strerror = yes; then | |
3080 | LIBS="$LIBS -lcposix" | |
ccc6cda3 JA |
3081 | fi |
3082 | ||
a82a04b3 CR |
3083 | |
3084 | ||
f73dda09 JA |
3085 | ac_ext=c |
3086 | ac_cpp='$CPP $CPPFLAGS' | |
3087 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3088 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3089 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a82a04b3 | 3090 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
f73dda09 | 3091 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
ccc6cda3 JA |
3092 | # On Suns, sometimes $CPP names a directory. |
3093 | if test -n "$CPP" && test -d "$CPP"; then | |
3094 | CPP= | |
3095 | fi | |
3096 | if test -z "$CPP"; then | |
f73dda09 JA |
3097 | if test "${ac_cv_prog_CPP+set}" = set; then |
3098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3099 | else | |
3100 | # Double quotes because CPP needs to be expanded | |
3101 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3102 | do | |
3103 | ac_preproc_ok=false | |
3104 | for ac_c_preproc_warn_flag in '' yes | |
3105 | do | |
3106 | # Use a header file that comes with gcc, so configuring glibc | |
3107 | # with a fresh cross-compiler works. | |
a82a04b3 CR |
3108 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3109 | # <limits.h> exists even on freestanding compilers. | |
ccc6cda3 | 3110 | # On the NeXT, cc -E runs the code through the compiler's parser, |
f73dda09 JA |
3111 | # not just through cpp. "Syntax error" is here to catch this case. |
3112 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
3113 | /* confdefs.h. */ |
3114 | _ACEOF | |
3115 | cat confdefs.h >>conftest.$ac_ext | |
3116 | cat >>conftest.$ac_ext <<_ACEOF | |
3117 | /* end confdefs.h. */ | |
3118 | #ifdef __STDC__ | |
3119 | # include <limits.h> | |
3120 | #else | |
3121 | # include <assert.h> | |
3122 | #endif | |
3123 | Syntax error | |
f73dda09 | 3124 | _ACEOF |
a82a04b3 | 3125 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f73dda09 JA |
3126 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3127 | ac_status=$? | |
a82a04b3 | 3128 | grep -v '^ *+' conftest.er1 >conftest.err |
f73dda09 JA |
3129 | rm -f conftest.er1 |
3130 | cat conftest.err >&5 | |
a82a04b3 | 3131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
3132 | (exit $ac_status); } >/dev/null; then |
3133 | if test -s conftest.err; then | |
3134 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a82a04b3 | 3135 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f73dda09 JA |
3136 | else |
3137 | ac_cpp_err= | |
3138 | fi | |
3139 | else | |
3140 | ac_cpp_err=yes | |
3141 | fi | |
3142 | if test -z "$ac_cpp_err"; then | |
ccc6cda3 JA |
3143 | : |
3144 | else | |
f73dda09 | 3145 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
3146 | sed 's/^/| /' conftest.$ac_ext >&5 |
3147 | ||
f73dda09 JA |
3148 | # Broken: fails on valid input. |
3149 | continue | |
3150 | fi | |
3151 | rm -f conftest.err conftest.$ac_ext | |
3152 | ||
3153 | # OK, works on sane cases. Now check whether non-existent headers | |
3154 | # can be detected and how. | |
3155 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
3156 | /* confdefs.h. */ |
3157 | _ACEOF | |
3158 | cat confdefs.h >>conftest.$ac_ext | |
3159 | cat >>conftest.$ac_ext <<_ACEOF | |
3160 | /* end confdefs.h. */ | |
f73dda09 JA |
3161 | #include <ac_nonexistent.h> |
3162 | _ACEOF | |
a82a04b3 | 3163 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f73dda09 JA |
3164 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3165 | ac_status=$? | |
a82a04b3 | 3166 | grep -v '^ *+' conftest.er1 >conftest.err |
f73dda09 JA |
3167 | rm -f conftest.er1 |
3168 | cat conftest.err >&5 | |
a82a04b3 | 3169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
3170 | (exit $ac_status); } >/dev/null; then |
3171 | if test -s conftest.err; then | |
3172 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a82a04b3 | 3173 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f73dda09 JA |
3174 | else |
3175 | ac_cpp_err= | |
3176 | fi | |
3177 | else | |
3178 | ac_cpp_err=yes | |
3179 | fi | |
3180 | if test -z "$ac_cpp_err"; then | |
3181 | # Broken: success on invalid input. | |
3182 | continue | |
bb70624e | 3183 | else |
f73dda09 | 3184 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
3185 | sed 's/^/| /' conftest.$ac_ext >&5 |
3186 | ||
f73dda09 JA |
3187 | # Passes both tests. |
3188 | ac_preproc_ok=: | |
3189 | break | |
3190 | fi | |
3191 | rm -f conftest.err conftest.$ac_ext | |
3192 | ||
3193 | done | |
3194 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3195 | rm -f conftest.err conftest.$ac_ext | |
3196 | if $ac_preproc_ok; then | |
3197 | break | |
3198 | fi | |
3199 | ||
3200 | done | |
3201 | ac_cv_prog_CPP=$CPP | |
3202 | ||
3203 | fi | |
3204 | CPP=$ac_cv_prog_CPP | |
3205 | else | |
3206 | ac_cv_prog_CPP=$CPP | |
3207 | fi | |
a82a04b3 | 3208 | echo "$as_me:$LINENO: result: $CPP" >&5 |
f73dda09 JA |
3209 | echo "${ECHO_T}$CPP" >&6 |
3210 | ac_preproc_ok=false | |
3211 | for ac_c_preproc_warn_flag in '' yes | |
3212 | do | |
3213 | # Use a header file that comes with gcc, so configuring glibc | |
3214 | # with a fresh cross-compiler works. | |
a82a04b3 CR |
3215 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3216 | # <limits.h> exists even on freestanding compilers. | |
f73dda09 JA |
3217 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3218 | # not just through cpp. "Syntax error" is here to catch this case. | |
3219 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
3220 | /* confdefs.h. */ |
3221 | _ACEOF | |
3222 | cat confdefs.h >>conftest.$ac_ext | |
3223 | cat >>conftest.$ac_ext <<_ACEOF | |
3224 | /* end confdefs.h. */ | |
3225 | #ifdef __STDC__ | |
3226 | # include <limits.h> | |
3227 | #else | |
3228 | # include <assert.h> | |
3229 | #endif | |
3230 | Syntax error | |
f73dda09 | 3231 | _ACEOF |
a82a04b3 | 3232 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f73dda09 JA |
3233 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3234 | ac_status=$? | |
a82a04b3 | 3235 | grep -v '^ *+' conftest.er1 >conftest.err |
f73dda09 JA |
3236 | rm -f conftest.er1 |
3237 | cat conftest.err >&5 | |
a82a04b3 | 3238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
3239 | (exit $ac_status); } >/dev/null; then |
3240 | if test -s conftest.err; then | |
3241 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a82a04b3 | 3242 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f73dda09 JA |
3243 | else |
3244 | ac_cpp_err= | |
3245 | fi | |
3246 | else | |
3247 | ac_cpp_err=yes | |
3248 | fi | |
3249 | if test -z "$ac_cpp_err"; then | |
ccc6cda3 JA |
3250 | : |
3251 | else | |
f73dda09 | 3252 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
3253 | sed 's/^/| /' conftest.$ac_ext >&5 |
3254 | ||
f73dda09 JA |
3255 | # Broken: fails on valid input. |
3256 | continue | |
3257 | fi | |
3258 | rm -f conftest.err conftest.$ac_ext | |
3259 | ||
3260 | # OK, works on sane cases. Now check whether non-existent headers | |
3261 | # can be detected and how. | |
3262 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
3263 | /* confdefs.h. */ |
3264 | _ACEOF | |
3265 | cat confdefs.h >>conftest.$ac_ext | |
3266 | cat >>conftest.$ac_ext <<_ACEOF | |
3267 | /* end confdefs.h. */ | |
f73dda09 JA |
3268 | #include <ac_nonexistent.h> |
3269 | _ACEOF | |
a82a04b3 | 3270 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f73dda09 JA |
3271 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3272 | ac_status=$? | |
a82a04b3 | 3273 | grep -v '^ *+' conftest.er1 >conftest.err |
f73dda09 JA |
3274 | rm -f conftest.er1 |
3275 | cat conftest.err >&5 | |
a82a04b3 | 3276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
3277 | (exit $ac_status); } >/dev/null; then |
3278 | if test -s conftest.err; then | |
3279 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a82a04b3 | 3280 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f73dda09 JA |
3281 | else |
3282 | ac_cpp_err= | |
3283 | fi | |
3284 | else | |
3285 | ac_cpp_err=yes | |
bb70624e | 3286 | fi |
f73dda09 JA |
3287 | if test -z "$ac_cpp_err"; then |
3288 | # Broken: success on invalid input. | |
3289 | continue | |
3290 | else | |
3291 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
3292 | sed 's/^/| /' conftest.$ac_ext >&5 |
3293 | ||
f73dda09 JA |
3294 | # Passes both tests. |
3295 | ac_preproc_ok=: | |
3296 | break | |
ccc6cda3 | 3297 | fi |
f73dda09 JA |
3298 | rm -f conftest.err conftest.$ac_ext |
3299 | ||
3300 | done | |
3301 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3302 | rm -f conftest.err conftest.$ac_ext | |
3303 | if $ac_preproc_ok; then | |
3304 | : | |
ccc6cda3 | 3305 | else |
a82a04b3 CR |
3306 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3307 | See \`config.log' for more details." >&5 | |
3308 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3309 | See \`config.log' for more details." >&2;} | |
f73dda09 | 3310 | { (exit 1); exit 1; }; } |
ccc6cda3 | 3311 | fi |
ccc6cda3 | 3312 | |
f73dda09 JA |
3313 | ac_ext=c |
3314 | ac_cpp='$CPP $CPPFLAGS' | |
3315 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3316 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3317 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3318 | ||
a82a04b3 CR |
3319 | |
3320 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
3321 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3322 | if test "${ac_cv_prog_egrep+set}" = set; then | |
3323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3324 | else | |
3325 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
3326 | then ac_cv_prog_egrep='grep -E' | |
3327 | else ac_cv_prog_egrep='egrep' | |
3328 | fi | |
3329 | fi | |
3330 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
3331 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3332 | EGREP=$ac_cv_prog_egrep | |
3333 | ||
3334 | ||
3335 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3336 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3337 | if test "${ac_cv_header_stdc+set}" = set; then | |
f73dda09 | 3338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ccc6cda3 | 3339 | else |
f73dda09 | 3340 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 | 3341 | /* confdefs.h. */ |
545f34cf | 3342 | _ACEOF |
a82a04b3 CR |
3343 | cat confdefs.h >>conftest.$ac_ext |
3344 | cat >>conftest.$ac_ext <<_ACEOF | |
3345 | /* end confdefs.h. */ | |
3346 | #include <stdlib.h> | |
3347 | #include <stdarg.h> | |
3348 | #include <string.h> | |
3349 | #include <float.h> | |
3350 | ||
3351 | int | |
3352 | main () | |
3353 | { | |
3354 | ||
3355 | ; | |
3356 | return 0; | |
3357 | } | |
3358 | _ACEOF | |
3359 | rm -f conftest.$ac_objext | |
3360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3361 | (eval $ac_compile) 2>conftest.er1 | |
545f34cf | 3362 | ac_status=$? |
a82a04b3 | 3363 | grep -v '^ *+' conftest.er1 >conftest.err |
e624d0f7 CR |
3364 | rm -f conftest.er1 |
3365 | cat conftest.err >&5 | |
a82a04b3 CR |
3366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3367 | (exit $ac_status); } && | |
3368 | { ac_try='test -z "$ac_c_werror_flag" | |
3369 | || test ! -s conftest.err' | |
3370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3371 | (eval $ac_try) 2>&5 | |
3372 | ac_status=$? | |
3373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3374 | (exit $ac_status); }; } && | |
3375 | { ac_try='test -s conftest.$ac_objext' | |
3376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3377 | (eval $ac_try) 2>&5 | |
3378 | ac_status=$? | |
3379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3380 | (exit $ac_status); }; }; then | |
3381 | ac_cv_header_stdc=yes | |
f73dda09 | 3382 | else |
545f34cf | 3383 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
3384 | sed 's/^/| /' conftest.$ac_ext >&5 |
3385 | ||
3386 | ac_cv_header_stdc=no | |
3387 | fi | |
3388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3389 | ||
3390 | if test $ac_cv_header_stdc = yes; then | |
3391 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3392 | cat >conftest.$ac_ext <<_ACEOF | |
3393 | /* confdefs.h. */ | |
3394 | _ACEOF | |
3395 | cat confdefs.h >>conftest.$ac_ext | |
3396 | cat >>conftest.$ac_ext <<_ACEOF | |
3397 | /* end confdefs.h. */ | |
3398 | #include <string.h> | |
3399 | ||
3400 | _ACEOF | |
3401 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3402 | $EGREP "memchr" >/dev/null 2>&1; then | |
3403 | : | |
3404 | else | |
3405 | ac_cv_header_stdc=no | |
3406 | fi | |
3407 | rm -f conftest* | |
3408 | ||
3409 | fi | |
3410 | ||
3411 | if test $ac_cv_header_stdc = yes; then | |
3412 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3413 | cat >conftest.$ac_ext <<_ACEOF | |
3414 | /* confdefs.h. */ | |
3415 | _ACEOF | |
3416 | cat confdefs.h >>conftest.$ac_ext | |
3417 | cat >>conftest.$ac_ext <<_ACEOF | |
3418 | /* end confdefs.h. */ | |
3419 | #include <stdlib.h> | |
3420 | ||
3421 | _ACEOF | |
3422 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3423 | $EGREP "free" >/dev/null 2>&1; then | |
3424 | : | |
3425 | else | |
3426 | ac_cv_header_stdc=no | |
3427 | fi | |
3428 | rm -f conftest* | |
3429 | ||
3430 | fi | |
3431 | ||
3432 | if test $ac_cv_header_stdc = yes; then | |
3433 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3434 | if test "$cross_compiling" = yes; then | |
3435 | : | |
3436 | else | |
3437 | cat >conftest.$ac_ext <<_ACEOF | |
3438 | /* confdefs.h. */ | |
3439 | _ACEOF | |
3440 | cat confdefs.h >>conftest.$ac_ext | |
3441 | cat >>conftest.$ac_ext <<_ACEOF | |
3442 | /* end confdefs.h. */ | |
3443 | #include <ctype.h> | |
3444 | #if ((' ' & 0x0FF) == 0x020) | |
3445 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3446 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3447 | #else | |
3448 | # define ISLOWER(c) \ | |
3449 | (('a' <= (c) && (c) <= 'i') \ | |
3450 | || ('j' <= (c) && (c) <= 'r') \ | |
3451 | || ('s' <= (c) && (c) <= 'z')) | |
3452 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3453 | #endif | |
3454 | ||
3455 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3456 | int | |
3457 | main () | |
3458 | { | |
3459 | int i; | |
3460 | for (i = 0; i < 256; i++) | |
3461 | if (XOR (islower (i), ISLOWER (i)) | |
3462 | || toupper (i) != TOUPPER (i)) | |
3463 | exit(2); | |
3464 | exit (0); | |
3465 | } | |
3466 | _ACEOF | |
3467 | rm -f conftest$ac_exeext | |
3468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3469 | (eval $ac_link) 2>&5 | |
3470 | ac_status=$? | |
3471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3472 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3474 | (eval $ac_try) 2>&5 | |
3475 | ac_status=$? | |
3476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3477 | (exit $ac_status); }; }; then | |
3478 | : | |
3479 | else | |
3480 | echo "$as_me: program exited with status $ac_status" >&5 | |
3481 | echo "$as_me: failed program was:" >&5 | |
3482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3483 | ||
3484 | ( exit $ac_status ) | |
3485 | ac_cv_header_stdc=no | |
3486 | fi | |
3487 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3488 | fi | |
3489 | fi | |
3490 | fi | |
3491 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3492 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3493 | if test $ac_cv_header_stdc = yes; then | |
3494 | ||
3495 | cat >>confdefs.h <<\_ACEOF | |
3496 | #define STDC_HEADERS 1 | |
3497 | _ACEOF | |
3498 | ||
3499 | fi | |
3500 | ||
3501 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3502 | ||
3503 | ||
3504 | ||
3505 | ||
3506 | ||
3507 | ||
3508 | ||
3509 | ||
3510 | ||
3511 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3512 | inttypes.h stdint.h unistd.h | |
3513 | do | |
3514 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3515 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3516 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3517 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3519 | else | |
3520 | cat >conftest.$ac_ext <<_ACEOF | |
3521 | /* confdefs.h. */ | |
3522 | _ACEOF | |
3523 | cat confdefs.h >>conftest.$ac_ext | |
3524 | cat >>conftest.$ac_ext <<_ACEOF | |
3525 | /* end confdefs.h. */ | |
3526 | $ac_includes_default | |
3527 | ||
3528 | #include <$ac_header> | |
3529 | _ACEOF | |
3530 | rm -f conftest.$ac_objext | |
3531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3532 | (eval $ac_compile) 2>conftest.er1 | |
3533 | ac_status=$? | |
3534 | grep -v '^ *+' conftest.er1 >conftest.err | |
3535 | rm -f conftest.er1 | |
3536 | cat conftest.err >&5 | |
3537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3538 | (exit $ac_status); } && | |
3539 | { ac_try='test -z "$ac_c_werror_flag" | |
3540 | || test ! -s conftest.err' | |
3541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3542 | (eval $ac_try) 2>&5 | |
3543 | ac_status=$? | |
3544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3545 | (exit $ac_status); }; } && | |
3546 | { ac_try='test -s conftest.$ac_objext' | |
3547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3548 | (eval $ac_try) 2>&5 | |
3549 | ac_status=$? | |
3550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3551 | (exit $ac_status); }; }; then | |
3552 | eval "$as_ac_Header=yes" | |
3553 | else | |
3554 | echo "$as_me: failed program was:" >&5 | |
3555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3556 | ||
3557 | eval "$as_ac_Header=no" | |
3558 | fi | |
3559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3560 | fi | |
3561 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3562 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3563 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3564 | cat >>confdefs.h <<_ACEOF | |
3565 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3566 | _ACEOF | |
3567 | ||
3568 | fi | |
3569 | ||
3570 | done | |
3571 | ||
3572 | ||
3573 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
3574 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
3575 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
3576 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
3577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3578 | fi | |
3579 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
3580 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
3581 | else | |
3582 | # Is the header compilable? | |
3583 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 | |
3584 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 | |
3585 | cat >conftest.$ac_ext <<_ACEOF | |
3586 | /* confdefs.h. */ | |
3587 | _ACEOF | |
3588 | cat confdefs.h >>conftest.$ac_ext | |
3589 | cat >>conftest.$ac_ext <<_ACEOF | |
3590 | /* end confdefs.h. */ | |
3591 | $ac_includes_default | |
3592 | #include <minix/config.h> | |
3593 | _ACEOF | |
3594 | rm -f conftest.$ac_objext | |
3595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3596 | (eval $ac_compile) 2>conftest.er1 | |
3597 | ac_status=$? | |
3598 | grep -v '^ *+' conftest.er1 >conftest.err | |
3599 | rm -f conftest.er1 | |
3600 | cat conftest.err >&5 | |
3601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3602 | (exit $ac_status); } && | |
3603 | { ac_try='test -z "$ac_c_werror_flag" | |
3604 | || test ! -s conftest.err' | |
3605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3606 | (eval $ac_try) 2>&5 | |
3607 | ac_status=$? | |
3608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3609 | (exit $ac_status); }; } && | |
3610 | { ac_try='test -s conftest.$ac_objext' | |
3611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3612 | (eval $ac_try) 2>&5 | |
3613 | ac_status=$? | |
3614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3615 | (exit $ac_status); }; }; then | |
3616 | ac_header_compiler=yes | |
3617 | else | |
3618 | echo "$as_me: failed program was:" >&5 | |
3619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3620 | ||
3621 | ac_header_compiler=no | |
3622 | fi | |
3623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3624 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3625 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3626 | ||
3627 | # Is the header present? | |
3628 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 | |
3629 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 | |
3630 | cat >conftest.$ac_ext <<_ACEOF | |
3631 | /* confdefs.h. */ | |
3632 | _ACEOF | |
3633 | cat confdefs.h >>conftest.$ac_ext | |
3634 | cat >>conftest.$ac_ext <<_ACEOF | |
3635 | /* end confdefs.h. */ | |
3636 | #include <minix/config.h> | |
3637 | _ACEOF | |
3638 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3639 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3640 | ac_status=$? | |
3641 | grep -v '^ *+' conftest.er1 >conftest.err | |
3642 | rm -f conftest.er1 | |
3643 | cat conftest.err >&5 | |
3644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3645 | (exit $ac_status); } >/dev/null; then | |
3646 | if test -s conftest.err; then | |
3647 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3648 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3649 | else | |
3650 | ac_cpp_err= | |
3651 | fi | |
3652 | else | |
3653 | ac_cpp_err=yes | |
3654 | fi | |
3655 | if test -z "$ac_cpp_err"; then | |
3656 | ac_header_preproc=yes | |
3657 | else | |
3658 | echo "$as_me: failed program was:" >&5 | |
3659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3660 | ||
3661 | ac_header_preproc=no | |
3662 | fi | |
e624d0f7 | 3663 | rm -f conftest.err conftest.$ac_ext |
a82a04b3 CR |
3664 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3665 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3666 | ||
3667 | # So? What about this header? | |
3668 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3669 | yes:no: ) | |
3670 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3671 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3672 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 | |
3673 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
3674 | ac_header_preproc=yes | |
3675 | ;; | |
3676 | no:yes:* ) | |
3677 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 | |
3678 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
3679 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
3680 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
3681 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
3682 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
3683 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
3684 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
3685 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
3686 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
3687 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 | |
3688 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
3689 | ( | |
3690 | cat <<\_ASBOX | |
3691 | ## ------------------------------- ## | |
3692 | ## Report this to bug-bash@gnu.org ## | |
3693 | ## ------------------------------- ## | |
3694 | _ASBOX | |
3695 | ) | | |
3696 | sed "s/^/$as_me: WARNING: /" >&2 | |
3697 | ;; | |
3698 | esac | |
3699 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
3700 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
3701 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
3702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3703 | else | |
3704 | ac_cv_header_minix_config_h=$ac_header_preproc | |
e624d0f7 | 3705 | fi |
a82a04b3 | 3706 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
e624d0f7 | 3707 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
a82a04b3 CR |
3708 | |
3709 | fi | |
e624d0f7 CR |
3710 | if test $ac_cv_header_minix_config_h = yes; then |
3711 | MINIX=yes | |
ccc6cda3 | 3712 | else |
e624d0f7 | 3713 | MINIX= |
ccc6cda3 | 3714 | fi |
545f34cf | 3715 | |
a82a04b3 | 3716 | |
e624d0f7 | 3717 | if test "$MINIX" = yes; then |
545f34cf | 3718 | |
a82a04b3 | 3719 | cat >>confdefs.h <<\_ACEOF |
e624d0f7 | 3720 | #define _POSIX_SOURCE 1 |
a82a04b3 CR |
3721 | _ACEOF |
3722 | ||
545f34cf | 3723 | |
a82a04b3 | 3724 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 3725 | #define _POSIX_1_SOURCE 2 |
a82a04b3 CR |
3726 | _ACEOF |
3727 | ||
ccc6cda3 | 3728 | |
a82a04b3 | 3729 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 3730 | #define _MINIX 1 |
a82a04b3 | 3731 | _ACEOF |
ccc6cda3 JA |
3732 | |
3733 | fi | |
3734 | ||
a82a04b3 CR |
3735 | |
3736 | ||
f73dda09 JA |
3737 | case $host_os in |
3738 | *cygwin* ) CYGWIN=yes;; | |
a82a04b3 | 3739 | * ) CYGWIN=no;; |
f73dda09 JA |
3740 | esac |
3741 | ||
a82a04b3 | 3742 | |
f73dda09 JA |
3743 | case $host_os in |
3744 | *mingw32* ) MINGW32=yes;; | |
a82a04b3 | 3745 | * ) MINGW32=no;; |
f73dda09 JA |
3746 | esac |
3747 | ||
a82a04b3 | 3748 | |
f73dda09 JA |
3749 | # Check whether --enable-largefile or --disable-largefile was given. |
3750 | if test "${enable_largefile+set}" = set; then | |
3751 | enableval="$enable_largefile" | |
3752 | ||
3753 | fi; | |
3754 | if test "$enable_largefile" != no; then | |
ccc6cda3 | 3755 | |
a82a04b3 | 3756 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
f73dda09 JA |
3757 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 |
3758 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
3759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bb70624e | 3760 | else |
f73dda09 JA |
3761 | ac_cv_sys_largefile_CC=no |
3762 | if test "$GCC" != yes; then | |
3763 | ac_save_CC=$CC | |
3764 | while :; do | |
3765 | # IRIX 6.2 and later do not support large files by default, | |
3766 | # so use the C compiler's -n32 option if that helps. | |
a82a04b3 CR |
3767 | cat >conftest.$ac_ext <<_ACEOF |
3768 | /* confdefs.h. */ | |
3769 | _ACEOF | |
3770 | cat confdefs.h >>conftest.$ac_ext | |
3771 | cat >>conftest.$ac_ext <<_ACEOF | |
3772 | /* end confdefs.h. */ | |
f73dda09 JA |
3773 | #include <sys/types.h> |
3774 | /* Check that off_t can represent 2**63 - 1 correctly. | |
3775 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3776 | since some C++ compilers masquerading as C compilers | |
3777 | incorrectly reject 9223372036854775807. */ | |
3778 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3779 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3780 | && LARGE_OFF_T % 2147483647 == 1) | |
3781 | ? 1 : -1]; | |
3782 | int | |
3783 | main () | |
3784 | { | |
bb70624e | 3785 | |
f73dda09 JA |
3786 | ; |
3787 | return 0; | |
3788 | } | |
3789 | _ACEOF | |
3790 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
3791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3792 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 3793 | ac_status=$? |
a82a04b3 CR |
3794 | grep -v '^ *+' conftest.er1 >conftest.err |
3795 | rm -f conftest.er1 | |
3796 | cat conftest.err >&5 | |
3797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 3798 | (exit $ac_status); } && |
a82a04b3 CR |
3799 | { ac_try='test -z "$ac_c_werror_flag" |
3800 | || test ! -s conftest.err' | |
3801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3802 | (eval $ac_try) 2>&5 | |
3803 | ac_status=$? | |
3804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3805 | (exit $ac_status); }; } && | |
3806 | { ac_try='test -s conftest.$ac_objext' | |
3807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
3808 | (eval $ac_try) 2>&5 |
3809 | ac_status=$? | |
a82a04b3 | 3810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
3811 | (exit $ac_status); }; }; then |
3812 | break | |
bb70624e | 3813 | else |
f73dda09 | 3814 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
3815 | sed 's/^/| /' conftest.$ac_ext >&5 |
3816 | ||
f73dda09 | 3817 | fi |
a82a04b3 | 3818 | rm -f conftest.err conftest.$ac_objext |
f73dda09 JA |
3819 | CC="$CC -n32" |
3820 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
3821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3822 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 3823 | ac_status=$? |
a82a04b3 CR |
3824 | grep -v '^ *+' conftest.er1 >conftest.err |
3825 | rm -f conftest.er1 | |
3826 | cat conftest.err >&5 | |
3827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 3828 | (exit $ac_status); } && |
a82a04b3 CR |
3829 | { ac_try='test -z "$ac_c_werror_flag" |
3830 | || test ! -s conftest.err' | |
3831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
3832 | (eval $ac_try) 2>&5 |
3833 | ac_status=$? | |
a82a04b3 CR |
3834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3835 | (exit $ac_status); }; } && | |
3836 | { ac_try='test -s conftest.$ac_objext' | |
3837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3838 | (eval $ac_try) 2>&5 | |
3839 | ac_status=$? | |
3840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
3841 | (exit $ac_status); }; }; then |
3842 | ac_cv_sys_largefile_CC=' -n32'; break | |
3843 | else | |
3844 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
3845 | sed 's/^/| /' conftest.$ac_ext >&5 |
3846 | ||
f73dda09 | 3847 | fi |
a82a04b3 CR |
3848 | rm -f conftest.err conftest.$ac_objext |
3849 | break | |
f73dda09 JA |
3850 | done |
3851 | CC=$ac_save_CC | |
3852 | rm -f conftest.$ac_ext | |
3853 | fi | |
bb70624e | 3854 | fi |
a82a04b3 | 3855 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
f73dda09 JA |
3856 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 |
3857 | if test "$ac_cv_sys_largefile_CC" != no; then | |
3858 | CC=$CC$ac_cv_sys_largefile_CC | |
3859 | fi | |
bb70624e | 3860 | |
a82a04b3 | 3861 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
f73dda09 JA |
3862 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 |
3863 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
3864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bb70624e | 3865 | else |
f73dda09 JA |
3866 | while :; do |
3867 | ac_cv_sys_file_offset_bits=no | |
3868 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
3869 | /* confdefs.h. */ |
3870 | _ACEOF | |
3871 | cat confdefs.h >>conftest.$ac_ext | |
3872 | cat >>conftest.$ac_ext <<_ACEOF | |
3873 | /* end confdefs.h. */ | |
f73dda09 JA |
3874 | #include <sys/types.h> |
3875 | /* Check that off_t can represent 2**63 - 1 correctly. | |
3876 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3877 | since some C++ compilers masquerading as C compilers | |
3878 | incorrectly reject 9223372036854775807. */ | |
3879 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3880 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3881 | && LARGE_OFF_T % 2147483647 == 1) | |
3882 | ? 1 : -1]; | |
3883 | int | |
3884 | main () | |
3885 | { | |
bb70624e | 3886 | |
f73dda09 JA |
3887 | ; |
3888 | return 0; | |
3889 | } | |
3890 | _ACEOF | |
3891 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
3892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3893 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 3894 | ac_status=$? |
a82a04b3 CR |
3895 | grep -v '^ *+' conftest.er1 >conftest.err |
3896 | rm -f conftest.er1 | |
3897 | cat conftest.err >&5 | |
3898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 3899 | (exit $ac_status); } && |
a82a04b3 CR |
3900 | { ac_try='test -z "$ac_c_werror_flag" |
3901 | || test ! -s conftest.err' | |
3902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
3903 | (eval $ac_try) 2>&5 |
3904 | ac_status=$? | |
a82a04b3 CR |
3905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3906 | (exit $ac_status); }; } && | |
3907 | { ac_try='test -s conftest.$ac_objext' | |
3908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3909 | (eval $ac_try) 2>&5 | |
3910 | ac_status=$? | |
3911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
3912 | (exit $ac_status); }; }; then |
3913 | break | |
bb70624e | 3914 | else |
f73dda09 | 3915 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
3916 | sed 's/^/| /' conftest.$ac_ext >&5 |
3917 | ||
bb70624e | 3918 | fi |
a82a04b3 | 3919 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 3920 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
3921 | /* confdefs.h. */ |
3922 | _ACEOF | |
3923 | cat confdefs.h >>conftest.$ac_ext | |
3924 | cat >>conftest.$ac_ext <<_ACEOF | |
3925 | /* end confdefs.h. */ | |
f73dda09 JA |
3926 | #define _FILE_OFFSET_BITS 64 |
3927 | #include <sys/types.h> | |
3928 | /* Check that off_t can represent 2**63 - 1 correctly. | |
3929 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3930 | since some C++ compilers masquerading as C compilers | |
3931 | incorrectly reject 9223372036854775807. */ | |
3932 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3933 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3934 | && LARGE_OFF_T % 2147483647 == 1) | |
3935 | ? 1 : -1]; | |
3936 | int | |
3937 | main () | |
3938 | { | |
bb70624e | 3939 | |
f73dda09 JA |
3940 | ; |
3941 | return 0; | |
3942 | } | |
3943 | _ACEOF | |
3944 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
3945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3946 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 3947 | ac_status=$? |
a82a04b3 CR |
3948 | grep -v '^ *+' conftest.er1 >conftest.err |
3949 | rm -f conftest.er1 | |
3950 | cat conftest.err >&5 | |
3951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 3952 | (exit $ac_status); } && |
a82a04b3 CR |
3953 | { ac_try='test -z "$ac_c_werror_flag" |
3954 | || test ! -s conftest.err' | |
3955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3956 | (eval $ac_try) 2>&5 | |
3957 | ac_status=$? | |
3958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3959 | (exit $ac_status); }; } && | |
3960 | { ac_try='test -s conftest.$ac_objext' | |
3961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
3962 | (eval $ac_try) 2>&5 |
3963 | ac_status=$? | |
a82a04b3 | 3964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
3965 | (exit $ac_status); }; }; then |
3966 | ac_cv_sys_file_offset_bits=64; break | |
3967 | else | |
3968 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
3969 | sed 's/^/| /' conftest.$ac_ext >&5 |
3970 | ||
f73dda09 | 3971 | fi |
a82a04b3 | 3972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 JA |
3973 | break |
3974 | done | |
3975 | fi | |
a82a04b3 | 3976 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
f73dda09 JA |
3977 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 |
3978 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
bb70624e | 3979 | |
a82a04b3 | 3980 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 3981 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
a82a04b3 | 3982 | _ACEOF |
bb70624e | 3983 | |
f73dda09 JA |
3984 | fi |
3985 | rm -f conftest* | |
a82a04b3 | 3986 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
f73dda09 JA |
3987 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 |
3988 | if test "${ac_cv_sys_large_files+set}" = set; then | |
3989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bb70624e | 3990 | else |
f73dda09 JA |
3991 | while :; do |
3992 | ac_cv_sys_large_files=no | |
3993 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
3994 | /* confdefs.h. */ |
3995 | _ACEOF | |
3996 | cat confdefs.h >>conftest.$ac_ext | |
3997 | cat >>conftest.$ac_ext <<_ACEOF | |
3998 | /* end confdefs.h. */ | |
f73dda09 JA |
3999 | #include <sys/types.h> |
4000 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4001 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4002 | since some C++ compilers masquerading as C compilers | |
4003 | incorrectly reject 9223372036854775807. */ | |
4004 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4005 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4006 | && LARGE_OFF_T % 2147483647 == 1) | |
4007 | ? 1 : -1]; | |
4008 | int | |
4009 | main () | |
4010 | { | |
4011 | ||
4012 | ; | |
4013 | return 0; | |
4014 | } | |
4015 | _ACEOF | |
4016 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
4017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4018 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 4019 | ac_status=$? |
a82a04b3 CR |
4020 | grep -v '^ *+' conftest.er1 >conftest.err |
4021 | rm -f conftest.er1 | |
4022 | cat conftest.err >&5 | |
4023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 4024 | (exit $ac_status); } && |
a82a04b3 CR |
4025 | { ac_try='test -z "$ac_c_werror_flag" |
4026 | || test ! -s conftest.err' | |
4027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4028 | (eval $ac_try) 2>&5 | |
4029 | ac_status=$? | |
4030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4031 | (exit $ac_status); }; } && | |
4032 | { ac_try='test -s conftest.$ac_objext' | |
4033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
4034 | (eval $ac_try) 2>&5 |
4035 | ac_status=$? | |
a82a04b3 | 4036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
4037 | (exit $ac_status); }; }; then |
4038 | break | |
bb70624e | 4039 | else |
f73dda09 | 4040 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
4041 | sed 's/^/| /' conftest.$ac_ext >&5 |
4042 | ||
bb70624e | 4043 | fi |
a82a04b3 | 4044 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 4045 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
4046 | /* confdefs.h. */ |
4047 | _ACEOF | |
4048 | cat confdefs.h >>conftest.$ac_ext | |
4049 | cat >>conftest.$ac_ext <<_ACEOF | |
4050 | /* end confdefs.h. */ | |
f73dda09 JA |
4051 | #define _LARGE_FILES 1 |
4052 | #include <sys/types.h> | |
4053 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4054 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4055 | since some C++ compilers masquerading as C compilers | |
4056 | incorrectly reject 9223372036854775807. */ | |
4057 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4058 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4059 | && LARGE_OFF_T % 2147483647 == 1) | |
4060 | ? 1 : -1]; | |
4061 | int | |
4062 | main () | |
4063 | { | |
bb70624e | 4064 | |
f73dda09 JA |
4065 | ; |
4066 | return 0; | |
4067 | } | |
4068 | _ACEOF | |
4069 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
4070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4071 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 4072 | ac_status=$? |
a82a04b3 CR |
4073 | grep -v '^ *+' conftest.er1 >conftest.err |
4074 | rm -f conftest.er1 | |
4075 | cat conftest.err >&5 | |
4076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 4077 | (exit $ac_status); } && |
a82a04b3 CR |
4078 | { ac_try='test -z "$ac_c_werror_flag" |
4079 | || test ! -s conftest.err' | |
4080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4081 | (eval $ac_try) 2>&5 | |
4082 | ac_status=$? | |
4083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4084 | (exit $ac_status); }; } && | |
4085 | { ac_try='test -s conftest.$ac_objext' | |
4086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
4087 | (eval $ac_try) 2>&5 |
4088 | ac_status=$? | |
a82a04b3 | 4089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
4090 | (exit $ac_status); }; }; then |
4091 | ac_cv_sys_large_files=1; break | |
4092 | else | |
4093 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
4094 | sed 's/^/| /' conftest.$ac_ext >&5 |
4095 | ||
f73dda09 | 4096 | fi |
a82a04b3 | 4097 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 JA |
4098 | break |
4099 | done | |
4100 | fi | |
a82a04b3 | 4101 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
f73dda09 JA |
4102 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 |
4103 | if test "$ac_cv_sys_large_files" != no; then | |
bb70624e | 4104 | |
a82a04b3 | 4105 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 4106 | #define _LARGE_FILES $ac_cv_sys_large_files |
a82a04b3 | 4107 | _ACEOF |
bb70624e | 4108 | |
f73dda09 JA |
4109 | fi |
4110 | rm -f conftest* | |
4111 | fi | |
cce855bc | 4112 | |
a82a04b3 CR |
4113 | |
4114 | ||
b72432fd JA |
4115 | SIGNAMES_H=lsignames.h |
4116 | ||
a82a04b3 CR |
4117 | |
4118 | ||
cce855bc JA |
4119 | if test "x$cross_compiling" = "xyes"; then |
4120 | case "${host}" in | |
28ef6c31 | 4121 | *-cygwin*) |
cce855bc | 4122 | cross_cache=${srcdir}/cross-build/cygwin32.cache |
b72432fd | 4123 | SIGNAMES_H='$(srcdir)/cross-build/win32sig.h' |
cce855bc | 4124 | ;; |
9607141c CR |
4125 | *-mingw*) |
4126 | cross_cache=${srcdir}/cross-build/cygwin32.cache | |
4127 | ;; | |
b72432fd JA |
4128 | i[3456]86-*-beos*) |
4129 | cross_cache=${srcdir}/cross-build/x86-beos.cache | |
4130 | SIGNAMES_H='${srcdir}/cross-build/beos-sig.h' | |
4131 | ;; | |
4132 | *) echo "configure: cross-compiling for $host is not supported" >&2 | |
cce855bc JA |
4133 | ;; |
4134 | esac | |
b72432fd JA |
4135 | if test -n "${cross_cache}" && test -r "${cross_cache}"; then |
4136 | echo "loading cross-build cache file ${cross_cache}" | |
4137 | . ${cross_cache} | |
4138 | fi | |
4139 | unset cross_cache | |
9607141c CR |
4140 | CROSS_COMPILE='-DCROSS_COMPILING' |
4141 | ||
cce855bc JA |
4142 | fi |
4143 | ||
a82a04b3 | 4144 | |
cce855bc JA |
4145 | if test -z "$CC_FOR_BUILD"; then |
4146 | if test "x$cross_compiling" = "xno"; then | |
4147 | CC_FOR_BUILD='$(CC)' | |
4148 | else | |
4149 | CC_FOR_BUILD=gcc | |
4150 | fi | |
4151 | fi | |
4152 | ||
a82a04b3 CR |
4153 | |
4154 | ||
4155 | test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1 | |
ccc6cda3 JA |
4156 | |
4157 | test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2" | |
4158 | ||
cce855bc JA |
4159 | if test "$opt_profiling" = "yes"; then |
4160 | PROFILE_FLAGS=-pg | |
b72432fd JA |
4161 | case "$host_os" in |
4162 | solaris2*) ;; | |
4163 | *) opt_static_link=yes ;; | |
4164 | esac | |
7117c2d2 | 4165 | DEBUG= MALLOC_DEBUG= |
cce855bc JA |
4166 | fi |
4167 | ||
4168 | if test "$opt_static_link" = yes; then | |
f73dda09 JA |
4169 | # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2 |
4170 | if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then | |
b72432fd | 4171 | STATIC_LD="-static" |
f73dda09 JA |
4172 | case "$host_os" in |
4173 | solaris2*) ;; | |
4174 | *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental | |
4175 | esac | |
cce855bc JA |
4176 | fi |
4177 | fi | |
4178 | ||
da5b17cd CR |
4179 | if test "X$cross_compiling" = "Xno"; then |
4180 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"} | |
4181 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'} | |
4182 | else | |
4183 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""} | |
4184 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""} | |
4185 | fi | |
4186 | ||
7117c2d2 JA |
4187 | test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g" |
4188 | ||
a82a04b3 CR |
4189 | |
4190 | ||
4191 | ||
4192 | ||
4193 | ||
4194 | ||
4195 | ||
4196 | ||
4197 | ||
f73dda09 | 4198 | if test $ac_cv_c_compiler_gnu = yes; then |
a82a04b3 | 4199 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
f73dda09 JA |
4200 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 |
4201 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
4202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 JA |
4203 | else |
4204 | ac_pattern="Autoconf.*'x'" | |
f73dda09 | 4205 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
4206 | /* confdefs.h. */ |
4207 | _ACEOF | |
4208 | cat confdefs.h >>conftest.$ac_ext | |
4209 | cat >>conftest.$ac_ext <<_ACEOF | |
4210 | /* end confdefs.h. */ | |
ccc6cda3 JA |
4211 | #include <sgtty.h> |
4212 | Autoconf TIOCGETP | |
f73dda09 | 4213 | _ACEOF |
ccc6cda3 | 4214 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
a82a04b3 | 4215 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
ccc6cda3 JA |
4216 | ac_cv_prog_gcc_traditional=yes |
4217 | else | |
ccc6cda3 JA |
4218 | ac_cv_prog_gcc_traditional=no |
4219 | fi | |
4220 | rm -f conftest* | |
4221 | ||
a82a04b3 | 4222 | |
ccc6cda3 | 4223 | if test $ac_cv_prog_gcc_traditional = no; then |
f73dda09 | 4224 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
4225 | /* confdefs.h. */ |
4226 | _ACEOF | |
4227 | cat confdefs.h >>conftest.$ac_ext | |
4228 | cat >>conftest.$ac_ext <<_ACEOF | |
4229 | /* end confdefs.h. */ | |
ccc6cda3 JA |
4230 | #include <termio.h> |
4231 | Autoconf TCGETA | |
f73dda09 | 4232 | _ACEOF |
ccc6cda3 | 4233 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
a82a04b3 | 4234 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
ccc6cda3 JA |
4235 | ac_cv_prog_gcc_traditional=yes |
4236 | fi | |
4237 | rm -f conftest* | |
4238 | ||
4239 | fi | |
4240 | fi | |
a82a04b3 | 4241 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
f73dda09 | 4242 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 |
ccc6cda3 JA |
4243 | if test $ac_cv_prog_gcc_traditional = yes; then |
4244 | CC="$CC -traditional" | |
4245 | fi | |
4246 | fi | |
4247 | ||
a82a04b3 CR |
4248 | |
4249 | ||
f73dda09 | 4250 | if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no" |
b72432fd | 4251 | then |
f73dda09 JA |
4252 | # If the user specified --with-installed-readline=PREFIX and PREFIX |
4253 | # is not `yes', set ac_cv_rl_prefix to PREFIX | |
4254 | test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline | |
b72432fd | 4255 | |
a82a04b3 | 4256 | |
bb70624e JA |
4257 | if test "X$bash_cv_termcap_lib" = "X"; then |
4258 | _bash_needmsg=yes | |
4259 | else | |
a82a04b3 | 4260 | echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
f73dda09 | 4261 | echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6 |
bb70624e JA |
4262 | _bash_needmsg= |
4263 | fi | |
f73dda09 JA |
4264 | if test "${bash_cv_termcap_lib+set}" = set; then |
4265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bb70624e | 4266 | else |
a82a04b3 | 4267 | echo "$as_me:$LINENO: checking for tgetent" >&5 |
d3a24ed2 CR |
4268 | echo $ECHO_N "checking for tgetent... $ECHO_C" >&6 |
4269 | if test "${ac_cv_func_tgetent+set}" = set; then | |
4270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4271 | else | |
4272 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
4273 | /* confdefs.h. */ |
4274 | _ACEOF | |
4275 | cat confdefs.h >>conftest.$ac_ext | |
4276 | cat >>conftest.$ac_ext <<_ACEOF | |
4277 | /* end confdefs.h. */ | |
4278 | /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent. | |
4279 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4280 | #define tgetent innocuous_tgetent | |
4281 | ||
d3a24ed2 | 4282 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
4283 | which can conflict with char tgetent (); below. |
4284 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4285 | <limits.h> exists even on freestanding compilers. */ | |
4286 | ||
4287 | #ifdef __STDC__ | |
4288 | # include <limits.h> | |
4289 | #else | |
4290 | # include <assert.h> | |
4291 | #endif | |
4292 | ||
4293 | #undef tgetent | |
4294 | ||
d3a24ed2 CR |
4295 | /* Override any gcc2 internal prototype to avoid an error. */ |
4296 | #ifdef __cplusplus | |
4297 | extern "C" | |
a82a04b3 | 4298 | { |
d3a24ed2 CR |
4299 | #endif |
4300 | /* We use char because int might match the return type of a gcc2 | |
4301 | builtin and then its argument prototype would still apply. */ | |
4302 | char tgetent (); | |
d3a24ed2 CR |
4303 | /* The GNU C library defines this for functions which it implements |
4304 | to always fail with ENOSYS. Some functions are actually named | |
4305 | something starting with __ and the normal name is an alias. */ | |
4306 | #if defined (__stub_tgetent) || defined (__stub___tgetent) | |
4307 | choke me | |
4308 | #else | |
a82a04b3 CR |
4309 | char (*f) () = tgetent; |
4310 | #endif | |
4311 | #ifdef __cplusplus | |
4312 | } | |
d3a24ed2 CR |
4313 | #endif |
4314 | ||
a82a04b3 CR |
4315 | int |
4316 | main () | |
4317 | { | |
4318 | return f != tgetent; | |
d3a24ed2 CR |
4319 | ; |
4320 | return 0; | |
4321 | } | |
4322 | _ACEOF | |
4323 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
4324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4325 | (eval $ac_link) 2>conftest.er1 | |
d3a24ed2 | 4326 | ac_status=$? |
a82a04b3 CR |
4327 | grep -v '^ *+' conftest.er1 >conftest.err |
4328 | rm -f conftest.er1 | |
4329 | cat conftest.err >&5 | |
4330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d3a24ed2 | 4331 | (exit $ac_status); } && |
a82a04b3 CR |
4332 | { ac_try='test -z "$ac_c_werror_flag" |
4333 | || test ! -s conftest.err' | |
4334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4335 | (eval $ac_try) 2>&5 | |
4336 | ac_status=$? | |
4337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4338 | (exit $ac_status); }; } && | |
4339 | { ac_try='test -s conftest$ac_exeext' | |
4340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
d3a24ed2 CR |
4341 | (eval $ac_try) 2>&5 |
4342 | ac_status=$? | |
a82a04b3 | 4343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d3a24ed2 CR |
4344 | (exit $ac_status); }; }; then |
4345 | ac_cv_func_tgetent=yes | |
4346 | else | |
4347 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
4348 | sed 's/^/| /' conftest.$ac_ext >&5 |
4349 | ||
d3a24ed2 CR |
4350 | ac_cv_func_tgetent=no |
4351 | fi | |
a82a04b3 CR |
4352 | rm -f conftest.err conftest.$ac_objext \ |
4353 | conftest$ac_exeext conftest.$ac_ext | |
d3a24ed2 | 4354 | fi |
a82a04b3 | 4355 | echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5 |
d3a24ed2 CR |
4356 | echo "${ECHO_T}$ac_cv_func_tgetent" >&6 |
4357 | if test $ac_cv_func_tgetent = yes; then | |
4358 | bash_cv_termcap_lib=libc | |
4359 | else | |
a82a04b3 | 4360 | echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 |
f73dda09 JA |
4361 | echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6 |
4362 | if test "${ac_cv_lib_termcap_tgetent+set}" = set; then | |
4363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bb70624e | 4364 | else |
f73dda09 | 4365 | ac_check_lib_save_LIBS=$LIBS |
bb70624e | 4366 | LIBS="-ltermcap $LIBS" |
f73dda09 | 4367 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
4368 | /* confdefs.h. */ |
4369 | _ACEOF | |
4370 | cat confdefs.h >>conftest.$ac_ext | |
4371 | cat >>conftest.$ac_ext <<_ACEOF | |
4372 | /* end confdefs.h. */ | |
f73dda09 | 4373 | |
bb70624e | 4374 | /* Override any gcc2 internal prototype to avoid an error. */ |
f73dda09 JA |
4375 | #ifdef __cplusplus |
4376 | extern "C" | |
4377 | #endif | |
bb70624e | 4378 | /* We use char because int might match the return type of a gcc2 |
f73dda09 JA |
4379 | builtin and then its argument prototype would still apply. */ |
4380 | char tgetent (); | |
4381 | int | |
4382 | main () | |
4383 | { | |
4384 | tgetent (); | |
4385 | ; | |
4386 | return 0; | |
4387 | } | |
4388 | _ACEOF | |
4389 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
4390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4391 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 4392 | ac_status=$? |
a82a04b3 CR |
4393 | grep -v '^ *+' conftest.er1 >conftest.err |
4394 | rm -f conftest.er1 | |
4395 | cat conftest.err >&5 | |
4396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 4397 | (exit $ac_status); } && |
a82a04b3 CR |
4398 | { ac_try='test -z "$ac_c_werror_flag" |
4399 | || test ! -s conftest.err' | |
4400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4401 | (eval $ac_try) 2>&5 | |
4402 | ac_status=$? | |
4403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4404 | (exit $ac_status); }; } && | |
4405 | { ac_try='test -s conftest$ac_exeext' | |
4406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
4407 | (eval $ac_try) 2>&5 |
4408 | ac_status=$? | |
a82a04b3 | 4409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
4410 | (exit $ac_status); }; }; then |
4411 | ac_cv_lib_termcap_tgetent=yes | |
4412 | else | |
4413 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
4414 | sed 's/^/| /' conftest.$ac_ext >&5 |
4415 | ||
f73dda09 JA |
4416 | ac_cv_lib_termcap_tgetent=no |
4417 | fi | |
a82a04b3 CR |
4418 | rm -f conftest.err conftest.$ac_objext \ |
4419 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 JA |
4420 | LIBS=$ac_check_lib_save_LIBS |
4421 | fi | |
a82a04b3 | 4422 | echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 |
f73dda09 JA |
4423 | echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6 |
4424 | if test $ac_cv_lib_termcap_tgetent = yes; then | |
bb70624e JA |
4425 | bash_cv_termcap_lib=libtermcap |
4426 | else | |
a82a04b3 | 4427 | echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5 |
f73dda09 JA |
4428 | echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6 |
4429 | if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then | |
4430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bb70624e | 4431 | else |
f73dda09 JA |
4432 | ac_check_lib_save_LIBS=$LIBS |
4433 | LIBS="-ltinfo $LIBS" | |
4434 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
4435 | /* confdefs.h. */ |
4436 | _ACEOF | |
4437 | cat confdefs.h >>conftest.$ac_ext | |
4438 | cat >>conftest.$ac_ext <<_ACEOF | |
4439 | /* end confdefs.h. */ | |
f73dda09 | 4440 | |
bb70624e | 4441 | /* Override any gcc2 internal prototype to avoid an error. */ |
f73dda09 JA |
4442 | #ifdef __cplusplus |
4443 | extern "C" | |
4444 | #endif | |
bb70624e | 4445 | /* We use char because int might match the return type of a gcc2 |
f73dda09 JA |
4446 | builtin and then its argument prototype would still apply. */ |
4447 | char tgetent (); | |
4448 | int | |
4449 | main () | |
4450 | { | |
4451 | tgetent (); | |
4452 | ; | |
4453 | return 0; | |
4454 | } | |
4455 | _ACEOF | |
4456 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
4457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4458 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 4459 | ac_status=$? |
a82a04b3 CR |
4460 | grep -v '^ *+' conftest.er1 >conftest.err |
4461 | rm -f conftest.er1 | |
4462 | cat conftest.err >&5 | |
4463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 4464 | (exit $ac_status); } && |
a82a04b3 CR |
4465 | { ac_try='test -z "$ac_c_werror_flag" |
4466 | || test ! -s conftest.err' | |
4467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4468 | (eval $ac_try) 2>&5 | |
4469 | ac_status=$? | |
4470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4471 | (exit $ac_status); }; } && | |
4472 | { ac_try='test -s conftest$ac_exeext' | |
4473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
4474 | (eval $ac_try) 2>&5 |
4475 | ac_status=$? | |
a82a04b3 | 4476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
4477 | (exit $ac_status); }; }; then |
4478 | ac_cv_lib_tinfo_tgetent=yes | |
4479 | else | |
4480 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
4481 | sed 's/^/| /' conftest.$ac_ext >&5 |
4482 | ||
f73dda09 JA |
4483 | ac_cv_lib_tinfo_tgetent=no |
4484 | fi | |
a82a04b3 CR |
4485 | rm -f conftest.err conftest.$ac_objext \ |
4486 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 JA |
4487 | LIBS=$ac_check_lib_save_LIBS |
4488 | fi | |
a82a04b3 | 4489 | echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5 |
f73dda09 JA |
4490 | echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6 |
4491 | if test $ac_cv_lib_tinfo_tgetent = yes; then | |
7117c2d2 | 4492 | bash_cv_termcap_lib=libtinfo |
f73dda09 | 4493 | else |
a82a04b3 | 4494 | echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5 |
f73dda09 JA |
4495 | echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6 |
4496 | if test "${ac_cv_lib_curses_tgetent+set}" = set; then | |
4497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4498 | else | |
4499 | ac_check_lib_save_LIBS=$LIBS | |
4500 | LIBS="-lcurses $LIBS" | |
4501 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
4502 | /* confdefs.h. */ |
4503 | _ACEOF | |
4504 | cat confdefs.h >>conftest.$ac_ext | |
4505 | cat >>conftest.$ac_ext <<_ACEOF | |
4506 | /* end confdefs.h. */ | |
b72432fd | 4507 | |
f73dda09 JA |
4508 | /* Override any gcc2 internal prototype to avoid an error. */ |
4509 | #ifdef __cplusplus | |
4510 | extern "C" | |
4511 | #endif | |
4512 | /* We use char because int might match the return type of a gcc2 | |
4513 | builtin and then its argument prototype would still apply. */ | |
4514 | char tgetent (); | |
4515 | int | |
4516 | main () | |
4517 | { | |
4518 | tgetent (); | |
4519 | ; | |
4520 | return 0; | |
4521 | } | |
4522 | _ACEOF | |
4523 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
4524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4525 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 4526 | ac_status=$? |
a82a04b3 CR |
4527 | grep -v '^ *+' conftest.er1 >conftest.err |
4528 | rm -f conftest.er1 | |
4529 | cat conftest.err >&5 | |
4530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 4531 | (exit $ac_status); } && |
a82a04b3 CR |
4532 | { ac_try='test -z "$ac_c_werror_flag" |
4533 | || test ! -s conftest.err' | |
4534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
4535 | (eval $ac_try) 2>&5 |
4536 | ac_status=$? | |
a82a04b3 CR |
4537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4538 | (exit $ac_status); }; } && | |
4539 | { ac_try='test -s conftest$ac_exeext' | |
4540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4541 | (eval $ac_try) 2>&5 | |
4542 | ac_status=$? | |
4543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
4544 | (exit $ac_status); }; }; then |
4545 | ac_cv_lib_curses_tgetent=yes | |
4546 | else | |
4547 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
4548 | sed 's/^/| /' conftest.$ac_ext >&5 |
4549 | ||
f73dda09 JA |
4550 | ac_cv_lib_curses_tgetent=no |
4551 | fi | |
a82a04b3 CR |
4552 | rm -f conftest.err conftest.$ac_objext \ |
4553 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 JA |
4554 | LIBS=$ac_check_lib_save_LIBS |
4555 | fi | |
a82a04b3 | 4556 | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5 |
f73dda09 JA |
4557 | echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6 |
4558 | if test $ac_cv_lib_curses_tgetent = yes; then | |
bb70624e JA |
4559 | bash_cv_termcap_lib=libcurses |
4560 | else | |
a82a04b3 | 4561 | echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 |
f73dda09 JA |
4562 | echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6 |
4563 | if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then | |
4564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bb70624e | 4565 | else |
f73dda09 | 4566 | ac_check_lib_save_LIBS=$LIBS |
bb70624e | 4567 | LIBS="-lncurses $LIBS" |
f73dda09 | 4568 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
4569 | /* confdefs.h. */ |
4570 | _ACEOF | |
4571 | cat confdefs.h >>conftest.$ac_ext | |
4572 | cat >>conftest.$ac_ext <<_ACEOF | |
4573 | /* end confdefs.h. */ | |
f73dda09 | 4574 | |
bb70624e | 4575 | /* Override any gcc2 internal prototype to avoid an error. */ |
f73dda09 JA |
4576 | #ifdef __cplusplus |
4577 | extern "C" | |
4578 | #endif | |
bb70624e | 4579 | /* We use char because int might match the return type of a gcc2 |
f73dda09 JA |
4580 | builtin and then its argument prototype would still apply. */ |
4581 | char tgetent (); | |
4582 | int | |
4583 | main () | |
4584 | { | |
4585 | tgetent (); | |
4586 | ; | |
4587 | return 0; | |
4588 | } | |
4589 | _ACEOF | |
4590 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
4591 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4592 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 4593 | ac_status=$? |
a82a04b3 CR |
4594 | grep -v '^ *+' conftest.er1 >conftest.err |
4595 | rm -f conftest.er1 | |
4596 | cat conftest.err >&5 | |
4597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 4598 | (exit $ac_status); } && |
a82a04b3 CR |
4599 | { ac_try='test -z "$ac_c_werror_flag" |
4600 | || test ! -s conftest.err' | |
4601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4602 | (eval $ac_try) 2>&5 | |
4603 | ac_status=$? | |
4604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4605 | (exit $ac_status); }; } && | |
4606 | { ac_try='test -s conftest$ac_exeext' | |
4607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
4608 | (eval $ac_try) 2>&5 |
4609 | ac_status=$? | |
a82a04b3 | 4610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
4611 | (exit $ac_status); }; }; then |
4612 | ac_cv_lib_ncurses_tgetent=yes | |
4613 | else | |
4614 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
4615 | sed 's/^/| /' conftest.$ac_ext >&5 |
4616 | ||
f73dda09 JA |
4617 | ac_cv_lib_ncurses_tgetent=no |
4618 | fi | |
a82a04b3 CR |
4619 | rm -f conftest.err conftest.$ac_objext \ |
4620 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 JA |
4621 | LIBS=$ac_check_lib_save_LIBS |
4622 | fi | |
a82a04b3 | 4623 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 |
f73dda09 JA |
4624 | echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6 |
4625 | if test $ac_cv_lib_ncurses_tgetent = yes; then | |
4626 | bash_cv_termcap_lib=libncurses | |
bb70624e | 4627 | else |
f73dda09 | 4628 | bash_cv_termcap_lib=gnutermcap |
bb70624e | 4629 | fi |
bb70624e | 4630 | |
bb70624e JA |
4631 | fi |
4632 | ||
4633 | fi | |
4634 | ||
4635 | fi | |
4636 | ||
4637 | fi | |
4638 | ||
d3a24ed2 CR |
4639 | fi |
4640 | ||
bb70624e | 4641 | if test "X$_bash_needmsg" = "Xyes"; then |
a82a04b3 | 4642 | echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
f73dda09 | 4643 | echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6 |
bb70624e | 4644 | fi |
a82a04b3 | 4645 | echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5 |
f73dda09 | 4646 | echo "${ECHO_T}using $bash_cv_termcap_lib" >&6 |
bb70624e JA |
4647 | if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then |
4648 | LDFLAGS="$LDFLAGS -L./lib/termcap" | |
4649 | TERMCAP_LIB="./lib/termcap/libtermcap.a" | |
4650 | TERMCAP_DEP="./lib/termcap/libtermcap.a" | |
4651 | elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then | |
4652 | TERMCAP_LIB=-ltermcap | |
4653 | TERMCAP_DEP= | |
f73dda09 JA |
4654 | elif test $bash_cv_termcap_lib = libtinfo; then |
4655 | TERMCAP_LIB=-ltinfo | |
4656 | TERMCAP_DEP= | |
bb70624e JA |
4657 | elif test $bash_cv_termcap_lib = libncurses; then |
4658 | TERMCAP_LIB=-lncurses | |
4659 | TERMCAP_DEP= | |
d3a24ed2 CR |
4660 | elif test $bash_cv_termcap_lib = libc; then |
4661 | TERMCAP_LIB= | |
4662 | TERMCAP_DEP= | |
bb70624e JA |
4663 | else |
4664 | TERMCAP_LIB=-lcurses | |
4665 | TERMCAP_DEP= | |
4666 | fi | |
4667 | ||
a82a04b3 CR |
4668 | |
4669 | ||
4670 | ||
4671 | echo "$as_me:$LINENO: checking version of installed readline library" >&5 | |
f73dda09 JA |
4672 | echo $ECHO_N "checking version of installed readline library... $ECHO_C" >&6 |
4673 | ||
4674 | # What a pain in the ass this is. | |
4675 | ||
4676 | # save cpp and ld options | |
4677 | _save_CFLAGS="$CFLAGS" | |
4678 | _save_LDFLAGS="$LDFLAGS" | |
4679 | _save_LIBS="$LIBS" | |
4680 | ||
4681 | # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This | |
4682 | # allows the caller to do something like $_rl_prefix=$withval if the user | |
4683 | # specifies --with-installed-readline=PREFIX as an argument to configure | |
4684 | ||
4685 | if test -z "$ac_cv_rl_prefix"; then | |
4686 | test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix} | |
4687 | fi | |
4688 | ||
4689 | eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include | |
4690 | eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib | |
4691 | ||
4692 | LIBS="$LIBS -lreadline ${TERMCAP_LIB}" | |
4693 | CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}" | |
4694 | LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}" | |
4695 | ||
d3a24ed2 CR |
4696 | if test "${ac_cv_rl_version+set}" = set; then |
4697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4698 | else | |
4699 | if test "$cross_compiling" = yes; then | |
f73dda09 JA |
4700 | ac_cv_rl_version='4.2' |
4701 | else | |
4702 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
4703 | /* confdefs.h. */ |
4704 | _ACEOF | |
4705 | cat confdefs.h >>conftest.$ac_ext | |
4706 | cat >>conftest.$ac_ext <<_ACEOF | |
4707 | /* end confdefs.h. */ | |
f73dda09 JA |
4708 | |
4709 | #include <stdio.h> | |
4710 | #include <readline/readline.h> | |
4711 | ||
4712 | main() | |
4713 | { | |
4714 | FILE *fp; | |
4715 | fp = fopen("conftest.rlv", "w"); | |
4716 | if (fp == 0) exit(1); | |
4717 | fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0"); | |
4718 | fclose(fp); | |
4719 | exit(0); | |
4720 | } | |
4721 | ||
4722 | _ACEOF | |
4723 | rm -f conftest$ac_exeext | |
a82a04b3 | 4724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
4725 | (eval $ac_link) 2>&5 |
4726 | ac_status=$? | |
a82a04b3 | 4727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 4728 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 4729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
4730 | (eval $ac_try) 2>&5 |
4731 | ac_status=$? | |
a82a04b3 | 4732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
4733 | (exit $ac_status); }; }; then |
4734 | ac_cv_rl_version=`cat conftest.rlv` | |
4735 | else | |
4736 | echo "$as_me: program exited with status $ac_status" >&5 | |
4737 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
4738 | sed 's/^/| /' conftest.$ac_ext >&5 |
4739 | ||
4740 | ( exit $ac_status ) | |
f73dda09 JA |
4741 | ac_cv_rl_version='0.0' |
4742 | fi | |
a82a04b3 | 4743 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 4744 | fi |
d3a24ed2 | 4745 | fi |
f73dda09 | 4746 | |
a82a04b3 | 4747 | |
f73dda09 JA |
4748 | CFLAGS="$_save_CFLAGS" |
4749 | LDFLAGS="$_save_LDFLAGS" | |
4750 | LIBS="$_save_LIBS" | |
4751 | ||
4752 | RL_MAJOR=0 | |
4753 | RL_MINOR=0 | |
4754 | ||
4755 | # ( | |
4756 | case "$ac_cv_rl_version" in | |
4757 | 2*|3*|4*|5*|6*|7*|8*|9*) | |
4758 | RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'` | |
7117c2d2 | 4759 | RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'` |
f73dda09 JA |
4760 | ;; |
4761 | esac | |
4762 | ||
4763 | # ((( | |
4764 | case $RL_MAJOR in | |
4765 | [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;; | |
4766 | [0-9]) _RL_MAJOR=0$RL_MAJOR ;; | |
4767 | *) _RL_MAJOR=00 ;; | |
4768 | esac | |
4769 | ||
4770 | # ((( | |
4771 | case $RL_MINOR in | |
4772 | [0-9][0-9]) _RL_MINOR=$RL_MINOR ;; | |
4773 | [0-9]) _RL_MINOR=0$RL_MINOR ;; | |
4774 | *) _RL_MINOR=00 ;; | |
4775 | esac | |
4776 | ||
4777 | RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}" | |
4778 | ||
4779 | # Readline versions greater than 4.2 have these defines in readline.h | |
4780 | ||
4781 | if test $ac_cv_rl_version = '0.0' ; then | |
a82a04b3 | 4782 | { echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5 |
f73dda09 JA |
4783 | echo "$as_me: WARNING: Could not test version of installed readline library." >&2;} |
4784 | elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then | |
4785 | # set these for use by the caller | |
4786 | RL_PREFIX=$ac_cv_rl_prefix | |
4787 | RL_LIBDIR=$ac_cv_rl_libdir | |
4788 | RL_INCLUDEDIR=$ac_cv_rl_includedir | |
a82a04b3 | 4789 | echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5 |
f73dda09 JA |
4790 | echo "${ECHO_T}$ac_cv_rl_version" >&6 |
4791 | else | |
4792 | ||
a82a04b3 CR |
4793 | |
4794 | cat >>confdefs.h <<_ACEOF | |
f73dda09 | 4795 | #define RL_READLINE_VERSION $RL_VERSION |
a82a04b3 | 4796 | _ACEOF |
f73dda09 | 4797 | |
a82a04b3 CR |
4798 | |
4799 | cat >>confdefs.h <<_ACEOF | |
f73dda09 | 4800 | #define RL_VERSION_MAJOR $RL_MAJOR |
a82a04b3 | 4801 | _ACEOF |
f73dda09 | 4802 | |
a82a04b3 CR |
4803 | |
4804 | cat >>confdefs.h <<_ACEOF | |
f73dda09 | 4805 | #define RL_VERSION_MINOR $RL_MINOR |
a82a04b3 CR |
4806 | _ACEOF |
4807 | ||
4808 | ||
4809 | ||
4810 | ||
4811 | ||
545f34cf CR |
4812 | |
4813 | # set these for use by the caller | |
4814 | RL_PREFIX=$ac_cv_rl_prefix | |
4815 | RL_LIBDIR=$ac_cv_rl_libdir | |
4816 | RL_INCLUDEDIR=$ac_cv_rl_includedir | |
4817 | ||
a82a04b3 | 4818 | echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5 |
f73dda09 | 4819 | echo "${ECHO_T}$ac_cv_rl_version" >&6 |
bb70624e | 4820 | |
f73dda09 | 4821 | fi |
bb70624e | 4822 | |
a82a04b3 | 4823 | |
f73dda09 | 4824 | case "$ac_cv_rl_version" in |
d3a24ed2 | 4825 | 5*|6*|7*|8*|9*) ;; |
f73dda09 | 4826 | *) opt_with_installed_readline=no |
a82a04b3 | 4827 | { echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5 |
f73dda09 | 4828 | echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;} |
a82a04b3 | 4829 | { echo "$as_me:$LINENO: WARNING: using private bash version" >&5 |
f73dda09 | 4830 | echo "$as_me: WARNING: using private bash version" >&2;} |
bb70624e JA |
4831 | ;; |
4832 | esac | |
bb70624e JA |
4833 | fi |
4834 | ||
4835 | if test $opt_readline = yes; then | |
a82a04b3 | 4836 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 4837 | #define READLINE 1 |
a82a04b3 | 4838 | _ACEOF |
bb70624e | 4839 | |
f73dda09 | 4840 | if test "$opt_with_installed_readline" != "no" ; then |
d3a24ed2 CR |
4841 | case "$opt_with_installed_readline" in |
4842 | yes) RL_INCLUDE= ;; | |
4843 | *) case "$RL_INCLUDEDIR" in | |
4844 | /usr/include) ;; | |
4845 | *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;; | |
4846 | esac | |
4847 | ;; | |
f73dda09 | 4848 | esac |
bb70624e | 4849 | READLINE_DEP= |
233564d2 | 4850 | READLINE_LIB=-lreadline |
bb70624e JA |
4851 | else |
4852 | RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' | |
4853 | READLINE_DEP='$(READLINE_LIBRARY)' | |
233564d2 CR |
4854 | # section for OS versions that ship an older version of |
4855 | # readline as a standard dynamic library and don't allow a | |
4856 | # static version specified as -llibname to override the | |
4857 | # dynamic version | |
4858 | case "${host_os}" in | |
4859 | darwin8*) READLINE_LIB='${READLINE_LIBRARY}' ;; | |
4860 | *) READLINE_LIB=-lreadline ;; | |
4861 | esac | |
bb70624e JA |
4862 | fi |
4863 | else | |
4864 | RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' | |
4865 | READLINE_LIB= READLINE_DEP= | |
4866 | fi | |
4867 | if test $opt_history = yes || test $opt_bang_history = yes; then | |
4868 | if test $opt_history = yes; then | |
a82a04b3 | 4869 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 4870 | #define HISTORY 1 |
a82a04b3 | 4871 | _ACEOF |
bb70624e JA |
4872 | |
4873 | fi | |
4874 | if test $opt_bang_history = yes; then | |
a82a04b3 | 4875 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 4876 | #define BANG_HISTORY 1 |
a82a04b3 | 4877 | _ACEOF |
b72432fd JA |
4878 | |
4879 | fi | |
f73dda09 JA |
4880 | if test "$opt_with_installed_readline" != "no"; then |
4881 | HIST_LIBDIR=$RL_LIBDIR | |
b72432fd | 4882 | HISTORY_DEP= |
233564d2 | 4883 | HISTORY_LIB=-lhistory |
d3a24ed2 CR |
4884 | case "$opt_with_installed_readline" in |
4885 | yes) RL_INCLUDE= ;; | |
4886 | *) case "$RL_INCLUDEDIR" in | |
4887 | /usr/include) ;; | |
4888 | *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;; | |
4889 | esac | |
4890 | ;; | |
f73dda09 | 4891 | esac |
b72432fd JA |
4892 | else |
4893 | HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' | |
4894 | HISTORY_DEP='$(HISTORY_LIBRARY)' | |
233564d2 CR |
4895 | # section for OS versions that ship an older version of |
4896 | # readline as a standard dynamic library and don't allow a | |
4897 | # static version specified as -llibname to override the | |
4898 | # dynamic version | |
4899 | case "${host_os}" in | |
4900 | darwin8*) HISTORY_LIB='${HISTORY_LIBRARY}' ;; | |
4901 | *) HISTORY_LIB=-lhistory ;; | |
4902 | esac | |
b72432fd JA |
4903 | fi |
4904 | else | |
4905 | HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' | |
4906 | HISTORY_LIB= HISTORY_DEP= | |
4907 | fi | |
4908 | ||
a82a04b3 CR |
4909 | |
4910 | ||
4911 | ||
4912 | ||
4913 | ||
4914 | ||
4915 | ||
4916 | ||
4917 | ||
ccc6cda3 JA |
4918 | # Find a good install program. We prefer a C program (faster), |
4919 | # so one script is as good as another. But avoid the broken or | |
4920 | # incompatible versions: | |
4921 | # SysV /etc/install, /usr/sbin/install | |
4922 | # SunOS /usr/etc/install | |
4923 | # IRIX /sbin/install | |
4924 | # AIX /bin/install | |
f73dda09 | 4925 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
bb70624e | 4926 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
ccc6cda3 JA |
4927 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
4928 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
a82a04b3 | 4929 | # OS/2's system install, which has a completely different semantic |
ccc6cda3 | 4930 | # ./install, which can be erroneously created by make from ./install.sh. |
a82a04b3 CR |
4931 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4932 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
ccc6cda3 | 4933 | if test -z "$INSTALL"; then |
f73dda09 JA |
4934 | if test "${ac_cv_path_install+set}" = set; then |
4935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 4936 | else |
a82a04b3 CR |
4937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4938 | for as_dir in $PATH | |
4939 | do | |
4940 | IFS=$as_save_IFS | |
4941 | test -z "$as_dir" && as_dir=. | |
4942 | # Account for people who put trailing slashes in PATH elements. | |
4943 | case $as_dir/ in | |
4944 | ./ | .// | /cC/* | \ | |
4945 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4946 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4947 | /usr/ucb/* ) ;; | |
4948 | *) | |
4949 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4950 | # Don't use installbsd from OSF since it installs stuff as root | |
4951 | # by default. | |
4952 | for ac_prog in ginstall scoinst install; do | |
4953 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4954 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
e624d0f7 | 4955 | if test $ac_prog = install && |
a82a04b3 | 4956 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e624d0f7 CR |
4957 | # AIX install. It has an incompatible calling convention. |
4958 | : | |
4959 | elif test $ac_prog = install && | |
a82a04b3 | 4960 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e624d0f7 CR |
4961 | # program-specific install script used by HP pwplus--don't use. |
4962 | : | |
4963 | else | |
a82a04b3 CR |
4964 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
4965 | break 3 | |
e624d0f7 CR |
4966 | fi |
4967 | fi | |
ccc6cda3 | 4968 | done |
a82a04b3 CR |
4969 | done |
4970 | ;; | |
4971 | esac | |
4972 | done | |
4973 | ||
ccc6cda3 JA |
4974 | |
4975 | fi | |
4976 | if test "${ac_cv_path_install+set}" = set; then | |
f73dda09 | 4977 | INSTALL=$ac_cv_path_install |
ccc6cda3 JA |
4978 | else |
4979 | # As a last resort, use the slow shell script. We don't cache a | |
4980 | # path for INSTALL within a source directory, because that will | |
4981 | # break other packages using the cache if that directory is | |
4982 | # removed, or if the path is relative. | |
f73dda09 | 4983 | INSTALL=$ac_install_sh |
ccc6cda3 JA |
4984 | fi |
4985 | fi | |
a82a04b3 | 4986 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
f73dda09 | 4987 | echo "${ECHO_T}$INSTALL" >&6 |
ccc6cda3 JA |
4988 | |
4989 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4990 | # It thinks the first close brace ends the variable substitution. | |
4991 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4992 | ||
f73dda09 | 4993 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
bb70624e | 4994 | |
ccc6cda3 JA |
4995 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4996 | ||
4997 | # Extract the first word of "ar", so it can be a program name with args. | |
4998 | set dummy ar; ac_word=$2 | |
a82a04b3 | 4999 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f73dda09 JA |
5000 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5001 | if test "${ac_cv_prog_AR+set}" = set; then | |
5002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 JA |
5003 | else |
5004 | if test -n "$AR"; then | |
5005 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5006 | else | |
a82a04b3 CR |
5007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5008 | for as_dir in $PATH | |
5009 | do | |
5010 | IFS=$as_save_IFS | |
5011 | test -z "$as_dir" && as_dir=. | |
5012 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5013 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5014 | ac_cv_prog_AR="" | |
5015 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5016 | break 2 | |
5017 | fi | |
5018 | done | |
f73dda09 JA |
5019 | done |
5020 | ||
5021 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
ccc6cda3 JA |
5022 | fi |
5023 | fi | |
f73dda09 | 5024 | AR=$ac_cv_prog_AR |
ccc6cda3 | 5025 | if test -n "$AR"; then |
a82a04b3 | 5026 | echo "$as_me:$LINENO: result: $AR" >&5 |
f73dda09 | 5027 | echo "${ECHO_T}$AR" >&6 |
ccc6cda3 | 5028 | else |
a82a04b3 | 5029 | echo "$as_me:$LINENO: result: no" >&5 |
f73dda09 | 5030 | echo "${ECHO_T}no" >&6 |
ccc6cda3 JA |
5031 | fi |
5032 | ||
b72432fd | 5033 | test -n "$ARFLAGS" || ARFLAGS="cr" |
f73dda09 JA |
5034 | if test -n "$ac_tool_prefix"; then |
5035 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5036 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
a82a04b3 | 5037 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f73dda09 JA |
5038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5039 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 JA |
5041 | else |
5042 | if test -n "$RANLIB"; then | |
5043 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5044 | else | |
a82a04b3 CR |
5045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5046 | for as_dir in $PATH | |
5047 | do | |
5048 | IFS=$as_save_IFS | |
5049 | test -z "$as_dir" && as_dir=. | |
5050 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5051 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5052 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5053 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5054 | break 2 | |
5055 | fi | |
5056 | done | |
f73dda09 JA |
5057 | done |
5058 | ||
ccc6cda3 JA |
5059 | fi |
5060 | fi | |
f73dda09 | 5061 | RANLIB=$ac_cv_prog_RANLIB |
ccc6cda3 | 5062 | if test -n "$RANLIB"; then |
a82a04b3 | 5063 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
f73dda09 JA |
5064 | echo "${ECHO_T}$RANLIB" >&6 |
5065 | else | |
a82a04b3 | 5066 | echo "$as_me:$LINENO: result: no" >&5 |
f73dda09 JA |
5067 | echo "${ECHO_T}no" >&6 |
5068 | fi | |
5069 | ||
5070 | fi | |
5071 | if test -z "$ac_cv_prog_RANLIB"; then | |
5072 | ac_ct_RANLIB=$RANLIB | |
5073 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5074 | set dummy ranlib; ac_word=$2 | |
a82a04b3 | 5075 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f73dda09 JA |
5076 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5077 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5079 | else | |
5080 | if test -n "$ac_ct_RANLIB"; then | |
5081 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5082 | else | |
a82a04b3 CR |
5083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5084 | for as_dir in $PATH | |
5085 | do | |
5086 | IFS=$as_save_IFS | |
5087 | test -z "$as_dir" && as_dir=. | |
5088 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5089 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5090 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5091 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5092 | break 2 | |
5093 | fi | |
5094 | done | |
f73dda09 JA |
5095 | done |
5096 | ||
5097 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
5098 | fi | |
5099 | fi | |
5100 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5101 | if test -n "$ac_ct_RANLIB"; then | |
a82a04b3 | 5102 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
f73dda09 | 5103 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
ccc6cda3 | 5104 | else |
a82a04b3 | 5105 | echo "$as_me:$LINENO: result: no" >&5 |
f73dda09 JA |
5106 | echo "${ECHO_T}no" >&6 |
5107 | fi | |
5108 | ||
5109 | RANLIB=$ac_ct_RANLIB | |
5110 | else | |
5111 | RANLIB="$ac_cv_prog_RANLIB" | |
ccc6cda3 JA |
5112 | fi |
5113 | ||
5114 | for ac_prog in 'bison -y' byacc | |
5115 | do | |
f73dda09 | 5116 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
ccc6cda3 | 5117 | set dummy $ac_prog; ac_word=$2 |
a82a04b3 | 5118 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f73dda09 JA |
5119 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5120 | if test "${ac_cv_prog_YACC+set}" = set; then | |
5121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 JA |
5122 | else |
5123 | if test -n "$YACC"; then | |
5124 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
5125 | else | |
a82a04b3 CR |
5126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5127 | for as_dir in $PATH | |
5128 | do | |
5129 | IFS=$as_save_IFS | |
5130 | test -z "$as_dir" && as_dir=. | |
5131 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5132 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5133 | ac_cv_prog_YACC="$ac_prog" | |
5134 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5135 | break 2 | |
5136 | fi | |
5137 | done | |
f73dda09 JA |
5138 | done |
5139 | ||
ccc6cda3 JA |
5140 | fi |
5141 | fi | |
f73dda09 | 5142 | YACC=$ac_cv_prog_YACC |
ccc6cda3 | 5143 | if test -n "$YACC"; then |
a82a04b3 | 5144 | echo "$as_me:$LINENO: result: $YACC" >&5 |
f73dda09 | 5145 | echo "${ECHO_T}$YACC" >&6 |
ccc6cda3 | 5146 | else |
a82a04b3 | 5147 | echo "$as_me:$LINENO: result: no" >&5 |
f73dda09 | 5148 | echo "${ECHO_T}no" >&6 |
ccc6cda3 JA |
5149 | fi |
5150 | ||
f73dda09 | 5151 | test -n "$YACC" && break |
ccc6cda3 JA |
5152 | done |
5153 | test -n "$YACC" || YACC="yacc" | |
5154 | ||
a82a04b3 CR |
5155 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
5156 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
5157 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
f73dda09 JA |
5158 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
5159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 5160 | else |
a82a04b3 | 5161 | cat >conftest.make <<\_ACEOF |
ccc6cda3 | 5162 | all: |
a82a04b3 CR |
5163 | @echo 'ac_maketemp="$(MAKE)"' |
5164 | _ACEOF | |
ccc6cda3 | 5165 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
f73dda09 | 5166 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
ccc6cda3 JA |
5167 | if test -n "$ac_maketemp"; then |
5168 | eval ac_cv_prog_make_${ac_make}_set=yes | |
5169 | else | |
5170 | eval ac_cv_prog_make_${ac_make}_set=no | |
5171 | fi | |
f73dda09 | 5172 | rm -f conftest.make |
ccc6cda3 JA |
5173 | fi |
5174 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
a82a04b3 | 5175 | echo "$as_me:$LINENO: result: yes" >&5 |
f73dda09 | 5176 | echo "${ECHO_T}yes" >&6 |
ccc6cda3 JA |
5177 | SET_MAKE= |
5178 | else | |
a82a04b3 | 5179 | echo "$as_me:$LINENO: result: no" >&5 |
f73dda09 | 5180 | echo "${ECHO_T}no" >&6 |
ccc6cda3 JA |
5181 | SET_MAKE="MAKE=${MAKE-make}" |
5182 | fi | |
5183 | ||
a82a04b3 | 5184 | |
b72432fd | 5185 | case "$host_os" in |
bb70624e | 5186 | opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;; |
b72432fd JA |
5187 | *) MAKE_SHELL=/bin/sh ;; |
5188 | esac | |
5189 | ||
a82a04b3 | 5190 | |
10590446 CR |
5191 | if test x$SIZE = x; then |
5192 | if test x$ac_tool_prefix = x; then | |
5193 | SIZE=size | |
5194 | else | |
5195 | SIZE=${ac_tool_prefix}size | |
5196 | save_IFS=$IFS ; IFS=: | |
5197 | size_found=0 | |
5198 | for dir in $PATH; do | |
5199 | if test -x $dir/$SIZE ; then | |
5200 | size_found=1 | |
5201 | break | |
5202 | fi | |
5203 | done | |
5204 | if test $size_found -eq 0; then | |
233564d2 | 5205 | SIZE=: |
10590446 CR |
5206 | fi |
5207 | IFS=$save_IFS | |
5208 | fi | |
5209 | fi | |
5210 | ||
e624d0f7 | 5211 | |
a82a04b3 CR |
5212 | cat >>confdefs.h <<\_ACEOF |
5213 | #define _GNU_SOURCE 1 | |
f73dda09 | 5214 | _ACEOF |
ccc6cda3 | 5215 | |
e624d0f7 | 5216 | |
a82a04b3 | 5217 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
f73dda09 JA |
5218 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
5219 | if test "${ac_cv_c_const+set}" = set; then | |
5220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 5221 | else |
f73dda09 | 5222 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
5223 | /* confdefs.h. */ |
5224 | _ACEOF | |
5225 | cat confdefs.h >>conftest.$ac_ext | |
5226 | cat >>conftest.$ac_ext <<_ACEOF | |
5227 | /* end confdefs.h. */ | |
ccc6cda3 | 5228 | |
f73dda09 JA |
5229 | int |
5230 | main () | |
5231 | { | |
5232 | /* FIXME: Include the comments suggested by Paul. */ | |
5233 | #ifndef __cplusplus | |
5234 | /* Ultrix mips cc rejects this. */ | |
5235 | typedef int charset[2]; | |
5236 | const charset x; | |
5237 | /* SunOS 4.1.1 cc rejects this. */ | |
5238 | char const *const *ccp; | |
5239 | char **p; | |
5240 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5241 | struct point {int x, y;}; | |
5242 | static struct point const zero = {0,0}; | |
5243 | /* AIX XL C 1.02.0.0 rejects this. | |
5244 | It does not let you subtract one const X* pointer from another in | |
5245 | an arm of an if-expression whose if-part is not a constant | |
5246 | expression */ | |
5247 | const char *g = "string"; | |
5248 | ccp = &g + (g ? g-g : 0); | |
5249 | /* HPUX 7.0 cc rejects these. */ | |
5250 | ++ccp; | |
5251 | p = (char**) ccp; | |
5252 | ccp = (char const *const *) p; | |
5253 | { /* SCO 3.2v4 cc rejects this. */ | |
5254 | char *t; | |
5255 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5256 | ||
5257 | *t++ = 0; | |
5258 | } | |
5259 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5260 | int x[] = {25, 17}; | |
5261 | const int *foo = &x[0]; | |
5262 | ++foo; | |
5263 | } | |
5264 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5265 | typedef const int *iptr; | |
5266 | iptr p = 0; | |
5267 | ++p; | |
5268 | } | |
5269 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5270 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5271 | struct s { int j; const int *ap[3]; }; | |
5272 | struct s *b; b->j = 5; | |
5273 | } | |
5274 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5275 | const int foo = 10; | |
5276 | } | |
ccc6cda3 JA |
5277 | #endif |
5278 | ||
f73dda09 JA |
5279 | ; |
5280 | return 0; | |
5281 | } | |
5282 | _ACEOF | |
5283 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
5284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5285 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 5286 | ac_status=$? |
a82a04b3 CR |
5287 | grep -v '^ *+' conftest.er1 >conftest.err |
5288 | rm -f conftest.er1 | |
5289 | cat conftest.err >&5 | |
5290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 5291 | (exit $ac_status); } && |
a82a04b3 CR |
5292 | { ac_try='test -z "$ac_c_werror_flag" |
5293 | || test ! -s conftest.err' | |
5294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5295 | (eval $ac_try) 2>&5 | |
5296 | ac_status=$? | |
5297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5298 | (exit $ac_status); }; } && | |
5299 | { ac_try='test -s conftest.$ac_objext' | |
5300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
5301 | (eval $ac_try) 2>&5 |
5302 | ac_status=$? | |
a82a04b3 | 5303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
5304 | (exit $ac_status); }; }; then |
5305 | ac_cv_c_const=yes | |
5306 | else | |
5307 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
5308 | sed 's/^/| /' conftest.$ac_ext >&5 |
5309 | ||
f73dda09 JA |
5310 | ac_cv_c_const=no |
5311 | fi | |
a82a04b3 | 5312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 5313 | fi |
a82a04b3 | 5314 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
f73dda09 JA |
5315 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
5316 | if test $ac_cv_c_const = no; then | |
5317 | ||
a82a04b3 | 5318 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 5319 | #define const |
a82a04b3 | 5320 | _ACEOF |
ccc6cda3 JA |
5321 | |
5322 | fi | |
5323 | ||
a82a04b3 | 5324 | echo "$as_me:$LINENO: checking for inline" >&5 |
f73dda09 JA |
5325 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
5326 | if test "${ac_cv_c_inline+set}" = set; then | |
5327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 5328 | else |
f73dda09 JA |
5329 | ac_cv_c_inline=no |
5330 | for ac_kw in inline __inline__ __inline; do | |
5331 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
5332 | /* confdefs.h. */ |
5333 | _ACEOF | |
5334 | cat confdefs.h >>conftest.$ac_ext | |
5335 | cat >>conftest.$ac_ext <<_ACEOF | |
5336 | /* end confdefs.h. */ | |
f73dda09 | 5337 | #ifndef __cplusplus |
a82a04b3 CR |
5338 | typedef int foo_t; |
5339 | static $ac_kw foo_t static_foo () {return 0; } | |
5340 | $ac_kw foo_t foo () {return 0; } | |
ccc6cda3 JA |
5341 | #endif |
5342 | ||
f73dda09 JA |
5343 | _ACEOF |
5344 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
5345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5346 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 5347 | ac_status=$? |
a82a04b3 CR |
5348 | grep -v '^ *+' conftest.er1 >conftest.err |
5349 | rm -f conftest.er1 | |
5350 | cat conftest.err >&5 | |
5351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 5352 | (exit $ac_status); } && |
a82a04b3 CR |
5353 | { ac_try='test -z "$ac_c_werror_flag" |
5354 | || test ! -s conftest.err' | |
5355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5356 | (eval $ac_try) 2>&5 | |
5357 | ac_status=$? | |
5358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5359 | (exit $ac_status); }; } && | |
5360 | { ac_try='test -s conftest.$ac_objext' | |
5361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
5362 | (eval $ac_try) 2>&5 |
5363 | ac_status=$? | |
a82a04b3 | 5364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
5365 | (exit $ac_status); }; }; then |
5366 | ac_cv_c_inline=$ac_kw; break | |
5367 | else | |
5368 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
5369 | sed 's/^/| /' conftest.$ac_ext >&5 |
5370 | ||
f73dda09 | 5371 | fi |
a82a04b3 | 5372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 5373 | done |
ccc6cda3 JA |
5374 | |
5375 | fi | |
a82a04b3 | 5376 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
f73dda09 | 5377 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
a82a04b3 CR |
5378 | |
5379 | ||
f73dda09 JA |
5380 | case $ac_cv_c_inline in |
5381 | inline | yes) ;; | |
a82a04b3 CR |
5382 | *) |
5383 | case $ac_cv_c_inline in | |
5384 | no) ac_val=;; | |
5385 | *) ac_val=$ac_cv_c_inline;; | |
5386 | esac | |
5387 | cat >>confdefs.h <<_ACEOF | |
5388 | #ifndef __cplusplus | |
5389 | #define inline $ac_val | |
5390 | #endif | |
5391 | _ACEOF | |
5392 | ;; | |
f73dda09 | 5393 | esac |
ccc6cda3 | 5394 | |
a82a04b3 | 5395 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
f73dda09 JA |
5396 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
5397 | if test "${ac_cv_c_bigendian+set}" = set; then | |
5398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 5399 | else |
a82a04b3 | 5400 | # See if sys/param.h defines the BYTE_ORDER macro. |
f73dda09 | 5401 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
5402 | /* confdefs.h. */ |
5403 | _ACEOF | |
5404 | cat confdefs.h >>conftest.$ac_ext | |
5405 | cat >>conftest.$ac_ext <<_ACEOF | |
5406 | /* end confdefs.h. */ | |
f73dda09 JA |
5407 | #include <sys/types.h> |
5408 | #include <sys/param.h> | |
ccc6cda3 | 5409 | |
f73dda09 JA |
5410 | int |
5411 | main () | |
5412 | { | |
5413 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
5414 | bogus endian macros | |
ccc6cda3 JA |
5415 | #endif |
5416 | ||
f73dda09 JA |
5417 | ; |
5418 | return 0; | |
5419 | } | |
5420 | _ACEOF | |
5421 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
5422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5423 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 5424 | ac_status=$? |
a82a04b3 CR |
5425 | grep -v '^ *+' conftest.er1 >conftest.err |
5426 | rm -f conftest.er1 | |
5427 | cat conftest.err >&5 | |
5428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 5429 | (exit $ac_status); } && |
a82a04b3 CR |
5430 | { ac_try='test -z "$ac_c_werror_flag" |
5431 | || test ! -s conftest.err' | |
5432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
5433 | (eval $ac_try) 2>&5 |
5434 | ac_status=$? | |
a82a04b3 CR |
5435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5436 | (exit $ac_status); }; } && | |
5437 | { ac_try='test -s conftest.$ac_objext' | |
5438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5439 | (eval $ac_try) 2>&5 | |
5440 | ac_status=$? | |
5441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
5442 | (exit $ac_status); }; }; then |
5443 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
5444 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
5445 | /* confdefs.h. */ |
5446 | _ACEOF | |
5447 | cat confdefs.h >>conftest.$ac_ext | |
5448 | cat >>conftest.$ac_ext <<_ACEOF | |
5449 | /* end confdefs.h. */ | |
f73dda09 JA |
5450 | #include <sys/types.h> |
5451 | #include <sys/param.h> | |
ccc6cda3 | 5452 | |
f73dda09 JA |
5453 | int |
5454 | main () | |
5455 | { | |
5456 | #if BYTE_ORDER != BIG_ENDIAN | |
5457 | not big endian | |
5458 | #endif | |
ccc6cda3 | 5459 | |
f73dda09 JA |
5460 | ; |
5461 | return 0; | |
5462 | } | |
5463 | _ACEOF | |
5464 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
5465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5466 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 5467 | ac_status=$? |
a82a04b3 CR |
5468 | grep -v '^ *+' conftest.er1 >conftest.err |
5469 | rm -f conftest.er1 | |
5470 | cat conftest.err >&5 | |
5471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 5472 | (exit $ac_status); } && |
a82a04b3 CR |
5473 | { ac_try='test -z "$ac_c_werror_flag" |
5474 | || test ! -s conftest.err' | |
5475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5476 | (eval $ac_try) 2>&5 | |
5477 | ac_status=$? | |
5478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5479 | (exit $ac_status); }; } && | |
5480 | { ac_try='test -s conftest.$ac_objext' | |
5481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
5482 | (eval $ac_try) 2>&5 |
5483 | ac_status=$? | |
a82a04b3 | 5484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
5485 | (exit $ac_status); }; }; then |
5486 | ac_cv_c_bigendian=yes | |
ccc6cda3 | 5487 | else |
f73dda09 | 5488 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
5489 | sed 's/^/| /' conftest.$ac_ext >&5 |
5490 | ||
f73dda09 | 5491 | ac_cv_c_bigendian=no |
ccc6cda3 | 5492 | fi |
a82a04b3 | 5493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 5494 | else |
f73dda09 | 5495 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
5496 | sed 's/^/| /' conftest.$ac_ext >&5 |
5497 | ||
5498 | # It does not; compile a test program. | |
e624d0f7 | 5499 | if test "$cross_compiling" = yes; then |
a82a04b3 CR |
5500 | # try to guess the endianness by grepping values into an object file |
5501 | ac_cv_c_bigendian=unknown | |
5502 | cat >conftest.$ac_ext <<_ACEOF | |
5503 | /* confdefs.h. */ | |
5504 | _ACEOF | |
5505 | cat confdefs.h >>conftest.$ac_ext | |
5506 | cat >>conftest.$ac_ext <<_ACEOF | |
5507 | /* end confdefs.h. */ | |
5508 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5509 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5510 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
5511 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5512 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5513 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
5514 | int | |
5515 | main () | |
5516 | { | |
5517 | _ascii (); _ebcdic (); | |
5518 | ; | |
5519 | return 0; | |
5520 | } | |
5521 | _ACEOF | |
5522 | rm -f conftest.$ac_objext | |
5523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5524 | (eval $ac_compile) 2>conftest.er1 | |
5525 | ac_status=$? | |
5526 | grep -v '^ *+' conftest.er1 >conftest.err | |
5527 | rm -f conftest.er1 | |
5528 | cat conftest.err >&5 | |
5529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5530 | (exit $ac_status); } && | |
5531 | { ac_try='test -z "$ac_c_werror_flag" | |
5532 | || test ! -s conftest.err' | |
5533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5534 | (eval $ac_try) 2>&5 | |
5535 | ac_status=$? | |
5536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5537 | (exit $ac_status); }; } && | |
5538 | { ac_try='test -s conftest.$ac_objext' | |
5539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5540 | (eval $ac_try) 2>&5 | |
5541 | ac_status=$? | |
5542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5543 | (exit $ac_status); }; }; then | |
5544 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
5545 | ac_cv_c_bigendian=yes | |
5546 | fi | |
5547 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5548 | if test "$ac_cv_c_bigendian" = unknown; then | |
5549 | ac_cv_c_bigendian=no | |
5550 | else | |
5551 | # finding both strings is unlikely to happen, but who knows? | |
5552 | ac_cv_c_bigendian=unknown | |
5553 | fi | |
5554 | fi | |
5555 | else | |
5556 | echo "$as_me: failed program was:" >&5 | |
5557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5558 | ||
5559 | fi | |
5560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 5561 | else |
f73dda09 | 5562 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
5563 | /* confdefs.h. */ |
5564 | _ACEOF | |
5565 | cat confdefs.h >>conftest.$ac_ext | |
5566 | cat >>conftest.$ac_ext <<_ACEOF | |
5567 | /* end confdefs.h. */ | |
f73dda09 JA |
5568 | int |
5569 | main () | |
ccc6cda3 | 5570 | { |
f73dda09 JA |
5571 | /* Are we little or big endian? From Harbison&Steele. */ |
5572 | union | |
5573 | { | |
5574 | long l; | |
5575 | char c[sizeof (long)]; | |
5576 | } u; | |
5577 | u.l = 1; | |
5578 | exit (u.c[sizeof (long) - 1] == 1); | |
ccc6cda3 | 5579 | } |
f73dda09 JA |
5580 | _ACEOF |
5581 | rm -f conftest$ac_exeext | |
a82a04b3 | 5582 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
5583 | (eval $ac_link) 2>&5 |
5584 | ac_status=$? | |
a82a04b3 | 5585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 5586 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 5587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
5588 | (eval $ac_try) 2>&5 |
5589 | ac_status=$? | |
a82a04b3 | 5590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
5591 | (exit $ac_status); }; }; then |
5592 | ac_cv_c_bigendian=no | |
ccc6cda3 | 5593 | else |
f73dda09 JA |
5594 | echo "$as_me: program exited with status $ac_status" >&5 |
5595 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
5596 | sed 's/^/| /' conftest.$ac_ext >&5 |
5597 | ||
5598 | ( exit $ac_status ) | |
f73dda09 JA |
5599 | ac_cv_c_bigendian=yes |
5600 | fi | |
a82a04b3 | 5601 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 5602 | fi |
ccc6cda3 | 5603 | fi |
a82a04b3 | 5604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 5605 | fi |
a82a04b3 | 5606 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
f73dda09 | 5607 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
a82a04b3 CR |
5608 | case $ac_cv_c_bigendian in |
5609 | yes) | |
ccc6cda3 | 5610 | |
a82a04b3 | 5611 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 5612 | #define WORDS_BIGENDIAN 1 |
a82a04b3 CR |
5613 | _ACEOF |
5614 | ;; | |
5615 | no) | |
5616 | ;; | |
5617 | *) | |
5618 | { { echo "$as_me:$LINENO: error: unknown endianness | |
5619 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
5620 | echo "$as_me: error: unknown endianness | |
5621 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
5622 | { (exit 1); exit 1; }; } ;; | |
5623 | esac | |
ccc6cda3 | 5624 | |
a82a04b3 | 5625 | echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5 |
f73dda09 JA |
5626 | echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6 |
5627 | if test "${ac_cv_c_stringize+set}" = set; then | |
5628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 5629 | else |
f73dda09 | 5630 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
5631 | /* confdefs.h. */ |
5632 | _ACEOF | |
5633 | cat confdefs.h >>conftest.$ac_ext | |
5634 | cat >>conftest.$ac_ext <<_ACEOF | |
5635 | /* end confdefs.h. */ | |
f73dda09 | 5636 | #define x(y) #y |
ccc6cda3 | 5637 | |
f73dda09 JA |
5638 | char *s = x(teststring); |
5639 | _ACEOF | |
5640 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
a82a04b3 | 5641 | $EGREP "#teststring" >/dev/null 2>&1; then |
f73dda09 | 5642 | ac_cv_c_stringize=no |
ccc6cda3 | 5643 | else |
f73dda09 | 5644 | ac_cv_c_stringize=yes |
ccc6cda3 | 5645 | fi |
f73dda09 | 5646 | rm -f conftest* |
ccc6cda3 JA |
5647 | |
5648 | fi | |
a82a04b3 | 5649 | echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5 |
f73dda09 JA |
5650 | echo "${ECHO_T}$ac_cv_c_stringize" >&6 |
5651 | if test $ac_cv_c_stringize = yes; then | |
ccc6cda3 | 5652 | |
a82a04b3 | 5653 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 5654 | #define HAVE_STRINGIZE 1 |
a82a04b3 | 5655 | _ACEOF |
ccc6cda3 JA |
5656 | |
5657 | fi | |
5658 | ||
a82a04b3 CR |
5659 | echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5 |
5660 | echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6 | |
f73dda09 JA |
5661 | if test "${ac_cv_c_long_double+set}" = set; then |
5662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 5663 | else |
f73dda09 | 5664 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
5665 | /* confdefs.h. */ |
5666 | _ACEOF | |
5667 | cat confdefs.h >>conftest.$ac_ext | |
5668 | cat >>conftest.$ac_ext <<_ACEOF | |
5669 | /* end confdefs.h. */ | |
5670 | #include <float.h> | |
5671 | long double foo = 0.0; | |
f73dda09 JA |
5672 | int |
5673 | main () | |
5674 | { | |
a82a04b3 CR |
5675 | static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */ |
5676 | (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON) | |
5677 | | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))]; | |
5678 | test_array [0] = 0 | |
5679 | ||
5680 | ; | |
5681 | return 0; | |
ccc6cda3 | 5682 | } |
f73dda09 | 5683 | _ACEOF |
a82a04b3 CR |
5684 | rm -f conftest.$ac_objext |
5685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5686 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 5687 | ac_status=$? |
a82a04b3 CR |
5688 | grep -v '^ *+' conftest.er1 >conftest.err |
5689 | rm -f conftest.er1 | |
5690 | cat conftest.err >&5 | |
5691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5692 | (exit $ac_status); } && | |
5693 | { ac_try='test -z "$ac_c_werror_flag" | |
5694 | || test ! -s conftest.err' | |
5695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5696 | (eval $ac_try) 2>&5 | |
5697 | ac_status=$? | |
5698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5699 | (exit $ac_status); }; } && | |
5700 | { ac_try='test -s conftest.$ac_objext' | |
5701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
5702 | (eval $ac_try) 2>&5 |
5703 | ac_status=$? | |
a82a04b3 | 5704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
5705 | (exit $ac_status); }; }; then |
5706 | ac_cv_c_long_double=yes | |
ccc6cda3 | 5707 | else |
a82a04b3 CR |
5708 | echo "$as_me: failed program was:" >&5 |
5709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5710 | ||
f73dda09 JA |
5711 | ac_cv_c_long_double=no |
5712 | fi | |
a82a04b3 | 5713 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e624d0f7 | 5714 | fi |
a82a04b3 | 5715 | echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5 |
f73dda09 JA |
5716 | echo "${ECHO_T}$ac_cv_c_long_double" >&6 |
5717 | if test $ac_cv_c_long_double = yes; then | |
ccc6cda3 | 5718 | |
a82a04b3 | 5719 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 5720 | #define HAVE_LONG_DOUBLE 1 |
a82a04b3 | 5721 | _ACEOF |
ccc6cda3 JA |
5722 | |
5723 | fi | |
5724 | ||
a82a04b3 | 5725 | echo "$as_me:$LINENO: checking for function prototypes" >&5 |
f73dda09 JA |
5726 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
5727 | if test "$ac_cv_prog_cc_stdc" != no; then | |
a82a04b3 | 5728 | echo "$as_me:$LINENO: result: yes" >&5 |
f73dda09 | 5729 | echo "${ECHO_T}yes" >&6 |
ccc6cda3 | 5730 | |
a82a04b3 | 5731 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 5732 | #define PROTOTYPES 1 |
e624d0f7 | 5733 | _ACEOF |
ccc6cda3 | 5734 | |
545f34cf | 5735 | |
a82a04b3 CR |
5736 | cat >>confdefs.h <<\_ACEOF |
5737 | #define __PROTOTYPES 1 | |
e624d0f7 | 5738 | _ACEOF |
e624d0f7 | 5739 | |
e624d0f7 | 5740 | else |
a82a04b3 CR |
5741 | echo "$as_me:$LINENO: result: no" >&5 |
5742 | echo "${ECHO_T}no" >&6 | |
e624d0f7 | 5743 | fi |
e624d0f7 | 5744 | |
e624d0f7 | 5745 | |
a82a04b3 | 5746 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
545f34cf CR |
5747 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
5748 | if test "${ac_cv_c_char_unsigned+set}" = set; then | |
f73dda09 | 5749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ccc6cda3 | 5750 | else |
f73dda09 | 5751 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
5752 | /* confdefs.h. */ |
5753 | _ACEOF | |
5754 | cat confdefs.h >>conftest.$ac_ext | |
5755 | cat >>conftest.$ac_ext <<_ACEOF | |
5756 | /* end confdefs.h. */ | |
545f34cf CR |
5757 | $ac_includes_default |
5758 | int | |
5759 | main () | |
5760 | { | |
a82a04b3 CR |
5761 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
5762 | test_array [0] = 0 | |
5763 | ||
545f34cf CR |
5764 | ; |
5765 | return 0; | |
5766 | } | |
f73dda09 | 5767 | _ACEOF |
545f34cf | 5768 | rm -f conftest.$ac_objext |
a82a04b3 CR |
5769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5770 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 5771 | ac_status=$? |
a82a04b3 CR |
5772 | grep -v '^ *+' conftest.er1 >conftest.err |
5773 | rm -f conftest.er1 | |
5774 | cat conftest.err >&5 | |
5775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
545f34cf | 5776 | (exit $ac_status); } && |
a82a04b3 CR |
5777 | { ac_try='test -z "$ac_c_werror_flag" |
5778 | || test ! -s conftest.err' | |
5779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
545f34cf CR |
5780 | (eval $ac_try) 2>&5 |
5781 | ac_status=$? | |
a82a04b3 CR |
5782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5783 | (exit $ac_status); }; } && | |
5784 | { ac_try='test -s conftest.$ac_objext' | |
5785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5786 | (eval $ac_try) 2>&5 | |
5787 | ac_status=$? | |
5788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
545f34cf CR |
5789 | (exit $ac_status); }; }; then |
5790 | ac_cv_c_char_unsigned=no | |
f73dda09 JA |
5791 | else |
5792 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
5793 | sed 's/^/| /' conftest.$ac_ext >&5 |
5794 | ||
5e13499c CR |
5795 | ac_cv_c_char_unsigned=yes |
5796 | fi | |
a82a04b3 | 5797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5e13499c | 5798 | fi |
a82a04b3 | 5799 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
5e13499c CR |
5800 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
5801 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | |
a82a04b3 | 5802 | cat >>confdefs.h <<\_ACEOF |
5e13499c | 5803 | #define __CHAR_UNSIGNED__ 1 |
a82a04b3 | 5804 | _ACEOF |
5e13499c CR |
5805 | |
5806 | fi | |
5807 | ||
a82a04b3 CR |
5808 | |
5809 | ||
5e13499c CR |
5810 | MKINSTALLDIRS= |
5811 | if test -n "$ac_aux_dir"; then | |
5812 | case "$ac_aux_dir" in | |
5813 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
5814 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
5815 | esac | |
5816 | fi | |
5817 | if test -z "$MKINSTALLDIRS"; then | |
5818 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
5819 | fi | |
5820 | ||
a82a04b3 CR |
5821 | |
5822 | ||
5823 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
5e13499c CR |
5824 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 |
5825 | # Check whether --enable-nls or --disable-nls was given. | |
5826 | if test "${enable_nls+set}" = set; then | |
5827 | enableval="$enable_nls" | |
5828 | USE_NLS=$enableval | |
5829 | else | |
5830 | USE_NLS=yes | |
5831 | fi; | |
a82a04b3 | 5832 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
5e13499c CR |
5833 | echo "${ECHO_T}$USE_NLS" >&6 |
5834 | ||
a82a04b3 CR |
5835 | |
5836 | ||
5837 | ||
5838 | ||
5839 | ||
5e13499c CR |
5840 | # Prepare PATH_SEPARATOR. |
5841 | # The user is always right. | |
5842 | if test "${PATH_SEPARATOR+set}" != set; then | |
5843 | echo "#! /bin/sh" >conf$$.sh | |
5844 | echo "exit 0" >>conf$$.sh | |
5845 | chmod +x conf$$.sh | |
5846 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5847 | PATH_SEPARATOR=';' | |
5848 | else | |
5849 | PATH_SEPARATOR=: | |
5850 | fi | |
5851 | rm -f conf$$.sh | |
5852 | fi | |
5853 | ||
5854 | # Find out how to test for executable files. Don't use a zero-byte file, | |
5855 | # as systems may use methods other than mode bits to determine executability. | |
5856 | cat >conf$$.file <<_ASEOF | |
5857 | #! /bin/sh | |
5858 | exit 0 | |
5859 | _ASEOF | |
5860 | chmod +x conf$$.file | |
5861 | if test -x conf$$.file >/dev/null 2>&1; then | |
5862 | ac_executable_p="test -x" | |
5863 | else | |
5864 | ac_executable_p="test -f" | |
5865 | fi | |
5866 | rm -f conf$$.file | |
5867 | ||
5868 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5869 | set dummy msgfmt; ac_word=$2 | |
a82a04b3 | 5870 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5e13499c CR |
5871 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5872 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5874 | else | |
5875 | case "$MSGFMT" in | |
5876 | [\\/]* | ?:[\\/]*) | |
5877 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5878 | ;; | |
5879 | *) | |
5880 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5881 | for ac_dir in $PATH; do | |
5882 | IFS="$ac_save_IFS" | |
5883 | test -z "$ac_dir" && ac_dir=. | |
5884 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5885 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5886 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
5887 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5888 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
5889 | break 2 | |
5890 | fi | |
5891 | fi | |
5892 | done | |
5893 | done | |
5894 | IFS="$ac_save_IFS" | |
5895 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
5896 | ;; | |
5897 | esac | |
5898 | fi | |
5899 | MSGFMT="$ac_cv_path_MSGFMT" | |
5900 | if test "$MSGFMT" != ":"; then | |
a82a04b3 | 5901 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
5e13499c CR |
5902 | echo "${ECHO_T}$MSGFMT" >&6 |
5903 | else | |
a82a04b3 | 5904 | echo "$as_me:$LINENO: result: no" >&5 |
5e13499c CR |
5905 | echo "${ECHO_T}no" >&6 |
5906 | fi | |
5907 | ||
5908 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5909 | set dummy gmsgfmt; ac_word=$2 | |
a82a04b3 | 5910 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5e13499c CR |
5911 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5912 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5914 | else | |
5915 | case $GMSGFMT in | |
5916 | [\\/]* | ?:[\\/]*) | |
5917 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5918 | ;; | |
5919 | *) | |
a82a04b3 CR |
5920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5921 | for as_dir in $PATH | |
5922 | do | |
5923 | IFS=$as_save_IFS | |
5924 | test -z "$as_dir" && as_dir=. | |
5925 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5926 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5927 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5928 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5929 | break 2 | |
5930 | fi | |
5931 | done | |
5e13499c CR |
5932 | done |
5933 | ||
5934 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
5935 | ;; | |
5936 | esac | |
5937 | fi | |
5938 | GMSGFMT=$ac_cv_path_GMSGFMT | |
5939 | ||
5940 | if test -n "$GMSGFMT"; then | |
a82a04b3 | 5941 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
5e13499c CR |
5942 | echo "${ECHO_T}$GMSGFMT" >&6 |
5943 | else | |
a82a04b3 | 5944 | echo "$as_me:$LINENO: result: no" >&5 |
5e13499c CR |
5945 | echo "${ECHO_T}no" >&6 |
5946 | fi | |
5947 | ||
a82a04b3 CR |
5948 | |
5949 | ||
5e13499c CR |
5950 | # Prepare PATH_SEPARATOR. |
5951 | # The user is always right. | |
5952 | if test "${PATH_SEPARATOR+set}" != set; then | |
5953 | echo "#! /bin/sh" >conf$$.sh | |
5954 | echo "exit 0" >>conf$$.sh | |
5955 | chmod +x conf$$.sh | |
5956 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5957 | PATH_SEPARATOR=';' | |
5958 | else | |
5959 | PATH_SEPARATOR=: | |
5960 | fi | |
5961 | rm -f conf$$.sh | |
5962 | fi | |
5963 | ||
5964 | # Find out how to test for executable files. Don't use a zero-byte file, | |
5965 | # as systems may use methods other than mode bits to determine executability. | |
5966 | cat >conf$$.file <<_ASEOF | |
5967 | #! /bin/sh | |
5968 | exit 0 | |
5969 | _ASEOF | |
5970 | chmod +x conf$$.file | |
5971 | if test -x conf$$.file >/dev/null 2>&1; then | |
5972 | ac_executable_p="test -x" | |
5973 | else | |
5974 | ac_executable_p="test -f" | |
5975 | fi | |
5976 | rm -f conf$$.file | |
5977 | ||
5978 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5979 | set dummy xgettext; ac_word=$2 | |
a82a04b3 | 5980 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5e13499c CR |
5981 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5982 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5984 | else | |
5985 | case "$XGETTEXT" in | |
5986 | [\\/]* | ?:[\\/]*) | |
5987 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5988 | ;; | |
5989 | *) | |
5990 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5991 | for ac_dir in $PATH; do | |
5992 | IFS="$ac_save_IFS" | |
5993 | test -z "$ac_dir" && ac_dir=. | |
5994 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5995 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5996 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5997 | (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 | |
5998 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
5999 | break 2 | |
6000 | fi | |
6001 | fi | |
6002 | done | |
6003 | done | |
6004 | IFS="$ac_save_IFS" | |
6005 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
6006 | ;; | |
6007 | esac | |
6008 | fi | |
6009 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
6010 | if test "$XGETTEXT" != ":"; then | |
a82a04b3 | 6011 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
5e13499c CR |
6012 | echo "${ECHO_T}$XGETTEXT" >&6 |
6013 | else | |
a82a04b3 | 6014 | echo "$as_me:$LINENO: result: no" >&5 |
5e13499c CR |
6015 | echo "${ECHO_T}no" >&6 |
6016 | fi | |
6017 | ||
6018 | rm -f messages.po | |
6019 | ||
a82a04b3 | 6020 | |
5e13499c CR |
6021 | # Prepare PATH_SEPARATOR. |
6022 | # The user is always right. | |
6023 | if test "${PATH_SEPARATOR+set}" != set; then | |
6024 | echo "#! /bin/sh" >conf$$.sh | |
6025 | echo "exit 0" >>conf$$.sh | |
6026 | chmod +x conf$$.sh | |
6027 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6028 | PATH_SEPARATOR=';' | |
6029 | else | |
6030 | PATH_SEPARATOR=: | |
6031 | fi | |
6032 | rm -f conf$$.sh | |
6033 | fi | |
6034 | ||
6035 | # Find out how to test for executable files. Don't use a zero-byte file, | |
6036 | # as systems may use methods other than mode bits to determine executability. | |
6037 | cat >conf$$.file <<_ASEOF | |
6038 | #! /bin/sh | |
6039 | exit 0 | |
6040 | _ASEOF | |
6041 | chmod +x conf$$.file | |
6042 | if test -x conf$$.file >/dev/null 2>&1; then | |
6043 | ac_executable_p="test -x" | |
6044 | else | |
6045 | ac_executable_p="test -f" | |
6046 | fi | |
6047 | rm -f conf$$.file | |
6048 | ||
6049 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
6050 | set dummy msgmerge; ac_word=$2 | |
a82a04b3 | 6051 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5e13499c CR |
6052 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6053 | if test "${ac_cv_path_MSGMERGE+set}" = set; then | |
6054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6055 | else | |
6056 | case "$MSGMERGE" in | |
6057 | [\\/]* | ?:[\\/]*) | |
6058 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
6059 | ;; | |
6060 | *) | |
6061 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
6062 | for ac_dir in $PATH; do | |
6063 | IFS="$ac_save_IFS" | |
6064 | test -z "$ac_dir" && ac_dir=. | |
6065 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6066 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
6067 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
6068 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
6069 | break 2 | |
6070 | fi | |
6071 | fi | |
6072 | done | |
6073 | done | |
6074 | IFS="$ac_save_IFS" | |
6075 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
6076 | ;; | |
6077 | esac | |
6078 | fi | |
6079 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
6080 | if test "$MSGMERGE" != ":"; then | |
a82a04b3 | 6081 | echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
5e13499c CR |
6082 | echo "${ECHO_T}$MSGMERGE" >&6 |
6083 | else | |
a82a04b3 | 6084 | echo "$as_me:$LINENO: result: no" >&5 |
5e13499c CR |
6085 | echo "${ECHO_T}no" >&6 |
6086 | fi | |
6087 | ||
a82a04b3 | 6088 | |
5e13499c CR |
6089 | if test "$GMSGFMT" != ":"; then |
6090 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
6091 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
6092 | : ; | |
6093 | else | |
6094 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
a82a04b3 | 6095 | echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
5e13499c CR |
6096 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 |
6097 | GMSGFMT=":" | |
6098 | fi | |
6099 | fi | |
6100 | ||
6101 | if test "$XGETTEXT" != ":"; then | |
6102 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
6103 | (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 | |
6104 | : ; | |
6105 | else | |
a82a04b3 | 6106 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
5e13499c CR |
6107 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 |
6108 | XGETTEXT=":" | |
6109 | fi | |
6110 | rm -f messages.po | |
6111 | fi | |
6112 | ||
a82a04b3 CR |
6113 | ac_config_commands="$ac_config_commands default-1" |
6114 | ||
5e13499c | 6115 | |
a82a04b3 | 6116 | echo "$as_me:$LINENO: checking for off_t" >&5 |
5e13499c CR |
6117 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
6118 | if test "${ac_cv_type_off_t+set}" = set; then | |
6119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6120 | else | |
6121 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
6122 | /* confdefs.h. */ |
6123 | _ACEOF | |
6124 | cat confdefs.h >>conftest.$ac_ext | |
6125 | cat >>conftest.$ac_ext <<_ACEOF | |
6126 | /* end confdefs.h. */ | |
5e13499c CR |
6127 | $ac_includes_default |
6128 | int | |
6129 | main () | |
6130 | { | |
6131 | if ((off_t *) 0) | |
6132 | return 0; | |
6133 | if (sizeof (off_t)) | |
6134 | return 0; | |
6135 | ; | |
6136 | return 0; | |
6137 | } | |
6138 | _ACEOF | |
6139 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
6140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6141 | (eval $ac_compile) 2>conftest.er1 | |
5e13499c | 6142 | ac_status=$? |
a82a04b3 CR |
6143 | grep -v '^ *+' conftest.er1 >conftest.err |
6144 | rm -f conftest.er1 | |
6145 | cat conftest.err >&5 | |
6146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c | 6147 | (exit $ac_status); } && |
a82a04b3 CR |
6148 | { ac_try='test -z "$ac_c_werror_flag" |
6149 | || test ! -s conftest.err' | |
6150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6151 | (eval $ac_try) 2>&5 | |
6152 | ac_status=$? | |
6153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6154 | (exit $ac_status); }; } && | |
6155 | { ac_try='test -s conftest.$ac_objext' | |
6156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5e13499c CR |
6157 | (eval $ac_try) 2>&5 |
6158 | ac_status=$? | |
a82a04b3 | 6159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c CR |
6160 | (exit $ac_status); }; }; then |
6161 | ac_cv_type_off_t=yes | |
6162 | else | |
6163 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
6164 | sed 's/^/| /' conftest.$ac_ext >&5 |
6165 | ||
5e13499c CR |
6166 | ac_cv_type_off_t=no |
6167 | fi | |
a82a04b3 | 6168 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5e13499c | 6169 | fi |
a82a04b3 | 6170 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
5e13499c CR |
6171 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
6172 | if test $ac_cv_type_off_t = yes; then | |
6173 | : | |
6174 | else | |
6175 | ||
a82a04b3 | 6176 | cat >>confdefs.h <<_ACEOF |
5e13499c | 6177 | #define off_t long |
a82a04b3 | 6178 | _ACEOF |
5e13499c CR |
6179 | |
6180 | fi | |
6181 | ||
a82a04b3 | 6182 | echo "$as_me:$LINENO: checking for size_t" >&5 |
5e13499c CR |
6183 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
6184 | if test "${ac_cv_type_size_t+set}" = set; then | |
6185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6186 | else | |
6187 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
6188 | /* confdefs.h. */ |
6189 | _ACEOF | |
6190 | cat confdefs.h >>conftest.$ac_ext | |
6191 | cat >>conftest.$ac_ext <<_ACEOF | |
6192 | /* end confdefs.h. */ | |
5e13499c CR |
6193 | $ac_includes_default |
6194 | int | |
6195 | main () | |
6196 | { | |
6197 | if ((size_t *) 0) | |
6198 | return 0; | |
6199 | if (sizeof (size_t)) | |
6200 | return 0; | |
6201 | ; | |
6202 | return 0; | |
6203 | } | |
6204 | _ACEOF | |
6205 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
6206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6207 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 6208 | ac_status=$? |
a82a04b3 CR |
6209 | grep -v '^ *+' conftest.er1 >conftest.err |
6210 | rm -f conftest.er1 | |
6211 | cat conftest.err >&5 | |
6212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 6213 | (exit $ac_status); } && |
a82a04b3 CR |
6214 | { ac_try='test -z "$ac_c_werror_flag" |
6215 | || test ! -s conftest.err' | |
6216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6217 | (eval $ac_try) 2>&5 | |
6218 | ac_status=$? | |
6219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6220 | (exit $ac_status); }; } && | |
6221 | { ac_try='test -s conftest.$ac_objext' | |
6222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5e13499c CR |
6223 | (eval $ac_try) 2>&5 |
6224 | ac_status=$? | |
a82a04b3 | 6225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c CR |
6226 | (exit $ac_status); }; }; then |
6227 | ac_cv_type_size_t=yes | |
6228 | else | |
6229 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
6230 | sed 's/^/| /' conftest.$ac_ext >&5 |
6231 | ||
5e13499c CR |
6232 | ac_cv_type_size_t=no |
6233 | fi | |
a82a04b3 | 6234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5e13499c | 6235 | fi |
a82a04b3 | 6236 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
5e13499c CR |
6237 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
6238 | if test $ac_cv_type_size_t = yes; then | |
6239 | : | |
6240 | else | |
6241 | ||
a82a04b3 | 6242 | cat >>confdefs.h <<_ACEOF |
5e13499c | 6243 | #define size_t unsigned |
a82a04b3 | 6244 | _ACEOF |
5e13499c CR |
6245 | |
6246 | fi | |
6247 | ||
6248 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6249 | # for constant arguments. Useless! | |
a82a04b3 | 6250 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
5e13499c CR |
6251 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
6252 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
6253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6254 | else | |
6255 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
6256 | /* confdefs.h. */ |
6257 | _ACEOF | |
6258 | cat confdefs.h >>conftest.$ac_ext | |
6259 | cat >>conftest.$ac_ext <<_ACEOF | |
6260 | /* end confdefs.h. */ | |
5e13499c CR |
6261 | #include <alloca.h> |
6262 | int | |
6263 | main () | |
6264 | { | |
6265 | char *p = (char *) alloca (2 * sizeof (int)); | |
6266 | ; | |
6267 | return 0; | |
6268 | } | |
6269 | _ACEOF | |
6270 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
6271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6272 | (eval $ac_link) 2>conftest.er1 | |
5e13499c | 6273 | ac_status=$? |
a82a04b3 CR |
6274 | grep -v '^ *+' conftest.er1 >conftest.err |
6275 | rm -f conftest.er1 | |
6276 | cat conftest.err >&5 | |
6277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c | 6278 | (exit $ac_status); } && |
a82a04b3 CR |
6279 | { ac_try='test -z "$ac_c_werror_flag" |
6280 | || test ! -s conftest.err' | |
6281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6282 | (eval $ac_try) 2>&5 | |
6283 | ac_status=$? | |
6284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6285 | (exit $ac_status); }; } && | |
6286 | { ac_try='test -s conftest$ac_exeext' | |
6287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5e13499c CR |
6288 | (eval $ac_try) 2>&5 |
6289 | ac_status=$? | |
a82a04b3 | 6290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c CR |
6291 | (exit $ac_status); }; }; then |
6292 | ac_cv_working_alloca_h=yes | |
6293 | else | |
6294 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
6295 | sed 's/^/| /' conftest.$ac_ext >&5 |
6296 | ||
5e13499c CR |
6297 | ac_cv_working_alloca_h=no |
6298 | fi | |
a82a04b3 CR |
6299 | rm -f conftest.err conftest.$ac_objext \ |
6300 | conftest$ac_exeext conftest.$ac_ext | |
5e13499c | 6301 | fi |
a82a04b3 | 6302 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
5e13499c CR |
6303 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
6304 | if test $ac_cv_working_alloca_h = yes; then | |
6305 | ||
a82a04b3 | 6306 | cat >>confdefs.h <<\_ACEOF |
5e13499c | 6307 | #define HAVE_ALLOCA_H 1 |
a82a04b3 | 6308 | _ACEOF |
5e13499c CR |
6309 | |
6310 | fi | |
6311 | ||
a82a04b3 | 6312 | echo "$as_me:$LINENO: checking for alloca" >&5 |
5e13499c CR |
6313 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
6314 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
6315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6316 | else | |
6317 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
6318 | /* confdefs.h. */ |
6319 | _ACEOF | |
6320 | cat confdefs.h >>conftest.$ac_ext | |
6321 | cat >>conftest.$ac_ext <<_ACEOF | |
6322 | /* end confdefs.h. */ | |
5e13499c CR |
6323 | #ifdef __GNUC__ |
6324 | # define alloca __builtin_alloca | |
6325 | #else | |
6326 | # ifdef _MSC_VER | |
6327 | # include <malloc.h> | |
6328 | # define alloca _alloca | |
6329 | # else | |
6330 | # if HAVE_ALLOCA_H | |
6331 | # include <alloca.h> | |
6332 | # else | |
6333 | # ifdef _AIX | |
6334 | #pragma alloca | |
6335 | # else | |
6336 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6337 | char *alloca (); | |
6338 | # endif | |
6339 | # endif | |
6340 | # endif | |
6341 | # endif | |
6342 | #endif | |
6343 | ||
6344 | int | |
6345 | main () | |
6346 | { | |
6347 | char *p = (char *) alloca (1); | |
6348 | ; | |
6349 | return 0; | |
6350 | } | |
6351 | _ACEOF | |
6352 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
6353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6354 | (eval $ac_link) 2>conftest.er1 | |
5e13499c | 6355 | ac_status=$? |
a82a04b3 CR |
6356 | grep -v '^ *+' conftest.er1 >conftest.err |
6357 | rm -f conftest.er1 | |
6358 | cat conftest.err >&5 | |
6359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c | 6360 | (exit $ac_status); } && |
a82a04b3 CR |
6361 | { ac_try='test -z "$ac_c_werror_flag" |
6362 | || test ! -s conftest.err' | |
6363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6364 | (eval $ac_try) 2>&5 | |
6365 | ac_status=$? | |
6366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6367 | (exit $ac_status); }; } && | |
6368 | { ac_try='test -s conftest$ac_exeext' | |
6369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5e13499c CR |
6370 | (eval $ac_try) 2>&5 |
6371 | ac_status=$? | |
a82a04b3 | 6372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c CR |
6373 | (exit $ac_status); }; }; then |
6374 | ac_cv_func_alloca_works=yes | |
6375 | else | |
6376 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
6377 | sed 's/^/| /' conftest.$ac_ext >&5 |
6378 | ||
5e13499c CR |
6379 | ac_cv_func_alloca_works=no |
6380 | fi | |
a82a04b3 CR |
6381 | rm -f conftest.err conftest.$ac_objext \ |
6382 | conftest$ac_exeext conftest.$ac_ext | |
5e13499c | 6383 | fi |
a82a04b3 | 6384 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
5e13499c CR |
6385 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
6386 | ||
6387 | if test $ac_cv_func_alloca_works = yes; then | |
6388 | ||
a82a04b3 | 6389 | cat >>confdefs.h <<\_ACEOF |
5e13499c | 6390 | #define HAVE_ALLOCA 1 |
a82a04b3 | 6391 | _ACEOF |
5e13499c CR |
6392 | |
6393 | else | |
6394 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6395 | # that cause trouble. Some versions do not even contain alloca or | |
6396 | # contain a buggy version. If you still want to use their alloca, | |
6397 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6398 | ||
6399 | ALLOCA=alloca.$ac_objext | |
6400 | ||
a82a04b3 | 6401 | cat >>confdefs.h <<\_ACEOF |
5e13499c | 6402 | #define C_ALLOCA 1 |
a82a04b3 CR |
6403 | _ACEOF |
6404 | ||
545f34cf | 6405 | |
a82a04b3 | 6406 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
5e13499c CR |
6407 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
6408 | if test "${ac_cv_os_cray+set}" = set; then | |
6409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6410 | else | |
6411 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
6412 | /* confdefs.h. */ |
6413 | _ACEOF | |
6414 | cat confdefs.h >>conftest.$ac_ext | |
6415 | cat >>conftest.$ac_ext <<_ACEOF | |
6416 | /* end confdefs.h. */ | |
5e13499c CR |
6417 | #if defined(CRAY) && ! defined(CRAY2) |
6418 | webecray | |
6419 | #else | |
6420 | wenotbecray | |
6421 | #endif | |
6422 | ||
6423 | _ACEOF | |
6424 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
a82a04b3 | 6425 | $EGREP "webecray" >/dev/null 2>&1; then |
5e13499c CR |
6426 | ac_cv_os_cray=yes |
6427 | else | |
6428 | ac_cv_os_cray=no | |
6429 | fi | |
6430 | rm -f conftest* | |
6431 | ||
6432 | fi | |
a82a04b3 | 6433 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
5e13499c CR |
6434 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
6435 | if test $ac_cv_os_cray = yes; then | |
6436 | for ac_func in _getb67 GETB67 getb67; do | |
6437 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a82a04b3 | 6438 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5e13499c CR |
6439 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
6440 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6442 | else | |
6443 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
6444 | /* confdefs.h. */ |
6445 | _ACEOF | |
6446 | cat confdefs.h >>conftest.$ac_ext | |
6447 | cat >>conftest.$ac_ext <<_ACEOF | |
6448 | /* end confdefs.h. */ | |
6449 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6450 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6451 | #define $ac_func innocuous_$ac_func | |
6452 | ||
5e13499c | 6453 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
6454 | which can conflict with char $ac_func (); below. |
6455 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6456 | <limits.h> exists even on freestanding compilers. */ | |
6457 | ||
6458 | #ifdef __STDC__ | |
6459 | # include <limits.h> | |
6460 | #else | |
6461 | # include <assert.h> | |
6462 | #endif | |
6463 | ||
6464 | #undef $ac_func | |
6465 | ||
5e13499c CR |
6466 | /* Override any gcc2 internal prototype to avoid an error. */ |
6467 | #ifdef __cplusplus | |
6468 | extern "C" | |
a82a04b3 | 6469 | { |
5e13499c CR |
6470 | #endif |
6471 | /* We use char because int might match the return type of a gcc2 | |
6472 | builtin and then its argument prototype would still apply. */ | |
6473 | char $ac_func (); | |
5e13499c CR |
6474 | /* The GNU C library defines this for functions which it implements |
6475 | to always fail with ENOSYS. Some functions are actually named | |
6476 | something starting with __ and the normal name is an alias. */ | |
6477 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6478 | choke me | |
6479 | #else | |
a82a04b3 CR |
6480 | char (*f) () = $ac_func; |
6481 | #endif | |
6482 | #ifdef __cplusplus | |
6483 | } | |
5e13499c CR |
6484 | #endif |
6485 | ||
a82a04b3 CR |
6486 | int |
6487 | main () | |
6488 | { | |
6489 | return f != $ac_func; | |
5e13499c CR |
6490 | ; |
6491 | return 0; | |
6492 | } | |
6493 | _ACEOF | |
6494 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
6495 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6496 | (eval $ac_link) 2>conftest.er1 | |
5e13499c | 6497 | ac_status=$? |
a82a04b3 CR |
6498 | grep -v '^ *+' conftest.er1 >conftest.err |
6499 | rm -f conftest.er1 | |
6500 | cat conftest.err >&5 | |
6501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c | 6502 | (exit $ac_status); } && |
a82a04b3 CR |
6503 | { ac_try='test -z "$ac_c_werror_flag" |
6504 | || test ! -s conftest.err' | |
6505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6506 | (eval $ac_try) 2>&5 | |
6507 | ac_status=$? | |
6508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6509 | (exit $ac_status); }; } && | |
6510 | { ac_try='test -s conftest$ac_exeext' | |
6511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5e13499c CR |
6512 | (eval $ac_try) 2>&5 |
6513 | ac_status=$? | |
a82a04b3 | 6514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c CR |
6515 | (exit $ac_status); }; }; then |
6516 | eval "$as_ac_var=yes" | |
6517 | else | |
6518 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
6519 | sed 's/^/| /' conftest.$ac_ext >&5 |
6520 | ||
5e13499c CR |
6521 | eval "$as_ac_var=no" |
6522 | fi | |
a82a04b3 CR |
6523 | rm -f conftest.err conftest.$ac_objext \ |
6524 | conftest$ac_exeext conftest.$ac_ext | |
5e13499c | 6525 | fi |
a82a04b3 | 6526 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
5e13499c CR |
6527 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
6528 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6529 | ||
a82a04b3 | 6530 | cat >>confdefs.h <<_ACEOF |
5e13499c | 6531 | #define CRAY_STACKSEG_END $ac_func |
a82a04b3 | 6532 | _ACEOF |
5e13499c CR |
6533 | |
6534 | break | |
6535 | fi | |
6536 | ||
6537 | done | |
6538 | fi | |
6539 | ||
a82a04b3 | 6540 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
5e13499c CR |
6541 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
6542 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
6543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6544 | else | |
6545 | if test "$cross_compiling" = yes; then | |
6546 | ac_cv_c_stack_direction=0 | |
6547 | else | |
6548 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
6549 | /* confdefs.h. */ |
6550 | _ACEOF | |
6551 | cat confdefs.h >>conftest.$ac_ext | |
6552 | cat >>conftest.$ac_ext <<_ACEOF | |
6553 | /* end confdefs.h. */ | |
5e13499c CR |
6554 | int |
6555 | find_stack_direction () | |
6556 | { | |
6557 | static char *addr = 0; | |
6558 | auto char dummy; | |
6559 | if (addr == 0) | |
6560 | { | |
6561 | addr = &dummy; | |
6562 | return find_stack_direction (); | |
6563 | } | |
6564 | else | |
6565 | return (&dummy > addr) ? 1 : -1; | |
6566 | } | |
6567 | ||
6568 | int | |
6569 | main () | |
6570 | { | |
6571 | exit (find_stack_direction () < 0); | |
6572 | } | |
6573 | _ACEOF | |
6574 | rm -f conftest$ac_exeext | |
a82a04b3 | 6575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5e13499c CR |
6576 | (eval $ac_link) 2>&5 |
6577 | ac_status=$? | |
a82a04b3 | 6578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c | 6579 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 6580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5e13499c CR |
6581 | (eval $ac_try) 2>&5 |
6582 | ac_status=$? | |
a82a04b3 | 6583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c CR |
6584 | (exit $ac_status); }; }; then |
6585 | ac_cv_c_stack_direction=1 | |
6586 | else | |
6587 | echo "$as_me: program exited with status $ac_status" >&5 | |
6588 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
6589 | sed 's/^/| /' conftest.$ac_ext >&5 |
6590 | ||
6591 | ( exit $ac_status ) | |
5e13499c CR |
6592 | ac_cv_c_stack_direction=-1 |
6593 | fi | |
a82a04b3 | 6594 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5e13499c CR |
6595 | fi |
6596 | fi | |
a82a04b3 | 6597 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
5e13499c CR |
6598 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
6599 | ||
a82a04b3 | 6600 | cat >>confdefs.h <<_ACEOF |
5e13499c | 6601 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
a82a04b3 CR |
6602 | _ACEOF |
6603 | ||
5e13499c CR |
6604 | |
6605 | fi | |
6606 | ||
a82a04b3 CR |
6607 | |
6608 | ||
5e13499c CR |
6609 | for ac_header in stdlib.h unistd.h |
6610 | do | |
6611 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a82a04b3 CR |
6612 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6613 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5e13499c CR |
6614 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6615 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a82a04b3 CR |
6617 | fi |
6618 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6619 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
545f34cf | 6620 | else |
a82a04b3 CR |
6621 | # Is the header compilable? |
6622 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6623 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6624 | cat >conftest.$ac_ext <<_ACEOF | |
6625 | /* confdefs.h. */ | |
6626 | _ACEOF | |
6627 | cat confdefs.h >>conftest.$ac_ext | |
6628 | cat >>conftest.$ac_ext <<_ACEOF | |
6629 | /* end confdefs.h. */ | |
6630 | $ac_includes_default | |
6631 | #include <$ac_header> | |
6632 | _ACEOF | |
6633 | rm -f conftest.$ac_objext | |
6634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6635 | (eval $ac_compile) 2>conftest.er1 | |
6636 | ac_status=$? | |
6637 | grep -v '^ *+' conftest.er1 >conftest.err | |
6638 | rm -f conftest.er1 | |
6639 | cat conftest.err >&5 | |
6640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6641 | (exit $ac_status); } && | |
6642 | { ac_try='test -z "$ac_c_werror_flag" | |
6643 | || test ! -s conftest.err' | |
6644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6645 | (eval $ac_try) 2>&5 | |
6646 | ac_status=$? | |
6647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6648 | (exit $ac_status); }; } && | |
6649 | { ac_try='test -s conftest.$ac_objext' | |
6650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6651 | (eval $ac_try) 2>&5 | |
6652 | ac_status=$? | |
6653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6654 | (exit $ac_status); }; }; then | |
6655 | ac_header_compiler=yes | |
6656 | else | |
6657 | echo "$as_me: failed program was:" >&5 | |
6658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6659 | ||
6660 | ac_header_compiler=no | |
6661 | fi | |
6662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6663 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6664 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6665 | ||
6666 | # Is the header present? | |
6667 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6668 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6669 | cat >conftest.$ac_ext <<_ACEOF | |
6670 | /* confdefs.h. */ | |
6671 | _ACEOF | |
6672 | cat confdefs.h >>conftest.$ac_ext | |
6673 | cat >>conftest.$ac_ext <<_ACEOF | |
6674 | /* end confdefs.h. */ | |
5e13499c CR |
6675 | #include <$ac_header> |
6676 | _ACEOF | |
a82a04b3 | 6677 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5e13499c CR |
6678 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6679 | ac_status=$? | |
a82a04b3 | 6680 | grep -v '^ *+' conftest.er1 >conftest.err |
5e13499c CR |
6681 | rm -f conftest.er1 |
6682 | cat conftest.err >&5 | |
a82a04b3 | 6683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c CR |
6684 | (exit $ac_status); } >/dev/null; then |
6685 | if test -s conftest.err; then | |
6686 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a82a04b3 | 6687 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
5e13499c CR |
6688 | else |
6689 | ac_cpp_err= | |
6690 | fi | |
6691 | else | |
6692 | ac_cpp_err=yes | |
6693 | fi | |
6694 | if test -z "$ac_cpp_err"; then | |
a82a04b3 | 6695 | ac_header_preproc=yes |
5e13499c CR |
6696 | else |
6697 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
6698 | sed 's/^/| /' conftest.$ac_ext >&5 |
6699 | ||
6700 | ac_header_preproc=no | |
5e13499c CR |
6701 | fi |
6702 | rm -f conftest.err conftest.$ac_ext | |
a82a04b3 CR |
6703 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6704 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6705 | ||
6706 | # So? What about this header? | |
6707 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6708 | yes:no: ) | |
6709 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6710 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6711 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6712 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6713 | ac_header_preproc=yes | |
6714 | ;; | |
6715 | no:yes:* ) | |
6716 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6717 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6718 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6719 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6720 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6721 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6722 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6723 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6724 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6725 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6726 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6727 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6728 | ( | |
6729 | cat <<\_ASBOX | |
6730 | ## ------------------------------- ## | |
6731 | ## Report this to bug-bash@gnu.org ## | |
6732 | ## ------------------------------- ## | |
6733 | _ASBOX | |
6734 | ) | | |
6735 | sed "s/^/$as_me: WARNING: /" >&2 | |
6736 | ;; | |
6737 | esac | |
6738 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6739 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6740 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6742 | else | |
6743 | eval "$as_ac_Header=\$ac_header_preproc" | |
5e13499c | 6744 | fi |
a82a04b3 | 6745 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5e13499c | 6746 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
a82a04b3 CR |
6747 | |
6748 | fi | |
5e13499c | 6749 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
a82a04b3 | 6750 | cat >>confdefs.h <<_ACEOF |
5e13499c | 6751 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a82a04b3 | 6752 | _ACEOF |
5e13499c CR |
6753 | |
6754 | fi | |
a82a04b3 | 6755 | |
5e13499c CR |
6756 | done |
6757 | ||
a82a04b3 | 6758 | |
5e13499c CR |
6759 | for ac_func in getpagesize |
6760 | do | |
6761 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a82a04b3 | 6762 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5e13499c CR |
6763 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
6764 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6766 | else | |
6767 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
6768 | /* confdefs.h. */ |
6769 | _ACEOF | |
6770 | cat confdefs.h >>conftest.$ac_ext | |
6771 | cat >>conftest.$ac_ext <<_ACEOF | |
6772 | /* end confdefs.h. */ | |
6773 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6774 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6775 | #define $ac_func innocuous_$ac_func | |
6776 | ||
5e13499c | 6777 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
6778 | which can conflict with char $ac_func (); below. |
6779 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6780 | <limits.h> exists even on freestanding compilers. */ | |
6781 | ||
6782 | #ifdef __STDC__ | |
6783 | # include <limits.h> | |
6784 | #else | |
6785 | # include <assert.h> | |
6786 | #endif | |
6787 | ||
6788 | #undef $ac_func | |
6789 | ||
5e13499c CR |
6790 | /* Override any gcc2 internal prototype to avoid an error. */ |
6791 | #ifdef __cplusplus | |
6792 | extern "C" | |
a82a04b3 | 6793 | { |
5e13499c CR |
6794 | #endif |
6795 | /* We use char because int might match the return type of a gcc2 | |
6796 | builtin and then its argument prototype would still apply. */ | |
6797 | char $ac_func (); | |
5e13499c CR |
6798 | /* The GNU C library defines this for functions which it implements |
6799 | to always fail with ENOSYS. Some functions are actually named | |
6800 | something starting with __ and the normal name is an alias. */ | |
6801 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6802 | choke me | |
6803 | #else | |
a82a04b3 CR |
6804 | char (*f) () = $ac_func; |
6805 | #endif | |
6806 | #ifdef __cplusplus | |
6807 | } | |
5e13499c CR |
6808 | #endif |
6809 | ||
a82a04b3 CR |
6810 | int |
6811 | main () | |
6812 | { | |
6813 | return f != $ac_func; | |
5e13499c CR |
6814 | ; |
6815 | return 0; | |
6816 | } | |
6817 | _ACEOF | |
6818 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
6819 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6820 | (eval $ac_link) 2>conftest.er1 | |
5e13499c | 6821 | ac_status=$? |
a82a04b3 CR |
6822 | grep -v '^ *+' conftest.er1 >conftest.err |
6823 | rm -f conftest.er1 | |
6824 | cat conftest.err >&5 | |
6825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c | 6826 | (exit $ac_status); } && |
a82a04b3 CR |
6827 | { ac_try='test -z "$ac_c_werror_flag" |
6828 | || test ! -s conftest.err' | |
6829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6830 | (eval $ac_try) 2>&5 | |
6831 | ac_status=$? | |
6832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6833 | (exit $ac_status); }; } && | |
6834 | { ac_try='test -s conftest$ac_exeext' | |
6835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5e13499c CR |
6836 | (eval $ac_try) 2>&5 |
6837 | ac_status=$? | |
a82a04b3 | 6838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c CR |
6839 | (exit $ac_status); }; }; then |
6840 | eval "$as_ac_var=yes" | |
6841 | else | |
6842 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
6843 | sed 's/^/| /' conftest.$ac_ext >&5 |
6844 | ||
5e13499c CR |
6845 | eval "$as_ac_var=no" |
6846 | fi | |
a82a04b3 CR |
6847 | rm -f conftest.err conftest.$ac_objext \ |
6848 | conftest$ac_exeext conftest.$ac_ext | |
5e13499c | 6849 | fi |
a82a04b3 | 6850 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
5e13499c CR |
6851 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
6852 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a82a04b3 | 6853 | cat >>confdefs.h <<_ACEOF |
5e13499c | 6854 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a82a04b3 | 6855 | _ACEOF |
5e13499c CR |
6856 | |
6857 | fi | |
6858 | done | |
6859 | ||
a82a04b3 | 6860 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
5e13499c CR |
6861 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
6862 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
6863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6864 | else | |
6865 | if test "$cross_compiling" = yes; then | |
6866 | ac_cv_func_mmap_fixed_mapped=no | |
6867 | else | |
6868 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
6869 | /* confdefs.h. */ |
6870 | _ACEOF | |
6871 | cat confdefs.h >>conftest.$ac_ext | |
6872 | cat >>conftest.$ac_ext <<_ACEOF | |
6873 | /* end confdefs.h. */ | |
5e13499c | 6874 | $ac_includes_default |
a82a04b3 CR |
6875 | /* malloc might have been renamed as rpl_malloc. */ |
6876 | #undef malloc | |
6877 | ||
5e13499c CR |
6878 | /* Thanks to Mike Haertel and Jim Avera for this test. |
6879 | Here is a matrix of mmap possibilities: | |
6880 | mmap private not fixed | |
6881 | mmap private fixed at somewhere currently unmapped | |
6882 | mmap private fixed at somewhere already mapped | |
6883 | mmap shared not fixed | |
6884 | mmap shared fixed at somewhere currently unmapped | |
6885 | mmap shared fixed at somewhere already mapped | |
6886 | For private mappings, we should verify that changes cannot be read() | |
6887 | back from the file, nor mmap's back from the file at a different | |
6888 | address. (There have been systems where private was not correctly | |
6889 | implemented like the infamous i386 svr4.0, and systems where the | |
6890 | VM page cache was not coherent with the file system buffer cache | |
6891 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6892 | For shared mappings, we should conversely verify that changes get | |
a82a04b3 | 6893 | propagated back to all the places they're supposed to be. |
5e13499c CR |
6894 | |
6895 | Grep wants private fixed already mapped. | |
6896 | The main things grep needs to know about mmap are: | |
6897 | * does it exist and is it safe to write into the mmap'd area | |
6898 | * how to use it (BSD variants) */ | |
6899 | ||
6900 | #include <fcntl.h> | |
6901 | #include <sys/mman.h> | |
6902 | ||
6903 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
6904 | char *malloc (); | |
6905 | #endif | |
6906 | ||
6907 | /* This mess was copied from the GNU getpagesize.h. */ | |
6908 | #if !HAVE_GETPAGESIZE | |
6909 | /* Assume that all systems that can run configure have sys/param.h. */ | |
6910 | # if !HAVE_SYS_PARAM_H | |
6911 | # define HAVE_SYS_PARAM_H 1 | |
6912 | # endif | |
6913 | ||
6914 | # ifdef _SC_PAGESIZE | |
6915 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6916 | # else /* no _SC_PAGESIZE */ | |
6917 | # if HAVE_SYS_PARAM_H | |
6918 | # include <sys/param.h> | |
6919 | # ifdef EXEC_PAGESIZE | |
6920 | # define getpagesize() EXEC_PAGESIZE | |
6921 | # else /* no EXEC_PAGESIZE */ | |
6922 | # ifdef NBPG | |
6923 | # define getpagesize() NBPG * CLSIZE | |
6924 | # ifndef CLSIZE | |
6925 | # define CLSIZE 1 | |
6926 | # endif /* no CLSIZE */ | |
6927 | # else /* no NBPG */ | |
6928 | # ifdef NBPC | |
6929 | # define getpagesize() NBPC | |
6930 | # else /* no NBPC */ | |
6931 | # ifdef PAGESIZE | |
6932 | # define getpagesize() PAGESIZE | |
6933 | # endif /* PAGESIZE */ | |
6934 | # endif /* no NBPC */ | |
6935 | # endif /* no NBPG */ | |
6936 | # endif /* no EXEC_PAGESIZE */ | |
6937 | # else /* no HAVE_SYS_PARAM_H */ | |
6938 | # define getpagesize() 8192 /* punt totally */ | |
6939 | # endif /* no HAVE_SYS_PARAM_H */ | |
6940 | # endif /* no _SC_PAGESIZE */ | |
6941 | ||
6942 | #endif /* no HAVE_GETPAGESIZE */ | |
6943 | ||
6944 | int | |
6945 | main () | |
6946 | { | |
6947 | char *data, *data2, *data3; | |
6948 | int i, pagesize; | |
6949 | int fd; | |
6950 | ||
6951 | pagesize = getpagesize (); | |
6952 | ||
6953 | /* First, make a file with some known garbage in it. */ | |
6954 | data = (char *) malloc (pagesize); | |
6955 | if (!data) | |
6956 | exit (1); | |
6957 | for (i = 0; i < pagesize; ++i) | |
6958 | *(data + i) = rand (); | |
6959 | umask (0); | |
6960 | fd = creat ("conftest.mmap", 0600); | |
6961 | if (fd < 0) | |
6962 | exit (1); | |
6963 | if (write (fd, data, pagesize) != pagesize) | |
6964 | exit (1); | |
6965 | close (fd); | |
6966 | ||
6967 | /* Next, try to mmap the file at a fixed address which already has | |
6968 | something else allocated at it. If we can, also make sure that | |
6969 | we see the same garbage. */ | |
6970 | fd = open ("conftest.mmap", O_RDWR); | |
6971 | if (fd < 0) | |
6972 | exit (1); | |
6973 | data2 = (char *) malloc (2 * pagesize); | |
6974 | if (!data2) | |
6975 | exit (1); | |
a82a04b3 | 6976 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
5e13499c | 6977 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
a82a04b3 | 6978 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
5e13499c CR |
6979 | exit (1); |
6980 | for (i = 0; i < pagesize; ++i) | |
6981 | if (*(data + i) != *(data2 + i)) | |
6982 | exit (1); | |
6983 | ||
6984 | /* Finally, make sure that changes to the mapped area do not | |
6985 | percolate back to the file as seen by read(). (This is a bug on | |
6986 | some variants of i386 svr4.0.) */ | |
6987 | for (i = 0; i < pagesize; ++i) | |
6988 | *(data2 + i) = *(data2 + i) + 1; | |
6989 | data3 = (char *) malloc (pagesize); | |
6990 | if (!data3) | |
6991 | exit (1); | |
6992 | if (read (fd, data3, pagesize) != pagesize) | |
6993 | exit (1); | |
6994 | for (i = 0; i < pagesize; ++i) | |
6995 | if (*(data + i) != *(data3 + i)) | |
6996 | exit (1); | |
6997 | close (fd); | |
6998 | exit (0); | |
6999 | } | |
7000 | _ACEOF | |
7001 | rm -f conftest$ac_exeext | |
a82a04b3 | 7002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5e13499c CR |
7003 | (eval $ac_link) 2>&5 |
7004 | ac_status=$? | |
a82a04b3 | 7005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c | 7006 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 7007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5e13499c CR |
7008 | (eval $ac_try) 2>&5 |
7009 | ac_status=$? | |
a82a04b3 | 7010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c CR |
7011 | (exit $ac_status); }; }; then |
7012 | ac_cv_func_mmap_fixed_mapped=yes | |
7013 | else | |
7014 | echo "$as_me: program exited with status $ac_status" >&5 | |
7015 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
7016 | sed 's/^/| /' conftest.$ac_ext >&5 |
7017 | ||
7018 | ( exit $ac_status ) | |
5e13499c CR |
7019 | ac_cv_func_mmap_fixed_mapped=no |
7020 | fi | |
a82a04b3 | 7021 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5e13499c CR |
7022 | fi |
7023 | fi | |
a82a04b3 | 7024 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
5e13499c CR |
7025 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
7026 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
7027 | ||
a82a04b3 | 7028 | cat >>confdefs.h <<\_ACEOF |
5e13499c | 7029 | #define HAVE_MMAP 1 |
a82a04b3 | 7030 | _ACEOF |
5e13499c CR |
7031 | |
7032 | fi | |
7033 | rm -f conftest.mmap | |
7034 | ||
a82a04b3 CR |
7035 | |
7036 | echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 | |
5e13499c CR |
7037 | echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 |
7038 | if test "${ac_cv_gnu_library_2_1+set}" = set; then | |
7039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7040 | else | |
7041 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
7042 | /* confdefs.h. */ |
7043 | _ACEOF | |
7044 | cat confdefs.h >>conftest.$ac_ext | |
7045 | cat >>conftest.$ac_ext <<_ACEOF | |
7046 | /* end confdefs.h. */ | |
5e13499c CR |
7047 | |
7048 | #include <features.h> | |
7049 | #ifdef __GNU_LIBRARY__ | |
7050 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) | |
7051 | Lucky GNU user | |
7052 | #endif | |
7053 | #endif | |
7054 | ||
7055 | _ACEOF | |
7056 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
a82a04b3 | 7057 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then |
5e13499c CR |
7058 | ac_cv_gnu_library_2_1=yes |
7059 | else | |
7060 | ac_cv_gnu_library_2_1=no | |
7061 | fi | |
7062 | rm -f conftest* | |
7063 | ||
a82a04b3 CR |
7064 | |
7065 | ||
5e13499c | 7066 | fi |
a82a04b3 | 7067 | echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
5e13499c CR |
7068 | echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 |
7069 | ||
7070 | GLIBC21="$ac_cv_gnu_library_2_1" | |
7071 | ||
a82a04b3 CR |
7072 | |
7073 | ||
7074 | ||
7075 | echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 | |
5e13499c CR |
7076 | echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6 |
7077 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then | |
7078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7079 | else | |
7080 | ||
7081 | if test "$cross_compiling" = yes; then | |
7082 | ||
7083 | # Guess based on the CPU. | |
7084 | case "$host_cpu" in | |
7085 | alpha* | i3456786 | m68k | s390*) | |
7086 | gt_cv_int_divbyzero_sigfpe="guessing yes";; | |
7087 | *) | |
7088 | gt_cv_int_divbyzero_sigfpe="guessing no";; | |
7089 | esac | |
7090 | ||
7091 | else | |
7092 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
7093 | /* confdefs.h. */ |
7094 | _ACEOF | |
7095 | cat confdefs.h >>conftest.$ac_ext | |
7096 | cat >>conftest.$ac_ext <<_ACEOF | |
7097 | /* end confdefs.h. */ | |
5e13499c CR |
7098 | |
7099 | #include <stdlib.h> | |
7100 | #include <signal.h> | |
7101 | ||
7102 | static void | |
7103 | #ifdef __cplusplus | |
7104 | sigfpe_handler (int sig) | |
7105 | #else | |
7106 | sigfpe_handler (sig) int sig; | |
7107 | #endif | |
7108 | { | |
7109 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ | |
7110 | exit (sig != SIGFPE); | |
7111 | } | |
7112 | ||
7113 | int x = 1; | |
7114 | int y = 0; | |
7115 | int z; | |
7116 | int nan; | |
7117 | ||
7118 | int main () | |
7119 | { | |
7120 | signal (SIGFPE, sigfpe_handler); | |
7121 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ | |
7122 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) | |
7123 | signal (SIGTRAP, sigfpe_handler); | |
7124 | #endif | |
7125 | /* Linux/SPARC yields signal SIGILL. */ | |
7126 | #if defined (__sparc__) && defined (__linux__) | |
7127 | signal (SIGILL, sigfpe_handler); | |
7128 | #endif | |
7129 | ||
7130 | z = x / y; | |
7131 | nan = y / y; | |
7132 | exit (1); | |
7133 | } | |
7134 | ||
7135 | _ACEOF | |
7136 | rm -f conftest$ac_exeext | |
a82a04b3 | 7137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5e13499c CR |
7138 | (eval $ac_link) 2>&5 |
7139 | ac_status=$? | |
a82a04b3 | 7140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c | 7141 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 7142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5e13499c CR |
7143 | (eval $ac_try) 2>&5 |
7144 | ac_status=$? | |
a82a04b3 | 7145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c CR |
7146 | (exit $ac_status); }; }; then |
7147 | gt_cv_int_divbyzero_sigfpe=yes | |
7148 | else | |
7149 | echo "$as_me: program exited with status $ac_status" >&5 | |
7150 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
7151 | sed 's/^/| /' conftest.$ac_ext >&5 |
7152 | ||
7153 | ( exit $ac_status ) | |
5e13499c CR |
7154 | gt_cv_int_divbyzero_sigfpe=no |
7155 | fi | |
a82a04b3 | 7156 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5e13499c CR |
7157 | fi |
7158 | ||
7159 | fi | |
a82a04b3 | 7160 | echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
5e13499c CR |
7161 | echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6 |
7162 | case "$gt_cv_int_divbyzero_sigfpe" in | |
7163 | *yes) value=1;; | |
7164 | *) value=0;; | |
7165 | esac | |
7166 | ||
a82a04b3 | 7167 | cat >>confdefs.h <<_ACEOF |
5e13499c | 7168 | #define INTDIV0_RAISES_SIGFPE $value |
a82a04b3 CR |
7169 | _ACEOF |
7170 | ||
545f34cf | 7171 | |
a82a04b3 CR |
7172 | |
7173 | echo "$as_me:$LINENO: checking for inttypes.h" >&5 | |
5e13499c CR |
7174 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 |
7175 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then | |
7176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7177 | else | |
7178 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
7179 | /* confdefs.h. */ |
7180 | _ACEOF | |
7181 | cat confdefs.h >>conftest.$ac_ext | |
7182 | cat >>conftest.$ac_ext <<_ACEOF | |
7183 | /* end confdefs.h. */ | |
5e13499c CR |
7184 | #include <sys/types.h> |
7185 | #include <inttypes.h> | |
7186 | int | |
7187 | main () | |
7188 | { | |
7189 | uintmax_t i = (uintmax_t) -1; | |
7190 | ; | |
7191 | return 0; | |
7192 | } | |
7193 | _ACEOF | |
7194 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
7195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7196 | (eval $ac_compile) 2>conftest.er1 | |
5e13499c | 7197 | ac_status=$? |
a82a04b3 CR |
7198 | grep -v '^ *+' conftest.er1 >conftest.err |
7199 | rm -f conftest.er1 | |
7200 | cat conftest.err >&5 | |
7201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c | 7202 | (exit $ac_status); } && |
a82a04b3 CR |
7203 | { ac_try='test -z "$ac_c_werror_flag" |
7204 | || test ! -s conftest.err' | |
7205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7206 | (eval $ac_try) 2>&5 | |
7207 | ac_status=$? | |
7208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7209 | (exit $ac_status); }; } && | |
7210 | { ac_try='test -s conftest.$ac_objext' | |
7211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5e13499c CR |
7212 | (eval $ac_try) 2>&5 |
7213 | ac_status=$? | |
a82a04b3 | 7214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c CR |
7215 | (exit $ac_status); }; }; then |
7216 | jm_ac_cv_header_inttypes_h=yes | |
7217 | else | |
7218 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
7219 | sed 's/^/| /' conftest.$ac_ext >&5 |
7220 | ||
5e13499c CR |
7221 | jm_ac_cv_header_inttypes_h=no |
7222 | fi | |
a82a04b3 | 7223 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5e13499c | 7224 | fi |
a82a04b3 | 7225 | echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
5e13499c CR |
7226 | echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6 |
7227 | if test $jm_ac_cv_header_inttypes_h = yes; then | |
7228 | ||
a82a04b3 | 7229 | cat >>confdefs.h <<_ACEOF |
5e13499c | 7230 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
a82a04b3 | 7231 | _ACEOF |
5e13499c CR |
7232 | |
7233 | fi | |
7234 | ||
a82a04b3 CR |
7235 | |
7236 | echo "$as_me:$LINENO: checking for stdint.h" >&5 | |
5e13499c CR |
7237 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 |
7238 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then | |
7239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7240 | else | |
7241 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
7242 | /* confdefs.h. */ |
7243 | _ACEOF | |
7244 | cat confdefs.h >>conftest.$ac_ext | |
7245 | cat >>conftest.$ac_ext <<_ACEOF | |
7246 | /* end confdefs.h. */ | |
5e13499c CR |
7247 | #include <sys/types.h> |
7248 | #include <stdint.h> | |
7249 | int | |
7250 | main () | |
7251 | { | |
7252 | uintmax_t i = (uintmax_t) -1; | |
7253 | ; | |
7254 | return 0; | |
7255 | } | |
7256 | _ACEOF | |
7257 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
7258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7259 | (eval $ac_compile) 2>conftest.er1 | |
5e13499c | 7260 | ac_status=$? |
a82a04b3 CR |
7261 | grep -v '^ *+' conftest.er1 >conftest.err |
7262 | rm -f conftest.er1 | |
7263 | cat conftest.err >&5 | |
7264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c | 7265 | (exit $ac_status); } && |
a82a04b3 CR |
7266 | { ac_try='test -z "$ac_c_werror_flag" |
7267 | || test ! -s conftest.err' | |
7268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7269 | (eval $ac_try) 2>&5 | |
7270 | ac_status=$? | |
7271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7272 | (exit $ac_status); }; } && | |
7273 | { ac_try='test -s conftest.$ac_objext' | |
7274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5e13499c CR |
7275 | (eval $ac_try) 2>&5 |
7276 | ac_status=$? | |
a82a04b3 | 7277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c CR |
7278 | (exit $ac_status); }; }; then |
7279 | jm_ac_cv_header_stdint_h=yes | |
7280 | else | |
7281 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
7282 | sed 's/^/| /' conftest.$ac_ext >&5 |
7283 | ||
5e13499c CR |
7284 | jm_ac_cv_header_stdint_h=no |
7285 | fi | |
a82a04b3 | 7286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5e13499c | 7287 | fi |
a82a04b3 | 7288 | echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
5e13499c CR |
7289 | echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6 |
7290 | if test $jm_ac_cv_header_stdint_h = yes; then | |
7291 | ||
a82a04b3 | 7292 | cat >>confdefs.h <<_ACEOF |
5e13499c | 7293 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
a82a04b3 | 7294 | _ACEOF |
5e13499c CR |
7295 | |
7296 | fi | |
7297 | ||
a82a04b3 CR |
7298 | |
7299 | echo "$as_me:$LINENO: checking for unsigned long long" >&5 | |
5e13499c CR |
7300 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 |
7301 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then | |
7302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7303 | else | |
7304 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
7305 | /* confdefs.h. */ |
7306 | _ACEOF | |
7307 | cat confdefs.h >>conftest.$ac_ext | |
7308 | cat >>conftest.$ac_ext <<_ACEOF | |
7309 | /* end confdefs.h. */ | |
5e13499c CR |
7310 | unsigned long long ull = 1; int i = 63; |
7311 | int | |
7312 | main () | |
7313 | { | |
7314 | unsigned long long ullmax = (unsigned long long) -1; | |
7315 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; | |
7316 | ; | |
7317 | return 0; | |
7318 | } | |
7319 | _ACEOF | |
7320 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
7321 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7322 | (eval $ac_link) 2>conftest.er1 | |
5e13499c | 7323 | ac_status=$? |
a82a04b3 CR |
7324 | grep -v '^ *+' conftest.er1 >conftest.err |
7325 | rm -f conftest.er1 | |
7326 | cat conftest.err >&5 | |
7327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c | 7328 | (exit $ac_status); } && |
a82a04b3 CR |
7329 | { ac_try='test -z "$ac_c_werror_flag" |
7330 | || test ! -s conftest.err' | |
7331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7332 | (eval $ac_try) 2>&5 | |
7333 | ac_status=$? | |
7334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7335 | (exit $ac_status); }; } && | |
7336 | { ac_try='test -s conftest$ac_exeext' | |
7337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5e13499c CR |
7338 | (eval $ac_try) 2>&5 |
7339 | ac_status=$? | |
a82a04b3 | 7340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c CR |
7341 | (exit $ac_status); }; }; then |
7342 | ac_cv_type_unsigned_long_long=yes | |
7343 | else | |
7344 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
7345 | sed 's/^/| /' conftest.$ac_ext >&5 |
7346 | ||
5e13499c CR |
7347 | ac_cv_type_unsigned_long_long=no |
7348 | fi | |
a82a04b3 CR |
7349 | rm -f conftest.err conftest.$ac_objext \ |
7350 | conftest$ac_exeext conftest.$ac_ext | |
5e13499c | 7351 | fi |
a82a04b3 | 7352 | echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
5e13499c CR |
7353 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 |
7354 | if test $ac_cv_type_unsigned_long_long = yes; then | |
7355 | ||
a82a04b3 | 7356 | cat >>confdefs.h <<\_ACEOF |
5e13499c | 7357 | #define HAVE_UNSIGNED_LONG_LONG 1 |
a82a04b3 | 7358 | _ACEOF |
5e13499c CR |
7359 | |
7360 | fi | |
7361 | ||
a82a04b3 CR |
7362 | |
7363 | ||
7364 | ||
5e13499c CR |
7365 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then |
7366 | ||
7367 | test $ac_cv_type_unsigned_long_long = yes \ | |
7368 | && ac_type='unsigned long long' \ | |
7369 | || ac_type='unsigned long' | |
7370 | ||
a82a04b3 | 7371 | cat >>confdefs.h <<_ACEOF |
5e13499c | 7372 | #define uintmax_t $ac_type |
a82a04b3 | 7373 | _ACEOF |
5e13499c CR |
7374 | |
7375 | else | |
7376 | ||
a82a04b3 | 7377 | cat >>confdefs.h <<\_ACEOF |
5e13499c | 7378 | #define HAVE_UINTMAX_T 1 |
a82a04b3 | 7379 | _ACEOF |
5e13499c CR |
7380 | |
7381 | fi | |
7382 | ||
a82a04b3 CR |
7383 | |
7384 | echo "$as_me:$LINENO: checking for inttypes.h" >&5 | |
5e13499c CR |
7385 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 |
7386 | if test "${gt_cv_header_inttypes_h+set}" = set; then | |
7387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7388 | else | |
7389 | ||
7390 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
7391 | /* confdefs.h. */ |
7392 | _ACEOF | |
7393 | cat confdefs.h >>conftest.$ac_ext | |
7394 | cat >>conftest.$ac_ext <<_ACEOF | |
7395 | /* end confdefs.h. */ | |
5e13499c CR |
7396 | #include <sys/types.h> |
7397 | #include <inttypes.h> | |
7398 | int | |
7399 | main () | |
7400 | { | |
7401 | ||
7402 | ; | |
7403 | return 0; | |
7404 | } | |
7405 | _ACEOF | |
7406 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
7407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7408 | (eval $ac_compile) 2>conftest.er1 | |
5e13499c | 7409 | ac_status=$? |
a82a04b3 CR |
7410 | grep -v '^ *+' conftest.er1 >conftest.err |
7411 | rm -f conftest.er1 | |
7412 | cat conftest.err >&5 | |
7413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c | 7414 | (exit $ac_status); } && |
a82a04b3 CR |
7415 | { ac_try='test -z "$ac_c_werror_flag" |
7416 | || test ! -s conftest.err' | |
7417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7418 | (eval $ac_try) 2>&5 | |
7419 | ac_status=$? | |
7420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7421 | (exit $ac_status); }; } && | |
7422 | { ac_try='test -s conftest.$ac_objext' | |
7423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5e13499c CR |
7424 | (eval $ac_try) 2>&5 |
7425 | ac_status=$? | |
a82a04b3 | 7426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c CR |
7427 | (exit $ac_status); }; }; then |
7428 | gt_cv_header_inttypes_h=yes | |
7429 | else | |
7430 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
7431 | sed 's/^/| /' conftest.$ac_ext >&5 |
7432 | ||
5e13499c CR |
7433 | gt_cv_header_inttypes_h=no |
7434 | fi | |
a82a04b3 | 7435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5e13499c CR |
7436 | |
7437 | fi | |
a82a04b3 | 7438 | echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
5e13499c CR |
7439 | echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6 |
7440 | if test $gt_cv_header_inttypes_h = yes; then | |
7441 | ||
a82a04b3 | 7442 | cat >>confdefs.h <<_ACEOF |
5e13499c | 7443 | #define HAVE_INTTYPES_H 1 |
a82a04b3 | 7444 | _ACEOF |
5e13499c CR |
7445 | |
7446 | fi | |
7447 | ||
a82a04b3 CR |
7448 | |
7449 | ||
5e13499c | 7450 | if test $gt_cv_header_inttypes_h = yes; then |
a82a04b3 | 7451 | echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
5e13499c CR |
7452 | echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6 |
7453 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then | |
7454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7455 | else | |
7456 | ||
7457 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
7458 | /* confdefs.h. */ |
7459 | _ACEOF | |
7460 | cat confdefs.h >>conftest.$ac_ext | |
7461 | cat >>conftest.$ac_ext <<_ACEOF | |
7462 | /* end confdefs.h. */ | |
5e13499c CR |
7463 | #include <inttypes.h> |
7464 | #ifdef PRId32 | |
7465 | char *p = PRId32; | |
7466 | #endif | |
7467 | ||
7468 | int | |
7469 | main () | |
7470 | { | |
7471 | ||
7472 | ; | |
7473 | return 0; | |
7474 | } | |
7475 | _ACEOF | |
7476 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
7477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7478 | (eval $ac_compile) 2>conftest.er1 | |
5e13499c | 7479 | ac_status=$? |
a82a04b3 CR |
7480 | grep -v '^ *+' conftest.er1 >conftest.err |
7481 | rm -f conftest.er1 | |
7482 | cat conftest.err >&5 | |
7483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c | 7484 | (exit $ac_status); } && |
a82a04b3 CR |
7485 | { ac_try='test -z "$ac_c_werror_flag" |
7486 | || test ! -s conftest.err' | |
7487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7488 | (eval $ac_try) 2>&5 | |
7489 | ac_status=$? | |
7490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7491 | (exit $ac_status); }; } && | |
7492 | { ac_try='test -s conftest.$ac_objext' | |
7493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5e13499c CR |
7494 | (eval $ac_try) 2>&5 |
7495 | ac_status=$? | |
a82a04b3 | 7496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c CR |
7497 | (exit $ac_status); }; }; then |
7498 | gt_cv_inttypes_pri_broken=no | |
7499 | else | |
7500 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
7501 | sed 's/^/| /' conftest.$ac_ext >&5 |
7502 | ||
5e13499c CR |
7503 | gt_cv_inttypes_pri_broken=yes |
7504 | fi | |
a82a04b3 | 7505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5e13499c CR |
7506 | |
7507 | fi | |
a82a04b3 | 7508 | echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
5e13499c CR |
7509 | echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6 |
7510 | fi | |
7511 | if test "$gt_cv_inttypes_pri_broken" = yes; then | |
7512 | ||
a82a04b3 | 7513 | cat >>confdefs.h <<_ACEOF |
5e13499c | 7514 | #define PRI_MACROS_BROKEN 1 |
a82a04b3 | 7515 | _ACEOF |
5e13499c CR |
7516 | |
7517 | fi | |
7518 | ||
a82a04b3 | 7519 | |
5e13499c CR |
7520 | if test "X$prefix" = "XNONE"; then |
7521 | acl_final_prefix="$ac_default_prefix" | |
7522 | else | |
7523 | acl_final_prefix="$prefix" | |
7524 | fi | |
7525 | if test "X$exec_prefix" = "XNONE"; then | |
7526 | acl_final_exec_prefix='${prefix}' | |
7527 | else | |
7528 | acl_final_exec_prefix="$exec_prefix" | |
7529 | fi | |
7530 | acl_save_prefix="$prefix" | |
7531 | prefix="$acl_final_prefix" | |
7532 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
7533 | prefix="$acl_save_prefix" | |
7534 | ||
a82a04b3 | 7535 | |
5e13499c CR |
7536 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
7537 | if test "${with_gnu_ld+set}" = set; then | |
7538 | withval="$with_gnu_ld" | |
7539 | test "$withval" = no || with_gnu_ld=yes | |
7540 | else | |
7541 | with_gnu_ld=no | |
7542 | fi; | |
7543 | # Prepare PATH_SEPARATOR. | |
7544 | # The user is always right. | |
7545 | if test "${PATH_SEPARATOR+set}" != set; then | |
7546 | echo "#! /bin/sh" >conf$$.sh | |
7547 | echo "exit 0" >>conf$$.sh | |
7548 | chmod +x conf$$.sh | |
7549 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7550 | PATH_SEPARATOR=';' | |
7551 | else | |
7552 | PATH_SEPARATOR=: | |
7553 | fi | |
7554 | rm -f conf$$.sh | |
7555 | fi | |
7556 | ac_prog=ld | |
7557 | if test "$GCC" = yes; then | |
7558 | # Check if gcc -print-prog-name=ld gives a path. | |
a82a04b3 | 7559 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
5e13499c CR |
7560 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
7561 | case $host in | |
7562 | *-*-mingw*) | |
7563 | # gcc leaves a trailing carriage return which upsets mingw | |
7564 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
7565 | *) | |
7566 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
7567 | esac | |
7568 | case $ac_prog in | |
7569 | # Accept absolute paths. | |
7570 | [\\/]* | [A-Za-z]:[\\/]*) | |
7571 | re_direlt='/[^/][^/]*/\.\./' | |
7572 | # Canonicalize the path of ld | |
7573 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
7574 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
7575 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
7576 | done | |
7577 | test -z "$LD" && LD="$ac_prog" | |
7578 | ;; | |
7579 | "") | |
7580 | # If it fails, then pretend we aren't using GCC. | |
7581 | ac_prog=ld | |
7582 | ;; | |
7583 | *) | |
7584 | # If it is relative, then search for the first ld in PATH. | |
7585 | with_gnu_ld=unknown | |
7586 | ;; | |
7587 | esac | |
7588 | elif test "$with_gnu_ld" = yes; then | |
a82a04b3 | 7589 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
5e13499c CR |
7590 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
7591 | else | |
a82a04b3 | 7592 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
5e13499c CR |
7593 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
7594 | fi | |
7595 | if test "${acl_cv_path_LD+set}" = set; then | |
7596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7597 | else | |
7598 | if test -z "$LD"; then | |
7599 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
7600 | for ac_dir in $PATH; do | |
7601 | test -z "$ac_dir" && ac_dir=. | |
7602 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
7603 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
7604 | # Check to see if the program is GNU ld. I'd rather use --version, | |
7605 | # but apparently some GNU ld's only accept -v. | |
7606 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
7607 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
7608 | test "$with_gnu_ld" != no && break | |
7609 | else | |
7610 | test "$with_gnu_ld" != yes && break | |
7611 | fi | |
7612 | fi | |
7613 | done | |
7614 | IFS="$ac_save_ifs" | |
7615 | else | |
7616 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
7617 | fi | |
7618 | fi | |
7619 | ||
7620 | LD="$acl_cv_path_LD" | |
7621 | if test -n "$LD"; then | |
a82a04b3 | 7622 | echo "$as_me:$LINENO: result: $LD" >&5 |
5e13499c CR |
7623 | echo "${ECHO_T}$LD" >&6 |
7624 | else | |
a82a04b3 | 7625 | echo "$as_me:$LINENO: result: no" >&5 |
5e13499c CR |
7626 | echo "${ECHO_T}no" >&6 |
7627 | fi | |
a82a04b3 | 7628 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
5e13499c CR |
7629 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
7630 | { (exit 1); exit 1; }; } | |
a82a04b3 | 7631 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
5e13499c CR |
7632 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
7633 | if test "${acl_cv_prog_gnu_ld+set}" = set; then | |
7634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7635 | else | |
7636 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
7637 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
7638 | acl_cv_prog_gnu_ld=yes | |
7639 | else | |
7640 | acl_cv_prog_gnu_ld=no | |
7641 | fi | |
7642 | fi | |
a82a04b3 | 7643 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
5e13499c CR |
7644 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 |
7645 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
7646 | ||
a82a04b3 CR |
7647 | |
7648 | ||
7649 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 | |
5e13499c CR |
7650 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 |
7651 | if test "${acl_cv_rpath+set}" = set; then | |
7652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7653 | else | |
7654 | ||
7655 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
7656 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
7657 | . ./conftest.sh | |
7658 | rm -f ./conftest.sh | |
7659 | acl_cv_rpath=done | |
7660 | ||
7661 | fi | |
a82a04b3 | 7662 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
5e13499c CR |
7663 | echo "${ECHO_T}$acl_cv_rpath" >&6 |
7664 | wl="$acl_cv_wl" | |
7665 | libext="$acl_cv_libext" | |
7666 | shlibext="$acl_cv_shlibext" | |
7667 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
7668 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
7669 | hardcode_direct="$acl_cv_hardcode_direct" | |
7670 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
7671 | # Check whether --enable-rpath or --disable-rpath was given. | |
7672 | if test "${enable_rpath+set}" = set; then | |
7673 | enableval="$enable_rpath" | |
7674 | : | |
7675 | else | |
7676 | enable_rpath=yes | |
7677 | fi; | |
7678 | ||
a82a04b3 CR |
7679 | |
7680 | ||
7681 | ||
7682 | ||
7683 | ||
7684 | ||
5e13499c CR |
7685 | use_additional=yes |
7686 | ||
7687 | acl_save_prefix="$prefix" | |
7688 | prefix="$acl_final_prefix" | |
7689 | acl_save_exec_prefix="$exec_prefix" | |
7690 | exec_prefix="$acl_final_exec_prefix" | |
7691 | ||
7692 | eval additional_includedir=\"$includedir\" | |
7693 | eval additional_libdir=\"$libdir\" | |
7694 | ||
7695 | exec_prefix="$acl_save_exec_prefix" | |
7696 | prefix="$acl_save_prefix" | |
7697 | ||
a82a04b3 | 7698 | |
5e13499c CR |
7699 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
7700 | if test "${with_libiconv_prefix+set}" = set; then | |
7701 | withval="$with_libiconv_prefix" | |
7702 | ||
7703 | if test "X$withval" = "Xno"; then | |
7704 | use_additional=no | |
7705 | else | |
7706 | if test "X$withval" = "X"; then | |
7707 | ||
7708 | acl_save_prefix="$prefix" | |
7709 | prefix="$acl_final_prefix" | |
7710 | acl_save_exec_prefix="$exec_prefix" | |
7711 | exec_prefix="$acl_final_exec_prefix" | |
7712 | ||
7713 | eval additional_includedir=\"$includedir\" | |
7714 | eval additional_libdir=\"$libdir\" | |
7715 | ||
7716 | exec_prefix="$acl_save_exec_prefix" | |
7717 | prefix="$acl_save_prefix" | |
7718 | ||
7719 | else | |
7720 | additional_includedir="$withval/include" | |
7721 | additional_libdir="$withval/lib" | |
7722 | fi | |
7723 | fi | |
7724 | ||
7725 | fi; | |
7726 | LIBICONV= | |
7727 | LTLIBICONV= | |
7728 | INCICONV= | |
7729 | rpathdirs= | |
7730 | ltrpathdirs= | |
7731 | names_already_handled= | |
7732 | names_next_round='iconv ' | |
7733 | while test -n "$names_next_round"; do | |
7734 | names_this_round="$names_next_round" | |
7735 | names_next_round= | |
7736 | for name in $names_this_round; do | |
7737 | already_handled= | |
7738 | for n in $names_already_handled; do | |
7739 | if test "$n" = "$name"; then | |
7740 | already_handled=yes | |
7741 | break | |
7742 | fi | |
7743 | done | |
7744 | if test -z "$already_handled"; then | |
7745 | names_already_handled="$names_already_handled $name" | |
7746 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
7747 | eval value=\"\$HAVE_LIB$uppername\" | |
7748 | if test -n "$value"; then | |
7749 | if test "$value" = yes; then | |
7750 | eval value=\"\$LIB$uppername\" | |
7751 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
7752 | eval value=\"\$LTLIB$uppername\" | |
7753 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
7754 | else | |
7755 | : | |
7756 | fi | |
7757 | else | |
7758 | found_dir= | |
7759 | found_la= | |
7760 | found_so= | |
7761 | found_a= | |
7762 | if test $use_additional = yes; then | |
7763 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
7764 | found_dir="$additional_libdir" | |
7765 | found_so="$additional_libdir/lib$name.$shlibext" | |
7766 | if test -f "$additional_libdir/lib$name.la"; then | |
7767 | found_la="$additional_libdir/lib$name.la" | |
7768 | fi | |
7769 | else | |
7770 | if test -f "$additional_libdir/lib$name.$libext"; then | |
7771 | found_dir="$additional_libdir" | |
7772 | found_a="$additional_libdir/lib$name.$libext" | |
7773 | if test -f "$additional_libdir/lib$name.la"; then | |
7774 | found_la="$additional_libdir/lib$name.la" | |
7775 | fi | |
7776 | fi | |
7777 | fi | |
7778 | fi | |
7779 | if test "X$found_dir" = "X"; then | |
7780 | for x in $LDFLAGS $LTLIBICONV; do | |
7781 | ||
7782 | acl_save_prefix="$prefix" | |
7783 | prefix="$acl_final_prefix" | |
7784 | acl_save_exec_prefix="$exec_prefix" | |
7785 | exec_prefix="$acl_final_exec_prefix" | |
7786 | eval x=\"$x\" | |
7787 | exec_prefix="$acl_save_exec_prefix" | |
7788 | prefix="$acl_save_prefix" | |
7789 | ||
7790 | case "$x" in | |
7791 | -L*) | |
7792 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
7793 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
7794 | found_dir="$dir" | |
7795 | found_so="$dir/lib$name.$shlibext" | |
7796 | if test -f "$dir/lib$name.la"; then | |
7797 | found_la="$dir/lib$name.la" | |
7798 | fi | |
7799 | else | |
7800 | if test -f "$dir/lib$name.$libext"; then | |
7801 | found_dir="$dir" | |
7802 | found_a="$dir/lib$name.$libext" | |
7803 | if test -f "$dir/lib$name.la"; then | |
7804 | found_la="$dir/lib$name.la" | |
7805 | fi | |
7806 | fi | |
7807 | fi | |
7808 | ;; | |
7809 | esac | |
7810 | if test "X$found_dir" != "X"; then | |
7811 | break | |
7812 | fi | |
7813 | done | |
7814 | fi | |
7815 | if test "X$found_dir" != "X"; then | |
7816 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
7817 | if test "X$found_so" != "X"; then | |
7818 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
7819 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7820 | else | |
7821 | haveit= | |
7822 | for x in $ltrpathdirs; do | |
7823 | if test "X$x" = "X$found_dir"; then | |
7824 | haveit=yes | |
7825 | break | |
7826 | fi | |
7827 | done | |
7828 | if test -z "$haveit"; then | |
7829 | ltrpathdirs="$ltrpathdirs $found_dir" | |
7830 | fi | |
7831 | if test "$hardcode_direct" = yes; then | |
7832 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7833 | else | |
7834 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
7835 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7836 | haveit= | |
7837 | for x in $rpathdirs; do | |
7838 | if test "X$x" = "X$found_dir"; then | |
7839 | haveit=yes | |
7840 | break | |
7841 | fi | |
7842 | done | |
7843 | if test -z "$haveit"; then | |
7844 | rpathdirs="$rpathdirs $found_dir" | |
7845 | fi | |
7846 | else | |
7847 | haveit= | |
7848 | for x in $LDFLAGS $LIBICONV; do | |
7849 | ||
7850 | acl_save_prefix="$prefix" | |
7851 | prefix="$acl_final_prefix" | |
7852 | acl_save_exec_prefix="$exec_prefix" | |
7853 | exec_prefix="$acl_final_exec_prefix" | |
7854 | eval x=\"$x\" | |
7855 | exec_prefix="$acl_save_exec_prefix" | |
7856 | prefix="$acl_save_prefix" | |
7857 | ||
7858 | if test "X$x" = "X-L$found_dir"; then | |
7859 | haveit=yes | |
7860 | break | |
7861 | fi | |
7862 | done | |
7863 | if test -z "$haveit"; then | |
7864 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
7865 | fi | |
7866 | if test "$hardcode_minus_L" != no; then | |
7867 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7868 | else | |
7869 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
7870 | fi | |
7871 | fi | |
7872 | fi | |
7873 | fi | |
7874 | else | |
7875 | if test "X$found_a" != "X"; then | |
7876 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
7877 | else | |
7878 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
7879 | fi | |
7880 | fi | |
7881 | additional_includedir= | |
7882 | case "$found_dir" in | |
7883 | */lib | */lib/) | |
7884 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
7885 | additional_includedir="$basedir/include" | |
7886 | ;; | |
7887 | esac | |
7888 | if test "X$additional_includedir" != "X"; then | |
7889 | if test "X$additional_includedir" != "X/usr/include"; then | |
7890 | haveit= | |
7891 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
7892 | if test -n "$GCC"; then | |
7893 | case $host_os in | |
7894 | linux*) haveit=yes;; | |
7895 | esac | |
7896 | fi | |
7897 | fi | |
7898 | if test -z "$haveit"; then | |
7899 | for x in $CPPFLAGS $INCICONV; do | |
7900 | ||
7901 | acl_save_prefix="$prefix" | |
7902 | prefix="$acl_final_prefix" | |
7903 | acl_save_exec_prefix="$exec_prefix" | |
7904 | exec_prefix="$acl_final_exec_prefix" | |
7905 | eval x=\"$x\" | |
7906 | exec_prefix="$acl_save_exec_prefix" | |
7907 | prefix="$acl_save_prefix" | |
7908 | ||
7909 | if test "X$x" = "X-I$additional_includedir"; then | |
7910 | haveit=yes | |
7911 | break | |
7912 | fi | |
7913 | done | |
7914 | if test -z "$haveit"; then | |
7915 | if test -d "$additional_includedir"; then | |
7916 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
7917 | fi | |
7918 | fi | |
7919 | fi | |
7920 | fi | |
7921 | fi | |
7922 | if test -n "$found_la"; then | |
7923 | save_libdir="$libdir" | |
7924 | case "$found_la" in | |
7925 | */* | *\\*) . "$found_la" ;; | |
7926 | *) . "./$found_la" ;; | |
7927 | esac | |
7928 | libdir="$save_libdir" | |
7929 | for dep in $dependency_libs; do | |
7930 | case "$dep" in | |
7931 | -L*) | |
7932 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
7933 | if test "X$additional_libdir" != "X/usr/lib"; then | |
7934 | haveit= | |
7935 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
7936 | if test -n "$GCC"; then | |
7937 | case $host_os in | |
7938 | linux*) haveit=yes;; | |
7939 | esac | |
7940 | fi | |
7941 | fi | |
7942 | if test -z "$haveit"; then | |
7943 | haveit= | |
7944 | for x in $LDFLAGS $LIBICONV; do | |
7945 | ||
7946 | acl_save_prefix="$prefix" | |
7947 | prefix="$acl_final_prefix" | |
7948 | acl_save_exec_prefix="$exec_prefix" | |
7949 | exec_prefix="$acl_final_exec_prefix" | |
7950 | eval x=\"$x\" | |
7951 | exec_prefix="$acl_save_exec_prefix" | |
7952 | prefix="$acl_save_prefix" | |
7953 | ||
7954 | if test "X$x" = "X-L$additional_libdir"; then | |
7955 | haveit=yes | |
7956 | break | |
7957 | fi | |
7958 | done | |
7959 | if test -z "$haveit"; then | |
7960 | if test -d "$additional_libdir"; then | |
7961 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
7962 | fi | |
7963 | fi | |
7964 | haveit= | |
7965 | for x in $LDFLAGS $LTLIBICONV; do | |
7966 | ||
7967 | acl_save_prefix="$prefix" | |
7968 | prefix="$acl_final_prefix" | |
7969 | acl_save_exec_prefix="$exec_prefix" | |
7970 | exec_prefix="$acl_final_exec_prefix" | |
7971 | eval x=\"$x\" | |
7972 | exec_prefix="$acl_save_exec_prefix" | |
7973 | prefix="$acl_save_prefix" | |
7974 | ||
7975 | if test "X$x" = "X-L$additional_libdir"; then | |
7976 | haveit=yes | |
7977 | break | |
7978 | fi | |
7979 | done | |
7980 | if test -z "$haveit"; then | |
7981 | if test -d "$additional_libdir"; then | |
7982 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
7983 | fi | |
7984 | fi | |
7985 | fi | |
7986 | fi | |
7987 | ;; | |
7988 | -R*) | |
7989 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
7990 | if test "$enable_rpath" != no; then | |
7991 | haveit= | |
7992 | for x in $rpathdirs; do | |
7993 | if test "X$x" = "X$dir"; then | |
7994 | haveit=yes | |
7995 | break | |
7996 | fi | |
7997 | done | |
7998 | if test -z "$haveit"; then | |
7999 | rpathdirs="$rpathdirs $dir" | |
8000 | fi | |
8001 | haveit= | |
8002 | for x in $ltrpathdirs; do | |
8003 | if test "X$x" = "X$dir"; then | |
8004 | haveit=yes | |
8005 | break | |
8006 | fi | |
8007 | done | |
8008 | if test -z "$haveit"; then | |
8009 | ltrpathdirs="$ltrpathdirs $dir" | |
8010 | fi | |
8011 | fi | |
8012 | ;; | |
8013 | -l*) | |
8014 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
8015 | ;; | |
8016 | *.la) | |
8017 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
8018 | ;; | |
8019 | *) | |
8020 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
8021 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
8022 | ;; | |
8023 | esac | |
8024 | done | |
8025 | fi | |
8026 | else | |
8027 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
8028 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
8029 | fi | |
8030 | fi | |
8031 | fi | |
8032 | done | |
8033 | done | |
8034 | if test "X$rpathdirs" != "X"; then | |
8035 | if test -n "$hardcode_libdir_separator"; then | |
8036 | alldirs= | |
8037 | for found_dir in $rpathdirs; do | |
8038 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
8039 | done | |
8040 | acl_save_libdir="$libdir" | |
8041 | libdir="$alldirs" | |
8042 | eval flag=\"$hardcode_libdir_flag_spec\" | |
8043 | libdir="$acl_save_libdir" | |
8044 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
8045 | else | |
8046 | for found_dir in $rpathdirs; do | |
8047 | acl_save_libdir="$libdir" | |
8048 | libdir="$found_dir" | |
8049 | eval flag=\"$hardcode_libdir_flag_spec\" | |
8050 | libdir="$acl_save_libdir" | |
8051 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
8052 | done | |
8053 | fi | |
8054 | fi | |
8055 | if test "X$ltrpathdirs" != "X"; then | |
8056 | for found_dir in $ltrpathdirs; do | |
8057 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
8058 | done | |
8059 | fi | |
8060 | ||
a82a04b3 CR |
8061 | |
8062 | ||
8063 | ||
8064 | ||
8065 | ||
8066 | ||
8067 | ||
8068 | ||
8069 | ||
8070 | ||
8071 | ||
8072 | ||
8073 | ||
5e13499c CR |
8074 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ |
8075 | stdlib.h string.h unistd.h sys/param.h | |
8076 | do | |
8077 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a82a04b3 CR |
8078 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8079 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5e13499c CR |
8080 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8081 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a82a04b3 CR |
8083 | fi |
8084 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8085 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5e13499c | 8086 | else |
a82a04b3 CR |
8087 | # Is the header compilable? |
8088 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8089 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8090 | cat >conftest.$ac_ext <<_ACEOF | |
8091 | /* confdefs.h. */ | |
8092 | _ACEOF | |
8093 | cat confdefs.h >>conftest.$ac_ext | |
8094 | cat >>conftest.$ac_ext <<_ACEOF | |
8095 | /* end confdefs.h. */ | |
8096 | $ac_includes_default | |
8097 | #include <$ac_header> | |
8098 | _ACEOF | |
8099 | rm -f conftest.$ac_objext | |
8100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8101 | (eval $ac_compile) 2>conftest.er1 | |
8102 | ac_status=$? | |
8103 | grep -v '^ *+' conftest.er1 >conftest.err | |
8104 | rm -f conftest.er1 | |
8105 | cat conftest.err >&5 | |
8106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8107 | (exit $ac_status); } && | |
8108 | { ac_try='test -z "$ac_c_werror_flag" | |
8109 | || test ! -s conftest.err' | |
8110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8111 | (eval $ac_try) 2>&5 | |
8112 | ac_status=$? | |
8113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8114 | (exit $ac_status); }; } && | |
8115 | { ac_try='test -s conftest.$ac_objext' | |
8116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8117 | (eval $ac_try) 2>&5 | |
8118 | ac_status=$? | |
8119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8120 | (exit $ac_status); }; }; then | |
8121 | ac_header_compiler=yes | |
8122 | else | |
8123 | echo "$as_me: failed program was:" >&5 | |
8124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8125 | ||
8126 | ac_header_compiler=no | |
8127 | fi | |
8128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8129 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8130 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8131 | ||
8132 | # Is the header present? | |
8133 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8134 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8135 | cat >conftest.$ac_ext <<_ACEOF | |
8136 | /* confdefs.h. */ | |
8137 | _ACEOF | |
8138 | cat confdefs.h >>conftest.$ac_ext | |
8139 | cat >>conftest.$ac_ext <<_ACEOF | |
8140 | /* end confdefs.h. */ | |
545f34cf CR |
8141 | #include <$ac_header> |
8142 | _ACEOF | |
a82a04b3 | 8143 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5e13499c CR |
8144 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8145 | ac_status=$? | |
a82a04b3 | 8146 | grep -v '^ *+' conftest.er1 >conftest.err |
5e13499c CR |
8147 | rm -f conftest.er1 |
8148 | cat conftest.err >&5 | |
a82a04b3 | 8149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c CR |
8150 | (exit $ac_status); } >/dev/null; then |
8151 | if test -s conftest.err; then | |
8152 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a82a04b3 | 8153 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
5e13499c CR |
8154 | else |
8155 | ac_cpp_err= | |
8156 | fi | |
8157 | else | |
8158 | ac_cpp_err=yes | |
8159 | fi | |
8160 | if test -z "$ac_cpp_err"; then | |
a82a04b3 | 8161 | ac_header_preproc=yes |
5e13499c CR |
8162 | else |
8163 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
8164 | sed 's/^/| /' conftest.$ac_ext >&5 |
8165 | ||
8166 | ac_header_preproc=no | |
5e13499c CR |
8167 | fi |
8168 | rm -f conftest.err conftest.$ac_ext | |
a82a04b3 CR |
8169 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8170 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8171 | ||
8172 | # So? What about this header? | |
8173 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8174 | yes:no: ) | |
8175 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8176 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8177 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8178 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8179 | ac_header_preproc=yes | |
8180 | ;; | |
8181 | no:yes:* ) | |
8182 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8183 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8184 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8185 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8186 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8187 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8188 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8189 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8190 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8191 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8192 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8193 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8194 | ( | |
8195 | cat <<\_ASBOX | |
8196 | ## ------------------------------- ## | |
8197 | ## Report this to bug-bash@gnu.org ## | |
8198 | ## ------------------------------- ## | |
8199 | _ASBOX | |
8200 | ) | | |
8201 | sed "s/^/$as_me: WARNING: /" >&2 | |
8202 | ;; | |
8203 | esac | |
8204 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8205 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8206 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8208 | else | |
8209 | eval "$as_ac_Header=\$ac_header_preproc" | |
5e13499c | 8210 | fi |
a82a04b3 | 8211 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5e13499c | 8212 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
a82a04b3 CR |
8213 | |
8214 | fi | |
5e13499c | 8215 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
a82a04b3 | 8216 | cat >>confdefs.h <<_ACEOF |
5e13499c | 8217 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a82a04b3 | 8218 | _ACEOF |
5e13499c CR |
8219 | |
8220 | fi | |
a82a04b3 | 8221 | |
5e13499c CR |
8222 | done |
8223 | ||
e624d0f7 | 8224 | |
a82a04b3 CR |
8225 | |
8226 | ||
8227 | ||
8228 | ||
8229 | ||
8230 | ||
8231 | ||
8232 | ||
8233 | ||
8234 | ||
8235 | ||
8236 | ||
8237 | ||
8238 | ||
8239 | ||
8240 | ||
8241 | ||
8242 | ||
8243 | ||
8244 | ||
8245 | ||
8246 | for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ | |
8247 | geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ | |
8248 | strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \ | |
8249 | __fsetlocking | |
8250 | do | |
8251 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8252 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8253 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8254 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8256 | else | |
8257 | cat >conftest.$ac_ext <<_ACEOF | |
8258 | /* confdefs.h. */ | |
8259 | _ACEOF | |
8260 | cat confdefs.h >>conftest.$ac_ext | |
8261 | cat >>conftest.$ac_ext <<_ACEOF | |
8262 | /* end confdefs.h. */ | |
8263 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8264 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8265 | #define $ac_func innocuous_$ac_func | |
8266 | ||
8267 | /* System header to define __stub macros and hopefully few prototypes, | |
8268 | which can conflict with char $ac_func (); below. | |
8269 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8270 | <limits.h> exists even on freestanding compilers. */ | |
8271 | ||
8272 | #ifdef __STDC__ | |
8273 | # include <limits.h> | |
8274 | #else | |
8275 | # include <assert.h> | |
8276 | #endif | |
8277 | ||
8278 | #undef $ac_func | |
8279 | ||
8280 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8281 | #ifdef __cplusplus | |
8282 | extern "C" | |
e624d0f7 | 8283 | { |
a82a04b3 CR |
8284 | #endif |
8285 | /* We use char because int might match the return type of a gcc2 | |
8286 | builtin and then its argument prototype would still apply. */ | |
8287 | char $ac_func (); | |
5e13499c CR |
8288 | /* The GNU C library defines this for functions which it implements |
8289 | to always fail with ENOSYS. Some functions are actually named | |
8290 | something starting with __ and the normal name is an alias. */ | |
8291 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8292 | choke me | |
8293 | #else | |
a82a04b3 CR |
8294 | char (*f) () = $ac_func; |
8295 | #endif | |
8296 | #ifdef __cplusplus | |
8297 | } | |
5e13499c CR |
8298 | #endif |
8299 | ||
a82a04b3 CR |
8300 | int |
8301 | main () | |
8302 | { | |
8303 | return f != $ac_func; | |
5e13499c CR |
8304 | ; |
8305 | return 0; | |
8306 | } | |
8307 | _ACEOF | |
8308 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
8309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8310 | (eval $ac_link) 2>conftest.er1 | |
5e13499c | 8311 | ac_status=$? |
a82a04b3 CR |
8312 | grep -v '^ *+' conftest.er1 >conftest.err |
8313 | rm -f conftest.er1 | |
8314 | cat conftest.err >&5 | |
8315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c | 8316 | (exit $ac_status); } && |
a82a04b3 CR |
8317 | { ac_try='test -z "$ac_c_werror_flag" |
8318 | || test ! -s conftest.err' | |
8319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5e13499c CR |
8320 | (eval $ac_try) 2>&5 |
8321 | ac_status=$? | |
a82a04b3 CR |
8322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8323 | (exit $ac_status); }; } && | |
8324 | { ac_try='test -s conftest$ac_exeext' | |
8325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8326 | (eval $ac_try) 2>&5 | |
8327 | ac_status=$? | |
8328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c CR |
8329 | (exit $ac_status); }; }; then |
8330 | eval "$as_ac_var=yes" | |
8331 | else | |
8332 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
8333 | sed 's/^/| /' conftest.$ac_ext >&5 |
8334 | ||
5e13499c CR |
8335 | eval "$as_ac_var=no" |
8336 | fi | |
a82a04b3 CR |
8337 | rm -f conftest.err conftest.$ac_objext \ |
8338 | conftest$ac_exeext conftest.$ac_ext | |
5e13499c | 8339 | fi |
a82a04b3 | 8340 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
5e13499c CR |
8341 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8342 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a82a04b3 | 8343 | cat >>confdefs.h <<_ACEOF |
5e13499c | 8344 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a82a04b3 | 8345 | _ACEOF |
5e13499c CR |
8346 | |
8347 | fi | |
8348 | done | |
8349 | ||
a82a04b3 CR |
8350 | |
8351 | ||
8352 | ||
8353 | ||
8354 | ||
8355 | ||
5e13499c CR |
8356 | am_save_CPPFLAGS="$CPPFLAGS" |
8357 | ||
8358 | for element in $INCICONV; do | |
8359 | haveit= | |
8360 | for x in $CPPFLAGS; do | |
8361 | ||
8362 | acl_save_prefix="$prefix" | |
8363 | prefix="$acl_final_prefix" | |
8364 | acl_save_exec_prefix="$exec_prefix" | |
8365 | exec_prefix="$acl_final_exec_prefix" | |
8366 | eval x=\"$x\" | |
8367 | exec_prefix="$acl_save_exec_prefix" | |
8368 | prefix="$acl_save_prefix" | |
8369 | ||
8370 | if test "X$x" = "X$element"; then | |
8371 | haveit=yes | |
8372 | break | |
8373 | fi | |
8374 | done | |
8375 | if test -z "$haveit"; then | |
8376 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
8377 | fi | |
8378 | done | |
8379 | ||
a82a04b3 CR |
8380 | |
8381 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
5e13499c CR |
8382 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 |
8383 | if test "${am_cv_func_iconv+set}" = set; then | |
8384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8385 | else | |
8386 | ||
8387 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
8388 | am_cv_lib_iconv=no | |
8389 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
8390 | /* confdefs.h. */ |
8391 | _ACEOF | |
8392 | cat confdefs.h >>conftest.$ac_ext | |
8393 | cat >>conftest.$ac_ext <<_ACEOF | |
8394 | /* end confdefs.h. */ | |
5e13499c CR |
8395 | #include <stdlib.h> |
8396 | #include <iconv.h> | |
8397 | int | |
8398 | main () | |
8399 | { | |
8400 | iconv_t cd = iconv_open("",""); | |
8401 | iconv(cd,NULL,NULL,NULL,NULL); | |
8402 | iconv_close(cd); | |
8403 | ; | |
8404 | return 0; | |
8405 | } | |
8406 | _ACEOF | |
8407 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
8408 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8409 | (eval $ac_link) 2>conftest.er1 | |
5e13499c | 8410 | ac_status=$? |
a82a04b3 CR |
8411 | grep -v '^ *+' conftest.er1 >conftest.err |
8412 | rm -f conftest.er1 | |
8413 | cat conftest.err >&5 | |
8414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c | 8415 | (exit $ac_status); } && |
a82a04b3 CR |
8416 | { ac_try='test -z "$ac_c_werror_flag" |
8417 | || test ! -s conftest.err' | |
8418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5e13499c CR |
8419 | (eval $ac_try) 2>&5 |
8420 | ac_status=$? | |
a82a04b3 CR |
8421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8422 | (exit $ac_status); }; } && | |
8423 | { ac_try='test -s conftest$ac_exeext' | |
8424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8425 | (eval $ac_try) 2>&5 | |
8426 | ac_status=$? | |
8427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c CR |
8428 | (exit $ac_status); }; }; then |
8429 | am_cv_func_iconv=yes | |
8430 | else | |
8431 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
8432 | sed 's/^/| /' conftest.$ac_ext >&5 |
8433 | ||
5e13499c | 8434 | fi |
a82a04b3 CR |
8435 | rm -f conftest.err conftest.$ac_objext \ |
8436 | conftest$ac_exeext conftest.$ac_ext | |
5e13499c CR |
8437 | if test "$am_cv_func_iconv" != yes; then |
8438 | am_save_LIBS="$LIBS" | |
8439 | LIBS="$LIBS $LIBICONV" | |
8440 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
8441 | /* confdefs.h. */ |
8442 | _ACEOF | |
8443 | cat confdefs.h >>conftest.$ac_ext | |
8444 | cat >>conftest.$ac_ext <<_ACEOF | |
8445 | /* end confdefs.h. */ | |
5e13499c CR |
8446 | #include <stdlib.h> |
8447 | #include <iconv.h> | |
8448 | int | |
8449 | main () | |
8450 | { | |
8451 | iconv_t cd = iconv_open("",""); | |
8452 | iconv(cd,NULL,NULL,NULL,NULL); | |
8453 | iconv_close(cd); | |
8454 | ; | |
8455 | return 0; | |
8456 | } | |
8457 | _ACEOF | |
8458 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
8459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8460 | (eval $ac_link) 2>conftest.er1 | |
5e13499c | 8461 | ac_status=$? |
a82a04b3 CR |
8462 | grep -v '^ *+' conftest.er1 >conftest.err |
8463 | rm -f conftest.er1 | |
8464 | cat conftest.err >&5 | |
8465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c | 8466 | (exit $ac_status); } && |
a82a04b3 CR |
8467 | { ac_try='test -z "$ac_c_werror_flag" |
8468 | || 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_exeext' | |
8475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5e13499c CR |
8476 | (eval $ac_try) 2>&5 |
8477 | ac_status=$? | |
a82a04b3 | 8478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c CR |
8479 | (exit $ac_status); }; }; then |
8480 | am_cv_lib_iconv=yes | |
8481 | am_cv_func_iconv=yes | |
8482 | else | |
8483 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
8484 | sed 's/^/| /' conftest.$ac_ext >&5 |
8485 | ||
5e13499c | 8486 | fi |
a82a04b3 CR |
8487 | rm -f conftest.err conftest.$ac_objext \ |
8488 | conftest$ac_exeext conftest.$ac_ext | |
5e13499c CR |
8489 | LIBS="$am_save_LIBS" |
8490 | fi | |
8491 | ||
8492 | fi | |
a82a04b3 | 8493 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
5e13499c CR |
8494 | echo "${ECHO_T}$am_cv_func_iconv" >&6 |
8495 | if test "$am_cv_func_iconv" = yes; then | |
8496 | ||
a82a04b3 | 8497 | cat >>confdefs.h <<\_ACEOF |
5e13499c | 8498 | #define HAVE_ICONV 1 |
a82a04b3 | 8499 | _ACEOF |
5e13499c CR |
8500 | |
8501 | fi | |
8502 | if test "$am_cv_lib_iconv" = yes; then | |
a82a04b3 | 8503 | echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
5e13499c | 8504 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 |
a82a04b3 | 8505 | echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
5e13499c CR |
8506 | echo "${ECHO_T}$LIBICONV" >&6 |
8507 | else | |
8508 | CPPFLAGS="$am_save_CPPFLAGS" | |
8509 | LIBICONV= | |
8510 | LTLIBICONV= | |
8511 | fi | |
8512 | ||
a82a04b3 CR |
8513 | |
8514 | ||
5e13499c | 8515 | if test "$am_cv_func_iconv" = yes; then |
a82a04b3 | 8516 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
5e13499c CR |
8517 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 |
8518 | if test "${am_cv_proto_iconv+set}" = set; then | |
8519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8520 | else | |
8521 | ||
8522 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
8523 | /* confdefs.h. */ |
8524 | _ACEOF | |
8525 | cat confdefs.h >>conftest.$ac_ext | |
8526 | cat >>conftest.$ac_ext <<_ACEOF | |
8527 | /* end confdefs.h. */ | |
5e13499c CR |
8528 | |
8529 | #include <stdlib.h> | |
8530 | #include <iconv.h> | |
8531 | extern | |
8532 | #ifdef __cplusplus | |
8533 | "C" | |
8534 | #endif | |
8535 | #if defined(__STDC__) || defined(__cplusplus) | |
8536 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
8537 | #else | |
8538 | size_t iconv(); | |
8539 | #endif | |
8540 | ||
8541 | int | |
8542 | main () | |
8543 | { | |
8544 | ||
8545 | ; | |
8546 | return 0; | |
8547 | } | |
8548 | _ACEOF | |
8549 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
8550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8551 | (eval $ac_compile) 2>conftest.er1 | |
5e13499c | 8552 | ac_status=$? |
a82a04b3 CR |
8553 | grep -v '^ *+' conftest.er1 >conftest.err |
8554 | rm -f conftest.er1 | |
8555 | cat conftest.err >&5 | |
8556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c | 8557 | (exit $ac_status); } && |
a82a04b3 CR |
8558 | { ac_try='test -z "$ac_c_werror_flag" |
8559 | || test ! -s conftest.err' | |
8560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8561 | (eval $ac_try) 2>&5 | |
8562 | ac_status=$? | |
8563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8564 | (exit $ac_status); }; } && | |
8565 | { ac_try='test -s conftest.$ac_objext' | |
8566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5e13499c CR |
8567 | (eval $ac_try) 2>&5 |
8568 | ac_status=$? | |
a82a04b3 | 8569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c CR |
8570 | (exit $ac_status); }; }; then |
8571 | am_cv_proto_iconv_arg1="" | |
8572 | else | |
8573 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
8574 | sed 's/^/| /' conftest.$ac_ext >&5 |
8575 | ||
5e13499c CR |
8576 | am_cv_proto_iconv_arg1="const" |
8577 | fi | |
a82a04b3 | 8578 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5e13499c CR |
8579 | 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);" |
8580 | fi | |
8581 | ||
8582 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
a82a04b3 | 8583 | echo "$as_me:$LINENO: result: ${ac_t:- |
5e13499c CR |
8584 | }$am_cv_proto_iconv" >&5 |
8585 | echo "${ECHO_T}${ac_t:- | |
8586 | }$am_cv_proto_iconv" >&6 | |
8587 | ||
a82a04b3 | 8588 | cat >>confdefs.h <<_ACEOF |
5e13499c | 8589 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
a82a04b3 | 8590 | _ACEOF |
5e13499c CR |
8591 | |
8592 | fi | |
8593 | ||
a82a04b3 CR |
8594 | |
8595 | echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 | |
5e13499c CR |
8596 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 |
8597 | if test "${am_cv_langinfo_codeset+set}" = set; then | |
8598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8599 | else | |
8600 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
8601 | /* confdefs.h. */ |
8602 | _ACEOF | |
8603 | cat confdefs.h >>conftest.$ac_ext | |
8604 | cat >>conftest.$ac_ext <<_ACEOF | |
8605 | /* end confdefs.h. */ | |
5e13499c CR |
8606 | #include <langinfo.h> |
8607 | int | |
8608 | main () | |
8609 | { | |
8610 | char* cs = nl_langinfo(CODESET); | |
8611 | ; | |
8612 | return 0; | |
8613 | } | |
8614 | _ACEOF | |
8615 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
8616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8617 | (eval $ac_link) 2>conftest.er1 | |
5e13499c | 8618 | ac_status=$? |
a82a04b3 CR |
8619 | grep -v '^ *+' conftest.er1 >conftest.err |
8620 | rm -f conftest.er1 | |
8621 | cat conftest.err >&5 | |
8622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c | 8623 | (exit $ac_status); } && |
a82a04b3 CR |
8624 | { ac_try='test -z "$ac_c_werror_flag" |
8625 | || test ! -s conftest.err' | |
8626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5e13499c CR |
8627 | (eval $ac_try) 2>&5 |
8628 | ac_status=$? | |
a82a04b3 CR |
8629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8630 | (exit $ac_status); }; } && | |
8631 | { ac_try='test -s conftest$ac_exeext' | |
8632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8633 | (eval $ac_try) 2>&5 | |
8634 | ac_status=$? | |
8635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c CR |
8636 | (exit $ac_status); }; }; then |
8637 | am_cv_langinfo_codeset=yes | |
8638 | else | |
8639 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
8640 | sed 's/^/| /' conftest.$ac_ext >&5 |
8641 | ||
5e13499c CR |
8642 | am_cv_langinfo_codeset=no |
8643 | fi | |
a82a04b3 CR |
8644 | rm -f conftest.err conftest.$ac_objext \ |
8645 | conftest$ac_exeext conftest.$ac_ext | |
5e13499c CR |
8646 | |
8647 | fi | |
a82a04b3 | 8648 | echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
5e13499c CR |
8649 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 |
8650 | if test $am_cv_langinfo_codeset = yes; then | |
8651 | ||
a82a04b3 | 8652 | cat >>confdefs.h <<\_ACEOF |
5e13499c | 8653 | #define HAVE_LANGINFO_CODESET 1 |
a82a04b3 | 8654 | _ACEOF |
5e13499c CR |
8655 | |
8656 | fi | |
8657 | ||
8658 | if test $ac_cv_header_locale_h = yes; then | |
8659 | ||
a82a04b3 | 8660 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
5e13499c CR |
8661 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 |
8662 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
8663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8664 | else | |
8665 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
8666 | /* confdefs.h. */ |
8667 | _ACEOF | |
8668 | cat confdefs.h >>conftest.$ac_ext | |
8669 | cat >>conftest.$ac_ext <<_ACEOF | |
8670 | /* end confdefs.h. */ | |
5e13499c CR |
8671 | #include <locale.h> |
8672 | int | |
8673 | main () | |
8674 | { | |
8675 | return LC_MESSAGES | |
8676 | ; | |
8677 | return 0; | |
8678 | } | |
8679 | _ACEOF | |
8680 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
8681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8682 | (eval $ac_link) 2>conftest.er1 | |
5e13499c | 8683 | ac_status=$? |
a82a04b3 CR |
8684 | grep -v '^ *+' conftest.er1 >conftest.err |
8685 | rm -f conftest.er1 | |
8686 | cat conftest.err >&5 | |
8687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c | 8688 | (exit $ac_status); } && |
a82a04b3 CR |
8689 | { ac_try='test -z "$ac_c_werror_flag" |
8690 | || test ! -s conftest.err' | |
8691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5e13499c CR |
8692 | (eval $ac_try) 2>&5 |
8693 | ac_status=$? | |
a82a04b3 CR |
8694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8695 | (exit $ac_status); }; } && | |
8696 | { ac_try='test -s conftest$ac_exeext' | |
8697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8698 | (eval $ac_try) 2>&5 | |
8699 | ac_status=$? | |
8700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c CR |
8701 | (exit $ac_status); }; }; then |
8702 | am_cv_val_LC_MESSAGES=yes | |
8703 | else | |
8704 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
8705 | sed 's/^/| /' conftest.$ac_ext >&5 |
8706 | ||
5e13499c CR |
8707 | am_cv_val_LC_MESSAGES=no |
8708 | fi | |
a82a04b3 CR |
8709 | rm -f conftest.err conftest.$ac_objext \ |
8710 | conftest$ac_exeext conftest.$ac_ext | |
5e13499c | 8711 | fi |
a82a04b3 | 8712 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
5e13499c CR |
8713 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 |
8714 | if test $am_cv_val_LC_MESSAGES = yes; then | |
8715 | ||
a82a04b3 | 8716 | cat >>confdefs.h <<\_ACEOF |
5e13499c | 8717 | #define HAVE_LC_MESSAGES 1 |
a82a04b3 | 8718 | _ACEOF |
5e13499c CR |
8719 | |
8720 | fi | |
8721 | ||
8722 | fi | |
8723 | ||
8724 | for ac_prog in bison | |
8725 | do | |
8726 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8727 | set dummy $ac_prog; ac_word=$2 | |
a82a04b3 | 8728 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5e13499c CR |
8729 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
8730 | if test "${ac_cv_prog_INTLBISON+set}" = set; then | |
8731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8732 | else | |
8733 | if test -n "$INTLBISON"; then | |
8734 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. | |
8735 | else | |
a82a04b3 CR |
8736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8737 | for as_dir in $PATH | |
8738 | do | |
8739 | IFS=$as_save_IFS | |
8740 | test -z "$as_dir" && as_dir=. | |
8741 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8742 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8743 | ac_cv_prog_INTLBISON="$ac_prog" | |
8744 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8745 | break 2 | |
8746 | fi | |
8747 | done | |
5e13499c CR |
8748 | done |
8749 | ||
8750 | fi | |
8751 | fi | |
8752 | INTLBISON=$ac_cv_prog_INTLBISON | |
8753 | if test -n "$INTLBISON"; then | |
a82a04b3 | 8754 | echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
5e13499c CR |
8755 | echo "${ECHO_T}$INTLBISON" >&6 |
8756 | else | |
a82a04b3 | 8757 | echo "$as_me:$LINENO: result: no" >&5 |
5e13499c CR |
8758 | echo "${ECHO_T}no" >&6 |
8759 | fi | |
8760 | ||
8761 | test -n "$INTLBISON" && break | |
8762 | done | |
8763 | ||
8764 | if test -z "$INTLBISON"; then | |
8765 | ac_verc_fail=yes | |
8766 | else | |
a82a04b3 | 8767 | echo "$as_me:$LINENO: checking version of bison" >&5 |
5e13499c | 8768 | echo $ECHO_N "checking version of bison... $ECHO_C" >&6 |
e624d0f7 CR |
8769 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
8770 | case $ac_prog_version in | |
8771 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
8772 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | |
8773 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
8774 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
8775 | esac | |
a82a04b3 | 8776 | echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
e624d0f7 CR |
8777 | echo "${ECHO_T}$ac_prog_version" >&6 |
8778 | fi | |
8779 | if test $ac_verc_fail = yes; then | |
8780 | INTLBISON=: | |
8781 | fi | |
545f34cf | 8782 | |
a82a04b3 CR |
8783 | |
8784 | ||
8785 | ||
8786 | ||
8787 | ||
8788 | ||
8789 | ||
8790 | ||
8791 | ||
8792 | ||
8793 | ||
8794 | ||
8795 | ||
8796 | ||
8797 | ||
8798 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
5e13499c CR |
8799 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 |
8800 | # Check whether --enable-nls or --disable-nls was given. | |
8801 | if test "${enable_nls+set}" = set; then | |
8802 | enableval="$enable_nls" | |
8803 | USE_NLS=$enableval | |
8804 | else | |
8805 | USE_NLS=yes | |
8806 | fi; | |
a82a04b3 | 8807 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
5e13499c CR |
8808 | echo "${ECHO_T}$USE_NLS" >&6 |
8809 | ||
a82a04b3 CR |
8810 | |
8811 | ||
8812 | ||
5e13499c CR |
8813 | BUILD_INCLUDED_LIBINTL=no |
8814 | USE_INCLUDED_LIBINTL=no | |
8815 | ||
8816 | LIBINTL= | |
8817 | LTLIBINTL= | |
8818 | POSUB= | |
8819 | ||
8820 | if test "$USE_NLS" = "yes"; then | |
8821 | gt_use_preinstalled_gnugettext=no | |
8822 | ||
a82a04b3 | 8823 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
5e13499c CR |
8824 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 |
8825 | ||
8826 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
8827 | if test "${with_included_gettext+set}" = set; then | |
8828 | withval="$with_included_gettext" | |
8829 | nls_cv_force_use_gnu_gettext=$withval | |
8830 | else | |
8831 | nls_cv_force_use_gnu_gettext=no | |
8832 | fi; | |
a82a04b3 | 8833 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 |
5e13499c CR |
8834 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 |
8835 | ||
8836 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
8837 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
8838 | ||
a82a04b3 CR |
8839 | |
8840 | ||
8841 | ||
8842 | ||
8843 | ||
8844 | echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 | |
5e13499c CR |
8845 | echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 |
8846 | if test "${gt_cv_func_gnugettext2_libc+set}" = set; then | |
8847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8848 | else | |
8849 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
8850 | /* confdefs.h. */ |
8851 | _ACEOF | |
8852 | cat confdefs.h >>conftest.$ac_ext | |
8853 | cat >>conftest.$ac_ext <<_ACEOF | |
8854 | /* end confdefs.h. */ | |
5e13499c CR |
8855 | #include <libintl.h> |
8856 | extern int _nl_msg_cat_cntr; | |
8857 | extern int *_nl_domain_bindings; | |
8858 | int | |
8859 | main () | |
8860 | { | |
8861 | bindtextdomain ("", ""); | |
8862 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings | |
8863 | ; | |
8864 | return 0; | |
8865 | } | |
8866 | _ACEOF | |
8867 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
8868 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8869 | (eval $ac_link) 2>conftest.er1 | |
5e13499c | 8870 | ac_status=$? |
a82a04b3 CR |
8871 | grep -v '^ *+' conftest.er1 >conftest.err |
8872 | rm -f conftest.er1 | |
8873 | cat conftest.err >&5 | |
8874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c | 8875 | (exit $ac_status); } && |
a82a04b3 CR |
8876 | { ac_try='test -z "$ac_c_werror_flag" |
8877 | || test ! -s conftest.err' | |
8878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5e13499c CR |
8879 | (eval $ac_try) 2>&5 |
8880 | ac_status=$? | |
a82a04b3 CR |
8881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8882 | (exit $ac_status); }; } && | |
8883 | { ac_try='test -s conftest$ac_exeext' | |
8884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8885 | (eval $ac_try) 2>&5 | |
8886 | ac_status=$? | |
8887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c CR |
8888 | (exit $ac_status); }; }; then |
8889 | gt_cv_func_gnugettext2_libc=yes | |
8890 | else | |
8891 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
8892 | sed 's/^/| /' conftest.$ac_ext >&5 |
8893 | ||
5e13499c CR |
8894 | gt_cv_func_gnugettext2_libc=no |
8895 | fi | |
a82a04b3 CR |
8896 | rm -f conftest.err conftest.$ac_objext \ |
8897 | conftest$ac_exeext conftest.$ac_ext | |
5e13499c | 8898 | fi |
a82a04b3 | 8899 | echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5 |
5e13499c CR |
8900 | echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6 |
8901 | ||
8902 | if test "$gt_cv_func_gnugettext2_libc" != "yes"; then | |
8903 | ||
a82a04b3 CR |
8904 | |
8905 | ||
5e13499c CR |
8906 | use_additional=yes |
8907 | ||
8908 | acl_save_prefix="$prefix" | |
8909 | prefix="$acl_final_prefix" | |
8910 | acl_save_exec_prefix="$exec_prefix" | |
8911 | exec_prefix="$acl_final_exec_prefix" | |
8912 | ||
8913 | eval additional_includedir=\"$includedir\" | |
8914 | eval additional_libdir=\"$libdir\" | |
8915 | ||
8916 | exec_prefix="$acl_save_exec_prefix" | |
8917 | prefix="$acl_save_prefix" | |
8918 | ||
a82a04b3 | 8919 | |
5e13499c CR |
8920 | # Check whether --with-libintl-prefix or --without-libintl-prefix was given. |
8921 | if test "${with_libintl_prefix+set}" = set; then | |
8922 | withval="$with_libintl_prefix" | |
8923 | ||
8924 | if test "X$withval" = "Xno"; then | |
8925 | use_additional=no | |
8926 | else | |
8927 | if test "X$withval" = "X"; then | |
8928 | ||
8929 | acl_save_prefix="$prefix" | |
8930 | prefix="$acl_final_prefix" | |
8931 | acl_save_exec_prefix="$exec_prefix" | |
8932 | exec_prefix="$acl_final_exec_prefix" | |
8933 | ||
8934 | eval additional_includedir=\"$includedir\" | |
8935 | eval additional_libdir=\"$libdir\" | |
8936 | ||
8937 | exec_prefix="$acl_save_exec_prefix" | |
8938 | prefix="$acl_save_prefix" | |
8939 | ||
8940 | else | |
8941 | additional_includedir="$withval/include" | |
8942 | additional_libdir="$withval/lib" | |
8943 | fi | |
8944 | fi | |
8945 | ||
8946 | fi; | |
8947 | LIBINTL= | |
8948 | LTLIBINTL= | |
8949 | INCINTL= | |
8950 | rpathdirs= | |
8951 | ltrpathdirs= | |
8952 | names_already_handled= | |
8953 | names_next_round='intl ' | |
8954 | while test -n "$names_next_round"; do | |
8955 | names_this_round="$names_next_round" | |
8956 | names_next_round= | |
8957 | for name in $names_this_round; do | |
8958 | already_handled= | |
8959 | for n in $names_already_handled; do | |
8960 | if test "$n" = "$name"; then | |
8961 | already_handled=yes | |
8962 | break | |
8963 | fi | |
8964 | done | |
8965 | if test -z "$already_handled"; then | |
8966 | names_already_handled="$names_already_handled $name" | |
8967 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
8968 | eval value=\"\$HAVE_LIB$uppername\" | |
8969 | if test -n "$value"; then | |
8970 | if test "$value" = yes; then | |
8971 | eval value=\"\$LIB$uppername\" | |
8972 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
8973 | eval value=\"\$LTLIB$uppername\" | |
8974 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
8975 | else | |
8976 | : | |
8977 | fi | |
8978 | else | |
8979 | found_dir= | |
8980 | found_la= | |
8981 | found_so= | |
8982 | found_a= | |
8983 | if test $use_additional = yes; then | |
8984 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
8985 | found_dir="$additional_libdir" | |
8986 | found_so="$additional_libdir/lib$name.$shlibext" | |
8987 | if test -f "$additional_libdir/lib$name.la"; then | |
8988 | found_la="$additional_libdir/lib$name.la" | |
8989 | fi | |
8990 | else | |
8991 | if test -f "$additional_libdir/lib$name.$libext"; then | |
8992 | found_dir="$additional_libdir" | |
8993 | found_a="$additional_libdir/lib$name.$libext" | |
8994 | if test -f "$additional_libdir/lib$name.la"; then | |
8995 | found_la="$additional_libdir/lib$name.la" | |
8996 | fi | |
8997 | fi | |
8998 | fi | |
8999 | fi | |
9000 | if test "X$found_dir" = "X"; then | |
9001 | for x in $LDFLAGS $LTLIBINTL; do | |
9002 | ||
9003 | acl_save_prefix="$prefix" | |
9004 | prefix="$acl_final_prefix" | |
9005 | acl_save_exec_prefix="$exec_prefix" | |
9006 | exec_prefix="$acl_final_exec_prefix" | |
9007 | eval x=\"$x\" | |
9008 | exec_prefix="$acl_save_exec_prefix" | |
9009 | prefix="$acl_save_prefix" | |
9010 | ||
9011 | case "$x" in | |
9012 | -L*) | |
9013 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
9014 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
9015 | found_dir="$dir" | |
9016 | found_so="$dir/lib$name.$shlibext" | |
9017 | if test -f "$dir/lib$name.la"; then | |
9018 | found_la="$dir/lib$name.la" | |
9019 | fi | |
9020 | else | |
9021 | if test -f "$dir/lib$name.$libext"; then | |
9022 | found_dir="$dir" | |
9023 | found_a="$dir/lib$name.$libext" | |
9024 | if test -f "$dir/lib$name.la"; then | |
9025 | found_la="$dir/lib$name.la" | |
9026 | fi | |
9027 | fi | |
9028 | fi | |
9029 | ;; | |
9030 | esac | |
9031 | if test "X$found_dir" != "X"; then | |
9032 | break | |
9033 | fi | |
9034 | done | |
9035 | fi | |
9036 | if test "X$found_dir" != "X"; then | |
9037 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
9038 | if test "X$found_so" != "X"; then | |
9039 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
9040 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
9041 | else | |
9042 | haveit= | |
9043 | for x in $ltrpathdirs; do | |
9044 | if test "X$x" = "X$found_dir"; then | |
9045 | haveit=yes | |
9046 | break | |
9047 | fi | |
9048 | done | |
9049 | if test -z "$haveit"; then | |
9050 | ltrpathdirs="$ltrpathdirs $found_dir" | |
9051 | fi | |
9052 | if test "$hardcode_direct" = yes; then | |
9053 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
9054 | else | |
9055 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
9056 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
9057 | haveit= | |
9058 | for x in $rpathdirs; do | |
9059 | if test "X$x" = "X$found_dir"; then | |
9060 | haveit=yes | |
9061 | break | |
9062 | fi | |
9063 | done | |
9064 | if test -z "$haveit"; then | |
9065 | rpathdirs="$rpathdirs $found_dir" | |
9066 | fi | |
9067 | else | |
9068 | haveit= | |
9069 | for x in $LDFLAGS $LIBINTL; do | |
9070 | ||
9071 | acl_save_prefix="$prefix" | |
9072 | prefix="$acl_final_prefix" | |
9073 | acl_save_exec_prefix="$exec_prefix" | |
9074 | exec_prefix="$acl_final_exec_prefix" | |
9075 | eval x=\"$x\" | |
9076 | exec_prefix="$acl_save_exec_prefix" | |
9077 | prefix="$acl_save_prefix" | |
9078 | ||
9079 | if test "X$x" = "X-L$found_dir"; then | |
9080 | haveit=yes | |
9081 | break | |
9082 | fi | |
9083 | done | |
9084 | if test -z "$haveit"; then | |
9085 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
9086 | fi | |
9087 | if test "$hardcode_minus_L" != no; then | |
9088 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
9089 | else | |
9090 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
9091 | fi | |
9092 | fi | |
9093 | fi | |
9094 | fi | |
9095 | else | |
9096 | if test "X$found_a" != "X"; then | |
9097 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
9098 | else | |
9099 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
9100 | fi | |
9101 | fi | |
9102 | additional_includedir= | |
9103 | case "$found_dir" in | |
9104 | */lib | */lib/) | |
9105 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
9106 | additional_includedir="$basedir/include" | |
9107 | ;; | |
9108 | esac | |
9109 | if test "X$additional_includedir" != "X"; then | |
9110 | if test "X$additional_includedir" != "X/usr/include"; then | |
9111 | haveit= | |
9112 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
9113 | if test -n "$GCC"; then | |
9114 | case $host_os in | |
9115 | linux*) haveit=yes;; | |
9116 | esac | |
9117 | fi | |
9118 | fi | |
9119 | if test -z "$haveit"; then | |
9120 | for x in $CPPFLAGS $INCINTL; do | |
9121 | ||
9122 | acl_save_prefix="$prefix" | |
9123 | prefix="$acl_final_prefix" | |
9124 | acl_save_exec_prefix="$exec_prefix" | |
9125 | exec_prefix="$acl_final_exec_prefix" | |
9126 | eval x=\"$x\" | |
9127 | exec_prefix="$acl_save_exec_prefix" | |
9128 | prefix="$acl_save_prefix" | |
9129 | ||
9130 | if test "X$x" = "X-I$additional_includedir"; then | |
9131 | haveit=yes | |
9132 | break | |
9133 | fi | |
9134 | done | |
9135 | if test -z "$haveit"; then | |
9136 | if test -d "$additional_includedir"; then | |
9137 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
9138 | fi | |
9139 | fi | |
9140 | fi | |
9141 | fi | |
9142 | fi | |
9143 | if test -n "$found_la"; then | |
9144 | save_libdir="$libdir" | |
9145 | case "$found_la" in | |
9146 | */* | *\\*) . "$found_la" ;; | |
9147 | *) . "./$found_la" ;; | |
9148 | esac | |
9149 | libdir="$save_libdir" | |
9150 | for dep in $dependency_libs; do | |
9151 | case "$dep" in | |
9152 | -L*) | |
9153 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
9154 | if test "X$additional_libdir" != "X/usr/lib"; then | |
9155 | haveit= | |
9156 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
9157 | if test -n "$GCC"; then | |
9158 | case $host_os in | |
9159 | linux*) haveit=yes;; | |
9160 | esac | |
9161 | fi | |
9162 | fi | |
9163 | if test -z "$haveit"; then | |
9164 | haveit= | |
9165 | for x in $LDFLAGS $LIBINTL; do | |
9166 | ||
9167 | acl_save_prefix="$prefix" | |
9168 | prefix="$acl_final_prefix" | |
9169 | acl_save_exec_prefix="$exec_prefix" | |
9170 | exec_prefix="$acl_final_exec_prefix" | |
9171 | eval x=\"$x\" | |
9172 | exec_prefix="$acl_save_exec_prefix" | |
9173 | prefix="$acl_save_prefix" | |
9174 | ||
9175 | if test "X$x" = "X-L$additional_libdir"; then | |
9176 | haveit=yes | |
9177 | break | |
9178 | fi | |
9179 | done | |
9180 | if test -z "$haveit"; then | |
9181 | if test -d "$additional_libdir"; then | |
9182 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
9183 | fi | |
9184 | fi | |
9185 | haveit= | |
9186 | for x in $LDFLAGS $LTLIBINTL; do | |
9187 | ||
9188 | acl_save_prefix="$prefix" | |
9189 | prefix="$acl_final_prefix" | |
9190 | acl_save_exec_prefix="$exec_prefix" | |
9191 | exec_prefix="$acl_final_exec_prefix" | |
9192 | eval x=\"$x\" | |
9193 | exec_prefix="$acl_save_exec_prefix" | |
9194 | prefix="$acl_save_prefix" | |
9195 | ||
9196 | if test "X$x" = "X-L$additional_libdir"; then | |
9197 | haveit=yes | |
9198 | break | |
9199 | fi | |
9200 | done | |
9201 | if test -z "$haveit"; then | |
9202 | if test -d "$additional_libdir"; then | |
9203 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
9204 | fi | |
9205 | fi | |
9206 | fi | |
9207 | fi | |
9208 | ;; | |
9209 | -R*) | |
9210 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
9211 | if test "$enable_rpath" != no; then | |
9212 | haveit= | |
9213 | for x in $rpathdirs; do | |
9214 | if test "X$x" = "X$dir"; then | |
9215 | haveit=yes | |
9216 | break | |
9217 | fi | |
9218 | done | |
9219 | if test -z "$haveit"; then | |
9220 | rpathdirs="$rpathdirs $dir" | |
9221 | fi | |
9222 | haveit= | |
9223 | for x in $ltrpathdirs; do | |
9224 | if test "X$x" = "X$dir"; then | |
9225 | haveit=yes | |
9226 | break | |
9227 | fi | |
9228 | done | |
9229 | if test -z "$haveit"; then | |
9230 | ltrpathdirs="$ltrpathdirs $dir" | |
9231 | fi | |
9232 | fi | |
9233 | ;; | |
9234 | -l*) | |
9235 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
9236 | ;; | |
9237 | *.la) | |
9238 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
9239 | ;; | |
9240 | *) | |
9241 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
9242 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
9243 | ;; | |
9244 | esac | |
9245 | done | |
9246 | fi | |
9247 | else | |
9248 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
9249 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
9250 | fi | |
9251 | fi | |
9252 | fi | |
9253 | done | |
9254 | done | |
9255 | if test "X$rpathdirs" != "X"; then | |
9256 | if test -n "$hardcode_libdir_separator"; then | |
9257 | alldirs= | |
9258 | for found_dir in $rpathdirs; do | |
9259 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
9260 | done | |
9261 | acl_save_libdir="$libdir" | |
9262 | libdir="$alldirs" | |
9263 | eval flag=\"$hardcode_libdir_flag_spec\" | |
9264 | libdir="$acl_save_libdir" | |
9265 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
9266 | else | |
9267 | for found_dir in $rpathdirs; do | |
9268 | acl_save_libdir="$libdir" | |
9269 | libdir="$found_dir" | |
9270 | eval flag=\"$hardcode_libdir_flag_spec\" | |
9271 | libdir="$acl_save_libdir" | |
9272 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
9273 | done | |
9274 | fi | |
9275 | fi | |
9276 | if test "X$ltrpathdirs" != "X"; then | |
9277 | for found_dir in $ltrpathdirs; do | |
9278 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
9279 | done | |
9280 | fi | |
9281 | ||
a82a04b3 | 9282 | echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
5e13499c CR |
9283 | echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 |
9284 | if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then | |
9285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9286 | else | |
9287 | gt_save_CPPFLAGS="$CPPFLAGS" | |
9288 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
9289 | gt_save_LIBS="$LIBS" | |
9290 | LIBS="$LIBS $LIBINTL" | |
9291 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
9292 | /* confdefs.h. */ |
9293 | _ACEOF | |
9294 | cat confdefs.h >>conftest.$ac_ext | |
9295 | cat >>conftest.$ac_ext <<_ACEOF | |
9296 | /* end confdefs.h. */ | |
5e13499c CR |
9297 | #include <libintl.h> |
9298 | extern int _nl_msg_cat_cntr; | |
9299 | extern | |
9300 | #ifdef __cplusplus | |
9301 | "C" | |
9302 | #endif | |
9303 | const char *_nl_expand_alias (); | |
9304 | int | |
9305 | main () | |
9306 | { | |
9307 | bindtextdomain ("", ""); | |
9308 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) | |
9309 | ; | |
9310 | return 0; | |
9311 | } | |
9312 | _ACEOF | |
9313 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
9314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9315 | (eval $ac_link) 2>conftest.er1 | |
5e13499c | 9316 | ac_status=$? |
a82a04b3 CR |
9317 | grep -v '^ *+' conftest.er1 >conftest.err |
9318 | rm -f conftest.er1 | |
9319 | cat conftest.err >&5 | |
9320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c | 9321 | (exit $ac_status); } && |
a82a04b3 CR |
9322 | { ac_try='test -z "$ac_c_werror_flag" |
9323 | || test ! -s conftest.err' | |
9324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9325 | (eval $ac_try) 2>&5 | |
9326 | ac_status=$? | |
9327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9328 | (exit $ac_status); }; } && | |
9329 | { ac_try='test -s conftest$ac_exeext' | |
9330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5e13499c CR |
9331 | (eval $ac_try) 2>&5 |
9332 | ac_status=$? | |
a82a04b3 | 9333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c CR |
9334 | (exit $ac_status); }; }; then |
9335 | gt_cv_func_gnugettext2_libintl=yes | |
9336 | else | |
9337 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
9338 | sed 's/^/| /' conftest.$ac_ext >&5 |
9339 | ||
5e13499c CR |
9340 | gt_cv_func_gnugettext2_libintl=no |
9341 | fi | |
a82a04b3 CR |
9342 | rm -f conftest.err conftest.$ac_objext \ |
9343 | conftest$ac_exeext conftest.$ac_ext | |
5e13499c CR |
9344 | if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then |
9345 | LIBS="$LIBS $LIBICONV" | |
9346 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
9347 | /* confdefs.h. */ |
9348 | _ACEOF | |
9349 | cat confdefs.h >>conftest.$ac_ext | |
9350 | cat >>conftest.$ac_ext <<_ACEOF | |
9351 | /* end confdefs.h. */ | |
5e13499c CR |
9352 | #include <libintl.h> |
9353 | extern int _nl_msg_cat_cntr; | |
9354 | extern | |
9355 | #ifdef __cplusplus | |
9356 | "C" | |
9357 | #endif | |
9358 | const char *_nl_expand_alias (); | |
9359 | int | |
9360 | main () | |
9361 | { | |
9362 | bindtextdomain ("", ""); | |
9363 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) | |
9364 | ; | |
9365 | return 0; | |
9366 | } | |
9367 | _ACEOF | |
9368 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
9369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9370 | (eval $ac_link) 2>conftest.er1 | |
5e13499c | 9371 | ac_status=$? |
a82a04b3 CR |
9372 | grep -v '^ *+' conftest.er1 >conftest.err |
9373 | rm -f conftest.er1 | |
9374 | cat conftest.err >&5 | |
9375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5e13499c | 9376 | (exit $ac_status); } && |
a82a04b3 CR |
9377 | { ac_try='test -z "$ac_c_werror_flag" |
9378 | || test ! -s conftest.err' | |
9379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9380 | (eval $ac_try) 2>&5 | |
9381 | ac_status=$? | |
9382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9383 | (exit $ac_status); }; } && | |
9384 | { ac_try='test -s conftest$ac_exeext' | |
9385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
9386 | (eval $ac_try) 2>&5 |
9387 | ac_status=$? | |
a82a04b3 | 9388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 9389 | (exit $ac_status); }; }; then |
5e13499c CR |
9390 | LIBINTL="$LIBINTL $LIBICONV" |
9391 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" | |
9392 | gt_cv_func_gnugettext2_libintl=yes | |
9393 | ||
ccc6cda3 | 9394 | else |
f73dda09 | 9395 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
9396 | sed 's/^/| /' conftest.$ac_ext >&5 |
9397 | ||
ccc6cda3 | 9398 | fi |
a82a04b3 CR |
9399 | rm -f conftest.err conftest.$ac_objext \ |
9400 | conftest$ac_exeext conftest.$ac_ext | |
5e13499c CR |
9401 | fi |
9402 | CPPFLAGS="$gt_save_CPPFLAGS" | |
9403 | LIBS="$gt_save_LIBS" | |
9404 | fi | |
a82a04b3 | 9405 | echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5 |
5e13499c CR |
9406 | echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6 |
9407 | fi | |
9408 | ||
9409 | if test "$gt_cv_func_gnugettext2_libc" = "yes" \ | |
9410 | || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \ | |
9411 | && test "$PACKAGE" != gettext-runtime \ | |
9412 | && test "$PACKAGE" != gettext-tools; }; then | |
9413 | gt_use_preinstalled_gnugettext=yes | |
9414 | else | |
9415 | LIBINTL= | |
9416 | LTLIBINTL= | |
9417 | INCINTL= | |
9418 | fi | |
9419 | ||
a82a04b3 | 9420 | |
5e13499c CR |
9421 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
9422 | nls_cv_use_gnu_gettext=yes | |
9423 | fi | |
9424 | fi | |
9425 | ||
9426 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
9427 | BUILD_INCLUDED_LIBINTL=yes | |
9428 | USE_INCLUDED_LIBINTL=yes | |
9429 | LIBINTL="lib/intl/libintl.a $LIBICONV" | |
9430 | LTLIBINTL="lib/intl/libintl.a $LTLIBICONV" | |
9431 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` | |
9432 | fi | |
9433 | ||
9434 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
9435 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
9436 | CATOBJEXT=.gmo | |
9437 | fi | |
9438 | ||
a82a04b3 | 9439 | |
5e13499c CR |
9440 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
9441 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
9442 | ||
a82a04b3 | 9443 | cat >>confdefs.h <<\_ACEOF |
5e13499c | 9444 | #define ENABLE_NLS 1 |
a82a04b3 | 9445 | _ACEOF |
ccc6cda3 | 9446 | |
5e13499c CR |
9447 | else |
9448 | USE_NLS=no | |
9449 | fi | |
9450 | fi | |
9451 | ||
a82a04b3 | 9452 | echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
5e13499c | 9453 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6 |
a82a04b3 | 9454 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
5e13499c CR |
9455 | echo "${ECHO_T}$USE_NLS" >&6 |
9456 | if test "$USE_NLS" = "yes"; then | |
a82a04b3 | 9457 | echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
5e13499c CR |
9458 | echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6 |
9459 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
9460 | if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then | |
9461 | gt_source="external libintl" | |
9462 | else | |
9463 | gt_source="libc" | |
9464 | fi | |
9465 | else | |
9466 | gt_source="included intl directory" | |
9467 | fi | |
a82a04b3 | 9468 | echo "$as_me:$LINENO: result: $gt_source" >&5 |
5e13499c CR |
9469 | echo "${ECHO_T}$gt_source" >&6 |
9470 | fi | |
9471 | ||
9472 | if test "$USE_NLS" = "yes"; then | |
9473 | ||
9474 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
9475 | if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then | |
a82a04b3 | 9476 | echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
5e13499c | 9477 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6 |
a82a04b3 | 9478 | echo "$as_me:$LINENO: result: $LIBINTL" >&5 |
5e13499c CR |
9479 | echo "${ECHO_T}$LIBINTL" >&6 |
9480 | ||
9481 | for element in $INCINTL; do | |
9482 | haveit= | |
9483 | for x in $CPPFLAGS; do | |
9484 | ||
9485 | acl_save_prefix="$prefix" | |
9486 | prefix="$acl_final_prefix" | |
9487 | acl_save_exec_prefix="$exec_prefix" | |
9488 | exec_prefix="$acl_final_exec_prefix" | |
9489 | eval x=\"$x\" | |
9490 | exec_prefix="$acl_save_exec_prefix" | |
9491 | prefix="$acl_save_prefix" | |
9492 | ||
9493 | if test "X$x" = "X$element"; then | |
9494 | haveit=yes | |
9495 | break | |
9496 | fi | |
9497 | done | |
9498 | if test -z "$haveit"; then | |
9499 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
9500 | fi | |
9501 | done | |
9502 | ||
9503 | fi | |
9504 | ||
a82a04b3 CR |
9505 | |
9506 | cat >>confdefs.h <<\_ACEOF | |
5e13499c | 9507 | #define HAVE_GETTEXT 1 |
a82a04b3 | 9508 | _ACEOF |
5e13499c | 9509 | |
a82a04b3 CR |
9510 | |
9511 | cat >>confdefs.h <<\_ACEOF | |
5e13499c | 9512 | #define HAVE_DCGETTEXT 1 |
a82a04b3 | 9513 | _ACEOF |
5e13499c CR |
9514 | |
9515 | fi | |
9516 | ||
9517 | POSUB=po | |
9518 | fi | |
9519 | ||
a82a04b3 | 9520 | |
5e13499c CR |
9521 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
9522 | BUILD_INCLUDED_LIBINTL=yes | |
9523 | fi | |
9524 | ||
a82a04b3 CR |
9525 | |
9526 | ||
9527 | ||
9528 | ||
5e13499c CR |
9529 | nls_cv_header_intl= |
9530 | nls_cv_header_libgt= | |
9531 | ||
9532 | DATADIRNAME=share | |
9533 | ||
a82a04b3 | 9534 | |
5e13499c CR |
9535 | INSTOBJEXT=.mo |
9536 | ||
a82a04b3 | 9537 | |
5e13499c CR |
9538 | GENCAT=gencat |
9539 | ||
a82a04b3 | 9540 | |
5e13499c CR |
9541 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
9542 | INTLOBJS="\$(GETTOBJS)" | |
9543 | fi | |
9544 | ||
a82a04b3 | 9545 | |
5e13499c CR |
9546 | INTL_LIBTOOL_SUFFIX_PREFIX= |
9547 | ||
a82a04b3 CR |
9548 | |
9549 | ||
5e13499c | 9550 | INTLLIBS="$LIBINTL" |
ccc6cda3 | 9551 | |
a82a04b3 CR |
9552 | |
9553 | ||
9554 | ||
9555 | ||
9556 | ||
9557 | ||
9558 | ||
9559 | ||
9560 | ||
9561 | ||
9562 | ||
f73dda09 JA |
9563 | ac_header_dirent=no |
9564 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
9565 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
a82a04b3 | 9566 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
f73dda09 JA |
9567 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
9568 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 9570 | else |
f73dda09 | 9571 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
9572 | /* confdefs.h. */ |
9573 | _ACEOF | |
9574 | cat confdefs.h >>conftest.$ac_ext | |
9575 | cat >>conftest.$ac_ext <<_ACEOF | |
9576 | /* end confdefs.h. */ | |
ccc6cda3 | 9577 | #include <sys/types.h> |
f73dda09 | 9578 | #include <$ac_hdr> |
ccc6cda3 | 9579 | |
f73dda09 JA |
9580 | int |
9581 | main () | |
9582 | { | |
9583 | if ((DIR *) 0) | |
9584 | return 0; | |
9585 | ; | |
9586 | return 0; | |
9587 | } | |
9588 | _ACEOF | |
9589 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
9590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9591 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 9592 | ac_status=$? |
a82a04b3 CR |
9593 | grep -v '^ *+' conftest.er1 >conftest.err |
9594 | rm -f conftest.er1 | |
9595 | cat conftest.err >&5 | |
9596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 9597 | (exit $ac_status); } && |
a82a04b3 CR |
9598 | { ac_try='test -z "$ac_c_werror_flag" |
9599 | || test ! -s conftest.err' | |
9600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9601 | (eval $ac_try) 2>&5 | |
9602 | ac_status=$? | |
9603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9604 | (exit $ac_status); }; } && | |
9605 | { ac_try='test -s conftest.$ac_objext' | |
9606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
9607 | (eval $ac_try) 2>&5 |
9608 | ac_status=$? | |
a82a04b3 | 9609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
9610 | (exit $ac_status); }; }; then |
9611 | eval "$as_ac_Header=yes" | |
ccc6cda3 | 9612 | else |
f73dda09 | 9613 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
9614 | sed 's/^/| /' conftest.$ac_ext >&5 |
9615 | ||
f73dda09 | 9616 | eval "$as_ac_Header=no" |
ccc6cda3 | 9617 | fi |
a82a04b3 | 9618 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 9619 | fi |
a82a04b3 | 9620 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f73dda09 JA |
9621 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
9622 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
a82a04b3 | 9623 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 9624 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
a82a04b3 | 9625 | _ACEOF |
ccc6cda3 | 9626 | |
f73dda09 JA |
9627 | ac_header_dirent=$ac_hdr; break |
9628 | fi | |
ccc6cda3 | 9629 | |
f73dda09 JA |
9630 | done |
9631 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
9632 | if test $ac_header_dirent = dirent.h; then | |
a82a04b3 CR |
9633 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
9634 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
9635 | if test "${ac_cv_search_opendir+set}" = set; then | |
f73dda09 | 9636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ccc6cda3 | 9637 | else |
a82a04b3 CR |
9638 | ac_func_search_save_LIBS=$LIBS |
9639 | ac_cv_search_opendir=no | |
f73dda09 | 9640 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
9641 | /* confdefs.h. */ |
9642 | _ACEOF | |
9643 | cat confdefs.h >>conftest.$ac_ext | |
9644 | cat >>conftest.$ac_ext <<_ACEOF | |
9645 | /* end confdefs.h. */ | |
545f34cf CR |
9646 | |
9647 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9648 | #ifdef __cplusplus | |
9649 | extern "C" | |
9650 | #endif | |
9651 | /* We use char because int might match the return type of a gcc2 | |
9652 | builtin and then its argument prototype would still apply. */ | |
9653 | char opendir (); | |
9654 | int | |
9655 | main () | |
9656 | { | |
9657 | opendir (); | |
9658 | ; | |
9659 | return 0; | |
9660 | } | |
9661 | _ACEOF | |
9662 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
9663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9664 | (eval $ac_link) 2>conftest.er1 | |
545f34cf | 9665 | ac_status=$? |
a82a04b3 CR |
9666 | grep -v '^ *+' conftest.er1 >conftest.err |
9667 | rm -f conftest.er1 | |
9668 | cat conftest.err >&5 | |
9669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
545f34cf | 9670 | (exit $ac_status); } && |
a82a04b3 CR |
9671 | { ac_try='test -z "$ac_c_werror_flag" |
9672 | || test ! -s conftest.err' | |
9673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
545f34cf CR |
9674 | (eval $ac_try) 2>&5 |
9675 | ac_status=$? | |
a82a04b3 CR |
9676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9677 | (exit $ac_status); }; } && | |
9678 | { ac_try='test -s conftest$ac_exeext' | |
9679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9680 | (eval $ac_try) 2>&5 | |
9681 | ac_status=$? | |
9682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
545f34cf | 9683 | (exit $ac_status); }; }; then |
a82a04b3 | 9684 | ac_cv_search_opendir="none required" |
545f34cf CR |
9685 | else |
9686 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
9687 | sed 's/^/| /' conftest.$ac_ext >&5 |
9688 | ||
545f34cf | 9689 | fi |
a82a04b3 CR |
9690 | rm -f conftest.err conftest.$ac_objext \ |
9691 | conftest$ac_exeext conftest.$ac_ext | |
9692 | if test "$ac_cv_search_opendir" = no; then | |
9693 | for ac_lib in dir; do | |
9694 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9695 | cat >conftest.$ac_ext <<_ACEOF | |
9696 | /* confdefs.h. */ | |
9697 | _ACEOF | |
9698 | cat confdefs.h >>conftest.$ac_ext | |
9699 | cat >>conftest.$ac_ext <<_ACEOF | |
9700 | /* end confdefs.h. */ | |
9701 | ||
9702 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9703 | #ifdef __cplusplus | |
9704 | extern "C" | |
9705 | #endif | |
9706 | /* We use char because int might match the return type of a gcc2 | |
9707 | builtin and then its argument prototype would still apply. */ | |
9708 | char opendir (); | |
9709 | int | |
9710 | main () | |
9711 | { | |
9712 | opendir (); | |
9713 | ; | |
9714 | return 0; | |
9715 | } | |
9716 | _ACEOF | |
9717 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9719 | (eval $ac_link) 2>conftest.er1 | |
9720 | ac_status=$? | |
9721 | grep -v '^ *+' conftest.er1 >conftest.err | |
9722 | rm -f conftest.er1 | |
9723 | cat conftest.err >&5 | |
9724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9725 | (exit $ac_status); } && | |
9726 | { ac_try='test -z "$ac_c_werror_flag" | |
9727 | || test ! -s conftest.err' | |
9728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9729 | (eval $ac_try) 2>&5 | |
9730 | ac_status=$? | |
9731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9732 | (exit $ac_status); }; } && | |
9733 | { ac_try='test -s conftest$ac_exeext' | |
9734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9735 | (eval $ac_try) 2>&5 | |
9736 | ac_status=$? | |
9737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9738 | (exit $ac_status); }; }; then | |
9739 | ac_cv_search_opendir="-l$ac_lib" | |
9740 | break | |
9741 | else | |
9742 | echo "$as_me: failed program was:" >&5 | |
9743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9744 | ||
9745 | fi | |
9746 | rm -f conftest.err conftest.$ac_objext \ | |
9747 | conftest$ac_exeext conftest.$ac_ext | |
9748 | done | |
545f34cf | 9749 | fi |
a82a04b3 CR |
9750 | LIBS=$ac_func_search_save_LIBS |
9751 | fi | |
9752 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
9753 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
9754 | if test "$ac_cv_search_opendir" != no; then | |
9755 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
9756 | ||
f73dda09 | 9757 | fi |
ccc6cda3 JA |
9758 | |
9759 | else | |
a82a04b3 CR |
9760 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
9761 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
9762 | if test "${ac_cv_search_opendir+set}" = set; then | |
f73dda09 | 9763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ccc6cda3 | 9764 | else |
a82a04b3 CR |
9765 | ac_func_search_save_LIBS=$LIBS |
9766 | ac_cv_search_opendir=no | |
f73dda09 | 9767 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
9768 | /* confdefs.h. */ |
9769 | _ACEOF | |
9770 | cat confdefs.h >>conftest.$ac_ext | |
9771 | cat >>conftest.$ac_ext <<_ACEOF | |
9772 | /* end confdefs.h. */ | |
545f34cf CR |
9773 | |
9774 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9775 | #ifdef __cplusplus | |
9776 | extern "C" | |
9777 | #endif | |
9778 | /* We use char because int might match the return type of a gcc2 | |
9779 | builtin and then its argument prototype would still apply. */ | |
9780 | char opendir (); | |
9781 | int | |
9782 | main () | |
9783 | { | |
9784 | opendir (); | |
9785 | ; | |
9786 | return 0; | |
9787 | } | |
9788 | _ACEOF | |
9789 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
9790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9791 | (eval $ac_link) 2>conftest.er1 | |
545f34cf | 9792 | ac_status=$? |
a82a04b3 CR |
9793 | grep -v '^ *+' conftest.er1 >conftest.err |
9794 | rm -f conftest.er1 | |
9795 | cat conftest.err >&5 | |
9796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
545f34cf | 9797 | (exit $ac_status); } && |
a82a04b3 CR |
9798 | { ac_try='test -z "$ac_c_werror_flag" |
9799 | || test ! -s conftest.err' | |
9800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
545f34cf CR |
9801 | (eval $ac_try) 2>&5 |
9802 | ac_status=$? | |
a82a04b3 CR |
9803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9804 | (exit $ac_status); }; } && | |
9805 | { ac_try='test -s conftest$ac_exeext' | |
9806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9807 | (eval $ac_try) 2>&5 | |
9808 | ac_status=$? | |
9809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
545f34cf | 9810 | (exit $ac_status); }; }; then |
a82a04b3 | 9811 | ac_cv_search_opendir="none required" |
545f34cf CR |
9812 | else |
9813 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
9814 | sed 's/^/| /' conftest.$ac_ext >&5 |
9815 | ||
f73dda09 | 9816 | fi |
a82a04b3 CR |
9817 | rm -f conftest.err conftest.$ac_objext \ |
9818 | conftest$ac_exeext conftest.$ac_ext | |
9819 | if test "$ac_cv_search_opendir" = no; then | |
9820 | for ac_lib in x; do | |
9821 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9822 | cat >conftest.$ac_ext <<_ACEOF | |
9823 | /* confdefs.h. */ | |
9824 | _ACEOF | |
9825 | cat confdefs.h >>conftest.$ac_ext | |
9826 | cat >>conftest.$ac_ext <<_ACEOF | |
9827 | /* end confdefs.h. */ | |
9828 | ||
9829 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9830 | #ifdef __cplusplus | |
9831 | extern "C" | |
9832 | #endif | |
9833 | /* We use char because int might match the return type of a gcc2 | |
9834 | builtin and then its argument prototype would still apply. */ | |
9835 | char opendir (); | |
9836 | int | |
9837 | main () | |
9838 | { | |
9839 | opendir (); | |
9840 | ; | |
9841 | return 0; | |
9842 | } | |
9843 | _ACEOF | |
9844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9845 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9846 | (eval $ac_link) 2>conftest.er1 | |
9847 | ac_status=$? | |
9848 | grep -v '^ *+' conftest.er1 >conftest.err | |
9849 | rm -f conftest.er1 | |
9850 | cat conftest.err >&5 | |
9851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9852 | (exit $ac_status); } && | |
9853 | { ac_try='test -z "$ac_c_werror_flag" | |
9854 | || test ! -s conftest.err' | |
9855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9856 | (eval $ac_try) 2>&5 | |
9857 | ac_status=$? | |
9858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9859 | (exit $ac_status); }; } && | |
9860 | { ac_try='test -s conftest$ac_exeext' | |
9861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9862 | (eval $ac_try) 2>&5 | |
9863 | ac_status=$? | |
9864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9865 | (exit $ac_status); }; }; then | |
9866 | ac_cv_search_opendir="-l$ac_lib" | |
9867 | break | |
9868 | else | |
9869 | echo "$as_me: failed program was:" >&5 | |
9870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9871 | ||
9872 | fi | |
9873 | rm -f conftest.err conftest.$ac_objext \ | |
9874 | conftest$ac_exeext conftest.$ac_ext | |
9875 | done | |
9876 | fi | |
9877 | LIBS=$ac_func_search_save_LIBS | |
545f34cf | 9878 | fi |
a82a04b3 CR |
9879 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
9880 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
9881 | if test "$ac_cv_search_opendir" != no; then | |
9882 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
9883 | ||
f73dda09 | 9884 | fi |
ccc6cda3 | 9885 | |
545f34cf CR |
9886 | fi |
9887 | ||
a82a04b3 | 9888 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
f73dda09 JA |
9889 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
9890 | if test "${ac_cv_header_time+set}" = set; then | |
9891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9892 | else | |
9893 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
9894 | /* confdefs.h. */ |
9895 | _ACEOF | |
9896 | cat confdefs.h >>conftest.$ac_ext | |
9897 | cat >>conftest.$ac_ext <<_ACEOF | |
9898 | /* end confdefs.h. */ | |
f73dda09 JA |
9899 | #include <sys/types.h> |
9900 | #include <sys/time.h> | |
9901 | #include <time.h> | |
ccc6cda3 | 9902 | |
f73dda09 JA |
9903 | int |
9904 | main () | |
9905 | { | |
9906 | if ((struct tm *) 0) | |
9907 | return 0; | |
9908 | ; | |
9909 | return 0; | |
9910 | } | |
9911 | _ACEOF | |
9912 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
9913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9914 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 9915 | ac_status=$? |
a82a04b3 CR |
9916 | grep -v '^ *+' conftest.er1 >conftest.err |
9917 | rm -f conftest.er1 | |
9918 | cat conftest.err >&5 | |
9919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 9920 | (exit $ac_status); } && |
a82a04b3 CR |
9921 | { ac_try='test -z "$ac_c_werror_flag" |
9922 | || test ! -s conftest.err' | |
9923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9924 | (eval $ac_try) 2>&5 | |
9925 | ac_status=$? | |
9926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9927 | (exit $ac_status); }; } && | |
9928 | { ac_try='test -s conftest.$ac_objext' | |
9929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
9930 | (eval $ac_try) 2>&5 |
9931 | ac_status=$? | |
a82a04b3 | 9932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
9933 | (exit $ac_status); }; }; then |
9934 | ac_cv_header_time=yes | |
ccc6cda3 | 9935 | else |
f73dda09 | 9936 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
9937 | sed 's/^/| /' conftest.$ac_ext >&5 |
9938 | ||
f73dda09 | 9939 | ac_cv_header_time=no |
ccc6cda3 | 9940 | fi |
a82a04b3 | 9941 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 9942 | fi |
a82a04b3 | 9943 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
f73dda09 JA |
9944 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
9945 | if test $ac_cv_header_time = yes; then | |
ccc6cda3 | 9946 | |
a82a04b3 | 9947 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 9948 | #define TIME_WITH_SYS_TIME 1 |
a82a04b3 | 9949 | _ACEOF |
ccc6cda3 | 9950 | |
ccc6cda3 JA |
9951 | fi |
9952 | ||
a82a04b3 CR |
9953 | |
9954 | ||
9955 | ||
f73dda09 JA |
9956 | for ac_header in inttypes.h |
9957 | do | |
9958 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a82a04b3 CR |
9959 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9960 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
f73dda09 JA |
9961 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
9962 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a82a04b3 CR |
9964 | fi |
9965 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9966 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
545f34cf | 9967 | else |
a82a04b3 CR |
9968 | # Is the header compilable? |
9969 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9970 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9971 | cat >conftest.$ac_ext <<_ACEOF | |
9972 | /* confdefs.h. */ | |
9973 | _ACEOF | |
9974 | cat confdefs.h >>conftest.$ac_ext | |
9975 | cat >>conftest.$ac_ext <<_ACEOF | |
9976 | /* end confdefs.h. */ | |
9977 | $ac_includes_default | |
f73dda09 JA |
9978 | #include <$ac_header> |
9979 | _ACEOF | |
a82a04b3 CR |
9980 | rm -f conftest.$ac_objext |
9981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9982 | (eval $ac_compile) 2>conftest.er1 | |
9983 | ac_status=$? | |
9984 | grep -v '^ *+' conftest.er1 >conftest.err | |
9985 | rm -f conftest.er1 | |
9986 | cat conftest.err >&5 | |
9987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9988 | (exit $ac_status); } && | |
9989 | { ac_try='test -z "$ac_c_werror_flag" | |
9990 | || test ! -s conftest.err' | |
9991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9992 | (eval $ac_try) 2>&5 | |
9993 | ac_status=$? | |
9994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9995 | (exit $ac_status); }; } && | |
9996 | { ac_try='test -s conftest.$ac_objext' | |
9997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9998 | (eval $ac_try) 2>&5 | |
9999 | ac_status=$? | |
10000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10001 | (exit $ac_status); }; }; then | |
10002 | ac_header_compiler=yes | |
10003 | else | |
10004 | echo "$as_me: failed program was:" >&5 | |
10005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10006 | ||
10007 | ac_header_compiler=no | |
10008 | fi | |
10009 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10010 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10011 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10012 | ||
10013 | # Is the header present? | |
10014 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10015 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10016 | cat >conftest.$ac_ext <<_ACEOF | |
10017 | /* confdefs.h. */ | |
10018 | _ACEOF | |
10019 | cat confdefs.h >>conftest.$ac_ext | |
10020 | cat >>conftest.$ac_ext <<_ACEOF | |
10021 | /* end confdefs.h. */ | |
10022 | #include <$ac_header> | |
10023 | _ACEOF | |
10024 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
f73dda09 JA |
10025 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10026 | ac_status=$? | |
a82a04b3 | 10027 | grep -v '^ *+' conftest.er1 >conftest.err |
f73dda09 JA |
10028 | rm -f conftest.er1 |
10029 | cat conftest.err >&5 | |
a82a04b3 | 10030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
10031 | (exit $ac_status); } >/dev/null; then |
10032 | if test -s conftest.err; then | |
10033 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a82a04b3 | 10034 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f73dda09 JA |
10035 | else |
10036 | ac_cpp_err= | |
10037 | fi | |
ccc6cda3 | 10038 | else |
f73dda09 JA |
10039 | ac_cpp_err=yes |
10040 | fi | |
10041 | if test -z "$ac_cpp_err"; then | |
a82a04b3 | 10042 | ac_header_preproc=yes |
ccc6cda3 | 10043 | else |
f73dda09 | 10044 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
10045 | sed 's/^/| /' conftest.$ac_ext >&5 |
10046 | ||
10047 | ac_header_preproc=no | |
ccc6cda3 | 10048 | fi |
f73dda09 | 10049 | rm -f conftest.err conftest.$ac_ext |
a82a04b3 CR |
10050 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10051 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10052 | ||
10053 | # So? What about this header? | |
10054 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10055 | yes:no: ) | |
10056 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10057 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10058 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10059 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10060 | ac_header_preproc=yes | |
10061 | ;; | |
10062 | no:yes:* ) | |
10063 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10064 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10065 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10066 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10067 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10068 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10069 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10070 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10071 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10072 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10073 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10074 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10075 | ( | |
10076 | cat <<\_ASBOX | |
10077 | ## ------------------------------- ## | |
10078 | ## Report this to bug-bash@gnu.org ## | |
10079 | ## ------------------------------- ## | |
10080 | _ASBOX | |
10081 | ) | | |
10082 | sed "s/^/$as_me: WARNING: /" >&2 | |
10083 | ;; | |
10084 | esac | |
10085 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10086 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10087 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10089 | else | |
10090 | eval "$as_ac_Header=\$ac_header_preproc" | |
ccc6cda3 | 10091 | fi |
a82a04b3 | 10092 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f73dda09 | 10093 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
a82a04b3 CR |
10094 | |
10095 | fi | |
f73dda09 | 10096 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
a82a04b3 | 10097 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 10098 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a82a04b3 | 10099 | _ACEOF |
ccc6cda3 JA |
10100 | |
10101 | fi | |
a82a04b3 | 10102 | |
f73dda09 | 10103 | done |
a82a04b3 CR |
10104 | |
10105 | ||
10106 | ||
10107 | ||
10108 | ||
10109 | ||
10110 | ||
10111 | ||
10112 | ||
10113 | ||
10114 | ||
10115 | ||
10116 | ||
10117 | ||
10118 | ||
10119 | ||
10120 | ||
10121 | ||
10122 | ||
9607141c | 10123 | |
a82a04b3 | 10124 | |
ccc6cda3 | 10125 | |
f73dda09 JA |
10126 | for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \ |
10127 | memory.h locale.h termcap.h termio.h termios.h dlfcn.h \ | |
9607141c | 10128 | stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h |
ccc6cda3 | 10129 | do |
f73dda09 | 10130 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
a82a04b3 CR |
10131 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10132 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
f73dda09 JA |
10133 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10134 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a82a04b3 CR |
10136 | fi |
10137 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10138 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
545f34cf | 10139 | else |
a82a04b3 CR |
10140 | # Is the header compilable? |
10141 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10142 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10143 | cat >conftest.$ac_ext <<_ACEOF | |
10144 | /* confdefs.h. */ | |
10145 | _ACEOF | |
10146 | cat confdefs.h >>conftest.$ac_ext | |
10147 | cat >>conftest.$ac_ext <<_ACEOF | |
10148 | /* end confdefs.h. */ | |
10149 | $ac_includes_default | |
10150 | #include <$ac_header> | |
10151 | _ACEOF | |
10152 | rm -f conftest.$ac_objext | |
10153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10154 | (eval $ac_compile) 2>conftest.er1 | |
10155 | ac_status=$? | |
10156 | grep -v '^ *+' conftest.er1 >conftest.err | |
10157 | rm -f conftest.er1 | |
10158 | cat conftest.err >&5 | |
10159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10160 | (exit $ac_status); } && | |
10161 | { ac_try='test -z "$ac_c_werror_flag" | |
10162 | || test ! -s conftest.err' | |
10163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10164 | (eval $ac_try) 2>&5 | |
10165 | ac_status=$? | |
10166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10167 | (exit $ac_status); }; } && | |
10168 | { ac_try='test -s conftest.$ac_objext' | |
10169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10170 | (eval $ac_try) 2>&5 | |
10171 | ac_status=$? | |
10172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10173 | (exit $ac_status); }; }; then | |
10174 | ac_header_compiler=yes | |
10175 | else | |
10176 | echo "$as_me: failed program was:" >&5 | |
10177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10178 | ||
10179 | ac_header_compiler=no | |
10180 | fi | |
10181 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10182 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10183 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10184 | ||
10185 | # Is the header present? | |
10186 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10187 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10188 | cat >conftest.$ac_ext <<_ACEOF | |
10189 | /* confdefs.h. */ | |
10190 | _ACEOF | |
10191 | cat confdefs.h >>conftest.$ac_ext | |
10192 | cat >>conftest.$ac_ext <<_ACEOF | |
10193 | /* end confdefs.h. */ | |
f73dda09 JA |
10194 | #include <$ac_header> |
10195 | _ACEOF | |
a82a04b3 | 10196 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f73dda09 JA |
10197 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10198 | ac_status=$? | |
a82a04b3 | 10199 | grep -v '^ *+' conftest.er1 >conftest.err |
f73dda09 JA |
10200 | rm -f conftest.er1 |
10201 | cat conftest.err >&5 | |
a82a04b3 | 10202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
10203 | (exit $ac_status); } >/dev/null; then |
10204 | if test -s conftest.err; then | |
10205 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a82a04b3 | 10206 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f73dda09 JA |
10207 | else |
10208 | ac_cpp_err= | |
10209 | fi | |
ccc6cda3 | 10210 | else |
f73dda09 JA |
10211 | ac_cpp_err=yes |
10212 | fi | |
10213 | if test -z "$ac_cpp_err"; then | |
a82a04b3 | 10214 | ac_header_preproc=yes |
ccc6cda3 | 10215 | else |
f73dda09 | 10216 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
10217 | sed 's/^/| /' conftest.$ac_ext >&5 |
10218 | ||
10219 | ac_header_preproc=no | |
ccc6cda3 | 10220 | fi |
f73dda09 | 10221 | rm -f conftest.err conftest.$ac_ext |
a82a04b3 CR |
10222 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10223 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10224 | ||
10225 | # So? What about this header? | |
10226 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10227 | yes:no: ) | |
10228 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10229 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10230 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10231 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10232 | ac_header_preproc=yes | |
10233 | ;; | |
10234 | no:yes:* ) | |
10235 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10236 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10237 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10238 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10239 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10240 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10241 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10242 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10243 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10244 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10245 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10246 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10247 | ( | |
10248 | cat <<\_ASBOX | |
10249 | ## ------------------------------- ## | |
10250 | ## Report this to bug-bash@gnu.org ## | |
10251 | ## ------------------------------- ## | |
10252 | _ASBOX | |
10253 | ) | | |
10254 | sed "s/^/$as_me: WARNING: /" >&2 | |
10255 | ;; | |
10256 | esac | |
10257 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10258 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10259 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10261 | else | |
10262 | eval "$as_ac_Header=\$ac_header_preproc" | |
ccc6cda3 | 10263 | fi |
a82a04b3 | 10264 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f73dda09 | 10265 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
a82a04b3 CR |
10266 | |
10267 | fi | |
f73dda09 | 10268 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
a82a04b3 | 10269 | cat >>confdefs.h <<_ACEOF |
e624d0f7 | 10270 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a82a04b3 | 10271 | _ACEOF |
545f34cf | 10272 | |
e624d0f7 | 10273 | fi |
a82a04b3 | 10274 | |
e624d0f7 | 10275 | done |
545f34cf | 10276 | |
a82a04b3 CR |
10277 | |
10278 | ||
10279 | ||
10280 | ||
10281 | ||
10282 | ||
10283 | ||
10284 | ||
10285 | ||
10286 | ||
10287 | ||
10288 | ||
40b074c6 | 10289 | for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \ |
545f34cf CR |
10290 | sys/resource.h sys/param.h sys/socket.h sys/stat.h \ |
10291 | sys/time.h sys/times.h sys/types.h sys/wait.h | |
10292 | do | |
10293 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a82a04b3 CR |
10294 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10295 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
545f34cf CR |
10296 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10297 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a82a04b3 CR |
10299 | fi |
10300 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10301 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
545f34cf | 10302 | else |
a82a04b3 CR |
10303 | # Is the header compilable? |
10304 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10305 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10306 | cat >conftest.$ac_ext <<_ACEOF | |
10307 | /* confdefs.h. */ | |
10308 | _ACEOF | |
10309 | cat confdefs.h >>conftest.$ac_ext | |
10310 | cat >>conftest.$ac_ext <<_ACEOF | |
10311 | /* end confdefs.h. */ | |
10312 | $ac_includes_default | |
f73dda09 JA |
10313 | #include <$ac_header> |
10314 | _ACEOF | |
a82a04b3 CR |
10315 | rm -f conftest.$ac_objext |
10316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10317 | (eval $ac_compile) 2>conftest.er1 | |
10318 | ac_status=$? | |
10319 | grep -v '^ *+' conftest.er1 >conftest.err | |
10320 | rm -f conftest.er1 | |
10321 | cat conftest.err >&5 | |
10322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10323 | (exit $ac_status); } && | |
10324 | { ac_try='test -z "$ac_c_werror_flag" | |
10325 | || test ! -s conftest.err' | |
10326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10327 | (eval $ac_try) 2>&5 | |
10328 | ac_status=$? | |
10329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10330 | (exit $ac_status); }; } && | |
10331 | { ac_try='test -s conftest.$ac_objext' | |
10332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10333 | (eval $ac_try) 2>&5 | |
10334 | ac_status=$? | |
10335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10336 | (exit $ac_status); }; }; then | |
10337 | ac_header_compiler=yes | |
10338 | else | |
10339 | echo "$as_me: failed program was:" >&5 | |
10340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10341 | ||
10342 | ac_header_compiler=no | |
10343 | fi | |
10344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10345 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10346 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10347 | ||
10348 | # Is the header present? | |
10349 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10350 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10351 | cat >conftest.$ac_ext <<_ACEOF | |
10352 | /* confdefs.h. */ | |
10353 | _ACEOF | |
10354 | cat confdefs.h >>conftest.$ac_ext | |
10355 | cat >>conftest.$ac_ext <<_ACEOF | |
10356 | /* end confdefs.h. */ | |
10357 | #include <$ac_header> | |
10358 | _ACEOF | |
10359 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
f73dda09 JA |
10360 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10361 | ac_status=$? | |
a82a04b3 | 10362 | grep -v '^ *+' conftest.er1 >conftest.err |
f73dda09 JA |
10363 | rm -f conftest.er1 |
10364 | cat conftest.err >&5 | |
a82a04b3 | 10365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
10366 | (exit $ac_status); } >/dev/null; then |
10367 | if test -s conftest.err; then | |
10368 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a82a04b3 | 10369 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f73dda09 JA |
10370 | else |
10371 | ac_cpp_err= | |
10372 | fi | |
ccc6cda3 | 10373 | else |
f73dda09 JA |
10374 | ac_cpp_err=yes |
10375 | fi | |
10376 | if test -z "$ac_cpp_err"; then | |
a82a04b3 | 10377 | ac_header_preproc=yes |
ccc6cda3 | 10378 | else |
f73dda09 | 10379 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
10380 | sed 's/^/| /' conftest.$ac_ext >&5 |
10381 | ||
10382 | ac_header_preproc=no | |
ccc6cda3 | 10383 | fi |
f73dda09 | 10384 | rm -f conftest.err conftest.$ac_ext |
a82a04b3 CR |
10385 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10386 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10387 | ||
10388 | # So? What about this header? | |
10389 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10390 | yes:no: ) | |
10391 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10392 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10393 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10394 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10395 | ac_header_preproc=yes | |
10396 | ;; | |
10397 | no:yes:* ) | |
10398 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10399 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10400 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10401 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10402 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10403 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10404 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10405 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10406 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10407 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10408 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10409 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10410 | ( | |
10411 | cat <<\_ASBOX | |
10412 | ## ------------------------------- ## | |
10413 | ## Report this to bug-bash@gnu.org ## | |
10414 | ## ------------------------------- ## | |
10415 | _ASBOX | |
10416 | ) | | |
10417 | sed "s/^/$as_me: WARNING: /" >&2 | |
10418 | ;; | |
10419 | esac | |
10420 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10421 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10422 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10424 | else | |
10425 | eval "$as_ac_Header=\$ac_header_preproc" | |
ccc6cda3 | 10426 | fi |
a82a04b3 | 10427 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f73dda09 | 10428 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
a82a04b3 CR |
10429 | |
10430 | fi | |
f73dda09 | 10431 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
a82a04b3 | 10432 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 10433 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a82a04b3 | 10434 | _ACEOF |
f73dda09 | 10435 | |
ccc6cda3 | 10436 | fi |
a82a04b3 | 10437 | |
ccc6cda3 JA |
10438 | done |
10439 | ||
a82a04b3 CR |
10440 | |
10441 | ||
f73dda09 | 10442 | for ac_header in netinet/in.h arpa/inet.h |
ccc6cda3 | 10443 | do |
f73dda09 | 10444 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
a82a04b3 CR |
10445 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10446 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
f73dda09 JA |
10447 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10448 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a82a04b3 CR |
10450 | fi |
10451 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10452 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
545f34cf | 10453 | else |
a82a04b3 CR |
10454 | # Is the header compilable? |
10455 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10456 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10457 | cat >conftest.$ac_ext <<_ACEOF | |
10458 | /* confdefs.h. */ | |
10459 | _ACEOF | |
10460 | cat confdefs.h >>conftest.$ac_ext | |
10461 | cat >>conftest.$ac_ext <<_ACEOF | |
10462 | /* end confdefs.h. */ | |
10463 | $ac_includes_default | |
f73dda09 JA |
10464 | #include <$ac_header> |
10465 | _ACEOF | |
a82a04b3 CR |
10466 | rm -f conftest.$ac_objext |
10467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10468 | (eval $ac_compile) 2>conftest.er1 | |
10469 | ac_status=$? | |
10470 | grep -v '^ *+' conftest.er1 >conftest.err | |
10471 | rm -f conftest.er1 | |
10472 | cat conftest.err >&5 | |
10473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10474 | (exit $ac_status); } && | |
10475 | { ac_try='test -z "$ac_c_werror_flag" | |
10476 | || test ! -s conftest.err' | |
10477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10478 | (eval $ac_try) 2>&5 | |
10479 | ac_status=$? | |
10480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10481 | (exit $ac_status); }; } && | |
10482 | { ac_try='test -s conftest.$ac_objext' | |
10483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10484 | (eval $ac_try) 2>&5 | |
10485 | ac_status=$? | |
10486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10487 | (exit $ac_status); }; }; then | |
10488 | ac_header_compiler=yes | |
10489 | else | |
10490 | echo "$as_me: failed program was:" >&5 | |
10491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10492 | ||
10493 | ac_header_compiler=no | |
10494 | fi | |
10495 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10496 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10497 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10498 | ||
10499 | # Is the header present? | |
10500 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10501 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10502 | cat >conftest.$ac_ext <<_ACEOF | |
10503 | /* confdefs.h. */ | |
10504 | _ACEOF | |
10505 | cat confdefs.h >>conftest.$ac_ext | |
10506 | cat >>conftest.$ac_ext <<_ACEOF | |
10507 | /* end confdefs.h. */ | |
10508 | #include <$ac_header> | |
10509 | _ACEOF | |
10510 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
f73dda09 JA |
10511 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10512 | ac_status=$? | |
a82a04b3 | 10513 | grep -v '^ *+' conftest.er1 >conftest.err |
f73dda09 JA |
10514 | rm -f conftest.er1 |
10515 | cat conftest.err >&5 | |
a82a04b3 | 10516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
10517 | (exit $ac_status); } >/dev/null; then |
10518 | if test -s conftest.err; then | |
10519 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a82a04b3 | 10520 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f73dda09 JA |
10521 | else |
10522 | ac_cpp_err= | |
10523 | fi | |
ccc6cda3 | 10524 | else |
f73dda09 JA |
10525 | ac_cpp_err=yes |
10526 | fi | |
10527 | if test -z "$ac_cpp_err"; then | |
a82a04b3 | 10528 | ac_header_preproc=yes |
ccc6cda3 | 10529 | else |
f73dda09 | 10530 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
10531 | sed 's/^/| /' conftest.$ac_ext >&5 |
10532 | ||
10533 | ac_header_preproc=no | |
ccc6cda3 | 10534 | fi |
f73dda09 | 10535 | rm -f conftest.err conftest.$ac_ext |
a82a04b3 CR |
10536 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10537 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10538 | ||
10539 | # So? What about this header? | |
10540 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10541 | yes:no: ) | |
10542 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10543 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10544 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10545 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10546 | ac_header_preproc=yes | |
10547 | ;; | |
10548 | no:yes:* ) | |
10549 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10550 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10551 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10552 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10553 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10554 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10555 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10556 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10557 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10558 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10559 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10560 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10561 | ( | |
10562 | cat <<\_ASBOX | |
10563 | ## ------------------------------- ## | |
10564 | ## Report this to bug-bash@gnu.org ## | |
10565 | ## ------------------------------- ## | |
10566 | _ASBOX | |
10567 | ) | | |
10568 | sed "s/^/$as_me: WARNING: /" >&2 | |
10569 | ;; | |
10570 | esac | |
10571 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10572 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10573 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10575 | else | |
10576 | eval "$as_ac_Header=\$ac_header_preproc" | |
ccc6cda3 | 10577 | fi |
a82a04b3 | 10578 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f73dda09 | 10579 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
a82a04b3 CR |
10580 | |
10581 | fi | |
f73dda09 | 10582 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
a82a04b3 | 10583 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 10584 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a82a04b3 | 10585 | _ACEOF |
f73dda09 | 10586 | |
ccc6cda3 | 10587 | fi |
a82a04b3 | 10588 | |
ccc6cda3 JA |
10589 | done |
10590 | ||
a82a04b3 CR |
10591 | |
10592 | echo "$as_me:$LINENO: checking for sys/ptem.h" >&5 | |
40b074c6 CR |
10593 | echo $ECHO_N "checking for sys/ptem.h... $ECHO_C" >&6 |
10594 | if test "${ac_cv_header_sys_ptem_h+set}" = set; then | |
10595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10596 | else | |
10597 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
10598 | /* confdefs.h. */ |
10599 | _ACEOF | |
10600 | cat confdefs.h >>conftest.$ac_ext | |
10601 | cat >>conftest.$ac_ext <<_ACEOF | |
10602 | /* end confdefs.h. */ | |
40b074c6 CR |
10603 | |
10604 | #if HAVE_SYS_STREAM_H | |
10605 | # include <sys/stream.h> | |
10606 | #endif | |
10607 | ||
a82a04b3 | 10608 | |
40b074c6 CR |
10609 | #include <sys/ptem.h> |
10610 | _ACEOF | |
10611 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
10612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
10613 | (eval $ac_compile) 2>conftest.er1 | |
40b074c6 | 10614 | ac_status=$? |
a82a04b3 CR |
10615 | grep -v '^ *+' conftest.er1 >conftest.err |
10616 | rm -f conftest.er1 | |
10617 | cat conftest.err >&5 | |
10618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40b074c6 | 10619 | (exit $ac_status); } && |
a82a04b3 CR |
10620 | { ac_try='test -z "$ac_c_werror_flag" |
10621 | || test ! -s conftest.err' | |
10622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10623 | (eval $ac_try) 2>&5 | |
10624 | ac_status=$? | |
10625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10626 | (exit $ac_status); }; } && | |
10627 | { ac_try='test -s conftest.$ac_objext' | |
10628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40b074c6 CR |
10629 | (eval $ac_try) 2>&5 |
10630 | ac_status=$? | |
a82a04b3 | 10631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40b074c6 CR |
10632 | (exit $ac_status); }; }; then |
10633 | ac_cv_header_sys_ptem_h=yes | |
10634 | else | |
10635 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
10636 | sed 's/^/| /' conftest.$ac_ext >&5 |
10637 | ||
40b074c6 CR |
10638 | ac_cv_header_sys_ptem_h=no |
10639 | fi | |
a82a04b3 | 10640 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
40b074c6 | 10641 | fi |
a82a04b3 | 10642 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5 |
40b074c6 CR |
10643 | echo "${ECHO_T}$ac_cv_header_sys_ptem_h" >&6 |
10644 | ||
a82a04b3 CR |
10645 | |
10646 | ||
f73dda09 JA |
10647 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
10648 | # for constant arguments. Useless! | |
a82a04b3 | 10649 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
f73dda09 JA |
10650 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
10651 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
10652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 10653 | else |
f73dda09 | 10654 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
10655 | /* confdefs.h. */ |
10656 | _ACEOF | |
10657 | cat confdefs.h >>conftest.$ac_ext | |
10658 | cat >>conftest.$ac_ext <<_ACEOF | |
10659 | /* end confdefs.h. */ | |
f73dda09 JA |
10660 | #include <alloca.h> |
10661 | int | |
10662 | main () | |
10663 | { | |
10664 | char *p = (char *) alloca (2 * sizeof (int)); | |
10665 | ; | |
10666 | return 0; | |
10667 | } | |
10668 | _ACEOF | |
10669 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
10670 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10671 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 10672 | ac_status=$? |
a82a04b3 CR |
10673 | grep -v '^ *+' conftest.er1 >conftest.err |
10674 | rm -f conftest.er1 | |
10675 | cat conftest.err >&5 | |
10676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 10677 | (exit $ac_status); } && |
a82a04b3 CR |
10678 | { ac_try='test -z "$ac_c_werror_flag" |
10679 | || test ! -s conftest.err' | |
10680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10681 | (eval $ac_try) 2>&5 | |
10682 | ac_status=$? | |
10683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10684 | (exit $ac_status); }; } && | |
10685 | { ac_try='test -s conftest$ac_exeext' | |
10686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
10687 | (eval $ac_try) 2>&5 |
10688 | ac_status=$? | |
a82a04b3 | 10689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
10690 | (exit $ac_status); }; }; then |
10691 | ac_cv_working_alloca_h=yes | |
10692 | else | |
10693 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
10694 | sed 's/^/| /' conftest.$ac_ext >&5 |
10695 | ||
f73dda09 JA |
10696 | ac_cv_working_alloca_h=no |
10697 | fi | |
a82a04b3 CR |
10698 | rm -f conftest.err conftest.$ac_objext \ |
10699 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 10700 | fi |
a82a04b3 | 10701 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
f73dda09 JA |
10702 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
10703 | if test $ac_cv_working_alloca_h = yes; then | |
10704 | ||
a82a04b3 | 10705 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 10706 | #define HAVE_ALLOCA_H 1 |
a82a04b3 | 10707 | _ACEOF |
ccc6cda3 | 10708 | |
f73dda09 | 10709 | fi |
ccc6cda3 | 10710 | |
a82a04b3 | 10711 | echo "$as_me:$LINENO: checking for alloca" >&5 |
f73dda09 JA |
10712 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
10713 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
10714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10715 | else | |
10716 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
10717 | /* confdefs.h. */ |
10718 | _ACEOF | |
10719 | cat confdefs.h >>conftest.$ac_ext | |
10720 | cat >>conftest.$ac_ext <<_ACEOF | |
10721 | /* end confdefs.h. */ | |
f73dda09 JA |
10722 | #ifdef __GNUC__ |
10723 | # define alloca __builtin_alloca | |
ccc6cda3 | 10724 | #else |
f73dda09 JA |
10725 | # ifdef _MSC_VER |
10726 | # include <malloc.h> | |
10727 | # define alloca _alloca | |
10728 | # else | |
10729 | # if HAVE_ALLOCA_H | |
10730 | # include <alloca.h> | |
10731 | # else | |
10732 | # ifdef _AIX | |
10733 | #pragma alloca | |
10734 | # else | |
10735 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
10736 | char *alloca (); | |
10737 | # endif | |
10738 | # endif | |
10739 | # endif | |
10740 | # endif | |
ccc6cda3 JA |
10741 | #endif |
10742 | ||
f73dda09 JA |
10743 | int |
10744 | main () | |
10745 | { | |
10746 | char *p = (char *) alloca (1); | |
10747 | ; | |
10748 | return 0; | |
10749 | } | |
10750 | _ACEOF | |
10751 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
10752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10753 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 10754 | ac_status=$? |
a82a04b3 CR |
10755 | grep -v '^ *+' conftest.er1 >conftest.err |
10756 | rm -f conftest.er1 | |
10757 | cat conftest.err >&5 | |
10758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 10759 | (exit $ac_status); } && |
a82a04b3 CR |
10760 | { ac_try='test -z "$ac_c_werror_flag" |
10761 | || 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_exeext' | |
10768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
10769 | (eval $ac_try) 2>&5 |
10770 | ac_status=$? | |
a82a04b3 | 10771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
10772 | (exit $ac_status); }; }; then |
10773 | ac_cv_func_alloca_works=yes | |
ccc6cda3 | 10774 | else |
f73dda09 | 10775 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
10776 | sed 's/^/| /' conftest.$ac_ext >&5 |
10777 | ||
f73dda09 | 10778 | ac_cv_func_alloca_works=no |
ccc6cda3 | 10779 | fi |
a82a04b3 CR |
10780 | rm -f conftest.err conftest.$ac_objext \ |
10781 | conftest$ac_exeext conftest.$ac_ext | |
ccc6cda3 | 10782 | fi |
a82a04b3 | 10783 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
f73dda09 JA |
10784 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
10785 | ||
10786 | if test $ac_cv_func_alloca_works = yes; then | |
ccc6cda3 | 10787 | |
a82a04b3 | 10788 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 10789 | #define HAVE_ALLOCA 1 |
a82a04b3 | 10790 | _ACEOF |
f73dda09 | 10791 | |
ccc6cda3 | 10792 | else |
f73dda09 JA |
10793 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
10794 | # that cause trouble. Some versions do not even contain alloca or | |
10795 | # contain a buggy version. If you still want to use their alloca, | |
10796 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
ccc6cda3 | 10797 | |
f73dda09 | 10798 | ALLOCA=alloca.$ac_objext |
ccc6cda3 | 10799 | |
a82a04b3 | 10800 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 10801 | #define C_ALLOCA 1 |
a82a04b3 CR |
10802 | _ACEOF |
10803 | ||
545f34cf | 10804 | |
a82a04b3 | 10805 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
f73dda09 JA |
10806 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
10807 | if test "${ac_cv_os_cray+set}" = set; then | |
10808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 10809 | else |
f73dda09 | 10810 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
10811 | /* confdefs.h. */ |
10812 | _ACEOF | |
10813 | cat confdefs.h >>conftest.$ac_ext | |
10814 | cat >>conftest.$ac_ext <<_ACEOF | |
10815 | /* end confdefs.h. */ | |
f73dda09 JA |
10816 | #if defined(CRAY) && ! defined(CRAY2) |
10817 | webecray | |
10818 | #else | |
10819 | wenotbecray | |
10820 | #endif | |
ccc6cda3 | 10821 | |
f73dda09 JA |
10822 | _ACEOF |
10823 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
a82a04b3 | 10824 | $EGREP "webecray" >/dev/null 2>&1; then |
f73dda09 | 10825 | ac_cv_os_cray=yes |
ccc6cda3 | 10826 | else |
f73dda09 | 10827 | ac_cv_os_cray=no |
ccc6cda3 JA |
10828 | fi |
10829 | rm -f conftest* | |
ccc6cda3 JA |
10830 | |
10831 | fi | |
a82a04b3 | 10832 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
f73dda09 JA |
10833 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
10834 | if test $ac_cv_os_cray = yes; then | |
10835 | for ac_func in _getb67 GETB67 getb67; do | |
10836 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a82a04b3 | 10837 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
f73dda09 JA |
10838 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10839 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 10841 | else |
f73dda09 | 10842 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
10843 | /* confdefs.h. */ |
10844 | _ACEOF | |
10845 | cat confdefs.h >>conftest.$ac_ext | |
10846 | cat >>conftest.$ac_ext <<_ACEOF | |
10847 | /* end confdefs.h. */ | |
10848 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10849 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10850 | #define $ac_func innocuous_$ac_func | |
10851 | ||
ccc6cda3 | 10852 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
10853 | which can conflict with char $ac_func (); below. |
10854 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10855 | <limits.h> exists even on freestanding compilers. */ | |
10856 | ||
10857 | #ifdef __STDC__ | |
10858 | # include <limits.h> | |
10859 | #else | |
10860 | # include <assert.h> | |
10861 | #endif | |
10862 | ||
10863 | #undef $ac_func | |
10864 | ||
ccc6cda3 | 10865 | /* Override any gcc2 internal prototype to avoid an error. */ |
f73dda09 JA |
10866 | #ifdef __cplusplus |
10867 | extern "C" | |
a82a04b3 | 10868 | { |
f73dda09 | 10869 | #endif |
ccc6cda3 | 10870 | /* We use char because int might match the return type of a gcc2 |
f73dda09 JA |
10871 | builtin and then its argument prototype would still apply. */ |
10872 | char $ac_func (); | |
ccc6cda3 JA |
10873 | /* The GNU C library defines this for functions which it implements |
10874 | to always fail with ENOSYS. Some functions are actually named | |
10875 | something starting with __ and the normal name is an alias. */ | |
10876 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10877 | choke me | |
10878 | #else | |
a82a04b3 CR |
10879 | char (*f) () = $ac_func; |
10880 | #endif | |
10881 | #ifdef __cplusplus | |
10882 | } | |
ccc6cda3 JA |
10883 | #endif |
10884 | ||
a82a04b3 CR |
10885 | int |
10886 | main () | |
10887 | { | |
10888 | return f != $ac_func; | |
f73dda09 JA |
10889 | ; |
10890 | return 0; | |
10891 | } | |
10892 | _ACEOF | |
10893 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
10894 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10895 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 10896 | ac_status=$? |
a82a04b3 CR |
10897 | grep -v '^ *+' conftest.er1 >conftest.err |
10898 | rm -f conftest.er1 | |
10899 | cat conftest.err >&5 | |
10900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 10901 | (exit $ac_status); } && |
a82a04b3 CR |
10902 | { ac_try='test -z "$ac_c_werror_flag" |
10903 | || test ! -s conftest.err' | |
10904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10905 | (eval $ac_try) 2>&5 | |
10906 | ac_status=$? | |
10907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10908 | (exit $ac_status); }; } && | |
10909 | { ac_try='test -s conftest$ac_exeext' | |
10910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
10911 | (eval $ac_try) 2>&5 |
10912 | ac_status=$? | |
a82a04b3 | 10913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
10914 | (exit $ac_status); }; }; then |
10915 | eval "$as_ac_var=yes" | |
10916 | else | |
10917 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
10918 | sed 's/^/| /' conftest.$ac_ext >&5 |
10919 | ||
f73dda09 JA |
10920 | eval "$as_ac_var=no" |
10921 | fi | |
a82a04b3 CR |
10922 | rm -f conftest.err conftest.$ac_objext \ |
10923 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 10924 | fi |
a82a04b3 | 10925 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
f73dda09 JA |
10926 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10927 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10928 | ||
a82a04b3 | 10929 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 10930 | #define CRAY_STACKSEG_END $ac_func |
a82a04b3 | 10931 | _ACEOF |
ccc6cda3 | 10932 | |
f73dda09 | 10933 | break |
ccc6cda3 | 10934 | fi |
ccc6cda3 | 10935 | |
f73dda09 | 10936 | done |
ccc6cda3 JA |
10937 | fi |
10938 | ||
a82a04b3 | 10939 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
f73dda09 JA |
10940 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
10941 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
10942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 10943 | else |
f73dda09 JA |
10944 | if test "$cross_compiling" = yes; then |
10945 | ac_cv_c_stack_direction=0 | |
10946 | else | |
10947 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
10948 | /* confdefs.h. */ |
10949 | _ACEOF | |
10950 | cat confdefs.h >>conftest.$ac_ext | |
10951 | cat >>conftest.$ac_ext <<_ACEOF | |
10952 | /* end confdefs.h. */ | |
f73dda09 JA |
10953 | int |
10954 | find_stack_direction () | |
10955 | { | |
10956 | static char *addr = 0; | |
10957 | auto char dummy; | |
10958 | if (addr == 0) | |
10959 | { | |
10960 | addr = &dummy; | |
10961 | return find_stack_direction (); | |
10962 | } | |
10963 | else | |
10964 | return (&dummy > addr) ? 1 : -1; | |
10965 | } | |
ccc6cda3 | 10966 | |
f73dda09 JA |
10967 | int |
10968 | main () | |
10969 | { | |
10970 | exit (find_stack_direction () < 0); | |
10971 | } | |
10972 | _ACEOF | |
10973 | rm -f conftest$ac_exeext | |
a82a04b3 | 10974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
10975 | (eval $ac_link) 2>&5 |
10976 | ac_status=$? | |
a82a04b3 | 10977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 10978 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 10979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
10980 | (eval $ac_try) 2>&5 |
10981 | ac_status=$? | |
a82a04b3 | 10982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
10983 | (exit $ac_status); }; }; then |
10984 | ac_cv_c_stack_direction=1 | |
ccc6cda3 | 10985 | else |
f73dda09 JA |
10986 | echo "$as_me: program exited with status $ac_status" >&5 |
10987 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
10988 | sed 's/^/| /' conftest.$ac_ext >&5 |
10989 | ||
10990 | ( exit $ac_status ) | |
f73dda09 | 10991 | ac_cv_c_stack_direction=-1 |
ccc6cda3 | 10992 | fi |
a82a04b3 | 10993 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 10994 | fi |
f73dda09 | 10995 | fi |
a82a04b3 | 10996 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
f73dda09 | 10997 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
ccc6cda3 | 10998 | |
a82a04b3 | 10999 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 11000 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
a82a04b3 CR |
11001 | _ACEOF |
11002 | ||
ccc6cda3 | 11003 | |
ccc6cda3 JA |
11004 | fi |
11005 | ||
a82a04b3 CR |
11006 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 |
11007 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 | |
f73dda09 JA |
11008 | if test "${ac_cv_func_getpgrp_void+set}" = set; then |
11009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 11010 | else |
f73dda09 JA |
11011 | # Use it with a single arg. |
11012 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
11013 | /* confdefs.h. */ |
11014 | _ACEOF | |
11015 | cat confdefs.h >>conftest.$ac_ext | |
11016 | cat >>conftest.$ac_ext <<_ACEOF | |
11017 | /* end confdefs.h. */ | |
f73dda09 JA |
11018 | $ac_includes_default |
11019 | int | |
11020 | main () | |
11021 | { | |
11022 | getpgrp (0); | |
11023 | ; | |
11024 | return 0; | |
11025 | } | |
11026 | _ACEOF | |
11027 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
11028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11029 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 11030 | ac_status=$? |
a82a04b3 CR |
11031 | grep -v '^ *+' conftest.er1 >conftest.err |
11032 | rm -f conftest.er1 | |
11033 | cat conftest.err >&5 | |
11034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 11035 | (exit $ac_status); } && |
a82a04b3 CR |
11036 | { ac_try='test -z "$ac_c_werror_flag" |
11037 | || test ! -s conftest.err' | |
11038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11039 | (eval $ac_try) 2>&5 | |
11040 | ac_status=$? | |
11041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11042 | (exit $ac_status); }; } && | |
11043 | { ac_try='test -s conftest.$ac_objext' | |
11044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
11045 | (eval $ac_try) 2>&5 |
11046 | ac_status=$? | |
a82a04b3 | 11047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 11048 | (exit $ac_status); }; }; then |
a82a04b3 | 11049 | ac_cv_func_getpgrp_void=no |
f73dda09 JA |
11050 | else |
11051 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
11052 | sed 's/^/| /' conftest.$ac_ext >&5 |
11053 | ||
11054 | ac_cv_func_getpgrp_void=yes | |
f73dda09 | 11055 | fi |
a82a04b3 CR |
11056 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11057 | ||
11058 | fi | |
11059 | echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | |
11060 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | |
11061 | if test $ac_cv_func_getpgrp_void = yes; then | |
11062 | ||
11063 | cat >>confdefs.h <<\_ACEOF | |
11064 | #define GETPGRP_VOID 1 | |
11065 | _ACEOF | |
11066 | ||
11067 | fi | |
11068 | ||
11069 | echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5 | |
11070 | echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6 | |
11071 | if test "${ac_cv_func_setvbuf_reversed+set}" = set; then | |
11072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11073 | else | |
11074 | ac_cv_func_setvbuf_reversed=no | |
11075 | cat >conftest.$ac_ext <<_ACEOF | |
11076 | /* confdefs.h. */ | |
11077 | _ACEOF | |
11078 | cat confdefs.h >>conftest.$ac_ext | |
11079 | cat >>conftest.$ac_ext <<_ACEOF | |
11080 | /* end confdefs.h. */ | |
11081 | #include <stdio.h> | |
11082 | # if PROTOTYPES | |
11083 | int (setvbuf) (FILE *, int, char *, size_t); | |
11084 | # endif | |
f73dda09 JA |
11085 | int |
11086 | main () | |
11087 | { | |
a82a04b3 | 11088 | char buf; return setvbuf (stdout, _IOLBF, &buf, 1); |
f73dda09 JA |
11089 | ; |
11090 | return 0; | |
11091 | } | |
11092 | _ACEOF | |
a82a04b3 CR |
11093 | rm -f conftest.$ac_objext conftest$ac_exeext |
11094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11095 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 11096 | ac_status=$? |
a82a04b3 CR |
11097 | grep -v '^ *+' conftest.er1 >conftest.err |
11098 | rm -f conftest.er1 | |
11099 | cat conftest.err >&5 | |
11100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 11101 | (exit $ac_status); } && |
a82a04b3 CR |
11102 | { ac_try='test -z "$ac_c_werror_flag" |
11103 | || test ! -s conftest.err' | |
11104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
11105 | (eval $ac_try) 2>&5 |
11106 | ac_status=$? | |
a82a04b3 CR |
11107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11108 | (exit $ac_status); }; } && | |
11109 | { ac_try='test -s conftest$ac_exeext' | |
11110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11111 | (eval $ac_try) 2>&5 | |
11112 | ac_status=$? | |
11113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 11114 | (exit $ac_status); }; }; then |
f73dda09 | 11115 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
11116 | /* confdefs.h. */ |
11117 | _ACEOF | |
11118 | cat confdefs.h >>conftest.$ac_ext | |
11119 | cat >>conftest.$ac_ext <<_ACEOF | |
11120 | /* end confdefs.h. */ | |
11121 | #include <stdio.h> | |
11122 | # if PROTOTYPES | |
11123 | int (setvbuf) (FILE *, int, char *, size_t); | |
11124 | # endif | |
f73dda09 JA |
11125 | int |
11126 | main () | |
11127 | { | |
a82a04b3 CR |
11128 | char buf; return setvbuf (stdout, &buf, _IOLBF, 1); |
11129 | ; | |
11130 | return 0; | |
f73dda09 | 11131 | } |
f73dda09 | 11132 | _ACEOF |
a82a04b3 CR |
11133 | rm -f conftest.$ac_objext conftest$ac_exeext |
11134 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11135 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 11136 | ac_status=$? |
a82a04b3 CR |
11137 | grep -v '^ *+' conftest.er1 >conftest.err |
11138 | rm -f conftest.er1 | |
11139 | cat conftest.err >&5 | |
11140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11141 | (exit $ac_status); } && | |
11142 | { ac_try='test -z "$ac_c_werror_flag" | |
11143 | || test ! -s conftest.err' | |
11144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11145 | (eval $ac_try) 2>&5 | |
11146 | ac_status=$? | |
11147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11148 | (exit $ac_status); }; } && | |
11149 | { ac_try='test -s conftest$ac_exeext' | |
11150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
11151 | (eval $ac_try) 2>&5 |
11152 | ac_status=$? | |
a82a04b3 | 11153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 11154 | (exit $ac_status); }; }; then |
a82a04b3 CR |
11155 | # It compiles and links either way, so it must not be declared |
11156 | # with a prototype and most likely this is a K&R C compiler. | |
11157 | # Try running it. | |
11158 | if test "$cross_compiling" = yes; then | |
11159 | : # Assume setvbuf is not reversed when cross-compiling. | |
f73dda09 JA |
11160 | else |
11161 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
11162 | /* confdefs.h. */ |
11163 | _ACEOF | |
11164 | cat confdefs.h >>conftest.$ac_ext | |
11165 | cat >>conftest.$ac_ext <<_ACEOF | |
11166 | /* end confdefs.h. */ | |
f73dda09 | 11167 | #include <stdio.h> |
f73dda09 JA |
11168 | int |
11169 | main () | |
11170 | { | |
a82a04b3 CR |
11171 | /* This call has the arguments reversed. |
11172 | A reversed system may check and see that the address of buf | |
11173 | is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ | |
11174 | char buf; | |
11175 | if (setvbuf (stdout, _IOLBF, &buf, 1) != 0) | |
11176 | exit (1); | |
11177 | putchar ('\r'); | |
11178 | exit (0); /* Non-reversed systems SEGV here. */ | |
11179 | ; | |
11180 | return 0; | |
f73dda09 JA |
11181 | } |
11182 | _ACEOF | |
11183 | rm -f conftest$ac_exeext | |
a82a04b3 | 11184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
11185 | (eval $ac_link) 2>&5 |
11186 | ac_status=$? | |
a82a04b3 | 11187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 11188 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 11189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
11190 | (eval $ac_try) 2>&5 |
11191 | ac_status=$? | |
a82a04b3 | 11192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
11193 | (exit $ac_status); }; }; then |
11194 | ac_cv_func_setvbuf_reversed=yes | |
ccc6cda3 | 11195 | else |
f73dda09 JA |
11196 | echo "$as_me: program exited with status $ac_status" >&5 |
11197 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
11198 | sed 's/^/| /' conftest.$ac_ext >&5 |
11199 | ||
11200 | ( exit $ac_status ) | |
11201 | rm -f core *.core | |
11202 | fi | |
11203 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11204 | fi | |
11205 | ac_cv_func_setvbuf_reversed=yes | |
11206 | else | |
11207 | echo "$as_me: failed program was:" >&5 | |
11208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11209 | ||
545f34cf | 11210 | fi |
a82a04b3 CR |
11211 | rm -f conftest.err conftest.$ac_objext \ |
11212 | conftest$ac_exeext conftest.$ac_ext | |
11213 | else | |
11214 | echo "$as_me: failed program was:" >&5 | |
11215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11216 | ||
ccc6cda3 | 11217 | fi |
a82a04b3 CR |
11218 | rm -f conftest.err conftest.$ac_objext \ |
11219 | conftest$ac_exeext conftest.$ac_ext | |
545f34cf | 11220 | fi |
a82a04b3 | 11221 | echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5 |
f73dda09 JA |
11222 | echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6 |
11223 | if test $ac_cv_func_setvbuf_reversed = yes; then | |
ccc6cda3 | 11224 | |
a82a04b3 | 11225 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 11226 | #define SETVBUF_REVERSED 1 |
a82a04b3 | 11227 | _ACEOF |
ccc6cda3 JA |
11228 | |
11229 | fi | |
11230 | ||
a82a04b3 | 11231 | |
f73dda09 | 11232 | for ac_func in vprintf |
ccc6cda3 | 11233 | do |
f73dda09 | 11234 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
a82a04b3 | 11235 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
f73dda09 JA |
11236 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
11237 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
11238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 11239 | else |
f73dda09 | 11240 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
11241 | /* confdefs.h. */ |
11242 | _ACEOF | |
11243 | cat confdefs.h >>conftest.$ac_ext | |
11244 | cat >>conftest.$ac_ext <<_ACEOF | |
11245 | /* end confdefs.h. */ | |
11246 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11247 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11248 | #define $ac_func innocuous_$ac_func | |
11249 | ||
f73dda09 | 11250 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
11251 | which can conflict with char $ac_func (); below. |
11252 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11253 | <limits.h> exists even on freestanding compilers. */ | |
11254 | ||
11255 | #ifdef __STDC__ | |
11256 | # include <limits.h> | |
11257 | #else | |
11258 | # include <assert.h> | |
11259 | #endif | |
11260 | ||
11261 | #undef $ac_func | |
11262 | ||
f73dda09 JA |
11263 | /* Override any gcc2 internal prototype to avoid an error. */ |
11264 | #ifdef __cplusplus | |
11265 | extern "C" | |
a82a04b3 | 11266 | { |
f73dda09 JA |
11267 | #endif |
11268 | /* We use char because int might match the return type of a gcc2 | |
11269 | builtin and then its argument prototype would still apply. */ | |
11270 | char $ac_func (); | |
f73dda09 JA |
11271 | /* The GNU C library defines this for functions which it implements |
11272 | to always fail with ENOSYS. Some functions are actually named | |
11273 | something starting with __ and the normal name is an alias. */ | |
11274 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11275 | choke me | |
11276 | #else | |
a82a04b3 CR |
11277 | char (*f) () = $ac_func; |
11278 | #endif | |
11279 | #ifdef __cplusplus | |
11280 | } | |
f73dda09 JA |
11281 | #endif |
11282 | ||
a82a04b3 CR |
11283 | int |
11284 | main () | |
11285 | { | |
11286 | return f != $ac_func; | |
f73dda09 JA |
11287 | ; |
11288 | return 0; | |
11289 | } | |
11290 | _ACEOF | |
11291 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
11292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11293 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 11294 | ac_status=$? |
a82a04b3 CR |
11295 | grep -v '^ *+' conftest.er1 >conftest.err |
11296 | rm -f conftest.er1 | |
11297 | cat conftest.err >&5 | |
11298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 11299 | (exit $ac_status); } && |
a82a04b3 CR |
11300 | { ac_try='test -z "$ac_c_werror_flag" |
11301 | || test ! -s conftest.err' | |
11302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
11303 | (eval $ac_try) 2>&5 |
11304 | ac_status=$? | |
a82a04b3 CR |
11305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11306 | (exit $ac_status); }; } && | |
11307 | { ac_try='test -s conftest$ac_exeext' | |
11308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11309 | (eval $ac_try) 2>&5 | |
11310 | ac_status=$? | |
11311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
11312 | (exit $ac_status); }; }; then |
11313 | eval "$as_ac_var=yes" | |
11314 | else | |
11315 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
11316 | sed 's/^/| /' conftest.$ac_ext >&5 |
11317 | ||
f73dda09 JA |
11318 | eval "$as_ac_var=no" |
11319 | fi | |
a82a04b3 CR |
11320 | rm -f conftest.err conftest.$ac_objext \ |
11321 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 11322 | fi |
a82a04b3 | 11323 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
f73dda09 JA |
11324 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
11325 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a82a04b3 | 11326 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 11327 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a82a04b3 | 11328 | _ACEOF |
f73dda09 | 11329 | |
a82a04b3 | 11330 | echo "$as_me:$LINENO: checking for _doprnt" >&5 |
f73dda09 JA |
11331 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 |
11332 | if test "${ac_cv_func__doprnt+set}" = set; then | |
11333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11334 | else | |
11335 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
11336 | /* confdefs.h. */ |
11337 | _ACEOF | |
11338 | cat confdefs.h >>conftest.$ac_ext | |
11339 | cat >>conftest.$ac_ext <<_ACEOF | |
11340 | /* end confdefs.h. */ | |
11341 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
11342 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11343 | #define _doprnt innocuous__doprnt | |
11344 | ||
f73dda09 | 11345 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
11346 | which can conflict with char _doprnt (); below. |
11347 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11348 | <limits.h> exists even on freestanding compilers. */ | |
11349 | ||
11350 | #ifdef __STDC__ | |
11351 | # include <limits.h> | |
11352 | #else | |
11353 | # include <assert.h> | |
11354 | #endif | |
11355 | ||
11356 | #undef _doprnt | |
11357 | ||
ccc6cda3 | 11358 | /* Override any gcc2 internal prototype to avoid an error. */ |
f73dda09 JA |
11359 | #ifdef __cplusplus |
11360 | extern "C" | |
a82a04b3 | 11361 | { |
f73dda09 | 11362 | #endif |
ccc6cda3 | 11363 | /* We use char because int might match the return type of a gcc2 |
f73dda09 JA |
11364 | builtin and then its argument prototype would still apply. */ |
11365 | char _doprnt (); | |
f73dda09 JA |
11366 | /* The GNU C library defines this for functions which it implements |
11367 | to always fail with ENOSYS. Some functions are actually named | |
11368 | something starting with __ and the normal name is an alias. */ | |
11369 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
11370 | choke me | |
11371 | #else | |
a82a04b3 CR |
11372 | char (*f) () = _doprnt; |
11373 | #endif | |
11374 | #ifdef __cplusplus | |
11375 | } | |
f73dda09 JA |
11376 | #endif |
11377 | ||
a82a04b3 CR |
11378 | int |
11379 | main () | |
11380 | { | |
11381 | return f != _doprnt; | |
f73dda09 JA |
11382 | ; |
11383 | return 0; | |
11384 | } | |
11385 | _ACEOF | |
11386 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
11387 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11388 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 11389 | ac_status=$? |
a82a04b3 CR |
11390 | grep -v '^ *+' conftest.er1 >conftest.err |
11391 | rm -f conftest.er1 | |
11392 | cat conftest.err >&5 | |
11393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 11394 | (exit $ac_status); } && |
a82a04b3 CR |
11395 | { ac_try='test -z "$ac_c_werror_flag" |
11396 | || test ! -s conftest.err' | |
11397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11398 | (eval $ac_try) 2>&5 | |
11399 | ac_status=$? | |
11400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11401 | (exit $ac_status); }; } && | |
11402 | { ac_try='test -s conftest$ac_exeext' | |
11403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
11404 | (eval $ac_try) 2>&5 |
11405 | ac_status=$? | |
a82a04b3 | 11406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
11407 | (exit $ac_status); }; }; then |
11408 | ac_cv_func__doprnt=yes | |
11409 | else | |
11410 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
11411 | sed 's/^/| /' conftest.$ac_ext >&5 |
11412 | ||
f73dda09 JA |
11413 | ac_cv_func__doprnt=no |
11414 | fi | |
a82a04b3 CR |
11415 | rm -f conftest.err conftest.$ac_objext \ |
11416 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 11417 | fi |
a82a04b3 | 11418 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
f73dda09 JA |
11419 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6 |
11420 | if test $ac_cv_func__doprnt = yes; then | |
11421 | ||
a82a04b3 | 11422 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 11423 | #define HAVE_DOPRNT 1 |
a82a04b3 | 11424 | _ACEOF |
ccc6cda3 JA |
11425 | |
11426 | fi | |
f73dda09 | 11427 | |
ccc6cda3 | 11428 | fi |
f73dda09 | 11429 | done |
ccc6cda3 | 11430 | |
a82a04b3 CR |
11431 | |
11432 | echo "$as_me:$LINENO: checking for working strcoll" >&5 | |
f73dda09 JA |
11433 | echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6 |
11434 | if test "${ac_cv_func_strcoll_works+set}" = set; then | |
11435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 11436 | else |
f73dda09 JA |
11437 | if test "$cross_compiling" = yes; then |
11438 | ac_cv_func_strcoll_works=no | |
ccc6cda3 | 11439 | else |
f73dda09 | 11440 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
11441 | /* confdefs.h. */ |
11442 | _ACEOF | |
11443 | cat confdefs.h >>conftest.$ac_ext | |
11444 | cat >>conftest.$ac_ext <<_ACEOF | |
11445 | /* end confdefs.h. */ | |
f73dda09 JA |
11446 | $ac_includes_default |
11447 | int | |
11448 | main () | |
11449 | { | |
11450 | exit (strcoll ("abc", "def") >= 0 || | |
11451 | strcoll ("ABC", "DEF") >= 0 || | |
11452 | strcoll ("123", "456") >= 0) | |
11453 | ; | |
11454 | return 0; | |
11455 | } | |
11456 | _ACEOF | |
11457 | rm -f conftest$ac_exeext | |
a82a04b3 | 11458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
11459 | (eval $ac_link) 2>&5 |
11460 | ac_status=$? | |
a82a04b3 | 11461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 11462 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 11463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
11464 | (eval $ac_try) 2>&5 |
11465 | ac_status=$? | |
a82a04b3 | 11466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
11467 | (exit $ac_status); }; }; then |
11468 | ac_cv_func_strcoll_works=yes | |
ccc6cda3 | 11469 | else |
f73dda09 JA |
11470 | echo "$as_me: program exited with status $ac_status" >&5 |
11471 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
11472 | sed 's/^/| /' conftest.$ac_ext >&5 |
11473 | ||
11474 | ( exit $ac_status ) | |
f73dda09 | 11475 | ac_cv_func_strcoll_works=no |
ccc6cda3 | 11476 | fi |
a82a04b3 | 11477 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 11478 | fi |
f73dda09 | 11479 | fi |
a82a04b3 | 11480 | echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 |
f73dda09 JA |
11481 | echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6 |
11482 | if test $ac_cv_func_strcoll_works = yes; then | |
11483 | ||
a82a04b3 | 11484 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 11485 | #define HAVE_STRCOLL 1 |
a82a04b3 | 11486 | _ACEOF |
f73dda09 | 11487 | |
ccc6cda3 JA |
11488 | fi |
11489 | ||
a82a04b3 CR |
11490 | |
11491 | ||
f73dda09 JA |
11492 | if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then |
11493 | MALLOC_TARGET=alloca | |
11494 | MALLOC_SRC=alloca.c | |
11495 | ||
11496 | MALLOC_LIB='-lmalloc' | |
11497 | MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a' | |
11498 | MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)' | |
11499 | MALLOC_DEP='$(MALLOC_LIBRARY)' | |
ccc6cda3 JA |
11500 | fi |
11501 | ||
f73dda09 | 11502 | if test "$ac_cv_func_vprintf" = no; then |
a82a04b3 | 11503 | echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5 |
f73dda09 JA |
11504 | echo $ECHO_N "checking for declaration of vprintf in stdio.h... $ECHO_C" >&6 |
11505 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
11506 | /* confdefs.h. */ |
11507 | _ACEOF | |
11508 | cat confdefs.h >>conftest.$ac_ext | |
11509 | cat >>conftest.$ac_ext <<_ACEOF | |
11510 | /* end confdefs.h. */ | |
f73dda09 JA |
11511 | #include <stdio.h> |
11512 | ||
11513 | _ACEOF | |
11514 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
a82a04b3 | 11515 | $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then |
f73dda09 | 11516 | ac_cv_func_vprintf=yes |
ccc6cda3 JA |
11517 | fi |
11518 | rm -f conftest* | |
ccc6cda3 | 11519 | |
a82a04b3 | 11520 | echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5 |
f73dda09 JA |
11521 | echo "${ECHO_T}$ac_cv_func_vprintf" >&6 |
11522 | if test $ac_cv_func_vprintf = yes; then | |
a82a04b3 | 11523 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 11524 | #define HAVE_VPRINTF 1 |
a82a04b3 | 11525 | _ACEOF |
ccc6cda3 | 11526 | |
f73dda09 | 11527 | fi |
ccc6cda3 JA |
11528 | fi |
11529 | ||
f73dda09 | 11530 | if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then |
a82a04b3 CR |
11531 | case $LIBOBJS in |
11532 | "vprint.$ac_objext" | \ | |
11533 | *" vprint.$ac_objext" | \ | |
11534 | "vprint.$ac_objext "* | \ | |
11535 | *" vprint.$ac_objext "* ) ;; | |
11536 | *) LIBOBJS="$LIBOBJS vprint.$ac_objext" ;; | |
11537 | esac | |
11538 | ||
f73dda09 | 11539 | fi |
ccc6cda3 | 11540 | |
a82a04b3 | 11541 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
f73dda09 JA |
11542 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
11543 | if test "${ac_cv_type_signal+set}" = set; then | |
11544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 11545 | else |
f73dda09 | 11546 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
11547 | /* confdefs.h. */ |
11548 | _ACEOF | |
11549 | cat confdefs.h >>conftest.$ac_ext | |
11550 | cat >>conftest.$ac_ext <<_ACEOF | |
11551 | /* end confdefs.h. */ | |
f73dda09 JA |
11552 | #include <sys/types.h> |
11553 | #include <signal.h> | |
11554 | #ifdef signal | |
11555 | # undef signal | |
11556 | #endif | |
11557 | #ifdef __cplusplus | |
11558 | extern "C" void (*signal (int, void (*)(int)))(int); | |
11559 | #else | |
11560 | void (*signal ()) (); | |
11561 | #endif | |
11562 | ||
11563 | int | |
11564 | main () | |
11565 | { | |
11566 | int i; | |
11567 | ; | |
11568 | return 0; | |
11569 | } | |
11570 | _ACEOF | |
11571 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
11572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11573 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 11574 | ac_status=$? |
a82a04b3 CR |
11575 | grep -v '^ *+' conftest.er1 >conftest.err |
11576 | rm -f conftest.er1 | |
11577 | cat conftest.err >&5 | |
11578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 11579 | (exit $ac_status); } && |
a82a04b3 CR |
11580 | { ac_try='test -z "$ac_c_werror_flag" |
11581 | || test ! -s conftest.err' | |
11582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11583 | (eval $ac_try) 2>&5 | |
11584 | ac_status=$? | |
11585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11586 | (exit $ac_status); }; } && | |
11587 | { ac_try='test -s conftest.$ac_objext' | |
11588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
11589 | (eval $ac_try) 2>&5 |
11590 | ac_status=$? | |
a82a04b3 | 11591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
11592 | (exit $ac_status); }; }; then |
11593 | ac_cv_type_signal=void | |
ccc6cda3 | 11594 | else |
f73dda09 | 11595 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
11596 | sed 's/^/| /' conftest.$ac_ext >&5 |
11597 | ||
f73dda09 | 11598 | ac_cv_type_signal=int |
ccc6cda3 | 11599 | fi |
a82a04b3 | 11600 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 11601 | fi |
a82a04b3 | 11602 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
e624d0f7 | 11603 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
ccc6cda3 | 11604 | |
a82a04b3 | 11605 | cat >>confdefs.h <<_ACEOF |
e624d0f7 | 11606 | #define RETSIGTYPE $ac_cv_type_signal |
a82a04b3 CR |
11607 | _ACEOF |
11608 | ||
545f34cf | 11609 | |
a82a04b3 CR |
11610 | |
11611 | echo "$as_me:$LINENO: checking for __setostype" >&5 | |
f73dda09 JA |
11612 | echo $ECHO_N "checking for __setostype... $ECHO_C" >&6 |
11613 | if test "${ac_cv_func___setostype+set}" = set; then | |
11614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 11615 | else |
f73dda09 | 11616 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
11617 | /* confdefs.h. */ |
11618 | _ACEOF | |
11619 | cat confdefs.h >>conftest.$ac_ext | |
11620 | cat >>conftest.$ac_ext <<_ACEOF | |
11621 | /* end confdefs.h. */ | |
11622 | /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype. | |
11623 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11624 | #define __setostype innocuous___setostype | |
11625 | ||
f73dda09 | 11626 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
11627 | which can conflict with char __setostype (); below. |
11628 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11629 | <limits.h> exists even on freestanding compilers. */ | |
11630 | ||
11631 | #ifdef __STDC__ | |
11632 | # include <limits.h> | |
11633 | #else | |
11634 | # include <assert.h> | |
11635 | #endif | |
11636 | ||
11637 | #undef __setostype | |
11638 | ||
f73dda09 JA |
11639 | /* Override any gcc2 internal prototype to avoid an error. */ |
11640 | #ifdef __cplusplus | |
11641 | extern "C" | |
a82a04b3 | 11642 | { |
f73dda09 JA |
11643 | #endif |
11644 | /* We use char because int might match the return type of a gcc2 | |
11645 | builtin and then its argument prototype would still apply. */ | |
11646 | char __setostype (); | |
f73dda09 JA |
11647 | /* The GNU C library defines this for functions which it implements |
11648 | to always fail with ENOSYS. Some functions are actually named | |
11649 | something starting with __ and the normal name is an alias. */ | |
11650 | #if defined (__stub___setostype) || defined (__stub_____setostype) | |
11651 | choke me | |
11652 | #else | |
a82a04b3 CR |
11653 | char (*f) () = __setostype; |
11654 | #endif | |
11655 | #ifdef __cplusplus | |
11656 | } | |
f73dda09 JA |
11657 | #endif |
11658 | ||
a82a04b3 CR |
11659 | int |
11660 | main () | |
11661 | { | |
11662 | return f != __setostype; | |
f73dda09 JA |
11663 | ; |
11664 | return 0; | |
11665 | } | |
11666 | _ACEOF | |
11667 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
11668 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11669 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 11670 | ac_status=$? |
a82a04b3 CR |
11671 | grep -v '^ *+' conftest.er1 >conftest.err |
11672 | rm -f conftest.er1 | |
11673 | cat conftest.err >&5 | |
11674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 11675 | (exit $ac_status); } && |
a82a04b3 CR |
11676 | { ac_try='test -z "$ac_c_werror_flag" |
11677 | || test ! -s conftest.err' | |
11678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11679 | (eval $ac_try) 2>&5 | |
11680 | ac_status=$? | |
11681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11682 | (exit $ac_status); }; } && | |
11683 | { ac_try='test -s conftest$ac_exeext' | |
11684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
11685 | (eval $ac_try) 2>&5 |
11686 | ac_status=$? | |
a82a04b3 | 11687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
11688 | (exit $ac_status); }; }; then |
11689 | ac_cv_func___setostype=yes | |
11690 | else | |
11691 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
11692 | sed 's/^/| /' conftest.$ac_ext >&5 |
11693 | ||
f73dda09 JA |
11694 | ac_cv_func___setostype=no |
11695 | fi | |
a82a04b3 CR |
11696 | rm -f conftest.err conftest.$ac_objext \ |
11697 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 11698 | fi |
a82a04b3 | 11699 | echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5 |
f73dda09 JA |
11700 | echo "${ECHO_T}$ac_cv_func___setostype" >&6 |
11701 | if test $ac_cv_func___setostype = yes; then | |
a82a04b3 | 11702 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 11703 | #define HAVE_SETOSTYPE 1 |
a82a04b3 | 11704 | _ACEOF |
f73dda09 JA |
11705 | |
11706 | fi | |
11707 | ||
a82a04b3 | 11708 | echo "$as_me:$LINENO: checking for wait3" >&5 |
f73dda09 JA |
11709 | echo $ECHO_N "checking for wait3... $ECHO_C" >&6 |
11710 | if test "${ac_cv_func_wait3+set}" = set; then | |
11711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11712 | else | |
11713 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
11714 | /* confdefs.h. */ |
11715 | _ACEOF | |
11716 | cat confdefs.h >>conftest.$ac_ext | |
11717 | cat >>conftest.$ac_ext <<_ACEOF | |
11718 | /* end confdefs.h. */ | |
11719 | /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3. | |
11720 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11721 | #define wait3 innocuous_wait3 | |
11722 | ||
f73dda09 | 11723 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
11724 | which can conflict with char wait3 (); below. |
11725 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11726 | <limits.h> exists even on freestanding compilers. */ | |
11727 | ||
11728 | #ifdef __STDC__ | |
11729 | # include <limits.h> | |
11730 | #else | |
11731 | # include <assert.h> | |
11732 | #endif | |
11733 | ||
11734 | #undef wait3 | |
11735 | ||
f73dda09 JA |
11736 | /* Override any gcc2 internal prototype to avoid an error. */ |
11737 | #ifdef __cplusplus | |
11738 | extern "C" | |
a82a04b3 | 11739 | { |
f73dda09 JA |
11740 | #endif |
11741 | /* We use char because int might match the return type of a gcc2 | |
11742 | builtin and then its argument prototype would still apply. */ | |
11743 | char wait3 (); | |
f73dda09 JA |
11744 | /* The GNU C library defines this for functions which it implements |
11745 | to always fail with ENOSYS. Some functions are actually named | |
11746 | something starting with __ and the normal name is an alias. */ | |
11747 | #if defined (__stub_wait3) || defined (__stub___wait3) | |
11748 | choke me | |
11749 | #else | |
a82a04b3 CR |
11750 | char (*f) () = wait3; |
11751 | #endif | |
11752 | #ifdef __cplusplus | |
11753 | } | |
f73dda09 JA |
11754 | #endif |
11755 | ||
a82a04b3 CR |
11756 | int |
11757 | main () | |
11758 | { | |
11759 | return f != wait3; | |
f73dda09 JA |
11760 | ; |
11761 | return 0; | |
11762 | } | |
11763 | _ACEOF | |
11764 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
11765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11766 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 11767 | ac_status=$? |
a82a04b3 CR |
11768 | grep -v '^ *+' conftest.er1 >conftest.err |
11769 | rm -f conftest.er1 | |
11770 | cat conftest.err >&5 | |
11771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 11772 | (exit $ac_status); } && |
a82a04b3 CR |
11773 | { ac_try='test -z "$ac_c_werror_flag" |
11774 | || test ! -s conftest.err' | |
11775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11776 | (eval $ac_try) 2>&5 | |
11777 | ac_status=$? | |
11778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11779 | (exit $ac_status); }; } && | |
11780 | { ac_try='test -s conftest$ac_exeext' | |
11781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
11782 | (eval $ac_try) 2>&5 |
11783 | ac_status=$? | |
a82a04b3 | 11784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
11785 | (exit $ac_status); }; }; then |
11786 | ac_cv_func_wait3=yes | |
11787 | else | |
11788 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
11789 | sed 's/^/| /' conftest.$ac_ext >&5 |
11790 | ||
f73dda09 JA |
11791 | ac_cv_func_wait3=no |
11792 | fi | |
a82a04b3 CR |
11793 | rm -f conftest.err conftest.$ac_objext \ |
11794 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 11795 | fi |
a82a04b3 | 11796 | echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5 |
f73dda09 JA |
11797 | echo "${ECHO_T}$ac_cv_func_wait3" >&6 |
11798 | if test $ac_cv_func_wait3 = yes; then | |
a82a04b3 | 11799 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 11800 | #define HAVE_WAIT3 1 |
a82a04b3 | 11801 | _ACEOF |
f73dda09 JA |
11802 | |
11803 | fi | |
11804 | ||
a82a04b3 | 11805 | echo "$as_me:$LINENO: checking for isinf" >&5 |
7117c2d2 JA |
11806 | echo $ECHO_N "checking for isinf... $ECHO_C" >&6 |
11807 | if test "${ac_cv_func_isinf+set}" = set; then | |
11808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11809 | else | |
11810 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
11811 | /* confdefs.h. */ |
11812 | _ACEOF | |
11813 | cat confdefs.h >>conftest.$ac_ext | |
11814 | cat >>conftest.$ac_ext <<_ACEOF | |
11815 | /* end confdefs.h. */ | |
11816 | /* Define isinf to an innocuous variant, in case <limits.h> declares isinf. | |
11817 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11818 | #define isinf innocuous_isinf | |
11819 | ||
7117c2d2 | 11820 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
11821 | which can conflict with char isinf (); below. |
11822 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11823 | <limits.h> exists even on freestanding compilers. */ | |
11824 | ||
11825 | #ifdef __STDC__ | |
11826 | # include <limits.h> | |
11827 | #else | |
11828 | # include <assert.h> | |
11829 | #endif | |
11830 | ||
11831 | #undef isinf | |
11832 | ||
7117c2d2 JA |
11833 | /* Override any gcc2 internal prototype to avoid an error. */ |
11834 | #ifdef __cplusplus | |
11835 | extern "C" | |
a82a04b3 | 11836 | { |
7117c2d2 JA |
11837 | #endif |
11838 | /* We use char because int might match the return type of a gcc2 | |
11839 | builtin and then its argument prototype would still apply. */ | |
11840 | char isinf (); | |
7117c2d2 JA |
11841 | /* The GNU C library defines this for functions which it implements |
11842 | to always fail with ENOSYS. Some functions are actually named | |
11843 | something starting with __ and the normal name is an alias. */ | |
11844 | #if defined (__stub_isinf) || defined (__stub___isinf) | |
11845 | choke me | |
11846 | #else | |
a82a04b3 CR |
11847 | char (*f) () = isinf; |
11848 | #endif | |
11849 | #ifdef __cplusplus | |
11850 | } | |
7117c2d2 JA |
11851 | #endif |
11852 | ||
a82a04b3 CR |
11853 | int |
11854 | main () | |
11855 | { | |
11856 | return f != isinf; | |
7117c2d2 JA |
11857 | ; |
11858 | return 0; | |
11859 | } | |
11860 | _ACEOF | |
11861 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
11862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11863 | (eval $ac_link) 2>conftest.er1 | |
7117c2d2 | 11864 | ac_status=$? |
a82a04b3 CR |
11865 | grep -v '^ *+' conftest.er1 >conftest.err |
11866 | rm -f conftest.er1 | |
11867 | cat conftest.err >&5 | |
11868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7117c2d2 | 11869 | (exit $ac_status); } && |
a82a04b3 CR |
11870 | { ac_try='test -z "$ac_c_werror_flag" |
11871 | || test ! -s conftest.err' | |
11872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7117c2d2 JA |
11873 | (eval $ac_try) 2>&5 |
11874 | ac_status=$? | |
a82a04b3 CR |
11875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11876 | (exit $ac_status); }; } && | |
11877 | { ac_try='test -s conftest$ac_exeext' | |
11878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11879 | (eval $ac_try) 2>&5 | |
11880 | ac_status=$? | |
11881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7117c2d2 JA |
11882 | (exit $ac_status); }; }; then |
11883 | ac_cv_func_isinf=yes | |
11884 | else | |
11885 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
11886 | sed 's/^/| /' conftest.$ac_ext >&5 |
11887 | ||
7117c2d2 JA |
11888 | ac_cv_func_isinf=no |
11889 | fi | |
a82a04b3 CR |
11890 | rm -f conftest.err conftest.$ac_objext \ |
11891 | conftest$ac_exeext conftest.$ac_ext | |
7117c2d2 | 11892 | fi |
a82a04b3 | 11893 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5 |
7117c2d2 JA |
11894 | echo "${ECHO_T}$ac_cv_func_isinf" >&6 |
11895 | if test $ac_cv_func_isinf = yes; then | |
a82a04b3 | 11896 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 11897 | #define HAVE_ISINF_IN_LIBC 1 |
a82a04b3 | 11898 | _ACEOF |
7117c2d2 JA |
11899 | |
11900 | fi | |
11901 | ||
a82a04b3 CR |
11902 | |
11903 | echo "$as_me:$LINENO: checking for mkfifo" >&5 | |
f73dda09 JA |
11904 | echo $ECHO_N "checking for mkfifo... $ECHO_C" >&6 |
11905 | if test "${ac_cv_func_mkfifo+set}" = set; then | |
11906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11907 | else | |
11908 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
11909 | /* confdefs.h. */ |
11910 | _ACEOF | |
11911 | cat confdefs.h >>conftest.$ac_ext | |
11912 | cat >>conftest.$ac_ext <<_ACEOF | |
11913 | /* end confdefs.h. */ | |
11914 | /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo. | |
11915 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11916 | #define mkfifo innocuous_mkfifo | |
11917 | ||
f73dda09 | 11918 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
11919 | which can conflict with char mkfifo (); below. |
11920 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11921 | <limits.h> exists even on freestanding compilers. */ | |
11922 | ||
11923 | #ifdef __STDC__ | |
11924 | # include <limits.h> | |
11925 | #else | |
11926 | # include <assert.h> | |
11927 | #endif | |
11928 | ||
11929 | #undef mkfifo | |
11930 | ||
f73dda09 JA |
11931 | /* Override any gcc2 internal prototype to avoid an error. */ |
11932 | #ifdef __cplusplus | |
11933 | extern "C" | |
a82a04b3 | 11934 | { |
f73dda09 JA |
11935 | #endif |
11936 | /* We use char because int might match the return type of a gcc2 | |
11937 | builtin and then its argument prototype would still apply. */ | |
11938 | char mkfifo (); | |
f73dda09 JA |
11939 | /* The GNU C library defines this for functions which it implements |
11940 | to always fail with ENOSYS. Some functions are actually named | |
11941 | something starting with __ and the normal name is an alias. */ | |
11942 | #if defined (__stub_mkfifo) || defined (__stub___mkfifo) | |
11943 | choke me | |
11944 | #else | |
a82a04b3 CR |
11945 | char (*f) () = mkfifo; |
11946 | #endif | |
11947 | #ifdef __cplusplus | |
11948 | } | |
f73dda09 JA |
11949 | #endif |
11950 | ||
a82a04b3 CR |
11951 | int |
11952 | main () | |
11953 | { | |
11954 | return f != mkfifo; | |
f73dda09 JA |
11955 | ; |
11956 | return 0; | |
11957 | } | |
11958 | _ACEOF | |
11959 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
11960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11961 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 11962 | ac_status=$? |
a82a04b3 CR |
11963 | grep -v '^ *+' conftest.er1 >conftest.err |
11964 | rm -f conftest.er1 | |
11965 | cat conftest.err >&5 | |
11966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 11967 | (exit $ac_status); } && |
a82a04b3 CR |
11968 | { ac_try='test -z "$ac_c_werror_flag" |
11969 | || test ! -s conftest.err' | |
11970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11971 | (eval $ac_try) 2>&5 | |
11972 | ac_status=$? | |
11973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11974 | (exit $ac_status); }; } && | |
11975 | { ac_try='test -s conftest$ac_exeext' | |
11976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
11977 | (eval $ac_try) 2>&5 |
11978 | ac_status=$? | |
a82a04b3 | 11979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
11980 | (exit $ac_status); }; }; then |
11981 | ac_cv_func_mkfifo=yes | |
11982 | else | |
11983 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
11984 | sed 's/^/| /' conftest.$ac_ext >&5 |
11985 | ||
f73dda09 JA |
11986 | ac_cv_func_mkfifo=no |
11987 | fi | |
a82a04b3 CR |
11988 | rm -f conftest.err conftest.$ac_objext \ |
11989 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 11990 | fi |
a82a04b3 | 11991 | echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5 |
f73dda09 JA |
11992 | echo "${ECHO_T}$ac_cv_func_mkfifo" >&6 |
11993 | if test $ac_cv_func_mkfifo = yes; then | |
a82a04b3 | 11994 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 11995 | #define HAVE_MKFIFO 1 |
a82a04b3 | 11996 | _ACEOF |
f73dda09 JA |
11997 | |
11998 | else | |
a82a04b3 | 11999 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 12000 | #define MKFIFO_MISSING 1 |
a82a04b3 | 12001 | _ACEOF |
f73dda09 JA |
12002 | |
12003 | fi | |
12004 | ||
a82a04b3 CR |
12005 | |
12006 | ||
12007 | ||
12008 | ||
12009 | ||
12010 | ||
12011 | ||
12012 | ||
12013 | ||
12014 | ||
12015 | ||
12016 | ||
12017 | ||
12018 | ||
12019 | ||
12020 | ||
12021 | ||
12022 | ||
9607141c CR |
12023 | |
12024 | ||
12025 | ||
12026 | ||
12027 | for ac_func in dup2 fcntl getdtablesize getgroups gethostname getpagesize \ | |
12028 | getpeername getrlimit getrusage gettimeofday kill killpg \ | |
12029 | lstat readlink sbrk select setdtablesize tcgetpgrp uname \ | |
12030 | ulimit waitpid | |
f73dda09 JA |
12031 | do |
12032 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a82a04b3 | 12033 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
f73dda09 JA |
12034 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12035 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12037 | else | |
12038 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
12039 | /* confdefs.h. */ |
12040 | _ACEOF | |
12041 | cat confdefs.h >>conftest.$ac_ext | |
12042 | cat >>conftest.$ac_ext <<_ACEOF | |
12043 | /* end confdefs.h. */ | |
12044 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12045 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12046 | #define $ac_func innocuous_$ac_func | |
12047 | ||
f73dda09 | 12048 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
12049 | which can conflict with char $ac_func (); below. |
12050 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12051 | <limits.h> exists even on freestanding compilers. */ | |
12052 | ||
12053 | #ifdef __STDC__ | |
12054 | # include <limits.h> | |
12055 | #else | |
12056 | # include <assert.h> | |
12057 | #endif | |
12058 | ||
12059 | #undef $ac_func | |
12060 | ||
f73dda09 JA |
12061 | /* Override any gcc2 internal prototype to avoid an error. */ |
12062 | #ifdef __cplusplus | |
12063 | extern "C" | |
a82a04b3 | 12064 | { |
f73dda09 JA |
12065 | #endif |
12066 | /* We use char because int might match the return type of a gcc2 | |
12067 | builtin and then its argument prototype would still apply. */ | |
12068 | char $ac_func (); | |
f73dda09 JA |
12069 | /* The GNU C library defines this for functions which it implements |
12070 | to always fail with ENOSYS. Some functions are actually named | |
12071 | something starting with __ and the normal name is an alias. */ | |
12072 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12073 | choke me | |
12074 | #else | |
a82a04b3 CR |
12075 | char (*f) () = $ac_func; |
12076 | #endif | |
12077 | #ifdef __cplusplus | |
12078 | } | |
f73dda09 JA |
12079 | #endif |
12080 | ||
a82a04b3 CR |
12081 | int |
12082 | main () | |
12083 | { | |
12084 | return f != $ac_func; | |
f73dda09 JA |
12085 | ; |
12086 | return 0; | |
12087 | } | |
12088 | _ACEOF | |
12089 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
12090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12091 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 12092 | ac_status=$? |
a82a04b3 CR |
12093 | grep -v '^ *+' conftest.er1 >conftest.err |
12094 | rm -f conftest.er1 | |
12095 | cat conftest.err >&5 | |
12096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 12097 | (exit $ac_status); } && |
a82a04b3 CR |
12098 | { ac_try='test -z "$ac_c_werror_flag" |
12099 | || test ! -s conftest.err' | |
12100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12101 | (eval $ac_try) 2>&5 | |
12102 | ac_status=$? | |
12103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12104 | (exit $ac_status); }; } && | |
12105 | { ac_try='test -s conftest$ac_exeext' | |
12106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
12107 | (eval $ac_try) 2>&5 |
12108 | ac_status=$? | |
a82a04b3 | 12109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
12110 | (exit $ac_status); }; }; then |
12111 | eval "$as_ac_var=yes" | |
12112 | else | |
12113 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
12114 | sed 's/^/| /' conftest.$ac_ext >&5 |
12115 | ||
f73dda09 JA |
12116 | eval "$as_ac_var=no" |
12117 | fi | |
a82a04b3 CR |
12118 | rm -f conftest.err conftest.$ac_objext \ |
12119 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 12120 | fi |
a82a04b3 | 12121 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
f73dda09 JA |
12122 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12123 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a82a04b3 | 12124 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 12125 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a82a04b3 | 12126 | _ACEOF |
f73dda09 JA |
12127 | |
12128 | fi | |
12129 | done | |
12130 | ||
a82a04b3 | 12131 | |
f73dda09 JA |
12132 | for ac_func in rename |
12133 | do | |
12134 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a82a04b3 | 12135 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
f73dda09 JA |
12136 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12137 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12139 | else | |
12140 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
12141 | /* confdefs.h. */ |
12142 | _ACEOF | |
12143 | cat confdefs.h >>conftest.$ac_ext | |
12144 | cat >>conftest.$ac_ext <<_ACEOF | |
12145 | /* end confdefs.h. */ | |
12146 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12147 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12148 | #define $ac_func innocuous_$ac_func | |
12149 | ||
f73dda09 | 12150 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
12151 | which can conflict with char $ac_func (); below. |
12152 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12153 | <limits.h> exists even on freestanding compilers. */ | |
12154 | ||
12155 | #ifdef __STDC__ | |
12156 | # include <limits.h> | |
12157 | #else | |
12158 | # include <assert.h> | |
12159 | #endif | |
12160 | ||
12161 | #undef $ac_func | |
12162 | ||
f73dda09 JA |
12163 | /* Override any gcc2 internal prototype to avoid an error. */ |
12164 | #ifdef __cplusplus | |
12165 | extern "C" | |
a82a04b3 | 12166 | { |
f73dda09 JA |
12167 | #endif |
12168 | /* We use char because int might match the return type of a gcc2 | |
12169 | builtin and then its argument prototype would still apply. */ | |
12170 | char $ac_func (); | |
f73dda09 JA |
12171 | /* The GNU C library defines this for functions which it implements |
12172 | to always fail with ENOSYS. Some functions are actually named | |
12173 | something starting with __ and the normal name is an alias. */ | |
12174 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12175 | choke me | |
12176 | #else | |
a82a04b3 CR |
12177 | char (*f) () = $ac_func; |
12178 | #endif | |
12179 | #ifdef __cplusplus | |
12180 | } | |
f73dda09 JA |
12181 | #endif |
12182 | ||
a82a04b3 CR |
12183 | int |
12184 | main () | |
12185 | { | |
12186 | return f != $ac_func; | |
f73dda09 JA |
12187 | ; |
12188 | return 0; | |
12189 | } | |
12190 | _ACEOF | |
12191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
12192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12193 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 12194 | ac_status=$? |
a82a04b3 CR |
12195 | grep -v '^ *+' conftest.er1 >conftest.err |
12196 | rm -f conftest.er1 | |
12197 | cat conftest.err >&5 | |
12198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 12199 | (exit $ac_status); } && |
a82a04b3 CR |
12200 | { ac_try='test -z "$ac_c_werror_flag" |
12201 | || test ! -s conftest.err' | |
12202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
12203 | (eval $ac_try) 2>&5 |
12204 | ac_status=$? | |
a82a04b3 CR |
12205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12206 | (exit $ac_status); }; } && | |
12207 | { ac_try='test -s conftest$ac_exeext' | |
12208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12209 | (eval $ac_try) 2>&5 | |
12210 | ac_status=$? | |
12211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
12212 | (exit $ac_status); }; }; then |
12213 | eval "$as_ac_var=yes" | |
12214 | else | |
12215 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
12216 | sed 's/^/| /' conftest.$ac_ext >&5 |
12217 | ||
f73dda09 JA |
12218 | eval "$as_ac_var=no" |
12219 | fi | |
a82a04b3 CR |
12220 | rm -f conftest.err conftest.$ac_objext \ |
12221 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 12222 | fi |
a82a04b3 | 12223 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
f73dda09 JA |
12224 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12225 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a82a04b3 | 12226 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 12227 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a82a04b3 | 12228 | _ACEOF |
f73dda09 JA |
12229 | |
12230 | else | |
a82a04b3 CR |
12231 | case $LIBOBJS in |
12232 | "$ac_func.$ac_objext" | \ | |
12233 | *" $ac_func.$ac_objext" | \ | |
12234 | "$ac_func.$ac_objext "* | \ | |
12235 | *" $ac_func.$ac_objext "* ) ;; | |
12236 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; | |
12237 | esac | |
12238 | ||
f73dda09 JA |
12239 | fi |
12240 | done | |
12241 | ||
a82a04b3 CR |
12242 | |
12243 | ||
12244 | ||
12245 | ||
12246 | ||
12247 | ||
12248 | ||
12249 | ||
12250 | ||
12251 | ||
12252 | ||
12253 | ||
12254 | ||
12255 | ||
12256 | ||
12257 | ||
12258 | ||
12259 | ||
12260 | ||
12261 | ||
12262 | ||
12263 | ||
12264 | ||
12265 | ||
12266 | ||
12267 | ||
12268 | ||
12269 | ||
12270 | ||
9607141c CR |
12271 | for ac_func in bcopy bzero confstr fnmatch \ |
12272 | getaddrinfo gethostbyname getservbyname getservent inet_aton \ | |
12273 | memmove pathconf putenv raise regcomp regexec \ | |
12274 | setenv setlinebuf setlocale setvbuf siginterrupt strchr \ | |
12275 | sysconf tcgetattr times ttyname tzset unsetenv | |
12276 | do | |
12277 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12278 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12279 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
12280 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12282 | else | |
12283 | cat >conftest.$ac_ext <<_ACEOF | |
12284 | /* confdefs.h. */ | |
12285 | _ACEOF | |
12286 | cat confdefs.h >>conftest.$ac_ext | |
12287 | cat >>conftest.$ac_ext <<_ACEOF | |
12288 | /* end confdefs.h. */ | |
12289 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12290 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12291 | #define $ac_func innocuous_$ac_func | |
12292 | ||
12293 | /* System header to define __stub macros and hopefully few prototypes, | |
12294 | which can conflict with char $ac_func (); below. | |
12295 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12296 | <limits.h> exists even on freestanding compilers. */ | |
12297 | ||
12298 | #ifdef __STDC__ | |
12299 | # include <limits.h> | |
12300 | #else | |
12301 | # include <assert.h> | |
12302 | #endif | |
12303 | ||
12304 | #undef $ac_func | |
12305 | ||
12306 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12307 | #ifdef __cplusplus | |
12308 | extern "C" | |
12309 | { | |
12310 | #endif | |
12311 | /* We use char because int might match the return type of a gcc2 | |
12312 | builtin and then its argument prototype would still apply. */ | |
12313 | char $ac_func (); | |
12314 | /* The GNU C library defines this for functions which it implements | |
12315 | to always fail with ENOSYS. Some functions are actually named | |
12316 | something starting with __ and the normal name is an alias. */ | |
12317 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12318 | choke me | |
12319 | #else | |
12320 | char (*f) () = $ac_func; | |
12321 | #endif | |
12322 | #ifdef __cplusplus | |
12323 | } | |
12324 | #endif | |
a82a04b3 | 12325 | |
9607141c CR |
12326 | int |
12327 | main () | |
12328 | { | |
12329 | return f != $ac_func; | |
12330 | ; | |
12331 | return 0; | |
12332 | } | |
12333 | _ACEOF | |
12334 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12335 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12336 | (eval $ac_link) 2>conftest.er1 | |
12337 | ac_status=$? | |
12338 | grep -v '^ *+' conftest.er1 >conftest.err | |
12339 | rm -f conftest.er1 | |
12340 | cat conftest.err >&5 | |
12341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12342 | (exit $ac_status); } && | |
12343 | { ac_try='test -z "$ac_c_werror_flag" | |
12344 | || test ! -s conftest.err' | |
12345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12346 | (eval $ac_try) 2>&5 | |
12347 | ac_status=$? | |
12348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12349 | (exit $ac_status); }; } && | |
12350 | { ac_try='test -s conftest$ac_exeext' | |
12351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12352 | (eval $ac_try) 2>&5 | |
12353 | ac_status=$? | |
12354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12355 | (exit $ac_status); }; }; then | |
12356 | eval "$as_ac_var=yes" | |
12357 | else | |
12358 | echo "$as_me: failed program was:" >&5 | |
12359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a82a04b3 | 12360 | |
9607141c CR |
12361 | eval "$as_ac_var=no" |
12362 | fi | |
12363 | rm -f conftest.err conftest.$ac_objext \ | |
12364 | conftest$ac_exeext conftest.$ac_ext | |
12365 | fi | |
12366 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
12367 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
12368 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
12369 | cat >>confdefs.h <<_ACEOF | |
12370 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12371 | _ACEOF | |
a82a04b3 | 12372 | |
9607141c CR |
12373 | fi |
12374 | done | |
a82a04b3 CR |
12375 | |
12376 | ||
12377 | ||
9607141c CR |
12378 | |
12379 | ||
12380 | ||
12381 | for ac_func in vsnprintf snprintf vasprintf asprintf | |
f73dda09 JA |
12382 | do |
12383 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a82a04b3 | 12384 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
f73dda09 JA |
12385 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12386 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12388 | else | |
12389 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
12390 | /* confdefs.h. */ |
12391 | _ACEOF | |
12392 | cat confdefs.h >>conftest.$ac_ext | |
12393 | cat >>conftest.$ac_ext <<_ACEOF | |
12394 | /* end confdefs.h. */ | |
12395 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12396 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12397 | #define $ac_func innocuous_$ac_func | |
12398 | ||
f73dda09 | 12399 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
12400 | which can conflict with char $ac_func (); below. |
12401 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12402 | <limits.h> exists even on freestanding compilers. */ | |
12403 | ||
12404 | #ifdef __STDC__ | |
12405 | # include <limits.h> | |
12406 | #else | |
12407 | # include <assert.h> | |
12408 | #endif | |
12409 | ||
12410 | #undef $ac_func | |
12411 | ||
f73dda09 JA |
12412 | /* Override any gcc2 internal prototype to avoid an error. */ |
12413 | #ifdef __cplusplus | |
12414 | extern "C" | |
a82a04b3 | 12415 | { |
f73dda09 JA |
12416 | #endif |
12417 | /* We use char because int might match the return type of a gcc2 | |
12418 | builtin and then its argument prototype would still apply. */ | |
12419 | char $ac_func (); | |
f73dda09 JA |
12420 | /* The GNU C library defines this for functions which it implements |
12421 | to always fail with ENOSYS. Some functions are actually named | |
12422 | something starting with __ and the normal name is an alias. */ | |
12423 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12424 | choke me | |
12425 | #else | |
a82a04b3 CR |
12426 | char (*f) () = $ac_func; |
12427 | #endif | |
12428 | #ifdef __cplusplus | |
12429 | } | |
f73dda09 JA |
12430 | #endif |
12431 | ||
a82a04b3 CR |
12432 | int |
12433 | main () | |
12434 | { | |
12435 | return f != $ac_func; | |
f73dda09 JA |
12436 | ; |
12437 | return 0; | |
12438 | } | |
12439 | _ACEOF | |
12440 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
12441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12442 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 12443 | ac_status=$? |
a82a04b3 CR |
12444 | grep -v '^ *+' conftest.er1 >conftest.err |
12445 | rm -f conftest.er1 | |
12446 | cat conftest.err >&5 | |
12447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 12448 | (exit $ac_status); } && |
a82a04b3 CR |
12449 | { ac_try='test -z "$ac_c_werror_flag" |
12450 | || test ! -s conftest.err' | |
12451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12452 | (eval $ac_try) 2>&5 | |
12453 | ac_status=$? | |
12454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12455 | (exit $ac_status); }; } && | |
12456 | { ac_try='test -s conftest$ac_exeext' | |
12457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
12458 | (eval $ac_try) 2>&5 |
12459 | ac_status=$? | |
a82a04b3 | 12460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
12461 | (exit $ac_status); }; }; then |
12462 | eval "$as_ac_var=yes" | |
12463 | else | |
12464 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
12465 | sed 's/^/| /' conftest.$ac_ext >&5 |
12466 | ||
f73dda09 JA |
12467 | eval "$as_ac_var=no" |
12468 | fi | |
a82a04b3 CR |
12469 | rm -f conftest.err conftest.$ac_objext \ |
12470 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 12471 | fi |
a82a04b3 | 12472 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
f73dda09 JA |
12473 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12474 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a82a04b3 | 12475 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 12476 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a82a04b3 | 12477 | _ACEOF |
f73dda09 JA |
12478 | |
12479 | fi | |
12480 | done | |
12481 | ||
a82a04b3 CR |
12482 | |
12483 | ||
12484 | ||
12485 | ||
12486 | ||
12487 | ||
f73dda09 JA |
12488 | for ac_func in isascii isblank isgraph isprint isspace isxdigit |
12489 | do | |
12490 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a82a04b3 | 12491 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
f73dda09 JA |
12492 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12493 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12495 | else | |
12496 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
12497 | /* confdefs.h. */ |
12498 | _ACEOF | |
12499 | cat confdefs.h >>conftest.$ac_ext | |
12500 | cat >>conftest.$ac_ext <<_ACEOF | |
12501 | /* end confdefs.h. */ | |
12502 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12503 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12504 | #define $ac_func innocuous_$ac_func | |
12505 | ||
f73dda09 | 12506 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
12507 | which can conflict with char $ac_func (); below. |
12508 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12509 | <limits.h> exists even on freestanding compilers. */ | |
12510 | ||
12511 | #ifdef __STDC__ | |
12512 | # include <limits.h> | |
12513 | #else | |
12514 | # include <assert.h> | |
12515 | #endif | |
12516 | ||
12517 | #undef $ac_func | |
12518 | ||
f73dda09 JA |
12519 | /* Override any gcc2 internal prototype to avoid an error. */ |
12520 | #ifdef __cplusplus | |
12521 | extern "C" | |
a82a04b3 | 12522 | { |
f73dda09 JA |
12523 | #endif |
12524 | /* We use char because int might match the return type of a gcc2 | |
12525 | builtin and then its argument prototype would still apply. */ | |
12526 | char $ac_func (); | |
f73dda09 JA |
12527 | /* The GNU C library defines this for functions which it implements |
12528 | to always fail with ENOSYS. Some functions are actually named | |
12529 | something starting with __ and the normal name is an alias. */ | |
12530 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12531 | choke me | |
12532 | #else | |
a82a04b3 CR |
12533 | char (*f) () = $ac_func; |
12534 | #endif | |
12535 | #ifdef __cplusplus | |
12536 | } | |
f73dda09 JA |
12537 | #endif |
12538 | ||
a82a04b3 CR |
12539 | int |
12540 | main () | |
12541 | { | |
12542 | return f != $ac_func; | |
f73dda09 JA |
12543 | ; |
12544 | return 0; | |
12545 | } | |
12546 | _ACEOF | |
12547 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
12548 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12549 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 12550 | ac_status=$? |
a82a04b3 CR |
12551 | grep -v '^ *+' conftest.er1 >conftest.err |
12552 | rm -f conftest.er1 | |
12553 | cat conftest.err >&5 | |
12554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 12555 | (exit $ac_status); } && |
a82a04b3 CR |
12556 | { ac_try='test -z "$ac_c_werror_flag" |
12557 | || test ! -s conftest.err' | |
12558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12559 | (eval $ac_try) 2>&5 | |
12560 | ac_status=$? | |
12561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12562 | (exit $ac_status); }; } && | |
12563 | { ac_try='test -s conftest$ac_exeext' | |
12564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
12565 | (eval $ac_try) 2>&5 |
12566 | ac_status=$? | |
a82a04b3 | 12567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
12568 | (exit $ac_status); }; }; then |
12569 | eval "$as_ac_var=yes" | |
12570 | else | |
12571 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
12572 | sed 's/^/| /' conftest.$ac_ext >&5 |
12573 | ||
f73dda09 JA |
12574 | eval "$as_ac_var=no" |
12575 | fi | |
a82a04b3 CR |
12576 | rm -f conftest.err conftest.$ac_objext \ |
12577 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 12578 | fi |
a82a04b3 | 12579 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
f73dda09 JA |
12580 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12581 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a82a04b3 | 12582 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 12583 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a82a04b3 | 12584 | _ACEOF |
f73dda09 JA |
12585 | |
12586 | fi | |
12587 | done | |
12588 | ||
a82a04b3 CR |
12589 | |
12590 | ||
12591 | ||
9607141c CR |
12592 | for ac_func in getpwent getpwnam getpwuid |
12593 | do | |
12594 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12595 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12596 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
12597 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12599 | else | |
12600 | cat >conftest.$ac_ext <<_ACEOF | |
12601 | /* confdefs.h. */ | |
12602 | _ACEOF | |
12603 | cat confdefs.h >>conftest.$ac_ext | |
12604 | cat >>conftest.$ac_ext <<_ACEOF | |
12605 | /* end confdefs.h. */ | |
12606 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12607 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12608 | #define $ac_func innocuous_$ac_func | |
12609 | ||
12610 | /* System header to define __stub macros and hopefully few prototypes, | |
12611 | which can conflict with char $ac_func (); below. | |
12612 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12613 | <limits.h> exists even on freestanding compilers. */ | |
12614 | ||
12615 | #ifdef __STDC__ | |
12616 | # include <limits.h> | |
12617 | #else | |
12618 | # include <assert.h> | |
12619 | #endif | |
12620 | ||
12621 | #undef $ac_func | |
12622 | ||
12623 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12624 | #ifdef __cplusplus | |
12625 | extern "C" | |
12626 | { | |
12627 | #endif | |
12628 | /* We use char because int might match the return type of a gcc2 | |
12629 | builtin and then its argument prototype would still apply. */ | |
12630 | char $ac_func (); | |
12631 | /* The GNU C library defines this for functions which it implements | |
12632 | to always fail with ENOSYS. Some functions are actually named | |
12633 | something starting with __ and the normal name is an alias. */ | |
12634 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12635 | choke me | |
12636 | #else | |
12637 | char (*f) () = $ac_func; | |
12638 | #endif | |
12639 | #ifdef __cplusplus | |
12640 | } | |
12641 | #endif | |
12642 | ||
12643 | int | |
12644 | main () | |
12645 | { | |
12646 | return f != $ac_func; | |
12647 | ; | |
12648 | return 0; | |
12649 | } | |
12650 | _ACEOF | |
12651 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12653 | (eval $ac_link) 2>conftest.er1 | |
12654 | ac_status=$? | |
12655 | grep -v '^ *+' conftest.er1 >conftest.err | |
12656 | rm -f conftest.er1 | |
12657 | cat conftest.err >&5 | |
12658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12659 | (exit $ac_status); } && | |
12660 | { ac_try='test -z "$ac_c_werror_flag" | |
12661 | || test ! -s conftest.err' | |
12662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12663 | (eval $ac_try) 2>&5 | |
12664 | ac_status=$? | |
12665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12666 | (exit $ac_status); }; } && | |
12667 | { ac_try='test -s conftest$ac_exeext' | |
12668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12669 | (eval $ac_try) 2>&5 | |
12670 | ac_status=$? | |
12671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12672 | (exit $ac_status); }; }; then | |
12673 | eval "$as_ac_var=yes" | |
12674 | else | |
12675 | echo "$as_me: failed program was:" >&5 | |
12676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12677 | ||
12678 | eval "$as_ac_var=no" | |
12679 | fi | |
12680 | rm -f conftest.err conftest.$ac_objext \ | |
12681 | conftest$ac_exeext conftest.$ac_ext | |
12682 | fi | |
12683 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
12684 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
12685 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
12686 | cat >>confdefs.h <<_ACEOF | |
12687 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12688 | _ACEOF | |
12689 | ||
12690 | fi | |
12691 | done | |
12692 | ||
12693 | ||
12694 | ||
12695 | ||
a82a04b3 CR |
12696 | |
12697 | ||
12698 | ||
12699 | ||
12700 | ||
9607141c | 12701 | for ac_func in getcwd memset strcasecmp strerror strftime strnlen strpbrk strstr |
f73dda09 JA |
12702 | do |
12703 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a82a04b3 | 12704 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
f73dda09 JA |
12705 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12706 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12708 | else | |
12709 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
12710 | /* confdefs.h. */ |
12711 | _ACEOF | |
12712 | cat confdefs.h >>conftest.$ac_ext | |
12713 | cat >>conftest.$ac_ext <<_ACEOF | |
12714 | /* end confdefs.h. */ | |
12715 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12716 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12717 | #define $ac_func innocuous_$ac_func | |
12718 | ||
f73dda09 | 12719 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
12720 | which can conflict with char $ac_func (); below. |
12721 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12722 | <limits.h> exists even on freestanding compilers. */ | |
12723 | ||
12724 | #ifdef __STDC__ | |
12725 | # include <limits.h> | |
12726 | #else | |
12727 | # include <assert.h> | |
12728 | #endif | |
12729 | ||
12730 | #undef $ac_func | |
12731 | ||
f73dda09 JA |
12732 | /* Override any gcc2 internal prototype to avoid an error. */ |
12733 | #ifdef __cplusplus | |
12734 | extern "C" | |
a82a04b3 | 12735 | { |
f73dda09 JA |
12736 | #endif |
12737 | /* We use char because int might match the return type of a gcc2 | |
12738 | builtin and then its argument prototype would still apply. */ | |
12739 | char $ac_func (); | |
f73dda09 JA |
12740 | /* The GNU C library defines this for functions which it implements |
12741 | to always fail with ENOSYS. Some functions are actually named | |
12742 | something starting with __ and the normal name is an alias. */ | |
12743 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12744 | choke me | |
12745 | #else | |
a82a04b3 CR |
12746 | char (*f) () = $ac_func; |
12747 | #endif | |
12748 | #ifdef __cplusplus | |
12749 | } | |
f73dda09 JA |
12750 | #endif |
12751 | ||
a82a04b3 CR |
12752 | int |
12753 | main () | |
12754 | { | |
12755 | return f != $ac_func; | |
f73dda09 JA |
12756 | ; |
12757 | return 0; | |
12758 | } | |
12759 | _ACEOF | |
12760 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
12761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12762 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 12763 | ac_status=$? |
a82a04b3 CR |
12764 | grep -v '^ *+' conftest.er1 >conftest.err |
12765 | rm -f conftest.er1 | |
12766 | cat conftest.err >&5 | |
12767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 12768 | (exit $ac_status); } && |
a82a04b3 CR |
12769 | { ac_try='test -z "$ac_c_werror_flag" |
12770 | || 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_exeext' | |
12777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
12778 | (eval $ac_try) 2>&5 |
12779 | ac_status=$? | |
a82a04b3 | 12780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
12781 | (exit $ac_status); }; }; then |
12782 | eval "$as_ac_var=yes" | |
12783 | else | |
12784 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
12785 | sed 's/^/| /' conftest.$ac_ext >&5 |
12786 | ||
f73dda09 JA |
12787 | eval "$as_ac_var=no" |
12788 | fi | |
a82a04b3 CR |
12789 | rm -f conftest.err conftest.$ac_objext \ |
12790 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 12791 | fi |
a82a04b3 | 12792 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
f73dda09 JA |
12793 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12794 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a82a04b3 | 12795 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 12796 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a82a04b3 | 12797 | _ACEOF |
f73dda09 JA |
12798 | |
12799 | else | |
a82a04b3 CR |
12800 | case $LIBOBJS in |
12801 | "$ac_func.$ac_objext" | \ | |
12802 | *" $ac_func.$ac_objext" | \ | |
12803 | "$ac_func.$ac_objext "* | \ | |
12804 | *" $ac_func.$ac_objext "* ) ;; | |
12805 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; | |
12806 | esac | |
12807 | ||
f73dda09 JA |
12808 | fi |
12809 | done | |
12810 | ||
a82a04b3 CR |
12811 | |
12812 | ||
12813 | ||
12814 | ||
12815 | ||
12816 | ||
12817 | ||
12818 | ||
7117c2d2 | 12819 | for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax |
f73dda09 JA |
12820 | do |
12821 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a82a04b3 | 12822 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
f73dda09 JA |
12823 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12824 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12826 | else | |
12827 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
12828 | /* confdefs.h. */ |
12829 | _ACEOF | |
12830 | cat confdefs.h >>conftest.$ac_ext | |
12831 | cat >>conftest.$ac_ext <<_ACEOF | |
12832 | /* end confdefs.h. */ | |
12833 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12834 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12835 | #define $ac_func innocuous_$ac_func | |
12836 | ||
f73dda09 | 12837 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
12838 | which can conflict with char $ac_func (); below. |
12839 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12840 | <limits.h> exists even on freestanding compilers. */ | |
12841 | ||
12842 | #ifdef __STDC__ | |
12843 | # include <limits.h> | |
12844 | #else | |
12845 | # include <assert.h> | |
12846 | #endif | |
12847 | ||
12848 | #undef $ac_func | |
12849 | ||
f73dda09 JA |
12850 | /* Override any gcc2 internal prototype to avoid an error. */ |
12851 | #ifdef __cplusplus | |
12852 | extern "C" | |
a82a04b3 | 12853 | { |
f73dda09 JA |
12854 | #endif |
12855 | /* We use char because int might match the return type of a gcc2 | |
12856 | builtin and then its argument prototype would still apply. */ | |
12857 | char $ac_func (); | |
f73dda09 JA |
12858 | /* The GNU C library defines this for functions which it implements |
12859 | to always fail with ENOSYS. Some functions are actually named | |
12860 | something starting with __ and the normal name is an alias. */ | |
12861 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12862 | choke me | |
12863 | #else | |
a82a04b3 CR |
12864 | char (*f) () = $ac_func; |
12865 | #endif | |
12866 | #ifdef __cplusplus | |
12867 | } | |
f73dda09 JA |
12868 | #endif |
12869 | ||
a82a04b3 CR |
12870 | int |
12871 | main () | |
12872 | { | |
12873 | return f != $ac_func; | |
f73dda09 JA |
12874 | ; |
12875 | return 0; | |
12876 | } | |
12877 | _ACEOF | |
12878 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
12879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12880 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 12881 | ac_status=$? |
a82a04b3 CR |
12882 | grep -v '^ *+' conftest.er1 >conftest.err |
12883 | rm -f conftest.er1 | |
12884 | cat conftest.err >&5 | |
12885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 12886 | (exit $ac_status); } && |
a82a04b3 CR |
12887 | { ac_try='test -z "$ac_c_werror_flag" |
12888 | || test ! -s conftest.err' | |
12889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12890 | (eval $ac_try) 2>&5 | |
12891 | ac_status=$? | |
12892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12893 | (exit $ac_status); }; } && | |
12894 | { ac_try='test -s conftest$ac_exeext' | |
12895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
12896 | (eval $ac_try) 2>&5 |
12897 | ac_status=$? | |
a82a04b3 | 12898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
12899 | (exit $ac_status); }; }; then |
12900 | eval "$as_ac_var=yes" | |
12901 | else | |
12902 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
12903 | sed 's/^/| /' conftest.$ac_ext >&5 |
12904 | ||
f73dda09 JA |
12905 | eval "$as_ac_var=no" |
12906 | fi | |
a82a04b3 CR |
12907 | rm -f conftest.err conftest.$ac_objext \ |
12908 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 12909 | fi |
a82a04b3 | 12910 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
f73dda09 JA |
12911 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12912 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a82a04b3 | 12913 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 12914 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a82a04b3 | 12915 | _ACEOF |
f73dda09 JA |
12916 | |
12917 | else | |
a82a04b3 CR |
12918 | case $LIBOBJS in |
12919 | "$ac_func.$ac_objext" | \ | |
12920 | *" $ac_func.$ac_objext" | \ | |
12921 | "$ac_func.$ac_objext "* | \ | |
12922 | *" $ac_func.$ac_objext "* ) ;; | |
12923 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; | |
12924 | esac | |
12925 | ||
f73dda09 JA |
12926 | fi |
12927 | done | |
12928 | ||
a82a04b3 CR |
12929 | |
12930 | ||
12931 | echo "$as_me:$LINENO: checking whether confstr is declared" >&5 | |
7117c2d2 JA |
12932 | echo $ECHO_N "checking whether confstr is declared... $ECHO_C" >&6 |
12933 | if test "${ac_cv_have_decl_confstr+set}" = set; then | |
f73dda09 JA |
12934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12935 | else | |
12936 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
12937 | /* confdefs.h. */ |
12938 | _ACEOF | |
12939 | cat confdefs.h >>conftest.$ac_ext | |
12940 | cat >>conftest.$ac_ext <<_ACEOF | |
12941 | /* end confdefs.h. */ | |
f73dda09 JA |
12942 | $ac_includes_default |
12943 | int | |
12944 | main () | |
12945 | { | |
7117c2d2 JA |
12946 | #ifndef confstr |
12947 | char *p = (char *) confstr; | |
f73dda09 JA |
12948 | #endif |
12949 | ||
12950 | ; | |
12951 | return 0; | |
12952 | } | |
12953 | _ACEOF | |
12954 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
12955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12956 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 12957 | ac_status=$? |
a82a04b3 CR |
12958 | grep -v '^ *+' conftest.er1 >conftest.err |
12959 | rm -f conftest.er1 | |
12960 | cat conftest.err >&5 | |
12961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 12962 | (exit $ac_status); } && |
a82a04b3 CR |
12963 | { ac_try='test -z "$ac_c_werror_flag" |
12964 | || test ! -s conftest.err' | |
12965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12966 | (eval $ac_try) 2>&5 | |
12967 | ac_status=$? | |
12968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12969 | (exit $ac_status); }; } && | |
12970 | { ac_try='test -s conftest.$ac_objext' | |
12971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
12972 | (eval $ac_try) 2>&5 |
12973 | ac_status=$? | |
a82a04b3 | 12974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 12975 | (exit $ac_status); }; }; then |
7117c2d2 | 12976 | ac_cv_have_decl_confstr=yes |
f73dda09 JA |
12977 | else |
12978 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
12979 | sed 's/^/| /' conftest.$ac_ext >&5 |
12980 | ||
7117c2d2 | 12981 | ac_cv_have_decl_confstr=no |
f73dda09 | 12982 | fi |
a82a04b3 | 12983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 12984 | fi |
a82a04b3 | 12985 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5 |
7117c2d2 JA |
12986 | echo "${ECHO_T}$ac_cv_have_decl_confstr" >&6 |
12987 | if test $ac_cv_have_decl_confstr = yes; then | |
f73dda09 | 12988 | |
a82a04b3 | 12989 | cat >>confdefs.h <<_ACEOF |
7117c2d2 | 12990 | #define HAVE_DECL_CONFSTR 1 |
a82a04b3 CR |
12991 | _ACEOF |
12992 | ||
f73dda09 JA |
12993 | |
12994 | else | |
a82a04b3 | 12995 | cat >>confdefs.h <<_ACEOF |
7117c2d2 | 12996 | #define HAVE_DECL_CONFSTR 0 |
a82a04b3 CR |
12997 | _ACEOF |
12998 | ||
f73dda09 JA |
12999 | |
13000 | fi | |
13001 | ||
a82a04b3 CR |
13002 | |
13003 | echo "$as_me:$LINENO: checking whether printf is declared" >&5 | |
7117c2d2 JA |
13004 | echo $ECHO_N "checking whether printf is declared... $ECHO_C" >&6 |
13005 | if test "${ac_cv_have_decl_printf+set}" = set; then | |
f73dda09 JA |
13006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13007 | else | |
13008 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
13009 | /* confdefs.h. */ |
13010 | _ACEOF | |
13011 | cat confdefs.h >>conftest.$ac_ext | |
13012 | cat >>conftest.$ac_ext <<_ACEOF | |
13013 | /* end confdefs.h. */ | |
f73dda09 JA |
13014 | $ac_includes_default |
13015 | int | |
13016 | main () | |
13017 | { | |
7117c2d2 JA |
13018 | #ifndef printf |
13019 | char *p = (char *) printf; | |
f73dda09 JA |
13020 | #endif |
13021 | ||
13022 | ; | |
13023 | return 0; | |
13024 | } | |
13025 | _ACEOF | |
13026 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
13027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
13028 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 13029 | ac_status=$? |
a82a04b3 CR |
13030 | grep -v '^ *+' conftest.er1 >conftest.err |
13031 | rm -f conftest.er1 | |
13032 | cat conftest.err >&5 | |
13033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 13034 | (exit $ac_status); } && |
a82a04b3 CR |
13035 | { ac_try='test -z "$ac_c_werror_flag" |
13036 | || test ! -s conftest.err' | |
13037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13038 | (eval $ac_try) 2>&5 | |
13039 | ac_status=$? | |
13040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13041 | (exit $ac_status); }; } && | |
13042 | { ac_try='test -s conftest.$ac_objext' | |
13043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
13044 | (eval $ac_try) 2>&5 |
13045 | ac_status=$? | |
a82a04b3 | 13046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 13047 | (exit $ac_status); }; }; then |
7117c2d2 | 13048 | ac_cv_have_decl_printf=yes |
f73dda09 JA |
13049 | else |
13050 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
13051 | sed 's/^/| /' conftest.$ac_ext >&5 |
13052 | ||
7117c2d2 | 13053 | ac_cv_have_decl_printf=no |
f73dda09 | 13054 | fi |
a82a04b3 | 13055 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 13056 | fi |
a82a04b3 | 13057 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5 |
7117c2d2 JA |
13058 | echo "${ECHO_T}$ac_cv_have_decl_printf" >&6 |
13059 | if test $ac_cv_have_decl_printf = yes; then | |
f73dda09 | 13060 | |
a82a04b3 | 13061 | cat >>confdefs.h <<_ACEOF |
7117c2d2 | 13062 | #define HAVE_DECL_PRINTF 1 |
a82a04b3 CR |
13063 | _ACEOF |
13064 | ||
f73dda09 JA |
13065 | |
13066 | else | |
a82a04b3 | 13067 | cat >>confdefs.h <<_ACEOF |
e624d0f7 | 13068 | #define HAVE_DECL_PRINTF 0 |
a82a04b3 CR |
13069 | _ACEOF |
13070 | ||
f73dda09 JA |
13071 | |
13072 | fi | |
13073 | ||
a82a04b3 CR |
13074 | |
13075 | echo "$as_me:$LINENO: checking whether sbrk is declared" >&5 | |
f73dda09 JA |
13076 | echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6 |
13077 | if test "${ac_cv_have_decl_sbrk+set}" = set; then | |
13078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13079 | else | |
13080 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
13081 | /* confdefs.h. */ |
13082 | _ACEOF | |
13083 | cat confdefs.h >>conftest.$ac_ext | |
13084 | cat >>conftest.$ac_ext <<_ACEOF | |
13085 | /* end confdefs.h. */ | |
f73dda09 JA |
13086 | $ac_includes_default |
13087 | int | |
13088 | main () | |
13089 | { | |
13090 | #ifndef sbrk | |
13091 | char *p = (char *) sbrk; | |
13092 | #endif | |
13093 | ||
13094 | ; | |
13095 | return 0; | |
13096 | } | |
13097 | _ACEOF | |
13098 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
13099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
13100 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 13101 | ac_status=$? |
a82a04b3 CR |
13102 | grep -v '^ *+' conftest.er1 >conftest.err |
13103 | rm -f conftest.er1 | |
13104 | cat conftest.err >&5 | |
13105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 13106 | (exit $ac_status); } && |
a82a04b3 CR |
13107 | { ac_try='test -z "$ac_c_werror_flag" |
13108 | || test ! -s conftest.err' | |
13109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13110 | (eval $ac_try) 2>&5 | |
13111 | ac_status=$? | |
13112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13113 | (exit $ac_status); }; } && | |
13114 | { ac_try='test -s conftest.$ac_objext' | |
13115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
13116 | (eval $ac_try) 2>&5 |
13117 | ac_status=$? | |
a82a04b3 | 13118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
13119 | (exit $ac_status); }; }; then |
13120 | ac_cv_have_decl_sbrk=yes | |
13121 | else | |
13122 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
13123 | sed 's/^/| /' conftest.$ac_ext >&5 |
13124 | ||
f73dda09 JA |
13125 | ac_cv_have_decl_sbrk=no |
13126 | fi | |
a82a04b3 | 13127 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 13128 | fi |
a82a04b3 | 13129 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5 |
f73dda09 JA |
13130 | echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6 |
13131 | if test $ac_cv_have_decl_sbrk = yes; then | |
13132 | ||
a82a04b3 | 13133 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 13134 | #define HAVE_DECL_SBRK 1 |
a82a04b3 CR |
13135 | _ACEOF |
13136 | ||
f73dda09 JA |
13137 | |
13138 | else | |
a82a04b3 | 13139 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 13140 | #define HAVE_DECL_SBRK 0 |
a82a04b3 CR |
13141 | _ACEOF |
13142 | ||
f73dda09 JA |
13143 | |
13144 | fi | |
13145 | ||
a82a04b3 CR |
13146 | |
13147 | echo "$as_me:$LINENO: checking whether strcpy is declared" >&5 | |
7117c2d2 JA |
13148 | echo $ECHO_N "checking whether strcpy is declared... $ECHO_C" >&6 |
13149 | if test "${ac_cv_have_decl_strcpy+set}" = set; then | |
f73dda09 JA |
13150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13151 | else | |
13152 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
13153 | /* confdefs.h. */ |
13154 | _ACEOF | |
13155 | cat confdefs.h >>conftest.$ac_ext | |
13156 | cat >>conftest.$ac_ext <<_ACEOF | |
13157 | /* end confdefs.h. */ | |
f73dda09 JA |
13158 | $ac_includes_default |
13159 | int | |
13160 | main () | |
13161 | { | |
7117c2d2 JA |
13162 | #ifndef strcpy |
13163 | char *p = (char *) strcpy; | |
f73dda09 JA |
13164 | #endif |
13165 | ||
13166 | ; | |
13167 | return 0; | |
13168 | } | |
13169 | _ACEOF | |
13170 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
13171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
13172 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 13173 | ac_status=$? |
a82a04b3 CR |
13174 | grep -v '^ *+' conftest.er1 >conftest.err |
13175 | rm -f conftest.er1 | |
13176 | cat conftest.err >&5 | |
13177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 13178 | (exit $ac_status); } && |
a82a04b3 CR |
13179 | { ac_try='test -z "$ac_c_werror_flag" |
13180 | || test ! -s conftest.err' | |
13181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13182 | (eval $ac_try) 2>&5 | |
13183 | ac_status=$? | |
13184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13185 | (exit $ac_status); }; } && | |
13186 | { ac_try='test -s conftest.$ac_objext' | |
13187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
13188 | (eval $ac_try) 2>&5 |
13189 | ac_status=$? | |
a82a04b3 | 13190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 13191 | (exit $ac_status); }; }; then |
7117c2d2 | 13192 | ac_cv_have_decl_strcpy=yes |
f73dda09 JA |
13193 | else |
13194 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
13195 | sed 's/^/| /' conftest.$ac_ext >&5 |
13196 | ||
7117c2d2 | 13197 | ac_cv_have_decl_strcpy=no |
f73dda09 | 13198 | fi |
a82a04b3 | 13199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 13200 | fi |
a82a04b3 | 13201 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5 |
7117c2d2 JA |
13202 | echo "${ECHO_T}$ac_cv_have_decl_strcpy" >&6 |
13203 | if test $ac_cv_have_decl_strcpy = yes; then | |
f73dda09 | 13204 | |
a82a04b3 | 13205 | cat >>confdefs.h <<_ACEOF |
7117c2d2 | 13206 | #define HAVE_DECL_STRCPY 1 |
a82a04b3 CR |
13207 | _ACEOF |
13208 | ||
f73dda09 JA |
13209 | |
13210 | else | |
a82a04b3 | 13211 | cat >>confdefs.h <<_ACEOF |
7117c2d2 | 13212 | #define HAVE_DECL_STRCPY 0 |
a82a04b3 CR |
13213 | _ACEOF |
13214 | ||
f73dda09 JA |
13215 | |
13216 | fi | |
13217 | ||
a82a04b3 CR |
13218 | |
13219 | echo "$as_me:$LINENO: checking whether strsignal is declared" >&5 | |
f73dda09 JA |
13220 | echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6 |
13221 | if test "${ac_cv_have_decl_strsignal+set}" = set; then | |
13222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13223 | else | |
13224 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
13225 | /* confdefs.h. */ |
13226 | _ACEOF | |
13227 | cat confdefs.h >>conftest.$ac_ext | |
13228 | cat >>conftest.$ac_ext <<_ACEOF | |
13229 | /* end confdefs.h. */ | |
f73dda09 JA |
13230 | $ac_includes_default |
13231 | int | |
13232 | main () | |
13233 | { | |
13234 | #ifndef strsignal | |
13235 | char *p = (char *) strsignal; | |
13236 | #endif | |
13237 | ||
13238 | ; | |
13239 | return 0; | |
13240 | } | |
13241 | _ACEOF | |
13242 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
13243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
13244 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 13245 | ac_status=$? |
a82a04b3 CR |
13246 | grep -v '^ *+' conftest.er1 >conftest.err |
13247 | rm -f conftest.er1 | |
13248 | cat conftest.err >&5 | |
13249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 13250 | (exit $ac_status); } && |
a82a04b3 CR |
13251 | { ac_try='test -z "$ac_c_werror_flag" |
13252 | || test ! -s conftest.err' | |
13253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13254 | (eval $ac_try) 2>&5 | |
13255 | ac_status=$? | |
13256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13257 | (exit $ac_status); }; } && | |
13258 | { ac_try='test -s conftest.$ac_objext' | |
13259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
13260 | (eval $ac_try) 2>&5 |
13261 | ac_status=$? | |
a82a04b3 | 13262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
13263 | (exit $ac_status); }; }; then |
13264 | ac_cv_have_decl_strsignal=yes | |
13265 | else | |
13266 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
13267 | sed 's/^/| /' conftest.$ac_ext >&5 |
13268 | ||
f73dda09 JA |
13269 | ac_cv_have_decl_strsignal=no |
13270 | fi | |
a82a04b3 | 13271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 13272 | fi |
a82a04b3 | 13273 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5 |
f73dda09 JA |
13274 | echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6 |
13275 | if test $ac_cv_have_decl_strsignal = yes; then | |
13276 | ||
a82a04b3 | 13277 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 13278 | #define HAVE_DECL_STRSIGNAL 1 |
a82a04b3 CR |
13279 | _ACEOF |
13280 | ||
f73dda09 JA |
13281 | |
13282 | else | |
a82a04b3 | 13283 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 13284 | #define HAVE_DECL_STRSIGNAL 0 |
a82a04b3 CR |
13285 | _ACEOF |
13286 | ||
545f34cf CR |
13287 | |
13288 | fi | |
13289 | ||
a82a04b3 CR |
13290 | |
13291 | ||
13292 | echo "$as_me:$LINENO: checking whether strtold is declared" >&5 | |
7117c2d2 JA |
13293 | echo $ECHO_N "checking whether strtold is declared... $ECHO_C" >&6 |
13294 | if test "${ac_cv_have_decl_strtold+set}" = set; then | |
13295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13296 | else | |
13297 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
13298 | /* confdefs.h. */ |
13299 | _ACEOF | |
13300 | cat confdefs.h >>conftest.$ac_ext | |
13301 | cat >>conftest.$ac_ext <<_ACEOF | |
13302 | /* end confdefs.h. */ | |
7117c2d2 JA |
13303 | $ac_includes_default |
13304 | int | |
13305 | main () | |
13306 | { | |
13307 | #ifndef strtold | |
13308 | char *p = (char *) strtold; | |
13309 | #endif | |
13310 | ||
13311 | ; | |
13312 | return 0; | |
13313 | } | |
13314 | _ACEOF | |
13315 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
13316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
13317 | (eval $ac_compile) 2>conftest.er1 | |
7117c2d2 | 13318 | ac_status=$? |
a82a04b3 CR |
13319 | grep -v '^ *+' conftest.er1 >conftest.err |
13320 | rm -f conftest.er1 | |
13321 | cat conftest.err >&5 | |
13322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7117c2d2 | 13323 | (exit $ac_status); } && |
a82a04b3 CR |
13324 | { ac_try='test -z "$ac_c_werror_flag" |
13325 | || test ! -s conftest.err' | |
13326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13327 | (eval $ac_try) 2>&5 | |
13328 | ac_status=$? | |
13329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13330 | (exit $ac_status); }; } && | |
13331 | { ac_try='test -s conftest.$ac_objext' | |
13332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7117c2d2 JA |
13333 | (eval $ac_try) 2>&5 |
13334 | ac_status=$? | |
a82a04b3 | 13335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7117c2d2 JA |
13336 | (exit $ac_status); }; }; then |
13337 | ac_cv_have_decl_strtold=yes | |
13338 | else | |
13339 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
13340 | sed 's/^/| /' conftest.$ac_ext >&5 |
13341 | ||
7117c2d2 JA |
13342 | ac_cv_have_decl_strtold=no |
13343 | fi | |
a82a04b3 | 13344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7117c2d2 | 13345 | fi |
a82a04b3 | 13346 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5 |
7117c2d2 JA |
13347 | echo "${ECHO_T}$ac_cv_have_decl_strtold" >&6 |
13348 | if test $ac_cv_have_decl_strtold = yes; then | |
13349 | ||
a82a04b3 | 13350 | cat >>confdefs.h <<_ACEOF |
7117c2d2 | 13351 | #define HAVE_DECL_STRTOLD 1 |
a82a04b3 | 13352 | _ACEOF |
545f34cf | 13353 | |
a82a04b3 CR |
13354 | |
13355 | echo "$as_me:$LINENO: checking for broken strtold" >&5 | |
d3a24ed2 CR |
13356 | echo $ECHO_N "checking for broken strtold... $ECHO_C" >&6 |
13357 | if test "${bash_cv_strtold_broken+set}" = set; then | |
13358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13359 | else | |
13360 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
13361 | /* confdefs.h. */ |
13362 | _ACEOF | |
13363 | cat confdefs.h >>conftest.$ac_ext | |
13364 | cat >>conftest.$ac_ext <<_ACEOF | |
13365 | /* end confdefs.h. */ | |
d3a24ed2 CR |
13366 | #include <stdlib.h> |
13367 | int | |
13368 | main () | |
13369 | { | |
13370 | int main() { long double r; char *foo, bar; r = strtold(foo, &bar);} | |
13371 | ; | |
13372 | return 0; | |
13373 | } | |
13374 | _ACEOF | |
13375 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
13376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
13377 | (eval $ac_compile) 2>conftest.er1 | |
d3a24ed2 | 13378 | ac_status=$? |
a82a04b3 CR |
13379 | grep -v '^ *+' conftest.er1 >conftest.err |
13380 | rm -f conftest.er1 | |
13381 | cat conftest.err >&5 | |
13382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d3a24ed2 | 13383 | (exit $ac_status); } && |
a82a04b3 CR |
13384 | { ac_try='test -z "$ac_c_werror_flag" |
13385 | || test ! -s conftest.err' | |
13386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13387 | (eval $ac_try) 2>&5 | |
13388 | ac_status=$? | |
13389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13390 | (exit $ac_status); }; } && | |
13391 | { ac_try='test -s conftest.$ac_objext' | |
13392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
d3a24ed2 CR |
13393 | (eval $ac_try) 2>&5 |
13394 | ac_status=$? | |
a82a04b3 | 13395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d3a24ed2 CR |
13396 | (exit $ac_status); }; }; then |
13397 | bash_cv_strtold_broken=no | |
13398 | else | |
13399 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
13400 | sed 's/^/| /' conftest.$ac_ext >&5 |
13401 | ||
d3a24ed2 CR |
13402 | bash_cv_strtold_broken=yes |
13403 | fi | |
a82a04b3 CR |
13404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13405 | ||
d3a24ed2 CR |
13406 | |
13407 | fi | |
13408 | ||
a82a04b3 | 13409 | echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5 |
d3a24ed2 CR |
13410 | echo "${ECHO_T}$bash_cv_strtold_broken" >&6 |
13411 | if test "$bash_cv_strtold_broken" = "yes" ; then | |
a82a04b3 | 13412 | cat >>confdefs.h <<\_ACEOF |
d3a24ed2 | 13413 | #define STRTOLD_BROKEN 1 |
a82a04b3 | 13414 | _ACEOF |
d3a24ed2 CR |
13415 | |
13416 | fi | |
13417 | ||
7117c2d2 | 13418 | else |
a82a04b3 | 13419 | cat >>confdefs.h <<_ACEOF |
7117c2d2 | 13420 | #define HAVE_DECL_STRTOLD 0 |
a82a04b3 CR |
13421 | _ACEOF |
13422 | ||
7117c2d2 JA |
13423 | |
13424 | fi | |
13425 | ||
a82a04b3 CR |
13426 | |
13427 | ||
13428 | ||
13429 | ||
13430 | ||
13431 | ||
13432 | echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5 | |
f73dda09 JA |
13433 | echo $ECHO_N "checking for declaration of strtoimax... $ECHO_C" >&6 |
13434 | if test "${bash_cv_decl_strtoimax+set}" = set; then | |
13435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13436 | else | |
13437 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
13438 | /* confdefs.h. */ |
13439 | _ACEOF | |
13440 | cat confdefs.h >>conftest.$ac_ext | |
13441 | cat >>conftest.$ac_ext <<_ACEOF | |
13442 | /* end confdefs.h. */ | |
f73dda09 JA |
13443 | |
13444 | #if STDC_HEADERS | |
13445 | # include <stdlib.h> | |
13446 | #endif | |
13447 | #if HAVE_INTTYPES_H | |
13448 | # include <inttypes.h> | |
13449 | #endif | |
13450 | ||
13451 | int | |
13452 | main () | |
13453 | { | |
13454 | return !strtoimax; | |
13455 | ; | |
13456 | return 0; | |
13457 | } | |
13458 | _ACEOF | |
13459 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
13460 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13461 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 13462 | ac_status=$? |
a82a04b3 CR |
13463 | grep -v '^ *+' conftest.er1 >conftest.err |
13464 | rm -f conftest.er1 | |
13465 | cat conftest.err >&5 | |
13466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 13467 | (exit $ac_status); } && |
a82a04b3 CR |
13468 | { ac_try='test -z "$ac_c_werror_flag" |
13469 | || test ! -s conftest.err' | |
13470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
13471 | (eval $ac_try) 2>&5 |
13472 | ac_status=$? | |
a82a04b3 CR |
13473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13474 | (exit $ac_status); }; } && | |
13475 | { ac_try='test -s conftest$ac_exeext' | |
13476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13477 | (eval $ac_try) 2>&5 | |
13478 | ac_status=$? | |
13479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
13480 | (exit $ac_status); }; }; then |
13481 | bash_cv_decl_strtoimax=yes | |
13482 | else | |
13483 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
13484 | sed 's/^/| /' conftest.$ac_ext >&5 |
13485 | ||
f73dda09 JA |
13486 | bash_cv_decl_strtoimax=no |
13487 | fi | |
a82a04b3 CR |
13488 | rm -f conftest.err conftest.$ac_objext \ |
13489 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 13490 | fi |
a82a04b3 | 13491 | echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5 |
f73dda09 JA |
13492 | echo "${ECHO_T}$bash_cv_decl_strtoimax" >&6 |
13493 | bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13494 | if test $bash_cv_decl_strtoimax = yes; then | |
a82a04b3 | 13495 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 13496 | #define $bash_tr_func 1 |
a82a04b3 | 13497 | _ACEOF |
f73dda09 JA |
13498 | |
13499 | else | |
a82a04b3 | 13500 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 13501 | #define $bash_tr_func 0 |
a82a04b3 | 13502 | _ACEOF |
f73dda09 JA |
13503 | |
13504 | fi | |
13505 | ||
a82a04b3 CR |
13506 | |
13507 | ||
13508 | ||
13509 | echo "$as_me:$LINENO: checking for declaration of strtol" >&5 | |
f73dda09 JA |
13510 | echo $ECHO_N "checking for declaration of strtol... $ECHO_C" >&6 |
13511 | if test "${bash_cv_decl_strtol+set}" = set; then | |
13512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13513 | else | |
13514 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
13515 | /* confdefs.h. */ |
13516 | _ACEOF | |
13517 | cat confdefs.h >>conftest.$ac_ext | |
13518 | cat >>conftest.$ac_ext <<_ACEOF | |
13519 | /* end confdefs.h. */ | |
f73dda09 JA |
13520 | |
13521 | #if STDC_HEADERS | |
13522 | # include <stdlib.h> | |
13523 | #endif | |
13524 | #if HAVE_INTTYPES_H | |
13525 | # include <inttypes.h> | |
13526 | #endif | |
13527 | ||
13528 | int | |
13529 | main () | |
13530 | { | |
13531 | return !strtol; | |
13532 | ; | |
13533 | return 0; | |
13534 | } | |
13535 | _ACEOF | |
13536 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
13537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13538 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 13539 | ac_status=$? |
a82a04b3 CR |
13540 | grep -v '^ *+' conftest.er1 >conftest.err |
13541 | rm -f conftest.er1 | |
13542 | cat conftest.err >&5 | |
13543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 13544 | (exit $ac_status); } && |
a82a04b3 CR |
13545 | { ac_try='test -z "$ac_c_werror_flag" |
13546 | || test ! -s conftest.err' | |
13547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
13548 | (eval $ac_try) 2>&5 |
13549 | ac_status=$? | |
a82a04b3 CR |
13550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13551 | (exit $ac_status); }; } && | |
13552 | { ac_try='test -s conftest$ac_exeext' | |
13553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13554 | (eval $ac_try) 2>&5 | |
13555 | ac_status=$? | |
13556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
13557 | (exit $ac_status); }; }; then |
13558 | bash_cv_decl_strtol=yes | |
13559 | else | |
13560 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
13561 | sed 's/^/| /' conftest.$ac_ext >&5 |
13562 | ||
f73dda09 JA |
13563 | bash_cv_decl_strtol=no |
13564 | fi | |
a82a04b3 CR |
13565 | rm -f conftest.err conftest.$ac_objext \ |
13566 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 13567 | fi |
a82a04b3 | 13568 | echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5 |
f73dda09 JA |
13569 | echo "${ECHO_T}$bash_cv_decl_strtol" >&6 |
13570 | bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13571 | if test $bash_cv_decl_strtol = yes; then | |
a82a04b3 | 13572 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 13573 | #define $bash_tr_func 1 |
a82a04b3 | 13574 | _ACEOF |
f73dda09 JA |
13575 | |
13576 | else | |
a82a04b3 | 13577 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 13578 | #define $bash_tr_func 0 |
a82a04b3 | 13579 | _ACEOF |
f73dda09 JA |
13580 | |
13581 | fi | |
13582 | ||
a82a04b3 CR |
13583 | |
13584 | ||
13585 | ||
13586 | echo "$as_me:$LINENO: checking for declaration of strtoll" >&5 | |
f73dda09 JA |
13587 | echo $ECHO_N "checking for declaration of strtoll... $ECHO_C" >&6 |
13588 | if test "${bash_cv_decl_strtoll+set}" = set; then | |
13589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13590 | else | |
13591 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
13592 | /* confdefs.h. */ |
13593 | _ACEOF | |
13594 | cat confdefs.h >>conftest.$ac_ext | |
13595 | cat >>conftest.$ac_ext <<_ACEOF | |
13596 | /* end confdefs.h. */ | |
f73dda09 JA |
13597 | |
13598 | #if STDC_HEADERS | |
13599 | # include <stdlib.h> | |
13600 | #endif | |
13601 | #if HAVE_INTTYPES_H | |
13602 | # include <inttypes.h> | |
13603 | #endif | |
13604 | ||
13605 | int | |
13606 | main () | |
13607 | { | |
13608 | return !strtoll; | |
13609 | ; | |
13610 | return 0; | |
13611 | } | |
13612 | _ACEOF | |
13613 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
13614 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13615 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 13616 | ac_status=$? |
a82a04b3 CR |
13617 | grep -v '^ *+' conftest.er1 >conftest.err |
13618 | rm -f conftest.er1 | |
13619 | cat conftest.err >&5 | |
13620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 13621 | (exit $ac_status); } && |
a82a04b3 CR |
13622 | { ac_try='test -z "$ac_c_werror_flag" |
13623 | || test ! -s conftest.err' | |
13624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
13625 | (eval $ac_try) 2>&5 |
13626 | ac_status=$? | |
a82a04b3 CR |
13627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13628 | (exit $ac_status); }; } && | |
13629 | { ac_try='test -s conftest$ac_exeext' | |
13630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13631 | (eval $ac_try) 2>&5 | |
13632 | ac_status=$? | |
13633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
13634 | (exit $ac_status); }; }; then |
13635 | bash_cv_decl_strtoll=yes | |
13636 | else | |
13637 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
13638 | sed 's/^/| /' conftest.$ac_ext >&5 |
13639 | ||
f73dda09 JA |
13640 | bash_cv_decl_strtoll=no |
13641 | fi | |
a82a04b3 CR |
13642 | rm -f conftest.err conftest.$ac_objext \ |
13643 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 13644 | fi |
a82a04b3 | 13645 | echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5 |
f73dda09 JA |
13646 | echo "${ECHO_T}$bash_cv_decl_strtoll" >&6 |
13647 | bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13648 | if test $bash_cv_decl_strtoll = yes; then | |
a82a04b3 | 13649 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 13650 | #define $bash_tr_func 1 |
a82a04b3 | 13651 | _ACEOF |
f73dda09 JA |
13652 | |
13653 | else | |
a82a04b3 | 13654 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 13655 | #define $bash_tr_func 0 |
a82a04b3 | 13656 | _ACEOF |
f73dda09 JA |
13657 | |
13658 | fi | |
13659 | ||
a82a04b3 CR |
13660 | |
13661 | ||
13662 | ||
13663 | echo "$as_me:$LINENO: checking for declaration of strtoul" >&5 | |
f73dda09 JA |
13664 | echo $ECHO_N "checking for declaration of strtoul... $ECHO_C" >&6 |
13665 | if test "${bash_cv_decl_strtoul+set}" = set; then | |
13666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13667 | else | |
13668 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
13669 | /* confdefs.h. */ |
13670 | _ACEOF | |
13671 | cat confdefs.h >>conftest.$ac_ext | |
13672 | cat >>conftest.$ac_ext <<_ACEOF | |
13673 | /* end confdefs.h. */ | |
f73dda09 JA |
13674 | |
13675 | #if STDC_HEADERS | |
13676 | # include <stdlib.h> | |
13677 | #endif | |
13678 | #if HAVE_INTTYPES_H | |
13679 | # include <inttypes.h> | |
13680 | #endif | |
13681 | ||
13682 | int | |
13683 | main () | |
13684 | { | |
13685 | return !strtoul; | |
13686 | ; | |
13687 | return 0; | |
13688 | } | |
13689 | _ACEOF | |
13690 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
13691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13692 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 13693 | ac_status=$? |
a82a04b3 CR |
13694 | grep -v '^ *+' conftest.er1 >conftest.err |
13695 | rm -f conftest.er1 | |
13696 | cat conftest.err >&5 | |
13697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 13698 | (exit $ac_status); } && |
a82a04b3 CR |
13699 | { ac_try='test -z "$ac_c_werror_flag" |
13700 | || test ! -s conftest.err' | |
13701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
13702 | (eval $ac_try) 2>&5 |
13703 | ac_status=$? | |
a82a04b3 CR |
13704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13705 | (exit $ac_status); }; } && | |
13706 | { ac_try='test -s conftest$ac_exeext' | |
13707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13708 | (eval $ac_try) 2>&5 | |
13709 | ac_status=$? | |
13710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
13711 | (exit $ac_status); }; }; then |
13712 | bash_cv_decl_strtoul=yes | |
13713 | else | |
13714 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
13715 | sed 's/^/| /' conftest.$ac_ext >&5 |
13716 | ||
f73dda09 JA |
13717 | bash_cv_decl_strtoul=no |
13718 | fi | |
a82a04b3 CR |
13719 | rm -f conftest.err conftest.$ac_objext \ |
13720 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 13721 | fi |
a82a04b3 | 13722 | echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5 |
f73dda09 JA |
13723 | echo "${ECHO_T}$bash_cv_decl_strtoul" >&6 |
13724 | bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13725 | if test $bash_cv_decl_strtoul = yes; then | |
a82a04b3 | 13726 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 13727 | #define $bash_tr_func 1 |
a82a04b3 | 13728 | _ACEOF |
f73dda09 JA |
13729 | |
13730 | else | |
a82a04b3 | 13731 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 13732 | #define $bash_tr_func 0 |
a82a04b3 | 13733 | _ACEOF |
f73dda09 JA |
13734 | |
13735 | fi | |
13736 | ||
a82a04b3 CR |
13737 | |
13738 | ||
13739 | ||
13740 | echo "$as_me:$LINENO: checking for declaration of strtoull" >&5 | |
f73dda09 JA |
13741 | echo $ECHO_N "checking for declaration of strtoull... $ECHO_C" >&6 |
13742 | if test "${bash_cv_decl_strtoull+set}" = set; then | |
13743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13744 | else | |
13745 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
13746 | /* confdefs.h. */ |
13747 | _ACEOF | |
13748 | cat confdefs.h >>conftest.$ac_ext | |
13749 | cat >>conftest.$ac_ext <<_ACEOF | |
13750 | /* end confdefs.h. */ | |
f73dda09 JA |
13751 | |
13752 | #if STDC_HEADERS | |
13753 | # include <stdlib.h> | |
13754 | #endif | |
13755 | #if HAVE_INTTYPES_H | |
13756 | # include <inttypes.h> | |
13757 | #endif | |
13758 | ||
13759 | int | |
13760 | main () | |
13761 | { | |
13762 | return !strtoull; | |
13763 | ; | |
13764 | return 0; | |
13765 | } | |
13766 | _ACEOF | |
13767 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
13768 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13769 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 13770 | ac_status=$? |
a82a04b3 CR |
13771 | grep -v '^ *+' conftest.er1 >conftest.err |
13772 | rm -f conftest.er1 | |
13773 | cat conftest.err >&5 | |
13774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 13775 | (exit $ac_status); } && |
a82a04b3 CR |
13776 | { ac_try='test -z "$ac_c_werror_flag" |
13777 | || test ! -s conftest.err' | |
13778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
13779 | (eval $ac_try) 2>&5 |
13780 | ac_status=$? | |
a82a04b3 CR |
13781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13782 | (exit $ac_status); }; } && | |
13783 | { ac_try='test -s conftest$ac_exeext' | |
13784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13785 | (eval $ac_try) 2>&5 | |
13786 | ac_status=$? | |
13787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
13788 | (exit $ac_status); }; }; then |
13789 | bash_cv_decl_strtoull=yes | |
13790 | else | |
13791 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
13792 | sed 's/^/| /' conftest.$ac_ext >&5 |
13793 | ||
f73dda09 JA |
13794 | bash_cv_decl_strtoull=no |
13795 | fi | |
a82a04b3 CR |
13796 | rm -f conftest.err conftest.$ac_objext \ |
13797 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 13798 | fi |
a82a04b3 | 13799 | echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5 |
f73dda09 JA |
13800 | echo "${ECHO_T}$bash_cv_decl_strtoull" >&6 |
13801 | bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13802 | if test $bash_cv_decl_strtoull = yes; then | |
a82a04b3 | 13803 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 13804 | #define $bash_tr_func 1 |
a82a04b3 | 13805 | _ACEOF |
f73dda09 JA |
13806 | |
13807 | else | |
a82a04b3 | 13808 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 13809 | #define $bash_tr_func 0 |
a82a04b3 | 13810 | _ACEOF |
f73dda09 JA |
13811 | |
13812 | fi | |
13813 | ||
a82a04b3 CR |
13814 | |
13815 | ||
13816 | ||
13817 | echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5 | |
f73dda09 JA |
13818 | echo $ECHO_N "checking for declaration of strtoumax... $ECHO_C" >&6 |
13819 | if test "${bash_cv_decl_strtoumax+set}" = set; then | |
13820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13821 | else | |
13822 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
13823 | /* confdefs.h. */ |
13824 | _ACEOF | |
13825 | cat confdefs.h >>conftest.$ac_ext | |
13826 | cat >>conftest.$ac_ext <<_ACEOF | |
13827 | /* end confdefs.h. */ | |
f73dda09 JA |
13828 | |
13829 | #if STDC_HEADERS | |
13830 | # include <stdlib.h> | |
13831 | #endif | |
13832 | #if HAVE_INTTYPES_H | |
13833 | # include <inttypes.h> | |
13834 | #endif | |
13835 | ||
13836 | int | |
13837 | main () | |
13838 | { | |
13839 | return !strtoumax; | |
13840 | ; | |
13841 | return 0; | |
13842 | } | |
13843 | _ACEOF | |
13844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
13845 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13846 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 13847 | ac_status=$? |
a82a04b3 CR |
13848 | grep -v '^ *+' conftest.er1 >conftest.err |
13849 | rm -f conftest.er1 | |
13850 | cat conftest.err >&5 | |
13851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 13852 | (exit $ac_status); } && |
a82a04b3 CR |
13853 | { ac_try='test -z "$ac_c_werror_flag" |
13854 | || test ! -s conftest.err' | |
13855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
13856 | (eval $ac_try) 2>&5 |
13857 | ac_status=$? | |
a82a04b3 CR |
13858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13859 | (exit $ac_status); }; } && | |
13860 | { ac_try='test -s conftest$ac_exeext' | |
13861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13862 | (eval $ac_try) 2>&5 | |
13863 | ac_status=$? | |
13864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
13865 | (exit $ac_status); }; }; then |
13866 | bash_cv_decl_strtoumax=yes | |
13867 | else | |
13868 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
13869 | sed 's/^/| /' conftest.$ac_ext >&5 |
13870 | ||
f73dda09 JA |
13871 | bash_cv_decl_strtoumax=no |
13872 | fi | |
a82a04b3 CR |
13873 | rm -f conftest.err conftest.$ac_objext \ |
13874 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 13875 | fi |
a82a04b3 | 13876 | echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5 |
f73dda09 JA |
13877 | echo "${ECHO_T}$bash_cv_decl_strtoumax" >&6 |
13878 | bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13879 | if test $bash_cv_decl_strtoumax = yes; then | |
a82a04b3 | 13880 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 13881 | #define $bash_tr_func 1 |
a82a04b3 | 13882 | _ACEOF |
f73dda09 JA |
13883 | |
13884 | else | |
a82a04b3 | 13885 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 13886 | #define $bash_tr_func 0 |
a82a04b3 | 13887 | _ACEOF |
f73dda09 JA |
13888 | |
13889 | fi | |
13890 | ||
a82a04b3 CR |
13891 | |
13892 | ||
13893 | ||
13894 | ||
13895 | for ac_header in stdlib.h sys/time.h unistd.h | |
f73dda09 JA |
13896 | do |
13897 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a82a04b3 CR |
13898 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13899 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
f73dda09 JA |
13900 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
13901 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a82a04b3 CR |
13903 | fi |
13904 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13905 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
545f34cf | 13906 | else |
a82a04b3 CR |
13907 | # Is the header compilable? |
13908 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13909 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13910 | cat >conftest.$ac_ext <<_ACEOF | |
13911 | /* confdefs.h. */ | |
13912 | _ACEOF | |
13913 | cat confdefs.h >>conftest.$ac_ext | |
13914 | cat >>conftest.$ac_ext <<_ACEOF | |
13915 | /* end confdefs.h. */ | |
13916 | $ac_includes_default | |
13917 | #include <$ac_header> | |
13918 | _ACEOF | |
13919 | rm -f conftest.$ac_objext | |
13920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13921 | (eval $ac_compile) 2>conftest.er1 | |
13922 | ac_status=$? | |
13923 | grep -v '^ *+' conftest.er1 >conftest.err | |
13924 | rm -f conftest.er1 | |
13925 | cat conftest.err >&5 | |
13926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13927 | (exit $ac_status); } && | |
13928 | { ac_try='test -z "$ac_c_werror_flag" | |
13929 | || test ! -s conftest.err' | |
13930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13931 | (eval $ac_try) 2>&5 | |
13932 | ac_status=$? | |
13933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13934 | (exit $ac_status); }; } && | |
13935 | { ac_try='test -s conftest.$ac_objext' | |
13936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13937 | (eval $ac_try) 2>&5 | |
13938 | ac_status=$? | |
13939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13940 | (exit $ac_status); }; }; then | |
13941 | ac_header_compiler=yes | |
13942 | else | |
13943 | echo "$as_me: failed program was:" >&5 | |
13944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13945 | ||
13946 | ac_header_compiler=no | |
13947 | fi | |
13948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13949 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13950 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13951 | ||
13952 | # Is the header present? | |
13953 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13954 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13955 | cat >conftest.$ac_ext <<_ACEOF | |
13956 | /* confdefs.h. */ | |
13957 | _ACEOF | |
13958 | cat confdefs.h >>conftest.$ac_ext | |
13959 | cat >>conftest.$ac_ext <<_ACEOF | |
13960 | /* end confdefs.h. */ | |
f73dda09 JA |
13961 | #include <$ac_header> |
13962 | _ACEOF | |
a82a04b3 | 13963 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f73dda09 JA |
13964 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13965 | ac_status=$? | |
a82a04b3 | 13966 | grep -v '^ *+' conftest.er1 >conftest.err |
f73dda09 JA |
13967 | rm -f conftest.er1 |
13968 | cat conftest.err >&5 | |
a82a04b3 | 13969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
13970 | (exit $ac_status); } >/dev/null; then |
13971 | if test -s conftest.err; then | |
13972 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a82a04b3 | 13973 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f73dda09 JA |
13974 | else |
13975 | ac_cpp_err= | |
13976 | fi | |
13977 | else | |
13978 | ac_cpp_err=yes | |
13979 | fi | |
13980 | if test -z "$ac_cpp_err"; then | |
a82a04b3 | 13981 | ac_header_preproc=yes |
f73dda09 JA |
13982 | else |
13983 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
13984 | sed 's/^/| /' conftest.$ac_ext >&5 |
13985 | ||
13986 | ac_header_preproc=no | |
f73dda09 JA |
13987 | fi |
13988 | rm -f conftest.err conftest.$ac_ext | |
a82a04b3 CR |
13989 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13990 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13991 | ||
13992 | # So? What about this header? | |
13993 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13994 | yes:no: ) | |
13995 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13996 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13997 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13998 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13999 | ac_header_preproc=yes | |
14000 | ;; | |
14001 | no:yes:* ) | |
14002 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14003 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14004 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14005 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14006 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14007 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14008 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14009 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14010 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14011 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14012 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14013 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
14014 | ( | |
14015 | cat <<\_ASBOX | |
14016 | ## ------------------------------- ## | |
14017 | ## Report this to bug-bash@gnu.org ## | |
14018 | ## ------------------------------- ## | |
14019 | _ASBOX | |
14020 | ) | | |
14021 | sed "s/^/$as_me: WARNING: /" >&2 | |
14022 | ;; | |
14023 | esac | |
14024 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14025 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14026 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14028 | else | |
14029 | eval "$as_ac_Header=\$ac_header_preproc" | |
f73dda09 | 14030 | fi |
a82a04b3 | 14031 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f73dda09 | 14032 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
a82a04b3 CR |
14033 | |
14034 | fi | |
f73dda09 | 14035 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
a82a04b3 | 14036 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 14037 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a82a04b3 | 14038 | _ACEOF |
f73dda09 JA |
14039 | |
14040 | fi | |
a82a04b3 | 14041 | |
f73dda09 JA |
14042 | done |
14043 | ||
a82a04b3 | 14044 | |
7117c2d2 | 14045 | for ac_func in alarm |
f73dda09 JA |
14046 | do |
14047 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a82a04b3 | 14048 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
f73dda09 JA |
14049 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
14050 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14052 | else | |
14053 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
14054 | /* confdefs.h. */ |
14055 | _ACEOF | |
14056 | cat confdefs.h >>conftest.$ac_ext | |
14057 | cat >>conftest.$ac_ext <<_ACEOF | |
14058 | /* end confdefs.h. */ | |
14059 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14060 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14061 | #define $ac_func innocuous_$ac_func | |
14062 | ||
f73dda09 | 14063 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
14064 | which can conflict with char $ac_func (); below. |
14065 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14066 | <limits.h> exists even on freestanding compilers. */ | |
14067 | ||
14068 | #ifdef __STDC__ | |
14069 | # include <limits.h> | |
14070 | #else | |
14071 | # include <assert.h> | |
14072 | #endif | |
14073 | ||
14074 | #undef $ac_func | |
14075 | ||
f73dda09 JA |
14076 | /* Override any gcc2 internal prototype to avoid an error. */ |
14077 | #ifdef __cplusplus | |
14078 | extern "C" | |
a82a04b3 | 14079 | { |
f73dda09 JA |
14080 | #endif |
14081 | /* We use char because int might match the return type of a gcc2 | |
14082 | builtin and then its argument prototype would still apply. */ | |
14083 | char $ac_func (); | |
f73dda09 JA |
14084 | /* The GNU C library defines this for functions which it implements |
14085 | to always fail with ENOSYS. Some functions are actually named | |
14086 | something starting with __ and the normal name is an alias. */ | |
14087 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14088 | choke me | |
14089 | #else | |
a82a04b3 CR |
14090 | char (*f) () = $ac_func; |
14091 | #endif | |
14092 | #ifdef __cplusplus | |
14093 | } | |
f73dda09 JA |
14094 | #endif |
14095 | ||
a82a04b3 CR |
14096 | int |
14097 | main () | |
14098 | { | |
14099 | return f != $ac_func; | |
f73dda09 JA |
14100 | ; |
14101 | return 0; | |
14102 | } | |
14103 | _ACEOF | |
14104 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
14105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14106 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 14107 | ac_status=$? |
a82a04b3 CR |
14108 | grep -v '^ *+' conftest.er1 >conftest.err |
14109 | rm -f conftest.er1 | |
14110 | cat conftest.err >&5 | |
14111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 14112 | (exit $ac_status); } && |
a82a04b3 CR |
14113 | { ac_try='test -z "$ac_c_werror_flag" |
14114 | || test ! -s conftest.err' | |
14115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14116 | (eval $ac_try) 2>&5 | |
14117 | ac_status=$? | |
14118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14119 | (exit $ac_status); }; } && | |
14120 | { ac_try='test -s conftest$ac_exeext' | |
14121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
14122 | (eval $ac_try) 2>&5 |
14123 | ac_status=$? | |
a82a04b3 | 14124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
14125 | (exit $ac_status); }; }; then |
14126 | eval "$as_ac_var=yes" | |
14127 | else | |
14128 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
14129 | sed 's/^/| /' conftest.$ac_ext >&5 |
14130 | ||
f73dda09 JA |
14131 | eval "$as_ac_var=no" |
14132 | fi | |
a82a04b3 CR |
14133 | rm -f conftest.err conftest.$ac_objext \ |
14134 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 14135 | fi |
a82a04b3 | 14136 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
f73dda09 JA |
14137 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
14138 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a82a04b3 | 14139 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 14140 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a82a04b3 | 14141 | _ACEOF |
f73dda09 JA |
14142 | |
14143 | fi | |
14144 | done | |
14145 | ||
a82a04b3 | 14146 | echo "$as_me:$LINENO: checking for working mktime" >&5 |
7117c2d2 JA |
14147 | echo $ECHO_N "checking for working mktime... $ECHO_C" >&6 |
14148 | if test "${ac_cv_func_working_mktime+set}" = set; then | |
f73dda09 JA |
14149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14150 | else | |
7117c2d2 JA |
14151 | if test "$cross_compiling" = yes; then |
14152 | ac_cv_func_working_mktime=no | |
14153 | else | |
14154 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
14155 | /* confdefs.h. */ |
14156 | _ACEOF | |
14157 | cat confdefs.h >>conftest.$ac_ext | |
14158 | cat >>conftest.$ac_ext <<_ACEOF | |
14159 | /* end confdefs.h. */ | |
7117c2d2 JA |
14160 | /* Test program from Paul Eggert and Tony Leneis. */ |
14161 | #if TIME_WITH_SYS_TIME | |
14162 | # include <sys/time.h> | |
14163 | # include <time.h> | |
14164 | #else | |
14165 | # if HAVE_SYS_TIME_H | |
14166 | # include <sys/time.h> | |
14167 | # else | |
14168 | # include <time.h> | |
14169 | # endif | |
14170 | #endif | |
f73dda09 | 14171 | |
a82a04b3 CR |
14172 | #if HAVE_STDLIB_H |
14173 | # include <stdlib.h> | |
14174 | #endif | |
14175 | ||
7117c2d2 JA |
14176 | #if HAVE_UNISTD_H |
14177 | # include <unistd.h> | |
f73dda09 | 14178 | #endif |
7117c2d2 JA |
14179 | |
14180 | #if !HAVE_ALARM | |
14181 | # define alarm(X) /* empty */ | |
14182 | #endif | |
14183 | ||
14184 | /* Work around redefinition to rpl_putenv by other config tests. */ | |
14185 | #undef putenv | |
14186 | ||
14187 | static time_t time_t_max; | |
a82a04b3 | 14188 | static time_t time_t_min; |
7117c2d2 JA |
14189 | |
14190 | /* Values we'll use to set the TZ environment variable. */ | |
a82a04b3 CR |
14191 | static char *tz_strings[] = { |
14192 | (char *) 0, "TZ=GMT0", "TZ=JST-9", | |
7117c2d2 JA |
14193 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" |
14194 | }; | |
14195 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
14196 | ||
14197 | /* Fail if mktime fails to convert a date in the spring-forward gap. | |
14198 | Based on a problem report from Andreas Jaeger. */ | |
14199 | static void | |
14200 | spring_forward_gap () | |
14201 | { | |
14202 | /* glibc (up to about 1998-10-07) failed this test. */ | |
14203 | struct tm tm; | |
14204 | ||
14205 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
14206 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
14207 | on systems that don't support the Olson extension, or don't have the | |
14208 | full zoneinfo tables installed. */ | |
14209 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
14210 | ||
14211 | tm.tm_year = 98; | |
14212 | tm.tm_mon = 3; | |
14213 | tm.tm_mday = 5; | |
14214 | tm.tm_hour = 2; | |
14215 | tm.tm_min = 0; | |
14216 | tm.tm_sec = 0; | |
14217 | tm.tm_isdst = -1; | |
14218 | if (mktime (&tm) == (time_t)-1) | |
14219 | exit (1); | |
14220 | } | |
14221 | ||
14222 | static void | |
a82a04b3 | 14223 | mktime_test1 (now) |
7117c2d2 JA |
14224 | time_t now; |
14225 | { | |
14226 | struct tm *lt; | |
14227 | if ((lt = localtime (&now)) && mktime (lt) != now) | |
14228 | exit (1); | |
a82a04b3 CR |
14229 | } |
14230 | ||
14231 | static void | |
14232 | mktime_test (now) | |
14233 | time_t now; | |
14234 | { | |
14235 | mktime_test1 (now); | |
14236 | mktime_test1 ((time_t) (time_t_max - now)); | |
14237 | mktime_test1 ((time_t) (time_t_min + now)); | |
7117c2d2 JA |
14238 | } |
14239 | ||
14240 | static void | |
14241 | irix_6_4_bug () | |
14242 | { | |
14243 | /* Based on code from Ariel Faigon. */ | |
14244 | struct tm tm; | |
14245 | tm.tm_year = 96; | |
14246 | tm.tm_mon = 3; | |
14247 | tm.tm_mday = 0; | |
14248 | tm.tm_hour = 0; | |
14249 | tm.tm_min = 0; | |
14250 | tm.tm_sec = 0; | |
14251 | tm.tm_isdst = -1; | |
14252 | mktime (&tm); | |
14253 | if (tm.tm_mon != 2 || tm.tm_mday != 31) | |
14254 | exit (1); | |
14255 | } | |
14256 | ||
14257 | static void | |
14258 | bigtime_test (j) | |
14259 | int j; | |
14260 | { | |
14261 | struct tm tm; | |
14262 | time_t now; | |
14263 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
14264 | now = mktime (&tm); | |
14265 | if (now != (time_t) -1) | |
14266 | { | |
14267 | struct tm *lt = localtime (&now); | |
14268 | if (! (lt | |
14269 | && lt->tm_year == tm.tm_year | |
14270 | && lt->tm_mon == tm.tm_mon | |
14271 | && lt->tm_mday == tm.tm_mday | |
14272 | && lt->tm_hour == tm.tm_hour | |
14273 | && lt->tm_min == tm.tm_min | |
14274 | && lt->tm_sec == tm.tm_sec | |
14275 | && lt->tm_yday == tm.tm_yday | |
14276 | && lt->tm_wday == tm.tm_wday | |
14277 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
14278 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
14279 | exit (1); | |
14280 | } | |
14281 | } | |
14282 | ||
f73dda09 JA |
14283 | int |
14284 | main () | |
14285 | { | |
7117c2d2 JA |
14286 | time_t t, delta; |
14287 | int i, j; | |
14288 | ||
14289 | /* This test makes some buggy mktime implementations loop. | |
14290 | Give up after 60 seconds; a mktime slower than that | |
14291 | isn't worth using anyway. */ | |
14292 | alarm (60); | |
14293 | ||
14294 | for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
14295 | continue; | |
14296 | time_t_max--; | |
a82a04b3 CR |
14297 | if ((time_t) -1 < 0) |
14298 | for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2) | |
14299 | continue; | |
7117c2d2 JA |
14300 | delta = time_t_max / 997; /* a suitable prime number */ |
14301 | for (i = 0; i < N_STRINGS; i++) | |
14302 | { | |
14303 | if (tz_strings[i]) | |
14304 | putenv (tz_strings[i]); | |
14305 | ||
14306 | for (t = 0; t <= time_t_max - delta; t += delta) | |
14307 | mktime_test (t); | |
a82a04b3 CR |
14308 | mktime_test ((time_t) 1); |
14309 | mktime_test ((time_t) (60 * 60)); | |
14310 | mktime_test ((time_t) (60 * 60 * 24)); | |
7117c2d2 JA |
14311 | |
14312 | for (j = 1; 0 < j; j *= 2) | |
a82a04b3 | 14313 | bigtime_test (j); |
7117c2d2 JA |
14314 | bigtime_test (j - 1); |
14315 | } | |
14316 | irix_6_4_bug (); | |
14317 | spring_forward_gap (); | |
14318 | exit (0); | |
f73dda09 JA |
14319 | } |
14320 | _ACEOF | |
7117c2d2 | 14321 | rm -f conftest$ac_exeext |
a82a04b3 | 14322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
14323 | (eval $ac_link) 2>&5 |
14324 | ac_status=$? | |
a82a04b3 | 14325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7117c2d2 | 14326 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 14327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
14328 | (eval $ac_try) 2>&5 |
14329 | ac_status=$? | |
a82a04b3 | 14330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 14331 | (exit $ac_status); }; }; then |
7117c2d2 JA |
14332 | ac_cv_func_working_mktime=yes |
14333 | else | |
14334 | echo "$as_me: program exited with status $ac_status" >&5 | |
14335 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
14336 | sed 's/^/| /' conftest.$ac_ext >&5 |
14337 | ||
14338 | ( exit $ac_status ) | |
7117c2d2 JA |
14339 | ac_cv_func_working_mktime=no |
14340 | fi | |
a82a04b3 | 14341 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
7117c2d2 JA |
14342 | fi |
14343 | fi | |
a82a04b3 | 14344 | echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 |
7117c2d2 JA |
14345 | echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 |
14346 | if test $ac_cv_func_working_mktime = no; then | |
a82a04b3 CR |
14347 | case $LIBOBJS in |
14348 | "mktime.$ac_objext" | \ | |
14349 | *" mktime.$ac_objext" | \ | |
14350 | "mktime.$ac_objext "* | \ | |
14351 | *" mktime.$ac_objext "* ) ;; | |
14352 | *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;; | |
14353 | esac | |
14354 | ||
7117c2d2 JA |
14355 | fi |
14356 | ||
a82a04b3 CR |
14357 | |
14358 | ||
14359 | ||
14360 | ||
14361 | ||
14362 | ||
14363 | ||
5e13499c CR |
14364 | for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h |
14365 | do | |
14366 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a82a04b3 CR |
14367 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14368 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5e13499c CR |
14369 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
14370 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a82a04b3 CR |
14372 | fi |
14373 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14374 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
545f34cf | 14375 | else |
a82a04b3 CR |
14376 | # Is the header compilable? |
14377 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14378 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14379 | cat >conftest.$ac_ext <<_ACEOF | |
14380 | /* confdefs.h. */ | |
14381 | _ACEOF | |
14382 | cat confdefs.h >>conftest.$ac_ext | |
14383 | cat >>conftest.$ac_ext <<_ACEOF | |
14384 | /* end confdefs.h. */ | |
14385 | $ac_includes_default | |
14386 | #include <$ac_header> | |
14387 | _ACEOF | |
14388 | rm -f conftest.$ac_objext | |
14389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14390 | (eval $ac_compile) 2>conftest.er1 | |
14391 | ac_status=$? | |
14392 | grep -v '^ *+' conftest.er1 >conftest.err | |
14393 | rm -f conftest.er1 | |
14394 | cat conftest.err >&5 | |
14395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14396 | (exit $ac_status); } && | |
14397 | { ac_try='test -z "$ac_c_werror_flag" | |
14398 | || test ! -s conftest.err' | |
14399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14400 | (eval $ac_try) 2>&5 | |
14401 | ac_status=$? | |
14402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14403 | (exit $ac_status); }; } && | |
14404 | { ac_try='test -s conftest.$ac_objext' | |
14405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14406 | (eval $ac_try) 2>&5 | |
14407 | ac_status=$? | |
14408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14409 | (exit $ac_status); }; }; then | |
14410 | ac_header_compiler=yes | |
14411 | else | |
14412 | echo "$as_me: failed program was:" >&5 | |
14413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14414 | ||
14415 | ac_header_compiler=no | |
14416 | fi | |
14417 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14418 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14419 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14420 | ||
14421 | # Is the header present? | |
14422 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14423 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14424 | cat >conftest.$ac_ext <<_ACEOF | |
14425 | /* confdefs.h. */ | |
14426 | _ACEOF | |
14427 | cat confdefs.h >>conftest.$ac_ext | |
14428 | cat >>conftest.$ac_ext <<_ACEOF | |
14429 | /* end confdefs.h. */ | |
5e13499c CR |
14430 | #include <$ac_header> |
14431 | _ACEOF | |
a82a04b3 | 14432 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5e13499c CR |
14433 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
14434 | ac_status=$? | |
a82a04b3 | 14435 | grep -v '^ *+' conftest.er1 >conftest.err |
5e13499c CR |
14436 | rm -f conftest.er1 |
14437 | cat conftest.err >&5 | |
a82a04b3 | 14438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c CR |
14439 | (exit $ac_status); } >/dev/null; then |
14440 | if test -s conftest.err; then | |
14441 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a82a04b3 | 14442 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
5e13499c CR |
14443 | else |
14444 | ac_cpp_err= | |
14445 | fi | |
14446 | else | |
14447 | ac_cpp_err=yes | |
14448 | fi | |
14449 | if test -z "$ac_cpp_err"; then | |
a82a04b3 | 14450 | ac_header_preproc=yes |
5e13499c CR |
14451 | else |
14452 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
14453 | sed 's/^/| /' conftest.$ac_ext >&5 |
14454 | ||
14455 | ac_header_preproc=no | |
5e13499c CR |
14456 | fi |
14457 | rm -f conftest.err conftest.$ac_ext | |
a82a04b3 CR |
14458 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14459 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14460 | ||
14461 | # So? What about this header? | |
14462 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14463 | yes:no: ) | |
14464 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14465 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14466 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14467 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14468 | ac_header_preproc=yes | |
14469 | ;; | |
14470 | no:yes:* ) | |
14471 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14472 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14473 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14474 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14475 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14476 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14477 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14478 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14479 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14480 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14481 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14482 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
14483 | ( | |
14484 | cat <<\_ASBOX | |
14485 | ## ------------------------------- ## | |
14486 | ## Report this to bug-bash@gnu.org ## | |
14487 | ## ------------------------------- ## | |
14488 | _ASBOX | |
14489 | ) | | |
14490 | sed "s/^/$as_me: WARNING: /" >&2 | |
14491 | ;; | |
14492 | esac | |
14493 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14494 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14495 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14497 | else | |
14498 | eval "$as_ac_Header=\$ac_header_preproc" | |
5e13499c | 14499 | fi |
a82a04b3 | 14500 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5e13499c | 14501 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
a82a04b3 CR |
14502 | |
14503 | fi | |
5e13499c | 14504 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
a82a04b3 | 14505 | cat >>confdefs.h <<_ACEOF |
5e13499c | 14506 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a82a04b3 | 14507 | _ACEOF |
5e13499c CR |
14508 | |
14509 | fi | |
a82a04b3 | 14510 | |
5e13499c CR |
14511 | done |
14512 | ||
a82a04b3 CR |
14513 | |
14514 | ||
14515 | ||
5e13499c | 14516 | for ac_header in stdlib.h unistd.h |
7117c2d2 JA |
14517 | do |
14518 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a82a04b3 CR |
14519 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14520 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7117c2d2 JA |
14521 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
14522 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a82a04b3 CR |
14524 | fi |
14525 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14526 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
545f34cf | 14527 | else |
a82a04b3 CR |
14528 | # Is the header compilable? |
14529 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14530 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14531 | cat >conftest.$ac_ext <<_ACEOF | |
14532 | /* confdefs.h. */ | |
14533 | _ACEOF | |
14534 | cat confdefs.h >>conftest.$ac_ext | |
14535 | cat >>conftest.$ac_ext <<_ACEOF | |
14536 | /* end confdefs.h. */ | |
14537 | $ac_includes_default | |
14538 | #include <$ac_header> | |
14539 | _ACEOF | |
14540 | rm -f conftest.$ac_objext | |
14541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14542 | (eval $ac_compile) 2>conftest.er1 | |
14543 | ac_status=$? | |
14544 | grep -v '^ *+' conftest.er1 >conftest.err | |
14545 | rm -f conftest.er1 | |
14546 | cat conftest.err >&5 | |
14547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14548 | (exit $ac_status); } && | |
14549 | { ac_try='test -z "$ac_c_werror_flag" | |
14550 | || test ! -s conftest.err' | |
14551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14552 | (eval $ac_try) 2>&5 | |
14553 | ac_status=$? | |
14554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14555 | (exit $ac_status); }; } && | |
14556 | { ac_try='test -s conftest.$ac_objext' | |
14557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14558 | (eval $ac_try) 2>&5 | |
14559 | ac_status=$? | |
14560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14561 | (exit $ac_status); }; }; then | |
14562 | ac_header_compiler=yes | |
14563 | else | |
14564 | echo "$as_me: failed program was:" >&5 | |
14565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14566 | ||
14567 | ac_header_compiler=no | |
14568 | fi | |
14569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14570 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14571 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14572 | ||
14573 | # Is the header present? | |
14574 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14575 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14576 | cat >conftest.$ac_ext <<_ACEOF | |
14577 | /* confdefs.h. */ | |
14578 | _ACEOF | |
14579 | cat confdefs.h >>conftest.$ac_ext | |
14580 | cat >>conftest.$ac_ext <<_ACEOF | |
14581 | /* end confdefs.h. */ | |
7117c2d2 JA |
14582 | #include <$ac_header> |
14583 | _ACEOF | |
a82a04b3 | 14584 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
7117c2d2 JA |
14585 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
14586 | ac_status=$? | |
a82a04b3 | 14587 | grep -v '^ *+' conftest.er1 >conftest.err |
7117c2d2 JA |
14588 | rm -f conftest.er1 |
14589 | cat conftest.err >&5 | |
a82a04b3 | 14590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7117c2d2 JA |
14591 | (exit $ac_status); } >/dev/null; then |
14592 | if test -s conftest.err; then | |
14593 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a82a04b3 | 14594 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
7117c2d2 JA |
14595 | else |
14596 | ac_cpp_err= | |
14597 | fi | |
14598 | else | |
14599 | ac_cpp_err=yes | |
14600 | fi | |
14601 | if test -z "$ac_cpp_err"; then | |
a82a04b3 | 14602 | ac_header_preproc=yes |
7117c2d2 JA |
14603 | else |
14604 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
14605 | sed 's/^/| /' conftest.$ac_ext >&5 |
14606 | ||
14607 | ac_header_preproc=no | |
7117c2d2 JA |
14608 | fi |
14609 | rm -f conftest.err conftest.$ac_ext | |
a82a04b3 CR |
14610 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14611 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14612 | ||
14613 | # So? What about this header? | |
14614 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14615 | yes:no: ) | |
14616 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14617 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14618 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14619 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14620 | ac_header_preproc=yes | |
14621 | ;; | |
14622 | no:yes:* ) | |
14623 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14624 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14625 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14626 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14627 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14628 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14629 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14630 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14631 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14632 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14633 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14634 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
14635 | ( | |
14636 | cat <<\_ASBOX | |
14637 | ## ------------------------------- ## | |
14638 | ## Report this to bug-bash@gnu.org ## | |
14639 | ## ------------------------------- ## | |
14640 | _ASBOX | |
14641 | ) | | |
14642 | sed "s/^/$as_me: WARNING: /" >&2 | |
14643 | ;; | |
14644 | esac | |
14645 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14646 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14647 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14649 | else | |
14650 | eval "$as_ac_Header=\$ac_header_preproc" | |
7117c2d2 | 14651 | fi |
a82a04b3 | 14652 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7117c2d2 | 14653 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
a82a04b3 CR |
14654 | |
14655 | fi | |
7117c2d2 | 14656 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
a82a04b3 | 14657 | cat >>confdefs.h <<_ACEOF |
7117c2d2 | 14658 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a82a04b3 | 14659 | _ACEOF |
7117c2d2 JA |
14660 | |
14661 | fi | |
a82a04b3 | 14662 | |
7117c2d2 JA |
14663 | done |
14664 | ||
a82a04b3 | 14665 | |
5e13499c | 14666 | for ac_func in getpagesize |
7117c2d2 JA |
14667 | do |
14668 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a82a04b3 | 14669 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7117c2d2 JA |
14670 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
14671 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14673 | else | |
14674 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
14675 | /* confdefs.h. */ |
14676 | _ACEOF | |
14677 | cat confdefs.h >>conftest.$ac_ext | |
14678 | cat >>conftest.$ac_ext <<_ACEOF | |
14679 | /* end confdefs.h. */ | |
14680 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14681 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14682 | #define $ac_func innocuous_$ac_func | |
14683 | ||
7117c2d2 | 14684 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
14685 | which can conflict with char $ac_func (); below. |
14686 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14687 | <limits.h> exists even on freestanding compilers. */ | |
14688 | ||
14689 | #ifdef __STDC__ | |
14690 | # include <limits.h> | |
14691 | #else | |
14692 | # include <assert.h> | |
14693 | #endif | |
14694 | ||
14695 | #undef $ac_func | |
14696 | ||
7117c2d2 JA |
14697 | /* Override any gcc2 internal prototype to avoid an error. */ |
14698 | #ifdef __cplusplus | |
14699 | extern "C" | |
a82a04b3 | 14700 | { |
7117c2d2 JA |
14701 | #endif |
14702 | /* We use char because int might match the return type of a gcc2 | |
14703 | builtin and then its argument prototype would still apply. */ | |
14704 | char $ac_func (); | |
7117c2d2 JA |
14705 | /* The GNU C library defines this for functions which it implements |
14706 | to always fail with ENOSYS. Some functions are actually named | |
14707 | something starting with __ and the normal name is an alias. */ | |
14708 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14709 | choke me | |
14710 | #else | |
a82a04b3 CR |
14711 | char (*f) () = $ac_func; |
14712 | #endif | |
14713 | #ifdef __cplusplus | |
14714 | } | |
7117c2d2 JA |
14715 | #endif |
14716 | ||
a82a04b3 CR |
14717 | int |
14718 | main () | |
14719 | { | |
14720 | return f != $ac_func; | |
7117c2d2 JA |
14721 | ; |
14722 | return 0; | |
14723 | } | |
14724 | _ACEOF | |
14725 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
14726 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14727 | (eval $ac_link) 2>conftest.er1 | |
7117c2d2 | 14728 | ac_status=$? |
a82a04b3 CR |
14729 | grep -v '^ *+' conftest.er1 >conftest.err |
14730 | rm -f conftest.er1 | |
14731 | cat conftest.err >&5 | |
14732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7117c2d2 | 14733 | (exit $ac_status); } && |
a82a04b3 CR |
14734 | { ac_try='test -z "$ac_c_werror_flag" |
14735 | || test ! -s conftest.err' | |
14736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7117c2d2 JA |
14737 | (eval $ac_try) 2>&5 |
14738 | ac_status=$? | |
a82a04b3 CR |
14739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14740 | (exit $ac_status); }; } && | |
14741 | { ac_try='test -s conftest$ac_exeext' | |
14742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14743 | (eval $ac_try) 2>&5 | |
14744 | ac_status=$? | |
14745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7117c2d2 JA |
14746 | (exit $ac_status); }; }; then |
14747 | eval "$as_ac_var=yes" | |
14748 | else | |
14749 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
14750 | sed 's/^/| /' conftest.$ac_ext >&5 |
14751 | ||
7117c2d2 JA |
14752 | eval "$as_ac_var=no" |
14753 | fi | |
a82a04b3 CR |
14754 | rm -f conftest.err conftest.$ac_objext \ |
14755 | conftest$ac_exeext conftest.$ac_ext | |
7117c2d2 | 14756 | fi |
a82a04b3 | 14757 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
7117c2d2 JA |
14758 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
14759 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a82a04b3 | 14760 | cat >>confdefs.h <<_ACEOF |
7117c2d2 | 14761 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a82a04b3 | 14762 | _ACEOF |
7117c2d2 JA |
14763 | |
14764 | fi | |
14765 | done | |
14766 | ||
a82a04b3 | 14767 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
5e13499c CR |
14768 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
14769 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
7117c2d2 JA |
14770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14771 | else | |
5e13499c CR |
14772 | if test "$cross_compiling" = yes; then |
14773 | ac_cv_func_mmap_fixed_mapped=no | |
14774 | else | |
14775 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
14776 | /* confdefs.h. */ |
14777 | _ACEOF | |
14778 | cat confdefs.h >>conftest.$ac_ext | |
14779 | cat >>conftest.$ac_ext <<_ACEOF | |
14780 | /* end confdefs.h. */ | |
5e13499c | 14781 | $ac_includes_default |
a82a04b3 CR |
14782 | /* malloc might have been renamed as rpl_malloc. */ |
14783 | #undef malloc | |
14784 | ||
5e13499c CR |
14785 | /* Thanks to Mike Haertel and Jim Avera for this test. |
14786 | Here is a matrix of mmap possibilities: | |
14787 | mmap private not fixed | |
14788 | mmap private fixed at somewhere currently unmapped | |
14789 | mmap private fixed at somewhere already mapped | |
14790 | mmap shared not fixed | |
14791 | mmap shared fixed at somewhere currently unmapped | |
14792 | mmap shared fixed at somewhere already mapped | |
14793 | For private mappings, we should verify that changes cannot be read() | |
14794 | back from the file, nor mmap's back from the file at a different | |
14795 | address. (There have been systems where private was not correctly | |
14796 | implemented like the infamous i386 svr4.0, and systems where the | |
14797 | VM page cache was not coherent with the file system buffer cache | |
14798 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
14799 | For shared mappings, we should conversely verify that changes get | |
a82a04b3 | 14800 | propagated back to all the places they're supposed to be. |
5e13499c CR |
14801 | |
14802 | Grep wants private fixed already mapped. | |
14803 | The main things grep needs to know about mmap are: | |
14804 | * does it exist and is it safe to write into the mmap'd area | |
14805 | * how to use it (BSD variants) */ | |
7117c2d2 | 14806 | |
5e13499c CR |
14807 | #include <fcntl.h> |
14808 | #include <sys/mman.h> | |
14809 | ||
14810 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
14811 | char *malloc (); | |
7117c2d2 | 14812 | #endif |
5e13499c CR |
14813 | |
14814 | /* This mess was copied from the GNU getpagesize.h. */ | |
14815 | #if !HAVE_GETPAGESIZE | |
14816 | /* Assume that all systems that can run configure have sys/param.h. */ | |
14817 | # if !HAVE_SYS_PARAM_H | |
14818 | # define HAVE_SYS_PARAM_H 1 | |
14819 | # endif | |
14820 | ||
14821 | # ifdef _SC_PAGESIZE | |
14822 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
14823 | # else /* no _SC_PAGESIZE */ | |
14824 | # if HAVE_SYS_PARAM_H | |
14825 | # include <sys/param.h> | |
14826 | # ifdef EXEC_PAGESIZE | |
14827 | # define getpagesize() EXEC_PAGESIZE | |
14828 | # else /* no EXEC_PAGESIZE */ | |
14829 | # ifdef NBPG | |
14830 | # define getpagesize() NBPG * CLSIZE | |
14831 | # ifndef CLSIZE | |
14832 | # define CLSIZE 1 | |
14833 | # endif /* no CLSIZE */ | |
14834 | # else /* no NBPG */ | |
14835 | # ifdef NBPC | |
14836 | # define getpagesize() NBPC | |
14837 | # else /* no NBPC */ | |
14838 | # ifdef PAGESIZE | |
14839 | # define getpagesize() PAGESIZE | |
14840 | # endif /* PAGESIZE */ | |
14841 | # endif /* no NBPC */ | |
14842 | # endif /* no NBPG */ | |
14843 | # endif /* no EXEC_PAGESIZE */ | |
14844 | # else /* no HAVE_SYS_PARAM_H */ | |
14845 | # define getpagesize() 8192 /* punt totally */ | |
14846 | # endif /* no HAVE_SYS_PARAM_H */ | |
14847 | # endif /* no _SC_PAGESIZE */ | |
14848 | ||
14849 | #endif /* no HAVE_GETPAGESIZE */ | |
14850 | ||
7117c2d2 JA |
14851 | int |
14852 | main () | |
14853 | { | |
5e13499c CR |
14854 | char *data, *data2, *data3; |
14855 | int i, pagesize; | |
14856 | int fd; | |
14857 | ||
14858 | pagesize = getpagesize (); | |
14859 | ||
14860 | /* First, make a file with some known garbage in it. */ | |
14861 | data = (char *) malloc (pagesize); | |
14862 | if (!data) | |
14863 | exit (1); | |
14864 | for (i = 0; i < pagesize; ++i) | |
14865 | *(data + i) = rand (); | |
14866 | umask (0); | |
14867 | fd = creat ("conftest.mmap", 0600); | |
14868 | if (fd < 0) | |
14869 | exit (1); | |
14870 | if (write (fd, data, pagesize) != pagesize) | |
14871 | exit (1); | |
14872 | close (fd); | |
14873 | ||
14874 | /* Next, try to mmap the file at a fixed address which already has | |
14875 | something else allocated at it. If we can, also make sure that | |
14876 | we see the same garbage. */ | |
14877 | fd = open ("conftest.mmap", O_RDWR); | |
14878 | if (fd < 0) | |
14879 | exit (1); | |
14880 | data2 = (char *) malloc (2 * pagesize); | |
14881 | if (!data2) | |
14882 | exit (1); | |
a82a04b3 | 14883 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
5e13499c | 14884 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
a82a04b3 | 14885 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
5e13499c CR |
14886 | exit (1); |
14887 | for (i = 0; i < pagesize; ++i) | |
14888 | if (*(data + i) != *(data2 + i)) | |
14889 | exit (1); | |
14890 | ||
14891 | /* Finally, make sure that changes to the mapped area do not | |
14892 | percolate back to the file as seen by read(). (This is a bug on | |
14893 | some variants of i386 svr4.0.) */ | |
14894 | for (i = 0; i < pagesize; ++i) | |
14895 | *(data2 + i) = *(data2 + i) + 1; | |
14896 | data3 = (char *) malloc (pagesize); | |
14897 | if (!data3) | |
14898 | exit (1); | |
14899 | if (read (fd, data3, pagesize) != pagesize) | |
14900 | exit (1); | |
14901 | for (i = 0; i < pagesize; ++i) | |
14902 | if (*(data + i) != *(data3 + i)) | |
14903 | exit (1); | |
14904 | close (fd); | |
14905 | exit (0); | |
7117c2d2 JA |
14906 | } |
14907 | _ACEOF | |
5e13499c | 14908 | rm -f conftest$ac_exeext |
a82a04b3 | 14909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7117c2d2 JA |
14910 | (eval $ac_link) 2>&5 |
14911 | ac_status=$? | |
a82a04b3 | 14912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e13499c | 14913 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 14914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7117c2d2 JA |
14915 | (eval $ac_try) 2>&5 |
14916 | ac_status=$? | |
a82a04b3 | 14917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7117c2d2 | 14918 | (exit $ac_status); }; }; then |
5e13499c | 14919 | ac_cv_func_mmap_fixed_mapped=yes |
f73dda09 | 14920 | else |
5e13499c CR |
14921 | echo "$as_me: program exited with status $ac_status" >&5 |
14922 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
14923 | sed 's/^/| /' conftest.$ac_ext >&5 |
14924 | ||
14925 | ( exit $ac_status ) | |
5e13499c | 14926 | ac_cv_func_mmap_fixed_mapped=no |
f73dda09 | 14927 | fi |
a82a04b3 | 14928 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 14929 | fi |
5e13499c | 14930 | fi |
a82a04b3 | 14931 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
5e13499c CR |
14932 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
14933 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
f73dda09 | 14934 | |
a82a04b3 | 14935 | cat >>confdefs.h <<\_ACEOF |
5e13499c | 14936 | #define HAVE_MMAP 1 |
a82a04b3 | 14937 | _ACEOF |
f73dda09 JA |
14938 | |
14939 | fi | |
e624d0f7 | 14940 | rm -f conftest.mmap |
545f34cf | 14941 | |
a82a04b3 CR |
14942 | |
14943 | ||
14944 | ||
14945 | ||
14946 | ||
14947 | ||
14948 | ||
14949 | ||
14950 | ||
5e13499c CR |
14951 | for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \ |
14952 | munmap stpcpy strcspn strdup | |
f73dda09 JA |
14953 | do |
14954 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a82a04b3 | 14955 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
f73dda09 JA |
14956 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
14957 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14959 | else | |
14960 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
14961 | /* confdefs.h. */ |
14962 | _ACEOF | |
14963 | cat confdefs.h >>conftest.$ac_ext | |
14964 | cat >>conftest.$ac_ext <<_ACEOF | |
14965 | /* end confdefs.h. */ | |
14966 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14967 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14968 | #define $ac_func innocuous_$ac_func | |
14969 | ||
f73dda09 | 14970 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
14971 | which can conflict with char $ac_func (); below. |
14972 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14973 | <limits.h> exists even on freestanding compilers. */ | |
14974 | ||
14975 | #ifdef __STDC__ | |
14976 | # include <limits.h> | |
14977 | #else | |
14978 | # include <assert.h> | |
14979 | #endif | |
14980 | ||
14981 | #undef $ac_func | |
14982 | ||
f73dda09 JA |
14983 | /* Override any gcc2 internal prototype to avoid an error. */ |
14984 | #ifdef __cplusplus | |
14985 | extern "C" | |
a82a04b3 | 14986 | { |
f73dda09 JA |
14987 | #endif |
14988 | /* We use char because int might match the return type of a gcc2 | |
14989 | builtin and then its argument prototype would still apply. */ | |
14990 | char $ac_func (); | |
f73dda09 JA |
14991 | /* The GNU C library defines this for functions which it implements |
14992 | to always fail with ENOSYS. Some functions are actually named | |
14993 | something starting with __ and the normal name is an alias. */ | |
14994 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14995 | choke me | |
14996 | #else | |
a82a04b3 CR |
14997 | char (*f) () = $ac_func; |
14998 | #endif | |
14999 | #ifdef __cplusplus | |
15000 | } | |
f73dda09 JA |
15001 | #endif |
15002 | ||
a82a04b3 CR |
15003 | int |
15004 | main () | |
15005 | { | |
15006 | return f != $ac_func; | |
f73dda09 JA |
15007 | ; |
15008 | return 0; | |
15009 | } | |
15010 | _ACEOF | |
15011 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
15012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
15013 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 15014 | ac_status=$? |
a82a04b3 CR |
15015 | grep -v '^ *+' conftest.er1 >conftest.err |
15016 | rm -f conftest.er1 | |
15017 | cat conftest.err >&5 | |
15018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 15019 | (exit $ac_status); } && |
a82a04b3 CR |
15020 | { ac_try='test -z "$ac_c_werror_flag" |
15021 | || test ! -s conftest.err' | |
15022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15023 | (eval $ac_try) 2>&5 | |
15024 | ac_status=$? | |
15025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15026 | (exit $ac_status); }; } && | |
15027 | { ac_try='test -s conftest$ac_exeext' | |
15028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
15029 | (eval $ac_try) 2>&5 |
15030 | ac_status=$? | |
a82a04b3 | 15031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
15032 | (exit $ac_status); }; }; then |
15033 | eval "$as_ac_var=yes" | |
15034 | else | |
15035 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
15036 | sed 's/^/| /' conftest.$ac_ext >&5 |
15037 | ||
f73dda09 JA |
15038 | eval "$as_ac_var=no" |
15039 | fi | |
a82a04b3 CR |
15040 | rm -f conftest.err conftest.$ac_objext \ |
15041 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 15042 | fi |
a82a04b3 | 15043 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
f73dda09 JA |
15044 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
15045 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a82a04b3 | 15046 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 15047 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a82a04b3 | 15048 | _ACEOF |
f73dda09 | 15049 | |
ccc6cda3 | 15050 | fi |
f73dda09 JA |
15051 | done |
15052 | ||
a82a04b3 | 15053 | |
12d937f9 | 15054 | INTL_DEP= INTL_INC= LIBINTL_H= |
5e13499c CR |
15055 | if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then |
15056 | INTL_DEP='${INTL_LIBDIR}/libintl.a' | |
12d937f9 CR |
15057 | INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}' |
15058 | LIBINTL_H='${INTL_BUILDDIR}/libintl.h' | |
ccc6cda3 | 15059 | fi |
f73dda09 | 15060 | |
a82a04b3 CR |
15061 | |
15062 | ||
15063 | ||
15064 | ||
15065 | ||
15066 | ||
7117c2d2 JA |
15067 | for ac_header in wctype.h |
15068 | do | |
15069 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a82a04b3 CR |
15070 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15071 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7117c2d2 JA |
15072 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15073 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a82a04b3 CR |
15075 | fi |
15076 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15077 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
545f34cf | 15078 | else |
a82a04b3 CR |
15079 | # Is the header compilable? |
15080 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15081 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15082 | cat >conftest.$ac_ext <<_ACEOF | |
15083 | /* confdefs.h. */ | |
15084 | _ACEOF | |
15085 | cat confdefs.h >>conftest.$ac_ext | |
15086 | cat >>conftest.$ac_ext <<_ACEOF | |
15087 | /* end confdefs.h. */ | |
15088 | $ac_includes_default | |
15089 | #include <$ac_header> | |
15090 | _ACEOF | |
15091 | rm -f conftest.$ac_objext | |
15092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15093 | (eval $ac_compile) 2>conftest.er1 | |
15094 | ac_status=$? | |
15095 | grep -v '^ *+' conftest.er1 >conftest.err | |
15096 | rm -f conftest.er1 | |
15097 | cat conftest.err >&5 | |
15098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15099 | (exit $ac_status); } && | |
15100 | { ac_try='test -z "$ac_c_werror_flag" | |
15101 | || test ! -s conftest.err' | |
15102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15103 | (eval $ac_try) 2>&5 | |
15104 | ac_status=$? | |
15105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15106 | (exit $ac_status); }; } && | |
15107 | { ac_try='test -s conftest.$ac_objext' | |
15108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15109 | (eval $ac_try) 2>&5 | |
15110 | ac_status=$? | |
15111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15112 | (exit $ac_status); }; }; then | |
15113 | ac_header_compiler=yes | |
15114 | else | |
15115 | echo "$as_me: failed program was:" >&5 | |
15116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15117 | ||
15118 | ac_header_compiler=no | |
15119 | fi | |
15120 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15121 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15122 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15123 | ||
15124 | # Is the header present? | |
15125 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15126 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15127 | cat >conftest.$ac_ext <<_ACEOF | |
15128 | /* confdefs.h. */ | |
15129 | _ACEOF | |
15130 | cat confdefs.h >>conftest.$ac_ext | |
15131 | cat >>conftest.$ac_ext <<_ACEOF | |
15132 | /* end confdefs.h. */ | |
7117c2d2 JA |
15133 | #include <$ac_header> |
15134 | _ACEOF | |
a82a04b3 | 15135 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
7117c2d2 JA |
15136 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15137 | ac_status=$? | |
a82a04b3 | 15138 | grep -v '^ *+' conftest.er1 >conftest.err |
7117c2d2 JA |
15139 | rm -f conftest.er1 |
15140 | cat conftest.err >&5 | |
a82a04b3 | 15141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7117c2d2 JA |
15142 | (exit $ac_status); } >/dev/null; then |
15143 | if test -s conftest.err; then | |
15144 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a82a04b3 | 15145 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
7117c2d2 JA |
15146 | else |
15147 | ac_cpp_err= | |
15148 | fi | |
15149 | else | |
15150 | ac_cpp_err=yes | |
15151 | fi | |
15152 | if test -z "$ac_cpp_err"; then | |
a82a04b3 | 15153 | ac_header_preproc=yes |
7117c2d2 JA |
15154 | else |
15155 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
15156 | sed 's/^/| /' conftest.$ac_ext >&5 |
15157 | ||
15158 | ac_header_preproc=no | |
7117c2d2 JA |
15159 | fi |
15160 | rm -f conftest.err conftest.$ac_ext | |
a82a04b3 CR |
15161 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15162 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15163 | ||
15164 | # So? What about this header? | |
15165 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15166 | yes:no: ) | |
15167 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15168 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15169 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15170 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15171 | ac_header_preproc=yes | |
15172 | ;; | |
15173 | no:yes:* ) | |
15174 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15175 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15176 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15177 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15178 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15179 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15180 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15181 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15182 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15183 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15184 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15185 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15186 | ( | |
15187 | cat <<\_ASBOX | |
15188 | ## ------------------------------- ## | |
15189 | ## Report this to bug-bash@gnu.org ## | |
15190 | ## ------------------------------- ## | |
15191 | _ASBOX | |
15192 | ) | | |
15193 | sed "s/^/$as_me: WARNING: /" >&2 | |
15194 | ;; | |
15195 | esac | |
15196 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15197 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15198 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15200 | else | |
15201 | eval "$as_ac_Header=\$ac_header_preproc" | |
7117c2d2 | 15202 | fi |
a82a04b3 | 15203 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7117c2d2 | 15204 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
a82a04b3 CR |
15205 | |
15206 | fi | |
7117c2d2 | 15207 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
a82a04b3 | 15208 | cat >>confdefs.h <<_ACEOF |
7117c2d2 | 15209 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a82a04b3 | 15210 | _ACEOF |
7117c2d2 JA |
15211 | |
15212 | fi | |
a82a04b3 | 15213 | |
7117c2d2 JA |
15214 | done |
15215 | ||
a82a04b3 | 15216 | |
7117c2d2 JA |
15217 | for ac_header in wchar.h |
15218 | do | |
15219 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a82a04b3 CR |
15220 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15221 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7117c2d2 JA |
15222 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15223 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a82a04b3 CR |
15225 | fi |
15226 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15227 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
545f34cf | 15228 | else |
a82a04b3 CR |
15229 | # Is the header compilable? |
15230 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15231 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15232 | cat >conftest.$ac_ext <<_ACEOF | |
15233 | /* confdefs.h. */ | |
15234 | _ACEOF | |
15235 | cat confdefs.h >>conftest.$ac_ext | |
15236 | cat >>conftest.$ac_ext <<_ACEOF | |
15237 | /* end confdefs.h. */ | |
15238 | $ac_includes_default | |
15239 | #include <$ac_header> | |
15240 | _ACEOF | |
15241 | rm -f conftest.$ac_objext | |
15242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15243 | (eval $ac_compile) 2>conftest.er1 | |
15244 | ac_status=$? | |
15245 | grep -v '^ *+' conftest.er1 >conftest.err | |
15246 | rm -f conftest.er1 | |
15247 | cat conftest.err >&5 | |
15248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15249 | (exit $ac_status); } && | |
15250 | { ac_try='test -z "$ac_c_werror_flag" | |
15251 | || test ! -s conftest.err' | |
15252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15253 | (eval $ac_try) 2>&5 | |
15254 | ac_status=$? | |
15255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15256 | (exit $ac_status); }; } && | |
15257 | { ac_try='test -s conftest.$ac_objext' | |
15258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15259 | (eval $ac_try) 2>&5 | |
15260 | ac_status=$? | |
15261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15262 | (exit $ac_status); }; }; then | |
15263 | ac_header_compiler=yes | |
15264 | else | |
15265 | echo "$as_me: failed program was:" >&5 | |
15266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15267 | ||
15268 | ac_header_compiler=no | |
15269 | fi | |
15270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15271 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15272 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15273 | ||
15274 | # Is the header present? | |
15275 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15276 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15277 | cat >conftest.$ac_ext <<_ACEOF | |
15278 | /* confdefs.h. */ | |
15279 | _ACEOF | |
15280 | cat confdefs.h >>conftest.$ac_ext | |
15281 | cat >>conftest.$ac_ext <<_ACEOF | |
15282 | /* end confdefs.h. */ | |
7117c2d2 JA |
15283 | #include <$ac_header> |
15284 | _ACEOF | |
a82a04b3 | 15285 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
7117c2d2 JA |
15286 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15287 | ac_status=$? | |
a82a04b3 | 15288 | grep -v '^ *+' conftest.er1 >conftest.err |
7117c2d2 JA |
15289 | rm -f conftest.er1 |
15290 | cat conftest.err >&5 | |
a82a04b3 | 15291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7117c2d2 JA |
15292 | (exit $ac_status); } >/dev/null; then |
15293 | if test -s conftest.err; then | |
15294 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a82a04b3 | 15295 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
7117c2d2 JA |
15296 | else |
15297 | ac_cpp_err= | |
15298 | fi | |
15299 | else | |
15300 | ac_cpp_err=yes | |
15301 | fi | |
15302 | if test -z "$ac_cpp_err"; then | |
a82a04b3 | 15303 | ac_header_preproc=yes |
7117c2d2 JA |
15304 | else |
15305 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
15306 | sed 's/^/| /' conftest.$ac_ext >&5 |
15307 | ||
15308 | ac_header_preproc=no | |
7117c2d2 JA |
15309 | fi |
15310 | rm -f conftest.err conftest.$ac_ext | |
a82a04b3 CR |
15311 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15312 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15313 | ||
15314 | # So? What about this header? | |
15315 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15316 | yes:no: ) | |
15317 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15318 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15319 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15320 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15321 | ac_header_preproc=yes | |
15322 | ;; | |
15323 | no:yes:* ) | |
15324 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15325 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15326 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15327 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15328 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15329 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15330 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15331 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15332 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15333 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15334 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15335 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15336 | ( | |
15337 | cat <<\_ASBOX | |
15338 | ## ------------------------------- ## | |
15339 | ## Report this to bug-bash@gnu.org ## | |
15340 | ## ------------------------------- ## | |
15341 | _ASBOX | |
15342 | ) | | |
15343 | sed "s/^/$as_me: WARNING: /" >&2 | |
15344 | ;; | |
15345 | esac | |
15346 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15347 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15348 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15350 | else | |
15351 | eval "$as_ac_Header=\$ac_header_preproc" | |
7117c2d2 | 15352 | fi |
a82a04b3 | 15353 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7117c2d2 | 15354 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
a82a04b3 CR |
15355 | |
15356 | fi | |
7117c2d2 | 15357 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
a82a04b3 | 15358 | cat >>confdefs.h <<_ACEOF |
7117c2d2 | 15359 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a82a04b3 | 15360 | _ACEOF |
7117c2d2 JA |
15361 | |
15362 | fi | |
a82a04b3 | 15363 | |
7117c2d2 JA |
15364 | done |
15365 | ||
a82a04b3 | 15366 | |
7117c2d2 JA |
15367 | for ac_header in langinfo.h |
15368 | do | |
15369 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a82a04b3 CR |
15370 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15371 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7117c2d2 JA |
15372 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15373 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a82a04b3 CR |
15375 | fi |
15376 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15377 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
545f34cf | 15378 | else |
a82a04b3 CR |
15379 | # Is the header compilable? |
15380 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15381 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15382 | cat >conftest.$ac_ext <<_ACEOF | |
15383 | /* confdefs.h. */ | |
15384 | _ACEOF | |
15385 | cat confdefs.h >>conftest.$ac_ext | |
15386 | cat >>conftest.$ac_ext <<_ACEOF | |
15387 | /* end confdefs.h. */ | |
15388 | $ac_includes_default | |
15389 | #include <$ac_header> | |
15390 | _ACEOF | |
15391 | rm -f conftest.$ac_objext | |
15392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15393 | (eval $ac_compile) 2>conftest.er1 | |
15394 | ac_status=$? | |
15395 | grep -v '^ *+' conftest.er1 >conftest.err | |
15396 | rm -f conftest.er1 | |
15397 | cat conftest.err >&5 | |
15398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15399 | (exit $ac_status); } && | |
15400 | { ac_try='test -z "$ac_c_werror_flag" | |
15401 | || test ! -s conftest.err' | |
15402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15403 | (eval $ac_try) 2>&5 | |
15404 | ac_status=$? | |
15405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15406 | (exit $ac_status); }; } && | |
15407 | { ac_try='test -s conftest.$ac_objext' | |
15408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15409 | (eval $ac_try) 2>&5 | |
15410 | ac_status=$? | |
15411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15412 | (exit $ac_status); }; }; then | |
15413 | ac_header_compiler=yes | |
15414 | else | |
15415 | echo "$as_me: failed program was:" >&5 | |
15416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15417 | ||
15418 | ac_header_compiler=no | |
15419 | fi | |
15420 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15421 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15422 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15423 | ||
15424 | # Is the header present? | |
15425 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15426 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15427 | cat >conftest.$ac_ext <<_ACEOF | |
15428 | /* confdefs.h. */ | |
15429 | _ACEOF | |
15430 | cat confdefs.h >>conftest.$ac_ext | |
15431 | cat >>conftest.$ac_ext <<_ACEOF | |
15432 | /* end confdefs.h. */ | |
7117c2d2 JA |
15433 | #include <$ac_header> |
15434 | _ACEOF | |
a82a04b3 | 15435 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
7117c2d2 JA |
15436 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15437 | ac_status=$? | |
a82a04b3 | 15438 | grep -v '^ *+' conftest.er1 >conftest.err |
7117c2d2 JA |
15439 | rm -f conftest.er1 |
15440 | cat conftest.err >&5 | |
a82a04b3 | 15441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7117c2d2 JA |
15442 | (exit $ac_status); } >/dev/null; then |
15443 | if test -s conftest.err; then | |
15444 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a82a04b3 | 15445 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
7117c2d2 JA |
15446 | else |
15447 | ac_cpp_err= | |
15448 | fi | |
15449 | else | |
15450 | ac_cpp_err=yes | |
15451 | fi | |
15452 | if test -z "$ac_cpp_err"; then | |
a82a04b3 | 15453 | ac_header_preproc=yes |
7117c2d2 JA |
15454 | else |
15455 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
15456 | sed 's/^/| /' conftest.$ac_ext >&5 |
15457 | ||
15458 | ac_header_preproc=no | |
7117c2d2 JA |
15459 | fi |
15460 | rm -f conftest.err conftest.$ac_ext | |
a82a04b3 CR |
15461 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15462 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15463 | ||
15464 | # So? What about this header? | |
15465 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15466 | yes:no: ) | |
15467 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15468 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15469 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15470 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15471 | ac_header_preproc=yes | |
15472 | ;; | |
15473 | no:yes:* ) | |
15474 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15475 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15476 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15477 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15478 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15479 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15480 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15481 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15482 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15483 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15484 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15485 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15486 | ( | |
15487 | cat <<\_ASBOX | |
15488 | ## ------------------------------- ## | |
15489 | ## Report this to bug-bash@gnu.org ## | |
15490 | ## ------------------------------- ## | |
15491 | _ASBOX | |
15492 | ) | | |
15493 | sed "s/^/$as_me: WARNING: /" >&2 | |
15494 | ;; | |
15495 | esac | |
15496 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15497 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15498 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15500 | else | |
15501 | eval "$as_ac_Header=\$ac_header_preproc" | |
7117c2d2 | 15502 | fi |
a82a04b3 | 15503 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7117c2d2 | 15504 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
a82a04b3 CR |
15505 | |
15506 | fi | |
7117c2d2 | 15507 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
a82a04b3 | 15508 | cat >>confdefs.h <<_ACEOF |
7117c2d2 | 15509 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a82a04b3 | 15510 | _ACEOF |
7117c2d2 JA |
15511 | |
15512 | fi | |
a82a04b3 | 15513 | |
7117c2d2 JA |
15514 | done |
15515 | ||
a82a04b3 CR |
15516 | |
15517 | echo "$as_me:$LINENO: checking for mbsrtowcs" >&5 | |
7117c2d2 JA |
15518 | echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6 |
15519 | if test "${ac_cv_func_mbsrtowcs+set}" = set; then | |
15520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15521 | else | |
15522 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
15523 | /* confdefs.h. */ |
15524 | _ACEOF | |
15525 | cat confdefs.h >>conftest.$ac_ext | |
15526 | cat >>conftest.$ac_ext <<_ACEOF | |
15527 | /* end confdefs.h. */ | |
15528 | /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs. | |
15529 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15530 | #define mbsrtowcs innocuous_mbsrtowcs | |
15531 | ||
7117c2d2 | 15532 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
15533 | which can conflict with char mbsrtowcs (); below. |
15534 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15535 | <limits.h> exists even on freestanding compilers. */ | |
15536 | ||
15537 | #ifdef __STDC__ | |
15538 | # include <limits.h> | |
15539 | #else | |
15540 | # include <assert.h> | |
15541 | #endif | |
15542 | ||
15543 | #undef mbsrtowcs | |
15544 | ||
7117c2d2 JA |
15545 | /* Override any gcc2 internal prototype to avoid an error. */ |
15546 | #ifdef __cplusplus | |
15547 | extern "C" | |
a82a04b3 | 15548 | { |
7117c2d2 JA |
15549 | #endif |
15550 | /* We use char because int might match the return type of a gcc2 | |
15551 | builtin and then its argument prototype would still apply. */ | |
15552 | char mbsrtowcs (); | |
7117c2d2 JA |
15553 | /* The GNU C library defines this for functions which it implements |
15554 | to always fail with ENOSYS. Some functions are actually named | |
15555 | something starting with __ and the normal name is an alias. */ | |
15556 | #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs) | |
15557 | choke me | |
15558 | #else | |
a82a04b3 CR |
15559 | char (*f) () = mbsrtowcs; |
15560 | #endif | |
15561 | #ifdef __cplusplus | |
15562 | } | |
7117c2d2 JA |
15563 | #endif |
15564 | ||
a82a04b3 CR |
15565 | int |
15566 | main () | |
15567 | { | |
15568 | return f != mbsrtowcs; | |
7117c2d2 JA |
15569 | ; |
15570 | return 0; | |
15571 | } | |
15572 | _ACEOF | |
15573 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
15574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
15575 | (eval $ac_link) 2>conftest.er1 | |
7117c2d2 | 15576 | ac_status=$? |
a82a04b3 CR |
15577 | grep -v '^ *+' conftest.er1 >conftest.err |
15578 | rm -f conftest.er1 | |
15579 | cat conftest.err >&5 | |
15580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7117c2d2 | 15581 | (exit $ac_status); } && |
a82a04b3 CR |
15582 | { ac_try='test -z "$ac_c_werror_flag" |
15583 | || test ! -s conftest.err' | |
15584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15585 | (eval $ac_try) 2>&5 | |
15586 | ac_status=$? | |
15587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15588 | (exit $ac_status); }; } && | |
15589 | { ac_try='test -s conftest$ac_exeext' | |
15590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7117c2d2 JA |
15591 | (eval $ac_try) 2>&5 |
15592 | ac_status=$? | |
a82a04b3 | 15593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7117c2d2 JA |
15594 | (exit $ac_status); }; }; then |
15595 | ac_cv_func_mbsrtowcs=yes | |
15596 | else | |
15597 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
15598 | sed 's/^/| /' conftest.$ac_ext >&5 |
15599 | ||
7117c2d2 JA |
15600 | ac_cv_func_mbsrtowcs=no |
15601 | fi | |
a82a04b3 CR |
15602 | rm -f conftest.err conftest.$ac_objext \ |
15603 | conftest$ac_exeext conftest.$ac_ext | |
7117c2d2 | 15604 | fi |
a82a04b3 | 15605 | echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5 |
7117c2d2 JA |
15606 | echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6 |
15607 | if test $ac_cv_func_mbsrtowcs = yes; then | |
a82a04b3 | 15608 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 15609 | #define HAVE_MBSRTOWCS 1 |
a82a04b3 | 15610 | _ACEOF |
7117c2d2 JA |
15611 | |
15612 | fi | |
15613 | ||
a82a04b3 | 15614 | echo "$as_me:$LINENO: checking for mbrtowc" >&5 |
d3a24ed2 CR |
15615 | echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6 |
15616 | if test "${ac_cv_func_mbrtowc+set}" = set; then | |
15617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15618 | else | |
15619 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
15620 | /* confdefs.h. */ |
15621 | _ACEOF | |
15622 | cat confdefs.h >>conftest.$ac_ext | |
15623 | cat >>conftest.$ac_ext <<_ACEOF | |
15624 | /* end confdefs.h. */ | |
15625 | /* Define mbrtowc to an innocuous variant, in case <limits.h> declares mbrtowc. | |
15626 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15627 | #define mbrtowc innocuous_mbrtowc | |
15628 | ||
d3a24ed2 | 15629 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
15630 | which can conflict with char mbrtowc (); below. |
15631 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15632 | <limits.h> exists even on freestanding compilers. */ | |
15633 | ||
15634 | #ifdef __STDC__ | |
15635 | # include <limits.h> | |
15636 | #else | |
15637 | # include <assert.h> | |
15638 | #endif | |
15639 | ||
15640 | #undef mbrtowc | |
15641 | ||
d3a24ed2 CR |
15642 | /* Override any gcc2 internal prototype to avoid an error. */ |
15643 | #ifdef __cplusplus | |
15644 | extern "C" | |
a82a04b3 | 15645 | { |
d3a24ed2 CR |
15646 | #endif |
15647 | /* We use char because int might match the return type of a gcc2 | |
15648 | builtin and then its argument prototype would still apply. */ | |
15649 | char mbrtowc (); | |
d3a24ed2 CR |
15650 | /* The GNU C library defines this for functions which it implements |
15651 | to always fail with ENOSYS. Some functions are actually named | |
15652 | something starting with __ and the normal name is an alias. */ | |
15653 | #if defined (__stub_mbrtowc) || defined (__stub___mbrtowc) | |
15654 | choke me | |
15655 | #else | |
a82a04b3 CR |
15656 | char (*f) () = mbrtowc; |
15657 | #endif | |
15658 | #ifdef __cplusplus | |
15659 | } | |
d3a24ed2 CR |
15660 | #endif |
15661 | ||
a82a04b3 CR |
15662 | int |
15663 | main () | |
15664 | { | |
15665 | return f != mbrtowc; | |
d3a24ed2 CR |
15666 | ; |
15667 | return 0; | |
15668 | } | |
15669 | _ACEOF | |
15670 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
15671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
15672 | (eval $ac_link) 2>conftest.er1 | |
d3a24ed2 | 15673 | ac_status=$? |
a82a04b3 CR |
15674 | grep -v '^ *+' conftest.er1 >conftest.err |
15675 | rm -f conftest.er1 | |
15676 | cat conftest.err >&5 | |
15677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d3a24ed2 | 15678 | (exit $ac_status); } && |
a82a04b3 CR |
15679 | { ac_try='test -z "$ac_c_werror_flag" |
15680 | || test ! -s conftest.err' | |
15681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15682 | (eval $ac_try) 2>&5 | |
15683 | ac_status=$? | |
15684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15685 | (exit $ac_status); }; } && | |
15686 | { ac_try='test -s conftest$ac_exeext' | |
15687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
d3a24ed2 CR |
15688 | (eval $ac_try) 2>&5 |
15689 | ac_status=$? | |
a82a04b3 | 15690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d3a24ed2 CR |
15691 | (exit $ac_status); }; }; then |
15692 | ac_cv_func_mbrtowc=yes | |
15693 | else | |
15694 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
15695 | sed 's/^/| /' conftest.$ac_ext >&5 |
15696 | ||
d3a24ed2 CR |
15697 | ac_cv_func_mbrtowc=no |
15698 | fi | |
a82a04b3 CR |
15699 | rm -f conftest.err conftest.$ac_objext \ |
15700 | conftest$ac_exeext conftest.$ac_ext | |
d3a24ed2 | 15701 | fi |
a82a04b3 | 15702 | echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5 |
d3a24ed2 CR |
15703 | echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6 |
15704 | if test $ac_cv_func_mbrtowc = yes; then | |
a82a04b3 | 15705 | cat >>confdefs.h <<\_ACEOF |
d3a24ed2 | 15706 | #define HAVE_MBRTOWC 1 |
a82a04b3 | 15707 | _ACEOF |
d3a24ed2 CR |
15708 | |
15709 | fi | |
15710 | ||
a82a04b3 | 15711 | echo "$as_me:$LINENO: checking for mbrlen" >&5 |
d3a24ed2 CR |
15712 | echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6 |
15713 | if test "${ac_cv_func_mbrlen+set}" = set; then | |
15714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15715 | else | |
15716 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
15717 | /* confdefs.h. */ |
15718 | _ACEOF | |
15719 | cat confdefs.h >>conftest.$ac_ext | |
15720 | cat >>conftest.$ac_ext <<_ACEOF | |
15721 | /* end confdefs.h. */ | |
15722 | /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen. | |
15723 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15724 | #define mbrlen innocuous_mbrlen | |
15725 | ||
d3a24ed2 | 15726 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
15727 | which can conflict with char mbrlen (); below. |
15728 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15729 | <limits.h> exists even on freestanding compilers. */ | |
15730 | ||
15731 | #ifdef __STDC__ | |
15732 | # include <limits.h> | |
15733 | #else | |
15734 | # include <assert.h> | |
15735 | #endif | |
15736 | ||
15737 | #undef mbrlen | |
15738 | ||
d3a24ed2 CR |
15739 | /* Override any gcc2 internal prototype to avoid an error. */ |
15740 | #ifdef __cplusplus | |
15741 | extern "C" | |
a82a04b3 | 15742 | { |
d3a24ed2 CR |
15743 | #endif |
15744 | /* We use char because int might match the return type of a gcc2 | |
15745 | builtin and then its argument prototype would still apply. */ | |
15746 | char mbrlen (); | |
d3a24ed2 CR |
15747 | /* The GNU C library defines this for functions which it implements |
15748 | to always fail with ENOSYS. Some functions are actually named | |
15749 | something starting with __ and the normal name is an alias. */ | |
15750 | #if defined (__stub_mbrlen) || defined (__stub___mbrlen) | |
15751 | choke me | |
15752 | #else | |
a82a04b3 CR |
15753 | char (*f) () = mbrlen; |
15754 | #endif | |
15755 | #ifdef __cplusplus | |
15756 | } | |
d3a24ed2 CR |
15757 | #endif |
15758 | ||
a82a04b3 CR |
15759 | int |
15760 | main () | |
15761 | { | |
15762 | return f != mbrlen; | |
d3a24ed2 CR |
15763 | ; |
15764 | return 0; | |
15765 | } | |
15766 | _ACEOF | |
15767 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
15768 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
15769 | (eval $ac_link) 2>conftest.er1 | |
d3a24ed2 | 15770 | ac_status=$? |
a82a04b3 CR |
15771 | grep -v '^ *+' conftest.er1 >conftest.err |
15772 | rm -f conftest.er1 | |
15773 | cat conftest.err >&5 | |
15774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d3a24ed2 | 15775 | (exit $ac_status); } && |
a82a04b3 CR |
15776 | { ac_try='test -z "$ac_c_werror_flag" |
15777 | || test ! -s conftest.err' | |
15778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
d3a24ed2 CR |
15779 | (eval $ac_try) 2>&5 |
15780 | ac_status=$? | |
a82a04b3 CR |
15781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15782 | (exit $ac_status); }; } && | |
15783 | { ac_try='test -s conftest$ac_exeext' | |
15784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15785 | (eval $ac_try) 2>&5 | |
15786 | ac_status=$? | |
15787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d3a24ed2 CR |
15788 | (exit $ac_status); }; }; then |
15789 | ac_cv_func_mbrlen=yes | |
15790 | else | |
15791 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
15792 | sed 's/^/| /' conftest.$ac_ext >&5 |
15793 | ||
d3a24ed2 CR |
15794 | ac_cv_func_mbrlen=no |
15795 | fi | |
a82a04b3 CR |
15796 | rm -f conftest.err conftest.$ac_objext \ |
15797 | conftest$ac_exeext conftest.$ac_ext | |
d3a24ed2 | 15798 | fi |
a82a04b3 | 15799 | echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5 |
d3a24ed2 CR |
15800 | echo "${ECHO_T}$ac_cv_func_mbrlen" >&6 |
15801 | if test $ac_cv_func_mbrlen = yes; then | |
a82a04b3 | 15802 | cat >>confdefs.h <<\_ACEOF |
d3a24ed2 | 15803 | #define HAVE_MBRLEN 1 |
a82a04b3 | 15804 | _ACEOF |
d3a24ed2 CR |
15805 | |
15806 | fi | |
15807 | ||
a82a04b3 | 15808 | echo "$as_me:$LINENO: checking for wctomb" >&5 |
d3a24ed2 CR |
15809 | echo $ECHO_N "checking for wctomb... $ECHO_C" >&6 |
15810 | if test "${ac_cv_func_wctomb+set}" = set; then | |
15811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15812 | else | |
15813 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
15814 | /* confdefs.h. */ |
15815 | _ACEOF | |
15816 | cat confdefs.h >>conftest.$ac_ext | |
15817 | cat >>conftest.$ac_ext <<_ACEOF | |
15818 | /* end confdefs.h. */ | |
15819 | /* Define wctomb to an innocuous variant, in case <limits.h> declares wctomb. | |
15820 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15821 | #define wctomb innocuous_wctomb | |
15822 | ||
d3a24ed2 | 15823 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
15824 | which can conflict with char wctomb (); below. |
15825 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15826 | <limits.h> exists even on freestanding compilers. */ | |
15827 | ||
15828 | #ifdef __STDC__ | |
15829 | # include <limits.h> | |
15830 | #else | |
15831 | # include <assert.h> | |
15832 | #endif | |
15833 | ||
15834 | #undef wctomb | |
15835 | ||
d3a24ed2 CR |
15836 | /* Override any gcc2 internal prototype to avoid an error. */ |
15837 | #ifdef __cplusplus | |
15838 | extern "C" | |
a82a04b3 | 15839 | { |
d3a24ed2 CR |
15840 | #endif |
15841 | /* We use char because int might match the return type of a gcc2 | |
15842 | builtin and then its argument prototype would still apply. */ | |
15843 | char wctomb (); | |
d3a24ed2 CR |
15844 | /* The GNU C library defines this for functions which it implements |
15845 | to always fail with ENOSYS. Some functions are actually named | |
15846 | something starting with __ and the normal name is an alias. */ | |
15847 | #if defined (__stub_wctomb) || defined (__stub___wctomb) | |
15848 | choke me | |
15849 | #else | |
a82a04b3 CR |
15850 | char (*f) () = wctomb; |
15851 | #endif | |
15852 | #ifdef __cplusplus | |
15853 | } | |
d3a24ed2 CR |
15854 | #endif |
15855 | ||
a82a04b3 CR |
15856 | int |
15857 | main () | |
15858 | { | |
15859 | return f != wctomb; | |
d3a24ed2 CR |
15860 | ; |
15861 | return 0; | |
15862 | } | |
15863 | _ACEOF | |
15864 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
15865 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
15866 | (eval $ac_link) 2>conftest.er1 | |
d3a24ed2 | 15867 | ac_status=$? |
a82a04b3 CR |
15868 | grep -v '^ *+' conftest.er1 >conftest.err |
15869 | rm -f conftest.er1 | |
15870 | cat conftest.err >&5 | |
15871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d3a24ed2 | 15872 | (exit $ac_status); } && |
a82a04b3 CR |
15873 | { ac_try='test -z "$ac_c_werror_flag" |
15874 | || test ! -s conftest.err' | |
15875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15876 | (eval $ac_try) 2>&5 | |
15877 | ac_status=$? | |
15878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15879 | (exit $ac_status); }; } && | |
15880 | { ac_try='test -s conftest$ac_exeext' | |
15881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
d3a24ed2 CR |
15882 | (eval $ac_try) 2>&5 |
15883 | ac_status=$? | |
a82a04b3 | 15884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d3a24ed2 CR |
15885 | (exit $ac_status); }; }; then |
15886 | ac_cv_func_wctomb=yes | |
15887 | else | |
15888 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
15889 | sed 's/^/| /' conftest.$ac_ext >&5 |
15890 | ||
d3a24ed2 CR |
15891 | ac_cv_func_wctomb=no |
15892 | fi | |
a82a04b3 CR |
15893 | rm -f conftest.err conftest.$ac_objext \ |
15894 | conftest$ac_exeext conftest.$ac_ext | |
d3a24ed2 | 15895 | fi |
a82a04b3 | 15896 | echo "$as_me:$LINENO: result: $ac_cv_func_wctomb" >&5 |
d3a24ed2 CR |
15897 | echo "${ECHO_T}$ac_cv_func_wctomb" >&6 |
15898 | if test $ac_cv_func_wctomb = yes; then | |
a82a04b3 | 15899 | cat >>confdefs.h <<\_ACEOF |
d3a24ed2 | 15900 | #define HAVE_WCTOMB 1 |
a82a04b3 | 15901 | _ACEOF |
d3a24ed2 CR |
15902 | |
15903 | fi | |
15904 | ||
a82a04b3 | 15905 | echo "$as_me:$LINENO: checking for wcwidth" >&5 |
7117c2d2 JA |
15906 | echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6 |
15907 | if test "${ac_cv_func_wcwidth+set}" = set; then | |
15908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15909 | else | |
15910 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
15911 | /* confdefs.h. */ |
15912 | _ACEOF | |
15913 | cat confdefs.h >>conftest.$ac_ext | |
15914 | cat >>conftest.$ac_ext <<_ACEOF | |
15915 | /* end confdefs.h. */ | |
15916 | /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth. | |
15917 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15918 | #define wcwidth innocuous_wcwidth | |
15919 | ||
7117c2d2 | 15920 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
15921 | which can conflict with char wcwidth (); below. |
15922 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15923 | <limits.h> exists even on freestanding compilers. */ | |
15924 | ||
15925 | #ifdef __STDC__ | |
15926 | # include <limits.h> | |
15927 | #else | |
15928 | # include <assert.h> | |
15929 | #endif | |
15930 | ||
15931 | #undef wcwidth | |
15932 | ||
7117c2d2 JA |
15933 | /* Override any gcc2 internal prototype to avoid an error. */ |
15934 | #ifdef __cplusplus | |
15935 | extern "C" | |
a82a04b3 | 15936 | { |
7117c2d2 JA |
15937 | #endif |
15938 | /* We use char because int might match the return type of a gcc2 | |
15939 | builtin and then its argument prototype would still apply. */ | |
15940 | char wcwidth (); | |
7117c2d2 JA |
15941 | /* The GNU C library defines this for functions which it implements |
15942 | to always fail with ENOSYS. Some functions are actually named | |
15943 | something starting with __ and the normal name is an alias. */ | |
15944 | #if defined (__stub_wcwidth) || defined (__stub___wcwidth) | |
15945 | choke me | |
15946 | #else | |
a82a04b3 CR |
15947 | char (*f) () = wcwidth; |
15948 | #endif | |
15949 | #ifdef __cplusplus | |
15950 | } | |
7117c2d2 JA |
15951 | #endif |
15952 | ||
a82a04b3 CR |
15953 | int |
15954 | main () | |
15955 | { | |
15956 | return f != wcwidth; | |
7117c2d2 JA |
15957 | ; |
15958 | return 0; | |
15959 | } | |
15960 | _ACEOF | |
15961 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
15962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
15963 | (eval $ac_link) 2>conftest.er1 | |
7117c2d2 | 15964 | ac_status=$? |
a82a04b3 CR |
15965 | grep -v '^ *+' conftest.er1 >conftest.err |
15966 | rm -f conftest.er1 | |
15967 | cat conftest.err >&5 | |
15968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7117c2d2 | 15969 | (exit $ac_status); } && |
a82a04b3 CR |
15970 | { ac_try='test -z "$ac_c_werror_flag" |
15971 | || test ! -s conftest.err' | |
15972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15973 | (eval $ac_try) 2>&5 | |
15974 | ac_status=$? | |
15975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15976 | (exit $ac_status); }; } && | |
15977 | { ac_try='test -s conftest$ac_exeext' | |
15978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7117c2d2 JA |
15979 | (eval $ac_try) 2>&5 |
15980 | ac_status=$? | |
a82a04b3 | 15981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7117c2d2 JA |
15982 | (exit $ac_status); }; }; then |
15983 | ac_cv_func_wcwidth=yes | |
15984 | else | |
15985 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
15986 | sed 's/^/| /' conftest.$ac_ext >&5 |
15987 | ||
7117c2d2 JA |
15988 | ac_cv_func_wcwidth=no |
15989 | fi | |
a82a04b3 CR |
15990 | rm -f conftest.err conftest.$ac_objext \ |
15991 | conftest$ac_exeext conftest.$ac_ext | |
7117c2d2 | 15992 | fi |
a82a04b3 | 15993 | echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5 |
7117c2d2 JA |
15994 | echo "${ECHO_T}$ac_cv_func_wcwidth" >&6 |
15995 | if test $ac_cv_func_wcwidth = yes; then | |
a82a04b3 | 15996 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 15997 | #define HAVE_WCWIDTH 1 |
a82a04b3 | 15998 | _ACEOF |
7117c2d2 JA |
15999 | |
16000 | fi | |
16001 | ||
a82a04b3 | 16002 | echo "$as_me:$LINENO: checking for wcsdup" >&5 |
f9732a04 CR |
16003 | echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6 |
16004 | if test "${ac_cv_func_wcsdup+set}" = set; then | |
16005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16006 | else | |
16007 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
16008 | /* confdefs.h. */ |
16009 | _ACEOF | |
16010 | cat confdefs.h >>conftest.$ac_ext | |
16011 | cat >>conftest.$ac_ext <<_ACEOF | |
16012 | /* end confdefs.h. */ | |
16013 | /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup. | |
16014 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16015 | #define wcsdup innocuous_wcsdup | |
16016 | ||
f9732a04 | 16017 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
16018 | which can conflict with char wcsdup (); below. |
16019 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16020 | <limits.h> exists even on freestanding compilers. */ | |
16021 | ||
16022 | #ifdef __STDC__ | |
16023 | # include <limits.h> | |
16024 | #else | |
16025 | # include <assert.h> | |
16026 | #endif | |
16027 | ||
16028 | #undef wcsdup | |
16029 | ||
f9732a04 CR |
16030 | /* Override any gcc2 internal prototype to avoid an error. */ |
16031 | #ifdef __cplusplus | |
16032 | extern "C" | |
a82a04b3 | 16033 | { |
f9732a04 CR |
16034 | #endif |
16035 | /* We use char because int might match the return type of a gcc2 | |
16036 | builtin and then its argument prototype would still apply. */ | |
16037 | char wcsdup (); | |
16038 | /* The GNU C library defines this for functions which it implements | |
16039 | to always fail with ENOSYS. Some functions are actually named | |
16040 | something starting with __ and the normal name is an alias. */ | |
16041 | #if defined (__stub_wcsdup) || defined (__stub___wcsdup) | |
16042 | choke me | |
16043 | #else | |
a82a04b3 CR |
16044 | char (*f) () = wcsdup; |
16045 | #endif | |
16046 | #ifdef __cplusplus | |
16047 | } | |
f9732a04 CR |
16048 | #endif |
16049 | ||
a82a04b3 CR |
16050 | int |
16051 | main () | |
16052 | { | |
16053 | return f != wcsdup; | |
f9732a04 CR |
16054 | ; |
16055 | return 0; | |
16056 | } | |
16057 | _ACEOF | |
16058 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
16059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16060 | (eval $ac_link) 2>conftest.er1 | |
f9732a04 | 16061 | ac_status=$? |
a82a04b3 CR |
16062 | grep -v '^ *+' conftest.er1 >conftest.err |
16063 | rm -f conftest.er1 | |
16064 | cat conftest.err >&5 | |
16065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f9732a04 | 16066 | (exit $ac_status); } && |
a82a04b3 CR |
16067 | { ac_try='test -z "$ac_c_werror_flag" |
16068 | || test ! -s conftest.err' | |
16069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16070 | (eval $ac_try) 2>&5 | |
16071 | ac_status=$? | |
16072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16073 | (exit $ac_status); }; } && | |
16074 | { ac_try='test -s conftest$ac_exeext' | |
16075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f9732a04 CR |
16076 | (eval $ac_try) 2>&5 |
16077 | ac_status=$? | |
a82a04b3 | 16078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f9732a04 CR |
16079 | (exit $ac_status); }; }; then |
16080 | ac_cv_func_wcsdup=yes | |
16081 | else | |
16082 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
16083 | sed 's/^/| /' conftest.$ac_ext >&5 |
16084 | ||
f9732a04 CR |
16085 | ac_cv_func_wcsdup=no |
16086 | fi | |
a82a04b3 CR |
16087 | rm -f conftest.err conftest.$ac_objext \ |
16088 | conftest$ac_exeext conftest.$ac_ext | |
f9732a04 | 16089 | fi |
a82a04b3 | 16090 | echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5 |
f9732a04 CR |
16091 | echo "${ECHO_T}$ac_cv_func_wcsdup" >&6 |
16092 | if test $ac_cv_func_wcsdup = yes; then | |
a82a04b3 | 16093 | cat >>confdefs.h <<\_ACEOF |
f9732a04 | 16094 | #define HAVE_WCSDUP 1 |
a82a04b3 | 16095 | _ACEOF |
f9732a04 CR |
16096 | |
16097 | fi | |
16098 | ||
a82a04b3 CR |
16099 | |
16100 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 | |
7117c2d2 JA |
16101 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 |
16102 | if test "${bash_cv_have_mbstate_t+set}" = set; then | |
16103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7117c2d2 JA |
16104 | else |
16105 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
16106 | /* confdefs.h. */ |
16107 | _ACEOF | |
16108 | cat confdefs.h >>conftest.$ac_ext | |
16109 | cat >>conftest.$ac_ext <<_ACEOF | |
16110 | /* end confdefs.h. */ | |
7117c2d2 JA |
16111 | |
16112 | #include <wchar.h> | |
16113 | int | |
16114 | main () | |
16115 | { | |
d3a24ed2 | 16116 | |
7117c2d2 | 16117 | mbstate_t ps; |
d3a24ed2 CR |
16118 | mbstate_t *psp; |
16119 | psp = (mbstate_t *)0; | |
16120 | ||
16121 | ; | |
7117c2d2 JA |
16122 | return 0; |
16123 | } | |
16124 | _ACEOF | |
d3a24ed2 | 16125 | rm -f conftest.$ac_objext |
a82a04b3 CR |
16126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16127 | (eval $ac_compile) 2>conftest.er1 | |
7117c2d2 | 16128 | ac_status=$? |
a82a04b3 CR |
16129 | grep -v '^ *+' conftest.er1 >conftest.err |
16130 | rm -f conftest.er1 | |
16131 | cat conftest.err >&5 | |
16132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d3a24ed2 | 16133 | (exit $ac_status); } && |
a82a04b3 CR |
16134 | { ac_try='test -z "$ac_c_werror_flag" |
16135 | || test ! -s conftest.err' | |
16136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7117c2d2 JA |
16137 | (eval $ac_try) 2>&5 |
16138 | ac_status=$? | |
a82a04b3 CR |
16139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16140 | (exit $ac_status); }; } && | |
16141 | { ac_try='test -s conftest.$ac_objext' | |
16142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16143 | (eval $ac_try) 2>&5 | |
16144 | ac_status=$? | |
16145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7117c2d2 JA |
16146 | (exit $ac_status); }; }; then |
16147 | bash_cv_have_mbstate_t=yes | |
16148 | else | |
d3a24ed2 | 16149 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
16150 | sed 's/^/| /' conftest.$ac_ext >&5 |
16151 | ||
7117c2d2 JA |
16152 | bash_cv_have_mbstate_t=no |
16153 | fi | |
a82a04b3 | 16154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7117c2d2 | 16155 | fi |
a82a04b3 | 16156 | echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5 |
7117c2d2 JA |
16157 | echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6 |
16158 | if test $bash_cv_have_mbstate_t = yes; then | |
a82a04b3 | 16159 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 16160 | #define HAVE_MBSTATE_T 1 |
a82a04b3 | 16161 | _ACEOF |
7117c2d2 JA |
16162 | |
16163 | fi | |
16164 | ||
a82a04b3 | 16165 | echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
7117c2d2 JA |
16166 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 |
16167 | if test "${bash_cv_langinfo_codeset+set}" = set; then | |
16168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16169 | else | |
16170 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
16171 | /* confdefs.h. */ |
16172 | _ACEOF | |
16173 | cat confdefs.h >>conftest.$ac_ext | |
16174 | cat >>conftest.$ac_ext <<_ACEOF | |
16175 | /* end confdefs.h. */ | |
7117c2d2 JA |
16176 | #include <langinfo.h> |
16177 | int | |
16178 | main () | |
16179 | { | |
16180 | char* cs = nl_langinfo(CODESET); | |
16181 | ; | |
16182 | return 0; | |
16183 | } | |
16184 | _ACEOF | |
16185 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
16186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16187 | (eval $ac_link) 2>conftest.er1 | |
7117c2d2 | 16188 | ac_status=$? |
a82a04b3 CR |
16189 | grep -v '^ *+' conftest.er1 >conftest.err |
16190 | rm -f conftest.er1 | |
16191 | cat conftest.err >&5 | |
16192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7117c2d2 | 16193 | (exit $ac_status); } && |
a82a04b3 CR |
16194 | { ac_try='test -z "$ac_c_werror_flag" |
16195 | || test ! -s conftest.err' | |
16196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7117c2d2 JA |
16197 | (eval $ac_try) 2>&5 |
16198 | ac_status=$? | |
a82a04b3 CR |
16199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16200 | (exit $ac_status); }; } && | |
16201 | { ac_try='test -s conftest$ac_exeext' | |
16202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16203 | (eval $ac_try) 2>&5 | |
16204 | ac_status=$? | |
16205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7117c2d2 JA |
16206 | (exit $ac_status); }; }; then |
16207 | bash_cv_langinfo_codeset=yes | |
16208 | else | |
16209 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
16210 | sed 's/^/| /' conftest.$ac_ext >&5 |
16211 | ||
7117c2d2 JA |
16212 | bash_cv_langinfo_codeset=no |
16213 | fi | |
a82a04b3 CR |
16214 | rm -f conftest.err conftest.$ac_objext \ |
16215 | conftest$ac_exeext conftest.$ac_ext | |
7117c2d2 | 16216 | fi |
a82a04b3 | 16217 | echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5 |
7117c2d2 JA |
16218 | echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6 |
16219 | if test $bash_cv_langinfo_codeset = yes; then | |
a82a04b3 | 16220 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 16221 | #define HAVE_LANGINFO_CODESET 1 |
a82a04b3 | 16222 | _ACEOF |
7117c2d2 JA |
16223 | |
16224 | fi | |
16225 | ||
a82a04b3 CR |
16226 | |
16227 | ||
f73dda09 JA |
16228 | if test "$opt_static_link" != yes; then |
16229 | ||
a82a04b3 | 16230 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
f73dda09 JA |
16231 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
16232 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
16233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 16234 | else |
f73dda09 JA |
16235 | ac_check_lib_save_LIBS=$LIBS |
16236 | LIBS="-ldl $LIBS" | |
16237 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
16238 | /* confdefs.h. */ |
16239 | _ACEOF | |
16240 | cat confdefs.h >>conftest.$ac_ext | |
16241 | cat >>conftest.$ac_ext <<_ACEOF | |
16242 | /* end confdefs.h. */ | |
f73dda09 JA |
16243 | |
16244 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16245 | #ifdef __cplusplus | |
16246 | extern "C" | |
16247 | #endif | |
16248 | /* We use char because int might match the return type of a gcc2 | |
16249 | builtin and then its argument prototype would still apply. */ | |
16250 | char dlopen (); | |
16251 | int | |
16252 | main () | |
16253 | { | |
16254 | dlopen (); | |
16255 | ; | |
16256 | return 0; | |
16257 | } | |
16258 | _ACEOF | |
16259 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
16260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16261 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 16262 | ac_status=$? |
a82a04b3 CR |
16263 | grep -v '^ *+' conftest.er1 >conftest.err |
16264 | rm -f conftest.er1 | |
16265 | cat conftest.err >&5 | |
16266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 16267 | (exit $ac_status); } && |
a82a04b3 CR |
16268 | { ac_try='test -z "$ac_c_werror_flag" |
16269 | || test ! -s conftest.err' | |
16270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16271 | (eval $ac_try) 2>&5 | |
16272 | ac_status=$? | |
16273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16274 | (exit $ac_status); }; } && | |
16275 | { ac_try='test -s conftest$ac_exeext' | |
16276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
16277 | (eval $ac_try) 2>&5 |
16278 | ac_status=$? | |
a82a04b3 | 16279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
16280 | (exit $ac_status); }; }; then |
16281 | ac_cv_lib_dl_dlopen=yes | |
16282 | else | |
16283 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
16284 | sed 's/^/| /' conftest.$ac_ext >&5 |
16285 | ||
f73dda09 JA |
16286 | ac_cv_lib_dl_dlopen=no |
16287 | fi | |
a82a04b3 CR |
16288 | rm -f conftest.err conftest.$ac_objext \ |
16289 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 JA |
16290 | LIBS=$ac_check_lib_save_LIBS |
16291 | fi | |
a82a04b3 | 16292 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
f73dda09 JA |
16293 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
16294 | if test $ac_cv_lib_dl_dlopen = yes; then | |
a82a04b3 | 16295 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 16296 | #define HAVE_LIBDL 1 |
a82a04b3 | 16297 | _ACEOF |
f73dda09 JA |
16298 | |
16299 | LIBS="-ldl $LIBS" | |
16300 | ||
ccc6cda3 | 16301 | fi |
ccc6cda3 | 16302 | |
a82a04b3 CR |
16303 | |
16304 | ||
16305 | ||
f73dda09 | 16306 | for ac_func in dlopen dlclose dlsym |
bb70624e | 16307 | do |
f73dda09 | 16308 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
a82a04b3 | 16309 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
f73dda09 JA |
16310 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
16311 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bb70624e | 16313 | else |
f73dda09 | 16314 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
16315 | /* confdefs.h. */ |
16316 | _ACEOF | |
16317 | cat confdefs.h >>conftest.$ac_ext | |
16318 | cat >>conftest.$ac_ext <<_ACEOF | |
16319 | /* end confdefs.h. */ | |
16320 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16321 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16322 | #define $ac_func innocuous_$ac_func | |
16323 | ||
e624d0f7 | 16324 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
16325 | which can conflict with char $ac_func (); below. |
16326 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16327 | <limits.h> exists even on freestanding compilers. */ | |
16328 | ||
16329 | #ifdef __STDC__ | |
16330 | # include <limits.h> | |
16331 | #else | |
16332 | # include <assert.h> | |
16333 | #endif | |
16334 | ||
16335 | #undef $ac_func | |
16336 | ||
f73dda09 JA |
16337 | /* Override any gcc2 internal prototype to avoid an error. */ |
16338 | #ifdef __cplusplus | |
16339 | extern "C" | |
a82a04b3 | 16340 | { |
f73dda09 JA |
16341 | #endif |
16342 | /* We use char because int might match the return type of a gcc2 | |
16343 | builtin and then its argument prototype would still apply. */ | |
16344 | char $ac_func (); | |
f73dda09 JA |
16345 | /* The GNU C library defines this for functions which it implements |
16346 | to always fail with ENOSYS. Some functions are actually named | |
16347 | something starting with __ and the normal name is an alias. */ | |
16348 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16349 | choke me | |
16350 | #else | |
a82a04b3 CR |
16351 | char (*f) () = $ac_func; |
16352 | #endif | |
16353 | #ifdef __cplusplus | |
16354 | } | |
f73dda09 JA |
16355 | #endif |
16356 | ||
a82a04b3 CR |
16357 | int |
16358 | main () | |
16359 | { | |
16360 | return f != $ac_func; | |
f73dda09 JA |
16361 | ; |
16362 | return 0; | |
16363 | } | |
16364 | _ACEOF | |
16365 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
16366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16367 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 16368 | ac_status=$? |
a82a04b3 CR |
16369 | grep -v '^ *+' conftest.er1 >conftest.err |
16370 | rm -f conftest.er1 | |
16371 | cat conftest.err >&5 | |
16372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 16373 | (exit $ac_status); } && |
a82a04b3 CR |
16374 | { ac_try='test -z "$ac_c_werror_flag" |
16375 | || test ! -s conftest.err' | |
16376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16377 | (eval $ac_try) 2>&5 | |
16378 | ac_status=$? | |
16379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16380 | (exit $ac_status); }; } && | |
16381 | { ac_try='test -s conftest$ac_exeext' | |
16382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
16383 | (eval $ac_try) 2>&5 |
16384 | ac_status=$? | |
a82a04b3 | 16385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
16386 | (exit $ac_status); }; }; then |
16387 | eval "$as_ac_var=yes" | |
16388 | else | |
16389 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
16390 | sed 's/^/| /' conftest.$ac_ext >&5 |
16391 | ||
f73dda09 JA |
16392 | eval "$as_ac_var=no" |
16393 | fi | |
a82a04b3 CR |
16394 | rm -f conftest.err conftest.$ac_objext \ |
16395 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 16396 | fi |
a82a04b3 | 16397 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
f73dda09 JA |
16398 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
16399 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a82a04b3 | 16400 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 16401 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a82a04b3 | 16402 | _ACEOF |
f73dda09 | 16403 | |
bb70624e | 16404 | fi |
f73dda09 JA |
16405 | done |
16406 | ||
bb70624e | 16407 | fi |
f73dda09 | 16408 | |
a82a04b3 CR |
16409 | echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 |
16410 | echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6 | |
16411 | if test "${ac_cv_have_decl_sys_siglist+set}" = set; then | |
f73dda09 JA |
16412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16413 | else | |
16414 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
16415 | /* confdefs.h. */ |
16416 | _ACEOF | |
16417 | cat confdefs.h >>conftest.$ac_ext | |
16418 | cat >>conftest.$ac_ext <<_ACEOF | |
16419 | /* end confdefs.h. */ | |
e624d0f7 CR |
16420 | #include <signal.h> |
16421 | /* NetBSD declares sys_siglist in unistd.h. */ | |
16422 | #if HAVE_UNISTD_H | |
16423 | # include <unistd.h> | |
16424 | #endif | |
16425 | ||
a82a04b3 | 16426 | |
f73dda09 JA |
16427 | int |
16428 | main () | |
16429 | { | |
a82a04b3 CR |
16430 | #ifndef sys_siglist |
16431 | char *p = (char *) sys_siglist; | |
16432 | #endif | |
16433 | ||
f73dda09 JA |
16434 | ; |
16435 | return 0; | |
16436 | } | |
16437 | _ACEOF | |
16438 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
16439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16440 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 16441 | ac_status=$? |
a82a04b3 CR |
16442 | grep -v '^ *+' conftest.er1 >conftest.err |
16443 | rm -f conftest.er1 | |
16444 | cat conftest.err >&5 | |
16445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 16446 | (exit $ac_status); } && |
a82a04b3 CR |
16447 | { ac_try='test -z "$ac_c_werror_flag" |
16448 | || test ! -s conftest.err' | |
16449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16450 | (eval $ac_try) 2>&5 | |
16451 | ac_status=$? | |
16452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16453 | (exit $ac_status); }; } && | |
16454 | { ac_try='test -s conftest.$ac_objext' | |
16455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
16456 | (eval $ac_try) 2>&5 |
16457 | ac_status=$? | |
a82a04b3 | 16458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 16459 | (exit $ac_status); }; }; then |
a82a04b3 | 16460 | ac_cv_have_decl_sys_siglist=yes |
bb70624e | 16461 | else |
f73dda09 | 16462 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
16463 | sed 's/^/| /' conftest.$ac_ext >&5 |
16464 | ||
16465 | ac_cv_have_decl_sys_siglist=no | |
bb70624e | 16466 | fi |
a82a04b3 | 16467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 16468 | fi |
a82a04b3 CR |
16469 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 |
16470 | echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6 | |
16471 | if test $ac_cv_have_decl_sys_siglist = yes; then | |
16472 | ||
16473 | cat >>confdefs.h <<_ACEOF | |
16474 | #define HAVE_DECL_SYS_SIGLIST 1 | |
16475 | _ACEOF | |
16476 | ||
16477 | ||
16478 | else | |
16479 | cat >>confdefs.h <<_ACEOF | |
16480 | #define HAVE_DECL_SYS_SIGLIST 0 | |
16481 | _ACEOF | |
bb70624e | 16482 | |
f73dda09 JA |
16483 | |
16484 | fi | |
bb70624e | 16485 | |
a82a04b3 CR |
16486 | |
16487 | ||
16488 | ||
bb70624e JA |
16489 | if test "$ac_cv_func_inet_aton" != 'yes'; then |
16490 | ||
a82a04b3 | 16491 | echo "$as_me:$LINENO: checking for inet_aton" >&5 |
f73dda09 JA |
16492 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
16493 | if test "${bash_cv_func_inet_aton+set}" = set; then | |
16494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bb70624e | 16495 | else |
f73dda09 | 16496 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
16497 | /* confdefs.h. */ |
16498 | _ACEOF | |
16499 | cat confdefs.h >>conftest.$ac_ext | |
16500 | cat >>conftest.$ac_ext <<_ACEOF | |
16501 | /* end confdefs.h. */ | |
bb70624e JA |
16502 | |
16503 | #include <sys/types.h> | |
16504 | #include <netinet/in.h> | |
16505 | #include <arpa/inet.h> | |
16506 | struct in_addr ap; | |
f73dda09 JA |
16507 | int |
16508 | main () | |
16509 | { | |
16510 | inet_aton("127.0.0.1", &ap); | |
16511 | ; | |
16512 | return 0; | |
16513 | } | |
16514 | _ACEOF | |
16515 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
16516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16517 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 16518 | ac_status=$? |
a82a04b3 CR |
16519 | grep -v '^ *+' conftest.er1 >conftest.err |
16520 | rm -f conftest.er1 | |
16521 | cat conftest.err >&5 | |
16522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 16523 | (exit $ac_status); } && |
a82a04b3 CR |
16524 | { ac_try='test -z "$ac_c_werror_flag" |
16525 | || test ! -s conftest.err' | |
16526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16527 | (eval $ac_try) 2>&5 | |
16528 | ac_status=$? | |
16529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16530 | (exit $ac_status); }; } && | |
16531 | { ac_try='test -s conftest$ac_exeext' | |
16532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
16533 | (eval $ac_try) 2>&5 |
16534 | ac_status=$? | |
a82a04b3 | 16535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 16536 | (exit $ac_status); }; }; then |
bb70624e JA |
16537 | bash_cv_func_inet_aton=yes |
16538 | else | |
f73dda09 | 16539 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
16540 | sed 's/^/| /' conftest.$ac_ext >&5 |
16541 | ||
f73dda09 | 16542 | bash_cv_func_inet_aton=no |
bb70624e | 16543 | fi |
a82a04b3 CR |
16544 | rm -f conftest.err conftest.$ac_objext \ |
16545 | conftest$ac_exeext conftest.$ac_ext | |
bb70624e | 16546 | fi |
a82a04b3 | 16547 | echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5 |
f73dda09 | 16548 | echo "${ECHO_T}$bash_cv_func_inet_aton" >&6 |
bb70624e | 16549 | if test $bash_cv_func_inet_aton = yes; then |
a82a04b3 | 16550 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 16551 | #define HAVE_INET_ATON 1 |
a82a04b3 | 16552 | _ACEOF |
bb70624e | 16553 | |
f73dda09 | 16554 | else |
a82a04b3 CR |
16555 | case $LIBOBJS in |
16556 | "inet_aton.$ac_objext" | \ | |
16557 | *" inet_aton.$ac_objext" | \ | |
16558 | "inet_aton.$ac_objext "* | \ | |
16559 | *" inet_aton.$ac_objext "* ) ;; | |
16560 | *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" ;; | |
16561 | esac | |
16562 | ||
bb70624e JA |
16563 | fi |
16564 | ||
16565 | fi | |
16566 | ||
16567 | case "$host_os" in | |
f73dda09 | 16568 | irix4*) |
a82a04b3 | 16569 | echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5 |
f73dda09 JA |
16570 | echo $ECHO_N "checking for getpwent in -lsun... $ECHO_C" >&6 |
16571 | if test "${ac_cv_lib_sun_getpwent+set}" = set; then | |
16572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bb70624e | 16573 | else |
f73dda09 | 16574 | ac_check_lib_save_LIBS=$LIBS |
bb70624e | 16575 | LIBS="-lsun $LIBS" |
f73dda09 | 16576 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
16577 | /* confdefs.h. */ |
16578 | _ACEOF | |
16579 | cat confdefs.h >>conftest.$ac_ext | |
16580 | cat >>conftest.$ac_ext <<_ACEOF | |
16581 | /* end confdefs.h. */ | |
f73dda09 | 16582 | |
bb70624e | 16583 | /* Override any gcc2 internal prototype to avoid an error. */ |
f73dda09 JA |
16584 | #ifdef __cplusplus |
16585 | extern "C" | |
16586 | #endif | |
bb70624e | 16587 | /* We use char because int might match the return type of a gcc2 |
f73dda09 JA |
16588 | builtin and then its argument prototype would still apply. */ |
16589 | char getpwent (); | |
16590 | int | |
16591 | main () | |
16592 | { | |
16593 | getpwent (); | |
16594 | ; | |
16595 | return 0; | |
16596 | } | |
16597 | _ACEOF | |
16598 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
16599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16600 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 16601 | ac_status=$? |
a82a04b3 CR |
16602 | grep -v '^ *+' conftest.er1 >conftest.err |
16603 | rm -f conftest.er1 | |
16604 | cat conftest.err >&5 | |
16605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 16606 | (exit $ac_status); } && |
a82a04b3 CR |
16607 | { ac_try='test -z "$ac_c_werror_flag" |
16608 | || test ! -s conftest.err' | |
16609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
16610 | (eval $ac_try) 2>&5 |
16611 | ac_status=$? | |
a82a04b3 CR |
16612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16613 | (exit $ac_status); }; } && | |
16614 | { ac_try='test -s conftest$ac_exeext' | |
16615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16616 | (eval $ac_try) 2>&5 | |
16617 | ac_status=$? | |
16618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
16619 | (exit $ac_status); }; }; then |
16620 | ac_cv_lib_sun_getpwent=yes | |
16621 | else | |
16622 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
16623 | sed 's/^/| /' conftest.$ac_ext >&5 |
16624 | ||
f73dda09 JA |
16625 | ac_cv_lib_sun_getpwent=no |
16626 | fi | |
a82a04b3 CR |
16627 | rm -f conftest.err conftest.$ac_objext \ |
16628 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 JA |
16629 | LIBS=$ac_check_lib_save_LIBS |
16630 | fi | |
a82a04b3 | 16631 | echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5 |
f73dda09 JA |
16632 | echo "${ECHO_T}$ac_cv_lib_sun_getpwent" >&6 |
16633 | if test $ac_cv_lib_sun_getpwent = yes; then | |
a82a04b3 | 16634 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 16635 | #define HAVE_LIBSUN 1 |
a82a04b3 | 16636 | _ACEOF |
bb70624e JA |
16637 | |
16638 | LIBS="-lsun $LIBS" | |
16639 | ||
bb70624e JA |
16640 | fi |
16641 | ;; | |
16642 | esac | |
ccc6cda3 | 16643 | |
d166f048 | 16644 | if test "$ac_cv_func_getpeername" = no; then |
f73dda09 | 16645 | |
ccc6cda3 JA |
16646 | if test "X$bash_cv_have_socklib" = "X"; then |
16647 | _bash_needmsg= | |
16648 | else | |
a82a04b3 | 16649 | echo "$as_me:$LINENO: checking for socket library" >&5 |
f73dda09 | 16650 | echo $ECHO_N "checking for socket library... $ECHO_C" >&6 |
ccc6cda3 JA |
16651 | _bash_needmsg=yes |
16652 | fi | |
f73dda09 JA |
16653 | if test "${bash_cv_have_socklib+set}" = set; then |
16654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 16655 | else |
a82a04b3 | 16656 | echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5 |
f73dda09 JA |
16657 | echo $ECHO_N "checking for getpeername in -lsocket... $ECHO_C" >&6 |
16658 | if test "${ac_cv_lib_socket_getpeername+set}" = set; then | |
16659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 16660 | else |
f73dda09 | 16661 | ac_check_lib_save_LIBS=$LIBS |
ccc6cda3 | 16662 | LIBS="-lsocket -lnsl $LIBS" |
f73dda09 | 16663 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
16664 | /* confdefs.h. */ |
16665 | _ACEOF | |
16666 | cat confdefs.h >>conftest.$ac_ext | |
16667 | cat >>conftest.$ac_ext <<_ACEOF | |
16668 | /* end confdefs.h. */ | |
f73dda09 | 16669 | |
ccc6cda3 | 16670 | /* Override any gcc2 internal prototype to avoid an error. */ |
f73dda09 JA |
16671 | #ifdef __cplusplus |
16672 | extern "C" | |
16673 | #endif | |
ccc6cda3 | 16674 | /* We use char because int might match the return type of a gcc2 |
f73dda09 JA |
16675 | builtin and then its argument prototype would still apply. */ |
16676 | char getpeername (); | |
16677 | int | |
16678 | main () | |
16679 | { | |
16680 | getpeername (); | |
16681 | ; | |
16682 | return 0; | |
16683 | } | |
16684 | _ACEOF | |
16685 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
16686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16687 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 16688 | ac_status=$? |
a82a04b3 CR |
16689 | grep -v '^ *+' conftest.er1 >conftest.err |
16690 | rm -f conftest.er1 | |
16691 | cat conftest.err >&5 | |
16692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 16693 | (exit $ac_status); } && |
a82a04b3 CR |
16694 | { ac_try='test -z "$ac_c_werror_flag" |
16695 | || test ! -s conftest.err' | |
16696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
16697 | (eval $ac_try) 2>&5 |
16698 | ac_status=$? | |
a82a04b3 CR |
16699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16700 | (exit $ac_status); }; } && | |
16701 | { ac_try='test -s conftest$ac_exeext' | |
16702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16703 | (eval $ac_try) 2>&5 | |
16704 | ac_status=$? | |
16705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
16706 | (exit $ac_status); }; }; then |
16707 | ac_cv_lib_socket_getpeername=yes | |
16708 | else | |
16709 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
16710 | sed 's/^/| /' conftest.$ac_ext >&5 |
16711 | ||
f73dda09 JA |
16712 | ac_cv_lib_socket_getpeername=no |
16713 | fi | |
a82a04b3 CR |
16714 | rm -f conftest.err conftest.$ac_objext \ |
16715 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 JA |
16716 | LIBS=$ac_check_lib_save_LIBS |
16717 | fi | |
a82a04b3 | 16718 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5 |
f73dda09 JA |
16719 | echo "${ECHO_T}$ac_cv_lib_socket_getpeername" >&6 |
16720 | if test $ac_cv_lib_socket_getpeername = yes; then | |
ccc6cda3 JA |
16721 | bash_cv_have_socklib=yes |
16722 | else | |
f73dda09 | 16723 | bash_cv_have_socklib=no |
ccc6cda3 JA |
16724 | fi |
16725 | ||
16726 | fi | |
16727 | ||
16728 | if test "X$_bash_needmsg" = Xyes; then | |
a82a04b3 | 16729 | echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5 |
f73dda09 | 16730 | echo "${ECHO_T}$bash_cv_have_socklib" >&6 |
ccc6cda3 JA |
16731 | _bash_needmsg= |
16732 | fi | |
16733 | if test $bash_cv_have_socklib = yes; then | |
16734 | # check for libnsl, add it to LIBS if present | |
16735 | if test "X$bash_cv_have_libnsl" = "X"; then | |
16736 | _bash_needmsg= | |
16737 | else | |
a82a04b3 | 16738 | echo "$as_me:$LINENO: checking for libnsl" >&5 |
f73dda09 | 16739 | echo $ECHO_N "checking for libnsl... $ECHO_C" >&6 |
ccc6cda3 JA |
16740 | _bash_needmsg=yes |
16741 | fi | |
f73dda09 JA |
16742 | if test "${bash_cv_have_libnsl+set}" = set; then |
16743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 16744 | else |
a82a04b3 | 16745 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
f73dda09 JA |
16746 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
16747 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then | |
16748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 16749 | else |
f73dda09 | 16750 | ac_check_lib_save_LIBS=$LIBS |
ccc6cda3 | 16751 | LIBS="-lnsl $LIBS" |
f73dda09 | 16752 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
16753 | /* confdefs.h. */ |
16754 | _ACEOF | |
16755 | cat confdefs.h >>conftest.$ac_ext | |
16756 | cat >>conftest.$ac_ext <<_ACEOF | |
16757 | /* end confdefs.h. */ | |
f73dda09 | 16758 | |
ccc6cda3 | 16759 | /* Override any gcc2 internal prototype to avoid an error. */ |
f73dda09 JA |
16760 | #ifdef __cplusplus |
16761 | extern "C" | |
16762 | #endif | |
ccc6cda3 | 16763 | /* We use char because int might match the return type of a gcc2 |
f73dda09 JA |
16764 | builtin and then its argument prototype would still apply. */ |
16765 | char t_open (); | |
16766 | int | |
16767 | main () | |
16768 | { | |
16769 | t_open (); | |
16770 | ; | |
16771 | return 0; | |
16772 | } | |
16773 | _ACEOF | |
16774 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
16775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16776 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 16777 | ac_status=$? |
a82a04b3 CR |
16778 | grep -v '^ *+' conftest.er1 >conftest.err |
16779 | rm -f conftest.er1 | |
16780 | cat conftest.err >&5 | |
16781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 16782 | (exit $ac_status); } && |
a82a04b3 CR |
16783 | { ac_try='test -z "$ac_c_werror_flag" |
16784 | || test ! -s conftest.err' | |
16785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16786 | (eval $ac_try) 2>&5 | |
16787 | ac_status=$? | |
16788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16789 | (exit $ac_status); }; } && | |
16790 | { ac_try='test -s conftest$ac_exeext' | |
16791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
16792 | (eval $ac_try) 2>&5 |
16793 | ac_status=$? | |
a82a04b3 | 16794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
16795 | (exit $ac_status); }; }; then |
16796 | ac_cv_lib_nsl_t_open=yes | |
16797 | else | |
16798 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
16799 | sed 's/^/| /' conftest.$ac_ext >&5 |
16800 | ||
f73dda09 JA |
16801 | ac_cv_lib_nsl_t_open=no |
16802 | fi | |
a82a04b3 CR |
16803 | rm -f conftest.err conftest.$ac_objext \ |
16804 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 JA |
16805 | LIBS=$ac_check_lib_save_LIBS |
16806 | fi | |
a82a04b3 | 16807 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
f73dda09 JA |
16808 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
16809 | if test $ac_cv_lib_nsl_t_open = yes; then | |
ccc6cda3 JA |
16810 | bash_cv_have_libnsl=yes |
16811 | else | |
f73dda09 | 16812 | bash_cv_have_libnsl=no |
ccc6cda3 JA |
16813 | fi |
16814 | ||
16815 | fi | |
16816 | ||
16817 | if test "X$_bash_needmsg" = Xyes; then | |
a82a04b3 | 16818 | echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5 |
f73dda09 | 16819 | echo "${ECHO_T}$bash_cv_have_libnsl" >&6 |
ccc6cda3 JA |
16820 | _bash_needmsg= |
16821 | fi | |
16822 | if test $bash_cv_have_libnsl = yes; then | |
16823 | LIBS="-lsocket -lnsl $LIBS" | |
16824 | else | |
16825 | LIBS="-lsocket $LIBS" | |
16826 | fi | |
a82a04b3 | 16827 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 16828 | #define HAVE_LIBSOCKET 1 |
a82a04b3 | 16829 | _ACEOF |
ccc6cda3 | 16830 | |
a82a04b3 | 16831 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 16832 | #define HAVE_GETPEERNAME 1 |
a82a04b3 | 16833 | _ACEOF |
ccc6cda3 JA |
16834 | |
16835 | fi | |
16836 | ||
bb70624e JA |
16837 | fi |
16838 | if test "$ac_cv_func_gethostbyname" = no; then | |
16839 | if test "X$bash_cv_have_gethostbyname" = "X"; then | |
16840 | _bash_needmsg=yes | |
16841 | else | |
a82a04b3 | 16842 | echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5 |
f73dda09 | 16843 | echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6 |
bb70624e JA |
16844 | _bash_needmsg= |
16845 | fi | |
f73dda09 JA |
16846 | if test "${bash_cv_have_gethostbyname+set}" = set; then |
16847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bb70624e | 16848 | else |
f73dda09 | 16849 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
16850 | /* confdefs.h. */ |
16851 | _ACEOF | |
16852 | cat confdefs.h >>conftest.$ac_ext | |
16853 | cat >>conftest.$ac_ext <<_ACEOF | |
16854 | /* end confdefs.h. */ | |
bb70624e | 16855 | #include <netdb.h> |
f73dda09 JA |
16856 | int |
16857 | main () | |
16858 | { | |
bb70624e JA |
16859 | struct hostent *hp; |
16860 | hp = gethostbyname("localhost"); | |
16861 | ||
f73dda09 JA |
16862 | ; |
16863 | return 0; | |
16864 | } | |
16865 | _ACEOF | |
16866 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
16867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16868 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 16869 | ac_status=$? |
a82a04b3 CR |
16870 | grep -v '^ *+' conftest.er1 >conftest.err |
16871 | rm -f conftest.er1 | |
16872 | cat conftest.err >&5 | |
16873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 16874 | (exit $ac_status); } && |
a82a04b3 CR |
16875 | { ac_try='test -z "$ac_c_werror_flag" |
16876 | || test ! -s conftest.err' | |
16877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
16878 | (eval $ac_try) 2>&5 |
16879 | ac_status=$? | |
a82a04b3 CR |
16880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16881 | (exit $ac_status); }; } && | |
16882 | { ac_try='test -s conftest$ac_exeext' | |
16883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16884 | (eval $ac_try) 2>&5 | |
16885 | ac_status=$? | |
16886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 16887 | (exit $ac_status); }; }; then |
bb70624e JA |
16888 | bash_cv_have_gethostbyname=yes |
16889 | else | |
f73dda09 | 16890 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
16891 | sed 's/^/| /' conftest.$ac_ext >&5 |
16892 | ||
f73dda09 JA |
16893 | bash_cv_have_gethostbyname=no |
16894 | fi | |
a82a04b3 CR |
16895 | rm -f conftest.err conftest.$ac_objext \ |
16896 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 JA |
16897 | |
16898 | fi | |
16899 | ||
16900 | if test "X$_bash_needmsg" = Xyes; then | |
a82a04b3 | 16901 | echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5 |
f73dda09 JA |
16902 | echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6 |
16903 | fi | |
a82a04b3 | 16904 | echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5 |
f73dda09 JA |
16905 | echo "${ECHO_T}$bash_cv_have_gethostbyname" >&6 |
16906 | if test "$bash_cv_have_gethostbyname" = yes; then | |
a82a04b3 | 16907 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 16908 | #define HAVE_GETHOSTBYNAME 1 |
a82a04b3 | 16909 | _ACEOF |
f73dda09 JA |
16910 | |
16911 | fi | |
16912 | ||
16913 | fi | |
16914 | ||
a82a04b3 | 16915 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
f73dda09 JA |
16916 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
16917 | if test "${ac_cv_type_uid_t+set}" = set; then | |
16918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16919 | else | |
16920 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
16921 | /* confdefs.h. */ |
16922 | _ACEOF | |
16923 | cat confdefs.h >>conftest.$ac_ext | |
16924 | cat >>conftest.$ac_ext <<_ACEOF | |
16925 | /* end confdefs.h. */ | |
f73dda09 JA |
16926 | #include <sys/types.h> |
16927 | ||
16928 | _ACEOF | |
16929 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
a82a04b3 | 16930 | $EGREP "uid_t" >/dev/null 2>&1; then |
f73dda09 JA |
16931 | ac_cv_type_uid_t=yes |
16932 | else | |
16933 | ac_cv_type_uid_t=no | |
16934 | fi | |
16935 | rm -f conftest* | |
16936 | ||
16937 | fi | |
a82a04b3 | 16938 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
f73dda09 JA |
16939 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
16940 | if test $ac_cv_type_uid_t = no; then | |
16941 | ||
a82a04b3 | 16942 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 16943 | #define uid_t int |
a82a04b3 | 16944 | _ACEOF |
f73dda09 | 16945 | |
a82a04b3 CR |
16946 | |
16947 | cat >>confdefs.h <<\_ACEOF | |
f73dda09 | 16948 | #define gid_t int |
a82a04b3 | 16949 | _ACEOF |
f73dda09 JA |
16950 | |
16951 | fi | |
16952 | ||
a82a04b3 | 16953 | echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5 |
f73dda09 JA |
16954 | echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6 |
16955 | if test "${ac_cv_type_getgroups+set}" = set; then | |
16956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16957 | else | |
16958 | if test "$cross_compiling" = yes; then | |
16959 | ac_cv_type_getgroups=cross | |
16960 | else | |
16961 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
16962 | /* confdefs.h. */ |
16963 | _ACEOF | |
16964 | cat confdefs.h >>conftest.$ac_ext | |
16965 | cat >>conftest.$ac_ext <<_ACEOF | |
16966 | /* end confdefs.h. */ | |
f73dda09 JA |
16967 | /* Thanks to Mike Rendell for this test. */ |
16968 | #include <sys/types.h> | |
16969 | #define NGID 256 | |
16970 | #undef MAX | |
16971 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) | |
16972 | ||
16973 | int | |
16974 | main () | |
16975 | { | |
16976 | gid_t gidset[NGID]; | |
16977 | int i, n; | |
16978 | union { gid_t gval; long lval; } val; | |
16979 | ||
16980 | val.lval = -1; | |
16981 | for (i = 0; i < NGID; i++) | |
16982 | gidset[i] = val.gval; | |
16983 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, | |
a82a04b3 | 16984 | gidset); |
f73dda09 JA |
16985 | /* Exit non-zero if getgroups seems to require an array of ints. This |
16986 | happens when gid_t is short but getgroups modifies an array of ints. */ | |
16987 | exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0); | |
16988 | } | |
16989 | _ACEOF | |
16990 | rm -f conftest$ac_exeext | |
a82a04b3 | 16991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
16992 | (eval $ac_link) 2>&5 |
16993 | ac_status=$? | |
a82a04b3 | 16994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 16995 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 16996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
16997 | (eval $ac_try) 2>&5 |
16998 | ac_status=$? | |
a82a04b3 | 16999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
17000 | (exit $ac_status); }; }; then |
17001 | ac_cv_type_getgroups=gid_t | |
17002 | else | |
17003 | echo "$as_me: program exited with status $ac_status" >&5 | |
17004 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
17005 | sed 's/^/| /' conftest.$ac_ext >&5 |
17006 | ||
17007 | ( exit $ac_status ) | |
f73dda09 JA |
17008 | ac_cv_type_getgroups=int |
17009 | fi | |
a82a04b3 | 17010 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f73dda09 JA |
17011 | fi |
17012 | if test $ac_cv_type_getgroups = cross; then | |
17013 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
17014 | /* confdefs.h. */ |
17015 | _ACEOF | |
17016 | cat confdefs.h >>conftest.$ac_ext | |
17017 | cat >>conftest.$ac_ext <<_ACEOF | |
17018 | /* end confdefs.h. */ | |
f73dda09 JA |
17019 | #include <unistd.h> |
17020 | ||
17021 | _ACEOF | |
17022 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
a82a04b3 | 17023 | $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then |
f73dda09 JA |
17024 | ac_cv_type_getgroups=gid_t |
17025 | else | |
17026 | ac_cv_type_getgroups=int | |
bb70624e JA |
17027 | fi |
17028 | rm -f conftest* | |
17029 | ||
17030 | fi | |
f73dda09 | 17031 | fi |
a82a04b3 | 17032 | echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5 |
f73dda09 JA |
17033 | echo "${ECHO_T}$ac_cv_type_getgroups" >&6 |
17034 | ||
a82a04b3 | 17035 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 17036 | #define GETGROUPS_T $ac_cv_type_getgroups |
a82a04b3 | 17037 | _ACEOF |
f73dda09 | 17038 | |
a82a04b3 CR |
17039 | |
17040 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
f73dda09 JA |
17041 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
17042 | if test "${ac_cv_type_off_t+set}" = set; then | |
17043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17044 | else | |
17045 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
17046 | /* confdefs.h. */ |
17047 | _ACEOF | |
17048 | cat confdefs.h >>conftest.$ac_ext | |
17049 | cat >>conftest.$ac_ext <<_ACEOF | |
17050 | /* end confdefs.h. */ | |
f73dda09 JA |
17051 | $ac_includes_default |
17052 | int | |
17053 | main () | |
17054 | { | |
17055 | if ((off_t *) 0) | |
17056 | return 0; | |
17057 | if (sizeof (off_t)) | |
17058 | return 0; | |
17059 | ; | |
17060 | return 0; | |
17061 | } | |
17062 | _ACEOF | |
17063 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
17064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17065 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 17066 | ac_status=$? |
a82a04b3 CR |
17067 | grep -v '^ *+' conftest.er1 >conftest.err |
17068 | rm -f conftest.er1 | |
17069 | cat conftest.err >&5 | |
17070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 17071 | (exit $ac_status); } && |
a82a04b3 CR |
17072 | { ac_try='test -z "$ac_c_werror_flag" |
17073 | || test ! -s conftest.err' | |
17074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17075 | (eval $ac_try) 2>&5 | |
17076 | ac_status=$? | |
17077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17078 | (exit $ac_status); }; } && | |
17079 | { ac_try='test -s conftest.$ac_objext' | |
17080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
17081 | (eval $ac_try) 2>&5 |
17082 | ac_status=$? | |
a82a04b3 | 17083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
17084 | (exit $ac_status); }; }; then |
17085 | ac_cv_type_off_t=yes | |
17086 | else | |
17087 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
17088 | sed 's/^/| /' conftest.$ac_ext >&5 |
17089 | ||
f73dda09 JA |
17090 | ac_cv_type_off_t=no |
17091 | fi | |
a82a04b3 | 17092 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 17093 | fi |
a82a04b3 | 17094 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
f73dda09 JA |
17095 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
17096 | if test $ac_cv_type_off_t = yes; then | |
17097 | : | |
17098 | else | |
17099 | ||
a82a04b3 | 17100 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 17101 | #define off_t long |
a82a04b3 | 17102 | _ACEOF |
f73dda09 JA |
17103 | |
17104 | fi | |
17105 | ||
a82a04b3 | 17106 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
f73dda09 JA |
17107 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
17108 | if test "${ac_cv_type_mode_t+set}" = set; then | |
17109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17110 | else | |
17111 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
17112 | /* confdefs.h. */ |
17113 | _ACEOF | |
17114 | cat confdefs.h >>conftest.$ac_ext | |
17115 | cat >>conftest.$ac_ext <<_ACEOF | |
17116 | /* end confdefs.h. */ | |
f73dda09 JA |
17117 | $ac_includes_default |
17118 | int | |
17119 | main () | |
17120 | { | |
17121 | if ((mode_t *) 0) | |
17122 | return 0; | |
17123 | if (sizeof (mode_t)) | |
17124 | return 0; | |
17125 | ; | |
17126 | return 0; | |
17127 | } | |
17128 | _ACEOF | |
17129 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
17130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17131 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 17132 | ac_status=$? |
a82a04b3 CR |
17133 | grep -v '^ *+' conftest.er1 >conftest.err |
17134 | rm -f conftest.er1 | |
17135 | cat conftest.err >&5 | |
17136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 17137 | (exit $ac_status); } && |
a82a04b3 CR |
17138 | { ac_try='test -z "$ac_c_werror_flag" |
17139 | || test ! -s conftest.err' | |
17140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17141 | (eval $ac_try) 2>&5 | |
17142 | ac_status=$? | |
17143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17144 | (exit $ac_status); }; } && | |
17145 | { ac_try='test -s conftest.$ac_objext' | |
17146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
17147 | (eval $ac_try) 2>&5 |
17148 | ac_status=$? | |
a82a04b3 | 17149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
17150 | (exit $ac_status); }; }; then |
17151 | ac_cv_type_mode_t=yes | |
17152 | else | |
17153 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
17154 | sed 's/^/| /' conftest.$ac_ext >&5 |
17155 | ||
f73dda09 JA |
17156 | ac_cv_type_mode_t=no |
17157 | fi | |
a82a04b3 | 17158 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 17159 | fi |
a82a04b3 | 17160 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
f73dda09 JA |
17161 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
17162 | if test $ac_cv_type_mode_t = yes; then | |
17163 | : | |
17164 | else | |
bb70624e | 17165 | |
a82a04b3 | 17166 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 17167 | #define mode_t int |
a82a04b3 | 17168 | _ACEOF |
bb70624e JA |
17169 | |
17170 | fi | |
17171 | ||
a82a04b3 | 17172 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
f73dda09 JA |
17173 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
17174 | if test "${ac_cv_type_uid_t+set}" = set; then | |
17175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 17176 | else |
f73dda09 | 17177 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
17178 | /* confdefs.h. */ |
17179 | _ACEOF | |
17180 | cat confdefs.h >>conftest.$ac_ext | |
17181 | cat >>conftest.$ac_ext <<_ACEOF | |
17182 | /* end confdefs.h. */ | |
ccc6cda3 | 17183 | #include <sys/types.h> |
f73dda09 JA |
17184 | |
17185 | _ACEOF | |
ccc6cda3 | 17186 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
a82a04b3 | 17187 | $EGREP "uid_t" >/dev/null 2>&1; then |
ccc6cda3 JA |
17188 | ac_cv_type_uid_t=yes |
17189 | else | |
ccc6cda3 JA |
17190 | ac_cv_type_uid_t=no |
17191 | fi | |
17192 | rm -f conftest* | |
17193 | ||
17194 | fi | |
a82a04b3 | 17195 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
f73dda09 | 17196 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
ccc6cda3 | 17197 | if test $ac_cv_type_uid_t = no; then |
f73dda09 | 17198 | |
a82a04b3 | 17199 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 17200 | #define uid_t int |
a82a04b3 CR |
17201 | _ACEOF |
17202 | ||
ccc6cda3 | 17203 | |
a82a04b3 | 17204 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 17205 | #define gid_t int |
a82a04b3 | 17206 | _ACEOF |
ccc6cda3 JA |
17207 | |
17208 | fi | |
17209 | ||
a82a04b3 | 17210 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
f73dda09 JA |
17211 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
17212 | if test "${ac_cv_type_pid_t+set}" = set; then | |
17213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 17214 | else |
f73dda09 | 17215 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
17216 | /* confdefs.h. */ |
17217 | _ACEOF | |
17218 | cat confdefs.h >>conftest.$ac_ext | |
17219 | cat >>conftest.$ac_ext <<_ACEOF | |
17220 | /* end confdefs.h. */ | |
f73dda09 JA |
17221 | $ac_includes_default |
17222 | int | |
17223 | main () | |
ccc6cda3 | 17224 | { |
f73dda09 JA |
17225 | if ((pid_t *) 0) |
17226 | return 0; | |
17227 | if (sizeof (pid_t)) | |
17228 | return 0; | |
17229 | ; | |
17230 | return 0; | |
ccc6cda3 | 17231 | } |
f73dda09 JA |
17232 | _ACEOF |
17233 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
17234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17235 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 17236 | ac_status=$? |
a82a04b3 CR |
17237 | grep -v '^ *+' conftest.er1 >conftest.err |
17238 | rm -f conftest.er1 | |
17239 | cat conftest.err >&5 | |
17240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 17241 | (exit $ac_status); } && |
a82a04b3 CR |
17242 | { ac_try='test -z "$ac_c_werror_flag" |
17243 | || test ! -s conftest.err' | |
17244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17245 | (eval $ac_try) 2>&5 | |
17246 | ac_status=$? | |
17247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17248 | (exit $ac_status); }; } && | |
17249 | { ac_try='test -s conftest.$ac_objext' | |
17250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
17251 | (eval $ac_try) 2>&5 |
17252 | ac_status=$? | |
a82a04b3 | 17253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
17254 | (exit $ac_status); }; }; then |
17255 | ac_cv_type_pid_t=yes | |
ccc6cda3 | 17256 | else |
f73dda09 | 17257 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
17258 | sed 's/^/| /' conftest.$ac_ext >&5 |
17259 | ||
f73dda09 | 17260 | ac_cv_type_pid_t=no |
ccc6cda3 | 17261 | fi |
a82a04b3 | 17262 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 17263 | fi |
a82a04b3 | 17264 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
f73dda09 JA |
17265 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
17266 | if test $ac_cv_type_pid_t = yes; then | |
17267 | : | |
17268 | else | |
ccc6cda3 | 17269 | |
a82a04b3 | 17270 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 17271 | #define pid_t int |
a82a04b3 | 17272 | _ACEOF |
f73dda09 | 17273 | |
ccc6cda3 | 17274 | fi |
ccc6cda3 | 17275 | |
a82a04b3 | 17276 | echo "$as_me:$LINENO: checking for size_t" >&5 |
f73dda09 JA |
17277 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
17278 | if test "${ac_cv_type_size_t+set}" = set; then | |
17279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17280 | else | |
17281 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
17282 | /* confdefs.h. */ |
17283 | _ACEOF | |
17284 | cat confdefs.h >>conftest.$ac_ext | |
17285 | cat >>conftest.$ac_ext <<_ACEOF | |
17286 | /* end confdefs.h. */ | |
f73dda09 JA |
17287 | $ac_includes_default |
17288 | int | |
17289 | main () | |
17290 | { | |
17291 | if ((size_t *) 0) | |
17292 | return 0; | |
17293 | if (sizeof (size_t)) | |
17294 | return 0; | |
17295 | ; | |
17296 | return 0; | |
17297 | } | |
17298 | _ACEOF | |
17299 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
17300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17301 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 17302 | ac_status=$? |
a82a04b3 CR |
17303 | grep -v '^ *+' conftest.er1 >conftest.err |
17304 | rm -f conftest.er1 | |
17305 | cat conftest.err >&5 | |
17306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 17307 | (exit $ac_status); } && |
a82a04b3 CR |
17308 | { ac_try='test -z "$ac_c_werror_flag" |
17309 | || test ! -s conftest.err' | |
17310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17311 | (eval $ac_try) 2>&5 | |
17312 | ac_status=$? | |
17313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17314 | (exit $ac_status); }; } && | |
17315 | { ac_try='test -s conftest.$ac_objext' | |
17316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
17317 | (eval $ac_try) 2>&5 |
17318 | ac_status=$? | |
a82a04b3 | 17319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
17320 | (exit $ac_status); }; }; then |
17321 | ac_cv_type_size_t=yes | |
17322 | else | |
17323 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
17324 | sed 's/^/| /' conftest.$ac_ext >&5 |
17325 | ||
f73dda09 | 17326 | ac_cv_type_size_t=no |
ccc6cda3 | 17327 | fi |
a82a04b3 | 17328 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 17329 | fi |
a82a04b3 | 17330 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
f73dda09 JA |
17331 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
17332 | if test $ac_cv_type_size_t = yes; then | |
17333 | : | |
17334 | else | |
ccc6cda3 | 17335 | |
a82a04b3 | 17336 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 17337 | #define size_t unsigned |
a82a04b3 | 17338 | _ACEOF |
ccc6cda3 | 17339 | |
f73dda09 | 17340 | fi |
ccc6cda3 | 17341 | |
a82a04b3 | 17342 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
f73dda09 JA |
17343 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 |
17344 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
17345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 17346 | else |
f73dda09 | 17347 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
17348 | /* confdefs.h. */ |
17349 | _ACEOF | |
17350 | cat confdefs.h >>conftest.$ac_ext | |
17351 | cat >>conftest.$ac_ext <<_ACEOF | |
17352 | /* end confdefs.h. */ | |
f73dda09 JA |
17353 | $ac_includes_default |
17354 | int | |
17355 | main () | |
17356 | { | |
17357 | if ((ssize_t *) 0) | |
17358 | return 0; | |
17359 | if (sizeof (ssize_t)) | |
17360 | return 0; | |
17361 | ; | |
17362 | return 0; | |
17363 | } | |
17364 | _ACEOF | |
17365 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
17366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17367 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 17368 | ac_status=$? |
a82a04b3 CR |
17369 | grep -v '^ *+' conftest.er1 >conftest.err |
17370 | rm -f conftest.er1 | |
17371 | cat conftest.err >&5 | |
17372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 17373 | (exit $ac_status); } && |
a82a04b3 CR |
17374 | { ac_try='test -z "$ac_c_werror_flag" |
17375 | || test ! -s conftest.err' | |
17376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17377 | (eval $ac_try) 2>&5 | |
17378 | ac_status=$? | |
17379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17380 | (exit $ac_status); }; } && | |
17381 | { ac_try='test -s conftest.$ac_objext' | |
17382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
17383 | (eval $ac_try) 2>&5 |
17384 | ac_status=$? | |
a82a04b3 | 17385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
17386 | (exit $ac_status); }; }; then |
17387 | ac_cv_type_ssize_t=yes | |
17388 | else | |
17389 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
17390 | sed 's/^/| /' conftest.$ac_ext >&5 |
17391 | ||
f73dda09 JA |
17392 | ac_cv_type_ssize_t=no |
17393 | fi | |
a82a04b3 | 17394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 17395 | fi |
a82a04b3 | 17396 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
f73dda09 JA |
17397 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 |
17398 | if test $ac_cv_type_ssize_t = yes; then | |
17399 | : | |
ccc6cda3 | 17400 | else |
ccc6cda3 | 17401 | |
a82a04b3 | 17402 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 17403 | #define ssize_t int |
a82a04b3 | 17404 | _ACEOF |
ccc6cda3 JA |
17405 | |
17406 | fi | |
17407 | ||
a82a04b3 | 17408 | echo "$as_me:$LINENO: checking for time_t" >&5 |
f73dda09 JA |
17409 | echo $ECHO_N "checking for time_t... $ECHO_C" >&6 |
17410 | if test "${ac_cv_type_time_t+set}" = set; then | |
17411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17412 | else | |
17413 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
17414 | /* confdefs.h. */ |
17415 | _ACEOF | |
17416 | cat confdefs.h >>conftest.$ac_ext | |
17417 | cat >>conftest.$ac_ext <<_ACEOF | |
17418 | /* end confdefs.h. */ | |
f73dda09 JA |
17419 | $ac_includes_default |
17420 | int | |
17421 | main () | |
17422 | { | |
17423 | if ((time_t *) 0) | |
17424 | return 0; | |
17425 | if (sizeof (time_t)) | |
17426 | return 0; | |
17427 | ; | |
17428 | return 0; | |
17429 | } | |
17430 | _ACEOF | |
17431 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
17432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17433 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 17434 | ac_status=$? |
a82a04b3 CR |
17435 | grep -v '^ *+' conftest.er1 >conftest.err |
17436 | rm -f conftest.er1 | |
17437 | cat conftest.err >&5 | |
17438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 17439 | (exit $ac_status); } && |
a82a04b3 CR |
17440 | { ac_try='test -z "$ac_c_werror_flag" |
17441 | || test ! -s conftest.err' | |
17442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17443 | (eval $ac_try) 2>&5 | |
17444 | ac_status=$? | |
17445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17446 | (exit $ac_status); }; } && | |
17447 | { ac_try='test -s conftest.$ac_objext' | |
17448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
17449 | (eval $ac_try) 2>&5 |
17450 | ac_status=$? | |
a82a04b3 | 17451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
17452 | (exit $ac_status); }; }; then |
17453 | ac_cv_type_time_t=yes | |
ccc6cda3 | 17454 | else |
f73dda09 | 17455 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
17456 | sed 's/^/| /' conftest.$ac_ext >&5 |
17457 | ||
f73dda09 | 17458 | ac_cv_type_time_t=no |
ccc6cda3 | 17459 | fi |
a82a04b3 | 17460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 17461 | fi |
a82a04b3 | 17462 | echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 |
f73dda09 JA |
17463 | echo "${ECHO_T}$ac_cv_type_time_t" >&6 |
17464 | if test $ac_cv_type_time_t = yes; then | |
17465 | : | |
17466 | else | |
17467 | ||
a82a04b3 | 17468 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 17469 | #define time_t long |
a82a04b3 | 17470 | _ACEOF |
ccc6cda3 JA |
17471 | |
17472 | fi | |
17473 | ||
a82a04b3 CR |
17474 | |
17475 | ||
17476 | echo "$as_me:$LINENO: checking for long long" >&5 | |
f73dda09 JA |
17477 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
17478 | if test "${bash_cv_type_long_long+set}" = set; then | |
17479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 17480 | else |
f73dda09 | 17481 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
17482 | /* confdefs.h. */ |
17483 | _ACEOF | |
17484 | cat confdefs.h >>conftest.$ac_ext | |
17485 | cat >>conftest.$ac_ext <<_ACEOF | |
17486 | /* end confdefs.h. */ | |
ccc6cda3 | 17487 | |
f73dda09 JA |
17488 | long long ll = 1; int i = 63; |
17489 | int | |
17490 | main () | |
17491 | { | |
17492 | ||
17493 | long long llm = (long long) -1; | |
17494 | return ll << i | ll >> i | llm / ll | llm % ll; | |
17495 | ||
17496 | ; | |
17497 | return 0; | |
17498 | } | |
17499 | _ACEOF | |
17500 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
17501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
17502 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 17503 | ac_status=$? |
a82a04b3 CR |
17504 | grep -v '^ *+' conftest.er1 >conftest.err |
17505 | rm -f conftest.er1 | |
17506 | cat conftest.err >&5 | |
17507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 17508 | (exit $ac_status); } && |
a82a04b3 CR |
17509 | { ac_try='test -z "$ac_c_werror_flag" |
17510 | || test ! -s conftest.err' | |
17511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17512 | (eval $ac_try) 2>&5 | |
17513 | ac_status=$? | |
17514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17515 | (exit $ac_status); }; } && | |
17516 | { ac_try='test -s conftest$ac_exeext' | |
17517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
17518 | (eval $ac_try) 2>&5 |
17519 | ac_status=$? | |
a82a04b3 | 17520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
17521 | (exit $ac_status); }; }; then |
17522 | bash_cv_type_long_long='long long' | |
ccc6cda3 | 17523 | else |
f73dda09 | 17524 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
17525 | sed 's/^/| /' conftest.$ac_ext >&5 |
17526 | ||
f73dda09 | 17527 | bash_cv_type_long_long='long' |
ccc6cda3 | 17528 | fi |
a82a04b3 CR |
17529 | rm -f conftest.err conftest.$ac_objext \ |
17530 | conftest$ac_exeext conftest.$ac_ext | |
ccc6cda3 | 17531 | fi |
a82a04b3 | 17532 | echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5 |
f73dda09 JA |
17533 | echo "${ECHO_T}$bash_cv_type_long_long" >&6 |
17534 | if test "$bash_cv_type_long_long" = 'long long'; then | |
a82a04b3 | 17535 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 17536 | #define HAVE_LONG_LONG 1 |
a82a04b3 | 17537 | _ACEOF |
ccc6cda3 | 17538 | |
ccc6cda3 JA |
17539 | fi |
17540 | ||
a82a04b3 CR |
17541 | |
17542 | echo "$as_me:$LINENO: checking for unsigned long long" >&5 | |
f73dda09 JA |
17543 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 |
17544 | if test "${bash_cv_type_unsigned_long_long+set}" = set; then | |
17545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17546 | else | |
17547 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
17548 | /* confdefs.h. */ |
17549 | _ACEOF | |
17550 | cat confdefs.h >>conftest.$ac_ext | |
17551 | cat >>conftest.$ac_ext <<_ACEOF | |
17552 | /* end confdefs.h. */ | |
f73dda09 JA |
17553 | |
17554 | unsigned long long ull = 1; int i = 63; | |
17555 | int | |
17556 | main () | |
17557 | { | |
17558 | ||
17559 | unsigned long long ullmax = (unsigned long long) -1; | |
17560 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; | |
17561 | ||
17562 | ; | |
17563 | return 0; | |
17564 | } | |
17565 | _ACEOF | |
17566 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
17567 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
17568 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 17569 | ac_status=$? |
a82a04b3 CR |
17570 | grep -v '^ *+' conftest.er1 >conftest.err |
17571 | rm -f conftest.er1 | |
17572 | cat conftest.err >&5 | |
17573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 17574 | (exit $ac_status); } && |
a82a04b3 CR |
17575 | { ac_try='test -z "$ac_c_werror_flag" |
17576 | || test ! -s conftest.err' | |
17577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
17578 | (eval $ac_try) 2>&5 |
17579 | ac_status=$? | |
a82a04b3 CR |
17580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17581 | (exit $ac_status); }; } && | |
17582 | { ac_try='test -s conftest$ac_exeext' | |
17583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17584 | (eval $ac_try) 2>&5 | |
17585 | ac_status=$? | |
17586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
17587 | (exit $ac_status); }; }; then |
17588 | bash_cv_type_unsigned_long_long='unsigned long long' | |
17589 | else | |
17590 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
17591 | sed 's/^/| /' conftest.$ac_ext >&5 |
17592 | ||
f73dda09 JA |
17593 | bash_cv_type_unsigned_long_long='unsigned long' |
17594 | fi | |
a82a04b3 CR |
17595 | rm -f conftest.err conftest.$ac_objext \ |
17596 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 17597 | fi |
a82a04b3 | 17598 | echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5 |
f73dda09 JA |
17599 | echo "${ECHO_T}$bash_cv_type_unsigned_long_long" >&6 |
17600 | if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then | |
a82a04b3 | 17601 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 17602 | #define HAVE_UNSIGNED_LONG_LONG 1 |
a82a04b3 | 17603 | _ACEOF |
ccc6cda3 JA |
17604 | |
17605 | fi | |
17606 | ||
a82a04b3 CR |
17607 | |
17608 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
f73dda09 JA |
17609 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
17610 | if test "${ac_cv_type_signal+set}" = set; then | |
17611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 17612 | else |
f73dda09 | 17613 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
17614 | /* confdefs.h. */ |
17615 | _ACEOF | |
17616 | cat confdefs.h >>conftest.$ac_ext | |
17617 | cat >>conftest.$ac_ext <<_ACEOF | |
17618 | /* end confdefs.h. */ | |
ccc6cda3 | 17619 | #include <sys/types.h> |
f73dda09 JA |
17620 | #include <signal.h> |
17621 | #ifdef signal | |
17622 | # undef signal | |
ccc6cda3 | 17623 | #endif |
f73dda09 JA |
17624 | #ifdef __cplusplus |
17625 | extern "C" void (*signal (int, void (*)(int)))(int); | |
17626 | #else | |
17627 | void (*signal ()) (); | |
17628 | #endif | |
17629 | ||
17630 | int | |
17631 | main () | |
17632 | { | |
17633 | int i; | |
17634 | ; | |
17635 | return 0; | |
17636 | } | |
17637 | _ACEOF | |
17638 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
17639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17640 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 17641 | ac_status=$? |
a82a04b3 CR |
17642 | grep -v '^ *+' conftest.er1 >conftest.err |
17643 | rm -f conftest.er1 | |
17644 | cat conftest.err >&5 | |
17645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 17646 | (exit $ac_status); } && |
a82a04b3 CR |
17647 | { ac_try='test -z "$ac_c_werror_flag" |
17648 | || test ! -s conftest.err' | |
17649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17650 | (eval $ac_try) 2>&5 | |
17651 | ac_status=$? | |
17652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17653 | (exit $ac_status); }; } && | |
17654 | { ac_try='test -s conftest.$ac_objext' | |
17655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
17656 | (eval $ac_try) 2>&5 |
17657 | ac_status=$? | |
a82a04b3 | 17658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
17659 | (exit $ac_status); }; }; then |
17660 | ac_cv_type_signal=void | |
ccc6cda3 | 17661 | else |
f73dda09 | 17662 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
17663 | sed 's/^/| /' conftest.$ac_ext >&5 |
17664 | ||
f73dda09 | 17665 | ac_cv_type_signal=int |
ccc6cda3 | 17666 | fi |
a82a04b3 | 17667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 17668 | fi |
a82a04b3 | 17669 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
f73dda09 JA |
17670 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
17671 | ||
a82a04b3 | 17672 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 17673 | #define RETSIGTYPE $ac_cv_type_signal |
a82a04b3 CR |
17674 | _ACEOF |
17675 | ||
ccc6cda3 | 17676 | |
a82a04b3 CR |
17677 | |
17678 | echo "$as_me:$LINENO: checking for char" >&5 | |
f73dda09 JA |
17679 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
17680 | if test "${ac_cv_type_char+set}" = set; then | |
17681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17682 | else | |
17683 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
17684 | /* confdefs.h. */ |
17685 | _ACEOF | |
17686 | cat confdefs.h >>conftest.$ac_ext | |
17687 | cat >>conftest.$ac_ext <<_ACEOF | |
17688 | /* end confdefs.h. */ | |
f73dda09 JA |
17689 | $ac_includes_default |
17690 | int | |
17691 | main () | |
17692 | { | |
17693 | if ((char *) 0) | |
17694 | return 0; | |
17695 | if (sizeof (char)) | |
17696 | return 0; | |
17697 | ; | |
17698 | return 0; | |
17699 | } | |
17700 | _ACEOF | |
17701 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
17702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17703 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 17704 | ac_status=$? |
a82a04b3 CR |
17705 | grep -v '^ *+' conftest.er1 >conftest.err |
17706 | rm -f conftest.er1 | |
17707 | cat conftest.err >&5 | |
17708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 17709 | (exit $ac_status); } && |
a82a04b3 CR |
17710 | { ac_try='test -z "$ac_c_werror_flag" |
17711 | || test ! -s conftest.err' | |
17712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17713 | (eval $ac_try) 2>&5 | |
17714 | ac_status=$? | |
17715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17716 | (exit $ac_status); }; } && | |
17717 | { ac_try='test -s conftest.$ac_objext' | |
17718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
17719 | (eval $ac_try) 2>&5 |
17720 | ac_status=$? | |
a82a04b3 | 17721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
17722 | (exit $ac_status); }; }; then |
17723 | ac_cv_type_char=yes | |
17724 | else | |
17725 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
17726 | sed 's/^/| /' conftest.$ac_ext >&5 |
17727 | ||
f73dda09 JA |
17728 | ac_cv_type_char=no |
17729 | fi | |
a82a04b3 | 17730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 17731 | fi |
a82a04b3 | 17732 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
f73dda09 JA |
17733 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
17734 | ||
a82a04b3 | 17735 | echo "$as_me:$LINENO: checking size of char" >&5 |
f73dda09 JA |
17736 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
17737 | if test "${ac_cv_sizeof_char+set}" = set; then | |
17738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17739 | else | |
17740 | if test "$ac_cv_type_char" = yes; then | |
a82a04b3 CR |
17741 | # The cast to unsigned long works around a bug in the HP C Compiler |
17742 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17743 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17744 | # This bug is HP SR number 8606223364. | |
f73dda09 JA |
17745 | if test "$cross_compiling" = yes; then |
17746 | # Depending upon the size, compute the lo and hi bounds. | |
17747 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
17748 | /* confdefs.h. */ |
17749 | _ACEOF | |
17750 | cat confdefs.h >>conftest.$ac_ext | |
17751 | cat >>conftest.$ac_ext <<_ACEOF | |
17752 | /* end confdefs.h. */ | |
f73dda09 JA |
17753 | $ac_includes_default |
17754 | int | |
17755 | main () | |
17756 | { | |
a82a04b3 CR |
17757 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
17758 | test_array [0] = 0 | |
17759 | ||
f73dda09 JA |
17760 | ; |
17761 | return 0; | |
17762 | } | |
17763 | _ACEOF | |
17764 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
17765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17766 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 17767 | ac_status=$? |
a82a04b3 CR |
17768 | grep -v '^ *+' conftest.er1 >conftest.err |
17769 | rm -f conftest.er1 | |
17770 | cat conftest.err >&5 | |
17771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 17772 | (exit $ac_status); } && |
a82a04b3 CR |
17773 | { ac_try='test -z "$ac_c_werror_flag" |
17774 | || test ! -s conftest.err' | |
17775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17776 | (eval $ac_try) 2>&5 | |
17777 | ac_status=$? | |
17778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17779 | (exit $ac_status); }; } && | |
17780 | { ac_try='test -s conftest.$ac_objext' | |
17781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
17782 | (eval $ac_try) 2>&5 |
17783 | ac_status=$? | |
a82a04b3 | 17784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
17785 | (exit $ac_status); }; }; then |
17786 | ac_lo=0 ac_mid=0 | |
17787 | while :; do | |
17788 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
17789 | /* confdefs.h. */ |
17790 | _ACEOF | |
17791 | cat confdefs.h >>conftest.$ac_ext | |
17792 | cat >>conftest.$ac_ext <<_ACEOF | |
17793 | /* end confdefs.h. */ | |
f73dda09 JA |
17794 | $ac_includes_default |
17795 | int | |
17796 | main () | |
17797 | { | |
a82a04b3 CR |
17798 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
17799 | test_array [0] = 0 | |
17800 | ||
f73dda09 JA |
17801 | ; |
17802 | return 0; | |
17803 | } | |
17804 | _ACEOF | |
17805 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
17806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17807 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 17808 | ac_status=$? |
a82a04b3 CR |
17809 | grep -v '^ *+' conftest.er1 >conftest.err |
17810 | rm -f conftest.er1 | |
17811 | cat conftest.err >&5 | |
17812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 17813 | (exit $ac_status); } && |
a82a04b3 CR |
17814 | { ac_try='test -z "$ac_c_werror_flag" |
17815 | || test ! -s conftest.err' | |
17816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17817 | (eval $ac_try) 2>&5 | |
17818 | ac_status=$? | |
17819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17820 | (exit $ac_status); }; } && | |
17821 | { ac_try='test -s conftest.$ac_objext' | |
17822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
17823 | (eval $ac_try) 2>&5 |
17824 | ac_status=$? | |
a82a04b3 | 17825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
17826 | (exit $ac_status); }; }; then |
17827 | ac_hi=$ac_mid; break | |
17828 | else | |
17829 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
17830 | sed 's/^/| /' conftest.$ac_ext >&5 |
17831 | ||
17832 | ac_lo=`expr $ac_mid + 1` | |
17833 | if test $ac_lo -le $ac_mid; then | |
17834 | ac_lo= ac_hi= | |
17835 | break | |
17836 | fi | |
17837 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f73dda09 | 17838 | fi |
a82a04b3 | 17839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 JA |
17840 | done |
17841 | else | |
17842 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
17843 | sed 's/^/| /' conftest.$ac_ext >&5 |
17844 | ||
17845 | cat >conftest.$ac_ext <<_ACEOF | |
17846 | /* confdefs.h. */ | |
17847 | _ACEOF | |
17848 | cat confdefs.h >>conftest.$ac_ext | |
17849 | cat >>conftest.$ac_ext <<_ACEOF | |
17850 | /* end confdefs.h. */ | |
17851 | $ac_includes_default | |
17852 | int | |
17853 | main () | |
17854 | { | |
17855 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
17856 | test_array [0] = 0 | |
17857 | ||
17858 | ; | |
17859 | return 0; | |
17860 | } | |
17861 | _ACEOF | |
17862 | rm -f conftest.$ac_objext | |
17863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17864 | (eval $ac_compile) 2>conftest.er1 | |
17865 | ac_status=$? | |
17866 | grep -v '^ *+' conftest.er1 >conftest.err | |
17867 | rm -f conftest.er1 | |
17868 | cat conftest.err >&5 | |
17869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17870 | (exit $ac_status); } && | |
17871 | { ac_try='test -z "$ac_c_werror_flag" | |
17872 | || test ! -s conftest.err' | |
17873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17874 | (eval $ac_try) 2>&5 | |
17875 | ac_status=$? | |
17876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17877 | (exit $ac_status); }; } && | |
17878 | { ac_try='test -s conftest.$ac_objext' | |
17879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17880 | (eval $ac_try) 2>&5 | |
17881 | ac_status=$? | |
17882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17883 | (exit $ac_status); }; }; then | |
17884 | ac_hi=-1 ac_mid=-1 | |
f73dda09 JA |
17885 | while :; do |
17886 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
17887 | /* confdefs.h. */ |
17888 | _ACEOF | |
17889 | cat confdefs.h >>conftest.$ac_ext | |
17890 | cat >>conftest.$ac_ext <<_ACEOF | |
17891 | /* end confdefs.h. */ | |
f73dda09 JA |
17892 | $ac_includes_default |
17893 | int | |
17894 | main () | |
17895 | { | |
a82a04b3 CR |
17896 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
17897 | test_array [0] = 0 | |
17898 | ||
f73dda09 JA |
17899 | ; |
17900 | return 0; | |
17901 | } | |
17902 | _ACEOF | |
17903 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
17904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17905 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 17906 | ac_status=$? |
a82a04b3 CR |
17907 | grep -v '^ *+' conftest.er1 >conftest.err |
17908 | rm -f conftest.er1 | |
17909 | cat conftest.err >&5 | |
17910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 17911 | (exit $ac_status); } && |
a82a04b3 CR |
17912 | { ac_try='test -z "$ac_c_werror_flag" |
17913 | || test ! -s conftest.err' | |
17914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17915 | (eval $ac_try) 2>&5 | |
17916 | ac_status=$? | |
17917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17918 | (exit $ac_status); }; } && | |
17919 | { ac_try='test -s conftest.$ac_objext' | |
17920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
17921 | (eval $ac_try) 2>&5 |
17922 | ac_status=$? | |
a82a04b3 | 17923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
17924 | (exit $ac_status); }; }; then |
17925 | ac_lo=$ac_mid; break | |
17926 | else | |
17927 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
17928 | sed 's/^/| /' conftest.$ac_ext >&5 |
17929 | ||
17930 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
17931 | if test $ac_mid -le $ac_hi; then | |
17932 | ac_lo= ac_hi= | |
17933 | break | |
17934 | fi | |
17935 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 17936 | fi |
a82a04b3 | 17937 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 17938 | done |
a82a04b3 CR |
17939 | else |
17940 | echo "$as_me: failed program was:" >&5 | |
17941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17942 | ||
17943 | ac_lo= ac_hi= | |
17944 | fi | |
17945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 17946 | fi |
a82a04b3 | 17947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 JA |
17948 | # Binary search between lo and hi bounds. |
17949 | while test "x$ac_lo" != "x$ac_hi"; do | |
17950 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17951 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
17952 | /* confdefs.h. */ |
17953 | _ACEOF | |
17954 | cat confdefs.h >>conftest.$ac_ext | |
17955 | cat >>conftest.$ac_ext <<_ACEOF | |
17956 | /* end confdefs.h. */ | |
f73dda09 JA |
17957 | $ac_includes_default |
17958 | int | |
17959 | main () | |
17960 | { | |
a82a04b3 CR |
17961 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
17962 | test_array [0] = 0 | |
17963 | ||
f73dda09 JA |
17964 | ; |
17965 | return 0; | |
17966 | } | |
17967 | _ACEOF | |
17968 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
17969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17970 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 17971 | ac_status=$? |
a82a04b3 CR |
17972 | grep -v '^ *+' conftest.er1 >conftest.err |
17973 | rm -f conftest.er1 | |
17974 | cat conftest.err >&5 | |
17975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 17976 | (exit $ac_status); } && |
a82a04b3 CR |
17977 | { ac_try='test -z "$ac_c_werror_flag" |
17978 | || test ! -s conftest.err' | |
17979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17980 | (eval $ac_try) 2>&5 | |
17981 | ac_status=$? | |
17982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17983 | (exit $ac_status); }; } && | |
17984 | { ac_try='test -s conftest.$ac_objext' | |
17985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
17986 | (eval $ac_try) 2>&5 |
17987 | ac_status=$? | |
a82a04b3 | 17988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
17989 | (exit $ac_status); }; }; then |
17990 | ac_hi=$ac_mid | |
17991 | else | |
17992 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
17993 | sed 's/^/| /' conftest.$ac_ext >&5 |
17994 | ||
17995 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
f73dda09 | 17996 | fi |
a82a04b3 | 17997 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 17998 | done |
a82a04b3 CR |
17999 | case $ac_lo in |
18000 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
18001 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
18002 | See \`config.log' for more details." >&5 | |
18003 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
18004 | See \`config.log' for more details." >&2;} | |
18005 | { (exit 1); exit 1; }; } ;; | |
18006 | esac | |
ccc6cda3 | 18007 | else |
f73dda09 | 18008 | if test "$cross_compiling" = yes; then |
a82a04b3 CR |
18009 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18010 | See \`config.log' for more details." >&5 | |
18011 | echo "$as_me: error: cannot run test program while cross compiling | |
18012 | See \`config.log' for more details." >&2;} | |
f73dda09 JA |
18013 | { (exit 1); exit 1; }; } |
18014 | else | |
18015 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
18016 | /* confdefs.h. */ |
18017 | _ACEOF | |
18018 | cat confdefs.h >>conftest.$ac_ext | |
18019 | cat >>conftest.$ac_ext <<_ACEOF | |
18020 | /* end confdefs.h. */ | |
f73dda09 | 18021 | $ac_includes_default |
a82a04b3 CR |
18022 | long longval () { return (long) (sizeof (char)); } |
18023 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
18024 | #include <stdio.h> | |
18025 | #include <stdlib.h> | |
f73dda09 JA |
18026 | int |
18027 | main () | |
18028 | { | |
a82a04b3 CR |
18029 | |
18030 | FILE *f = fopen ("conftest.val", "w"); | |
18031 | if (! f) | |
18032 | exit (1); | |
18033 | if (((long) (sizeof (char))) < 0) | |
18034 | { | |
18035 | long i = longval (); | |
18036 | if (i != ((long) (sizeof (char)))) | |
18037 | exit (1); | |
18038 | fprintf (f, "%ld\n", i); | |
18039 | } | |
18040 | else | |
18041 | { | |
18042 | unsigned long i = ulongval (); | |
18043 | if (i != ((long) (sizeof (char)))) | |
18044 | exit (1); | |
18045 | fprintf (f, "%lu\n", i); | |
18046 | } | |
18047 | exit (ferror (f) || fclose (f) != 0); | |
18048 | ||
f73dda09 JA |
18049 | ; |
18050 | return 0; | |
18051 | } | |
18052 | _ACEOF | |
18053 | rm -f conftest$ac_exeext | |
a82a04b3 | 18054 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
18055 | (eval $ac_link) 2>&5 |
18056 | ac_status=$? | |
a82a04b3 | 18057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 18058 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 18059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
18060 | (eval $ac_try) 2>&5 |
18061 | ac_status=$? | |
a82a04b3 | 18062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
18063 | (exit $ac_status); }; }; then |
18064 | ac_cv_sizeof_char=`cat conftest.val` | |
ccc6cda3 | 18065 | else |
f73dda09 JA |
18066 | echo "$as_me: program exited with status $ac_status" >&5 |
18067 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
18068 | sed 's/^/| /' conftest.$ac_ext >&5 |
18069 | ||
18070 | ( exit $ac_status ) | |
18071 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
18072 | See \`config.log' for more details." >&5 | |
18073 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
18074 | See \`config.log' for more details." >&2;} | |
18075 | { (exit 1); exit 1; }; } | |
ccc6cda3 | 18076 | fi |
a82a04b3 | 18077 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 18078 | fi |
f73dda09 JA |
18079 | fi |
18080 | rm -f conftest.val | |
18081 | else | |
18082 | ac_cv_sizeof_char=0 | |
18083 | fi | |
18084 | fi | |
a82a04b3 | 18085 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
f73dda09 | 18086 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
a82a04b3 | 18087 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 18088 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
a82a04b3 | 18089 | _ACEOF |
ccc6cda3 | 18090 | |
a82a04b3 CR |
18091 | |
18092 | echo "$as_me:$LINENO: checking for short" >&5 | |
f73dda09 JA |
18093 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
18094 | if test "${ac_cv_type_short+set}" = set; then | |
18095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18096 | else | |
18097 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
18098 | /* confdefs.h. */ |
18099 | _ACEOF | |
18100 | cat confdefs.h >>conftest.$ac_ext | |
18101 | cat >>conftest.$ac_ext <<_ACEOF | |
18102 | /* end confdefs.h. */ | |
f73dda09 JA |
18103 | $ac_includes_default |
18104 | int | |
18105 | main () | |
18106 | { | |
18107 | if ((short *) 0) | |
18108 | return 0; | |
18109 | if (sizeof (short)) | |
18110 | return 0; | |
18111 | ; | |
18112 | return 0; | |
18113 | } | |
18114 | _ACEOF | |
18115 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
18116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18117 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 18118 | ac_status=$? |
a82a04b3 CR |
18119 | grep -v '^ *+' conftest.er1 >conftest.err |
18120 | rm -f conftest.er1 | |
18121 | cat conftest.err >&5 | |
18122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 18123 | (exit $ac_status); } && |
a82a04b3 CR |
18124 | { ac_try='test -z "$ac_c_werror_flag" |
18125 | || test ! -s conftest.err' | |
18126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18127 | (eval $ac_try) 2>&5 | |
18128 | ac_status=$? | |
18129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18130 | (exit $ac_status); }; } && | |
18131 | { ac_try='test -s conftest.$ac_objext' | |
18132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
18133 | (eval $ac_try) 2>&5 |
18134 | ac_status=$? | |
a82a04b3 | 18135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
18136 | (exit $ac_status); }; }; then |
18137 | ac_cv_type_short=yes | |
18138 | else | |
18139 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
18140 | sed 's/^/| /' conftest.$ac_ext >&5 |
18141 | ||
f73dda09 JA |
18142 | ac_cv_type_short=no |
18143 | fi | |
a82a04b3 | 18144 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 18145 | fi |
a82a04b3 | 18146 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
f73dda09 JA |
18147 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
18148 | ||
a82a04b3 | 18149 | echo "$as_me:$LINENO: checking size of short" >&5 |
f73dda09 JA |
18150 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
18151 | if test "${ac_cv_sizeof_short+set}" = set; then | |
18152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18153 | else | |
18154 | if test "$ac_cv_type_short" = yes; then | |
a82a04b3 CR |
18155 | # The cast to unsigned long works around a bug in the HP C Compiler |
18156 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18157 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18158 | # This bug is HP SR number 8606223364. | |
f73dda09 JA |
18159 | if test "$cross_compiling" = yes; then |
18160 | # Depending upon the size, compute the lo and hi bounds. | |
18161 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
18162 | /* confdefs.h. */ |
18163 | _ACEOF | |
18164 | cat confdefs.h >>conftest.$ac_ext | |
18165 | cat >>conftest.$ac_ext <<_ACEOF | |
18166 | /* end confdefs.h. */ | |
f73dda09 JA |
18167 | $ac_includes_default |
18168 | int | |
18169 | main () | |
18170 | { | |
a82a04b3 CR |
18171 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
18172 | test_array [0] = 0 | |
18173 | ||
f73dda09 JA |
18174 | ; |
18175 | return 0; | |
18176 | } | |
18177 | _ACEOF | |
18178 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
18179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18180 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 18181 | ac_status=$? |
a82a04b3 CR |
18182 | grep -v '^ *+' conftest.er1 >conftest.err |
18183 | rm -f conftest.er1 | |
18184 | cat conftest.err >&5 | |
18185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 18186 | (exit $ac_status); } && |
a82a04b3 CR |
18187 | { ac_try='test -z "$ac_c_werror_flag" |
18188 | || test ! -s conftest.err' | |
18189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18190 | (eval $ac_try) 2>&5 | |
18191 | ac_status=$? | |
18192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18193 | (exit $ac_status); }; } && | |
18194 | { ac_try='test -s conftest.$ac_objext' | |
18195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
18196 | (eval $ac_try) 2>&5 |
18197 | ac_status=$? | |
a82a04b3 | 18198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
18199 | (exit $ac_status); }; }; then |
18200 | ac_lo=0 ac_mid=0 | |
18201 | while :; do | |
18202 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
18203 | /* confdefs.h. */ |
18204 | _ACEOF | |
18205 | cat confdefs.h >>conftest.$ac_ext | |
18206 | cat >>conftest.$ac_ext <<_ACEOF | |
18207 | /* end confdefs.h. */ | |
f73dda09 JA |
18208 | $ac_includes_default |
18209 | int | |
18210 | main () | |
18211 | { | |
a82a04b3 CR |
18212 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
18213 | test_array [0] = 0 | |
18214 | ||
f73dda09 JA |
18215 | ; |
18216 | return 0; | |
18217 | } | |
18218 | _ACEOF | |
18219 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
18220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18221 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 18222 | ac_status=$? |
a82a04b3 CR |
18223 | grep -v '^ *+' conftest.er1 >conftest.err |
18224 | rm -f conftest.er1 | |
18225 | cat conftest.err >&5 | |
18226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 18227 | (exit $ac_status); } && |
a82a04b3 CR |
18228 | { ac_try='test -z "$ac_c_werror_flag" |
18229 | || test ! -s conftest.err' | |
18230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
18231 | (eval $ac_try) 2>&5 |
18232 | ac_status=$? | |
a82a04b3 CR |
18233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18234 | (exit $ac_status); }; } && | |
18235 | { ac_try='test -s conftest.$ac_objext' | |
18236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18237 | (eval $ac_try) 2>&5 | |
18238 | ac_status=$? | |
18239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
18240 | (exit $ac_status); }; }; then |
18241 | ac_hi=$ac_mid; break | |
18242 | else | |
18243 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
18244 | sed 's/^/| /' conftest.$ac_ext >&5 |
18245 | ||
18246 | ac_lo=`expr $ac_mid + 1` | |
18247 | if test $ac_lo -le $ac_mid; then | |
18248 | ac_lo= ac_hi= | |
18249 | break | |
18250 | fi | |
18251 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f73dda09 | 18252 | fi |
a82a04b3 | 18253 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 JA |
18254 | done |
18255 | else | |
18256 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
18257 | sed 's/^/| /' conftest.$ac_ext >&5 |
18258 | ||
18259 | cat >conftest.$ac_ext <<_ACEOF | |
18260 | /* confdefs.h. */ | |
18261 | _ACEOF | |
18262 | cat confdefs.h >>conftest.$ac_ext | |
18263 | cat >>conftest.$ac_ext <<_ACEOF | |
18264 | /* end confdefs.h. */ | |
18265 | $ac_includes_default | |
18266 | int | |
18267 | main () | |
18268 | { | |
18269 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
18270 | test_array [0] = 0 | |
18271 | ||
18272 | ; | |
18273 | return 0; | |
18274 | } | |
18275 | _ACEOF | |
18276 | rm -f conftest.$ac_objext | |
18277 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18278 | (eval $ac_compile) 2>conftest.er1 | |
18279 | ac_status=$? | |
18280 | grep -v '^ *+' conftest.er1 >conftest.err | |
18281 | rm -f conftest.er1 | |
18282 | cat conftest.err >&5 | |
18283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18284 | (exit $ac_status); } && | |
18285 | { ac_try='test -z "$ac_c_werror_flag" | |
18286 | || test ! -s conftest.err' | |
18287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18288 | (eval $ac_try) 2>&5 | |
18289 | ac_status=$? | |
18290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18291 | (exit $ac_status); }; } && | |
18292 | { ac_try='test -s conftest.$ac_objext' | |
18293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18294 | (eval $ac_try) 2>&5 | |
18295 | ac_status=$? | |
18296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18297 | (exit $ac_status); }; }; then | |
18298 | ac_hi=-1 ac_mid=-1 | |
f73dda09 JA |
18299 | while :; do |
18300 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
18301 | /* confdefs.h. */ |
18302 | _ACEOF | |
18303 | cat confdefs.h >>conftest.$ac_ext | |
18304 | cat >>conftest.$ac_ext <<_ACEOF | |
18305 | /* end confdefs.h. */ | |
f73dda09 JA |
18306 | $ac_includes_default |
18307 | int | |
18308 | main () | |
18309 | { | |
a82a04b3 CR |
18310 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
18311 | test_array [0] = 0 | |
18312 | ||
f73dda09 JA |
18313 | ; |
18314 | return 0; | |
18315 | } | |
18316 | _ACEOF | |
18317 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
18318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18319 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 18320 | ac_status=$? |
a82a04b3 CR |
18321 | grep -v '^ *+' conftest.er1 >conftest.err |
18322 | rm -f conftest.er1 | |
18323 | cat conftest.err >&5 | |
18324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 18325 | (exit $ac_status); } && |
a82a04b3 CR |
18326 | { ac_try='test -z "$ac_c_werror_flag" |
18327 | || test ! -s conftest.err' | |
18328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18329 | (eval $ac_try) 2>&5 | |
18330 | ac_status=$? | |
18331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18332 | (exit $ac_status); }; } && | |
18333 | { ac_try='test -s conftest.$ac_objext' | |
18334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
18335 | (eval $ac_try) 2>&5 |
18336 | ac_status=$? | |
a82a04b3 | 18337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
18338 | (exit $ac_status); }; }; then |
18339 | ac_lo=$ac_mid; break | |
18340 | else | |
18341 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
18342 | sed 's/^/| /' conftest.$ac_ext >&5 |
18343 | ||
18344 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
18345 | if test $ac_mid -le $ac_hi; then | |
18346 | ac_lo= ac_hi= | |
18347 | break | |
18348 | fi | |
18349 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 18350 | fi |
a82a04b3 | 18351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 18352 | done |
a82a04b3 CR |
18353 | else |
18354 | echo "$as_me: failed program was:" >&5 | |
18355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18356 | ||
18357 | ac_lo= ac_hi= | |
18358 | fi | |
18359 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 18360 | fi |
a82a04b3 | 18361 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 JA |
18362 | # Binary search between lo and hi bounds. |
18363 | while test "x$ac_lo" != "x$ac_hi"; do | |
18364 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18365 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
18366 | /* confdefs.h. */ |
18367 | _ACEOF | |
18368 | cat confdefs.h >>conftest.$ac_ext | |
18369 | cat >>conftest.$ac_ext <<_ACEOF | |
18370 | /* end confdefs.h. */ | |
f73dda09 JA |
18371 | $ac_includes_default |
18372 | int | |
18373 | main () | |
18374 | { | |
a82a04b3 CR |
18375 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
18376 | test_array [0] = 0 | |
18377 | ||
f73dda09 JA |
18378 | ; |
18379 | return 0; | |
18380 | } | |
18381 | _ACEOF | |
18382 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
18383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18384 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 18385 | ac_status=$? |
a82a04b3 CR |
18386 | grep -v '^ *+' conftest.er1 >conftest.err |
18387 | rm -f conftest.er1 | |
18388 | cat conftest.err >&5 | |
18389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 18390 | (exit $ac_status); } && |
a82a04b3 CR |
18391 | { ac_try='test -z "$ac_c_werror_flag" |
18392 | || test ! -s conftest.err' | |
18393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18394 | (eval $ac_try) 2>&5 | |
18395 | ac_status=$? | |
18396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18397 | (exit $ac_status); }; } && | |
18398 | { ac_try='test -s conftest.$ac_objext' | |
18399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
18400 | (eval $ac_try) 2>&5 |
18401 | ac_status=$? | |
a82a04b3 | 18402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
18403 | (exit $ac_status); }; }; then |
18404 | ac_hi=$ac_mid | |
18405 | else | |
18406 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
18407 | sed 's/^/| /' conftest.$ac_ext >&5 |
18408 | ||
18409 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
f73dda09 | 18410 | fi |
a82a04b3 | 18411 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 18412 | done |
a82a04b3 CR |
18413 | case $ac_lo in |
18414 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
18415 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
18416 | See \`config.log' for more details." >&5 | |
18417 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
18418 | See \`config.log' for more details." >&2;} | |
18419 | { (exit 1); exit 1; }; } ;; | |
18420 | esac | |
f73dda09 JA |
18421 | else |
18422 | if test "$cross_compiling" = yes; then | |
a82a04b3 CR |
18423 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18424 | See \`config.log' for more details." >&5 | |
18425 | echo "$as_me: error: cannot run test program while cross compiling | |
18426 | See \`config.log' for more details." >&2;} | |
f73dda09 | 18427 | { (exit 1); exit 1; }; } |
ccc6cda3 | 18428 | else |
f73dda09 | 18429 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
18430 | /* confdefs.h. */ |
18431 | _ACEOF | |
18432 | cat confdefs.h >>conftest.$ac_ext | |
18433 | cat >>conftest.$ac_ext <<_ACEOF | |
18434 | /* end confdefs.h. */ | |
f73dda09 | 18435 | $ac_includes_default |
a82a04b3 CR |
18436 | long longval () { return (long) (sizeof (short)); } |
18437 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
18438 | #include <stdio.h> | |
18439 | #include <stdlib.h> | |
f73dda09 JA |
18440 | int |
18441 | main () | |
18442 | { | |
a82a04b3 CR |
18443 | |
18444 | FILE *f = fopen ("conftest.val", "w"); | |
18445 | if (! f) | |
18446 | exit (1); | |
18447 | if (((long) (sizeof (short))) < 0) | |
18448 | { | |
18449 | long i = longval (); | |
18450 | if (i != ((long) (sizeof (short)))) | |
18451 | exit (1); | |
18452 | fprintf (f, "%ld\n", i); | |
18453 | } | |
18454 | else | |
18455 | { | |
18456 | unsigned long i = ulongval (); | |
18457 | if (i != ((long) (sizeof (short)))) | |
18458 | exit (1); | |
18459 | fprintf (f, "%lu\n", i); | |
18460 | } | |
18461 | exit (ferror (f) || fclose (f) != 0); | |
18462 | ||
f73dda09 JA |
18463 | ; |
18464 | return 0; | |
18465 | } | |
18466 | _ACEOF | |
18467 | rm -f conftest$ac_exeext | |
a82a04b3 | 18468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
18469 | (eval $ac_link) 2>&5 |
18470 | ac_status=$? | |
a82a04b3 | 18471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 18472 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 18473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
18474 | (eval $ac_try) 2>&5 |
18475 | ac_status=$? | |
a82a04b3 | 18476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
18477 | (exit $ac_status); }; }; then |
18478 | ac_cv_sizeof_short=`cat conftest.val` | |
ccc6cda3 | 18479 | else |
f73dda09 JA |
18480 | echo "$as_me: program exited with status $ac_status" >&5 |
18481 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
18482 | sed 's/^/| /' conftest.$ac_ext >&5 |
18483 | ||
18484 | ( exit $ac_status ) | |
18485 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
18486 | See \`config.log' for more details." >&5 | |
18487 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
18488 | See \`config.log' for more details." >&2;} | |
18489 | { (exit 1); exit 1; }; } | |
ccc6cda3 | 18490 | fi |
a82a04b3 | 18491 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 18492 | fi |
ccc6cda3 | 18493 | fi |
f73dda09 | 18494 | rm -f conftest.val |
ccc6cda3 | 18495 | else |
f73dda09 | 18496 | ac_cv_sizeof_short=0 |
ccc6cda3 | 18497 | fi |
ccc6cda3 | 18498 | fi |
a82a04b3 | 18499 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
f73dda09 | 18500 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
a82a04b3 | 18501 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 18502 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
a82a04b3 | 18503 | _ACEOF |
ccc6cda3 | 18504 | |
a82a04b3 CR |
18505 | |
18506 | echo "$as_me:$LINENO: checking for int" >&5 | |
f73dda09 JA |
18507 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
18508 | if test "${ac_cv_type_int+set}" = set; then | |
18509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18510 | else | |
18511 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
18512 | /* confdefs.h. */ |
18513 | _ACEOF | |
18514 | cat confdefs.h >>conftest.$ac_ext | |
18515 | cat >>conftest.$ac_ext <<_ACEOF | |
18516 | /* end confdefs.h. */ | |
f73dda09 JA |
18517 | $ac_includes_default |
18518 | int | |
18519 | main () | |
18520 | { | |
18521 | if ((int *) 0) | |
18522 | return 0; | |
18523 | if (sizeof (int)) | |
18524 | return 0; | |
18525 | ; | |
18526 | return 0; | |
18527 | } | |
18528 | _ACEOF | |
18529 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
18530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18531 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 18532 | ac_status=$? |
a82a04b3 CR |
18533 | grep -v '^ *+' conftest.er1 >conftest.err |
18534 | rm -f conftest.er1 | |
18535 | cat conftest.err >&5 | |
18536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 18537 | (exit $ac_status); } && |
a82a04b3 CR |
18538 | { ac_try='test -z "$ac_c_werror_flag" |
18539 | || test ! -s conftest.err' | |
18540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18541 | (eval $ac_try) 2>&5 | |
18542 | ac_status=$? | |
18543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18544 | (exit $ac_status); }; } && | |
18545 | { ac_try='test -s conftest.$ac_objext' | |
18546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
18547 | (eval $ac_try) 2>&5 |
18548 | ac_status=$? | |
a82a04b3 | 18549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
18550 | (exit $ac_status); }; }; then |
18551 | ac_cv_type_int=yes | |
18552 | else | |
18553 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
18554 | sed 's/^/| /' conftest.$ac_ext >&5 |
18555 | ||
f73dda09 JA |
18556 | ac_cv_type_int=no |
18557 | fi | |
a82a04b3 | 18558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 18559 | fi |
a82a04b3 | 18560 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
f73dda09 JA |
18561 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
18562 | ||
a82a04b3 | 18563 | echo "$as_me:$LINENO: checking size of int" >&5 |
f73dda09 JA |
18564 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
18565 | if test "${ac_cv_sizeof_int+set}" = set; then | |
18566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18567 | else | |
18568 | if test "$ac_cv_type_int" = yes; then | |
a82a04b3 CR |
18569 | # The cast to unsigned long works around a bug in the HP C Compiler |
18570 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18571 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18572 | # This bug is HP SR number 8606223364. | |
f73dda09 JA |
18573 | if test "$cross_compiling" = yes; then |
18574 | # Depending upon the size, compute the lo and hi bounds. | |
18575 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
18576 | /* confdefs.h. */ |
18577 | _ACEOF | |
18578 | cat confdefs.h >>conftest.$ac_ext | |
18579 | cat >>conftest.$ac_ext <<_ACEOF | |
18580 | /* end confdefs.h. */ | |
f73dda09 JA |
18581 | $ac_includes_default |
18582 | int | |
18583 | main () | |
18584 | { | |
a82a04b3 CR |
18585 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
18586 | test_array [0] = 0 | |
18587 | ||
f73dda09 JA |
18588 | ; |
18589 | return 0; | |
18590 | } | |
18591 | _ACEOF | |
18592 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
18593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18594 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 18595 | ac_status=$? |
a82a04b3 CR |
18596 | grep -v '^ *+' conftest.er1 >conftest.err |
18597 | rm -f conftest.er1 | |
18598 | cat conftest.err >&5 | |
18599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 18600 | (exit $ac_status); } && |
a82a04b3 CR |
18601 | { ac_try='test -z "$ac_c_werror_flag" |
18602 | || test ! -s conftest.err' | |
18603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18604 | (eval $ac_try) 2>&5 | |
18605 | ac_status=$? | |
18606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18607 | (exit $ac_status); }; } && | |
18608 | { ac_try='test -s conftest.$ac_objext' | |
18609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
18610 | (eval $ac_try) 2>&5 |
18611 | ac_status=$? | |
a82a04b3 | 18612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
18613 | (exit $ac_status); }; }; then |
18614 | ac_lo=0 ac_mid=0 | |
18615 | while :; do | |
18616 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
18617 | /* confdefs.h. */ |
18618 | _ACEOF | |
18619 | cat confdefs.h >>conftest.$ac_ext | |
18620 | cat >>conftest.$ac_ext <<_ACEOF | |
18621 | /* end confdefs.h. */ | |
545f34cf CR |
18622 | $ac_includes_default |
18623 | int | |
18624 | main () | |
18625 | { | |
a82a04b3 CR |
18626 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
18627 | test_array [0] = 0 | |
18628 | ||
545f34cf CR |
18629 | ; |
18630 | return 0; | |
18631 | } | |
18632 | _ACEOF | |
18633 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
18634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18635 | (eval $ac_compile) 2>conftest.er1 | |
545f34cf | 18636 | ac_status=$? |
a82a04b3 CR |
18637 | grep -v '^ *+' conftest.er1 >conftest.err |
18638 | rm -f conftest.er1 | |
18639 | cat conftest.err >&5 | |
18640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
545f34cf | 18641 | (exit $ac_status); } && |
a82a04b3 CR |
18642 | { ac_try='test -z "$ac_c_werror_flag" |
18643 | || test ! -s conftest.err' | |
18644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18645 | (eval $ac_try) 2>&5 | |
18646 | ac_status=$? | |
18647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18648 | (exit $ac_status); }; } && | |
18649 | { ac_try='test -s conftest.$ac_objext' | |
18650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
545f34cf CR |
18651 | (eval $ac_try) 2>&5 |
18652 | ac_status=$? | |
a82a04b3 | 18653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
18654 | (exit $ac_status); }; }; then |
18655 | ac_hi=$ac_mid; break | |
e624d0f7 CR |
18656 | else |
18657 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
18658 | sed 's/^/| /' conftest.$ac_ext >&5 |
18659 | ||
18660 | ac_lo=`expr $ac_mid + 1` | |
18661 | if test $ac_lo -le $ac_mid; then | |
18662 | ac_lo= ac_hi= | |
18663 | break | |
18664 | fi | |
18665 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e624d0f7 | 18666 | fi |
a82a04b3 | 18667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e624d0f7 CR |
18668 | done |
18669 | else | |
18670 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
18671 | sed 's/^/| /' conftest.$ac_ext >&5 |
18672 | ||
18673 | cat >conftest.$ac_ext <<_ACEOF | |
18674 | /* confdefs.h. */ | |
18675 | _ACEOF | |
18676 | cat confdefs.h >>conftest.$ac_ext | |
18677 | cat >>conftest.$ac_ext <<_ACEOF | |
18678 | /* end confdefs.h. */ | |
18679 | $ac_includes_default | |
18680 | int | |
18681 | main () | |
18682 | { | |
18683 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
18684 | test_array [0] = 0 | |
18685 | ||
18686 | ; | |
18687 | return 0; | |
18688 | } | |
18689 | _ACEOF | |
18690 | rm -f conftest.$ac_objext | |
18691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18692 | (eval $ac_compile) 2>conftest.er1 | |
18693 | ac_status=$? | |
18694 | grep -v '^ *+' conftest.er1 >conftest.err | |
18695 | rm -f conftest.er1 | |
18696 | cat conftest.err >&5 | |
18697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18698 | (exit $ac_status); } && | |
18699 | { ac_try='test -z "$ac_c_werror_flag" | |
18700 | || test ! -s conftest.err' | |
18701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18702 | (eval $ac_try) 2>&5 | |
18703 | ac_status=$? | |
18704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18705 | (exit $ac_status); }; } && | |
18706 | { ac_try='test -s conftest.$ac_objext' | |
18707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18708 | (eval $ac_try) 2>&5 | |
18709 | ac_status=$? | |
18710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18711 | (exit $ac_status); }; }; then | |
18712 | ac_hi=-1 ac_mid=-1 | |
f73dda09 JA |
18713 | while :; do |
18714 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
18715 | /* confdefs.h. */ |
18716 | _ACEOF | |
18717 | cat confdefs.h >>conftest.$ac_ext | |
18718 | cat >>conftest.$ac_ext <<_ACEOF | |
18719 | /* end confdefs.h. */ | |
f73dda09 JA |
18720 | $ac_includes_default |
18721 | int | |
18722 | main () | |
18723 | { | |
a82a04b3 CR |
18724 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
18725 | test_array [0] = 0 | |
18726 | ||
f73dda09 JA |
18727 | ; |
18728 | return 0; | |
18729 | } | |
18730 | _ACEOF | |
18731 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
18732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18733 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 18734 | ac_status=$? |
a82a04b3 CR |
18735 | grep -v '^ *+' conftest.er1 >conftest.err |
18736 | rm -f conftest.er1 | |
18737 | cat conftest.err >&5 | |
18738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 18739 | (exit $ac_status); } && |
a82a04b3 CR |
18740 | { ac_try='test -z "$ac_c_werror_flag" |
18741 | || test ! -s conftest.err' | |
18742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18743 | (eval $ac_try) 2>&5 | |
18744 | ac_status=$? | |
18745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18746 | (exit $ac_status); }; } && | |
18747 | { ac_try='test -s conftest.$ac_objext' | |
18748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
18749 | (eval $ac_try) 2>&5 |
18750 | ac_status=$? | |
a82a04b3 | 18751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
18752 | (exit $ac_status); }; }; then |
18753 | ac_lo=$ac_mid; break | |
18754 | else | |
18755 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
18756 | sed 's/^/| /' conftest.$ac_ext >&5 |
18757 | ||
18758 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
18759 | if test $ac_mid -le $ac_hi; then | |
18760 | ac_lo= ac_hi= | |
18761 | break | |
18762 | fi | |
18763 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 18764 | fi |
a82a04b3 | 18765 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 18766 | done |
a82a04b3 CR |
18767 | else |
18768 | echo "$as_me: failed program was:" >&5 | |
18769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18770 | ||
18771 | ac_lo= ac_hi= | |
18772 | fi | |
18773 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 18774 | fi |
a82a04b3 | 18775 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 JA |
18776 | # Binary search between lo and hi bounds. |
18777 | while test "x$ac_lo" != "x$ac_hi"; do | |
18778 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18779 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
18780 | /* confdefs.h. */ |
18781 | _ACEOF | |
18782 | cat confdefs.h >>conftest.$ac_ext | |
18783 | cat >>conftest.$ac_ext <<_ACEOF | |
18784 | /* end confdefs.h. */ | |
f73dda09 JA |
18785 | $ac_includes_default |
18786 | int | |
18787 | main () | |
18788 | { | |
a82a04b3 CR |
18789 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
18790 | test_array [0] = 0 | |
18791 | ||
f73dda09 JA |
18792 | ; |
18793 | return 0; | |
18794 | } | |
18795 | _ACEOF | |
18796 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
18797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18798 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 18799 | ac_status=$? |
a82a04b3 CR |
18800 | grep -v '^ *+' conftest.er1 >conftest.err |
18801 | rm -f conftest.er1 | |
18802 | cat conftest.err >&5 | |
18803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 18804 | (exit $ac_status); } && |
a82a04b3 CR |
18805 | { ac_try='test -z "$ac_c_werror_flag" |
18806 | || test ! -s conftest.err' | |
18807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18808 | (eval $ac_try) 2>&5 | |
18809 | ac_status=$? | |
18810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18811 | (exit $ac_status); }; } && | |
18812 | { ac_try='test -s conftest.$ac_objext' | |
18813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
18814 | (eval $ac_try) 2>&5 |
18815 | ac_status=$? | |
a82a04b3 | 18816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
18817 | (exit $ac_status); }; }; then |
18818 | ac_hi=$ac_mid | |
18819 | else | |
18820 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
18821 | sed 's/^/| /' conftest.$ac_ext >&5 |
18822 | ||
18823 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
f73dda09 | 18824 | fi |
a82a04b3 | 18825 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 18826 | done |
a82a04b3 CR |
18827 | case $ac_lo in |
18828 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
18829 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
18830 | See \`config.log' for more details." >&5 | |
18831 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
18832 | See \`config.log' for more details." >&2;} | |
18833 | { (exit 1); exit 1; }; } ;; | |
18834 | esac | |
f73dda09 JA |
18835 | else |
18836 | if test "$cross_compiling" = yes; then | |
a82a04b3 CR |
18837 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18838 | See \`config.log' for more details." >&5 | |
18839 | echo "$as_me: error: cannot run test program while cross compiling | |
18840 | See \`config.log' for more details." >&2;} | |
f73dda09 | 18841 | { (exit 1); exit 1; }; } |
ccc6cda3 | 18842 | else |
f73dda09 | 18843 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
18844 | /* confdefs.h. */ |
18845 | _ACEOF | |
18846 | cat confdefs.h >>conftest.$ac_ext | |
18847 | cat >>conftest.$ac_ext <<_ACEOF | |
18848 | /* end confdefs.h. */ | |
f73dda09 | 18849 | $ac_includes_default |
a82a04b3 CR |
18850 | long longval () { return (long) (sizeof (int)); } |
18851 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
18852 | #include <stdio.h> | |
18853 | #include <stdlib.h> | |
f73dda09 JA |
18854 | int |
18855 | main () | |
18856 | { | |
a82a04b3 CR |
18857 | |
18858 | FILE *f = fopen ("conftest.val", "w"); | |
18859 | if (! f) | |
18860 | exit (1); | |
18861 | if (((long) (sizeof (int))) < 0) | |
18862 | { | |
18863 | long i = longval (); | |
18864 | if (i != ((long) (sizeof (int)))) | |
18865 | exit (1); | |
18866 | fprintf (f, "%ld\n", i); | |
18867 | } | |
18868 | else | |
18869 | { | |
18870 | unsigned long i = ulongval (); | |
18871 | if (i != ((long) (sizeof (int)))) | |
18872 | exit (1); | |
18873 | fprintf (f, "%lu\n", i); | |
18874 | } | |
18875 | exit (ferror (f) || fclose (f) != 0); | |
18876 | ||
f73dda09 JA |
18877 | ; |
18878 | return 0; | |
18879 | } | |
18880 | _ACEOF | |
18881 | rm -f conftest$ac_exeext | |
a82a04b3 | 18882 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
18883 | (eval $ac_link) 2>&5 |
18884 | ac_status=$? | |
a82a04b3 | 18885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 18886 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 18887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
18888 | (eval $ac_try) 2>&5 |
18889 | ac_status=$? | |
a82a04b3 | 18890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
18891 | (exit $ac_status); }; }; then |
18892 | ac_cv_sizeof_int=`cat conftest.val` | |
ccc6cda3 | 18893 | else |
f73dda09 JA |
18894 | echo "$as_me: program exited with status $ac_status" >&5 |
18895 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
18896 | sed 's/^/| /' conftest.$ac_ext >&5 |
18897 | ||
18898 | ( exit $ac_status ) | |
18899 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
18900 | See \`config.log' for more details." >&5 | |
18901 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
18902 | See \`config.log' for more details." >&2;} | |
18903 | { (exit 1); exit 1; }; } | |
ccc6cda3 | 18904 | fi |
a82a04b3 | 18905 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 18906 | fi |
ccc6cda3 | 18907 | fi |
f73dda09 | 18908 | rm -f conftest.val |
ccc6cda3 | 18909 | else |
f73dda09 | 18910 | ac_cv_sizeof_int=0 |
ccc6cda3 | 18911 | fi |
ccc6cda3 | 18912 | fi |
a82a04b3 | 18913 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
f73dda09 | 18914 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
a82a04b3 | 18915 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 18916 | #define SIZEOF_INT $ac_cv_sizeof_int |
a82a04b3 | 18917 | _ACEOF |
ccc6cda3 | 18918 | |
a82a04b3 CR |
18919 | |
18920 | echo "$as_me:$LINENO: checking for long" >&5 | |
f73dda09 JA |
18921 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
18922 | if test "${ac_cv_type_long+set}" = set; then | |
18923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 18924 | else |
f73dda09 | 18925 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
18926 | /* confdefs.h. */ |
18927 | _ACEOF | |
18928 | cat confdefs.h >>conftest.$ac_ext | |
18929 | cat >>conftest.$ac_ext <<_ACEOF | |
18930 | /* end confdefs.h. */ | |
f73dda09 JA |
18931 | $ac_includes_default |
18932 | int | |
18933 | main () | |
18934 | { | |
18935 | if ((long *) 0) | |
18936 | return 0; | |
18937 | if (sizeof (long)) | |
18938 | return 0; | |
18939 | ; | |
18940 | return 0; | |
18941 | } | |
18942 | _ACEOF | |
18943 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
18944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18945 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 18946 | ac_status=$? |
a82a04b3 CR |
18947 | grep -v '^ *+' conftest.er1 >conftest.err |
18948 | rm -f conftest.er1 | |
18949 | cat conftest.err >&5 | |
18950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 18951 | (exit $ac_status); } && |
a82a04b3 CR |
18952 | { ac_try='test -z "$ac_c_werror_flag" |
18953 | || test ! -s conftest.err' | |
18954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18955 | (eval $ac_try) 2>&5 | |
18956 | ac_status=$? | |
18957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18958 | (exit $ac_status); }; } && | |
18959 | { ac_try='test -s conftest.$ac_objext' | |
18960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
18961 | (eval $ac_try) 2>&5 |
18962 | ac_status=$? | |
a82a04b3 | 18963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
18964 | (exit $ac_status); }; }; then |
18965 | ac_cv_type_long=yes | |
18966 | else | |
18967 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
18968 | sed 's/^/| /' conftest.$ac_ext >&5 |
18969 | ||
f73dda09 JA |
18970 | ac_cv_type_long=no |
18971 | fi | |
a82a04b3 | 18972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 18973 | fi |
a82a04b3 | 18974 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
f73dda09 JA |
18975 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
18976 | ||
a82a04b3 | 18977 | echo "$as_me:$LINENO: checking size of long" >&5 |
f73dda09 JA |
18978 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
18979 | if test "${ac_cv_sizeof_long+set}" = set; then | |
18980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18981 | else | |
18982 | if test "$ac_cv_type_long" = yes; then | |
a82a04b3 CR |
18983 | # The cast to unsigned long works around a bug in the HP C Compiler |
18984 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18985 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18986 | # This bug is HP SR number 8606223364. | |
f73dda09 JA |
18987 | if test "$cross_compiling" = yes; then |
18988 | # Depending upon the size, compute the lo and hi bounds. | |
18989 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
18990 | /* confdefs.h. */ |
18991 | _ACEOF | |
18992 | cat confdefs.h >>conftest.$ac_ext | |
18993 | cat >>conftest.$ac_ext <<_ACEOF | |
18994 | /* end confdefs.h. */ | |
f73dda09 JA |
18995 | $ac_includes_default |
18996 | int | |
18997 | main () | |
18998 | { | |
a82a04b3 CR |
18999 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
19000 | test_array [0] = 0 | |
19001 | ||
f73dda09 JA |
19002 | ; |
19003 | return 0; | |
19004 | } | |
19005 | _ACEOF | |
19006 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
19007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19008 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 19009 | ac_status=$? |
a82a04b3 CR |
19010 | grep -v '^ *+' conftest.er1 >conftest.err |
19011 | rm -f conftest.er1 | |
19012 | cat conftest.err >&5 | |
19013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 19014 | (exit $ac_status); } && |
a82a04b3 CR |
19015 | { ac_try='test -z "$ac_c_werror_flag" |
19016 | || test ! -s conftest.err' | |
19017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19018 | (eval $ac_try) 2>&5 | |
19019 | ac_status=$? | |
19020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19021 | (exit $ac_status); }; } && | |
19022 | { ac_try='test -s conftest.$ac_objext' | |
19023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
19024 | (eval $ac_try) 2>&5 |
19025 | ac_status=$? | |
a82a04b3 | 19026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
19027 | (exit $ac_status); }; }; then |
19028 | ac_lo=0 ac_mid=0 | |
19029 | while :; do | |
19030 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
19031 | /* confdefs.h. */ |
19032 | _ACEOF | |
19033 | cat confdefs.h >>conftest.$ac_ext | |
19034 | cat >>conftest.$ac_ext <<_ACEOF | |
19035 | /* end confdefs.h. */ | |
f73dda09 JA |
19036 | $ac_includes_default |
19037 | int | |
19038 | main () | |
19039 | { | |
a82a04b3 CR |
19040 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
19041 | test_array [0] = 0 | |
19042 | ||
f73dda09 JA |
19043 | ; |
19044 | return 0; | |
19045 | } | |
19046 | _ACEOF | |
19047 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
19048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19049 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 19050 | ac_status=$? |
a82a04b3 CR |
19051 | grep -v '^ *+' conftest.er1 >conftest.err |
19052 | rm -f conftest.er1 | |
19053 | cat conftest.err >&5 | |
19054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 19055 | (exit $ac_status); } && |
a82a04b3 CR |
19056 | { ac_try='test -z "$ac_c_werror_flag" |
19057 | || test ! -s conftest.err' | |
19058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
19059 | (eval $ac_try) 2>&5 |
19060 | ac_status=$? | |
a82a04b3 CR |
19061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19062 | (exit $ac_status); }; } && | |
19063 | { ac_try='test -s conftest.$ac_objext' | |
19064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19065 | (eval $ac_try) 2>&5 | |
19066 | ac_status=$? | |
19067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
19068 | (exit $ac_status); }; }; then |
19069 | ac_hi=$ac_mid; break | |
19070 | else | |
19071 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
19072 | sed 's/^/| /' conftest.$ac_ext >&5 |
19073 | ||
19074 | ac_lo=`expr $ac_mid + 1` | |
19075 | if test $ac_lo -le $ac_mid; then | |
19076 | ac_lo= ac_hi= | |
19077 | break | |
19078 | fi | |
19079 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f73dda09 | 19080 | fi |
a82a04b3 | 19081 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 19082 | done |
ccc6cda3 | 19083 | else |
f73dda09 | 19084 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
19085 | sed 's/^/| /' conftest.$ac_ext >&5 |
19086 | ||
19087 | cat >conftest.$ac_ext <<_ACEOF | |
19088 | /* confdefs.h. */ | |
19089 | _ACEOF | |
19090 | cat confdefs.h >>conftest.$ac_ext | |
19091 | cat >>conftest.$ac_ext <<_ACEOF | |
19092 | /* end confdefs.h. */ | |
19093 | $ac_includes_default | |
19094 | int | |
19095 | main () | |
19096 | { | |
19097 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
19098 | test_array [0] = 0 | |
19099 | ||
19100 | ; | |
19101 | return 0; | |
19102 | } | |
19103 | _ACEOF | |
19104 | rm -f conftest.$ac_objext | |
19105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19106 | (eval $ac_compile) 2>conftest.er1 | |
19107 | ac_status=$? | |
19108 | grep -v '^ *+' conftest.er1 >conftest.err | |
19109 | rm -f conftest.er1 | |
19110 | cat conftest.err >&5 | |
19111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19112 | (exit $ac_status); } && | |
19113 | { ac_try='test -z "$ac_c_werror_flag" | |
19114 | || test ! -s conftest.err' | |
19115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19116 | (eval $ac_try) 2>&5 | |
19117 | ac_status=$? | |
19118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19119 | (exit $ac_status); }; } && | |
19120 | { ac_try='test -s conftest.$ac_objext' | |
19121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19122 | (eval $ac_try) 2>&5 | |
19123 | ac_status=$? | |
19124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19125 | (exit $ac_status); }; }; then | |
19126 | ac_hi=-1 ac_mid=-1 | |
f73dda09 JA |
19127 | while :; do |
19128 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
19129 | /* confdefs.h. */ |
19130 | _ACEOF | |
19131 | cat confdefs.h >>conftest.$ac_ext | |
19132 | cat >>conftest.$ac_ext <<_ACEOF | |
19133 | /* end confdefs.h. */ | |
f73dda09 JA |
19134 | $ac_includes_default |
19135 | int | |
19136 | main () | |
19137 | { | |
a82a04b3 CR |
19138 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
19139 | test_array [0] = 0 | |
19140 | ||
f73dda09 JA |
19141 | ; |
19142 | return 0; | |
19143 | } | |
19144 | _ACEOF | |
19145 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
19146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19147 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 19148 | ac_status=$? |
a82a04b3 CR |
19149 | grep -v '^ *+' conftest.er1 >conftest.err |
19150 | rm -f conftest.er1 | |
19151 | cat conftest.err >&5 | |
19152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 19153 | (exit $ac_status); } && |
a82a04b3 CR |
19154 | { ac_try='test -z "$ac_c_werror_flag" |
19155 | || test ! -s conftest.err' | |
19156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19157 | (eval $ac_try) 2>&5 | |
19158 | ac_status=$? | |
19159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19160 | (exit $ac_status); }; } && | |
19161 | { ac_try='test -s conftest.$ac_objext' | |
19162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
19163 | (eval $ac_try) 2>&5 |
19164 | ac_status=$? | |
a82a04b3 | 19165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
19166 | (exit $ac_status); }; }; then |
19167 | ac_lo=$ac_mid; break | |
19168 | else | |
19169 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
19170 | sed 's/^/| /' conftest.$ac_ext >&5 |
19171 | ||
19172 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
19173 | if test $ac_mid -le $ac_hi; then | |
19174 | ac_lo= ac_hi= | |
19175 | break | |
19176 | fi | |
19177 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 19178 | fi |
a82a04b3 | 19179 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 19180 | done |
a82a04b3 CR |
19181 | else |
19182 | echo "$as_me: failed program was:" >&5 | |
19183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19184 | ||
19185 | ac_lo= ac_hi= | |
19186 | fi | |
19187 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 19188 | fi |
a82a04b3 | 19189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 JA |
19190 | # Binary search between lo and hi bounds. |
19191 | while test "x$ac_lo" != "x$ac_hi"; do | |
19192 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19193 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
19194 | /* confdefs.h. */ |
19195 | _ACEOF | |
19196 | cat confdefs.h >>conftest.$ac_ext | |
19197 | cat >>conftest.$ac_ext <<_ACEOF | |
19198 | /* end confdefs.h. */ | |
f73dda09 JA |
19199 | $ac_includes_default |
19200 | int | |
19201 | main () | |
19202 | { | |
a82a04b3 CR |
19203 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
19204 | test_array [0] = 0 | |
19205 | ||
f73dda09 JA |
19206 | ; |
19207 | return 0; | |
19208 | } | |
19209 | _ACEOF | |
19210 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
19211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19212 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 19213 | ac_status=$? |
a82a04b3 CR |
19214 | grep -v '^ *+' conftest.er1 >conftest.err |
19215 | rm -f conftest.er1 | |
19216 | cat conftest.err >&5 | |
19217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 19218 | (exit $ac_status); } && |
a82a04b3 CR |
19219 | { ac_try='test -z "$ac_c_werror_flag" |
19220 | || test ! -s conftest.err' | |
19221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19222 | (eval $ac_try) 2>&5 | |
19223 | ac_status=$? | |
19224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19225 | (exit $ac_status); }; } && | |
19226 | { ac_try='test -s conftest.$ac_objext' | |
19227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
19228 | (eval $ac_try) 2>&5 |
19229 | ac_status=$? | |
a82a04b3 | 19230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
19231 | (exit $ac_status); }; }; then |
19232 | ac_hi=$ac_mid | |
19233 | else | |
19234 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
19235 | sed 's/^/| /' conftest.$ac_ext >&5 |
19236 | ||
19237 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
f73dda09 | 19238 | fi |
a82a04b3 | 19239 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 19240 | done |
a82a04b3 CR |
19241 | case $ac_lo in |
19242 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
19243 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
19244 | See \`config.log' for more details." >&5 | |
19245 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
19246 | See \`config.log' for more details." >&2;} | |
19247 | { (exit 1); exit 1; }; } ;; | |
19248 | esac | |
bb70624e JA |
19249 | else |
19250 | if test "$cross_compiling" = yes; then | |
a82a04b3 CR |
19251 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
19252 | See \`config.log' for more details." >&5 | |
19253 | echo "$as_me: error: cannot run test program while cross compiling | |
19254 | See \`config.log' for more details." >&2;} | |
f73dda09 | 19255 | { (exit 1); exit 1; }; } |
bb70624e | 19256 | else |
f73dda09 | 19257 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
19258 | /* confdefs.h. */ |
19259 | _ACEOF | |
19260 | cat confdefs.h >>conftest.$ac_ext | |
19261 | cat >>conftest.$ac_ext <<_ACEOF | |
19262 | /* end confdefs.h. */ | |
f73dda09 | 19263 | $ac_includes_default |
a82a04b3 CR |
19264 | long longval () { return (long) (sizeof (long)); } |
19265 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
19266 | #include <stdio.h> | |
19267 | #include <stdlib.h> | |
f73dda09 JA |
19268 | int |
19269 | main () | |
bb70624e | 19270 | { |
a82a04b3 CR |
19271 | |
19272 | FILE *f = fopen ("conftest.val", "w"); | |
19273 | if (! f) | |
19274 | exit (1); | |
19275 | if (((long) (sizeof (long))) < 0) | |
19276 | { | |
19277 | long i = longval (); | |
19278 | if (i != ((long) (sizeof (long)))) | |
19279 | exit (1); | |
19280 | fprintf (f, "%ld\n", i); | |
19281 | } | |
19282 | else | |
19283 | { | |
19284 | unsigned long i = ulongval (); | |
19285 | if (i != ((long) (sizeof (long)))) | |
19286 | exit (1); | |
19287 | fprintf (f, "%lu\n", i); | |
19288 | } | |
19289 | exit (ferror (f) || fclose (f) != 0); | |
19290 | ||
f73dda09 JA |
19291 | ; |
19292 | return 0; | |
bb70624e | 19293 | } |
f73dda09 JA |
19294 | _ACEOF |
19295 | rm -f conftest$ac_exeext | |
a82a04b3 | 19296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
19297 | (eval $ac_link) 2>&5 |
19298 | ac_status=$? | |
a82a04b3 | 19299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 19300 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 19301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
19302 | (eval $ac_try) 2>&5 |
19303 | ac_status=$? | |
a82a04b3 | 19304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
19305 | (exit $ac_status); }; }; then |
19306 | ac_cv_sizeof_long=`cat conftest.val` | |
bb70624e | 19307 | else |
f73dda09 JA |
19308 | echo "$as_me: program exited with status $ac_status" >&5 |
19309 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
19310 | sed 's/^/| /' conftest.$ac_ext >&5 |
19311 | ||
19312 | ( exit $ac_status ) | |
19313 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
19314 | See \`config.log' for more details." >&5 | |
19315 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
19316 | See \`config.log' for more details." >&2;} | |
19317 | { (exit 1); exit 1; }; } | |
bb70624e | 19318 | fi |
a82a04b3 | 19319 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
bb70624e | 19320 | fi |
bb70624e | 19321 | fi |
f73dda09 JA |
19322 | rm -f conftest.val |
19323 | else | |
19324 | ac_cv_sizeof_long=0 | |
19325 | fi | |
19326 | fi | |
a82a04b3 | 19327 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
f73dda09 | 19328 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
a82a04b3 | 19329 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 19330 | #define SIZEOF_LONG $ac_cv_sizeof_long |
a82a04b3 | 19331 | _ACEOF |
bb70624e | 19332 | |
a82a04b3 CR |
19333 | |
19334 | echo "$as_me:$LINENO: checking for char *" >&5 | |
f73dda09 JA |
19335 | echo $ECHO_N "checking for char *... $ECHO_C" >&6 |
19336 | if test "${ac_cv_type_char_p+set}" = set; then | |
19337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19338 | else | |
19339 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
19340 | /* confdefs.h. */ |
19341 | _ACEOF | |
19342 | cat confdefs.h >>conftest.$ac_ext | |
19343 | cat >>conftest.$ac_ext <<_ACEOF | |
19344 | /* end confdefs.h. */ | |
f73dda09 JA |
19345 | $ac_includes_default |
19346 | int | |
19347 | main () | |
19348 | { | |
19349 | if ((char * *) 0) | |
19350 | return 0; | |
19351 | if (sizeof (char *)) | |
19352 | return 0; | |
19353 | ; | |
19354 | return 0; | |
19355 | } | |
19356 | _ACEOF | |
19357 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
19358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19359 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 19360 | ac_status=$? |
a82a04b3 CR |
19361 | grep -v '^ *+' conftest.er1 >conftest.err |
19362 | rm -f conftest.er1 | |
19363 | cat conftest.err >&5 | |
19364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 19365 | (exit $ac_status); } && |
a82a04b3 CR |
19366 | { ac_try='test -z "$ac_c_werror_flag" |
19367 | || test ! -s conftest.err' | |
19368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19369 | (eval $ac_try) 2>&5 | |
19370 | ac_status=$? | |
19371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19372 | (exit $ac_status); }; } && | |
19373 | { ac_try='test -s conftest.$ac_objext' | |
19374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
19375 | (eval $ac_try) 2>&5 |
19376 | ac_status=$? | |
a82a04b3 | 19377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
19378 | (exit $ac_status); }; }; then |
19379 | ac_cv_type_char_p=yes | |
19380 | else | |
19381 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
19382 | sed 's/^/| /' conftest.$ac_ext >&5 |
19383 | ||
f73dda09 JA |
19384 | ac_cv_type_char_p=no |
19385 | fi | |
a82a04b3 | 19386 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 19387 | fi |
a82a04b3 | 19388 | echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5 |
f73dda09 JA |
19389 | echo "${ECHO_T}$ac_cv_type_char_p" >&6 |
19390 | ||
a82a04b3 | 19391 | echo "$as_me:$LINENO: checking size of char *" >&5 |
f73dda09 JA |
19392 | echo $ECHO_N "checking size of char *... $ECHO_C" >&6 |
19393 | if test "${ac_cv_sizeof_char_p+set}" = set; then | |
19394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19395 | else | |
19396 | if test "$ac_cv_type_char_p" = yes; then | |
a82a04b3 CR |
19397 | # The cast to unsigned long works around a bug in the HP C Compiler |
19398 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19399 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19400 | # This bug is HP SR number 8606223364. | |
f73dda09 JA |
19401 | if test "$cross_compiling" = yes; then |
19402 | # Depending upon the size, compute the lo and hi bounds. | |
19403 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
19404 | /* confdefs.h. */ |
19405 | _ACEOF | |
19406 | cat confdefs.h >>conftest.$ac_ext | |
19407 | cat >>conftest.$ac_ext <<_ACEOF | |
19408 | /* end confdefs.h. */ | |
f73dda09 JA |
19409 | $ac_includes_default |
19410 | int | |
19411 | main () | |
19412 | { | |
a82a04b3 CR |
19413 | static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)]; |
19414 | test_array [0] = 0 | |
19415 | ||
f73dda09 JA |
19416 | ; |
19417 | return 0; | |
19418 | } | |
19419 | _ACEOF | |
19420 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
19421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19422 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 19423 | ac_status=$? |
a82a04b3 CR |
19424 | grep -v '^ *+' conftest.er1 >conftest.err |
19425 | rm -f conftest.er1 | |
19426 | cat conftest.err >&5 | |
19427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 19428 | (exit $ac_status); } && |
a82a04b3 CR |
19429 | { ac_try='test -z "$ac_c_werror_flag" |
19430 | || test ! -s conftest.err' | |
19431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19432 | (eval $ac_try) 2>&5 | |
19433 | ac_status=$? | |
19434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19435 | (exit $ac_status); }; } && | |
19436 | { ac_try='test -s conftest.$ac_objext' | |
19437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
19438 | (eval $ac_try) 2>&5 |
19439 | ac_status=$? | |
a82a04b3 | 19440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
19441 | (exit $ac_status); }; }; then |
19442 | ac_lo=0 ac_mid=0 | |
19443 | while :; do | |
19444 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
19445 | /* confdefs.h. */ |
19446 | _ACEOF | |
19447 | cat confdefs.h >>conftest.$ac_ext | |
19448 | cat >>conftest.$ac_ext <<_ACEOF | |
19449 | /* end confdefs.h. */ | |
f73dda09 JA |
19450 | $ac_includes_default |
19451 | int | |
19452 | main () | |
19453 | { | |
a82a04b3 CR |
19454 | static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)]; |
19455 | test_array [0] = 0 | |
19456 | ||
f73dda09 JA |
19457 | ; |
19458 | return 0; | |
19459 | } | |
19460 | _ACEOF | |
19461 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
19462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19463 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 19464 | ac_status=$? |
a82a04b3 CR |
19465 | grep -v '^ *+' conftest.er1 >conftest.err |
19466 | rm -f conftest.er1 | |
19467 | cat conftest.err >&5 | |
19468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 19469 | (exit $ac_status); } && |
a82a04b3 CR |
19470 | { ac_try='test -z "$ac_c_werror_flag" |
19471 | || test ! -s conftest.err' | |
19472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19473 | (eval $ac_try) 2>&5 | |
19474 | ac_status=$? | |
19475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19476 | (exit $ac_status); }; } && | |
19477 | { ac_try='test -s conftest.$ac_objext' | |
19478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
19479 | (eval $ac_try) 2>&5 |
19480 | ac_status=$? | |
a82a04b3 | 19481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
19482 | (exit $ac_status); }; }; then |
19483 | ac_hi=$ac_mid; break | |
19484 | else | |
19485 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
19486 | sed 's/^/| /' conftest.$ac_ext >&5 |
19487 | ||
19488 | ac_lo=`expr $ac_mid + 1` | |
19489 | if test $ac_lo -le $ac_mid; then | |
19490 | ac_lo= ac_hi= | |
19491 | break | |
19492 | fi | |
19493 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f73dda09 | 19494 | fi |
a82a04b3 | 19495 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 JA |
19496 | done |
19497 | else | |
19498 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
19499 | sed 's/^/| /' conftest.$ac_ext >&5 |
19500 | ||
19501 | cat >conftest.$ac_ext <<_ACEOF | |
19502 | /* confdefs.h. */ | |
19503 | _ACEOF | |
19504 | cat confdefs.h >>conftest.$ac_ext | |
19505 | cat >>conftest.$ac_ext <<_ACEOF | |
19506 | /* end confdefs.h. */ | |
19507 | $ac_includes_default | |
19508 | int | |
19509 | main () | |
19510 | { | |
19511 | static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)]; | |
19512 | test_array [0] = 0 | |
19513 | ||
19514 | ; | |
19515 | return 0; | |
19516 | } | |
19517 | _ACEOF | |
19518 | rm -f conftest.$ac_objext | |
19519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19520 | (eval $ac_compile) 2>conftest.er1 | |
19521 | ac_status=$? | |
19522 | grep -v '^ *+' conftest.er1 >conftest.err | |
19523 | rm -f conftest.er1 | |
19524 | cat conftest.err >&5 | |
19525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19526 | (exit $ac_status); } && | |
19527 | { ac_try='test -z "$ac_c_werror_flag" | |
19528 | || test ! -s conftest.err' | |
19529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19530 | (eval $ac_try) 2>&5 | |
19531 | ac_status=$? | |
19532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19533 | (exit $ac_status); }; } && | |
19534 | { ac_try='test -s conftest.$ac_objext' | |
19535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19536 | (eval $ac_try) 2>&5 | |
19537 | ac_status=$? | |
19538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19539 | (exit $ac_status); }; }; then | |
19540 | ac_hi=-1 ac_mid=-1 | |
f73dda09 JA |
19541 | while :; do |
19542 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
19543 | /* confdefs.h. */ |
19544 | _ACEOF | |
19545 | cat confdefs.h >>conftest.$ac_ext | |
19546 | cat >>conftest.$ac_ext <<_ACEOF | |
19547 | /* end confdefs.h. */ | |
f73dda09 JA |
19548 | $ac_includes_default |
19549 | int | |
19550 | main () | |
19551 | { | |
a82a04b3 CR |
19552 | static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)]; |
19553 | test_array [0] = 0 | |
19554 | ||
f73dda09 JA |
19555 | ; |
19556 | return 0; | |
19557 | } | |
19558 | _ACEOF | |
19559 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
19560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19561 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 19562 | ac_status=$? |
a82a04b3 CR |
19563 | grep -v '^ *+' conftest.er1 >conftest.err |
19564 | rm -f conftest.er1 | |
19565 | cat conftest.err >&5 | |
19566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 19567 | (exit $ac_status); } && |
a82a04b3 CR |
19568 | { ac_try='test -z "$ac_c_werror_flag" |
19569 | || test ! -s conftest.err' | |
19570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19571 | (eval $ac_try) 2>&5 | |
19572 | ac_status=$? | |
19573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19574 | (exit $ac_status); }; } && | |
19575 | { ac_try='test -s conftest.$ac_objext' | |
19576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
19577 | (eval $ac_try) 2>&5 |
19578 | ac_status=$? | |
a82a04b3 | 19579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
19580 | (exit $ac_status); }; }; then |
19581 | ac_lo=$ac_mid; break | |
19582 | else | |
19583 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
19584 | sed 's/^/| /' conftest.$ac_ext >&5 |
19585 | ||
19586 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
19587 | if test $ac_mid -le $ac_hi; then | |
19588 | ac_lo= ac_hi= | |
19589 | break | |
19590 | fi | |
19591 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 19592 | fi |
a82a04b3 | 19593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 19594 | done |
a82a04b3 CR |
19595 | else |
19596 | echo "$as_me: failed program was:" >&5 | |
19597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19598 | ||
19599 | ac_lo= ac_hi= | |
19600 | fi | |
19601 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 19602 | fi |
a82a04b3 | 19603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 JA |
19604 | # Binary search between lo and hi bounds. |
19605 | while test "x$ac_lo" != "x$ac_hi"; do | |
19606 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19607 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
19608 | /* confdefs.h. */ |
19609 | _ACEOF | |
19610 | cat confdefs.h >>conftest.$ac_ext | |
19611 | cat >>conftest.$ac_ext <<_ACEOF | |
19612 | /* end confdefs.h. */ | |
f73dda09 JA |
19613 | $ac_includes_default |
19614 | int | |
19615 | main () | |
19616 | { | |
a82a04b3 CR |
19617 | static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)]; |
19618 | test_array [0] = 0 | |
19619 | ||
f73dda09 JA |
19620 | ; |
19621 | return 0; | |
19622 | } | |
19623 | _ACEOF | |
19624 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
19625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19626 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 19627 | ac_status=$? |
a82a04b3 CR |
19628 | grep -v '^ *+' conftest.er1 >conftest.err |
19629 | rm -f conftest.er1 | |
19630 | cat conftest.err >&5 | |
19631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 19632 | (exit $ac_status); } && |
a82a04b3 CR |
19633 | { ac_try='test -z "$ac_c_werror_flag" |
19634 | || test ! -s conftest.err' | |
19635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19636 | (eval $ac_try) 2>&5 | |
19637 | ac_status=$? | |
19638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19639 | (exit $ac_status); }; } && | |
19640 | { ac_try='test -s conftest.$ac_objext' | |
19641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
19642 | (eval $ac_try) 2>&5 |
19643 | ac_status=$? | |
a82a04b3 | 19644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
19645 | (exit $ac_status); }; }; then |
19646 | ac_hi=$ac_mid | |
19647 | else | |
19648 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
19649 | sed 's/^/| /' conftest.$ac_ext >&5 |
19650 | ||
19651 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
f73dda09 | 19652 | fi |
a82a04b3 | 19653 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 19654 | done |
a82a04b3 CR |
19655 | case $ac_lo in |
19656 | ?*) ac_cv_sizeof_char_p=$ac_lo;; | |
19657 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77 | |
19658 | See \`config.log' for more details." >&5 | |
19659 | echo "$as_me: error: cannot compute sizeof (char *), 77 | |
19660 | See \`config.log' for more details." >&2;} | |
19661 | { (exit 1); exit 1; }; } ;; | |
19662 | esac | |
bb70624e JA |
19663 | else |
19664 | if test "$cross_compiling" = yes; then | |
a82a04b3 CR |
19665 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
19666 | See \`config.log' for more details." >&5 | |
19667 | echo "$as_me: error: cannot run test program while cross compiling | |
19668 | See \`config.log' for more details." >&2;} | |
f73dda09 | 19669 | { (exit 1); exit 1; }; } |
bb70624e | 19670 | else |
f73dda09 | 19671 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
19672 | /* confdefs.h. */ |
19673 | _ACEOF | |
19674 | cat confdefs.h >>conftest.$ac_ext | |
19675 | cat >>conftest.$ac_ext <<_ACEOF | |
19676 | /* end confdefs.h. */ | |
f73dda09 | 19677 | $ac_includes_default |
a82a04b3 CR |
19678 | long longval () { return (long) (sizeof (char *)); } |
19679 | unsigned long ulongval () { return (long) (sizeof (char *)); } | |
19680 | #include <stdio.h> | |
19681 | #include <stdlib.h> | |
f73dda09 JA |
19682 | int |
19683 | main () | |
bb70624e | 19684 | { |
a82a04b3 CR |
19685 | |
19686 | FILE *f = fopen ("conftest.val", "w"); | |
19687 | if (! f) | |
19688 | exit (1); | |
19689 | if (((long) (sizeof (char *))) < 0) | |
19690 | { | |
19691 | long i = longval (); | |
19692 | if (i != ((long) (sizeof (char *)))) | |
19693 | exit (1); | |
19694 | fprintf (f, "%ld\n", i); | |
19695 | } | |
19696 | else | |
19697 | { | |
19698 | unsigned long i = ulongval (); | |
19699 | if (i != ((long) (sizeof (char *)))) | |
19700 | exit (1); | |
19701 | fprintf (f, "%lu\n", i); | |
19702 | } | |
19703 | exit (ferror (f) || fclose (f) != 0); | |
19704 | ||
f73dda09 JA |
19705 | ; |
19706 | return 0; | |
bb70624e | 19707 | } |
f73dda09 JA |
19708 | _ACEOF |
19709 | rm -f conftest$ac_exeext | |
a82a04b3 | 19710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
19711 | (eval $ac_link) 2>&5 |
19712 | ac_status=$? | |
a82a04b3 | 19713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 19714 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 19715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
19716 | (eval $ac_try) 2>&5 |
19717 | ac_status=$? | |
a82a04b3 | 19718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
19719 | (exit $ac_status); }; }; then |
19720 | ac_cv_sizeof_char_p=`cat conftest.val` | |
bb70624e | 19721 | else |
f73dda09 JA |
19722 | echo "$as_me: program exited with status $ac_status" >&5 |
19723 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
19724 | sed 's/^/| /' conftest.$ac_ext >&5 |
19725 | ||
19726 | ( exit $ac_status ) | |
19727 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77 | |
19728 | See \`config.log' for more details." >&5 | |
19729 | echo "$as_me: error: cannot compute sizeof (char *), 77 | |
19730 | See \`config.log' for more details." >&2;} | |
19731 | { (exit 1); exit 1; }; } | |
bb70624e | 19732 | fi |
a82a04b3 | 19733 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
bb70624e | 19734 | fi |
bb70624e | 19735 | fi |
f73dda09 JA |
19736 | rm -f conftest.val |
19737 | else | |
19738 | ac_cv_sizeof_char_p=0 | |
19739 | fi | |
19740 | fi | |
a82a04b3 | 19741 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5 |
f73dda09 | 19742 | echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6 |
a82a04b3 | 19743 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 19744 | #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p |
a82a04b3 | 19745 | _ACEOF |
bb70624e | 19746 | |
a82a04b3 CR |
19747 | |
19748 | echo "$as_me:$LINENO: checking for double" >&5 | |
f73dda09 JA |
19749 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
19750 | if test "${ac_cv_type_double+set}" = set; then | |
19751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cce855bc | 19752 | else |
f73dda09 | 19753 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
19754 | /* confdefs.h. */ |
19755 | _ACEOF | |
19756 | cat confdefs.h >>conftest.$ac_ext | |
19757 | cat >>conftest.$ac_ext <<_ACEOF | |
19758 | /* end confdefs.h. */ | |
f73dda09 JA |
19759 | $ac_includes_default |
19760 | int | |
19761 | main () | |
19762 | { | |
19763 | if ((double *) 0) | |
19764 | return 0; | |
19765 | if (sizeof (double)) | |
19766 | return 0; | |
19767 | ; | |
19768 | return 0; | |
19769 | } | |
19770 | _ACEOF | |
19771 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
19772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19773 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 19774 | ac_status=$? |
a82a04b3 CR |
19775 | grep -v '^ *+' conftest.er1 >conftest.err |
19776 | rm -f conftest.er1 | |
19777 | cat conftest.err >&5 | |
19778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 19779 | (exit $ac_status); } && |
a82a04b3 CR |
19780 | { ac_try='test -z "$ac_c_werror_flag" |
19781 | || test ! -s conftest.err' | |
19782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19783 | (eval $ac_try) 2>&5 | |
19784 | ac_status=$? | |
19785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19786 | (exit $ac_status); }; } && | |
19787 | { ac_try='test -s conftest.$ac_objext' | |
19788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
19789 | (eval $ac_try) 2>&5 |
19790 | ac_status=$? | |
a82a04b3 | 19791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
19792 | (exit $ac_status); }; }; then |
19793 | ac_cv_type_double=yes | |
19794 | else | |
19795 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
19796 | sed 's/^/| /' conftest.$ac_ext >&5 |
19797 | ||
f73dda09 JA |
19798 | ac_cv_type_double=no |
19799 | fi | |
a82a04b3 | 19800 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 19801 | fi |
a82a04b3 | 19802 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
f73dda09 JA |
19803 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
19804 | ||
a82a04b3 | 19805 | echo "$as_me:$LINENO: checking size of double" >&5 |
f73dda09 JA |
19806 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
19807 | if test "${ac_cv_sizeof_double+set}" = set; then | |
19808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19809 | else | |
19810 | if test "$ac_cv_type_double" = yes; then | |
a82a04b3 CR |
19811 | # The cast to unsigned long works around a bug in the HP C Compiler |
19812 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19813 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19814 | # This bug is HP SR number 8606223364. | |
cce855bc | 19815 | if test "$cross_compiling" = yes; then |
f73dda09 JA |
19816 | # Depending upon the size, compute the lo and hi bounds. |
19817 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
19818 | /* confdefs.h. */ |
19819 | _ACEOF | |
19820 | cat confdefs.h >>conftest.$ac_ext | |
19821 | cat >>conftest.$ac_ext <<_ACEOF | |
19822 | /* end confdefs.h. */ | |
f73dda09 JA |
19823 | $ac_includes_default |
19824 | int | |
19825 | main () | |
cce855bc | 19826 | { |
a82a04b3 CR |
19827 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
19828 | test_array [0] = 0 | |
19829 | ||
f73dda09 JA |
19830 | ; |
19831 | return 0; | |
cce855bc | 19832 | } |
f73dda09 JA |
19833 | _ACEOF |
19834 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
19835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19836 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 19837 | ac_status=$? |
a82a04b3 CR |
19838 | grep -v '^ *+' conftest.er1 >conftest.err |
19839 | rm -f conftest.er1 | |
19840 | cat conftest.err >&5 | |
19841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 19842 | (exit $ac_status); } && |
a82a04b3 CR |
19843 | { ac_try='test -z "$ac_c_werror_flag" |
19844 | || test ! -s conftest.err' | |
19845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19846 | (eval $ac_try) 2>&5 | |
19847 | ac_status=$? | |
19848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19849 | (exit $ac_status); }; } && | |
19850 | { ac_try='test -s conftest.$ac_objext' | |
19851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
19852 | (eval $ac_try) 2>&5 |
19853 | ac_status=$? | |
a82a04b3 | 19854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
19855 | (exit $ac_status); }; }; then |
19856 | ac_lo=0 ac_mid=0 | |
19857 | while :; do | |
19858 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
19859 | /* confdefs.h. */ |
19860 | _ACEOF | |
19861 | cat confdefs.h >>conftest.$ac_ext | |
19862 | cat >>conftest.$ac_ext <<_ACEOF | |
19863 | /* end confdefs.h. */ | |
f73dda09 JA |
19864 | $ac_includes_default |
19865 | int | |
19866 | main () | |
19867 | { | |
a82a04b3 CR |
19868 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
19869 | test_array [0] = 0 | |
19870 | ||
f73dda09 JA |
19871 | ; |
19872 | return 0; | |
19873 | } | |
19874 | _ACEOF | |
19875 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
19876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19877 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 19878 | ac_status=$? |
a82a04b3 CR |
19879 | grep -v '^ *+' conftest.er1 >conftest.err |
19880 | rm -f conftest.er1 | |
19881 | cat conftest.err >&5 | |
19882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 19883 | (exit $ac_status); } && |
a82a04b3 CR |
19884 | { ac_try='test -z "$ac_c_werror_flag" |
19885 | || test ! -s conftest.err' | |
19886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
19887 | (eval $ac_try) 2>&5 |
19888 | ac_status=$? | |
a82a04b3 CR |
19889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19890 | (exit $ac_status); }; } && | |
19891 | { ac_try='test -s conftest.$ac_objext' | |
19892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19893 | (eval $ac_try) 2>&5 | |
19894 | ac_status=$? | |
19895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
19896 | (exit $ac_status); }; }; then |
19897 | ac_hi=$ac_mid; break | |
19898 | else | |
19899 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
19900 | sed 's/^/| /' conftest.$ac_ext >&5 |
19901 | ||
19902 | ac_lo=`expr $ac_mid + 1` | |
19903 | if test $ac_lo -le $ac_mid; then | |
19904 | ac_lo= ac_hi= | |
19905 | break | |
19906 | fi | |
19907 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f73dda09 | 19908 | fi |
a82a04b3 | 19909 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 19910 | done |
cce855bc | 19911 | else |
f73dda09 | 19912 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
19913 | sed 's/^/| /' conftest.$ac_ext >&5 |
19914 | ||
19915 | cat >conftest.$ac_ext <<_ACEOF | |
19916 | /* confdefs.h. */ | |
19917 | _ACEOF | |
19918 | cat confdefs.h >>conftest.$ac_ext | |
19919 | cat >>conftest.$ac_ext <<_ACEOF | |
19920 | /* end confdefs.h. */ | |
19921 | $ac_includes_default | |
19922 | int | |
19923 | main () | |
19924 | { | |
19925 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; | |
19926 | test_array [0] = 0 | |
19927 | ||
19928 | ; | |
19929 | return 0; | |
19930 | } | |
19931 | _ACEOF | |
19932 | rm -f conftest.$ac_objext | |
19933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19934 | (eval $ac_compile) 2>conftest.er1 | |
19935 | ac_status=$? | |
19936 | grep -v '^ *+' conftest.er1 >conftest.err | |
19937 | rm -f conftest.er1 | |
19938 | cat conftest.err >&5 | |
19939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19940 | (exit $ac_status); } && | |
19941 | { ac_try='test -z "$ac_c_werror_flag" | |
19942 | || test ! -s conftest.err' | |
19943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19944 | (eval $ac_try) 2>&5 | |
19945 | ac_status=$? | |
19946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19947 | (exit $ac_status); }; } && | |
19948 | { ac_try='test -s conftest.$ac_objext' | |
19949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19950 | (eval $ac_try) 2>&5 | |
19951 | ac_status=$? | |
19952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19953 | (exit $ac_status); }; }; then | |
19954 | ac_hi=-1 ac_mid=-1 | |
f73dda09 JA |
19955 | while :; do |
19956 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
19957 | /* confdefs.h. */ |
19958 | _ACEOF | |
19959 | cat confdefs.h >>conftest.$ac_ext | |
19960 | cat >>conftest.$ac_ext <<_ACEOF | |
19961 | /* end confdefs.h. */ | |
f73dda09 JA |
19962 | $ac_includes_default |
19963 | int | |
19964 | main () | |
19965 | { | |
a82a04b3 CR |
19966 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
19967 | test_array [0] = 0 | |
19968 | ||
f73dda09 JA |
19969 | ; |
19970 | return 0; | |
19971 | } | |
19972 | _ACEOF | |
19973 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
19974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19975 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 19976 | ac_status=$? |
a82a04b3 CR |
19977 | grep -v '^ *+' conftest.er1 >conftest.err |
19978 | rm -f conftest.er1 | |
19979 | cat conftest.err >&5 | |
19980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 19981 | (exit $ac_status); } && |
a82a04b3 CR |
19982 | { ac_try='test -z "$ac_c_werror_flag" |
19983 | || test ! -s conftest.err' | |
19984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19985 | (eval $ac_try) 2>&5 | |
19986 | ac_status=$? | |
19987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19988 | (exit $ac_status); }; } && | |
19989 | { ac_try='test -s conftest.$ac_objext' | |
19990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
19991 | (eval $ac_try) 2>&5 |
19992 | ac_status=$? | |
a82a04b3 | 19993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
19994 | (exit $ac_status); }; }; then |
19995 | ac_lo=$ac_mid; break | |
19996 | else | |
19997 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
19998 | sed 's/^/| /' conftest.$ac_ext >&5 |
19999 | ||
20000 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
20001 | if test $ac_mid -le $ac_hi; then | |
20002 | ac_lo= ac_hi= | |
20003 | break | |
20004 | fi | |
20005 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 20006 | fi |
a82a04b3 | 20007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 20008 | done |
a82a04b3 CR |
20009 | else |
20010 | echo "$as_me: failed program was:" >&5 | |
20011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20012 | ||
20013 | ac_lo= ac_hi= | |
20014 | fi | |
20015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
cce855bc | 20016 | fi |
a82a04b3 | 20017 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 JA |
20018 | # Binary search between lo and hi bounds. |
20019 | while test "x$ac_lo" != "x$ac_hi"; do | |
20020 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20021 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
20022 | /* confdefs.h. */ |
20023 | _ACEOF | |
20024 | cat confdefs.h >>conftest.$ac_ext | |
20025 | cat >>conftest.$ac_ext <<_ACEOF | |
20026 | /* end confdefs.h. */ | |
f73dda09 JA |
20027 | $ac_includes_default |
20028 | int | |
20029 | main () | |
20030 | { | |
a82a04b3 CR |
20031 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
20032 | test_array [0] = 0 | |
20033 | ||
f73dda09 JA |
20034 | ; |
20035 | return 0; | |
20036 | } | |
20037 | _ACEOF | |
20038 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
20039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
20040 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 20041 | ac_status=$? |
a82a04b3 CR |
20042 | grep -v '^ *+' conftest.er1 >conftest.err |
20043 | rm -f conftest.er1 | |
20044 | cat conftest.err >&5 | |
20045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 20046 | (exit $ac_status); } && |
a82a04b3 CR |
20047 | { ac_try='test -z "$ac_c_werror_flag" |
20048 | || test ! -s conftest.err' | |
20049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20050 | (eval $ac_try) 2>&5 | |
20051 | ac_status=$? | |
20052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20053 | (exit $ac_status); }; } && | |
20054 | { ac_try='test -s conftest.$ac_objext' | |
20055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
20056 | (eval $ac_try) 2>&5 |
20057 | ac_status=$? | |
a82a04b3 | 20058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
20059 | (exit $ac_status); }; }; then |
20060 | ac_hi=$ac_mid | |
20061 | else | |
20062 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
20063 | sed 's/^/| /' conftest.$ac_ext >&5 |
20064 | ||
20065 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
f73dda09 | 20066 | fi |
a82a04b3 | 20067 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 20068 | done |
a82a04b3 CR |
20069 | case $ac_lo in |
20070 | ?*) ac_cv_sizeof_double=$ac_lo;; | |
20071 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 | |
20072 | See \`config.log' for more details." >&5 | |
20073 | echo "$as_me: error: cannot compute sizeof (double), 77 | |
20074 | See \`config.log' for more details." >&2;} | |
20075 | { (exit 1); exit 1; }; } ;; | |
20076 | esac | |
cce855bc JA |
20077 | else |
20078 | if test "$cross_compiling" = yes; then | |
a82a04b3 CR |
20079 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
20080 | See \`config.log' for more details." >&5 | |
20081 | echo "$as_me: error: cannot run test program while cross compiling | |
20082 | See \`config.log' for more details." >&2;} | |
f73dda09 | 20083 | { (exit 1); exit 1; }; } |
cce855bc | 20084 | else |
f73dda09 | 20085 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
20086 | /* confdefs.h. */ |
20087 | _ACEOF | |
20088 | cat confdefs.h >>conftest.$ac_ext | |
20089 | cat >>conftest.$ac_ext <<_ACEOF | |
20090 | /* end confdefs.h. */ | |
f73dda09 | 20091 | $ac_includes_default |
a82a04b3 CR |
20092 | long longval () { return (long) (sizeof (double)); } |
20093 | unsigned long ulongval () { return (long) (sizeof (double)); } | |
20094 | #include <stdio.h> | |
20095 | #include <stdlib.h> | |
f73dda09 JA |
20096 | int |
20097 | main () | |
cce855bc | 20098 | { |
a82a04b3 CR |
20099 | |
20100 | FILE *f = fopen ("conftest.val", "w"); | |
20101 | if (! f) | |
20102 | exit (1); | |
20103 | if (((long) (sizeof (double))) < 0) | |
20104 | { | |
20105 | long i = longval (); | |
20106 | if (i != ((long) (sizeof (double)))) | |
20107 | exit (1); | |
20108 | fprintf (f, "%ld\n", i); | |
20109 | } | |
20110 | else | |
20111 | { | |
20112 | unsigned long i = ulongval (); | |
20113 | if (i != ((long) (sizeof (double)))) | |
20114 | exit (1); | |
20115 | fprintf (f, "%lu\n", i); | |
20116 | } | |
20117 | exit (ferror (f) || fclose (f) != 0); | |
20118 | ||
f73dda09 JA |
20119 | ; |
20120 | return 0; | |
cce855bc | 20121 | } |
f73dda09 JA |
20122 | _ACEOF |
20123 | rm -f conftest$ac_exeext | |
a82a04b3 | 20124 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
20125 | (eval $ac_link) 2>&5 |
20126 | ac_status=$? | |
a82a04b3 | 20127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 20128 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 20129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
20130 | (eval $ac_try) 2>&5 |
20131 | ac_status=$? | |
a82a04b3 | 20132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
20133 | (exit $ac_status); }; }; then |
20134 | ac_cv_sizeof_double=`cat conftest.val` | |
cce855bc | 20135 | else |
f73dda09 JA |
20136 | echo "$as_me: program exited with status $ac_status" >&5 |
20137 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
20138 | sed 's/^/| /' conftest.$ac_ext >&5 |
20139 | ||
20140 | ( exit $ac_status ) | |
20141 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 | |
20142 | See \`config.log' for more details." >&5 | |
20143 | echo "$as_me: error: cannot compute sizeof (double), 77 | |
20144 | See \`config.log' for more details." >&2;} | |
20145 | { (exit 1); exit 1; }; } | |
cce855bc | 20146 | fi |
a82a04b3 | 20147 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
cce855bc | 20148 | fi |
cce855bc | 20149 | fi |
f73dda09 JA |
20150 | rm -f conftest.val |
20151 | else | |
20152 | ac_cv_sizeof_double=0 | |
20153 | fi | |
20154 | fi | |
a82a04b3 | 20155 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
f73dda09 | 20156 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
a82a04b3 | 20157 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 20158 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
a82a04b3 | 20159 | _ACEOF |
cce855bc | 20160 | |
a82a04b3 CR |
20161 | |
20162 | echo "$as_me:$LINENO: checking for long long" >&5 | |
f73dda09 JA |
20163 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
20164 | if test "${ac_cv_type_long_long+set}" = set; then | |
20165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cce855bc | 20166 | else |
f73dda09 | 20167 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
20168 | /* confdefs.h. */ |
20169 | _ACEOF | |
20170 | cat confdefs.h >>conftest.$ac_ext | |
20171 | cat >>conftest.$ac_ext <<_ACEOF | |
20172 | /* end confdefs.h. */ | |
f73dda09 JA |
20173 | $ac_includes_default |
20174 | int | |
20175 | main () | |
20176 | { | |
20177 | if ((long long *) 0) | |
20178 | return 0; | |
20179 | if (sizeof (long long)) | |
20180 | return 0; | |
20181 | ; | |
20182 | return 0; | |
20183 | } | |
20184 | _ACEOF | |
20185 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
20186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
20187 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 20188 | ac_status=$? |
a82a04b3 CR |
20189 | grep -v '^ *+' conftest.er1 >conftest.err |
20190 | rm -f conftest.er1 | |
20191 | cat conftest.err >&5 | |
20192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 20193 | (exit $ac_status); } && |
a82a04b3 CR |
20194 | { ac_try='test -z "$ac_c_werror_flag" |
20195 | || test ! -s conftest.err' | |
20196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20197 | (eval $ac_try) 2>&5 | |
20198 | ac_status=$? | |
20199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20200 | (exit $ac_status); }; } && | |
20201 | { ac_try='test -s conftest.$ac_objext' | |
20202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
20203 | (eval $ac_try) 2>&5 |
20204 | ac_status=$? | |
a82a04b3 | 20205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
20206 | (exit $ac_status); }; }; then |
20207 | ac_cv_type_long_long=yes | |
20208 | else | |
20209 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
20210 | sed 's/^/| /' conftest.$ac_ext >&5 |
20211 | ||
f73dda09 JA |
20212 | ac_cv_type_long_long=no |
20213 | fi | |
a82a04b3 | 20214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 20215 | fi |
a82a04b3 | 20216 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
f73dda09 JA |
20217 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
20218 | ||
a82a04b3 | 20219 | echo "$as_me:$LINENO: checking size of long long" >&5 |
f73dda09 JA |
20220 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
20221 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20223 | else | |
20224 | if test "$ac_cv_type_long_long" = yes; then | |
a82a04b3 CR |
20225 | # The cast to unsigned long works around a bug in the HP C Compiler |
20226 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20227 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20228 | # This bug is HP SR number 8606223364. | |
cce855bc | 20229 | if test "$cross_compiling" = yes; then |
f73dda09 JA |
20230 | # Depending upon the size, compute the lo and hi bounds. |
20231 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
20232 | /* confdefs.h. */ |
20233 | _ACEOF | |
20234 | cat confdefs.h >>conftest.$ac_ext | |
20235 | cat >>conftest.$ac_ext <<_ACEOF | |
20236 | /* end confdefs.h. */ | |
f73dda09 JA |
20237 | $ac_includes_default |
20238 | int | |
20239 | main () | |
cce855bc | 20240 | { |
a82a04b3 CR |
20241 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
20242 | test_array [0] = 0 | |
20243 | ||
f73dda09 JA |
20244 | ; |
20245 | return 0; | |
cce855bc | 20246 | } |
f73dda09 JA |
20247 | _ACEOF |
20248 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
20249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
20250 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 20251 | ac_status=$? |
a82a04b3 CR |
20252 | grep -v '^ *+' conftest.er1 >conftest.err |
20253 | rm -f conftest.er1 | |
20254 | cat conftest.err >&5 | |
20255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 20256 | (exit $ac_status); } && |
a82a04b3 CR |
20257 | { ac_try='test -z "$ac_c_werror_flag" |
20258 | || test ! -s conftest.err' | |
20259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20260 | (eval $ac_try) 2>&5 | |
20261 | ac_status=$? | |
20262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20263 | (exit $ac_status); }; } && | |
20264 | { ac_try='test -s conftest.$ac_objext' | |
20265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
20266 | (eval $ac_try) 2>&5 |
20267 | ac_status=$? | |
a82a04b3 | 20268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
20269 | (exit $ac_status); }; }; then |
20270 | ac_lo=0 ac_mid=0 | |
20271 | while :; do | |
20272 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
20273 | /* confdefs.h. */ |
20274 | _ACEOF | |
20275 | cat confdefs.h >>conftest.$ac_ext | |
20276 | cat >>conftest.$ac_ext <<_ACEOF | |
20277 | /* end confdefs.h. */ | |
f73dda09 JA |
20278 | $ac_includes_default |
20279 | int | |
20280 | main () | |
20281 | { | |
a82a04b3 CR |
20282 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
20283 | test_array [0] = 0 | |
20284 | ||
f73dda09 JA |
20285 | ; |
20286 | return 0; | |
20287 | } | |
20288 | _ACEOF | |
20289 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
20290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
20291 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 20292 | ac_status=$? |
a82a04b3 CR |
20293 | grep -v '^ *+' conftest.er1 >conftest.err |
20294 | rm -f conftest.er1 | |
20295 | cat conftest.err >&5 | |
20296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 20297 | (exit $ac_status); } && |
a82a04b3 CR |
20298 | { ac_try='test -z "$ac_c_werror_flag" |
20299 | || test ! -s conftest.err' | |
20300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20301 | (eval $ac_try) 2>&5 | |
20302 | ac_status=$? | |
20303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20304 | (exit $ac_status); }; } && | |
20305 | { ac_try='test -s conftest.$ac_objext' | |
20306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
20307 | (eval $ac_try) 2>&5 |
20308 | ac_status=$? | |
a82a04b3 | 20309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
20310 | (exit $ac_status); }; }; then |
20311 | ac_hi=$ac_mid; break | |
20312 | else | |
20313 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
20314 | sed 's/^/| /' conftest.$ac_ext >&5 |
20315 | ||
20316 | ac_lo=`expr $ac_mid + 1` | |
20317 | if test $ac_lo -le $ac_mid; then | |
20318 | ac_lo= ac_hi= | |
20319 | break | |
20320 | fi | |
20321 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f73dda09 | 20322 | fi |
a82a04b3 | 20323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 20324 | done |
cce855bc | 20325 | else |
f73dda09 | 20326 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
20327 | sed 's/^/| /' conftest.$ac_ext >&5 |
20328 | ||
20329 | cat >conftest.$ac_ext <<_ACEOF | |
20330 | /* confdefs.h. */ | |
20331 | _ACEOF | |
20332 | cat confdefs.h >>conftest.$ac_ext | |
20333 | cat >>conftest.$ac_ext <<_ACEOF | |
20334 | /* end confdefs.h. */ | |
20335 | $ac_includes_default | |
20336 | int | |
20337 | main () | |
20338 | { | |
20339 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
20340 | test_array [0] = 0 | |
20341 | ||
20342 | ; | |
20343 | return 0; | |
20344 | } | |
20345 | _ACEOF | |
20346 | rm -f conftest.$ac_objext | |
20347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20348 | (eval $ac_compile) 2>conftest.er1 | |
20349 | ac_status=$? | |
20350 | grep -v '^ *+' conftest.er1 >conftest.err | |
20351 | rm -f conftest.er1 | |
20352 | cat conftest.err >&5 | |
20353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20354 | (exit $ac_status); } && | |
20355 | { ac_try='test -z "$ac_c_werror_flag" | |
20356 | || test ! -s conftest.err' | |
20357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20358 | (eval $ac_try) 2>&5 | |
20359 | ac_status=$? | |
20360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20361 | (exit $ac_status); }; } && | |
20362 | { ac_try='test -s conftest.$ac_objext' | |
20363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20364 | (eval $ac_try) 2>&5 | |
20365 | ac_status=$? | |
20366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20367 | (exit $ac_status); }; }; then | |
20368 | ac_hi=-1 ac_mid=-1 | |
f73dda09 JA |
20369 | while :; do |
20370 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
20371 | /* confdefs.h. */ |
20372 | _ACEOF | |
20373 | cat confdefs.h >>conftest.$ac_ext | |
20374 | cat >>conftest.$ac_ext <<_ACEOF | |
20375 | /* end confdefs.h. */ | |
f73dda09 JA |
20376 | $ac_includes_default |
20377 | int | |
20378 | main () | |
20379 | { | |
a82a04b3 CR |
20380 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
20381 | test_array [0] = 0 | |
20382 | ||
f73dda09 JA |
20383 | ; |
20384 | return 0; | |
20385 | } | |
20386 | _ACEOF | |
20387 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
20388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
20389 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 20390 | ac_status=$? |
a82a04b3 CR |
20391 | grep -v '^ *+' conftest.er1 >conftest.err |
20392 | rm -f conftest.er1 | |
20393 | cat conftest.err >&5 | |
20394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 20395 | (exit $ac_status); } && |
a82a04b3 CR |
20396 | { ac_try='test -z "$ac_c_werror_flag" |
20397 | || test ! -s conftest.err' | |
20398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20399 | (eval $ac_try) 2>&5 | |
20400 | ac_status=$? | |
20401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20402 | (exit $ac_status); }; } && | |
20403 | { ac_try='test -s conftest.$ac_objext' | |
20404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
20405 | (eval $ac_try) 2>&5 |
20406 | ac_status=$? | |
a82a04b3 | 20407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
20408 | (exit $ac_status); }; }; then |
20409 | ac_lo=$ac_mid; break | |
20410 | else | |
20411 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
20412 | sed 's/^/| /' conftest.$ac_ext >&5 |
20413 | ||
20414 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
20415 | if test $ac_mid -le $ac_hi; then | |
20416 | ac_lo= ac_hi= | |
20417 | break | |
20418 | fi | |
20419 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 20420 | fi |
a82a04b3 | 20421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 20422 | done |
a82a04b3 CR |
20423 | else |
20424 | echo "$as_me: failed program was:" >&5 | |
20425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20426 | ||
20427 | ac_lo= ac_hi= | |
20428 | fi | |
20429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
cce855bc | 20430 | fi |
a82a04b3 | 20431 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 JA |
20432 | # Binary search between lo and hi bounds. |
20433 | while test "x$ac_lo" != "x$ac_hi"; do | |
20434 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20435 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
20436 | /* confdefs.h. */ |
20437 | _ACEOF | |
20438 | cat confdefs.h >>conftest.$ac_ext | |
20439 | cat >>conftest.$ac_ext <<_ACEOF | |
20440 | /* end confdefs.h. */ | |
f73dda09 JA |
20441 | $ac_includes_default |
20442 | int | |
20443 | main () | |
20444 | { | |
a82a04b3 CR |
20445 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
20446 | test_array [0] = 0 | |
20447 | ||
f73dda09 JA |
20448 | ; |
20449 | return 0; | |
20450 | } | |
20451 | _ACEOF | |
20452 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
20453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
20454 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 20455 | ac_status=$? |
a82a04b3 CR |
20456 | grep -v '^ *+' conftest.er1 >conftest.err |
20457 | rm -f conftest.er1 | |
20458 | cat conftest.err >&5 | |
20459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 20460 | (exit $ac_status); } && |
a82a04b3 CR |
20461 | { ac_try='test -z "$ac_c_werror_flag" |
20462 | || test ! -s conftest.err' | |
20463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20464 | (eval $ac_try) 2>&5 | |
20465 | ac_status=$? | |
20466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20467 | (exit $ac_status); }; } && | |
20468 | { ac_try='test -s conftest.$ac_objext' | |
20469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
20470 | (eval $ac_try) 2>&5 |
20471 | ac_status=$? | |
a82a04b3 | 20472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
20473 | (exit $ac_status); }; }; then |
20474 | ac_hi=$ac_mid | |
20475 | else | |
20476 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
20477 | sed 's/^/| /' conftest.$ac_ext >&5 |
20478 | ||
20479 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
f73dda09 | 20480 | fi |
a82a04b3 | 20481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 20482 | done |
a82a04b3 CR |
20483 | case $ac_lo in |
20484 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20485 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20486 | See \`config.log' for more details." >&5 | |
20487 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20488 | See \`config.log' for more details." >&2;} | |
20489 | { (exit 1); exit 1; }; } ;; | |
20490 | esac | |
b72432fd | 20491 | else |
bb70624e | 20492 | if test "$cross_compiling" = yes; then |
a82a04b3 CR |
20493 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
20494 | See \`config.log' for more details." >&5 | |
20495 | echo "$as_me: error: cannot run test program while cross compiling | |
20496 | See \`config.log' for more details." >&2;} | |
f73dda09 | 20497 | { (exit 1); exit 1; }; } |
bb70624e | 20498 | else |
f73dda09 | 20499 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
20500 | /* confdefs.h. */ |
20501 | _ACEOF | |
20502 | cat confdefs.h >>conftest.$ac_ext | |
20503 | cat >>conftest.$ac_ext <<_ACEOF | |
20504 | /* end confdefs.h. */ | |
f73dda09 | 20505 | $ac_includes_default |
a82a04b3 CR |
20506 | long longval () { return (long) (sizeof (long long)); } |
20507 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20508 | #include <stdio.h> | |
20509 | #include <stdlib.h> | |
f73dda09 JA |
20510 | int |
20511 | main () | |
bb70624e | 20512 | { |
a82a04b3 CR |
20513 | |
20514 | FILE *f = fopen ("conftest.val", "w"); | |
20515 | if (! f) | |
20516 | exit (1); | |
20517 | if (((long) (sizeof (long long))) < 0) | |
20518 | { | |
20519 | long i = longval (); | |
20520 | if (i != ((long) (sizeof (long long)))) | |
20521 | exit (1); | |
20522 | fprintf (f, "%ld\n", i); | |
20523 | } | |
20524 | else | |
20525 | { | |
20526 | unsigned long i = ulongval (); | |
20527 | if (i != ((long) (sizeof (long long)))) | |
20528 | exit (1); | |
20529 | fprintf (f, "%lu\n", i); | |
20530 | } | |
20531 | exit (ferror (f) || fclose (f) != 0); | |
20532 | ||
f73dda09 JA |
20533 | ; |
20534 | return 0; | |
bb70624e | 20535 | } |
f73dda09 JA |
20536 | _ACEOF |
20537 | rm -f conftest$ac_exeext | |
a82a04b3 | 20538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
20539 | (eval $ac_link) 2>&5 |
20540 | ac_status=$? | |
a82a04b3 | 20541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 20542 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 20543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
20544 | (eval $ac_try) 2>&5 |
20545 | ac_status=$? | |
a82a04b3 | 20546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
20547 | (exit $ac_status); }; }; then |
20548 | ac_cv_sizeof_long_long=`cat conftest.val` | |
bb70624e | 20549 | else |
f73dda09 JA |
20550 | echo "$as_me: program exited with status $ac_status" >&5 |
20551 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
20552 | sed 's/^/| /' conftest.$ac_ext >&5 |
20553 | ||
20554 | ( exit $ac_status ) | |
20555 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20556 | See \`config.log' for more details." >&5 | |
20557 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20558 | See \`config.log' for more details." >&2;} | |
20559 | { (exit 1); exit 1; }; } | |
bb70624e | 20560 | fi |
a82a04b3 | 20561 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
bb70624e | 20562 | fi |
bb70624e | 20563 | fi |
f73dda09 JA |
20564 | rm -f conftest.val |
20565 | else | |
20566 | ac_cv_sizeof_long_long=0 | |
20567 | fi | |
20568 | fi | |
a82a04b3 | 20569 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
f73dda09 | 20570 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
a82a04b3 | 20571 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 20572 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
a82a04b3 | 20573 | _ACEOF |
bb70624e | 20574 | |
a82a04b3 CR |
20575 | |
20576 | ||
20577 | echo "$as_me:$LINENO: checking for u_int" >&5 | |
f73dda09 JA |
20578 | echo $ECHO_N "checking for u_int... $ECHO_C" >&6 |
20579 | if test "${ac_cv_type_u_int+set}" = set; then | |
20580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bb70624e | 20581 | else |
f73dda09 | 20582 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
20583 | /* confdefs.h. */ |
20584 | _ACEOF | |
20585 | cat confdefs.h >>conftest.$ac_ext | |
20586 | cat >>conftest.$ac_ext <<_ACEOF | |
20587 | /* end confdefs.h. */ | |
f73dda09 JA |
20588 | $ac_includes_default |
20589 | int | |
20590 | main () | |
20591 | { | |
20592 | if ((u_int *) 0) | |
20593 | return 0; | |
20594 | if (sizeof (u_int)) | |
20595 | return 0; | |
20596 | ; | |
20597 | return 0; | |
20598 | } | |
20599 | _ACEOF | |
20600 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
20601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
20602 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 20603 | ac_status=$? |
a82a04b3 CR |
20604 | grep -v '^ *+' conftest.er1 >conftest.err |
20605 | rm -f conftest.er1 | |
20606 | cat conftest.err >&5 | |
20607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 20608 | (exit $ac_status); } && |
a82a04b3 CR |
20609 | { ac_try='test -z "$ac_c_werror_flag" |
20610 | || test ! -s conftest.err' | |
20611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20612 | (eval $ac_try) 2>&5 | |
20613 | ac_status=$? | |
20614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20615 | (exit $ac_status); }; } && | |
20616 | { ac_try='test -s conftest.$ac_objext' | |
20617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
20618 | (eval $ac_try) 2>&5 |
20619 | ac_status=$? | |
a82a04b3 | 20620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 20621 | (exit $ac_status); }; }; then |
bb70624e JA |
20622 | ac_cv_type_u_int=yes |
20623 | else | |
f73dda09 | 20624 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
20625 | sed 's/^/| /' conftest.$ac_ext >&5 |
20626 | ||
f73dda09 | 20627 | ac_cv_type_u_int=no |
bb70624e | 20628 | fi |
a82a04b3 | 20629 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bb70624e | 20630 | fi |
a82a04b3 | 20631 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5 |
f73dda09 JA |
20632 | echo "${ECHO_T}$ac_cv_type_u_int" >&6 |
20633 | if test $ac_cv_type_u_int = yes; then | |
20634 | : | |
20635 | else | |
20636 | ||
a82a04b3 | 20637 | cat >>confdefs.h <<_ACEOF |
bb70624e | 20638 | #define u_int unsigned int |
a82a04b3 | 20639 | _ACEOF |
bb70624e JA |
20640 | |
20641 | fi | |
20642 | ||
a82a04b3 | 20643 | echo "$as_me:$LINENO: checking for u_long" >&5 |
f73dda09 JA |
20644 | echo $ECHO_N "checking for u_long... $ECHO_C" >&6 |
20645 | if test "${ac_cv_type_u_long+set}" = set; then | |
20646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bb70624e | 20647 | else |
f73dda09 | 20648 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
20649 | /* confdefs.h. */ |
20650 | _ACEOF | |
20651 | cat confdefs.h >>conftest.$ac_ext | |
20652 | cat >>conftest.$ac_ext <<_ACEOF | |
20653 | /* end confdefs.h. */ | |
f73dda09 JA |
20654 | $ac_includes_default |
20655 | int | |
20656 | main () | |
20657 | { | |
20658 | if ((u_long *) 0) | |
20659 | return 0; | |
20660 | if (sizeof (u_long)) | |
20661 | return 0; | |
20662 | ; | |
20663 | return 0; | |
20664 | } | |
20665 | _ACEOF | |
20666 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
20667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
20668 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 20669 | ac_status=$? |
a82a04b3 CR |
20670 | grep -v '^ *+' conftest.er1 >conftest.err |
20671 | rm -f conftest.er1 | |
20672 | cat conftest.err >&5 | |
20673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 20674 | (exit $ac_status); } && |
a82a04b3 CR |
20675 | { ac_try='test -z "$ac_c_werror_flag" |
20676 | || test ! -s conftest.err' | |
20677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20678 | (eval $ac_try) 2>&5 | |
20679 | ac_status=$? | |
20680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20681 | (exit $ac_status); }; } && | |
20682 | { ac_try='test -s conftest.$ac_objext' | |
20683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
20684 | (eval $ac_try) 2>&5 |
20685 | ac_status=$? | |
a82a04b3 | 20686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 20687 | (exit $ac_status); }; }; then |
bb70624e JA |
20688 | ac_cv_type_u_long=yes |
20689 | else | |
f73dda09 | 20690 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
20691 | sed 's/^/| /' conftest.$ac_ext >&5 |
20692 | ||
f73dda09 | 20693 | ac_cv_type_u_long=no |
bb70624e | 20694 | fi |
a82a04b3 | 20695 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bb70624e | 20696 | fi |
a82a04b3 | 20697 | echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5 |
f73dda09 JA |
20698 | echo "${ECHO_T}$ac_cv_type_u_long" >&6 |
20699 | if test $ac_cv_type_u_long = yes; then | |
20700 | : | |
20701 | else | |
20702 | ||
a82a04b3 | 20703 | cat >>confdefs.h <<_ACEOF |
bb70624e | 20704 | #define u_long unsigned long |
a82a04b3 | 20705 | _ACEOF |
bb70624e JA |
20706 | |
20707 | fi | |
20708 | ||
a82a04b3 CR |
20709 | |
20710 | ||
bb70624e | 20711 | if test "$ac_cv_sizeof_short" = 2; then |
a82a04b3 | 20712 | echo "$as_me:$LINENO: checking for bits16_t" >&5 |
f73dda09 JA |
20713 | echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6 |
20714 | if test "${ac_cv_type_bits16_t+set}" = set; then | |
20715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bb70624e | 20716 | else |
f73dda09 | 20717 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
20718 | /* confdefs.h. */ |
20719 | _ACEOF | |
20720 | cat confdefs.h >>conftest.$ac_ext | |
20721 | cat >>conftest.$ac_ext <<_ACEOF | |
20722 | /* end confdefs.h. */ | |
f73dda09 JA |
20723 | $ac_includes_default |
20724 | int | |
20725 | main () | |
20726 | { | |
20727 | if ((bits16_t *) 0) | |
20728 | return 0; | |
20729 | if (sizeof (bits16_t)) | |
20730 | return 0; | |
20731 | ; | |
20732 | return 0; | |
20733 | } | |
20734 | _ACEOF | |
20735 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
20736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
20737 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 20738 | ac_status=$? |
a82a04b3 CR |
20739 | grep -v '^ *+' conftest.er1 >conftest.err |
20740 | rm -f conftest.er1 | |
20741 | cat conftest.err >&5 | |
20742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 20743 | (exit $ac_status); } && |
a82a04b3 CR |
20744 | { ac_try='test -z "$ac_c_werror_flag" |
20745 | || test ! -s conftest.err' | |
20746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
20747 | (eval $ac_try) 2>&5 |
20748 | ac_status=$? | |
a82a04b3 CR |
20749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20750 | (exit $ac_status); }; } && | |
20751 | { ac_try='test -s conftest.$ac_objext' | |
20752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20753 | (eval $ac_try) 2>&5 | |
20754 | ac_status=$? | |
20755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 20756 | (exit $ac_status); }; }; then |
bb70624e JA |
20757 | ac_cv_type_bits16_t=yes |
20758 | else | |
f73dda09 | 20759 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
20760 | sed 's/^/| /' conftest.$ac_ext >&5 |
20761 | ||
f73dda09 | 20762 | ac_cv_type_bits16_t=no |
bb70624e | 20763 | fi |
a82a04b3 | 20764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bb70624e | 20765 | fi |
a82a04b3 | 20766 | echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5 |
f73dda09 JA |
20767 | echo "${ECHO_T}$ac_cv_type_bits16_t" >&6 |
20768 | if test $ac_cv_type_bits16_t = yes; then | |
20769 | : | |
20770 | else | |
20771 | ||
a82a04b3 | 20772 | cat >>confdefs.h <<_ACEOF |
bb70624e | 20773 | #define bits16_t short |
a82a04b3 | 20774 | _ACEOF |
bb70624e JA |
20775 | |
20776 | fi | |
20777 | ||
20778 | elif test "$ac_cv_sizeof_char" = 2; then | |
a82a04b3 | 20779 | echo "$as_me:$LINENO: checking for bits16_t" >&5 |
f73dda09 JA |
20780 | echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6 |
20781 | if test "${ac_cv_type_bits16_t+set}" = set; then | |
20782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bb70624e | 20783 | else |
f73dda09 | 20784 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
20785 | /* confdefs.h. */ |
20786 | _ACEOF | |
20787 | cat confdefs.h >>conftest.$ac_ext | |
20788 | cat >>conftest.$ac_ext <<_ACEOF | |
20789 | /* end confdefs.h. */ | |
f73dda09 JA |
20790 | $ac_includes_default |
20791 | int | |
20792 | main () | |
20793 | { | |
20794 | if ((bits16_t *) 0) | |
20795 | return 0; | |
20796 | if (sizeof (bits16_t)) | |
20797 | return 0; | |
20798 | ; | |
20799 | return 0; | |
20800 | } | |
20801 | _ACEOF | |
20802 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
20803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
20804 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 20805 | ac_status=$? |
a82a04b3 CR |
20806 | grep -v '^ *+' conftest.er1 >conftest.err |
20807 | rm -f conftest.er1 | |
20808 | cat conftest.err >&5 | |
20809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 20810 | (exit $ac_status); } && |
a82a04b3 CR |
20811 | { ac_try='test -z "$ac_c_werror_flag" |
20812 | || test ! -s conftest.err' | |
20813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
20814 | (eval $ac_try) 2>&5 |
20815 | ac_status=$? | |
a82a04b3 CR |
20816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20817 | (exit $ac_status); }; } && | |
20818 | { ac_try='test -s conftest.$ac_objext' | |
20819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20820 | (eval $ac_try) 2>&5 | |
20821 | ac_status=$? | |
20822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 20823 | (exit $ac_status); }; }; then |
bb70624e JA |
20824 | ac_cv_type_bits16_t=yes |
20825 | else | |
f73dda09 | 20826 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
20827 | sed 's/^/| /' conftest.$ac_ext >&5 |
20828 | ||
f73dda09 | 20829 | ac_cv_type_bits16_t=no |
bb70624e | 20830 | fi |
a82a04b3 | 20831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bb70624e | 20832 | fi |
a82a04b3 | 20833 | echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5 |
f73dda09 JA |
20834 | echo "${ECHO_T}$ac_cv_type_bits16_t" >&6 |
20835 | if test $ac_cv_type_bits16_t = yes; then | |
20836 | : | |
20837 | else | |
20838 | ||
a82a04b3 | 20839 | cat >>confdefs.h <<_ACEOF |
bb70624e | 20840 | #define bits16_t char |
a82a04b3 | 20841 | _ACEOF |
bb70624e JA |
20842 | |
20843 | fi | |
20844 | ||
20845 | else | |
a82a04b3 | 20846 | echo "$as_me:$LINENO: checking for bits16_t" >&5 |
f73dda09 JA |
20847 | echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6 |
20848 | if test "${ac_cv_type_bits16_t+set}" = set; then | |
20849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b72432fd | 20850 | else |
f73dda09 | 20851 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
20852 | /* confdefs.h. */ |
20853 | _ACEOF | |
20854 | cat confdefs.h >>conftest.$ac_ext | |
20855 | cat >>conftest.$ac_ext <<_ACEOF | |
20856 | /* end confdefs.h. */ | |
f73dda09 JA |
20857 | $ac_includes_default |
20858 | int | |
20859 | main () | |
20860 | { | |
20861 | if ((bits16_t *) 0) | |
20862 | return 0; | |
20863 | if (sizeof (bits16_t)) | |
20864 | return 0; | |
20865 | ; | |
20866 | return 0; | |
20867 | } | |
20868 | _ACEOF | |
20869 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
20870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
20871 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 20872 | ac_status=$? |
a82a04b3 CR |
20873 | grep -v '^ *+' conftest.er1 >conftest.err |
20874 | rm -f conftest.er1 | |
20875 | cat conftest.err >&5 | |
20876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 20877 | (exit $ac_status); } && |
a82a04b3 CR |
20878 | { ac_try='test -z "$ac_c_werror_flag" |
20879 | || test ! -s conftest.err' | |
20880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
20881 | (eval $ac_try) 2>&5 |
20882 | ac_status=$? | |
a82a04b3 CR |
20883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20884 | (exit $ac_status); }; } && | |
20885 | { ac_try='test -s conftest.$ac_objext' | |
20886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20887 | (eval $ac_try) 2>&5 | |
20888 | ac_status=$? | |
20889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 20890 | (exit $ac_status); }; }; then |
bb70624e | 20891 | ac_cv_type_bits16_t=yes |
b72432fd | 20892 | else |
f73dda09 | 20893 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
20894 | sed 's/^/| /' conftest.$ac_ext >&5 |
20895 | ||
f73dda09 | 20896 | ac_cv_type_bits16_t=no |
b72432fd | 20897 | fi |
a82a04b3 | 20898 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b72432fd | 20899 | fi |
a82a04b3 | 20900 | echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5 |
f73dda09 JA |
20901 | echo "${ECHO_T}$ac_cv_type_bits16_t" >&6 |
20902 | if test $ac_cv_type_bits16_t = yes; then | |
20903 | : | |
20904 | else | |
20905 | ||
a82a04b3 | 20906 | cat >>confdefs.h <<_ACEOF |
bb70624e | 20907 | #define bits16_t short |
a82a04b3 | 20908 | _ACEOF |
b72432fd | 20909 | |
bb70624e | 20910 | fi |
b72432fd | 20911 | |
bb70624e | 20912 | fi |
b72432fd | 20913 | |
a82a04b3 | 20914 | |
bb70624e | 20915 | if test "$ac_cv_sizeof_short" = 2; then |
a82a04b3 | 20916 | echo "$as_me:$LINENO: checking for u_bits16_t" >&5 |
f73dda09 JA |
20917 | echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6 |
20918 | if test "${ac_cv_type_u_bits16_t+set}" = set; then | |
20919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cce855bc | 20920 | else |
f73dda09 | 20921 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
20922 | /* confdefs.h. */ |
20923 | _ACEOF | |
20924 | cat confdefs.h >>conftest.$ac_ext | |
20925 | cat >>conftest.$ac_ext <<_ACEOF | |
20926 | /* end confdefs.h. */ | |
f73dda09 JA |
20927 | $ac_includes_default |
20928 | int | |
20929 | main () | |
20930 | { | |
20931 | if ((u_bits16_t *) 0) | |
20932 | return 0; | |
20933 | if (sizeof (u_bits16_t)) | |
20934 | return 0; | |
20935 | ; | |
20936 | return 0; | |
20937 | } | |
20938 | _ACEOF | |
20939 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
20940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
20941 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 20942 | ac_status=$? |
a82a04b3 CR |
20943 | grep -v '^ *+' conftest.er1 >conftest.err |
20944 | rm -f conftest.er1 | |
20945 | cat conftest.err >&5 | |
20946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 20947 | (exit $ac_status); } && |
a82a04b3 CR |
20948 | { ac_try='test -z "$ac_c_werror_flag" |
20949 | || test ! -s conftest.err' | |
20950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20951 | (eval $ac_try) 2>&5 | |
20952 | ac_status=$? | |
20953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20954 | (exit $ac_status); }; } && | |
20955 | { ac_try='test -s conftest.$ac_objext' | |
20956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
20957 | (eval $ac_try) 2>&5 |
20958 | ac_status=$? | |
a82a04b3 | 20959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 20960 | (exit $ac_status); }; }; then |
bb70624e | 20961 | ac_cv_type_u_bits16_t=yes |
cce855bc | 20962 | else |
f73dda09 | 20963 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
20964 | sed 's/^/| /' conftest.$ac_ext >&5 |
20965 | ||
f73dda09 | 20966 | ac_cv_type_u_bits16_t=no |
cce855bc | 20967 | fi |
a82a04b3 | 20968 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cce855bc | 20969 | fi |
a82a04b3 | 20970 | echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5 |
f73dda09 JA |
20971 | echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6 |
20972 | if test $ac_cv_type_u_bits16_t = yes; then | |
20973 | : | |
20974 | else | |
20975 | ||
a82a04b3 | 20976 | cat >>confdefs.h <<_ACEOF |
bb70624e | 20977 | #define u_bits16_t unsigned short |
a82a04b3 | 20978 | _ACEOF |
cce855bc JA |
20979 | |
20980 | fi | |
20981 | ||
bb70624e | 20982 | elif test "$ac_cv_sizeof_char" = 2; then |
a82a04b3 | 20983 | echo "$as_me:$LINENO: checking for u_bits16_t" >&5 |
f73dda09 JA |
20984 | echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6 |
20985 | if test "${ac_cv_type_u_bits16_t+set}" = set; then | |
20986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cce855bc | 20987 | else |
f73dda09 | 20988 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
20989 | /* confdefs.h. */ |
20990 | _ACEOF | |
20991 | cat confdefs.h >>conftest.$ac_ext | |
20992 | cat >>conftest.$ac_ext <<_ACEOF | |
20993 | /* end confdefs.h. */ | |
f73dda09 JA |
20994 | $ac_includes_default |
20995 | int | |
20996 | main () | |
20997 | { | |
20998 | if ((u_bits16_t *) 0) | |
20999 | return 0; | |
21000 | if (sizeof (u_bits16_t)) | |
21001 | return 0; | |
21002 | ; | |
21003 | return 0; | |
21004 | } | |
21005 | _ACEOF | |
21006 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
21007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
21008 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 21009 | ac_status=$? |
a82a04b3 CR |
21010 | grep -v '^ *+' conftest.er1 >conftest.err |
21011 | rm -f conftest.er1 | |
21012 | cat conftest.err >&5 | |
21013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 21014 | (exit $ac_status); } && |
a82a04b3 CR |
21015 | { ac_try='test -z "$ac_c_werror_flag" |
21016 | || test ! -s conftest.err' | |
21017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21018 | (eval $ac_try) 2>&5 | |
21019 | ac_status=$? | |
21020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21021 | (exit $ac_status); }; } && | |
21022 | { ac_try='test -s conftest.$ac_objext' | |
21023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
21024 | (eval $ac_try) 2>&5 |
21025 | ac_status=$? | |
a82a04b3 | 21026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 21027 | (exit $ac_status); }; }; then |
bb70624e | 21028 | ac_cv_type_u_bits16_t=yes |
cce855bc | 21029 | else |
f73dda09 | 21030 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
21031 | sed 's/^/| /' conftest.$ac_ext >&5 |
21032 | ||
f73dda09 | 21033 | ac_cv_type_u_bits16_t=no |
cce855bc | 21034 | fi |
a82a04b3 | 21035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cce855bc | 21036 | fi |
a82a04b3 | 21037 | echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5 |
f73dda09 JA |
21038 | echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6 |
21039 | if test $ac_cv_type_u_bits16_t = yes; then | |
21040 | : | |
21041 | else | |
21042 | ||
a82a04b3 | 21043 | cat >>confdefs.h <<_ACEOF |
bb70624e | 21044 | #define u_bits16_t unsigned char |
a82a04b3 | 21045 | _ACEOF |
cce855bc JA |
21046 | |
21047 | fi | |
21048 | ||
b72432fd | 21049 | else |
a82a04b3 | 21050 | echo "$as_me:$LINENO: checking for u_bits16_t" >&5 |
f73dda09 JA |
21051 | echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6 |
21052 | if test "${ac_cv_type_u_bits16_t+set}" = set; then | |
21053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b72432fd | 21054 | else |
f73dda09 | 21055 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
21056 | /* confdefs.h. */ |
21057 | _ACEOF | |
21058 | cat confdefs.h >>conftest.$ac_ext | |
21059 | cat >>conftest.$ac_ext <<_ACEOF | |
21060 | /* end confdefs.h. */ | |
f73dda09 JA |
21061 | $ac_includes_default |
21062 | int | |
21063 | main () | |
21064 | { | |
21065 | if ((u_bits16_t *) 0) | |
21066 | return 0; | |
21067 | if (sizeof (u_bits16_t)) | |
21068 | return 0; | |
21069 | ; | |
21070 | return 0; | |
21071 | } | |
21072 | _ACEOF | |
21073 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
21074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
21075 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 21076 | ac_status=$? |
a82a04b3 CR |
21077 | grep -v '^ *+' conftest.er1 >conftest.err |
21078 | rm -f conftest.er1 | |
21079 | cat conftest.err >&5 | |
21080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 21081 | (exit $ac_status); } && |
a82a04b3 CR |
21082 | { ac_try='test -z "$ac_c_werror_flag" |
21083 | || test ! -s conftest.err' | |
21084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21085 | (eval $ac_try) 2>&5 | |
21086 | ac_status=$? | |
21087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21088 | (exit $ac_status); }; } && | |
21089 | { ac_try='test -s conftest.$ac_objext' | |
21090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
21091 | (eval $ac_try) 2>&5 |
21092 | ac_status=$? | |
a82a04b3 | 21093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 21094 | (exit $ac_status); }; }; then |
bb70624e | 21095 | ac_cv_type_u_bits16_t=yes |
b72432fd | 21096 | else |
f73dda09 | 21097 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
21098 | sed 's/^/| /' conftest.$ac_ext >&5 |
21099 | ||
f73dda09 | 21100 | ac_cv_type_u_bits16_t=no |
cce855bc | 21101 | fi |
a82a04b3 | 21102 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b72432fd | 21103 | fi |
a82a04b3 | 21104 | echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5 |
f73dda09 JA |
21105 | echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6 |
21106 | if test $ac_cv_type_u_bits16_t = yes; then | |
21107 | : | |
21108 | else | |
21109 | ||
a82a04b3 | 21110 | cat >>confdefs.h <<_ACEOF |
bb70624e | 21111 | #define u_bits16_t unsigned short |
a82a04b3 | 21112 | _ACEOF |
cce855bc | 21113 | |
b72432fd JA |
21114 | fi |
21115 | ||
21116 | fi | |
21117 | ||
a82a04b3 | 21118 | |
b72432fd | 21119 | if test "$ac_cv_sizeof_int" = 4; then |
a82a04b3 | 21120 | echo "$as_me:$LINENO: checking for bits32_t" >&5 |
f73dda09 JA |
21121 | echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6 |
21122 | if test "${ac_cv_type_bits32_t+set}" = set; then | |
21123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cce855bc | 21124 | else |
f73dda09 | 21125 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
21126 | /* confdefs.h. */ |
21127 | _ACEOF | |
21128 | cat confdefs.h >>conftest.$ac_ext | |
21129 | cat >>conftest.$ac_ext <<_ACEOF | |
21130 | /* end confdefs.h. */ | |
f73dda09 JA |
21131 | $ac_includes_default |
21132 | int | |
21133 | main () | |
21134 | { | |
21135 | if ((bits32_t *) 0) | |
21136 | return 0; | |
21137 | if (sizeof (bits32_t)) | |
21138 | return 0; | |
21139 | ; | |
21140 | return 0; | |
21141 | } | |
21142 | _ACEOF | |
21143 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
21144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
21145 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 21146 | ac_status=$? |
a82a04b3 CR |
21147 | grep -v '^ *+' conftest.er1 >conftest.err |
21148 | rm -f conftest.er1 | |
21149 | cat conftest.err >&5 | |
21150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 21151 | (exit $ac_status); } && |
a82a04b3 CR |
21152 | { ac_try='test -z "$ac_c_werror_flag" |
21153 | || test ! -s conftest.err' | |
21154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21155 | (eval $ac_try) 2>&5 | |
21156 | ac_status=$? | |
21157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21158 | (exit $ac_status); }; } && | |
21159 | { ac_try='test -s conftest.$ac_objext' | |
21160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
21161 | (eval $ac_try) 2>&5 |
21162 | ac_status=$? | |
a82a04b3 | 21163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 21164 | (exit $ac_status); }; }; then |
bb70624e | 21165 | ac_cv_type_bits32_t=yes |
b72432fd | 21166 | else |
f73dda09 | 21167 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
21168 | sed 's/^/| /' conftest.$ac_ext >&5 |
21169 | ||
f73dda09 | 21170 | ac_cv_type_bits32_t=no |
b72432fd | 21171 | fi |
a82a04b3 | 21172 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cce855bc | 21173 | fi |
a82a04b3 | 21174 | echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5 |
f73dda09 JA |
21175 | echo "${ECHO_T}$ac_cv_type_bits32_t" >&6 |
21176 | if test $ac_cv_type_bits32_t = yes; then | |
21177 | : | |
21178 | else | |
21179 | ||
a82a04b3 | 21180 | cat >>confdefs.h <<_ACEOF |
bb70624e | 21181 | #define bits32_t int |
a82a04b3 | 21182 | _ACEOF |
cce855bc JA |
21183 | |
21184 | fi | |
b72432fd JA |
21185 | |
21186 | elif test "$ac_cv_sizeof_long" = 4; then | |
a82a04b3 | 21187 | echo "$as_me:$LINENO: checking for bits32_t" >&5 |
f73dda09 JA |
21188 | echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6 |
21189 | if test "${ac_cv_type_bits32_t+set}" = set; then | |
21190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cce855bc | 21191 | else |
f73dda09 | 21192 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
21193 | /* confdefs.h. */ |
21194 | _ACEOF | |
21195 | cat confdefs.h >>conftest.$ac_ext | |
21196 | cat >>conftest.$ac_ext <<_ACEOF | |
21197 | /* end confdefs.h. */ | |
f73dda09 JA |
21198 | $ac_includes_default |
21199 | int | |
21200 | main () | |
21201 | { | |
21202 | if ((bits32_t *) 0) | |
21203 | return 0; | |
21204 | if (sizeof (bits32_t)) | |
21205 | return 0; | |
21206 | ; | |
21207 | return 0; | |
21208 | } | |
21209 | _ACEOF | |
21210 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
21211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
21212 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 21213 | ac_status=$? |
a82a04b3 CR |
21214 | grep -v '^ *+' conftest.er1 >conftest.err |
21215 | rm -f conftest.er1 | |
21216 | cat conftest.err >&5 | |
21217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 21218 | (exit $ac_status); } && |
a82a04b3 CR |
21219 | { ac_try='test -z "$ac_c_werror_flag" |
21220 | || test ! -s conftest.err' | |
21221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21222 | (eval $ac_try) 2>&5 | |
21223 | ac_status=$? | |
21224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21225 | (exit $ac_status); }; } && | |
21226 | { ac_try='test -s conftest.$ac_objext' | |
21227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
21228 | (eval $ac_try) 2>&5 |
21229 | ac_status=$? | |
a82a04b3 | 21230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 21231 | (exit $ac_status); }; }; then |
bb70624e | 21232 | ac_cv_type_bits32_t=yes |
cce855bc | 21233 | else |
f73dda09 | 21234 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
21235 | sed 's/^/| /' conftest.$ac_ext >&5 |
21236 | ||
f73dda09 | 21237 | ac_cv_type_bits32_t=no |
cce855bc | 21238 | fi |
a82a04b3 | 21239 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cce855bc | 21240 | fi |
a82a04b3 | 21241 | echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5 |
f73dda09 JA |
21242 | echo "${ECHO_T}$ac_cv_type_bits32_t" >&6 |
21243 | if test $ac_cv_type_bits32_t = yes; then | |
21244 | : | |
21245 | else | |
21246 | ||
a82a04b3 | 21247 | cat >>confdefs.h <<_ACEOF |
bb70624e | 21248 | #define bits32_t long |
a82a04b3 | 21249 | _ACEOF |
cce855bc JA |
21250 | |
21251 | fi | |
21252 | ||
cce855bc | 21253 | else |
a82a04b3 | 21254 | echo "$as_me:$LINENO: checking for bits32_t" >&5 |
f73dda09 JA |
21255 | echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6 |
21256 | if test "${ac_cv_type_bits32_t+set}" = set; then | |
21257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cce855bc | 21258 | else |
f73dda09 | 21259 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
21260 | /* confdefs.h. */ |
21261 | _ACEOF | |
21262 | cat confdefs.h >>conftest.$ac_ext | |
21263 | cat >>conftest.$ac_ext <<_ACEOF | |
21264 | /* end confdefs.h. */ | |
f73dda09 JA |
21265 | $ac_includes_default |
21266 | int | |
21267 | main () | |
21268 | { | |
21269 | if ((bits32_t *) 0) | |
21270 | return 0; | |
21271 | if (sizeof (bits32_t)) | |
21272 | return 0; | |
21273 | ; | |
21274 | return 0; | |
21275 | } | |
21276 | _ACEOF | |
21277 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
21278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
21279 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 21280 | ac_status=$? |
a82a04b3 CR |
21281 | grep -v '^ *+' conftest.er1 >conftest.err |
21282 | rm -f conftest.er1 | |
21283 | cat conftest.err >&5 | |
21284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 21285 | (exit $ac_status); } && |
a82a04b3 CR |
21286 | { ac_try='test -z "$ac_c_werror_flag" |
21287 | || test ! -s conftest.err' | |
21288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21289 | (eval $ac_try) 2>&5 | |
21290 | ac_status=$? | |
21291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21292 | (exit $ac_status); }; } && | |
21293 | { ac_try='test -s conftest.$ac_objext' | |
21294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
21295 | (eval $ac_try) 2>&5 |
21296 | ac_status=$? | |
a82a04b3 | 21297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 21298 | (exit $ac_status); }; }; then |
bb70624e | 21299 | ac_cv_type_bits32_t=yes |
cce855bc | 21300 | else |
f73dda09 | 21301 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
21302 | sed 's/^/| /' conftest.$ac_ext >&5 |
21303 | ||
f73dda09 | 21304 | ac_cv_type_bits32_t=no |
cce855bc | 21305 | fi |
a82a04b3 | 21306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cce855bc | 21307 | fi |
a82a04b3 | 21308 | echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5 |
f73dda09 JA |
21309 | echo "${ECHO_T}$ac_cv_type_bits32_t" >&6 |
21310 | if test $ac_cv_type_bits32_t = yes; then | |
21311 | : | |
21312 | else | |
21313 | ||
a82a04b3 | 21314 | cat >>confdefs.h <<_ACEOF |
bb70624e | 21315 | #define bits32_t int |
a82a04b3 | 21316 | _ACEOF |
cce855bc JA |
21317 | |
21318 | fi | |
21319 | ||
cce855bc | 21320 | fi |
cce855bc | 21321 | |
a82a04b3 | 21322 | |
bb70624e | 21323 | if test "$ac_cv_sizeof_int" = 4; then |
a82a04b3 | 21324 | echo "$as_me:$LINENO: checking for u_bits32_t" >&5 |
f73dda09 JA |
21325 | echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6 |
21326 | if test "${ac_cv_type_u_bits32_t+set}" = set; then | |
21327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cce855bc | 21328 | else |
f73dda09 | 21329 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
21330 | /* confdefs.h. */ |
21331 | _ACEOF | |
21332 | cat confdefs.h >>conftest.$ac_ext | |
21333 | cat >>conftest.$ac_ext <<_ACEOF | |
21334 | /* end confdefs.h. */ | |
f73dda09 JA |
21335 | $ac_includes_default |
21336 | int | |
21337 | main () | |
21338 | { | |
21339 | if ((u_bits32_t *) 0) | |
21340 | return 0; | |
21341 | if (sizeof (u_bits32_t)) | |
21342 | return 0; | |
21343 | ; | |
21344 | return 0; | |
21345 | } | |
21346 | _ACEOF | |
21347 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
21348 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
21349 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 21350 | ac_status=$? |
a82a04b3 CR |
21351 | grep -v '^ *+' conftest.er1 >conftest.err |
21352 | rm -f conftest.er1 | |
21353 | cat conftest.err >&5 | |
21354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 21355 | (exit $ac_status); } && |
a82a04b3 CR |
21356 | { ac_try='test -z "$ac_c_werror_flag" |
21357 | || test ! -s conftest.err' | |
21358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21359 | (eval $ac_try) 2>&5 | |
21360 | ac_status=$? | |
21361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21362 | (exit $ac_status); }; } && | |
21363 | { ac_try='test -s conftest.$ac_objext' | |
21364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
21365 | (eval $ac_try) 2>&5 |
21366 | ac_status=$? | |
a82a04b3 | 21367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 21368 | (exit $ac_status); }; }; then |
bb70624e | 21369 | ac_cv_type_u_bits32_t=yes |
b72432fd | 21370 | else |
f73dda09 | 21371 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
21372 | sed 's/^/| /' conftest.$ac_ext >&5 |
21373 | ||
f73dda09 | 21374 | ac_cv_type_u_bits32_t=no |
b72432fd | 21375 | fi |
a82a04b3 | 21376 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cce855bc | 21377 | fi |
a82a04b3 | 21378 | echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5 |
f73dda09 JA |
21379 | echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6 |
21380 | if test $ac_cv_type_u_bits32_t = yes; then | |
21381 | : | |
21382 | else | |
21383 | ||
a82a04b3 | 21384 | cat >>confdefs.h <<_ACEOF |
bb70624e | 21385 | #define u_bits32_t unsigned int |
a82a04b3 | 21386 | _ACEOF |
cce855bc JA |
21387 | |
21388 | fi | |
21389 | ||
bb70624e | 21390 | elif test "$ac_cv_sizeof_long" = 4; then |
a82a04b3 | 21391 | echo "$as_me:$LINENO: checking for u_bits32_t" >&5 |
f73dda09 JA |
21392 | echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6 |
21393 | if test "${ac_cv_type_u_bits32_t+set}" = set; then | |
21394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cce855bc | 21395 | else |
f73dda09 | 21396 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
21397 | /* confdefs.h. */ |
21398 | _ACEOF | |
21399 | cat confdefs.h >>conftest.$ac_ext | |
21400 | cat >>conftest.$ac_ext <<_ACEOF | |
21401 | /* end confdefs.h. */ | |
f73dda09 JA |
21402 | $ac_includes_default |
21403 | int | |
21404 | main () | |
21405 | { | |
21406 | if ((u_bits32_t *) 0) | |
21407 | return 0; | |
21408 | if (sizeof (u_bits32_t)) | |
21409 | return 0; | |
21410 | ; | |
21411 | return 0; | |
21412 | } | |
21413 | _ACEOF | |
21414 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
21415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
21416 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 21417 | ac_status=$? |
a82a04b3 CR |
21418 | grep -v '^ *+' conftest.er1 >conftest.err |
21419 | rm -f conftest.er1 | |
21420 | cat conftest.err >&5 | |
21421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 21422 | (exit $ac_status); } && |
a82a04b3 CR |
21423 | { ac_try='test -z "$ac_c_werror_flag" |
21424 | || test ! -s conftest.err' | |
21425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21426 | (eval $ac_try) 2>&5 | |
21427 | ac_status=$? | |
21428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21429 | (exit $ac_status); }; } && | |
21430 | { ac_try='test -s conftest.$ac_objext' | |
21431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
21432 | (eval $ac_try) 2>&5 |
21433 | ac_status=$? | |
a82a04b3 | 21434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 21435 | (exit $ac_status); }; }; then |
bb70624e | 21436 | ac_cv_type_u_bits32_t=yes |
cce855bc | 21437 | else |
f73dda09 | 21438 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
21439 | sed 's/^/| /' conftest.$ac_ext >&5 |
21440 | ||
f73dda09 | 21441 | ac_cv_type_u_bits32_t=no |
cce855bc | 21442 | fi |
a82a04b3 | 21443 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cce855bc | 21444 | fi |
a82a04b3 | 21445 | echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5 |
f73dda09 JA |
21446 | echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6 |
21447 | if test $ac_cv_type_u_bits32_t = yes; then | |
21448 | : | |
21449 | else | |
21450 | ||
a82a04b3 | 21451 | cat >>confdefs.h <<_ACEOF |
bb70624e | 21452 | #define u_bits32_t unsigned long |
a82a04b3 | 21453 | _ACEOF |
cce855bc JA |
21454 | |
21455 | fi | |
21456 | ||
cce855bc | 21457 | else |
a82a04b3 | 21458 | echo "$as_me:$LINENO: checking for u_bits32_t" >&5 |
f73dda09 JA |
21459 | echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6 |
21460 | if test "${ac_cv_type_u_bits32_t+set}" = set; then | |
21461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cce855bc | 21462 | else |
f73dda09 | 21463 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
21464 | /* confdefs.h. */ |
21465 | _ACEOF | |
21466 | cat confdefs.h >>conftest.$ac_ext | |
21467 | cat >>conftest.$ac_ext <<_ACEOF | |
21468 | /* end confdefs.h. */ | |
f73dda09 JA |
21469 | $ac_includes_default |
21470 | int | |
21471 | main () | |
21472 | { | |
21473 | if ((u_bits32_t *) 0) | |
21474 | return 0; | |
21475 | if (sizeof (u_bits32_t)) | |
21476 | return 0; | |
21477 | ; | |
21478 | return 0; | |
21479 | } | |
21480 | _ACEOF | |
21481 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
21482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
21483 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 21484 | ac_status=$? |
a82a04b3 CR |
21485 | grep -v '^ *+' conftest.er1 >conftest.err |
21486 | rm -f conftest.er1 | |
21487 | cat conftest.err >&5 | |
21488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 21489 | (exit $ac_status); } && |
a82a04b3 CR |
21490 | { ac_try='test -z "$ac_c_werror_flag" |
21491 | || test ! -s conftest.err' | |
21492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21493 | (eval $ac_try) 2>&5 | |
21494 | ac_status=$? | |
21495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21496 | (exit $ac_status); }; } && | |
21497 | { ac_try='test -s conftest.$ac_objext' | |
21498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
21499 | (eval $ac_try) 2>&5 |
21500 | ac_status=$? | |
a82a04b3 | 21501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 21502 | (exit $ac_status); }; }; then |
bb70624e | 21503 | ac_cv_type_u_bits32_t=yes |
b72432fd | 21504 | else |
f73dda09 | 21505 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
21506 | sed 's/^/| /' conftest.$ac_ext >&5 |
21507 | ||
f73dda09 | 21508 | ac_cv_type_u_bits32_t=no |
b72432fd | 21509 | fi |
a82a04b3 | 21510 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b72432fd | 21511 | fi |
a82a04b3 | 21512 | echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5 |
f73dda09 JA |
21513 | echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6 |
21514 | if test $ac_cv_type_u_bits32_t = yes; then | |
21515 | : | |
21516 | else | |
21517 | ||
a82a04b3 | 21518 | cat >>confdefs.h <<_ACEOF |
bb70624e | 21519 | #define u_bits32_t unsigned int |
a82a04b3 | 21520 | _ACEOF |
b72432fd JA |
21521 | |
21522 | fi | |
cce855bc | 21523 | |
b72432fd JA |
21524 | fi |
21525 | ||
a82a04b3 | 21526 | |
f73dda09 | 21527 | if test "$ac_cv_sizeof_char_p" = 8; then |
a82a04b3 | 21528 | echo "$as_me:$LINENO: checking for bits64_t" >&5 |
f73dda09 JA |
21529 | echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6 |
21530 | if test "${ac_cv_type_bits64_t+set}" = set; then | |
21531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cce855bc | 21532 | else |
f73dda09 | 21533 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
21534 | /* confdefs.h. */ |
21535 | _ACEOF | |
21536 | cat confdefs.h >>conftest.$ac_ext | |
21537 | cat >>conftest.$ac_ext <<_ACEOF | |
21538 | /* end confdefs.h. */ | |
f73dda09 JA |
21539 | $ac_includes_default |
21540 | int | |
21541 | main () | |
21542 | { | |
21543 | if ((bits64_t *) 0) | |
21544 | return 0; | |
21545 | if (sizeof (bits64_t)) | |
21546 | return 0; | |
21547 | ; | |
21548 | return 0; | |
21549 | } | |
21550 | _ACEOF | |
21551 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
21552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
21553 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 21554 | ac_status=$? |
a82a04b3 CR |
21555 | grep -v '^ *+' conftest.er1 >conftest.err |
21556 | rm -f conftest.er1 | |
21557 | cat conftest.err >&5 | |
21558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 21559 | (exit $ac_status); } && |
a82a04b3 CR |
21560 | { ac_try='test -z "$ac_c_werror_flag" |
21561 | || test ! -s conftest.err' | |
21562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
21563 | (eval $ac_try) 2>&5 |
21564 | ac_status=$? | |
a82a04b3 CR |
21565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21566 | (exit $ac_status); }; } && | |
21567 | { ac_try='test -s conftest.$ac_objext' | |
21568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21569 | (eval $ac_try) 2>&5 | |
21570 | ac_status=$? | |
21571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 21572 | (exit $ac_status); }; }; then |
b72432fd JA |
21573 | ac_cv_type_bits64_t=yes |
21574 | else | |
f73dda09 | 21575 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
21576 | sed 's/^/| /' conftest.$ac_ext >&5 |
21577 | ||
f73dda09 | 21578 | ac_cv_type_bits64_t=no |
b72432fd | 21579 | fi |
a82a04b3 | 21580 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b72432fd | 21581 | fi |
a82a04b3 | 21582 | echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 |
f73dda09 JA |
21583 | echo "${ECHO_T}$ac_cv_type_bits64_t" >&6 |
21584 | if test $ac_cv_type_bits64_t = yes; then | |
21585 | : | |
21586 | else | |
21587 | ||
a82a04b3 | 21588 | cat >>confdefs.h <<_ACEOF |
b72432fd | 21589 | #define bits64_t char * |
a82a04b3 | 21590 | _ACEOF |
b72432fd JA |
21591 | |
21592 | fi | |
21593 | ||
21594 | elif test "$ac_cv_sizeof_double" = 8; then | |
a82a04b3 | 21595 | echo "$as_me:$LINENO: checking for bits64_t" >&5 |
f73dda09 JA |
21596 | echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6 |
21597 | if test "${ac_cv_type_bits64_t+set}" = set; then | |
21598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b72432fd | 21599 | else |
f73dda09 | 21600 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
21601 | /* confdefs.h. */ |
21602 | _ACEOF | |
21603 | cat confdefs.h >>conftest.$ac_ext | |
21604 | cat >>conftest.$ac_ext <<_ACEOF | |
21605 | /* end confdefs.h. */ | |
f73dda09 JA |
21606 | $ac_includes_default |
21607 | int | |
21608 | main () | |
21609 | { | |
21610 | if ((bits64_t *) 0) | |
21611 | return 0; | |
21612 | if (sizeof (bits64_t)) | |
21613 | return 0; | |
21614 | ; | |
21615 | return 0; | |
21616 | } | |
21617 | _ACEOF | |
21618 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
21619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
21620 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 21621 | ac_status=$? |
a82a04b3 CR |
21622 | grep -v '^ *+' conftest.er1 >conftest.err |
21623 | rm -f conftest.er1 | |
21624 | cat conftest.err >&5 | |
21625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 21626 | (exit $ac_status); } && |
a82a04b3 CR |
21627 | { ac_try='test -z "$ac_c_werror_flag" |
21628 | || test ! -s conftest.err' | |
21629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
21630 | (eval $ac_try) 2>&5 |
21631 | ac_status=$? | |
a82a04b3 CR |
21632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21633 | (exit $ac_status); }; } && | |
21634 | { ac_try='test -s conftest.$ac_objext' | |
21635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21636 | (eval $ac_try) 2>&5 | |
21637 | ac_status=$? | |
21638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 21639 | (exit $ac_status); }; }; then |
b72432fd | 21640 | ac_cv_type_bits64_t=yes |
cce855bc | 21641 | else |
f73dda09 | 21642 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
21643 | sed 's/^/| /' conftest.$ac_ext >&5 |
21644 | ||
f73dda09 | 21645 | ac_cv_type_bits64_t=no |
cce855bc | 21646 | fi |
a82a04b3 | 21647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cce855bc | 21648 | fi |
a82a04b3 | 21649 | echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 |
f73dda09 JA |
21650 | echo "${ECHO_T}$ac_cv_type_bits64_t" >&6 |
21651 | if test $ac_cv_type_bits64_t = yes; then | |
21652 | : | |
21653 | else | |
21654 | ||
a82a04b3 | 21655 | cat >>confdefs.h <<_ACEOF |
b72432fd | 21656 | #define bits64_t double |
a82a04b3 | 21657 | _ACEOF |
cce855bc JA |
21658 | |
21659 | fi | |
21660 | ||
f73dda09 | 21661 | elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then |
a82a04b3 | 21662 | echo "$as_me:$LINENO: checking for bits64_t" >&5 |
f73dda09 JA |
21663 | echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6 |
21664 | if test "${ac_cv_type_bits64_t+set}" = set; then | |
21665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b72432fd | 21666 | else |
f73dda09 | 21667 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
21668 | /* confdefs.h. */ |
21669 | _ACEOF | |
21670 | cat confdefs.h >>conftest.$ac_ext | |
21671 | cat >>conftest.$ac_ext <<_ACEOF | |
21672 | /* end confdefs.h. */ | |
f73dda09 JA |
21673 | $ac_includes_default |
21674 | int | |
21675 | main () | |
21676 | { | |
21677 | if ((bits64_t *) 0) | |
21678 | return 0; | |
21679 | if (sizeof (bits64_t)) | |
21680 | return 0; | |
21681 | ; | |
21682 | return 0; | |
21683 | } | |
21684 | _ACEOF | |
21685 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
21686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
21687 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 21688 | ac_status=$? |
a82a04b3 CR |
21689 | grep -v '^ *+' conftest.er1 >conftest.err |
21690 | rm -f conftest.er1 | |
21691 | cat conftest.err >&5 | |
21692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 21693 | (exit $ac_status); } && |
a82a04b3 CR |
21694 | { ac_try='test -z "$ac_c_werror_flag" |
21695 | || test ! -s conftest.err' | |
21696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
21697 | (eval $ac_try) 2>&5 |
21698 | ac_status=$? | |
a82a04b3 CR |
21699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21700 | (exit $ac_status); }; } && | |
21701 | { ac_try='test -s conftest.$ac_objext' | |
21702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21703 | (eval $ac_try) 2>&5 | |
21704 | ac_status=$? | |
21705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 21706 | (exit $ac_status); }; }; then |
b72432fd JA |
21707 | ac_cv_type_bits64_t=yes |
21708 | else | |
f73dda09 | 21709 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
21710 | sed 's/^/| /' conftest.$ac_ext >&5 |
21711 | ||
f73dda09 JA |
21712 | ac_cv_type_bits64_t=no |
21713 | fi | |
a82a04b3 | 21714 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 21715 | fi |
a82a04b3 | 21716 | echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 |
f73dda09 JA |
21717 | echo "${ECHO_T}$ac_cv_type_bits64_t" >&6 |
21718 | if test $ac_cv_type_bits64_t = yes; then | |
21719 | : | |
21720 | else | |
21721 | ||
a82a04b3 | 21722 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 21723 | #define bits64_t long long |
a82a04b3 | 21724 | _ACEOF |
f73dda09 | 21725 | |
cce855bc | 21726 | fi |
b72432fd | 21727 | |
f73dda09 | 21728 | elif test "$ac_cv_sizeof_long" = 8; then |
a82a04b3 | 21729 | echo "$as_me:$LINENO: checking for bits64_t" >&5 |
f73dda09 JA |
21730 | echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6 |
21731 | if test "${ac_cv_type_bits64_t+set}" = set; then | |
21732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21733 | else | |
21734 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
21735 | /* confdefs.h. */ |
21736 | _ACEOF | |
21737 | cat confdefs.h >>conftest.$ac_ext | |
21738 | cat >>conftest.$ac_ext <<_ACEOF | |
21739 | /* end confdefs.h. */ | |
f73dda09 JA |
21740 | $ac_includes_default |
21741 | int | |
21742 | main () | |
21743 | { | |
21744 | if ((bits64_t *) 0) | |
21745 | return 0; | |
21746 | if (sizeof (bits64_t)) | |
21747 | return 0; | |
21748 | ; | |
21749 | return 0; | |
21750 | } | |
21751 | _ACEOF | |
21752 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
21753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
21754 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 21755 | ac_status=$? |
a82a04b3 CR |
21756 | grep -v '^ *+' conftest.er1 >conftest.err |
21757 | rm -f conftest.er1 | |
21758 | cat conftest.err >&5 | |
21759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 21760 | (exit $ac_status); } && |
a82a04b3 CR |
21761 | { ac_try='test -z "$ac_c_werror_flag" |
21762 | || test ! -s conftest.err' | |
21763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
21764 | (eval $ac_try) 2>&5 |
21765 | ac_status=$? | |
a82a04b3 CR |
21766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21767 | (exit $ac_status); }; } && | |
21768 | { ac_try='test -s conftest.$ac_objext' | |
21769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21770 | (eval $ac_try) 2>&5 | |
21771 | ac_status=$? | |
21772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
21773 | (exit $ac_status); }; }; then |
21774 | ac_cv_type_bits64_t=yes | |
21775 | else | |
21776 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
21777 | sed 's/^/| /' conftest.$ac_ext >&5 |
21778 | ||
f73dda09 JA |
21779 | ac_cv_type_bits64_t=no |
21780 | fi | |
a82a04b3 | 21781 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b72432fd | 21782 | fi |
a82a04b3 | 21783 | echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 |
f73dda09 JA |
21784 | echo "${ECHO_T}$ac_cv_type_bits64_t" >&6 |
21785 | if test $ac_cv_type_bits64_t = yes; then | |
21786 | : | |
21787 | else | |
21788 | ||
a82a04b3 | 21789 | cat >>confdefs.h <<_ACEOF |
b72432fd | 21790 | #define bits64_t long |
a82a04b3 | 21791 | _ACEOF |
cce855bc | 21792 | |
b72432fd JA |
21793 | fi |
21794 | ||
cce855bc | 21795 | else |
a82a04b3 | 21796 | echo "$as_me:$LINENO: checking for bits64_t" >&5 |
f73dda09 JA |
21797 | echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6 |
21798 | if test "${ac_cv_type_bits64_t+set}" = set; then | |
21799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b72432fd | 21800 | else |
f73dda09 | 21801 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
21802 | /* confdefs.h. */ |
21803 | _ACEOF | |
21804 | cat confdefs.h >>conftest.$ac_ext | |
21805 | cat >>conftest.$ac_ext <<_ACEOF | |
21806 | /* end confdefs.h. */ | |
f73dda09 JA |
21807 | $ac_includes_default |
21808 | int | |
21809 | main () | |
21810 | { | |
21811 | if ((bits64_t *) 0) | |
21812 | return 0; | |
21813 | if (sizeof (bits64_t)) | |
21814 | return 0; | |
21815 | ; | |
21816 | return 0; | |
21817 | } | |
21818 | _ACEOF | |
21819 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
21820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
21821 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 21822 | ac_status=$? |
a82a04b3 CR |
21823 | grep -v '^ *+' conftest.er1 >conftest.err |
21824 | rm -f conftest.er1 | |
21825 | cat conftest.err >&5 | |
21826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 21827 | (exit $ac_status); } && |
a82a04b3 CR |
21828 | { ac_try='test -z "$ac_c_werror_flag" |
21829 | || test ! -s conftest.err' | |
21830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
21831 | (eval $ac_try) 2>&5 |
21832 | ac_status=$? | |
a82a04b3 CR |
21833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21834 | (exit $ac_status); }; } && | |
21835 | { ac_try='test -s conftest.$ac_objext' | |
21836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21837 | (eval $ac_try) 2>&5 | |
21838 | ac_status=$? | |
21839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 21840 | (exit $ac_status); }; }; then |
b72432fd JA |
21841 | ac_cv_type_bits64_t=yes |
21842 | else | |
f73dda09 | 21843 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
21844 | sed 's/^/| /' conftest.$ac_ext >&5 |
21845 | ||
f73dda09 | 21846 | ac_cv_type_bits64_t=no |
b72432fd | 21847 | fi |
a82a04b3 | 21848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b72432fd | 21849 | fi |
a82a04b3 | 21850 | echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 |
f73dda09 JA |
21851 | echo "${ECHO_T}$ac_cv_type_bits64_t" >&6 |
21852 | if test $ac_cv_type_bits64_t = yes; then | |
21853 | : | |
21854 | else | |
21855 | ||
a82a04b3 | 21856 | cat >>confdefs.h <<_ACEOF |
b72432fd | 21857 | #define bits64_t double |
a82a04b3 | 21858 | _ACEOF |
cce855bc JA |
21859 | |
21860 | fi | |
21861 | ||
21862 | fi | |
21863 | ||
a82a04b3 CR |
21864 | |
21865 | ||
bb70624e | 21866 | if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then |
a82a04b3 | 21867 | echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
f73dda09 JA |
21868 | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6 |
21869 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then | |
21870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bb70624e | 21871 | else |
f73dda09 | 21872 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
21873 | /* confdefs.h. */ |
21874 | _ACEOF | |
21875 | cat confdefs.h >>conftest.$ac_ext | |
21876 | cat >>conftest.$ac_ext <<_ACEOF | |
21877 | /* end confdefs.h. */ | |
f73dda09 JA |
21878 | $ac_includes_default |
21879 | int | |
21880 | main () | |
21881 | { | |
21882 | if ((ptrdiff_t *) 0) | |
21883 | return 0; | |
21884 | if (sizeof (ptrdiff_t)) | |
21885 | return 0; | |
21886 | ; | |
21887 | return 0; | |
21888 | } | |
21889 | _ACEOF | |
21890 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
21891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
21892 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 21893 | ac_status=$? |
a82a04b3 CR |
21894 | grep -v '^ *+' conftest.er1 >conftest.err |
21895 | rm -f conftest.er1 | |
21896 | cat conftest.err >&5 | |
21897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 21898 | (exit $ac_status); } && |
a82a04b3 CR |
21899 | { ac_try='test -z "$ac_c_werror_flag" |
21900 | || test ! -s conftest.err' | |
21901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21902 | (eval $ac_try) 2>&5 | |
21903 | ac_status=$? | |
21904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21905 | (exit $ac_status); }; } && | |
21906 | { ac_try='test -s conftest.$ac_objext' | |
21907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
21908 | (eval $ac_try) 2>&5 |
21909 | ac_status=$? | |
a82a04b3 | 21910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 21911 | (exit $ac_status); }; }; then |
bb70624e JA |
21912 | ac_cv_type_ptrdiff_t=yes |
21913 | else | |
f73dda09 | 21914 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
21915 | sed 's/^/| /' conftest.$ac_ext >&5 |
21916 | ||
f73dda09 | 21917 | ac_cv_type_ptrdiff_t=no |
bb70624e | 21918 | fi |
a82a04b3 | 21919 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bb70624e | 21920 | fi |
a82a04b3 | 21921 | echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
f73dda09 JA |
21922 | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6 |
21923 | if test $ac_cv_type_ptrdiff_t = yes; then | |
21924 | : | |
21925 | else | |
21926 | ||
a82a04b3 | 21927 | cat >>confdefs.h <<_ACEOF |
bb70624e | 21928 | #define ptrdiff_t int |
a82a04b3 | 21929 | _ACEOF |
bb70624e JA |
21930 | |
21931 | fi | |
21932 | ||
21933 | elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then | |
a82a04b3 | 21934 | echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
f73dda09 JA |
21935 | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6 |
21936 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then | |
21937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bb70624e | 21938 | else |
f73dda09 | 21939 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
21940 | /* confdefs.h. */ |
21941 | _ACEOF | |
21942 | cat confdefs.h >>conftest.$ac_ext | |
21943 | cat >>conftest.$ac_ext <<_ACEOF | |
21944 | /* end confdefs.h. */ | |
f73dda09 JA |
21945 | $ac_includes_default |
21946 | int | |
21947 | main () | |
21948 | { | |
21949 | if ((ptrdiff_t *) 0) | |
21950 | return 0; | |
21951 | if (sizeof (ptrdiff_t)) | |
21952 | return 0; | |
21953 | ; | |
21954 | return 0; | |
21955 | } | |
21956 | _ACEOF | |
21957 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
21958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
21959 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 21960 | ac_status=$? |
a82a04b3 CR |
21961 | grep -v '^ *+' conftest.er1 >conftest.err |
21962 | rm -f conftest.er1 | |
21963 | cat conftest.err >&5 | |
21964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 21965 | (exit $ac_status); } && |
a82a04b3 CR |
21966 | { ac_try='test -z "$ac_c_werror_flag" |
21967 | || test ! -s conftest.err' | |
21968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21969 | (eval $ac_try) 2>&5 | |
21970 | ac_status=$? | |
21971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21972 | (exit $ac_status); }; } && | |
21973 | { ac_try='test -s conftest.$ac_objext' | |
21974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
21975 | (eval $ac_try) 2>&5 |
21976 | ac_status=$? | |
a82a04b3 | 21977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 21978 | (exit $ac_status); }; }; then |
bb70624e JA |
21979 | ac_cv_type_ptrdiff_t=yes |
21980 | else | |
f73dda09 | 21981 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
21982 | sed 's/^/| /' conftest.$ac_ext >&5 |
21983 | ||
f73dda09 | 21984 | ac_cv_type_ptrdiff_t=no |
bb70624e | 21985 | fi |
a82a04b3 | 21986 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bb70624e | 21987 | fi |
a82a04b3 | 21988 | echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
f73dda09 JA |
21989 | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6 |
21990 | if test $ac_cv_type_ptrdiff_t = yes; then | |
21991 | : | |
21992 | else | |
21993 | ||
a82a04b3 | 21994 | cat >>confdefs.h <<_ACEOF |
bb70624e | 21995 | #define ptrdiff_t long |
a82a04b3 | 21996 | _ACEOF |
bb70624e JA |
21997 | |
21998 | fi | |
21999 | ||
f73dda09 | 22000 | elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then |
a82a04b3 | 22001 | echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
f73dda09 JA |
22002 | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6 |
22003 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then | |
22004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bb70624e | 22005 | else |
f73dda09 | 22006 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
22007 | /* confdefs.h. */ |
22008 | _ACEOF | |
22009 | cat confdefs.h >>conftest.$ac_ext | |
22010 | cat >>conftest.$ac_ext <<_ACEOF | |
22011 | /* end confdefs.h. */ | |
f73dda09 JA |
22012 | $ac_includes_default |
22013 | int | |
22014 | main () | |
22015 | { | |
22016 | if ((ptrdiff_t *) 0) | |
22017 | return 0; | |
22018 | if (sizeof (ptrdiff_t)) | |
22019 | return 0; | |
22020 | ; | |
22021 | return 0; | |
22022 | } | |
22023 | _ACEOF | |
22024 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
22025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
22026 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 22027 | ac_status=$? |
a82a04b3 CR |
22028 | grep -v '^ *+' conftest.er1 >conftest.err |
22029 | rm -f conftest.er1 | |
22030 | cat conftest.err >&5 | |
22031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 22032 | (exit $ac_status); } && |
a82a04b3 CR |
22033 | { ac_try='test -z "$ac_c_werror_flag" |
22034 | || test ! -s conftest.err' | |
22035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22036 | (eval $ac_try) 2>&5 | |
22037 | ac_status=$? | |
22038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22039 | (exit $ac_status); }; } && | |
22040 | { ac_try='test -s conftest.$ac_objext' | |
22041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
22042 | (eval $ac_try) 2>&5 |
22043 | ac_status=$? | |
a82a04b3 | 22044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 22045 | (exit $ac_status); }; }; then |
bb70624e JA |
22046 | ac_cv_type_ptrdiff_t=yes |
22047 | else | |
f73dda09 | 22048 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
22049 | sed 's/^/| /' conftest.$ac_ext >&5 |
22050 | ||
f73dda09 JA |
22051 | ac_cv_type_ptrdiff_t=no |
22052 | fi | |
a82a04b3 | 22053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 22054 | fi |
a82a04b3 | 22055 | echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
f73dda09 JA |
22056 | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6 |
22057 | if test $ac_cv_type_ptrdiff_t = yes; then | |
22058 | : | |
22059 | else | |
22060 | ||
a82a04b3 | 22061 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 22062 | #define ptrdiff_t long long |
a82a04b3 | 22063 | _ACEOF |
f73dda09 | 22064 | |
bb70624e | 22065 | fi |
bb70624e | 22066 | |
f73dda09 | 22067 | else |
a82a04b3 | 22068 | echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
f73dda09 JA |
22069 | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6 |
22070 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then | |
22071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22072 | else | |
22073 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
22074 | /* confdefs.h. */ |
22075 | _ACEOF | |
22076 | cat confdefs.h >>conftest.$ac_ext | |
22077 | cat >>conftest.$ac_ext <<_ACEOF | |
22078 | /* end confdefs.h. */ | |
f73dda09 JA |
22079 | $ac_includes_default |
22080 | int | |
22081 | main () | |
22082 | { | |
22083 | if ((ptrdiff_t *) 0) | |
22084 | return 0; | |
22085 | if (sizeof (ptrdiff_t)) | |
22086 | return 0; | |
22087 | ; | |
22088 | return 0; | |
22089 | } | |
22090 | _ACEOF | |
22091 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
22092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
22093 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 22094 | ac_status=$? |
a82a04b3 CR |
22095 | grep -v '^ *+' conftest.er1 >conftest.err |
22096 | rm -f conftest.er1 | |
22097 | cat conftest.err >&5 | |
22098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 22099 | (exit $ac_status); } && |
a82a04b3 CR |
22100 | { ac_try='test -z "$ac_c_werror_flag" |
22101 | || test ! -s conftest.err' | |
22102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22103 | (eval $ac_try) 2>&5 | |
22104 | ac_status=$? | |
22105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22106 | (exit $ac_status); }; } && | |
22107 | { ac_try='test -s conftest.$ac_objext' | |
22108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
22109 | (eval $ac_try) 2>&5 |
22110 | ac_status=$? | |
a82a04b3 | 22111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
22112 | (exit $ac_status); }; }; then |
22113 | ac_cv_type_ptrdiff_t=yes | |
22114 | else | |
22115 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
22116 | sed 's/^/| /' conftest.$ac_ext >&5 |
22117 | ||
f73dda09 | 22118 | ac_cv_type_ptrdiff_t=no |
bb70624e | 22119 | fi |
a82a04b3 | 22120 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 22121 | fi |
a82a04b3 | 22122 | echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
f73dda09 JA |
22123 | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6 |
22124 | if test $ac_cv_type_ptrdiff_t = yes; then | |
22125 | : | |
22126 | else | |
22127 | ||
a82a04b3 | 22128 | cat >>confdefs.h <<_ACEOF |
bb70624e | 22129 | #define ptrdiff_t int |
a82a04b3 | 22130 | _ACEOF |
bb70624e JA |
22131 | |
22132 | fi | |
22133 | ||
22134 | fi | |
22135 | ||
a82a04b3 CR |
22136 | |
22137 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 | |
f73dda09 JA |
22138 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
22139 | if test "${ac_cv_header_stat_broken+set}" = set; then | |
22140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 22141 | else |
f73dda09 | 22142 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
22143 | /* confdefs.h. */ |
22144 | _ACEOF | |
22145 | cat confdefs.h >>conftest.$ac_ext | |
22146 | cat >>conftest.$ac_ext <<_ACEOF | |
22147 | /* end confdefs.h. */ | |
ccc6cda3 JA |
22148 | #include <sys/types.h> |
22149 | #include <sys/stat.h> | |
22150 | ||
22151 | #if defined(S_ISBLK) && defined(S_IFDIR) | |
22152 | # if S_ISBLK (S_IFDIR) | |
22153 | You lose. | |
22154 | # endif | |
22155 | #endif | |
22156 | ||
22157 | #if defined(S_ISBLK) && defined(S_IFCHR) | |
22158 | # if S_ISBLK (S_IFCHR) | |
22159 | You lose. | |
22160 | # endif | |
22161 | #endif | |
22162 | ||
22163 | #if defined(S_ISLNK) && defined(S_IFREG) | |
22164 | # if S_ISLNK (S_IFREG) | |
22165 | You lose. | |
22166 | # endif | |
22167 | #endif | |
22168 | ||
22169 | #if defined(S_ISSOCK) && defined(S_IFREG) | |
22170 | # if S_ISSOCK (S_IFREG) | |
22171 | You lose. | |
f73dda09 JA |
22172 | # endif |
22173 | #endif | |
22174 | ||
22175 | _ACEOF | |
22176 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
a82a04b3 | 22177 | $EGREP "You lose" >/dev/null 2>&1; then |
f73dda09 | 22178 | ac_cv_header_stat_broken=yes |
ccc6cda3 | 22179 | else |
f73dda09 | 22180 | ac_cv_header_stat_broken=no |
ccc6cda3 JA |
22181 | fi |
22182 | rm -f conftest* | |
ccc6cda3 JA |
22183 | |
22184 | fi | |
a82a04b3 | 22185 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
f73dda09 JA |
22186 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
22187 | if test $ac_cv_header_stat_broken = yes; then | |
ccc6cda3 | 22188 | |
a82a04b3 | 22189 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 22190 | #define STAT_MACROS_BROKEN 1 |
a82a04b3 | 22191 | _ACEOF |
ccc6cda3 JA |
22192 | |
22193 | fi | |
22194 | ||
a82a04b3 CR |
22195 | |
22196 | echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5 | |
f73dda09 JA |
22197 | echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6 |
22198 | if test "${ac_cv_sys_interpreter+set}" = set; then | |
22199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 JA |
22200 | else |
22201 | echo '#! /bin/cat | |
22202 | exit 69 | |
f73dda09 | 22203 | ' >conftest |
ccc6cda3 JA |
22204 | chmod u+x conftest |
22205 | (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null) | |
22206 | if test $? -ne 69; then | |
22207 | ac_cv_sys_interpreter=yes | |
22208 | else | |
22209 | ac_cv_sys_interpreter=no | |
22210 | fi | |
22211 | rm -f conftest | |
22212 | fi | |
a82a04b3 | 22213 | echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5 |
f73dda09 JA |
22214 | echo "${ECHO_T}$ac_cv_sys_interpreter" >&6 |
22215 | interpval=$ac_cv_sys_interpreter | |
ccc6cda3 JA |
22216 | |
22217 | if test $ac_cv_sys_interpreter = yes; then | |
a82a04b3 | 22218 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 22219 | #define HAVE_HASH_BANG_EXEC 1 |
a82a04b3 | 22220 | _ACEOF |
ccc6cda3 | 22221 | |
ccc6cda3 JA |
22222 | fi |
22223 | ||
ccc6cda3 | 22224 | if test "$ac_cv_func_lstat" = "no"; then |
a82a04b3 | 22225 | echo "$as_me:$LINENO: checking for lstat" >&5 |
f73dda09 JA |
22226 | echo $ECHO_N "checking for lstat... $ECHO_C" >&6 |
22227 | if test "${bash_cv_func_lstat+set}" = set; then | |
22228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 22229 | else |
f73dda09 | 22230 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
22231 | /* confdefs.h. */ |
22232 | _ACEOF | |
22233 | cat confdefs.h >>conftest.$ac_ext | |
22234 | cat >>conftest.$ac_ext <<_ACEOF | |
22235 | /* end confdefs.h. */ | |
ccc6cda3 JA |
22236 | |
22237 | #include <sys/types.h> | |
22238 | #include <sys/stat.h> | |
22239 | ||
f73dda09 JA |
22240 | int |
22241 | main () | |
22242 | { | |
22243 | lstat(".",(struct stat *)0); | |
22244 | ; | |
22245 | return 0; | |
22246 | } | |
22247 | _ACEOF | |
22248 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
22249 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22250 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 22251 | ac_status=$? |
a82a04b3 CR |
22252 | grep -v '^ *+' conftest.er1 >conftest.err |
22253 | rm -f conftest.er1 | |
22254 | cat conftest.err >&5 | |
22255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 22256 | (exit $ac_status); } && |
a82a04b3 CR |
22257 | { ac_try='test -z "$ac_c_werror_flag" |
22258 | || test ! -s conftest.err' | |
22259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22260 | (eval $ac_try) 2>&5 | |
22261 | ac_status=$? | |
22262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22263 | (exit $ac_status); }; } && | |
22264 | { ac_try='test -s conftest$ac_exeext' | |
22265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
22266 | (eval $ac_try) 2>&5 |
22267 | ac_status=$? | |
a82a04b3 | 22268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 22269 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
22270 | bash_cv_func_lstat=yes |
22271 | else | |
f73dda09 | 22272 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
22273 | sed 's/^/| /' conftest.$ac_ext >&5 |
22274 | ||
f73dda09 | 22275 | bash_cv_func_lstat=no |
ccc6cda3 | 22276 | fi |
a82a04b3 CR |
22277 | rm -f conftest.err conftest.$ac_objext \ |
22278 | conftest$ac_exeext conftest.$ac_ext | |
ccc6cda3 | 22279 | fi |
a82a04b3 | 22280 | echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5 |
f73dda09 | 22281 | echo "${ECHO_T}$bash_cv_func_lstat" >&6 |
ccc6cda3 | 22282 | if test $bash_cv_func_lstat = yes; then |
a82a04b3 | 22283 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 22284 | #define HAVE_LSTAT 1 |
a82a04b3 | 22285 | _ACEOF |
ccc6cda3 JA |
22286 | |
22287 | fi | |
22288 | ||
22289 | fi | |
22290 | ||
a82a04b3 CR |
22291 | |
22292 | echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5 | |
d3a24ed2 CR |
22293 | echo $ECHO_N "checking whether the ctype macros accept non-ascii characters... $ECHO_C" >&6 |
22294 | if test "${bash_cv_func_ctype_nonascii+set}" = set; then | |
22295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22296 | else | |
22297 | if test "$cross_compiling" = yes; then | |
a82a04b3 | 22298 | { echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5 |
d3a24ed2 CR |
22299 | echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;} |
22300 | bash_cv_func_ctype_nonascii=no | |
22301 | ||
22302 | else | |
22303 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
22304 | /* confdefs.h. */ |
22305 | _ACEOF | |
22306 | cat confdefs.h >>conftest.$ac_ext | |
22307 | cat >>conftest.$ac_ext <<_ACEOF | |
22308 | /* end confdefs.h. */ | |
d3a24ed2 CR |
22309 | |
22310 | #ifdef HAVE_LOCALE_H | |
22311 | #include <locale.h> | |
22312 | #endif | |
22313 | #include <stdio.h> | |
22314 | #include <ctype.h> | |
22315 | ||
22316 | main(c, v) | |
22317 | int c; | |
22318 | char *v[]; | |
22319 | { | |
22320 | char *deflocale; | |
22321 | unsigned char x; | |
22322 | int r1, r2; | |
22323 | ||
22324 | #ifdef HAVE_SETLOCALE | |
22325 | /* We take a shot here. If that locale is not known, try the | |
22326 | system default. We try this one because '\342' (226) is | |
22327 | known to be a printable character in that locale. */ | |
22328 | deflocale = setlocale(LC_ALL, "en_US.ISO8859-1"); | |
22329 | if (deflocale == 0) | |
22330 | deflocale = setlocale(LC_ALL, ""); | |
22331 | #endif | |
22332 | ||
22333 | x = '\342'; | |
22334 | r1 = isprint(x); | |
22335 | x -= 128; | |
22336 | r2 = isprint(x); | |
22337 | exit (r1 == 0 || r2 == 0); | |
22338 | } | |
22339 | ||
22340 | _ACEOF | |
22341 | rm -f conftest$ac_exeext | |
a82a04b3 | 22342 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
d3a24ed2 CR |
22343 | (eval $ac_link) 2>&5 |
22344 | ac_status=$? | |
a82a04b3 | 22345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d3a24ed2 | 22346 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 22347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
d3a24ed2 CR |
22348 | (eval $ac_try) 2>&5 |
22349 | ac_status=$? | |
a82a04b3 | 22350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d3a24ed2 CR |
22351 | (exit $ac_status); }; }; then |
22352 | bash_cv_func_ctype_nonascii=yes | |
22353 | else | |
22354 | echo "$as_me: program exited with status $ac_status" >&5 | |
22355 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
22356 | sed 's/^/| /' conftest.$ac_ext >&5 |
22357 | ||
22358 | ( exit $ac_status ) | |
d3a24ed2 CR |
22359 | bash_cv_func_ctype_nonascii=no |
22360 | fi | |
a82a04b3 | 22361 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d3a24ed2 CR |
22362 | fi |
22363 | fi | |
22364 | ||
a82a04b3 | 22365 | echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5 |
d3a24ed2 CR |
22366 | echo "${ECHO_T}$bash_cv_func_ctype_nonascii" >&6 |
22367 | if test $bash_cv_func_ctype_nonascii = yes; then | |
a82a04b3 | 22368 | cat >>confdefs.h <<\_ACEOF |
d3a24ed2 | 22369 | #define CTYPE_NON_ASCII 1 |
a82a04b3 | 22370 | _ACEOF |
d3a24ed2 CR |
22371 | |
22372 | fi | |
22373 | ||
a82a04b3 | 22374 | echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5 |
f73dda09 JA |
22375 | echo $ECHO_N "checking if dup2 fails to clear the close-on-exec flag... $ECHO_C" >&6 |
22376 | if test "${bash_cv_dup2_broken+set}" = set; then | |
22377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 JA |
22378 | else |
22379 | if test "$cross_compiling" = yes; then | |
a82a04b3 | 22380 | { echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5 |
f73dda09 | 22381 | echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;} |
cce855bc | 22382 | bash_cv_dup2_broken=no |
ccc6cda3 | 22383 | else |
f73dda09 | 22384 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
22385 | /* confdefs.h. */ |
22386 | _ACEOF | |
22387 | cat confdefs.h >>conftest.$ac_ext | |
22388 | cat >>conftest.$ac_ext <<_ACEOF | |
22389 | /* end confdefs.h. */ | |
ccc6cda3 JA |
22390 | |
22391 | #include <sys/types.h> | |
22392 | #include <fcntl.h> | |
22393 | main() | |
22394 | { | |
22395 | int fd1, fd2, fl; | |
22396 | fd1 = open("/dev/null", 2); | |
22397 | if (fcntl(fd1, 2, 1) < 0) | |
22398 | exit(1); | |
22399 | fd2 = dup2(fd1, 1); | |
22400 | if (fd2 < 0) | |
22401 | exit(2); | |
22402 | fl = fcntl(fd2, 1, 0); | |
22403 | /* fl will be 1 if dup2 did not reset the close-on-exec flag. */ | |
22404 | exit(fl != 1); | |
22405 | } | |
22406 | ||
f73dda09 JA |
22407 | _ACEOF |
22408 | rm -f conftest$ac_exeext | |
a82a04b3 | 22409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
22410 | (eval $ac_link) 2>&5 |
22411 | ac_status=$? | |
a82a04b3 | 22412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 22413 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 22414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
22415 | (eval $ac_try) 2>&5 |
22416 | ac_status=$? | |
a82a04b3 | 22417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 22418 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
22419 | bash_cv_dup2_broken=yes |
22420 | else | |
f73dda09 JA |
22421 | echo "$as_me: program exited with status $ac_status" >&5 |
22422 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
22423 | sed 's/^/| /' conftest.$ac_ext >&5 |
22424 | ||
22425 | ( exit $ac_status ) | |
f73dda09 | 22426 | bash_cv_dup2_broken=no |
ccc6cda3 | 22427 | fi |
a82a04b3 | 22428 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 JA |
22429 | fi |
22430 | ||
ccc6cda3 JA |
22431 | fi |
22432 | ||
a82a04b3 | 22433 | echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5 |
f73dda09 | 22434 | echo "${ECHO_T}$bash_cv_dup2_broken" >&6 |
ccc6cda3 | 22435 | if test $bash_cv_dup2_broken = yes; then |
a82a04b3 | 22436 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 22437 | #define DUP2_BROKEN 1 |
a82a04b3 | 22438 | _ACEOF |
ccc6cda3 JA |
22439 | |
22440 | fi | |
22441 | ||
a82a04b3 CR |
22442 | |
22443 | echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5 | |
f73dda09 JA |
22444 | echo $ECHO_N "checking whether pgrps need synchronization... $ECHO_C" >&6 |
22445 | if test "${bash_cv_pgrp_pipe+set}" = set; then | |
22446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 JA |
22447 | else |
22448 | if test "$cross_compiling" = yes; then | |
a82a04b3 | 22449 | { echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5 |
f73dda09 | 22450 | echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;} |
cce855bc | 22451 | bash_cv_pgrp_pipe=no |
ccc6cda3 | 22452 | else |
f73dda09 | 22453 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
22454 | /* confdefs.h. */ |
22455 | _ACEOF | |
22456 | cat confdefs.h >>conftest.$ac_ext | |
22457 | cat >>conftest.$ac_ext <<_ACEOF | |
22458 | /* end confdefs.h. */ | |
ccc6cda3 JA |
22459 | |
22460 | #ifdef HAVE_UNISTD_H | |
22461 | # include <unistd.h> | |
22462 | #endif | |
22463 | main() | |
22464 | { | |
22465 | # ifdef GETPGRP_VOID | |
22466 | # define getpgID() getpgrp() | |
22467 | # else | |
22468 | # define getpgID() getpgrp(0) | |
22469 | # define setpgid(x,y) setpgrp(x,y) | |
22470 | # endif | |
22471 | int pid1, pid2, fds[2]; | |
22472 | int status; | |
22473 | char ok; | |
22474 | ||
22475 | switch (pid1 = fork()) { | |
22476 | case -1: | |
22477 | exit(1); | |
22478 | case 0: | |
22479 | setpgid(0, getpid()); | |
22480 | exit(0); | |
22481 | } | |
22482 | setpgid(pid1, pid1); | |
22483 | ||
22484 | sleep(2); /* let first child die */ | |
22485 | ||
22486 | if (pipe(fds) < 0) | |
22487 | exit(2); | |
22488 | ||
22489 | switch (pid2 = fork()) { | |
22490 | case -1: | |
22491 | exit(3); | |
22492 | case 0: | |
22493 | setpgid(0, pid1); | |
22494 | ok = getpgID() == pid1; | |
22495 | write(fds[1], &ok, 1); | |
22496 | exit(0); | |
22497 | } | |
22498 | setpgid(pid2, pid1); | |
22499 | ||
22500 | close(fds[1]); | |
22501 | if (read(fds[0], &ok, 1) != 1) | |
22502 | exit(4); | |
22503 | wait(&status); | |
22504 | wait(&status); | |
22505 | exit(ok ? 0 : 5); | |
22506 | } | |
22507 | ||
f73dda09 JA |
22508 | _ACEOF |
22509 | rm -f conftest$ac_exeext | |
a82a04b3 | 22510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
22511 | (eval $ac_link) 2>&5 |
22512 | ac_status=$? | |
a82a04b3 | 22513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 22514 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 22515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
22516 | (eval $ac_try) 2>&5 |
22517 | ac_status=$? | |
a82a04b3 | 22518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 22519 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
22520 | bash_cv_pgrp_pipe=no |
22521 | else | |
f73dda09 JA |
22522 | echo "$as_me: program exited with status $ac_status" >&5 |
22523 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
22524 | sed 's/^/| /' conftest.$ac_ext >&5 |
22525 | ||
22526 | ( exit $ac_status ) | |
f73dda09 | 22527 | bash_cv_pgrp_pipe=yes |
ccc6cda3 | 22528 | fi |
a82a04b3 | 22529 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 JA |
22530 | fi |
22531 | ||
ccc6cda3 JA |
22532 | fi |
22533 | ||
a82a04b3 | 22534 | echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5 |
f73dda09 | 22535 | echo "${ECHO_T}$bash_cv_pgrp_pipe" >&6 |
ccc6cda3 | 22536 | if test $bash_cv_pgrp_pipe = yes; then |
a82a04b3 | 22537 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 22538 | #define PGRP_PIPE 1 |
a82a04b3 | 22539 | _ACEOF |
ccc6cda3 JA |
22540 | |
22541 | fi | |
22542 | ||
a82a04b3 CR |
22543 | |
22544 | echo "$as_me:$LINENO: checking for type of signal functions" >&5 | |
f73dda09 JA |
22545 | echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6 |
22546 | if test "${bash_cv_signal_vintage+set}" = set; then | |
22547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 22548 | else |
f73dda09 JA |
22549 | |
22550 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
22551 | /* confdefs.h. */ |
22552 | _ACEOF | |
22553 | cat confdefs.h >>conftest.$ac_ext | |
22554 | cat >>conftest.$ac_ext <<_ACEOF | |
22555 | /* end confdefs.h. */ | |
d166f048 | 22556 | #include <signal.h> |
f73dda09 JA |
22557 | int |
22558 | main () | |
22559 | { | |
d166f048 JA |
22560 | |
22561 | sigset_t ss; | |
22562 | struct sigaction sa; | |
22563 | sigemptyset(&ss); sigsuspend(&ss); | |
22564 | sigaction(SIGINT, &sa, (struct sigaction *) 0); | |
22565 | sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0); | |
f73dda09 JA |
22566 | |
22567 | ; | |
22568 | return 0; | |
22569 | } | |
22570 | _ACEOF | |
22571 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
22572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22573 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 22574 | ac_status=$? |
a82a04b3 CR |
22575 | grep -v '^ *+' conftest.er1 >conftest.err |
22576 | rm -f conftest.er1 | |
22577 | cat conftest.err >&5 | |
22578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 22579 | (exit $ac_status); } && |
a82a04b3 CR |
22580 | { ac_try='test -z "$ac_c_werror_flag" |
22581 | || test ! -s conftest.err' | |
22582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22583 | (eval $ac_try) 2>&5 | |
22584 | ac_status=$? | |
22585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22586 | (exit $ac_status); }; } && | |
22587 | { ac_try='test -s conftest$ac_exeext' | |
22588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
22589 | (eval $ac_try) 2>&5 |
22590 | ac_status=$? | |
a82a04b3 | 22591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 22592 | (exit $ac_status); }; }; then |
d166f048 | 22593 | bash_cv_signal_vintage=posix |
ccc6cda3 | 22594 | else |
f73dda09 | 22595 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
22596 | sed 's/^/| /' conftest.$ac_ext >&5 |
22597 | ||
f73dda09 JA |
22598 | |
22599 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
22600 | /* confdefs.h. */ |
22601 | _ACEOF | |
22602 | cat confdefs.h >>conftest.$ac_ext | |
22603 | cat >>conftest.$ac_ext <<_ACEOF | |
22604 | /* end confdefs.h. */ | |
d166f048 | 22605 | #include <signal.h> |
f73dda09 JA |
22606 | int |
22607 | main () | |
22608 | { | |
d166f048 JA |
22609 | |
22610 | int mask = sigmask(SIGINT); | |
22611 | sigsetmask(mask); sigblock(mask); sigpause(mask); | |
f73dda09 JA |
22612 | |
22613 | ; | |
22614 | return 0; | |
22615 | } | |
22616 | _ACEOF | |
22617 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
22618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22619 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 22620 | ac_status=$? |
a82a04b3 CR |
22621 | grep -v '^ *+' conftest.er1 >conftest.err |
22622 | rm -f conftest.er1 | |
22623 | cat conftest.err >&5 | |
22624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 22625 | (exit $ac_status); } && |
a82a04b3 CR |
22626 | { ac_try='test -z "$ac_c_werror_flag" |
22627 | || test ! -s conftest.err' | |
22628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22629 | (eval $ac_try) 2>&5 | |
22630 | ac_status=$? | |
22631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22632 | (exit $ac_status); }; } && | |
22633 | { ac_try='test -s conftest$ac_exeext' | |
22634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
22635 | (eval $ac_try) 2>&5 |
22636 | ac_status=$? | |
a82a04b3 | 22637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 22638 | (exit $ac_status); }; }; then |
d166f048 JA |
22639 | bash_cv_signal_vintage=4.2bsd |
22640 | else | |
f73dda09 | 22641 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
22642 | sed 's/^/| /' conftest.$ac_ext >&5 |
22643 | ||
f73dda09 JA |
22644 | |
22645 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
22646 | /* confdefs.h. */ |
22647 | _ACEOF | |
22648 | cat confdefs.h >>conftest.$ac_ext | |
22649 | cat >>conftest.$ac_ext <<_ACEOF | |
22650 | /* end confdefs.h. */ | |
d166f048 JA |
22651 | |
22652 | #include <signal.h> | |
22653 | RETSIGTYPE foo() { } | |
f73dda09 JA |
22654 | int |
22655 | main () | |
22656 | { | |
d166f048 JA |
22657 | |
22658 | int mask = sigmask(SIGINT); | |
22659 | sigset(SIGINT, foo); sigrelse(SIGINT); | |
22660 | sighold(SIGINT); sigpause(SIGINT); | |
f73dda09 JA |
22661 | |
22662 | ; | |
22663 | return 0; | |
22664 | } | |
22665 | _ACEOF | |
22666 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
22667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22668 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 22669 | ac_status=$? |
a82a04b3 CR |
22670 | grep -v '^ *+' conftest.er1 >conftest.err |
22671 | rm -f conftest.er1 | |
22672 | cat conftest.err >&5 | |
22673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 22674 | (exit $ac_status); } && |
a82a04b3 CR |
22675 | { ac_try='test -z "$ac_c_werror_flag" |
22676 | || test ! -s conftest.err' | |
22677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22678 | (eval $ac_try) 2>&5 | |
22679 | ac_status=$? | |
22680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22681 | (exit $ac_status); }; } && | |
22682 | { ac_try='test -s conftest$ac_exeext' | |
22683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
22684 | (eval $ac_try) 2>&5 |
22685 | ac_status=$? | |
a82a04b3 | 22686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 22687 | (exit $ac_status); }; }; then |
d166f048 JA |
22688 | bash_cv_signal_vintage=svr3 |
22689 | else | |
f73dda09 | 22690 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
22691 | sed 's/^/| /' conftest.$ac_ext >&5 |
22692 | ||
f73dda09 JA |
22693 | bash_cv_signal_vintage=v7 |
22694 | ||
d166f048 | 22695 | fi |
a82a04b3 CR |
22696 | rm -f conftest.err conftest.$ac_objext \ |
22697 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 | 22698 | |
d166f048 | 22699 | fi |
a82a04b3 CR |
22700 | rm -f conftest.err conftest.$ac_objext \ |
22701 | conftest$ac_exeext conftest.$ac_ext | |
d166f048 JA |
22702 | |
22703 | fi | |
a82a04b3 CR |
22704 | rm -f conftest.err conftest.$ac_objext \ |
22705 | conftest$ac_exeext conftest.$ac_ext | |
d166f048 JA |
22706 | |
22707 | fi | |
22708 | ||
a82a04b3 | 22709 | echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5 |
f73dda09 | 22710 | echo "${ECHO_T}$bash_cv_signal_vintage" >&6 |
d166f048 | 22711 | if test "$bash_cv_signal_vintage" = posix; then |
a82a04b3 | 22712 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 22713 | #define HAVE_POSIX_SIGNALS 1 |
a82a04b3 | 22714 | _ACEOF |
d166f048 JA |
22715 | |
22716 | elif test "$bash_cv_signal_vintage" = "4.2bsd"; then | |
a82a04b3 | 22717 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 22718 | #define HAVE_BSD_SIGNALS 1 |
a82a04b3 | 22719 | _ACEOF |
d166f048 JA |
22720 | |
22721 | elif test "$bash_cv_signal_vintage" = svr3; then | |
a82a04b3 | 22722 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 22723 | #define HAVE_USG_SIGHOLD 1 |
a82a04b3 | 22724 | _ACEOF |
d166f048 JA |
22725 | |
22726 | fi | |
22727 | ||
a82a04b3 CR |
22728 | |
22729 | echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5 | |
f73dda09 JA |
22730 | echo $ECHO_N "checking for sys_errlist and sys_nerr... $ECHO_C" >&6 |
22731 | if test "${bash_cv_sys_errlist+set}" = set; then | |
22732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cce855bc | 22733 | else |
f73dda09 | 22734 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
22735 | /* confdefs.h. */ |
22736 | _ACEOF | |
22737 | cat confdefs.h >>conftest.$ac_ext | |
22738 | cat >>conftest.$ac_ext <<_ACEOF | |
22739 | /* end confdefs.h. */ | |
f73dda09 JA |
22740 | #include <errno.h> |
22741 | int | |
cce855bc JA |
22742 | main () |
22743 | { | |
d166f048 JA |
22744 | extern char *sys_errlist[]; |
22745 | extern int sys_nerr; | |
22746 | char *msg = sys_errlist[sys_nerr - 1]; | |
f73dda09 JA |
22747 | ; |
22748 | return 0; | |
22749 | } | |
22750 | _ACEOF | |
22751 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
22752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22753 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 22754 | ac_status=$? |
a82a04b3 CR |
22755 | grep -v '^ *+' conftest.er1 >conftest.err |
22756 | rm -f conftest.er1 | |
22757 | cat conftest.err >&5 | |
22758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 22759 | (exit $ac_status); } && |
a82a04b3 CR |
22760 | { ac_try='test -z "$ac_c_werror_flag" |
22761 | || test ! -s conftest.err' | |
22762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
22763 | (eval $ac_try) 2>&5 |
22764 | ac_status=$? | |
a82a04b3 CR |
22765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22766 | (exit $ac_status); }; } && | |
22767 | { ac_try='test -s conftest$ac_exeext' | |
22768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22769 | (eval $ac_try) 2>&5 | |
22770 | ac_status=$? | |
22771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 22772 | (exit $ac_status); }; }; then |
d166f048 JA |
22773 | bash_cv_sys_errlist=yes |
22774 | else | |
f73dda09 | 22775 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
22776 | sed 's/^/| /' conftest.$ac_ext >&5 |
22777 | ||
f73dda09 | 22778 | bash_cv_sys_errlist=no |
d166f048 | 22779 | fi |
a82a04b3 CR |
22780 | rm -f conftest.err conftest.$ac_objext \ |
22781 | conftest$ac_exeext conftest.$ac_ext | |
d166f048 | 22782 | fi |
a82a04b3 | 22783 | echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5 |
f73dda09 | 22784 | echo "${ECHO_T}$bash_cv_sys_errlist" >&6 |
d166f048 | 22785 | if test $bash_cv_sys_errlist = yes; then |
a82a04b3 | 22786 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 22787 | #define HAVE_SYS_ERRLIST 1 |
a82a04b3 | 22788 | _ACEOF |
d166f048 JA |
22789 | |
22790 | fi | |
22791 | ||
a82a04b3 CR |
22792 | |
22793 | echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5 | |
f73dda09 JA |
22794 | echo $ECHO_N "checking for sys_siglist in system C library... $ECHO_C" >&6 |
22795 | if test "${bash_cv_sys_siglist+set}" = set; then | |
22796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 JA |
22797 | else |
22798 | if test "$cross_compiling" = yes; then | |
a82a04b3 | 22799 | { echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5 |
f73dda09 | 22800 | echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;} |
cce855bc | 22801 | bash_cv_sys_siglist=no |
ccc6cda3 | 22802 | else |
f73dda09 | 22803 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
22804 | /* confdefs.h. */ |
22805 | _ACEOF | |
22806 | cat confdefs.h >>conftest.$ac_ext | |
22807 | cat >>conftest.$ac_ext <<_ACEOF | |
22808 | /* end confdefs.h. */ | |
ccc6cda3 JA |
22809 | |
22810 | #include <sys/types.h> | |
22811 | #include <signal.h> | |
22812 | #ifdef HAVE_UNISTD_H | |
22813 | #include <unistd.h> | |
22814 | #endif | |
22815 | #ifndef SYS_SIGLIST_DECLARED | |
22816 | extern char *sys_siglist[]; | |
22817 | #endif | |
22818 | main() | |
22819 | { | |
22820 | char *msg = sys_siglist[2]; | |
22821 | exit(msg == 0); | |
22822 | } | |
f73dda09 JA |
22823 | _ACEOF |
22824 | rm -f conftest$ac_exeext | |
a82a04b3 | 22825 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
22826 | (eval $ac_link) 2>&5 |
22827 | ac_status=$? | |
a82a04b3 | 22828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 22829 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 22830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
22831 | (eval $ac_try) 2>&5 |
22832 | ac_status=$? | |
a82a04b3 | 22833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 22834 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
22835 | bash_cv_sys_siglist=yes |
22836 | else | |
f73dda09 JA |
22837 | echo "$as_me: program exited with status $ac_status" >&5 |
22838 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
22839 | sed 's/^/| /' conftest.$ac_ext >&5 |
22840 | ||
22841 | ( exit $ac_status ) | |
f73dda09 | 22842 | bash_cv_sys_siglist=no |
ccc6cda3 | 22843 | fi |
a82a04b3 | 22844 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 22845 | fi |
ccc6cda3 | 22846 | fi |
cce855bc | 22847 | |
a82a04b3 | 22848 | echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5 |
f73dda09 | 22849 | echo "${ECHO_T}$bash_cv_sys_siglist" >&6 |
ccc6cda3 | 22850 | if test $bash_cv_sys_siglist = yes; then |
a82a04b3 | 22851 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 22852 | #define HAVE_SYS_SIGLIST 1 |
a82a04b3 | 22853 | _ACEOF |
ccc6cda3 JA |
22854 | |
22855 | fi | |
22856 | ||
a82a04b3 | 22857 | echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5 |
f73dda09 JA |
22858 | echo $ECHO_N "checking for _sys_siglist in signal.h or unistd.h... $ECHO_C" >&6 |
22859 | if test "${bash_cv_decl_under_sys_siglist+set}" = set; then | |
22860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8ce775d | 22861 | else |
f73dda09 | 22862 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
22863 | /* confdefs.h. */ |
22864 | _ACEOF | |
22865 | cat confdefs.h >>conftest.$ac_ext | |
22866 | cat >>conftest.$ac_ext <<_ACEOF | |
22867 | /* end confdefs.h. */ | |
e8ce775d JA |
22868 | |
22869 | #include <sys/types.h> | |
22870 | #include <signal.h> | |
22871 | #ifdef HAVE_UNISTD_H | |
22872 | #include <unistd.h> | |
22873 | #endif | |
f73dda09 JA |
22874 | int |
22875 | main () | |
22876 | { | |
22877 | char *msg = _sys_siglist[2]; | |
22878 | ; | |
22879 | return 0; | |
22880 | } | |
22881 | _ACEOF | |
22882 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
22883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
22884 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 22885 | ac_status=$? |
a82a04b3 CR |
22886 | grep -v '^ *+' conftest.er1 >conftest.err |
22887 | rm -f conftest.er1 | |
22888 | cat conftest.err >&5 | |
22889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 22890 | (exit $ac_status); } && |
a82a04b3 CR |
22891 | { ac_try='test -z "$ac_c_werror_flag" |
22892 | || test ! -s conftest.err' | |
22893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
22894 | (eval $ac_try) 2>&5 |
22895 | ac_status=$? | |
a82a04b3 CR |
22896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22897 | (exit $ac_status); }; } && | |
22898 | { ac_try='test -s conftest.$ac_objext' | |
22899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22900 | (eval $ac_try) 2>&5 | |
22901 | ac_status=$? | |
22902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 22903 | (exit $ac_status); }; }; then |
e8ce775d JA |
22904 | bash_cv_decl_under_sys_siglist=yes |
22905 | else | |
f73dda09 | 22906 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
22907 | sed 's/^/| /' conftest.$ac_ext >&5 |
22908 | ||
f73dda09 | 22909 | bash_cv_decl_under_sys_siglist=no |
e8ce775d | 22910 | fi |
a82a04b3 | 22911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e8ce775d | 22912 | fi |
a82a04b3 | 22913 | echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5 |
f73dda09 | 22914 | echo "${ECHO_T}$bash_cv_decl_under_sys_siglist" >&6 |
e8ce775d | 22915 | if test $bash_cv_decl_under_sys_siglist = yes; then |
a82a04b3 | 22916 | cat >>confdefs.h <<\_ACEOF |
e8ce775d | 22917 | #define UNDER_SYS_SIGLIST_DECLARED 1 |
a82a04b3 | 22918 | _ACEOF |
e8ce775d JA |
22919 | |
22920 | fi | |
22921 | ||
a82a04b3 CR |
22922 | |
22923 | echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5 | |
f73dda09 JA |
22924 | echo $ECHO_N "checking for _sys_siglist in system C library... $ECHO_C" >&6 |
22925 | if test "${bash_cv_under_sys_siglist+set}" = set; then | |
22926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 JA |
22927 | else |
22928 | if test "$cross_compiling" = yes; then | |
a82a04b3 | 22929 | { echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5 |
f73dda09 | 22930 | echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;} |
cce855bc | 22931 | bash_cv_under_sys_siglist=no |
ccc6cda3 | 22932 | else |
f73dda09 | 22933 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
22934 | /* confdefs.h. */ |
22935 | _ACEOF | |
22936 | cat confdefs.h >>conftest.$ac_ext | |
22937 | cat >>conftest.$ac_ext <<_ACEOF | |
22938 | /* end confdefs.h. */ | |
ccc6cda3 JA |
22939 | |
22940 | #include <sys/types.h> | |
22941 | #include <signal.h> | |
22942 | #ifdef HAVE_UNISTD_H | |
22943 | #include <unistd.h> | |
22944 | #endif | |
e8ce775d | 22945 | #ifndef UNDER_SYS_SIGLIST_DECLARED |
ccc6cda3 JA |
22946 | extern char *_sys_siglist[]; |
22947 | #endif | |
22948 | main() | |
22949 | { | |
e8ce775d | 22950 | char *msg = (char *)_sys_siglist[2]; |
ccc6cda3 JA |
22951 | exit(msg == 0); |
22952 | } | |
f73dda09 JA |
22953 | _ACEOF |
22954 | rm -f conftest$ac_exeext | |
a82a04b3 | 22955 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
22956 | (eval $ac_link) 2>&5 |
22957 | ac_status=$? | |
a82a04b3 | 22958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 22959 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 22960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
22961 | (eval $ac_try) 2>&5 |
22962 | ac_status=$? | |
a82a04b3 | 22963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 22964 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
22965 | bash_cv_under_sys_siglist=yes |
22966 | else | |
f73dda09 JA |
22967 | echo "$as_me: program exited with status $ac_status" >&5 |
22968 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
22969 | sed 's/^/| /' conftest.$ac_ext >&5 |
22970 | ||
22971 | ( exit $ac_status ) | |
f73dda09 | 22972 | bash_cv_under_sys_siglist=no |
ccc6cda3 | 22973 | fi |
a82a04b3 | 22974 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 22975 | fi |
ccc6cda3 | 22976 | fi |
cce855bc | 22977 | |
a82a04b3 | 22978 | echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5 |
f73dda09 | 22979 | echo "${ECHO_T}$bash_cv_under_sys_siglist" >&6 |
ccc6cda3 | 22980 | if test $bash_cv_under_sys_siglist = yes; then |
a82a04b3 | 22981 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 22982 | #define HAVE_UNDER_SYS_SIGLIST 1 |
a82a04b3 | 22983 | _ACEOF |
ccc6cda3 JA |
22984 | |
22985 | fi | |
22986 | ||
a82a04b3 CR |
22987 | |
22988 | echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5 | |
f73dda09 JA |
22989 | echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6 |
22990 | if test "${bash_cv_void_sighandler+set}" = set; then | |
22991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 22992 | else |
f73dda09 | 22993 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
22994 | /* confdefs.h. */ |
22995 | _ACEOF | |
22996 | cat confdefs.h >>conftest.$ac_ext | |
22997 | cat >>conftest.$ac_ext <<_ACEOF | |
22998 | /* end confdefs.h. */ | |
ccc6cda3 JA |
22999 | #include <sys/types.h> |
23000 | #include <signal.h> | |
23001 | #ifdef signal | |
23002 | #undef signal | |
23003 | #endif | |
23004 | #ifdef __cplusplus | |
23005 | extern "C" | |
23006 | #endif | |
23007 | void (*signal ()) (); | |
f73dda09 JA |
23008 | int |
23009 | main () | |
23010 | { | |
ccc6cda3 | 23011 | int i; |
f73dda09 JA |
23012 | ; |
23013 | return 0; | |
23014 | } | |
23015 | _ACEOF | |
23016 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
23017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
23018 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 23019 | ac_status=$? |
a82a04b3 CR |
23020 | grep -v '^ *+' conftest.er1 >conftest.err |
23021 | rm -f conftest.er1 | |
23022 | cat conftest.err >&5 | |
23023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 23024 | (exit $ac_status); } && |
a82a04b3 CR |
23025 | { ac_try='test -z "$ac_c_werror_flag" |
23026 | || test ! -s conftest.err' | |
23027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23028 | (eval $ac_try) 2>&5 | |
23029 | ac_status=$? | |
23030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23031 | (exit $ac_status); }; } && | |
23032 | { ac_try='test -s conftest.$ac_objext' | |
23033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
23034 | (eval $ac_try) 2>&5 |
23035 | ac_status=$? | |
a82a04b3 | 23036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 23037 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
23038 | bash_cv_void_sighandler=yes |
23039 | else | |
f73dda09 | 23040 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
23041 | sed 's/^/| /' conftest.$ac_ext >&5 |
23042 | ||
f73dda09 | 23043 | bash_cv_void_sighandler=no |
ccc6cda3 | 23044 | fi |
a82a04b3 | 23045 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 23046 | fi |
a82a04b3 | 23047 | echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5 |
f73dda09 | 23048 | echo "${ECHO_T}$bash_cv_void_sighandler" >&6 |
ccc6cda3 | 23049 | if test $bash_cv_void_sighandler = yes; then |
a82a04b3 | 23050 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 23051 | #define VOID_SIGHANDLER 1 |
a82a04b3 | 23052 | _ACEOF |
ccc6cda3 JA |
23053 | |
23054 | fi | |
23055 | ||
a82a04b3 CR |
23056 | |
23057 | ||
23058 | echo "$as_me:$LINENO: checking for clock_t" >&5 | |
f73dda09 JA |
23059 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6 |
23060 | if test "${bash_cv_type_clock_t+set}" = set; then | |
23061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 23062 | else |
f73dda09 | 23063 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
23064 | /* confdefs.h. */ |
23065 | _ACEOF | |
23066 | cat confdefs.h >>conftest.$ac_ext | |
23067 | cat >>conftest.$ac_ext <<_ACEOF | |
23068 | /* end confdefs.h. */ | |
ccc6cda3 JA |
23069 | #include <sys/types.h> |
23070 | #if STDC_HEADERS | |
23071 | #include <stdlib.h> | |
f73dda09 JA |
23072 | #include <stddef.h> |
23073 | #endif | |
23074 | #if HAVE_INTTYPES_H | |
23075 | #include <inttypes.h> | |
ccc6cda3 JA |
23076 | #endif |
23077 | #include <sys/times.h> | |
23078 | ||
f73dda09 | 23079 | _ACEOF |
ccc6cda3 | 23080 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
a82a04b3 | 23081 | $EGREP "clock_t" >/dev/null 2>&1; then |
ccc6cda3 JA |
23082 | bash_cv_type_clock_t=yes |
23083 | else | |
ccc6cda3 JA |
23084 | bash_cv_type_clock_t=no |
23085 | fi | |
23086 | rm -f conftest* | |
23087 | ||
23088 | fi | |
23089 | ||
a82a04b3 | 23090 | echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5 |
f73dda09 | 23091 | echo "${ECHO_T}$bash_cv_type_clock_t" >&6 |
ccc6cda3 JA |
23092 | |
23093 | if test $bash_cv_type_clock_t = no; then | |
a82a04b3 | 23094 | cat >>confdefs.h <<_ACEOF |
ccc6cda3 | 23095 | #define clock_t long |
a82a04b3 | 23096 | _ACEOF |
ccc6cda3 JA |
23097 | |
23098 | fi | |
23099 | ||
a82a04b3 CR |
23100 | |
23101 | ||
23102 | echo "$as_me:$LINENO: checking for sigset_t" >&5 | |
f73dda09 JA |
23103 | echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6 |
23104 | if test "${bash_cv_type_sigset_t+set}" = set; then | |
23105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 23106 | else |
f73dda09 | 23107 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
23108 | /* confdefs.h. */ |
23109 | _ACEOF | |
23110 | cat confdefs.h >>conftest.$ac_ext | |
23111 | cat >>conftest.$ac_ext <<_ACEOF | |
23112 | /* end confdefs.h. */ | |
ccc6cda3 JA |
23113 | #include <sys/types.h> |
23114 | #if STDC_HEADERS | |
23115 | #include <stdlib.h> | |
f73dda09 JA |
23116 | #include <stddef.h> |
23117 | #endif | |
23118 | #if HAVE_INTTYPES_H | |
23119 | #include <inttypes.h> | |
ccc6cda3 JA |
23120 | #endif |
23121 | #include <signal.h> | |
23122 | ||
f73dda09 | 23123 | _ACEOF |
ccc6cda3 | 23124 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
a82a04b3 | 23125 | $EGREP "sigset_t" >/dev/null 2>&1; then |
ccc6cda3 JA |
23126 | bash_cv_type_sigset_t=yes |
23127 | else | |
ccc6cda3 JA |
23128 | bash_cv_type_sigset_t=no |
23129 | fi | |
23130 | rm -f conftest* | |
23131 | ||
23132 | fi | |
23133 | ||
a82a04b3 | 23134 | echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5 |
f73dda09 | 23135 | echo "${ECHO_T}$bash_cv_type_sigset_t" >&6 |
ccc6cda3 JA |
23136 | |
23137 | if test $bash_cv_type_sigset_t = no; then | |
a82a04b3 | 23138 | cat >>confdefs.h <<_ACEOF |
ccc6cda3 | 23139 | #define sigset_t int |
a82a04b3 | 23140 | _ACEOF |
ccc6cda3 JA |
23141 | |
23142 | fi | |
23143 | ||
a82a04b3 CR |
23144 | |
23145 | ||
23146 | echo "$as_me:$LINENO: checking for quad_t" >&5 | |
f73dda09 JA |
23147 | echo $ECHO_N "checking for quad_t... $ECHO_C" >&6 |
23148 | if test "${bash_cv_type_quad_t+set}" = set; then | |
23149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 23150 | else |
f73dda09 | 23151 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
23152 | /* confdefs.h. */ |
23153 | _ACEOF | |
23154 | cat confdefs.h >>conftest.$ac_ext | |
23155 | cat >>conftest.$ac_ext <<_ACEOF | |
23156 | /* end confdefs.h. */ | |
ccc6cda3 JA |
23157 | #include <sys/types.h> |
23158 | #if STDC_HEADERS | |
23159 | #include <stdlib.h> | |
f73dda09 JA |
23160 | #include <stddef.h> |
23161 | #endif | |
23162 | #if HAVE_INTTYPES_H | |
23163 | #include <inttypes.h> | |
ccc6cda3 JA |
23164 | #endif |
23165 | ||
a82a04b3 | 23166 | |
f73dda09 | 23167 | _ACEOF |
ccc6cda3 | 23168 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
a82a04b3 | 23169 | $EGREP "quad_t" >/dev/null 2>&1; then |
ccc6cda3 JA |
23170 | bash_cv_type_quad_t=yes |
23171 | else | |
ccc6cda3 JA |
23172 | bash_cv_type_quad_t=no |
23173 | fi | |
23174 | rm -f conftest* | |
23175 | ||
23176 | fi | |
23177 | ||
a82a04b3 | 23178 | echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5 |
f73dda09 | 23179 | echo "${ECHO_T}$bash_cv_type_quad_t" >&6 |
ccc6cda3 | 23180 | if test $bash_cv_type_quad_t = yes; then |
a82a04b3 | 23181 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 23182 | #define HAVE_QUAD_T 1 |
a82a04b3 | 23183 | _ACEOF |
ccc6cda3 JA |
23184 | |
23185 | fi | |
23186 | if test $bash_cv_type_quad_t = no; then | |
a82a04b3 | 23187 | cat >>confdefs.h <<_ACEOF |
ccc6cda3 | 23188 | #define quad_t long |
a82a04b3 | 23189 | _ACEOF |
ccc6cda3 JA |
23190 | |
23191 | fi | |
23192 | ||
a82a04b3 CR |
23193 | |
23194 | ||
23195 | echo "$as_me:$LINENO: checking for intmax_t" >&5 | |
f73dda09 JA |
23196 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6 |
23197 | if test "${bash_cv_type_intmax_t+set}" = set; then | |
23198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23199 | else | |
23200 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
23201 | /* confdefs.h. */ |
23202 | _ACEOF | |
23203 | cat confdefs.h >>conftest.$ac_ext | |
23204 | cat >>conftest.$ac_ext <<_ACEOF | |
23205 | /* end confdefs.h. */ | |
f73dda09 JA |
23206 | #include <sys/types.h> |
23207 | #if STDC_HEADERS | |
23208 | #include <stdlib.h> | |
23209 | #include <stddef.h> | |
23210 | #endif | |
23211 | #if HAVE_INTTYPES_H | |
23212 | #include <inttypes.h> | |
23213 | #endif | |
23214 | ||
a82a04b3 | 23215 | |
f73dda09 JA |
23216 | _ACEOF |
23217 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
a82a04b3 | 23218 | $EGREP "intmax_t" >/dev/null 2>&1; then |
f73dda09 JA |
23219 | bash_cv_type_intmax_t=yes |
23220 | else | |
23221 | bash_cv_type_intmax_t=no | |
23222 | fi | |
23223 | rm -f conftest* | |
23224 | ||
23225 | fi | |
23226 | ||
a82a04b3 | 23227 | echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5 |
f73dda09 JA |
23228 | echo "${ECHO_T}$bash_cv_type_intmax_t" >&6 |
23229 | ||
23230 | if test $bash_cv_type_intmax_t = no; then | |
a82a04b3 | 23231 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 23232 | #define intmax_t $bash_cv_type_long_long |
a82a04b3 | 23233 | _ACEOF |
f73dda09 JA |
23234 | |
23235 | fi | |
23236 | ||
a82a04b3 CR |
23237 | |
23238 | ||
23239 | echo "$as_me:$LINENO: checking for uintmax_t" >&5 | |
f73dda09 JA |
23240 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 |
23241 | if test "${bash_cv_type_uintmax_t+set}" = set; then | |
23242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23243 | else | |
23244 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
23245 | /* confdefs.h. */ |
23246 | _ACEOF | |
23247 | cat confdefs.h >>conftest.$ac_ext | |
23248 | cat >>conftest.$ac_ext <<_ACEOF | |
23249 | /* end confdefs.h. */ | |
f73dda09 JA |
23250 | #include <sys/types.h> |
23251 | #if STDC_HEADERS | |
23252 | #include <stdlib.h> | |
23253 | #include <stddef.h> | |
23254 | #endif | |
23255 | #if HAVE_INTTYPES_H | |
23256 | #include <inttypes.h> | |
23257 | #endif | |
23258 | ||
a82a04b3 | 23259 | |
f73dda09 JA |
23260 | _ACEOF |
23261 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
a82a04b3 | 23262 | $EGREP "uintmax_t" >/dev/null 2>&1; then |
f73dda09 JA |
23263 | bash_cv_type_uintmax_t=yes |
23264 | else | |
23265 | bash_cv_type_uintmax_t=no | |
23266 | fi | |
23267 | rm -f conftest* | |
23268 | ||
23269 | fi | |
23270 | ||
a82a04b3 | 23271 | echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5 |
f73dda09 JA |
23272 | echo "${ECHO_T}$bash_cv_type_uintmax_t" >&6 |
23273 | ||
23274 | if test $bash_cv_type_uintmax_t = no; then | |
a82a04b3 | 23275 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 23276 | #define uintmax_t $bash_cv_type_unsigned_long_long |
a82a04b3 | 23277 | _ACEOF |
f73dda09 JA |
23278 | |
23279 | fi | |
23280 | ||
23281 | if test "$ac_cv_header_sys_socket_h" = "yes"; then | |
23282 | ||
a82a04b3 CR |
23283 | |
23284 | echo "$as_me:$LINENO: checking for socklen_t" >&5 | |
f73dda09 JA |
23285 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
23286 | if test "${bash_cv_type_socklen_t+set}" = set; then | |
23287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23288 | else | |
23289 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
23290 | /* confdefs.h. */ |
23291 | _ACEOF | |
23292 | cat confdefs.h >>conftest.$ac_ext | |
23293 | cat >>conftest.$ac_ext <<_ACEOF | |
23294 | /* end confdefs.h. */ | |
f73dda09 JA |
23295 | #include <sys/types.h> |
23296 | #if STDC_HEADERS | |
23297 | #include <stdlib.h> | |
23298 | #include <stddef.h> | |
23299 | #endif | |
23300 | #if HAVE_INTTYPES_H | |
23301 | #include <inttypes.h> | |
23302 | #endif | |
23303 | #include <sys/socket.h> | |
23304 | ||
23305 | _ACEOF | |
23306 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
a82a04b3 | 23307 | $EGREP "socklen_t" >/dev/null 2>&1; then |
f73dda09 JA |
23308 | bash_cv_type_socklen_t=yes |
23309 | else | |
23310 | bash_cv_type_socklen_t=no | |
23311 | fi | |
23312 | rm -f conftest* | |
23313 | ||
23314 | fi | |
23315 | ||
a82a04b3 | 23316 | echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5 |
f73dda09 JA |
23317 | echo "${ECHO_T}$bash_cv_type_socklen_t" >&6 |
23318 | if test $bash_cv_type_socklen_t = yes; then | |
a82a04b3 | 23319 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 23320 | #define HAVE_SOCKLEN_T 1 |
a82a04b3 | 23321 | _ACEOF |
f73dda09 JA |
23322 | |
23323 | fi | |
23324 | if test $bash_cv_type_socklen_t = no; then | |
a82a04b3 | 23325 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 23326 | #define socklen_t int |
a82a04b3 | 23327 | _ACEOF |
f73dda09 JA |
23328 | |
23329 | fi | |
23330 | ||
23331 | fi | |
a82a04b3 | 23332 | echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5 |
f73dda09 JA |
23333 | echo $ECHO_N "checking for size and type of struct rlimit fields... $ECHO_C" >&6 |
23334 | if test "${bash_cv_type_rlimit+set}" = set; then | |
23335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 23336 | else |
f73dda09 | 23337 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
23338 | /* confdefs.h. */ |
23339 | _ACEOF | |
23340 | cat confdefs.h >>conftest.$ac_ext | |
23341 | cat >>conftest.$ac_ext <<_ACEOF | |
23342 | /* end confdefs.h. */ | |
ccc6cda3 | 23343 | #include <sys/types.h> |
cce855bc | 23344 | #include <sys/resource.h> |
f73dda09 JA |
23345 | int |
23346 | main () | |
23347 | { | |
ccc6cda3 | 23348 | rlim_t xxx; |
f73dda09 JA |
23349 | ; |
23350 | return 0; | |
23351 | } | |
23352 | _ACEOF | |
23353 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
23354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
23355 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 23356 | ac_status=$? |
a82a04b3 CR |
23357 | grep -v '^ *+' conftest.er1 >conftest.err |
23358 | rm -f conftest.er1 | |
23359 | cat conftest.err >&5 | |
23360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 23361 | (exit $ac_status); } && |
a82a04b3 CR |
23362 | { ac_try='test -z "$ac_c_werror_flag" |
23363 | || test ! -s conftest.err' | |
23364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23365 | (eval $ac_try) 2>&5 | |
23366 | ac_status=$? | |
23367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23368 | (exit $ac_status); }; } && | |
23369 | { ac_try='test -s conftest.$ac_objext' | |
23370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
23371 | (eval $ac_try) 2>&5 |
23372 | ac_status=$? | |
a82a04b3 | 23373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 23374 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
23375 | bash_cv_type_rlimit=rlim_t |
23376 | else | |
f73dda09 | 23377 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
23378 | sed 's/^/| /' conftest.$ac_ext >&5 |
23379 | ||
f73dda09 | 23380 | |
ccc6cda3 | 23381 | if test "$cross_compiling" = yes; then |
a82a04b3 | 23382 | { echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5 |
f73dda09 | 23383 | echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;} |
cce855bc | 23384 | bash_cv_type_rlimit=long |
ccc6cda3 | 23385 | else |
f73dda09 | 23386 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
23387 | /* confdefs.h. */ |
23388 | _ACEOF | |
23389 | cat confdefs.h >>conftest.$ac_ext | |
23390 | cat >>conftest.$ac_ext <<_ACEOF | |
23391 | /* end confdefs.h. */ | |
ccc6cda3 JA |
23392 | |
23393 | #include <sys/types.h> | |
23394 | #include <sys/time.h> | |
23395 | #include <sys/resource.h> | |
23396 | main() | |
23397 | { | |
23398 | #ifdef HAVE_QUAD_T | |
23399 | struct rlimit rl; | |
23400 | if (sizeof(rl.rlim_cur) == sizeof(quad_t)) | |
23401 | exit(0); | |
23402 | #endif | |
23403 | exit(1); | |
23404 | } | |
f73dda09 JA |
23405 | _ACEOF |
23406 | rm -f conftest$ac_exeext | |
a82a04b3 | 23407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
23408 | (eval $ac_link) 2>&5 |
23409 | ac_status=$? | |
a82a04b3 | 23410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 23411 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 23412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
23413 | (eval $ac_try) 2>&5 |
23414 | ac_status=$? | |
a82a04b3 | 23415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 23416 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
23417 | bash_cv_type_rlimit=quad_t |
23418 | else | |
f73dda09 JA |
23419 | echo "$as_me: program exited with status $ac_status" >&5 |
23420 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
23421 | sed 's/^/| /' conftest.$ac_ext >&5 |
23422 | ||
23423 | ( exit $ac_status ) | |
f73dda09 | 23424 | bash_cv_type_rlimit=long |
ccc6cda3 | 23425 | fi |
a82a04b3 | 23426 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 23427 | fi |
ccc6cda3 | 23428 | fi |
a82a04b3 | 23429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 JA |
23430 | |
23431 | fi | |
23432 | ||
a82a04b3 | 23433 | echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5 |
f73dda09 | 23434 | echo "${ECHO_T}$bash_cv_type_rlimit" >&6 |
ccc6cda3 | 23435 | if test $bash_cv_type_rlimit = quad_t; then |
a82a04b3 | 23436 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 23437 | #define RLIMTYPE quad_t |
a82a04b3 | 23438 | _ACEOF |
ccc6cda3 JA |
23439 | |
23440 | elif test $bash_cv_type_rlimit = rlim_t; then | |
a82a04b3 | 23441 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 23442 | #define RLIMTYPE rlim_t |
a82a04b3 | 23443 | _ACEOF |
ccc6cda3 JA |
23444 | |
23445 | fi | |
23446 | ||
a82a04b3 CR |
23447 | |
23448 | ||
23449 | echo "$as_me:$LINENO: checking for struct termios.c_line" >&5 | |
f73dda09 JA |
23450 | echo $ECHO_N "checking for struct termios.c_line... $ECHO_C" >&6 |
23451 | if test "${ac_cv_member_struct_termios_c_line+set}" = set; then | |
23452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 23453 | else |
f73dda09 | 23454 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
23455 | /* confdefs.h. */ |
23456 | _ACEOF | |
23457 | cat confdefs.h >>conftest.$ac_ext | |
23458 | cat >>conftest.$ac_ext <<_ACEOF | |
23459 | /* end confdefs.h. */ | |
f73dda09 | 23460 | |
ccc6cda3 JA |
23461 | #include <sys/types.h> |
23462 | #include <termios.h> | |
f73dda09 | 23463 | |
a82a04b3 | 23464 | |
f73dda09 JA |
23465 | int |
23466 | main () | |
23467 | { | |
23468 | static struct termios ac_aggr; | |
23469 | if (ac_aggr.c_line) | |
23470 | return 0; | |
23471 | ; | |
23472 | return 0; | |
23473 | } | |
23474 | _ACEOF | |
23475 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
23476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
23477 | (eval $ac_compile) 2>conftest.er1 | |
23478 | ac_status=$? | |
23479 | grep -v '^ *+' conftest.er1 >conftest.err | |
23480 | rm -f conftest.er1 | |
23481 | cat conftest.err >&5 | |
23482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23483 | (exit $ac_status); } && | |
23484 | { ac_try='test -z "$ac_c_werror_flag" | |
23485 | || test ! -s conftest.err' | |
23486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23487 | (eval $ac_try) 2>&5 | |
23488 | ac_status=$? | |
23489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23490 | (exit $ac_status); }; } && | |
23491 | { ac_try='test -s conftest.$ac_objext' | |
23492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23493 | (eval $ac_try) 2>&5 | |
f73dda09 | 23494 | ac_status=$? |
a82a04b3 CR |
23495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23496 | (exit $ac_status); }; }; then | |
23497 | ac_cv_member_struct_termios_c_line=yes | |
23498 | else | |
23499 | echo "$as_me: failed program was:" >&5 | |
23500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23501 | ||
23502 | cat >conftest.$ac_ext <<_ACEOF | |
23503 | /* confdefs.h. */ | |
23504 | _ACEOF | |
23505 | cat confdefs.h >>conftest.$ac_ext | |
23506 | cat >>conftest.$ac_ext <<_ACEOF | |
23507 | /* end confdefs.h. */ | |
23508 | ||
23509 | #include <sys/types.h> | |
23510 | #include <termios.h> | |
23511 | ||
23512 | ||
23513 | int | |
23514 | main () | |
23515 | { | |
23516 | static struct termios ac_aggr; | |
23517 | if (sizeof ac_aggr.c_line) | |
23518 | return 0; | |
23519 | ; | |
23520 | return 0; | |
23521 | } | |
23522 | _ACEOF | |
23523 | rm -f conftest.$ac_objext | |
23524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23525 | (eval $ac_compile) 2>conftest.er1 | |
23526 | ac_status=$? | |
23527 | grep -v '^ *+' conftest.er1 >conftest.err | |
23528 | rm -f conftest.er1 | |
23529 | cat conftest.err >&5 | |
23530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 23531 | (exit $ac_status); } && |
a82a04b3 CR |
23532 | { ac_try='test -z "$ac_c_werror_flag" |
23533 | || test ! -s conftest.err' | |
23534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23535 | (eval $ac_try) 2>&5 | |
23536 | ac_status=$? | |
23537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23538 | (exit $ac_status); }; } && | |
23539 | { ac_try='test -s conftest.$ac_objext' | |
23540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
23541 | (eval $ac_try) 2>&5 |
23542 | ac_status=$? | |
a82a04b3 | 23543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
23544 | (exit $ac_status); }; }; then |
23545 | ac_cv_member_struct_termios_c_line=yes | |
23546 | else | |
23547 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
23548 | sed 's/^/| /' conftest.$ac_ext >&5 |
23549 | ||
f73dda09 JA |
23550 | ac_cv_member_struct_termios_c_line=no |
23551 | fi | |
a82a04b3 | 23552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 23553 | fi |
a82a04b3 CR |
23554 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
23555 | fi | |
23556 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5 | |
f73dda09 JA |
23557 | echo "${ECHO_T}$ac_cv_member_struct_termios_c_line" >&6 |
23558 | if test $ac_cv_member_struct_termios_c_line = yes; then | |
a82a04b3 | 23559 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 23560 | #define TERMIOS_LDISC 1 |
a82a04b3 | 23561 | _ACEOF |
ccc6cda3 JA |
23562 | |
23563 | fi | |
23564 | ||
a82a04b3 CR |
23565 | |
23566 | ||
23567 | echo "$as_me:$LINENO: checking for struct termio.c_line" >&5 | |
f73dda09 JA |
23568 | echo $ECHO_N "checking for struct termio.c_line... $ECHO_C" >&6 |
23569 | if test "${ac_cv_member_struct_termio_c_line+set}" = set; then | |
23570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 23571 | else |
e624d0f7 | 23572 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
23573 | /* confdefs.h. */ |
23574 | _ACEOF | |
23575 | cat confdefs.h >>conftest.$ac_ext | |
23576 | cat >>conftest.$ac_ext <<_ACEOF | |
23577 | /* end confdefs.h. */ | |
f73dda09 | 23578 | |
ccc6cda3 JA |
23579 | #include <sys/types.h> |
23580 | #include <termio.h> | |
f73dda09 | 23581 | |
a82a04b3 | 23582 | |
f73dda09 JA |
23583 | int |
23584 | main () | |
23585 | { | |
23586 | static struct termio ac_aggr; | |
e624d0f7 | 23587 | if (ac_aggr.c_line) |
f73dda09 JA |
23588 | return 0; |
23589 | ; | |
23590 | return 0; | |
23591 | } | |
23592 | _ACEOF | |
23593 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
23594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
23595 | (eval $ac_compile) 2>conftest.er1 | |
23596 | ac_status=$? | |
23597 | grep -v '^ *+' conftest.er1 >conftest.err | |
23598 | rm -f conftest.er1 | |
23599 | cat conftest.err >&5 | |
23600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23601 | (exit $ac_status); } && | |
23602 | { ac_try='test -z "$ac_c_werror_flag" | |
23603 | || test ! -s conftest.err' | |
23604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23605 | (eval $ac_try) 2>&5 | |
23606 | ac_status=$? | |
23607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23608 | (exit $ac_status); }; } && | |
23609 | { ac_try='test -s conftest.$ac_objext' | |
23610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23611 | (eval $ac_try) 2>&5 | |
23612 | ac_status=$? | |
23613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23614 | (exit $ac_status); }; }; then | |
23615 | ac_cv_member_struct_termio_c_line=yes | |
23616 | else | |
23617 | echo "$as_me: failed program was:" >&5 | |
23618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23619 | ||
23620 | cat >conftest.$ac_ext <<_ACEOF | |
23621 | /* confdefs.h. */ | |
23622 | _ACEOF | |
23623 | cat confdefs.h >>conftest.$ac_ext | |
23624 | cat >>conftest.$ac_ext <<_ACEOF | |
23625 | /* end confdefs.h. */ | |
23626 | ||
23627 | #include <sys/types.h> | |
23628 | #include <termio.h> | |
23629 | ||
23630 | ||
23631 | int | |
23632 | main () | |
23633 | { | |
23634 | static struct termio ac_aggr; | |
23635 | if (sizeof ac_aggr.c_line) | |
23636 | return 0; | |
23637 | ; | |
23638 | return 0; | |
23639 | } | |
23640 | _ACEOF | |
23641 | rm -f conftest.$ac_objext | |
23642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23643 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 23644 | ac_status=$? |
a82a04b3 CR |
23645 | grep -v '^ *+' conftest.er1 >conftest.err |
23646 | rm -f conftest.er1 | |
23647 | cat conftest.err >&5 | |
23648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 23649 | (exit $ac_status); } && |
a82a04b3 CR |
23650 | { ac_try='test -z "$ac_c_werror_flag" |
23651 | || test ! -s conftest.err' | |
23652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23653 | (eval $ac_try) 2>&5 | |
23654 | ac_status=$? | |
23655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23656 | (exit $ac_status); }; } && | |
23657 | { ac_try='test -s conftest.$ac_objext' | |
23658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
23659 | (eval $ac_try) 2>&5 |
23660 | ac_status=$? | |
a82a04b3 | 23661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
23662 | (exit $ac_status); }; }; then |
23663 | ac_cv_member_struct_termio_c_line=yes | |
23664 | else | |
23665 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
23666 | sed 's/^/| /' conftest.$ac_ext >&5 |
23667 | ||
f73dda09 JA |
23668 | ac_cv_member_struct_termio_c_line=no |
23669 | fi | |
a82a04b3 | 23670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f73dda09 | 23671 | fi |
a82a04b3 CR |
23672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
23673 | fi | |
23674 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5 | |
f73dda09 JA |
23675 | echo "${ECHO_T}$ac_cv_member_struct_termio_c_line" >&6 |
23676 | if test $ac_cv_member_struct_termio_c_line = yes; then | |
a82a04b3 | 23677 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 23678 | #define TERMIO_LDISC 1 |
a82a04b3 | 23679 | _ACEOF |
ccc6cda3 JA |
23680 | |
23681 | fi | |
23682 | ||
a82a04b3 CR |
23683 | |
23684 | ||
23685 | echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5 | |
4931aca6 | 23686 | echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6 |
f73dda09 JA |
23687 | if test "${bash_cv_dirent_has_dino+set}" = set; then |
23688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 23689 | else |
f73dda09 | 23690 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
23691 | /* confdefs.h. */ |
23692 | _ACEOF | |
23693 | cat confdefs.h >>conftest.$ac_ext | |
23694 | cat >>conftest.$ac_ext <<_ACEOF | |
23695 | /* end confdefs.h. */ | |
ccc6cda3 JA |
23696 | |
23697 | #include <stdio.h> | |
23698 | #include <sys/types.h> | |
23699 | #ifdef HAVE_UNISTD_H | |
23700 | # include <unistd.h> | |
23701 | #endif /* HAVE_UNISTD_H */ | |
23702 | #if defined(HAVE_DIRENT_H) | |
23703 | # include <dirent.h> | |
23704 | #else | |
23705 | # define dirent direct | |
23706 | # ifdef HAVE_SYS_NDIR_H | |
23707 | # include <sys/ndir.h> | |
23708 | # endif /* SYSNDIR */ | |
23709 | # ifdef HAVE_SYS_DIR_H | |
23710 | # include <sys/dir.h> | |
23711 | # endif /* SYSDIR */ | |
23712 | # ifdef HAVE_NDIR_H | |
23713 | # include <ndir.h> | |
23714 | # endif | |
23715 | #endif /* HAVE_DIRENT_H */ | |
23716 | ||
f73dda09 JA |
23717 | int |
23718 | main () | |
23719 | { | |
ccc6cda3 JA |
23720 | |
23721 | struct dirent d; int z; z = d.d_ino; | |
23722 | ||
f73dda09 JA |
23723 | ; |
23724 | return 0; | |
23725 | } | |
23726 | _ACEOF | |
23727 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
23728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
23729 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 23730 | ac_status=$? |
a82a04b3 CR |
23731 | grep -v '^ *+' conftest.er1 >conftest.err |
23732 | rm -f conftest.er1 | |
23733 | cat conftest.err >&5 | |
23734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 23735 | (exit $ac_status); } && |
a82a04b3 CR |
23736 | { ac_try='test -z "$ac_c_werror_flag" |
23737 | || test ! -s conftest.err' | |
23738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23739 | (eval $ac_try) 2>&5 | |
23740 | ac_status=$? | |
23741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23742 | (exit $ac_status); }; } && | |
23743 | { ac_try='test -s conftest.$ac_objext' | |
23744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
23745 | (eval $ac_try) 2>&5 |
23746 | ac_status=$? | |
a82a04b3 | 23747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 23748 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
23749 | bash_cv_dirent_has_dino=yes |
23750 | else | |
f73dda09 | 23751 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
23752 | sed 's/^/| /' conftest.$ac_ext >&5 |
23753 | ||
f73dda09 | 23754 | bash_cv_dirent_has_dino=no |
ccc6cda3 | 23755 | fi |
a82a04b3 | 23756 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 JA |
23757 | fi |
23758 | ||
a82a04b3 | 23759 | echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5 |
f73dda09 | 23760 | echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6 |
ccc6cda3 | 23761 | if test $bash_cv_dirent_has_dino = yes; then |
a82a04b3 | 23762 | cat >>confdefs.h <<\_ACEOF |
4931aca6 | 23763 | #define HAVE_STRUCT_DIRENT_D_INO 1 |
a82a04b3 | 23764 | _ACEOF |
ccc6cda3 JA |
23765 | |
23766 | fi | |
23767 | ||
a82a04b3 CR |
23768 | |
23769 | echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5 | |
4931aca6 | 23770 | echo $ECHO_N "checking for struct dirent.d_fileno... $ECHO_C" >&6 |
f73dda09 JA |
23771 | if test "${bash_cv_dirent_has_d_fileno+set}" = set; then |
23772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d166f048 | 23773 | else |
f73dda09 | 23774 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
23775 | /* confdefs.h. */ |
23776 | _ACEOF | |
23777 | cat confdefs.h >>conftest.$ac_ext | |
23778 | cat >>conftest.$ac_ext <<_ACEOF | |
23779 | /* end confdefs.h. */ | |
d166f048 JA |
23780 | |
23781 | #include <stdio.h> | |
23782 | #include <sys/types.h> | |
23783 | #ifdef HAVE_UNISTD_H | |
23784 | # include <unistd.h> | |
23785 | #endif /* HAVE_UNISTD_H */ | |
23786 | #if defined(HAVE_DIRENT_H) | |
23787 | # include <dirent.h> | |
23788 | #else | |
23789 | # define dirent direct | |
23790 | # ifdef HAVE_SYS_NDIR_H | |
23791 | # include <sys/ndir.h> | |
23792 | # endif /* SYSNDIR */ | |
23793 | # ifdef HAVE_SYS_DIR_H | |
23794 | # include <sys/dir.h> | |
23795 | # endif /* SYSDIR */ | |
23796 | # ifdef HAVE_NDIR_H | |
23797 | # include <ndir.h> | |
23798 | # endif | |
23799 | #endif /* HAVE_DIRENT_H */ | |
23800 | ||
f73dda09 JA |
23801 | int |
23802 | main () | |
23803 | { | |
d166f048 JA |
23804 | |
23805 | struct dirent d; int z; z = d.d_fileno; | |
23806 | ||
f73dda09 JA |
23807 | ; |
23808 | return 0; | |
23809 | } | |
23810 | _ACEOF | |
23811 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
23812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
23813 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 23814 | ac_status=$? |
a82a04b3 CR |
23815 | grep -v '^ *+' conftest.er1 >conftest.err |
23816 | rm -f conftest.er1 | |
23817 | cat conftest.err >&5 | |
23818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 23819 | (exit $ac_status); } && |
a82a04b3 CR |
23820 | { ac_try='test -z "$ac_c_werror_flag" |
23821 | || test ! -s conftest.err' | |
23822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23823 | (eval $ac_try) 2>&5 | |
23824 | ac_status=$? | |
23825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23826 | (exit $ac_status); }; } && | |
23827 | { ac_try='test -s conftest.$ac_objext' | |
23828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
23829 | (eval $ac_try) 2>&5 |
23830 | ac_status=$? | |
a82a04b3 | 23831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 23832 | (exit $ac_status); }; }; then |
d166f048 JA |
23833 | bash_cv_dirent_has_d_fileno=yes |
23834 | else | |
f73dda09 | 23835 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
23836 | sed 's/^/| /' conftest.$ac_ext >&5 |
23837 | ||
f73dda09 | 23838 | bash_cv_dirent_has_d_fileno=no |
d166f048 | 23839 | fi |
a82a04b3 | 23840 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d166f048 JA |
23841 | fi |
23842 | ||
a82a04b3 | 23843 | echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5 |
f73dda09 | 23844 | echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6 |
d166f048 | 23845 | if test $bash_cv_dirent_has_d_fileno = yes; then |
a82a04b3 | 23846 | cat >>confdefs.h <<\_ACEOF |
4931aca6 | 23847 | #define HAVE_STRUCT_DIRENT_D_FILENO 1 |
a82a04b3 | 23848 | _ACEOF |
4931aca6 CR |
23849 | |
23850 | fi | |
23851 | ||
a82a04b3 CR |
23852 | |
23853 | echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5 | |
4931aca6 CR |
23854 | echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6 |
23855 | if test "${bash_cv_dirent_has_d_namlen+set}" = set; then | |
23856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23857 | else | |
23858 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
23859 | /* confdefs.h. */ |
23860 | _ACEOF | |
23861 | cat confdefs.h >>conftest.$ac_ext | |
23862 | cat >>conftest.$ac_ext <<_ACEOF | |
23863 | /* end confdefs.h. */ | |
4931aca6 CR |
23864 | |
23865 | #include <stdio.h> | |
23866 | #include <sys/types.h> | |
23867 | #ifdef HAVE_UNISTD_H | |
23868 | # include <unistd.h> | |
23869 | #endif /* HAVE_UNISTD_H */ | |
23870 | #if defined(HAVE_DIRENT_H) | |
23871 | # include <dirent.h> | |
23872 | #else | |
23873 | # define dirent direct | |
23874 | # ifdef HAVE_SYS_NDIR_H | |
23875 | # include <sys/ndir.h> | |
23876 | # endif /* SYSNDIR */ | |
23877 | # ifdef HAVE_SYS_DIR_H | |
23878 | # include <sys/dir.h> | |
23879 | # endif /* SYSDIR */ | |
23880 | # ifdef HAVE_NDIR_H | |
23881 | # include <ndir.h> | |
23882 | # endif | |
23883 | #endif /* HAVE_DIRENT_H */ | |
23884 | ||
23885 | int | |
23886 | main () | |
23887 | { | |
23888 | ||
23889 | struct dirent d; int z; z = d.d_namlen; | |
23890 | ||
23891 | ; | |
23892 | return 0; | |
23893 | } | |
23894 | _ACEOF | |
23895 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
23896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
23897 | (eval $ac_compile) 2>conftest.er1 | |
4931aca6 | 23898 | ac_status=$? |
a82a04b3 CR |
23899 | grep -v '^ *+' conftest.er1 >conftest.err |
23900 | rm -f conftest.er1 | |
23901 | cat conftest.err >&5 | |
23902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4931aca6 | 23903 | (exit $ac_status); } && |
a82a04b3 CR |
23904 | { ac_try='test -z "$ac_c_werror_flag" |
23905 | || test ! -s conftest.err' | |
23906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4931aca6 CR |
23907 | (eval $ac_try) 2>&5 |
23908 | ac_status=$? | |
a82a04b3 CR |
23909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23910 | (exit $ac_status); }; } && | |
23911 | { ac_try='test -s conftest.$ac_objext' | |
23912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23913 | (eval $ac_try) 2>&5 | |
23914 | ac_status=$? | |
23915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4931aca6 CR |
23916 | (exit $ac_status); }; }; then |
23917 | bash_cv_dirent_has_d_namlen=yes | |
23918 | else | |
23919 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
23920 | sed 's/^/| /' conftest.$ac_ext >&5 |
23921 | ||
4931aca6 CR |
23922 | bash_cv_dirent_has_d_namlen=no |
23923 | fi | |
a82a04b3 | 23924 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4931aca6 CR |
23925 | fi |
23926 | ||
a82a04b3 | 23927 | echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5 |
4931aca6 CR |
23928 | echo "${ECHO_T}$bash_cv_dirent_has_d_namlen" >&6 |
23929 | if test $bash_cv_dirent_has_d_namlen = yes; then | |
a82a04b3 | 23930 | cat >>confdefs.h <<\_ACEOF |
4931aca6 | 23931 | #define HAVE_STRUCT_DIRENT_D_NAMLEN 1 |
a82a04b3 | 23932 | _ACEOF |
d166f048 JA |
23933 | |
23934 | fi | |
23935 | ||
a82a04b3 | 23936 | echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5 |
f73dda09 JA |
23937 | echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6 |
23938 | if test "${bash_cv_struct_winsize_header+set}" = set; then | |
23939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d166f048 | 23940 | else |
f73dda09 | 23941 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
23942 | /* confdefs.h. */ |
23943 | _ACEOF | |
23944 | cat confdefs.h >>conftest.$ac_ext | |
23945 | cat >>conftest.$ac_ext <<_ACEOF | |
23946 | /* end confdefs.h. */ | |
d166f048 JA |
23947 | #include <sys/types.h> |
23948 | #include <sys/ioctl.h> | |
f73dda09 JA |
23949 | int |
23950 | main () | |
23951 | { | |
d166f048 | 23952 | struct winsize x; |
f73dda09 JA |
23953 | ; |
23954 | return 0; | |
23955 | } | |
23956 | _ACEOF | |
23957 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
23958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
23959 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 23960 | ac_status=$? |
a82a04b3 CR |
23961 | grep -v '^ *+' conftest.er1 >conftest.err |
23962 | rm -f conftest.er1 | |
23963 | cat conftest.err >&5 | |
23964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 23965 | (exit $ac_status); } && |
a82a04b3 CR |
23966 | { ac_try='test -z "$ac_c_werror_flag" |
23967 | || test ! -s conftest.err' | |
23968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
23969 | (eval $ac_try) 2>&5 |
23970 | ac_status=$? | |
a82a04b3 CR |
23971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23972 | (exit $ac_status); }; } && | |
23973 | { ac_try='test -s conftest.$ac_objext' | |
23974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23975 | (eval $ac_try) 2>&5 | |
23976 | ac_status=$? | |
23977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 23978 | (exit $ac_status); }; }; then |
cce855bc JA |
23979 | bash_cv_struct_winsize_header=ioctl_h |
23980 | else | |
f73dda09 | 23981 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
23982 | sed 's/^/| /' conftest.$ac_ext >&5 |
23983 | ||
f73dda09 | 23984 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
23985 | /* confdefs.h. */ |
23986 | _ACEOF | |
23987 | cat confdefs.h >>conftest.$ac_ext | |
23988 | cat >>conftest.$ac_ext <<_ACEOF | |
23989 | /* end confdefs.h. */ | |
cce855bc JA |
23990 | #include <sys/types.h> |
23991 | #include <termios.h> | |
f73dda09 JA |
23992 | int |
23993 | main () | |
23994 | { | |
cce855bc | 23995 | struct winsize x; |
f73dda09 JA |
23996 | ; |
23997 | return 0; | |
23998 | } | |
23999 | _ACEOF | |
24000 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
24001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
24002 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 24003 | ac_status=$? |
a82a04b3 CR |
24004 | grep -v '^ *+' conftest.er1 >conftest.err |
24005 | rm -f conftest.er1 | |
24006 | cat conftest.err >&5 | |
24007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 24008 | (exit $ac_status); } && |
a82a04b3 CR |
24009 | { ac_try='test -z "$ac_c_werror_flag" |
24010 | || test ! -s conftest.err' | |
24011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24012 | (eval $ac_try) 2>&5 | |
24013 | ac_status=$? | |
24014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24015 | (exit $ac_status); }; } && | |
24016 | { ac_try='test -s conftest.$ac_objext' | |
24017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
24018 | (eval $ac_try) 2>&5 |
24019 | ac_status=$? | |
a82a04b3 | 24020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 24021 | (exit $ac_status); }; }; then |
cce855bc | 24022 | bash_cv_struct_winsize_header=termios_h |
d166f048 | 24023 | else |
f73dda09 | 24024 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
24025 | sed 's/^/| /' conftest.$ac_ext >&5 |
24026 | ||
f73dda09 | 24027 | bash_cv_struct_winsize_header=other |
cce855bc | 24028 | fi |
a82a04b3 | 24029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cce855bc | 24030 | |
d166f048 | 24031 | fi |
a82a04b3 | 24032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d166f048 JA |
24033 | fi |
24034 | ||
cce855bc | 24035 | if test $bash_cv_struct_winsize_header = ioctl_h; then |
a82a04b3 | 24036 | echo "$as_me:$LINENO: result: sys/ioctl.h" >&5 |
f73dda09 | 24037 | echo "${ECHO_T}sys/ioctl.h" >&6 |
a82a04b3 | 24038 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 24039 | #define STRUCT_WINSIZE_IN_SYS_IOCTL 1 |
a82a04b3 | 24040 | _ACEOF |
d166f048 | 24041 | |
cce855bc | 24042 | elif test $bash_cv_struct_winsize_header = termios_h; then |
a82a04b3 | 24043 | echo "$as_me:$LINENO: result: termios.h" >&5 |
f73dda09 | 24044 | echo "${ECHO_T}termios.h" >&6 |
a82a04b3 | 24045 | cat >>confdefs.h <<\_ACEOF |
cce855bc | 24046 | #define STRUCT_WINSIZE_IN_TERMIOS 1 |
a82a04b3 | 24047 | _ACEOF |
cce855bc JA |
24048 | |
24049 | else | |
a82a04b3 | 24050 | echo "$as_me:$LINENO: result: not found" >&5 |
f73dda09 | 24051 | echo "${ECHO_T}not found" >&6 |
d166f048 JA |
24052 | fi |
24053 | ||
a82a04b3 | 24054 | echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5 |
f73dda09 JA |
24055 | echo $ECHO_N "checking for struct timeval in sys/time.h and time.h... $ECHO_C" >&6 |
24056 | if test "${bash_cv_struct_timeval+set}" = set; then | |
24057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bb70624e | 24058 | else |
f73dda09 JA |
24059 | |
24060 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
24061 | /* confdefs.h. */ |
24062 | _ACEOF | |
24063 | cat confdefs.h >>conftest.$ac_ext | |
24064 | cat >>conftest.$ac_ext <<_ACEOF | |
24065 | /* end confdefs.h. */ | |
bb70624e | 24066 | #include <sys/time.h> |
f73dda09 JA |
24067 | |
24068 | _ACEOF | |
bb70624e | 24069 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
a82a04b3 | 24070 | $EGREP "struct timeval" >/dev/null 2>&1; then |
bb70624e JA |
24071 | bash_cv_struct_timeval=yes |
24072 | else | |
f73dda09 | 24073 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
24074 | /* confdefs.h. */ |
24075 | _ACEOF | |
24076 | cat confdefs.h >>conftest.$ac_ext | |
24077 | cat >>conftest.$ac_ext <<_ACEOF | |
24078 | /* end confdefs.h. */ | |
bb70624e | 24079 | #include <time.h> |
f73dda09 JA |
24080 | |
24081 | _ACEOF | |
bb70624e | 24082 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
a82a04b3 | 24083 | $EGREP "struct timeval" >/dev/null 2>&1; then |
bb70624e JA |
24084 | bash_cv_struct_timeval=yes |
24085 | else | |
bb70624e JA |
24086 | bash_cv_struct_timeval=no |
24087 | fi | |
24088 | rm -f conftest* | |
24089 | ||
24090 | fi | |
24091 | rm -f conftest* | |
24092 | ||
a82a04b3 | 24093 | |
bb70624e JA |
24094 | fi |
24095 | ||
a82a04b3 | 24096 | echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5 |
f73dda09 | 24097 | echo "${ECHO_T}$bash_cv_struct_timeval" >&6 |
bb70624e | 24098 | if test $bash_cv_struct_timeval = yes; then |
a82a04b3 | 24099 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 24100 | #define HAVE_TIMEVAL 1 |
a82a04b3 | 24101 | _ACEOF |
bb70624e JA |
24102 | |
24103 | fi | |
24104 | ||
a82a04b3 | 24105 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
f73dda09 JA |
24106 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
24107 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then | |
24108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24109 | else | |
24110 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
24111 | /* confdefs.h. */ |
24112 | _ACEOF | |
24113 | cat confdefs.h >>conftest.$ac_ext | |
24114 | cat >>conftest.$ac_ext <<_ACEOF | |
24115 | /* end confdefs.h. */ | |
f73dda09 JA |
24116 | $ac_includes_default |
24117 | int | |
24118 | main () | |
24119 | { | |
24120 | static struct stat ac_aggr; | |
24121 | if (ac_aggr.st_blocks) | |
24122 | return 0; | |
24123 | ; | |
24124 | return 0; | |
24125 | } | |
24126 | _ACEOF | |
24127 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
24128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
24129 | (eval $ac_compile) 2>conftest.er1 | |
24130 | ac_status=$? | |
24131 | grep -v '^ *+' conftest.er1 >conftest.err | |
24132 | rm -f conftest.er1 | |
24133 | cat conftest.err >&5 | |
24134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24135 | (exit $ac_status); } && | |
24136 | { ac_try='test -z "$ac_c_werror_flag" | |
24137 | || test ! -s conftest.err' | |
24138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24139 | (eval $ac_try) 2>&5 | |
24140 | ac_status=$? | |
24141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24142 | (exit $ac_status); }; } && | |
24143 | { ac_try='test -s conftest.$ac_objext' | |
24144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24145 | (eval $ac_try) 2>&5 | |
24146 | ac_status=$? | |
24147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24148 | (exit $ac_status); }; }; then | |
24149 | ac_cv_member_struct_stat_st_blocks=yes | |
24150 | else | |
24151 | echo "$as_me: failed program was:" >&5 | |
24152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24153 | ||
24154 | cat >conftest.$ac_ext <<_ACEOF | |
24155 | /* confdefs.h. */ | |
24156 | _ACEOF | |
24157 | cat confdefs.h >>conftest.$ac_ext | |
24158 | cat >>conftest.$ac_ext <<_ACEOF | |
24159 | /* end confdefs.h. */ | |
24160 | $ac_includes_default | |
24161 | int | |
24162 | main () | |
24163 | { | |
24164 | static struct stat ac_aggr; | |
24165 | if (sizeof ac_aggr.st_blocks) | |
24166 | return 0; | |
24167 | ; | |
24168 | return 0; | |
24169 | } | |
24170 | _ACEOF | |
24171 | rm -f conftest.$ac_objext | |
24172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24173 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 24174 | ac_status=$? |
a82a04b3 CR |
24175 | grep -v '^ *+' conftest.er1 >conftest.err |
24176 | rm -f conftest.er1 | |
24177 | cat conftest.err >&5 | |
24178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 24179 | (exit $ac_status); } && |
a82a04b3 CR |
24180 | { ac_try='test -z "$ac_c_werror_flag" |
24181 | || test ! -s conftest.err' | |
24182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24183 | (eval $ac_try) 2>&5 | |
24184 | ac_status=$? | |
24185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24186 | (exit $ac_status); }; } && | |
24187 | { ac_try='test -s conftest.$ac_objext' | |
24188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
24189 | (eval $ac_try) 2>&5 |
24190 | ac_status=$? | |
a82a04b3 | 24191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
24192 | (exit $ac_status); }; }; then |
24193 | ac_cv_member_struct_stat_st_blocks=yes | |
24194 | else | |
24195 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
24196 | sed 's/^/| /' conftest.$ac_ext >&5 |
24197 | ||
f73dda09 JA |
24198 | ac_cv_member_struct_stat_st_blocks=no |
24199 | fi | |
a82a04b3 CR |
24200 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
24201 | fi | |
24202 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 24203 | fi |
a82a04b3 | 24204 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
f73dda09 JA |
24205 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
24206 | if test $ac_cv_member_struct_stat_st_blocks = yes; then | |
24207 | ||
a82a04b3 | 24208 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 24209 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
a82a04b3 CR |
24210 | _ACEOF |
24211 | ||
f73dda09 JA |
24212 | |
24213 | fi | |
d166f048 | 24214 | |
a82a04b3 | 24215 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
7117c2d2 JA |
24216 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
24217 | if test "${ac_cv_struct_tm+set}" = set; then | |
24218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24219 | else | |
24220 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
24221 | /* confdefs.h. */ |
24222 | _ACEOF | |
24223 | cat confdefs.h >>conftest.$ac_ext | |
24224 | cat >>conftest.$ac_ext <<_ACEOF | |
24225 | /* end confdefs.h. */ | |
7117c2d2 JA |
24226 | #include <sys/types.h> |
24227 | #include <time.h> | |
24228 | ||
24229 | int | |
24230 | main () | |
24231 | { | |
24232 | struct tm *tp; tp->tm_sec; | |
24233 | ; | |
24234 | return 0; | |
24235 | } | |
24236 | _ACEOF | |
24237 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
24238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
24239 | (eval $ac_compile) 2>conftest.er1 | |
7117c2d2 | 24240 | ac_status=$? |
a82a04b3 CR |
24241 | grep -v '^ *+' conftest.er1 >conftest.err |
24242 | rm -f conftest.er1 | |
24243 | cat conftest.err >&5 | |
24244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7117c2d2 | 24245 | (exit $ac_status); } && |
a82a04b3 CR |
24246 | { ac_try='test -z "$ac_c_werror_flag" |
24247 | || test ! -s conftest.err' | |
24248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7117c2d2 JA |
24249 | (eval $ac_try) 2>&5 |
24250 | ac_status=$? | |
a82a04b3 CR |
24251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24252 | (exit $ac_status); }; } && | |
24253 | { ac_try='test -s conftest.$ac_objext' | |
24254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24255 | (eval $ac_try) 2>&5 | |
24256 | ac_status=$? | |
24257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7117c2d2 JA |
24258 | (exit $ac_status); }; }; then |
24259 | ac_cv_struct_tm=time.h | |
24260 | else | |
24261 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
24262 | sed 's/^/| /' conftest.$ac_ext >&5 |
24263 | ||
7117c2d2 JA |
24264 | ac_cv_struct_tm=sys/time.h |
24265 | fi | |
a82a04b3 | 24266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7117c2d2 | 24267 | fi |
a82a04b3 | 24268 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
7117c2d2 JA |
24269 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
24270 | if test $ac_cv_struct_tm = sys/time.h; then | |
24271 | ||
a82a04b3 | 24272 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 24273 | #define TM_IN_SYS_TIME 1 |
a82a04b3 | 24274 | _ACEOF |
7117c2d2 JA |
24275 | |
24276 | fi | |
24277 | ||
a82a04b3 | 24278 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
7117c2d2 JA |
24279 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
24280 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
24281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24282 | else | |
a82a04b3 CR |
24283 | cat >conftest.$ac_ext <<_ACEOF |
24284 | /* confdefs.h. */ | |
24285 | _ACEOF | |
24286 | cat confdefs.h >>conftest.$ac_ext | |
24287 | cat >>conftest.$ac_ext <<_ACEOF | |
24288 | /* end confdefs.h. */ | |
24289 | #include <sys/types.h> | |
24290 | #include <$ac_cv_struct_tm> | |
24291 | ||
24292 | ||
24293 | int | |
24294 | main () | |
24295 | { | |
24296 | static struct tm ac_aggr; | |
24297 | if (ac_aggr.tm_zone) | |
24298 | return 0; | |
24299 | ; | |
24300 | return 0; | |
24301 | } | |
24302 | _ACEOF | |
24303 | rm -f conftest.$ac_objext | |
24304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24305 | (eval $ac_compile) 2>conftest.er1 | |
24306 | ac_status=$? | |
24307 | grep -v '^ *+' conftest.er1 >conftest.err | |
24308 | rm -f conftest.er1 | |
24309 | cat conftest.err >&5 | |
24310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24311 | (exit $ac_status); } && | |
24312 | { ac_try='test -z "$ac_c_werror_flag" | |
24313 | || test ! -s conftest.err' | |
24314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24315 | (eval $ac_try) 2>&5 | |
24316 | ac_status=$? | |
24317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24318 | (exit $ac_status); }; } && | |
24319 | { ac_try='test -s conftest.$ac_objext' | |
24320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24321 | (eval $ac_try) 2>&5 | |
24322 | ac_status=$? | |
24323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24324 | (exit $ac_status); }; }; then | |
24325 | ac_cv_member_struct_tm_tm_zone=yes | |
24326 | else | |
24327 | echo "$as_me: failed program was:" >&5 | |
24328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24329 | ||
24330 | cat >conftest.$ac_ext <<_ACEOF | |
24331 | /* confdefs.h. */ | |
24332 | _ACEOF | |
24333 | cat confdefs.h >>conftest.$ac_ext | |
24334 | cat >>conftest.$ac_ext <<_ACEOF | |
24335 | /* end confdefs.h. */ | |
7117c2d2 JA |
24336 | #include <sys/types.h> |
24337 | #include <$ac_cv_struct_tm> | |
24338 | ||
a82a04b3 | 24339 | |
7117c2d2 JA |
24340 | int |
24341 | main () | |
24342 | { | |
24343 | static struct tm ac_aggr; | |
a82a04b3 | 24344 | if (sizeof ac_aggr.tm_zone) |
7117c2d2 JA |
24345 | return 0; |
24346 | ; | |
24347 | return 0; | |
24348 | } | |
24349 | _ACEOF | |
24350 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
24351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
24352 | (eval $ac_compile) 2>conftest.er1 | |
7117c2d2 | 24353 | ac_status=$? |
a82a04b3 CR |
24354 | grep -v '^ *+' conftest.er1 >conftest.err |
24355 | rm -f conftest.er1 | |
24356 | cat conftest.err >&5 | |
24357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7117c2d2 | 24358 | (exit $ac_status); } && |
a82a04b3 CR |
24359 | { ac_try='test -z "$ac_c_werror_flag" |
24360 | || test ! -s conftest.err' | |
24361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24362 | (eval $ac_try) 2>&5 | |
24363 | ac_status=$? | |
24364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24365 | (exit $ac_status); }; } && | |
24366 | { ac_try='test -s conftest.$ac_objext' | |
24367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7117c2d2 JA |
24368 | (eval $ac_try) 2>&5 |
24369 | ac_status=$? | |
a82a04b3 | 24370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7117c2d2 JA |
24371 | (exit $ac_status); }; }; then |
24372 | ac_cv_member_struct_tm_tm_zone=yes | |
24373 | else | |
24374 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
24375 | sed 's/^/| /' conftest.$ac_ext >&5 |
24376 | ||
7117c2d2 JA |
24377 | ac_cv_member_struct_tm_tm_zone=no |
24378 | fi | |
a82a04b3 CR |
24379 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
24380 | fi | |
24381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7117c2d2 | 24382 | fi |
a82a04b3 | 24383 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
7117c2d2 JA |
24384 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
24385 | if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
24386 | ||
a82a04b3 | 24387 | cat >>confdefs.h <<_ACEOF |
7117c2d2 | 24388 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
a82a04b3 CR |
24389 | _ACEOF |
24390 | ||
7117c2d2 JA |
24391 | |
24392 | fi | |
24393 | ||
24394 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
24395 | ||
a82a04b3 | 24396 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 24397 | #define HAVE_TM_ZONE 1 |
a82a04b3 | 24398 | _ACEOF |
7117c2d2 JA |
24399 | |
24400 | else | |
a82a04b3 | 24401 | echo "$as_me:$LINENO: checking for tzname" >&5 |
7117c2d2 JA |
24402 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
24403 | if test "${ac_cv_var_tzname+set}" = set; then | |
24404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24405 | else | |
24406 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
24407 | /* confdefs.h. */ |
24408 | _ACEOF | |
24409 | cat confdefs.h >>conftest.$ac_ext | |
24410 | cat >>conftest.$ac_ext <<_ACEOF | |
24411 | /* end confdefs.h. */ | |
7117c2d2 JA |
24412 | #include <time.h> |
24413 | #ifndef tzname /* For SGI. */ | |
24414 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
24415 | #endif | |
24416 | ||
24417 | int | |
24418 | main () | |
24419 | { | |
24420 | atoi(*tzname); | |
24421 | ; | |
24422 | return 0; | |
24423 | } | |
24424 | _ACEOF | |
24425 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
24426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
24427 | (eval $ac_link) 2>conftest.er1 | |
7117c2d2 | 24428 | ac_status=$? |
a82a04b3 CR |
24429 | grep -v '^ *+' conftest.er1 >conftest.err |
24430 | rm -f conftest.er1 | |
24431 | cat conftest.err >&5 | |
24432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7117c2d2 | 24433 | (exit $ac_status); } && |
a82a04b3 CR |
24434 | { ac_try='test -z "$ac_c_werror_flag" |
24435 | || test ! -s conftest.err' | |
24436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24437 | (eval $ac_try) 2>&5 | |
24438 | ac_status=$? | |
24439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24440 | (exit $ac_status); }; } && | |
24441 | { ac_try='test -s conftest$ac_exeext' | |
24442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7117c2d2 JA |
24443 | (eval $ac_try) 2>&5 |
24444 | ac_status=$? | |
a82a04b3 | 24445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7117c2d2 JA |
24446 | (exit $ac_status); }; }; then |
24447 | ac_cv_var_tzname=yes | |
24448 | else | |
24449 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
24450 | sed 's/^/| /' conftest.$ac_ext >&5 |
24451 | ||
7117c2d2 JA |
24452 | ac_cv_var_tzname=no |
24453 | fi | |
a82a04b3 CR |
24454 | rm -f conftest.err conftest.$ac_objext \ |
24455 | conftest$ac_exeext conftest.$ac_ext | |
7117c2d2 | 24456 | fi |
a82a04b3 | 24457 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
7117c2d2 JA |
24458 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
24459 | if test $ac_cv_var_tzname = yes; then | |
24460 | ||
a82a04b3 | 24461 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 24462 | #define HAVE_TZNAME 1 |
a82a04b3 | 24463 | _ACEOF |
7117c2d2 JA |
24464 | |
24465 | fi | |
24466 | fi | |
24467 | ||
a82a04b3 | 24468 | echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5 |
d3a24ed2 CR |
24469 | echo $ECHO_N "checking for struct timezone in sys/time.h and time.h... $ECHO_C" >&6 |
24470 | if test "${bash_cv_struct_timezone+set}" = set; then | |
24471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24472 | else | |
24473 | ||
24474 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
24475 | /* confdefs.h. */ |
24476 | _ACEOF | |
24477 | cat confdefs.h >>conftest.$ac_ext | |
24478 | cat >>conftest.$ac_ext <<_ACEOF | |
24479 | /* end confdefs.h. */ | |
d3a24ed2 CR |
24480 | #include <sys/time.h> |
24481 | ||
24482 | _ACEOF | |
24483 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
a82a04b3 | 24484 | $EGREP "struct timezone" >/dev/null 2>&1; then |
d3a24ed2 CR |
24485 | bash_cv_struct_timezone=yes |
24486 | else | |
24487 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
24488 | /* confdefs.h. */ |
24489 | _ACEOF | |
24490 | cat confdefs.h >>conftest.$ac_ext | |
24491 | cat >>conftest.$ac_ext <<_ACEOF | |
24492 | /* end confdefs.h. */ | |
d3a24ed2 CR |
24493 | #include <time.h> |
24494 | ||
24495 | _ACEOF | |
24496 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
a82a04b3 | 24497 | $EGREP "struct timezone" >/dev/null 2>&1; then |
d3a24ed2 CR |
24498 | bash_cv_struct_timezone=yes |
24499 | else | |
24500 | bash_cv_struct_timezone=no | |
24501 | fi | |
24502 | rm -f conftest* | |
24503 | ||
24504 | fi | |
24505 | rm -f conftest* | |
24506 | ||
a82a04b3 | 24507 | |
d3a24ed2 CR |
24508 | fi |
24509 | ||
a82a04b3 | 24510 | echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5 |
d3a24ed2 CR |
24511 | echo "${ECHO_T}$bash_cv_struct_timezone" >&6 |
24512 | if test $bash_cv_struct_timezone = yes; then | |
a82a04b3 | 24513 | cat >>confdefs.h <<\_ACEOF |
d3a24ed2 | 24514 | #define HAVE_STRUCT_TIMEZONE 1 |
a82a04b3 | 24515 | _ACEOF |
d3a24ed2 CR |
24516 | |
24517 | fi | |
24518 | ||
a82a04b3 CR |
24519 | |
24520 | echo "$as_me:$LINENO: checking for the existence of strsignal" >&5 | |
f73dda09 JA |
24521 | echo $ECHO_N "checking for the existence of strsignal... $ECHO_C" >&6 |
24522 | if test "${bash_cv_have_strsignal+set}" = set; then | |
24523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 24524 | else |
f73dda09 | 24525 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
24526 | /* confdefs.h. */ |
24527 | _ACEOF | |
24528 | cat confdefs.h >>conftest.$ac_ext | |
24529 | cat >>conftest.$ac_ext <<_ACEOF | |
24530 | /* end confdefs.h. */ | |
ccc6cda3 JA |
24531 | #include <sys/types.h> |
24532 | #include <signal.h> | |
f73dda09 JA |
24533 | int |
24534 | main () | |
24535 | { | |
ccc6cda3 | 24536 | char *s = (char *)strsignal(2); |
f73dda09 JA |
24537 | ; |
24538 | return 0; | |
24539 | } | |
24540 | _ACEOF | |
24541 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
24542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
24543 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 24544 | ac_status=$? |
a82a04b3 CR |
24545 | grep -v '^ *+' conftest.er1 >conftest.err |
24546 | rm -f conftest.er1 | |
24547 | cat conftest.err >&5 | |
24548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 24549 | (exit $ac_status); } && |
a82a04b3 CR |
24550 | { ac_try='test -z "$ac_c_werror_flag" |
24551 | || test ! -s conftest.err' | |
24552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24553 | (eval $ac_try) 2>&5 | |
24554 | ac_status=$? | |
24555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24556 | (exit $ac_status); }; } && | |
24557 | { ac_try='test -s conftest$ac_exeext' | |
24558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
24559 | (eval $ac_try) 2>&5 |
24560 | ac_status=$? | |
a82a04b3 | 24561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 24562 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
24563 | bash_cv_have_strsignal=yes |
24564 | else | |
f73dda09 | 24565 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
24566 | sed 's/^/| /' conftest.$ac_ext >&5 |
24567 | ||
f73dda09 | 24568 | bash_cv_have_strsignal=no |
ccc6cda3 | 24569 | fi |
a82a04b3 CR |
24570 | rm -f conftest.err conftest.$ac_objext \ |
24571 | conftest$ac_exeext conftest.$ac_ext | |
ccc6cda3 JA |
24572 | fi |
24573 | ||
a82a04b3 | 24574 | echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5 |
f73dda09 | 24575 | echo "${ECHO_T}$bash_cv_have_strsignal" >&6 |
ccc6cda3 | 24576 | if test $bash_cv_have_strsignal = yes; then |
a82a04b3 | 24577 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 24578 | #define HAVE_STRSIGNAL 1 |
a82a04b3 | 24579 | _ACEOF |
ccc6cda3 JA |
24580 | |
24581 | fi | |
24582 | ||
a82a04b3 | 24583 | echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5 |
f73dda09 JA |
24584 | echo $ECHO_N "checking if opendir() opens non-directories... $ECHO_C" >&6 |
24585 | if test "${bash_cv_opendir_not_robust+set}" = set; then | |
24586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 JA |
24587 | else |
24588 | if test "$cross_compiling" = yes; then | |
a82a04b3 | 24589 | { echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5 |
f73dda09 | 24590 | echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;} |
cce855bc JA |
24591 | bash_cv_opendir_not_robust=no |
24592 | ||
ccc6cda3 | 24593 | else |
f73dda09 | 24594 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
24595 | /* confdefs.h. */ |
24596 | _ACEOF | |
24597 | cat confdefs.h >>conftest.$ac_ext | |
24598 | cat >>conftest.$ac_ext <<_ACEOF | |
24599 | /* end confdefs.h. */ | |
ccc6cda3 JA |
24600 | |
24601 | #include <stdio.h> | |
24602 | #include <sys/types.h> | |
24603 | #include <fcntl.h> | |
24604 | #ifdef HAVE_UNISTD_H | |
24605 | # include <unistd.h> | |
24606 | #endif /* HAVE_UNISTD_H */ | |
24607 | #if defined(HAVE_DIRENT_H) | |
24608 | # include <dirent.h> | |
24609 | #else | |
24610 | # define dirent direct | |
24611 | # ifdef HAVE_SYS_NDIR_H | |
24612 | # include <sys/ndir.h> | |
24613 | # endif /* SYSNDIR */ | |
24614 | # ifdef HAVE_SYS_DIR_H | |
24615 | # include <sys/dir.h> | |
24616 | # endif /* SYSDIR */ | |
24617 | # ifdef HAVE_NDIR_H | |
24618 | # include <ndir.h> | |
24619 | # endif | |
24620 | #endif /* HAVE_DIRENT_H */ | |
24621 | main() | |
24622 | { | |
24623 | DIR *dir; | |
bb70624e JA |
24624 | int fd, err; |
24625 | err = mkdir("/tmp/bash-aclocal", 0700); | |
24626 | if (err < 0) { | |
24627 | perror("mkdir"); | |
24628 | exit(1); | |
24629 | } | |
24630 | unlink("/tmp/bash-aclocal/not_a_directory"); | |
24631 | fd = open("/tmp/bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666); | |
ccc6cda3 JA |
24632 | write(fd, "\n", 1); |
24633 | close(fd); | |
bb70624e JA |
24634 | dir = opendir("/tmp/bash-aclocal/not_a_directory"); |
24635 | unlink("/tmp/bash-aclocal/not_a_directory"); | |
24636 | rmdir("/tmp/bash-aclocal"); | |
ccc6cda3 JA |
24637 | exit (dir == 0); |
24638 | } | |
f73dda09 JA |
24639 | _ACEOF |
24640 | rm -f conftest$ac_exeext | |
a82a04b3 | 24641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
24642 | (eval $ac_link) 2>&5 |
24643 | ac_status=$? | |
a82a04b3 | 24644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 24645 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 24646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
24647 | (eval $ac_try) 2>&5 |
24648 | ac_status=$? | |
a82a04b3 | 24649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 24650 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
24651 | bash_cv_opendir_not_robust=yes |
24652 | else | |
f73dda09 JA |
24653 | echo "$as_me: program exited with status $ac_status" >&5 |
24654 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
24655 | sed 's/^/| /' conftest.$ac_ext >&5 |
24656 | ||
24657 | ( exit $ac_status ) | |
f73dda09 | 24658 | bash_cv_opendir_not_robust=no |
ccc6cda3 | 24659 | fi |
a82a04b3 | 24660 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 24661 | fi |
ccc6cda3 JA |
24662 | fi |
24663 | ||
a82a04b3 | 24664 | echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5 |
f73dda09 | 24665 | echo "${ECHO_T}$bash_cv_opendir_not_robust" >&6 |
ccc6cda3 | 24666 | if test $bash_cv_opendir_not_robust = yes; then |
a82a04b3 | 24667 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 24668 | #define OPENDIR_NOT_ROBUST 1 |
a82a04b3 | 24669 | _ACEOF |
ccc6cda3 JA |
24670 | |
24671 | fi | |
24672 | ||
a82a04b3 | 24673 | echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5 |
f73dda09 JA |
24674 | echo $ECHO_N "checking whether ulimit can substitute for getdtablesize... $ECHO_C" >&6 |
24675 | if test "${bash_cv_ulimit_maxfds+set}" = set; then | |
24676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 JA |
24677 | else |
24678 | if test "$cross_compiling" = yes; then | |
a82a04b3 | 24679 | { echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5 |
f73dda09 | 24680 | echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;} |
cce855bc JA |
24681 | bash_cv_ulimit_maxfds=no |
24682 | ||
ccc6cda3 | 24683 | else |
f73dda09 | 24684 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
24685 | /* confdefs.h. */ |
24686 | _ACEOF | |
24687 | cat confdefs.h >>conftest.$ac_ext | |
24688 | cat >>conftest.$ac_ext <<_ACEOF | |
24689 | /* end confdefs.h. */ | |
ccc6cda3 JA |
24690 | |
24691 | main() | |
24692 | { | |
24693 | long maxfds = ulimit(4, 0L); | |
24694 | exit (maxfds == -1L); | |
24695 | } | |
24696 | ||
f73dda09 JA |
24697 | _ACEOF |
24698 | rm -f conftest$ac_exeext | |
a82a04b3 | 24699 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
24700 | (eval $ac_link) 2>&5 |
24701 | ac_status=$? | |
a82a04b3 | 24702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 24703 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 24704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
24705 | (eval $ac_try) 2>&5 |
24706 | ac_status=$? | |
a82a04b3 | 24707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 24708 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
24709 | bash_cv_ulimit_maxfds=yes |
24710 | else | |
f73dda09 JA |
24711 | echo "$as_me: program exited with status $ac_status" >&5 |
24712 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
24713 | sed 's/^/| /' conftest.$ac_ext >&5 |
24714 | ||
24715 | ( exit $ac_status ) | |
f73dda09 | 24716 | bash_cv_ulimit_maxfds=no |
ccc6cda3 | 24717 | fi |
a82a04b3 | 24718 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 24719 | fi |
ccc6cda3 JA |
24720 | fi |
24721 | ||
a82a04b3 | 24722 | echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5 |
f73dda09 | 24723 | echo "${ECHO_T}$bash_cv_ulimit_maxfds" >&6 |
ccc6cda3 | 24724 | if test $bash_cv_ulimit_maxfds = yes; then |
a82a04b3 | 24725 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 24726 | #define ULIMIT_MAXFDS 1 |
a82a04b3 | 24727 | _ACEOF |
ccc6cda3 JA |
24728 | |
24729 | fi | |
24730 | ||
a82a04b3 | 24731 | echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5 |
f73dda09 JA |
24732 | echo $ECHO_N "checking to see if getenv can be redefined... $ECHO_C" >&6 |
24733 | if test "${bash_cv_getenv_redef+set}" = set; then | |
24734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 JA |
24735 | else |
24736 | if test "$cross_compiling" = yes; then | |
a82a04b3 | 24737 | { echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5 |
f73dda09 | 24738 | echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;} |
cce855bc JA |
24739 | bash_cv_getenv_redef=yes |
24740 | ||
ccc6cda3 | 24741 | else |
f73dda09 | 24742 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
24743 | /* confdefs.h. */ |
24744 | _ACEOF | |
24745 | cat confdefs.h >>conftest.$ac_ext | |
24746 | cat >>conftest.$ac_ext <<_ACEOF | |
24747 | /* end confdefs.h. */ | |
ccc6cda3 JA |
24748 | |
24749 | #ifdef HAVE_UNISTD_H | |
24750 | # include <unistd.h> | |
24751 | #endif | |
24752 | #ifndef __STDC__ | |
24753 | # ifndef const | |
24754 | # define const | |
24755 | # endif | |
24756 | #endif | |
24757 | char * | |
24758 | getenv (name) | |
24759 | #if defined (__linux__) || defined (__bsdi__) || defined (convex) | |
24760 | const char *name; | |
24761 | #else | |
24762 | char const *name; | |
24763 | #endif /* !__linux__ && !__bsdi__ && !convex */ | |
24764 | { | |
24765 | return "42"; | |
24766 | } | |
24767 | main() | |
24768 | { | |
24769 | char *s; | |
24770 | /* The next allows this program to run, but does not allow bash to link | |
24771 | when it redefines getenv. I'm not really interested in figuring out | |
24772 | why not. */ | |
24773 | #if defined (NeXT) | |
24774 | exit(1); | |
24775 | #endif | |
24776 | s = getenv("ABCDE"); | |
24777 | exit(s == 0); /* force optimizer to leave getenv in */ | |
24778 | } | |
24779 | ||
f73dda09 JA |
24780 | _ACEOF |
24781 | rm -f conftest$ac_exeext | |
a82a04b3 | 24782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
24783 | (eval $ac_link) 2>&5 |
24784 | ac_status=$? | |
a82a04b3 | 24785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 24786 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 24787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
24788 | (eval $ac_try) 2>&5 |
24789 | ac_status=$? | |
a82a04b3 | 24790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 24791 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
24792 | bash_cv_getenv_redef=yes |
24793 | else | |
f73dda09 JA |
24794 | echo "$as_me: program exited with status $ac_status" >&5 |
24795 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
24796 | sed 's/^/| /' conftest.$ac_ext >&5 |
24797 | ||
24798 | ( exit $ac_status ) | |
f73dda09 | 24799 | bash_cv_getenv_redef=no |
ccc6cda3 | 24800 | fi |
a82a04b3 | 24801 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 24802 | fi |
ccc6cda3 JA |
24803 | fi |
24804 | ||
a82a04b3 | 24805 | echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5 |
f73dda09 | 24806 | echo "${ECHO_T}$bash_cv_getenv_redef" >&6 |
ccc6cda3 | 24807 | if test $bash_cv_getenv_redef = yes; then |
a82a04b3 | 24808 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 24809 | #define CAN_REDEFINE_GETENV 1 |
a82a04b3 | 24810 | _ACEOF |
ccc6cda3 JA |
24811 | |
24812 | fi | |
24813 | ||
7117c2d2 | 24814 | if test "$ac_cv_func_getcwd" = "yes"; then |
a82a04b3 | 24815 | echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory" >&5 |
f085a21f CR |
24816 | echo $ECHO_N "checking if getcwd() will dynamically allocate memory... $ECHO_C" >&6 |
24817 | if test "${bash_cv_getcwd_malloc+set}" = set; then | |
f73dda09 | 24818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ccc6cda3 JA |
24819 | else |
24820 | if test "$cross_compiling" = yes; then | |
a82a04b3 | 24821 | { echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5 |
f085a21f CR |
24822 | echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;} |
24823 | bash_cv_getcwd_malloc=no | |
cce855bc | 24824 | |
ccc6cda3 | 24825 | else |
f73dda09 | 24826 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
24827 | /* confdefs.h. */ |
24828 | _ACEOF | |
24829 | cat confdefs.h >>conftest.$ac_ext | |
24830 | cat >>conftest.$ac_ext <<_ACEOF | |
24831 | /* end confdefs.h. */ | |
ccc6cda3 JA |
24832 | |
24833 | #include <stdio.h> | |
24834 | #ifdef HAVE_UNISTD_H | |
24835 | #include <unistd.h> | |
24836 | #endif | |
24837 | ||
ccc6cda3 JA |
24838 | main() |
24839 | { | |
f085a21f CR |
24840 | char *xpwd; |
24841 | xpwd = getcwd(0, 0); | |
24842 | exit (xpwd == 0); | |
ccc6cda3 JA |
24843 | } |
24844 | ||
f73dda09 JA |
24845 | _ACEOF |
24846 | rm -f conftest$ac_exeext | |
a82a04b3 | 24847 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
24848 | (eval $ac_link) 2>&5 |
24849 | ac_status=$? | |
a82a04b3 | 24850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 24851 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 24852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
24853 | (eval $ac_try) 2>&5 |
24854 | ac_status=$? | |
a82a04b3 | 24855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 24856 | (exit $ac_status); }; }; then |
f085a21f | 24857 | bash_cv_getcwd_malloc=yes |
ccc6cda3 | 24858 | else |
f73dda09 JA |
24859 | echo "$as_me: program exited with status $ac_status" >&5 |
24860 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
24861 | sed 's/^/| /' conftest.$ac_ext >&5 |
24862 | ||
24863 | ( exit $ac_status ) | |
f085a21f | 24864 | bash_cv_getcwd_malloc=no |
ccc6cda3 | 24865 | fi |
a82a04b3 | 24866 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 24867 | fi |
ccc6cda3 JA |
24868 | fi |
24869 | ||
a82a04b3 | 24870 | echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5 |
f085a21f CR |
24871 | echo "${ECHO_T}$bash_cv_getcwd_malloc" >&6 |
24872 | if test $bash_cv_getcwd_malloc = no; then | |
a82a04b3 | 24873 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 24874 | #define GETCWD_BROKEN 1 |
a82a04b3 CR |
24875 | _ACEOF |
24876 | ||
24877 | case $LIBOBJS in | |
24878 | "getcwd.$ac_objext" | \ | |
24879 | *" getcwd.$ac_objext" | \ | |
24880 | "getcwd.$ac_objext "* | \ | |
24881 | *" getcwd.$ac_objext "* ) ;; | |
24882 | *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" ;; | |
24883 | esac | |
ccc6cda3 JA |
24884 | |
24885 | fi | |
24886 | ||
ccc6cda3 JA |
24887 | fi |
24888 | ||
a82a04b3 | 24889 | echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5 |
f73dda09 JA |
24890 | echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6 |
24891 | if test "${bash_cv_func_sigsetjmp+set}" = set; then | |
24892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 JA |
24893 | else |
24894 | if test "$cross_compiling" = yes; then | |
a82a04b3 | 24895 | { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5 |
f73dda09 | 24896 | echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;} |
cce855bc JA |
24897 | bash_cv_func_sigsetjmp=missing |
24898 | ||
ccc6cda3 | 24899 | else |
f73dda09 | 24900 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
24901 | /* confdefs.h. */ |
24902 | _ACEOF | |
24903 | cat confdefs.h >>conftest.$ac_ext | |
24904 | cat >>conftest.$ac_ext <<_ACEOF | |
24905 | /* end confdefs.h. */ | |
ccc6cda3 JA |
24906 | |
24907 | #ifdef HAVE_UNISTD_H | |
24908 | #include <unistd.h> | |
24909 | #endif | |
24910 | #include <sys/types.h> | |
24911 | #include <signal.h> | |
24912 | #include <setjmp.h> | |
24913 | ||
24914 | main() | |
24915 | { | |
24916 | #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS) | |
24917 | exit (1); | |
24918 | #else | |
24919 | ||
24920 | int code; | |
24921 | sigset_t set, oset; | |
24922 | sigjmp_buf xx; | |
24923 | ||
24924 | /* get the mask */ | |
24925 | sigemptyset(&set); | |
24926 | sigemptyset(&oset); | |
24927 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set); | |
24928 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset); | |
24929 | ||
24930 | /* save it */ | |
24931 | code = sigsetjmp(xx, 1); | |
24932 | if (code) | |
24933 | exit(0); /* could get sigmask and compare to oset here. */ | |
24934 | ||
24935 | /* change it */ | |
24936 | sigaddset(&set, SIGINT); | |
24937 | sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL); | |
24938 | ||
24939 | /* and siglongjmp */ | |
24940 | siglongjmp(xx, 10); | |
24941 | exit(1); | |
24942 | #endif | |
24943 | } | |
f73dda09 JA |
24944 | _ACEOF |
24945 | rm -f conftest$ac_exeext | |
a82a04b3 | 24946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
24947 | (eval $ac_link) 2>&5 |
24948 | ac_status=$? | |
a82a04b3 | 24949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 24950 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 24951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
24952 | (eval $ac_try) 2>&5 |
24953 | ac_status=$? | |
a82a04b3 | 24954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 24955 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
24956 | bash_cv_func_sigsetjmp=present |
24957 | else | |
f73dda09 JA |
24958 | echo "$as_me: program exited with status $ac_status" >&5 |
24959 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
24960 | sed 's/^/| /' conftest.$ac_ext >&5 |
24961 | ||
24962 | ( exit $ac_status ) | |
f73dda09 | 24963 | bash_cv_func_sigsetjmp=missing |
ccc6cda3 | 24964 | fi |
a82a04b3 | 24965 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 24966 | fi |
ccc6cda3 JA |
24967 | fi |
24968 | ||
a82a04b3 | 24969 | echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5 |
f73dda09 | 24970 | echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6 |
ccc6cda3 | 24971 | if test $bash_cv_func_sigsetjmp = present; then |
a82a04b3 | 24972 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 24973 | #define HAVE_POSIX_SIGSETJMP 1 |
a82a04b3 | 24974 | _ACEOF |
ccc6cda3 JA |
24975 | |
24976 | fi | |
24977 | ||
a82a04b3 CR |
24978 | |
24979 | echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5 | |
f73dda09 JA |
24980 | echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6 |
24981 | if test "${bash_cv_func_strcoll_broken+set}" = set; then | |
24982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d166f048 JA |
24983 | else |
24984 | if test "$cross_compiling" = yes; then | |
a82a04b3 | 24985 | { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5 |
f73dda09 | 24986 | echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;} |
cce855bc JA |
24987 | bash_cv_func_strcoll_broken=no |
24988 | ||
d166f048 | 24989 | else |
f73dda09 | 24990 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
24991 | /* confdefs.h. */ |
24992 | _ACEOF | |
24993 | cat confdefs.h >>conftest.$ac_ext | |
24994 | cat >>conftest.$ac_ext <<_ACEOF | |
24995 | /* end confdefs.h. */ | |
d166f048 JA |
24996 | |
24997 | #include <stdio.h> | |
24998 | #if defined (HAVE_LOCALE_H) | |
24999 | #include <locale.h> | |
25000 | #endif | |
25001 | ||
25002 | main(c, v) | |
25003 | int c; | |
25004 | char *v[]; | |
25005 | { | |
25006 | int r1, r2; | |
25007 | char *deflocale, *defcoll; | |
25008 | ||
25009 | #ifdef HAVE_SETLOCALE | |
25010 | deflocale = setlocale(LC_ALL, ""); | |
25011 | defcoll = setlocale(LC_COLLATE, ""); | |
25012 | #endif | |
25013 | ||
25014 | #ifdef HAVE_STRCOLL | |
25015 | /* These two values are taken from tests/glob-test. */ | |
25016 | r1 = strcoll("abd", "aXd"); | |
25017 | #else | |
25018 | r1 = 0; | |
25019 | #endif | |
25020 | r2 = strcmp("abd", "aXd"); | |
25021 | ||
25022 | /* These two should both be greater than 0. It is permissible for | |
25023 | a system to return different values, as long as the sign is the | |
25024 | same. */ | |
25025 | ||
25026 | /* Exit with 1 (failure) if these two values are both > 0, since | |
25027 | this tests whether strcoll(3) is broken with respect to strcmp(3) | |
25028 | in the default locale. */ | |
25029 | exit (r1 > 0 && r2 > 0); | |
25030 | } | |
25031 | ||
f73dda09 JA |
25032 | _ACEOF |
25033 | rm -f conftest$ac_exeext | |
a82a04b3 | 25034 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
25035 | (eval $ac_link) 2>&5 |
25036 | ac_status=$? | |
a82a04b3 | 25037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25038 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 25039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
25040 | (eval $ac_try) 2>&5 |
25041 | ac_status=$? | |
a82a04b3 | 25042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25043 | (exit $ac_status); }; }; then |
d166f048 JA |
25044 | bash_cv_func_strcoll_broken=yes |
25045 | else | |
f73dda09 JA |
25046 | echo "$as_me: program exited with status $ac_status" >&5 |
25047 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
25048 | sed 's/^/| /' conftest.$ac_ext >&5 |
25049 | ||
25050 | ( exit $ac_status ) | |
f73dda09 | 25051 | bash_cv_func_strcoll_broken=no |
d166f048 | 25052 | fi |
a82a04b3 | 25053 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d166f048 | 25054 | fi |
d166f048 JA |
25055 | fi |
25056 | ||
a82a04b3 | 25057 | echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5 |
f73dda09 | 25058 | echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6 |
d166f048 | 25059 | if test $bash_cv_func_strcoll_broken = yes; then |
a82a04b3 | 25060 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 25061 | #define STRCOLL_BROKEN 1 |
a82a04b3 | 25062 | _ACEOF |
d166f048 JA |
25063 | |
25064 | fi | |
25065 | ||
a82a04b3 CR |
25066 | |
25067 | ||
7117c2d2 JA |
25068 | if test "$ac_cv_func_putenv" = "yes"; then |
25069 | ||
a82a04b3 CR |
25070 | |
25071 | ||
25072 | echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5 | |
7117c2d2 JA |
25073 | echo $ECHO_N "checking for standard-conformant putenv declaration... $ECHO_C" >&6 |
25074 | if test "${bash_cv_std_putenv+set}" = set; then | |
25075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25076 | else | |
25077 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
25078 | /* confdefs.h. */ |
25079 | _ACEOF | |
25080 | cat confdefs.h >>conftest.$ac_ext | |
25081 | cat >>conftest.$ac_ext <<_ACEOF | |
25082 | /* end confdefs.h. */ | |
7117c2d2 JA |
25083 | |
25084 | #if STDC_HEADERS | |
25085 | #include <stdlib.h> | |
25086 | #include <stddef.h> | |
25087 | #endif | |
25088 | #ifndef __STDC__ | |
25089 | # ifndef const | |
25090 | # define const | |
25091 | # endif | |
25092 | #endif | |
25093 | #ifdef PROTOTYPES | |
25094 | extern int putenv (char *); | |
25095 | #else | |
25096 | extern int putenv (); | |
25097 | #endif | |
25098 | ||
25099 | int | |
25100 | main () | |
25101 | { | |
25102 | return (putenv == 0); | |
25103 | ; | |
25104 | return 0; | |
25105 | } | |
25106 | _ACEOF | |
25107 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
25108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
25109 | (eval $ac_link) 2>conftest.er1 | |
7117c2d2 | 25110 | ac_status=$? |
a82a04b3 CR |
25111 | grep -v '^ *+' conftest.er1 >conftest.err |
25112 | rm -f conftest.er1 | |
25113 | cat conftest.err >&5 | |
25114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7117c2d2 | 25115 | (exit $ac_status); } && |
a82a04b3 CR |
25116 | { ac_try='test -z "$ac_c_werror_flag" |
25117 | || test ! -s conftest.err' | |
25118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25119 | (eval $ac_try) 2>&5 | |
25120 | ac_status=$? | |
25121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25122 | (exit $ac_status); }; } && | |
25123 | { ac_try='test -s conftest$ac_exeext' | |
25124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7117c2d2 JA |
25125 | (eval $ac_try) 2>&5 |
25126 | ac_status=$? | |
a82a04b3 | 25127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7117c2d2 JA |
25128 | (exit $ac_status); }; }; then |
25129 | bash_cv_std_putenv=yes | |
25130 | else | |
25131 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
25132 | sed 's/^/| /' conftest.$ac_ext >&5 |
25133 | ||
7117c2d2 JA |
25134 | bash_cv_std_putenv=no |
25135 | ||
25136 | fi | |
a82a04b3 CR |
25137 | rm -f conftest.err conftest.$ac_objext \ |
25138 | conftest$ac_exeext conftest.$ac_ext | |
7117c2d2 | 25139 | fi |
a82a04b3 | 25140 | echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5 |
7117c2d2 JA |
25141 | echo "${ECHO_T}$bash_cv_std_putenv" >&6 |
25142 | if test $bash_cv_std_putenv = yes; then | |
a82a04b3 | 25143 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 25144 | #define HAVE_STD_PUTENV 1 |
a82a04b3 | 25145 | _ACEOF |
7117c2d2 JA |
25146 | |
25147 | fi | |
25148 | ||
25149 | else | |
a82a04b3 | 25150 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 25151 | #define HAVE_STD_PUTENV 1 |
a82a04b3 | 25152 | _ACEOF |
7117c2d2 JA |
25153 | |
25154 | fi | |
25155 | if test "$ac_cv_func_unsetenv" = "yes"; then | |
25156 | ||
a82a04b3 CR |
25157 | |
25158 | ||
25159 | echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5 | |
7117c2d2 JA |
25160 | echo $ECHO_N "checking for standard-conformant unsetenv declaration... $ECHO_C" >&6 |
25161 | if test "${bash_cv_std_unsetenv+set}" = set; then | |
25162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25163 | else | |
25164 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
25165 | /* confdefs.h. */ |
25166 | _ACEOF | |
25167 | cat confdefs.h >>conftest.$ac_ext | |
25168 | cat >>conftest.$ac_ext <<_ACEOF | |
25169 | /* end confdefs.h. */ | |
7117c2d2 JA |
25170 | |
25171 | #if STDC_HEADERS | |
25172 | #include <stdlib.h> | |
25173 | #include <stddef.h> | |
25174 | #endif | |
25175 | #ifndef __STDC__ | |
25176 | # ifndef const | |
25177 | # define const | |
25178 | # endif | |
25179 | #endif | |
25180 | #ifdef PROTOTYPES | |
25181 | extern int unsetenv (const char *); | |
25182 | #else | |
25183 | extern int unsetenv (); | |
25184 | #endif | |
25185 | ||
25186 | int | |
25187 | main () | |
25188 | { | |
25189 | return (unsetenv == 0); | |
25190 | ; | |
25191 | return 0; | |
25192 | } | |
25193 | _ACEOF | |
25194 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
25195 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
25196 | (eval $ac_link) 2>conftest.er1 | |
7117c2d2 | 25197 | ac_status=$? |
a82a04b3 CR |
25198 | grep -v '^ *+' conftest.er1 >conftest.err |
25199 | rm -f conftest.er1 | |
25200 | cat conftest.err >&5 | |
25201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7117c2d2 | 25202 | (exit $ac_status); } && |
a82a04b3 CR |
25203 | { ac_try='test -z "$ac_c_werror_flag" |
25204 | || test ! -s conftest.err' | |
25205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25206 | (eval $ac_try) 2>&5 | |
25207 | ac_status=$? | |
25208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25209 | (exit $ac_status); }; } && | |
25210 | { ac_try='test -s conftest$ac_exeext' | |
25211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7117c2d2 JA |
25212 | (eval $ac_try) 2>&5 |
25213 | ac_status=$? | |
a82a04b3 | 25214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7117c2d2 JA |
25215 | (exit $ac_status); }; }; then |
25216 | bash_cv_std_unsetenv=yes | |
25217 | else | |
25218 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
25219 | sed 's/^/| /' conftest.$ac_ext >&5 |
25220 | ||
7117c2d2 JA |
25221 | bash_cv_std_unsetenv=no |
25222 | ||
25223 | fi | |
a82a04b3 CR |
25224 | rm -f conftest.err conftest.$ac_objext \ |
25225 | conftest$ac_exeext conftest.$ac_ext | |
7117c2d2 | 25226 | fi |
a82a04b3 | 25227 | echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5 |
7117c2d2 JA |
25228 | echo "${ECHO_T}$bash_cv_std_unsetenv" >&6 |
25229 | if test $bash_cv_std_unsetenv = yes; then | |
a82a04b3 | 25230 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 25231 | #define HAVE_STD_UNSETENV 1 |
a82a04b3 | 25232 | _ACEOF |
7117c2d2 JA |
25233 | |
25234 | fi | |
25235 | ||
25236 | else | |
a82a04b3 | 25237 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 25238 | #define HAVE_STD_UNSETENV 1 |
a82a04b3 | 25239 | _ACEOF |
7117c2d2 JA |
25240 | |
25241 | fi | |
25242 | ||
a82a04b3 | 25243 | echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5 |
f73dda09 JA |
25244 | echo $ECHO_N "checking for printf floating point output in hex notation... $ECHO_C" >&6 |
25245 | if test "${bash_cv_printf_a_format+set}" = set; then | |
25246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25247 | else | |
25248 | if test "$cross_compiling" = yes; then | |
a82a04b3 | 25249 | { echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5 |
f73dda09 JA |
25250 | echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;} |
25251 | bash_cv_printf_a_format=no | |
25252 | ||
25253 | else | |
25254 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
25255 | /* confdefs.h. */ |
25256 | _ACEOF | |
25257 | cat confdefs.h >>conftest.$ac_ext | |
25258 | cat >>conftest.$ac_ext <<_ACEOF | |
25259 | /* end confdefs.h. */ | |
f73dda09 JA |
25260 | |
25261 | #include <stdio.h> | |
25262 | #include <string.h> | |
25263 | ||
25264 | int | |
25265 | main() | |
25266 | { | |
25267 | double y = 0.0; | |
25268 | char abuf[1024]; | |
25269 | ||
25270 | sprintf(abuf, "%A", y); | |
25271 | exit(strchr(abuf, 'P') == (char *)0); | |
25272 | } | |
25273 | ||
25274 | _ACEOF | |
25275 | rm -f conftest$ac_exeext | |
a82a04b3 | 25276 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
25277 | (eval $ac_link) 2>&5 |
25278 | ac_status=$? | |
a82a04b3 | 25279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25280 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 25281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
25282 | (eval $ac_try) 2>&5 |
25283 | ac_status=$? | |
a82a04b3 | 25284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
25285 | (exit $ac_status); }; }; then |
25286 | bash_cv_printf_a_format=yes | |
25287 | else | |
25288 | echo "$as_me: program exited with status $ac_status" >&5 | |
25289 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
25290 | sed 's/^/| /' conftest.$ac_ext >&5 |
25291 | ||
25292 | ( exit $ac_status ) | |
f73dda09 JA |
25293 | bash_cv_printf_a_format=no |
25294 | fi | |
a82a04b3 | 25295 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f73dda09 JA |
25296 | fi |
25297 | fi | |
d166f048 | 25298 | |
a82a04b3 | 25299 | echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5 |
f73dda09 JA |
25300 | echo "${ECHO_T}$bash_cv_printf_a_format" >&6 |
25301 | if test $bash_cv_printf_a_format = yes; then | |
a82a04b3 | 25302 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 25303 | #define HAVE_PRINTF_A_FORMAT 1 |
a82a04b3 | 25304 | _ACEOF |
d166f048 | 25305 | |
f73dda09 | 25306 | fi |
ccc6cda3 | 25307 | |
a82a04b3 CR |
25308 | |
25309 | ||
25310 | ||
25311 | echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5 | |
f73dda09 JA |
25312 | echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6 |
25313 | if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then | |
25314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 JA |
25315 | else |
25316 | if test "$cross_compiling" = yes; then | |
a82a04b3 | 25317 | { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5 |
f73dda09 | 25318 | echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;} |
cce855bc JA |
25319 | bash_cv_must_reinstall_sighandlers=no |
25320 | ||
ccc6cda3 | 25321 | else |
f73dda09 | 25322 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
25323 | /* confdefs.h. */ |
25324 | _ACEOF | |
25325 | cat confdefs.h >>conftest.$ac_ext | |
25326 | cat >>conftest.$ac_ext <<_ACEOF | |
25327 | /* end confdefs.h. */ | |
ccc6cda3 JA |
25328 | |
25329 | #include <signal.h> | |
25330 | #ifdef HAVE_UNISTD_H | |
25331 | #include <unistd.h> | |
25332 | #endif | |
25333 | ||
25334 | typedef RETSIGTYPE sigfunc(); | |
25335 | ||
25336 | int nsigint; | |
25337 | ||
25338 | #ifdef HAVE_POSIX_SIGNALS | |
25339 | sigfunc * | |
25340 | set_signal_handler(sig, handler) | |
25341 | int sig; | |
25342 | sigfunc *handler; | |
25343 | { | |
25344 | struct sigaction act, oact; | |
25345 | act.sa_handler = handler; | |
25346 | act.sa_flags = 0; | |
25347 | sigemptyset (&act.sa_mask); | |
25348 | sigemptyset (&oact.sa_mask); | |
25349 | sigaction (sig, &act, &oact); | |
25350 | return (oact.sa_handler); | |
25351 | } | |
25352 | #else | |
25353 | #define set_signal_handler(s, h) signal(s, h) | |
25354 | #endif | |
25355 | ||
25356 | RETSIGTYPE | |
25357 | sigint(s) | |
25358 | int s; | |
25359 | { | |
25360 | nsigint++; | |
25361 | } | |
25362 | ||
25363 | main() | |
25364 | { | |
25365 | nsigint = 0; | |
25366 | set_signal_handler(SIGINT, sigint); | |
25367 | kill((int)getpid(), SIGINT); | |
25368 | kill((int)getpid(), SIGINT); | |
25369 | exit(nsigint != 2); | |
25370 | } | |
25371 | ||
f73dda09 JA |
25372 | _ACEOF |
25373 | rm -f conftest$ac_exeext | |
a82a04b3 | 25374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
25375 | (eval $ac_link) 2>&5 |
25376 | ac_status=$? | |
a82a04b3 | 25377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25378 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 25379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
25380 | (eval $ac_try) 2>&5 |
25381 | ac_status=$? | |
a82a04b3 | 25382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25383 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
25384 | bash_cv_must_reinstall_sighandlers=no |
25385 | else | |
f73dda09 JA |
25386 | echo "$as_me: program exited with status $ac_status" >&5 |
25387 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
25388 | sed 's/^/| /' conftest.$ac_ext >&5 |
25389 | ||
25390 | ( exit $ac_status ) | |
f73dda09 | 25391 | bash_cv_must_reinstall_sighandlers=yes |
ccc6cda3 | 25392 | fi |
a82a04b3 | 25393 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 25394 | fi |
ccc6cda3 JA |
25395 | fi |
25396 | ||
a82a04b3 | 25397 | echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5 |
f73dda09 | 25398 | echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6 |
ccc6cda3 | 25399 | if test $bash_cv_must_reinstall_sighandlers = yes; then |
a82a04b3 | 25400 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 25401 | #define MUST_REINSTALL_SIGHANDLERS 1 |
a82a04b3 | 25402 | _ACEOF |
ccc6cda3 JA |
25403 | |
25404 | fi | |
25405 | ||
a82a04b3 CR |
25406 | |
25407 | echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5 | |
f73dda09 JA |
25408 | echo $ECHO_N "checking for presence of necessary job control definitions... $ECHO_C" >&6 |
25409 | if test "${bash_cv_job_control_missing+set}" = set; then | |
25410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 JA |
25411 | else |
25412 | if test "$cross_compiling" = yes; then | |
a82a04b3 | 25413 | { echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5 |
f73dda09 | 25414 | echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;} |
cce855bc JA |
25415 | bash_cv_job_control_missing=missing |
25416 | ||
ccc6cda3 | 25417 | else |
f73dda09 | 25418 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
25419 | /* confdefs.h. */ |
25420 | _ACEOF | |
25421 | cat confdefs.h >>conftest.$ac_ext | |
25422 | cat >>conftest.$ac_ext <<_ACEOF | |
25423 | /* end confdefs.h. */ | |
ccc6cda3 JA |
25424 | |
25425 | #include <sys/types.h> | |
25426 | #ifdef HAVE_SYS_WAIT_H | |
25427 | #include <sys/wait.h> | |
25428 | #endif | |
25429 | #ifdef HAVE_UNISTD_H | |
25430 | #include <unistd.h> | |
25431 | #endif | |
25432 | #include <signal.h> | |
25433 | ||
25434 | /* Add more tests in here as appropriate. */ | |
25435 | main() | |
25436 | { | |
25437 | /* signal type */ | |
25438 | #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS) | |
25439 | exit(1); | |
25440 | #endif | |
25441 | ||
25442 | /* signals and tty control. */ | |
25443 | #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT) | |
25444 | exit (1); | |
25445 | #endif | |
25446 | ||
25447 | /* process control */ | |
f73dda09 | 25448 | #if !defined (WNOHANG) || !defined (WUNTRACED) |
ccc6cda3 JA |
25449 | exit(1); |
25450 | #endif | |
25451 | ||
25452 | /* Posix systems have tcgetpgrp and waitpid. */ | |
25453 | #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP) | |
25454 | exit(1); | |
25455 | #endif | |
25456 | ||
25457 | #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID) | |
25458 | exit(1); | |
25459 | #endif | |
25460 | ||
25461 | /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */ | |
25462 | #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3) | |
25463 | exit(1); | |
25464 | #endif | |
25465 | ||
25466 | exit(0); | |
25467 | } | |
f73dda09 JA |
25468 | _ACEOF |
25469 | rm -f conftest$ac_exeext | |
a82a04b3 | 25470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
25471 | (eval $ac_link) 2>&5 |
25472 | ac_status=$? | |
a82a04b3 | 25473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25474 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 25475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
25476 | (eval $ac_try) 2>&5 |
25477 | ac_status=$? | |
a82a04b3 | 25478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25479 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
25480 | bash_cv_job_control_missing=present |
25481 | else | |
f73dda09 JA |
25482 | echo "$as_me: program exited with status $ac_status" >&5 |
25483 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
25484 | sed 's/^/| /' conftest.$ac_ext >&5 |
25485 | ||
25486 | ( exit $ac_status ) | |
f73dda09 | 25487 | bash_cv_job_control_missing=missing |
ccc6cda3 | 25488 | fi |
a82a04b3 | 25489 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 25490 | fi |
ccc6cda3 JA |
25491 | fi |
25492 | ||
a82a04b3 | 25493 | echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5 |
f73dda09 | 25494 | echo "${ECHO_T}$bash_cv_job_control_missing" >&6 |
ccc6cda3 | 25495 | if test $bash_cv_job_control_missing = missing; then |
a82a04b3 | 25496 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 25497 | #define JOB_CONTROL_MISSING 1 |
a82a04b3 | 25498 | _ACEOF |
ccc6cda3 JA |
25499 | |
25500 | fi | |
25501 | ||
a82a04b3 | 25502 | echo "$as_me:$LINENO: checking for presence of named pipes" >&5 |
f73dda09 JA |
25503 | echo $ECHO_N "checking for presence of named pipes... $ECHO_C" >&6 |
25504 | if test "${bash_cv_sys_named_pipes+set}" = set; then | |
25505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 JA |
25506 | else |
25507 | if test "$cross_compiling" = yes; then | |
a82a04b3 | 25508 | { echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5 |
f73dda09 | 25509 | echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;} |
cce855bc JA |
25510 | bash_cv_sys_named_pipes=missing |
25511 | ||
ccc6cda3 | 25512 | else |
f73dda09 | 25513 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
25514 | /* confdefs.h. */ |
25515 | _ACEOF | |
25516 | cat confdefs.h >>conftest.$ac_ext | |
25517 | cat >>conftest.$ac_ext <<_ACEOF | |
25518 | /* end confdefs.h. */ | |
ccc6cda3 JA |
25519 | |
25520 | #include <sys/types.h> | |
25521 | #include <sys/stat.h> | |
25522 | #ifdef HAVE_UNISTD_H | |
25523 | #include <unistd.h> | |
25524 | #endif | |
25525 | ||
25526 | /* Add more tests in here as appropriate. */ | |
25527 | main() | |
25528 | { | |
bb70624e | 25529 | int fd, err; |
ccc6cda3 JA |
25530 | |
25531 | #if defined (HAVE_MKFIFO) | |
25532 | exit (0); | |
25533 | #endif | |
25534 | ||
25535 | #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO)) | |
25536 | exit (1); | |
25537 | #endif | |
25538 | ||
25539 | #if defined (NeXT) | |
25540 | exit (1); | |
25541 | #endif | |
bb70624e JA |
25542 | err = mkdir("/tmp/bash-aclocal", 0700); |
25543 | if (err < 0) { | |
25544 | perror ("mkdir"); | |
25545 | exit(1); | |
25546 | } | |
25547 | fd = mknod ("/tmp/bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0); | |
25548 | if (fd == -1) { | |
25549 | rmdir ("/tmp/bash-aclocal"); | |
ccc6cda3 | 25550 | exit (1); |
bb70624e | 25551 | } |
ccc6cda3 | 25552 | close(fd); |
bb70624e JA |
25553 | unlink ("/tmp/bash-aclocal/sh-np-autoconf"); |
25554 | rmdir ("/tmp/bash-aclocal"); | |
ccc6cda3 JA |
25555 | exit(0); |
25556 | } | |
f73dda09 JA |
25557 | _ACEOF |
25558 | rm -f conftest$ac_exeext | |
a82a04b3 | 25559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
25560 | (eval $ac_link) 2>&5 |
25561 | ac_status=$? | |
a82a04b3 | 25562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25563 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 25564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
25565 | (eval $ac_try) 2>&5 |
25566 | ac_status=$? | |
a82a04b3 | 25567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25568 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
25569 | bash_cv_sys_named_pipes=present |
25570 | else | |
f73dda09 JA |
25571 | echo "$as_me: program exited with status $ac_status" >&5 |
25572 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
25573 | sed 's/^/| /' conftest.$ac_ext >&5 |
25574 | ||
25575 | ( exit $ac_status ) | |
f73dda09 | 25576 | bash_cv_sys_named_pipes=missing |
ccc6cda3 | 25577 | fi |
a82a04b3 | 25578 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 25579 | fi |
ccc6cda3 JA |
25580 | fi |
25581 | ||
a82a04b3 | 25582 | echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5 |
f73dda09 | 25583 | echo "${ECHO_T}$bash_cv_sys_named_pipes" >&6 |
ccc6cda3 | 25584 | if test $bash_cv_sys_named_pipes = missing; then |
a82a04b3 | 25585 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 25586 | #define NAMED_PIPES_MISSING 1 |
a82a04b3 | 25587 | _ACEOF |
ccc6cda3 JA |
25588 | |
25589 | fi | |
25590 | ||
f73dda09 | 25591 | |
a82a04b3 | 25592 | echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5 |
f73dda09 JA |
25593 | echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6 |
25594 | if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then | |
25595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25596 | else | |
25597 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
25598 | /* confdefs.h. */ |
25599 | _ACEOF | |
25600 | cat confdefs.h >>conftest.$ac_ext | |
25601 | cat >>conftest.$ac_ext <<_ACEOF | |
25602 | /* end confdefs.h. */ | |
f73dda09 JA |
25603 | #include <sys/types.h> |
25604 | #include <termios.h> | |
25605 | #ifdef TIOCGWINSZ | |
25606 | yes | |
25607 | #endif | |
25608 | ||
25609 | _ACEOF | |
25610 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
a82a04b3 | 25611 | $EGREP "yes" >/dev/null 2>&1; then |
f73dda09 JA |
25612 | ac_cv_sys_tiocgwinsz_in_termios_h=yes |
25613 | else | |
25614 | ac_cv_sys_tiocgwinsz_in_termios_h=no | |
25615 | fi | |
25616 | rm -f conftest* | |
25617 | ||
25618 | fi | |
a82a04b3 | 25619 | echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 |
f73dda09 | 25620 | echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6 |
d166f048 | 25621 | |
f73dda09 | 25622 | if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then |
a82a04b3 | 25623 | echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 |
f73dda09 JA |
25624 | echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6 |
25625 | if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then | |
25626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 25627 | else |
f73dda09 | 25628 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
25629 | /* confdefs.h. */ |
25630 | _ACEOF | |
25631 | cat confdefs.h >>conftest.$ac_ext | |
25632 | cat >>conftest.$ac_ext <<_ACEOF | |
25633 | /* end confdefs.h. */ | |
ccc6cda3 JA |
25634 | #include <sys/types.h> |
25635 | #include <sys/ioctl.h> | |
f73dda09 JA |
25636 | #ifdef TIOCGWINSZ |
25637 | yes | |
25638 | #endif | |
25639 | ||
25640 | _ACEOF | |
25641 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
a82a04b3 | 25642 | $EGREP "yes" >/dev/null 2>&1; then |
f73dda09 | 25643 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes |
ccc6cda3 | 25644 | else |
f73dda09 | 25645 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no |
ccc6cda3 JA |
25646 | fi |
25647 | rm -f conftest* | |
f73dda09 | 25648 | |
ccc6cda3 | 25649 | fi |
a82a04b3 | 25650 | echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 |
f73dda09 JA |
25651 | echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6 |
25652 | ||
25653 | if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then | |
ccc6cda3 | 25654 | |
a82a04b3 | 25655 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 25656 | #define GWINSZ_IN_SYS_IOCTL 1 |
a82a04b3 | 25657 | _ACEOF |
ccc6cda3 | 25658 | |
f73dda09 | 25659 | fi |
ccc6cda3 JA |
25660 | fi |
25661 | ||
a82a04b3 | 25662 | echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5 |
f73dda09 JA |
25663 | echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6 |
25664 | if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then | |
25665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 25666 | else |
f73dda09 | 25667 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
25668 | /* confdefs.h. */ |
25669 | _ACEOF | |
25670 | cat confdefs.h >>conftest.$ac_ext | |
25671 | cat >>conftest.$ac_ext <<_ACEOF | |
25672 | /* end confdefs.h. */ | |
ccc6cda3 JA |
25673 | #include <sys/types.h> |
25674 | #include <sys/ioctl.h> | |
f73dda09 JA |
25675 | int |
25676 | main () | |
25677 | { | |
ccc6cda3 | 25678 | int x = TIOCSTAT; |
f73dda09 JA |
25679 | ; |
25680 | return 0; | |
25681 | } | |
25682 | _ACEOF | |
25683 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
25684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
25685 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 25686 | ac_status=$? |
a82a04b3 CR |
25687 | grep -v '^ *+' conftest.er1 >conftest.err |
25688 | rm -f conftest.er1 | |
25689 | cat conftest.err >&5 | |
25690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 25691 | (exit $ac_status); } && |
a82a04b3 CR |
25692 | { ac_try='test -z "$ac_c_werror_flag" |
25693 | || test ! -s conftest.err' | |
25694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25695 | (eval $ac_try) 2>&5 | |
25696 | ac_status=$? | |
25697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25698 | (exit $ac_status); }; } && | |
25699 | { ac_try='test -s conftest.$ac_objext' | |
25700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
25701 | (eval $ac_try) 2>&5 |
25702 | ac_status=$? | |
a82a04b3 | 25703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25704 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
25705 | bash_cv_tiocstat_in_ioctl=yes |
25706 | else | |
f73dda09 | 25707 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
25708 | sed 's/^/| /' conftest.$ac_ext >&5 |
25709 | ||
f73dda09 | 25710 | bash_cv_tiocstat_in_ioctl=no |
ccc6cda3 | 25711 | fi |
a82a04b3 | 25712 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 JA |
25713 | fi |
25714 | ||
a82a04b3 | 25715 | echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5 |
f73dda09 JA |
25716 | echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6 |
25717 | if test $bash_cv_tiocstat_in_ioctl = yes; then | |
a82a04b3 | 25718 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 25719 | #define TIOCSTAT_IN_SYS_IOCTL 1 |
a82a04b3 | 25720 | _ACEOF |
ccc6cda3 JA |
25721 | |
25722 | fi | |
25723 | ||
a82a04b3 | 25724 | echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5 |
f73dda09 JA |
25725 | echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6 |
25726 | if test "${bash_cv_fionread_in_ioctl+set}" = set; then | |
25727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 25728 | else |
f73dda09 | 25729 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
25730 | /* confdefs.h. */ |
25731 | _ACEOF | |
25732 | cat confdefs.h >>conftest.$ac_ext | |
25733 | cat >>conftest.$ac_ext <<_ACEOF | |
25734 | /* end confdefs.h. */ | |
ccc6cda3 JA |
25735 | #include <sys/types.h> |
25736 | #include <sys/ioctl.h> | |
f73dda09 JA |
25737 | int |
25738 | main () | |
25739 | { | |
ccc6cda3 | 25740 | int x = FIONREAD; |
f73dda09 JA |
25741 | ; |
25742 | return 0; | |
25743 | } | |
25744 | _ACEOF | |
25745 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
25746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
25747 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 25748 | ac_status=$? |
a82a04b3 CR |
25749 | grep -v '^ *+' conftest.er1 >conftest.err |
25750 | rm -f conftest.er1 | |
25751 | cat conftest.err >&5 | |
25752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 25753 | (exit $ac_status); } && |
a82a04b3 CR |
25754 | { ac_try='test -z "$ac_c_werror_flag" |
25755 | || test ! -s conftest.err' | |
25756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25757 | (eval $ac_try) 2>&5 | |
25758 | ac_status=$? | |
25759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25760 | (exit $ac_status); }; } && | |
25761 | { ac_try='test -s conftest.$ac_objext' | |
25762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
25763 | (eval $ac_try) 2>&5 |
25764 | ac_status=$? | |
a82a04b3 | 25765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25766 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
25767 | bash_cv_fionread_in_ioctl=yes |
25768 | else | |
f73dda09 | 25769 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
25770 | sed 's/^/| /' conftest.$ac_ext >&5 |
25771 | ||
f73dda09 | 25772 | bash_cv_fionread_in_ioctl=no |
ccc6cda3 | 25773 | fi |
a82a04b3 | 25774 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 JA |
25775 | fi |
25776 | ||
a82a04b3 | 25777 | echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5 |
f73dda09 JA |
25778 | echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6 |
25779 | if test $bash_cv_fionread_in_ioctl = yes; then | |
a82a04b3 | 25780 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 25781 | #define FIONREAD_IN_SYS_IOCTL 1 |
a82a04b3 | 25782 | _ACEOF |
ccc6cda3 JA |
25783 | |
25784 | fi | |
25785 | ||
a82a04b3 CR |
25786 | |
25787 | ||
25788 | echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5 | |
cac4cdbf CR |
25789 | echo $ECHO_N "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... $ECHO_C" >&6 |
25790 | if test "${bash_cv_wcontinued_broken+set}" = set; then | |
25791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25792 | else | |
25793 | if test "$cross_compiling" = yes; then | |
a82a04b3 | 25794 | { echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5 |
cac4cdbf CR |
25795 | echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;} |
25796 | bash_cv_wcontinued_broken=no | |
25797 | ||
25798 | else | |
25799 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
25800 | /* confdefs.h. */ |
25801 | _ACEOF | |
25802 | cat confdefs.h >>conftest.$ac_ext | |
25803 | cat >>conftest.$ac_ext <<_ACEOF | |
25804 | /* end confdefs.h. */ | |
cac4cdbf CR |
25805 | |
25806 | #include <sys/types.h> | |
25807 | #include <sys/wait.h> | |
25808 | #include <unistd.h> | |
25809 | #include <errno.h> | |
25810 | ||
25811 | #ifndef errno | |
25812 | extern int errno; | |
25813 | #endif | |
25814 | main() | |
25815 | { | |
25816 | int x; | |
25817 | ||
25818 | x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED); | |
25819 | if (x == -1 && errno == EINVAL) | |
25820 | exit (1); | |
25821 | else | |
25822 | exit (0); | |
25823 | } | |
25824 | ||
25825 | _ACEOF | |
25826 | rm -f conftest$ac_exeext | |
a82a04b3 | 25827 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
cac4cdbf CR |
25828 | (eval $ac_link) 2>&5 |
25829 | ac_status=$? | |
a82a04b3 | 25830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
cac4cdbf | 25831 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 25832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
cac4cdbf CR |
25833 | (eval $ac_try) 2>&5 |
25834 | ac_status=$? | |
a82a04b3 | 25835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
cac4cdbf CR |
25836 | (exit $ac_status); }; }; then |
25837 | bash_cv_wcontinued_broken=no | |
25838 | else | |
25839 | echo "$as_me: program exited with status $ac_status" >&5 | |
25840 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
25841 | sed 's/^/| /' conftest.$ac_ext >&5 |
25842 | ||
25843 | ( exit $ac_status ) | |
cac4cdbf CR |
25844 | bash_cv_wcontinued_broken=yes |
25845 | fi | |
a82a04b3 | 25846 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
cac4cdbf CR |
25847 | fi |
25848 | fi | |
25849 | ||
a82a04b3 | 25850 | echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5 |
cac4cdbf CR |
25851 | echo "${ECHO_T}$bash_cv_wcontinued_broken" >&6 |
25852 | if test $bash_cv_wcontinued_broken = yes; then | |
a82a04b3 | 25853 | cat >>confdefs.h <<\_ACEOF |
cac4cdbf | 25854 | #define WCONTINUED_BROKEN 1 |
a82a04b3 | 25855 | _ACEOF |
cac4cdbf CR |
25856 | |
25857 | fi | |
25858 | ||
a82a04b3 CR |
25859 | |
25860 | echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5 | |
f73dda09 JA |
25861 | echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6 |
25862 | if test "${bash_cv_speed_t_in_sys_types+set}" = set; then | |
25863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d166f048 | 25864 | else |
f73dda09 | 25865 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
25866 | /* confdefs.h. */ |
25867 | _ACEOF | |
25868 | cat confdefs.h >>conftest.$ac_ext | |
25869 | cat >>conftest.$ac_ext <<_ACEOF | |
25870 | /* end confdefs.h. */ | |
d166f048 | 25871 | #include <sys/types.h> |
f73dda09 JA |
25872 | int |
25873 | main () | |
25874 | { | |
d166f048 | 25875 | speed_t x; |
f73dda09 JA |
25876 | ; |
25877 | return 0; | |
25878 | } | |
25879 | _ACEOF | |
25880 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
25881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
25882 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 25883 | ac_status=$? |
a82a04b3 CR |
25884 | grep -v '^ *+' conftest.er1 >conftest.err |
25885 | rm -f conftest.er1 | |
25886 | cat conftest.err >&5 | |
25887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 25888 | (exit $ac_status); } && |
a82a04b3 CR |
25889 | { ac_try='test -z "$ac_c_werror_flag" |
25890 | || test ! -s conftest.err' | |
25891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25892 | (eval $ac_try) 2>&5 | |
25893 | ac_status=$? | |
25894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25895 | (exit $ac_status); }; } && | |
25896 | { ac_try='test -s conftest.$ac_objext' | |
25897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
25898 | (eval $ac_try) 2>&5 |
25899 | ac_status=$? | |
a82a04b3 | 25900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25901 | (exit $ac_status); }; }; then |
d166f048 JA |
25902 | bash_cv_speed_t_in_sys_types=yes |
25903 | else | |
f73dda09 | 25904 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
25905 | sed 's/^/| /' conftest.$ac_ext >&5 |
25906 | ||
f73dda09 | 25907 | bash_cv_speed_t_in_sys_types=no |
d166f048 | 25908 | fi |
a82a04b3 | 25909 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d166f048 JA |
25910 | fi |
25911 | ||
a82a04b3 | 25912 | echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5 |
f73dda09 JA |
25913 | echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6 |
25914 | if test $bash_cv_speed_t_in_sys_types = yes; then | |
a82a04b3 | 25915 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 25916 | #define SPEED_T_IN_SYS_TYPES 1 |
a82a04b3 | 25917 | _ACEOF |
d166f048 JA |
25918 | |
25919 | fi | |
25920 | ||
a82a04b3 | 25921 | echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5 |
f73dda09 JA |
25922 | echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6 |
25923 | if test "${bash_cv_getpw_declared+set}" = set; then | |
25924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 25925 | else |
f73dda09 | 25926 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
25927 | /* confdefs.h. */ |
25928 | _ACEOF | |
25929 | cat confdefs.h >>conftest.$ac_ext | |
25930 | cat >>conftest.$ac_ext <<_ACEOF | |
25931 | /* end confdefs.h. */ | |
28ef6c31 | 25932 | |
ccc6cda3 | 25933 | #include <sys/types.h> |
28ef6c31 JA |
25934 | #ifdef HAVE_UNISTD_H |
25935 | # include <unistd.h> | |
25936 | #endif | |
ccc6cda3 | 25937 | #include <pwd.h> |
28ef6c31 | 25938 | |
f73dda09 | 25939 | _ACEOF |
28ef6c31 | 25940 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
a82a04b3 | 25941 | $EGREP "getpwuid" >/dev/null 2>&1; then |
28ef6c31 | 25942 | bash_cv_getpw_declared=yes |
ccc6cda3 | 25943 | else |
28ef6c31 | 25944 | bash_cv_getpw_declared=no |
ccc6cda3 JA |
25945 | fi |
25946 | rm -f conftest* | |
28ef6c31 | 25947 | |
ccc6cda3 JA |
25948 | fi |
25949 | ||
a82a04b3 | 25950 | echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5 |
f73dda09 | 25951 | echo "${ECHO_T}$bash_cv_getpw_declared" >&6 |
28ef6c31 | 25952 | if test $bash_cv_getpw_declared = yes; then |
a82a04b3 | 25953 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 25954 | #define HAVE_GETPW_DECLS 1 |
a82a04b3 | 25955 | _ACEOF |
ccc6cda3 JA |
25956 | |
25957 | fi | |
25958 | ||
a82a04b3 | 25959 | echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5 |
f73dda09 JA |
25960 | echo $ECHO_N "checking for unusable real-time signals due to large values... $ECHO_C" >&6 |
25961 | if test "${bash_cv_unusable_rtsigs+set}" = set; then | |
25962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28ef6c31 JA |
25963 | else |
25964 | if test "$cross_compiling" = yes; then | |
a82a04b3 | 25965 | { echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5 |
f73dda09 | 25966 | echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;} |
28ef6c31 JA |
25967 | bash_cv_unusable_rtsigs=yes |
25968 | ||
25969 | else | |
f73dda09 | 25970 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
25971 | /* confdefs.h. */ |
25972 | _ACEOF | |
25973 | cat confdefs.h >>conftest.$ac_ext | |
25974 | cat >>conftest.$ac_ext <<_ACEOF | |
25975 | /* end confdefs.h. */ | |
28ef6c31 JA |
25976 | |
25977 | #include <sys/types.h> | |
25978 | #include <signal.h> | |
25979 | ||
25980 | #ifndef NSIG | |
25981 | # define NSIG 64 | |
25982 | #endif | |
25983 | ||
25984 | main () | |
25985 | { | |
25986 | int n_sigs = 2 * NSIG; | |
25987 | #ifdef SIGRTMIN | |
25988 | int rtmin = SIGRTMIN; | |
25989 | #else | |
25990 | int rtmin = 0; | |
25991 | #endif | |
25992 | ||
25993 | exit(rtmin < n_sigs); | |
25994 | } | |
f73dda09 JA |
25995 | _ACEOF |
25996 | rm -f conftest$ac_exeext | |
a82a04b3 | 25997 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f73dda09 JA |
25998 | (eval $ac_link) 2>&5 |
25999 | ac_status=$? | |
a82a04b3 | 26000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 26001 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a82a04b3 | 26002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f73dda09 JA |
26003 | (eval $ac_try) 2>&5 |
26004 | ac_status=$? | |
a82a04b3 | 26005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 26006 | (exit $ac_status); }; }; then |
28ef6c31 JA |
26007 | bash_cv_unusable_rtsigs=yes |
26008 | else | |
f73dda09 JA |
26009 | echo "$as_me: program exited with status $ac_status" >&5 |
26010 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
26011 | sed 's/^/| /' conftest.$ac_ext >&5 |
26012 | ||
26013 | ( exit $ac_status ) | |
f73dda09 | 26014 | bash_cv_unusable_rtsigs=no |
28ef6c31 | 26015 | fi |
a82a04b3 | 26016 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
28ef6c31 | 26017 | fi |
28ef6c31 JA |
26018 | fi |
26019 | ||
a82a04b3 | 26020 | echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5 |
f73dda09 | 26021 | echo "${ECHO_T}$bash_cv_unusable_rtsigs" >&6 |
28ef6c31 | 26022 | if test $bash_cv_unusable_rtsigs = yes; then |
a82a04b3 | 26023 | cat >>confdefs.h <<\_ACEOF |
28ef6c31 | 26024 | #define UNUSABLE_RT_SIGNALS 1 |
a82a04b3 | 26025 | _ACEOF |
28ef6c31 JA |
26026 | |
26027 | fi | |
26028 | ||
a82a04b3 CR |
26029 | |
26030 | ||
26031 | ||
26032 | ||
f73dda09 JA |
26033 | if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then |
26034 | SIGLIST_O=siglist.o | |
26035 | else | |
26036 | SIGLIST_O= | |
26037 | fi | |
ccc6cda3 | 26038 | |
a82a04b3 CR |
26039 | |
26040 | ||
ccc6cda3 | 26041 | case "$host_os" in |
a82a04b3 | 26042 | hpux*) echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5 |
f73dda09 JA |
26043 | echo $ECHO_N "checking whether $host_os needs _KERNEL for RLIMIT defines... $ECHO_C" >&6 |
26044 | if test "${bash_cv_kernel_rlimit+set}" = set; then | |
26045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 26046 | else |
f73dda09 | 26047 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
26048 | /* confdefs.h. */ |
26049 | _ACEOF | |
26050 | cat confdefs.h >>conftest.$ac_ext | |
26051 | cat >>conftest.$ac_ext <<_ACEOF | |
26052 | /* end confdefs.h. */ | |
ccc6cda3 JA |
26053 | |
26054 | #include <sys/types.h> | |
26055 | #include <sys/resource.h> | |
26056 | ||
f73dda09 JA |
26057 | int |
26058 | main () | |
26059 | { | |
ccc6cda3 JA |
26060 | |
26061 | int f; | |
26062 | f = RLIMIT_DATA; | |
26063 | ||
f73dda09 JA |
26064 | ; |
26065 | return 0; | |
26066 | } | |
26067 | _ACEOF | |
26068 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
26069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
26070 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 26071 | ac_status=$? |
a82a04b3 CR |
26072 | grep -v '^ *+' conftest.er1 >conftest.err |
26073 | rm -f conftest.er1 | |
26074 | cat conftest.err >&5 | |
26075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 26076 | (exit $ac_status); } && |
a82a04b3 CR |
26077 | { ac_try='test -z "$ac_c_werror_flag" |
26078 | || test ! -s conftest.err' | |
26079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
26080 | (eval $ac_try) 2>&5 |
26081 | ac_status=$? | |
a82a04b3 CR |
26082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26083 | (exit $ac_status); }; } && | |
26084 | { ac_try='test -s conftest.$ac_objext' | |
26085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26086 | (eval $ac_try) 2>&5 | |
26087 | ac_status=$? | |
26088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 26089 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
26090 | bash_cv_kernel_rlimit=no |
26091 | else | |
f73dda09 | 26092 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
26093 | sed 's/^/| /' conftest.$ac_ext >&5 |
26094 | ||
f73dda09 | 26095 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
26096 | /* confdefs.h. */ |
26097 | _ACEOF | |
26098 | cat confdefs.h >>conftest.$ac_ext | |
26099 | cat >>conftest.$ac_ext <<_ACEOF | |
26100 | /* end confdefs.h. */ | |
ccc6cda3 | 26101 | |
cce855bc JA |
26102 | #include <sys/types.h> |
26103 | #define _KERNEL | |
26104 | #include <sys/resource.h> | |
26105 | #undef _KERNEL | |
26106 | ||
f73dda09 JA |
26107 | int |
26108 | main () | |
26109 | { | |
ccc6cda3 JA |
26110 | |
26111 | int f; | |
26112 | f = RLIMIT_DATA; | |
cce855bc | 26113 | |
f73dda09 JA |
26114 | ; |
26115 | return 0; | |
26116 | } | |
26117 | _ACEOF | |
26118 | rm -f conftest.$ac_objext | |
a82a04b3 CR |
26119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
26120 | (eval $ac_compile) 2>conftest.er1 | |
f73dda09 | 26121 | ac_status=$? |
a82a04b3 CR |
26122 | grep -v '^ *+' conftest.er1 >conftest.err |
26123 | rm -f conftest.er1 | |
26124 | cat conftest.err >&5 | |
26125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 26126 | (exit $ac_status); } && |
a82a04b3 CR |
26127 | { ac_try='test -z "$ac_c_werror_flag" |
26128 | || test ! -s conftest.err' | |
26129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26130 | (eval $ac_try) 2>&5 | |
26131 | ac_status=$? | |
26132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26133 | (exit $ac_status); }; } && | |
26134 | { ac_try='test -s conftest.$ac_objext' | |
26135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
26136 | (eval $ac_try) 2>&5 |
26137 | ac_status=$? | |
a82a04b3 | 26138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 26139 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
26140 | bash_cv_kernel_rlimit=yes |
26141 | else | |
f73dda09 | 26142 | echo "$as_me: failed program was:" >&5 |
a82a04b3 CR |
26143 | sed 's/^/| /' conftest.$ac_ext >&5 |
26144 | ||
f73dda09 | 26145 | bash_cv_kernel_rlimit=no |
ccc6cda3 | 26146 | fi |
a82a04b3 | 26147 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 JA |
26148 | |
26149 | fi | |
a82a04b3 | 26150 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 JA |
26151 | fi |
26152 | ||
a82a04b3 | 26153 | echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5 |
f73dda09 | 26154 | echo "${ECHO_T}$bash_cv_kernel_rlimit" >&6 |
ccc6cda3 | 26155 | if test $bash_cv_kernel_rlimit = yes; then |
a82a04b3 | 26156 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 26157 | #define RLIMIT_NEEDS_KERNEL 1 |
a82a04b3 | 26158 | _ACEOF |
ccc6cda3 JA |
26159 | |
26160 | fi | |
26161 | ;; | |
26162 | esac | |
26163 | ||
26164 | if test "$opt_readline" = yes; then | |
d166f048 JA |
26165 | case "$host_os" in |
26166 | aix*) prefer_curses=yes ;; | |
26167 | esac | |
ccc6cda3 JA |
26168 | |
26169 | if test "X$bash_cv_termcap_lib" = "X"; then | |
26170 | _bash_needmsg=yes | |
26171 | else | |
a82a04b3 | 26172 | echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
f73dda09 | 26173 | echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6 |
ccc6cda3 JA |
26174 | _bash_needmsg= |
26175 | fi | |
f73dda09 JA |
26176 | if test "${bash_cv_termcap_lib+set}" = set; then |
26177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 26178 | else |
a82a04b3 | 26179 | echo "$as_me:$LINENO: checking for tgetent" >&5 |
d3a24ed2 CR |
26180 | echo $ECHO_N "checking for tgetent... $ECHO_C" >&6 |
26181 | if test "${ac_cv_func_tgetent+set}" = set; then | |
26182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26183 | else | |
26184 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
26185 | /* confdefs.h. */ |
26186 | _ACEOF | |
26187 | cat confdefs.h >>conftest.$ac_ext | |
26188 | cat >>conftest.$ac_ext <<_ACEOF | |
26189 | /* end confdefs.h. */ | |
26190 | /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent. | |
26191 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26192 | #define tgetent innocuous_tgetent | |
26193 | ||
d3a24ed2 | 26194 | /* System header to define __stub macros and hopefully few prototypes, |
a82a04b3 CR |
26195 | which can conflict with char tgetent (); below. |
26196 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26197 | <limits.h> exists even on freestanding compilers. */ | |
26198 | ||
26199 | #ifdef __STDC__ | |
26200 | # include <limits.h> | |
26201 | #else | |
26202 | # include <assert.h> | |
26203 | #endif | |
26204 | ||
26205 | #undef tgetent | |
26206 | ||
d3a24ed2 CR |
26207 | /* Override any gcc2 internal prototype to avoid an error. */ |
26208 | #ifdef __cplusplus | |
26209 | extern "C" | |
a82a04b3 | 26210 | { |
d3a24ed2 CR |
26211 | #endif |
26212 | /* We use char because int might match the return type of a gcc2 | |
26213 | builtin and then its argument prototype would still apply. */ | |
26214 | char tgetent (); | |
d3a24ed2 CR |
26215 | /* The GNU C library defines this for functions which it implements |
26216 | to always fail with ENOSYS. Some functions are actually named | |
26217 | something starting with __ and the normal name is an alias. */ | |
26218 | #if defined (__stub_tgetent) || defined (__stub___tgetent) | |
26219 | choke me | |
26220 | #else | |
a82a04b3 CR |
26221 | char (*f) () = tgetent; |
26222 | #endif | |
26223 | #ifdef __cplusplus | |
26224 | } | |
d3a24ed2 CR |
26225 | #endif |
26226 | ||
a82a04b3 CR |
26227 | int |
26228 | main () | |
26229 | { | |
26230 | return f != tgetent; | |
d3a24ed2 CR |
26231 | ; |
26232 | return 0; | |
26233 | } | |
26234 | _ACEOF | |
26235 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
26236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
26237 | (eval $ac_link) 2>conftest.er1 | |
d3a24ed2 | 26238 | ac_status=$? |
a82a04b3 CR |
26239 | grep -v '^ *+' conftest.er1 >conftest.err |
26240 | rm -f conftest.er1 | |
26241 | cat conftest.err >&5 | |
26242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d3a24ed2 | 26243 | (exit $ac_status); } && |
a82a04b3 CR |
26244 | { ac_try='test -z "$ac_c_werror_flag" |
26245 | || test ! -s conftest.err' | |
26246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
d3a24ed2 CR |
26247 | (eval $ac_try) 2>&5 |
26248 | ac_status=$? | |
a82a04b3 CR |
26249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26250 | (exit $ac_status); }; } && | |
26251 | { ac_try='test -s conftest$ac_exeext' | |
26252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26253 | (eval $ac_try) 2>&5 | |
26254 | ac_status=$? | |
26255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d3a24ed2 CR |
26256 | (exit $ac_status); }; }; then |
26257 | ac_cv_func_tgetent=yes | |
26258 | else | |
26259 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
26260 | sed 's/^/| /' conftest.$ac_ext >&5 |
26261 | ||
d3a24ed2 CR |
26262 | ac_cv_func_tgetent=no |
26263 | fi | |
a82a04b3 CR |
26264 | rm -f conftest.err conftest.$ac_objext \ |
26265 | conftest$ac_exeext conftest.$ac_ext | |
d3a24ed2 | 26266 | fi |
a82a04b3 | 26267 | echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5 |
d3a24ed2 CR |
26268 | echo "${ECHO_T}$ac_cv_func_tgetent" >&6 |
26269 | if test $ac_cv_func_tgetent = yes; then | |
26270 | bash_cv_termcap_lib=libc | |
26271 | else | |
a82a04b3 | 26272 | echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 |
f73dda09 JA |
26273 | echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6 |
26274 | if test "${ac_cv_lib_termcap_tgetent+set}" = set; then | |
26275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 26276 | else |
f73dda09 | 26277 | ac_check_lib_save_LIBS=$LIBS |
ccc6cda3 | 26278 | LIBS="-ltermcap $LIBS" |
f73dda09 | 26279 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
26280 | /* confdefs.h. */ |
26281 | _ACEOF | |
26282 | cat confdefs.h >>conftest.$ac_ext | |
26283 | cat >>conftest.$ac_ext <<_ACEOF | |
26284 | /* end confdefs.h. */ | |
f73dda09 | 26285 | |
ccc6cda3 | 26286 | /* Override any gcc2 internal prototype to avoid an error. */ |
f73dda09 JA |
26287 | #ifdef __cplusplus |
26288 | extern "C" | |
26289 | #endif | |
ccc6cda3 | 26290 | /* We use char because int might match the return type of a gcc2 |
f73dda09 JA |
26291 | builtin and then its argument prototype would still apply. */ |
26292 | char tgetent (); | |
26293 | int | |
26294 | main () | |
26295 | { | |
26296 | tgetent (); | |
26297 | ; | |
26298 | return 0; | |
26299 | } | |
26300 | _ACEOF | |
26301 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
26302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
26303 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 26304 | ac_status=$? |
a82a04b3 CR |
26305 | grep -v '^ *+' conftest.er1 >conftest.err |
26306 | rm -f conftest.er1 | |
26307 | cat conftest.err >&5 | |
26308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 26309 | (exit $ac_status); } && |
a82a04b3 CR |
26310 | { ac_try='test -z "$ac_c_werror_flag" |
26311 | || test ! -s conftest.err' | |
26312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26313 | (eval $ac_try) 2>&5 | |
26314 | ac_status=$? | |
26315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26316 | (exit $ac_status); }; } && | |
26317 | { ac_try='test -s conftest$ac_exeext' | |
26318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
26319 | (eval $ac_try) 2>&5 |
26320 | ac_status=$? | |
a82a04b3 | 26321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
26322 | (exit $ac_status); }; }; then |
26323 | ac_cv_lib_termcap_tgetent=yes | |
26324 | else | |
26325 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
26326 | sed 's/^/| /' conftest.$ac_ext >&5 |
26327 | ||
f73dda09 JA |
26328 | ac_cv_lib_termcap_tgetent=no |
26329 | fi | |
a82a04b3 CR |
26330 | rm -f conftest.err conftest.$ac_objext \ |
26331 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 JA |
26332 | LIBS=$ac_check_lib_save_LIBS |
26333 | fi | |
a82a04b3 | 26334 | echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 |
f73dda09 JA |
26335 | echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6 |
26336 | if test $ac_cv_lib_termcap_tgetent = yes; then | |
ccc6cda3 JA |
26337 | bash_cv_termcap_lib=libtermcap |
26338 | else | |
a82a04b3 | 26339 | echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5 |
f73dda09 JA |
26340 | echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6 |
26341 | if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then | |
26342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 26343 | else |
f73dda09 JA |
26344 | ac_check_lib_save_LIBS=$LIBS |
26345 | LIBS="-ltinfo $LIBS" | |
26346 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
26347 | /* confdefs.h. */ |
26348 | _ACEOF | |
26349 | cat confdefs.h >>conftest.$ac_ext | |
26350 | cat >>conftest.$ac_ext <<_ACEOF | |
26351 | /* end confdefs.h. */ | |
f73dda09 | 26352 | |
ccc6cda3 | 26353 | /* Override any gcc2 internal prototype to avoid an error. */ |
f73dda09 JA |
26354 | #ifdef __cplusplus |
26355 | extern "C" | |
26356 | #endif | |
ccc6cda3 | 26357 | /* We use char because int might match the return type of a gcc2 |
f73dda09 JA |
26358 | builtin and then its argument prototype would still apply. */ |
26359 | char tgetent (); | |
26360 | int | |
26361 | main () | |
26362 | { | |
26363 | tgetent (); | |
26364 | ; | |
26365 | return 0; | |
26366 | } | |
26367 | _ACEOF | |
26368 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
26369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
26370 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 26371 | ac_status=$? |
a82a04b3 CR |
26372 | grep -v '^ *+' conftest.er1 >conftest.err |
26373 | rm -f conftest.er1 | |
26374 | cat conftest.err >&5 | |
26375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 26376 | (exit $ac_status); } && |
a82a04b3 CR |
26377 | { ac_try='test -z "$ac_c_werror_flag" |
26378 | || test ! -s conftest.err' | |
26379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26380 | (eval $ac_try) 2>&5 | |
26381 | ac_status=$? | |
26382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26383 | (exit $ac_status); }; } && | |
26384 | { ac_try='test -s conftest$ac_exeext' | |
26385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
26386 | (eval $ac_try) 2>&5 |
26387 | ac_status=$? | |
a82a04b3 | 26388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
26389 | (exit $ac_status); }; }; then |
26390 | ac_cv_lib_tinfo_tgetent=yes | |
26391 | else | |
26392 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
26393 | sed 's/^/| /' conftest.$ac_ext >&5 |
26394 | ||
f73dda09 JA |
26395 | ac_cv_lib_tinfo_tgetent=no |
26396 | fi | |
a82a04b3 CR |
26397 | rm -f conftest.err conftest.$ac_objext \ |
26398 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 JA |
26399 | LIBS=$ac_check_lib_save_LIBS |
26400 | fi | |
a82a04b3 | 26401 | echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5 |
f73dda09 JA |
26402 | echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6 |
26403 | if test $ac_cv_lib_tinfo_tgetent = yes; then | |
7117c2d2 | 26404 | bash_cv_termcap_lib=libtinfo |
f73dda09 | 26405 | else |
a82a04b3 | 26406 | echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5 |
f73dda09 JA |
26407 | echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6 |
26408 | if test "${ac_cv_lib_curses_tgetent+set}" = set; then | |
26409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26410 | else | |
26411 | ac_check_lib_save_LIBS=$LIBS | |
26412 | LIBS="-lcurses $LIBS" | |
26413 | cat >conftest.$ac_ext <<_ACEOF | |
a82a04b3 CR |
26414 | /* confdefs.h. */ |
26415 | _ACEOF | |
26416 | cat confdefs.h >>conftest.$ac_ext | |
26417 | cat >>conftest.$ac_ext <<_ACEOF | |
26418 | /* end confdefs.h. */ | |
ccc6cda3 | 26419 | |
f73dda09 JA |
26420 | /* Override any gcc2 internal prototype to avoid an error. */ |
26421 | #ifdef __cplusplus | |
26422 | extern "C" | |
26423 | #endif | |
26424 | /* We use char because int might match the return type of a gcc2 | |
26425 | builtin and then its argument prototype would still apply. */ | |
26426 | char tgetent (); | |
26427 | int | |
26428 | main () | |
26429 | { | |
26430 | tgetent (); | |
26431 | ; | |
26432 | return 0; | |
26433 | } | |
26434 | _ACEOF | |
26435 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
26436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
26437 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 26438 | ac_status=$? |
a82a04b3 CR |
26439 | grep -v '^ *+' conftest.er1 >conftest.err |
26440 | rm -f conftest.er1 | |
26441 | cat conftest.err >&5 | |
26442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 26443 | (exit $ac_status); } && |
a82a04b3 CR |
26444 | { ac_try='test -z "$ac_c_werror_flag" |
26445 | || test ! -s conftest.err' | |
26446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26447 | (eval $ac_try) 2>&5 | |
26448 | ac_status=$? | |
26449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26450 | (exit $ac_status); }; } && | |
26451 | { ac_try='test -s conftest$ac_exeext' | |
26452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
26453 | (eval $ac_try) 2>&5 |
26454 | ac_status=$? | |
a82a04b3 | 26455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
26456 | (exit $ac_status); }; }; then |
26457 | ac_cv_lib_curses_tgetent=yes | |
26458 | else | |
26459 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
26460 | sed 's/^/| /' conftest.$ac_ext >&5 |
26461 | ||
f73dda09 JA |
26462 | ac_cv_lib_curses_tgetent=no |
26463 | fi | |
a82a04b3 CR |
26464 | rm -f conftest.err conftest.$ac_objext \ |
26465 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 JA |
26466 | LIBS=$ac_check_lib_save_LIBS |
26467 | fi | |
a82a04b3 | 26468 | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5 |
f73dda09 JA |
26469 | echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6 |
26470 | if test $ac_cv_lib_curses_tgetent = yes; then | |
ccc6cda3 JA |
26471 | bash_cv_termcap_lib=libcurses |
26472 | else | |
a82a04b3 | 26473 | echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 |
f73dda09 JA |
26474 | echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6 |
26475 | if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then | |
26476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 | 26477 | else |
f73dda09 | 26478 | ac_check_lib_save_LIBS=$LIBS |
ccc6cda3 | 26479 | LIBS="-lncurses $LIBS" |
f73dda09 | 26480 | cat >conftest.$ac_ext <<_ACEOF |
a82a04b3 CR |
26481 | /* confdefs.h. */ |
26482 | _ACEOF | |
26483 | cat confdefs.h >>conftest.$ac_ext | |
26484 | cat >>conftest.$ac_ext <<_ACEOF | |
26485 | /* end confdefs.h. */ | |
f73dda09 | 26486 | |
ccc6cda3 | 26487 | /* Override any gcc2 internal prototype to avoid an error. */ |
f73dda09 JA |
26488 | #ifdef __cplusplus |
26489 | extern "C" | |
26490 | #endif | |
ccc6cda3 | 26491 | /* We use char because int might match the return type of a gcc2 |
f73dda09 JA |
26492 | builtin and then its argument prototype would still apply. */ |
26493 | char tgetent (); | |
26494 | int | |
26495 | main () | |
26496 | { | |
26497 | tgetent (); | |
26498 | ; | |
26499 | return 0; | |
26500 | } | |
26501 | _ACEOF | |
26502 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a82a04b3 CR |
26503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
26504 | (eval $ac_link) 2>conftest.er1 | |
f73dda09 | 26505 | ac_status=$? |
a82a04b3 CR |
26506 | grep -v '^ *+' conftest.er1 >conftest.err |
26507 | rm -f conftest.er1 | |
26508 | cat conftest.err >&5 | |
26509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 | 26510 | (exit $ac_status); } && |
a82a04b3 CR |
26511 | { ac_try='test -z "$ac_c_werror_flag" |
26512 | || test ! -s conftest.err' | |
26513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
f73dda09 JA |
26514 | (eval $ac_try) 2>&5 |
26515 | ac_status=$? | |
a82a04b3 CR |
26516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26517 | (exit $ac_status); }; } && | |
26518 | { ac_try='test -s conftest$ac_exeext' | |
26519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26520 | (eval $ac_try) 2>&5 | |
26521 | ac_status=$? | |
26522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f73dda09 JA |
26523 | (exit $ac_status); }; }; then |
26524 | ac_cv_lib_ncurses_tgetent=yes | |
26525 | else | |
26526 | echo "$as_me: failed program was:" >&5 | |
a82a04b3 CR |
26527 | sed 's/^/| /' conftest.$ac_ext >&5 |
26528 | ||
f73dda09 JA |
26529 | ac_cv_lib_ncurses_tgetent=no |
26530 | fi | |
a82a04b3 CR |
26531 | rm -f conftest.err conftest.$ac_objext \ |
26532 | conftest$ac_exeext conftest.$ac_ext | |
f73dda09 JA |
26533 | LIBS=$ac_check_lib_save_LIBS |
26534 | fi | |
a82a04b3 | 26535 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 |
f73dda09 JA |
26536 | echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6 |
26537 | if test $ac_cv_lib_ncurses_tgetent = yes; then | |
26538 | bash_cv_termcap_lib=libncurses | |
ccc6cda3 | 26539 | else |
f73dda09 | 26540 | bash_cv_termcap_lib=gnutermcap |
ccc6cda3 | 26541 | fi |
ccc6cda3 | 26542 | |
ccc6cda3 JA |
26543 | fi |
26544 | ||
26545 | fi | |
26546 | ||
26547 | fi | |
26548 | ||
26549 | fi | |
26550 | ||
d3a24ed2 CR |
26551 | fi |
26552 | ||
ccc6cda3 | 26553 | if test "X$_bash_needmsg" = "Xyes"; then |
a82a04b3 | 26554 | echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
f73dda09 | 26555 | echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6 |
ccc6cda3 | 26556 | fi |
a82a04b3 | 26557 | echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5 |
f73dda09 | 26558 | echo "${ECHO_T}using $bash_cv_termcap_lib" >&6 |
cce855bc | 26559 | if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then |
ccc6cda3 JA |
26560 | LDFLAGS="$LDFLAGS -L./lib/termcap" |
26561 | TERMCAP_LIB="./lib/termcap/libtermcap.a" | |
26562 | TERMCAP_DEP="./lib/termcap/libtermcap.a" | |
d166f048 | 26563 | elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then |
ccc6cda3 JA |
26564 | TERMCAP_LIB=-ltermcap |
26565 | TERMCAP_DEP= | |
f73dda09 JA |
26566 | elif test $bash_cv_termcap_lib = libtinfo; then |
26567 | TERMCAP_LIB=-ltinfo | |
26568 | TERMCAP_DEP= | |
ccc6cda3 JA |
26569 | elif test $bash_cv_termcap_lib = libncurses; then |
26570 | TERMCAP_LIB=-lncurses | |
26571 | TERMCAP_DEP= | |
d3a24ed2 CR |
26572 | elif test $bash_cv_termcap_lib = libc; then |
26573 | TERMCAP_LIB= | |
26574 | TERMCAP_DEP= | |
ccc6cda3 JA |
26575 | else |
26576 | TERMCAP_LIB=-lcurses | |
26577 | TERMCAP_DEP= | |
26578 | fi | |
26579 | ||
26580 | fi | |
26581 | ||
a82a04b3 CR |
26582 | |
26583 | ||
26584 | echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5 | |
f73dda09 JA |
26585 | echo $ECHO_N "checking whether /dev/fd is available... $ECHO_C" >&6 |
26586 | if test "${bash_cv_dev_fd+set}" = set; then | |
26587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d166f048 | 26588 | else |
d3a24ed2 | 26589 | if test -d /dev/fd && test -r /dev/fd/0 < /dev/null; then |
de3341d1 CR |
26590 | # check for systems like FreeBSD 5 that only provide /dev/fd/[012] |
26591 | exec 3<&0 | |
26592 | if test -r /dev/fd/3; then | |
26593 | bash_cv_dev_fd=standard | |
26594 | else | |
26595 | bash_cv_dev_fd=absent | |
26596 | fi | |
26597 | exec 3<&- | |
d3a24ed2 | 26598 | elif test -d /proc/self/fd && test -r /proc/self/fd/0 < /dev/null; then |
d166f048 JA |
26599 | bash_cv_dev_fd=whacky |
26600 | else | |
26601 | bash_cv_dev_fd=absent | |
26602 | fi | |
26603 | ||
26604 | fi | |
26605 | ||
a82a04b3 | 26606 | echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5 |
f73dda09 | 26607 | echo "${ECHO_T}$bash_cv_dev_fd" >&6 |
d166f048 | 26608 | if test $bash_cv_dev_fd = "standard"; then |
a82a04b3 | 26609 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 26610 | #define HAVE_DEV_FD 1 |
a82a04b3 | 26611 | _ACEOF |
d166f048 | 26612 | |
a82a04b3 | 26613 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 26614 | #define DEV_FD_PREFIX "/dev/fd/" |
a82a04b3 | 26615 | _ACEOF |
d166f048 JA |
26616 | |
26617 | elif test $bash_cv_dev_fd = "whacky"; then | |
a82a04b3 | 26618 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 26619 | #define HAVE_DEV_FD 1 |
a82a04b3 | 26620 | _ACEOF |
d166f048 | 26621 | |
a82a04b3 | 26622 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 26623 | #define DEV_FD_PREFIX "/proc/self/fd/" |
a82a04b3 | 26624 | _ACEOF |
d166f048 JA |
26625 | |
26626 | fi | |
26627 | ||
a82a04b3 | 26628 | echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5 |
f73dda09 JA |
26629 | echo $ECHO_N "checking whether /dev/stdin stdout stderr are available... $ECHO_C" >&6 |
26630 | if test "${bash_cv_dev_stdin+set}" = set; then | |
26631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bb70624e | 26632 | else |
d3a24ed2 | 26633 | if test -d /dev/fd && test -r /dev/stdin < /dev/null; then |
bb70624e | 26634 | bash_cv_dev_stdin=present |
d3a24ed2 | 26635 | elif test -d /proc/self/fd && test -r /dev/stdin < /dev/null; then |
bb70624e JA |
26636 | bash_cv_dev_stdin=present |
26637 | else | |
26638 | bash_cv_dev_stdin=absent | |
26639 | fi | |
26640 | ||
26641 | fi | |
26642 | ||
a82a04b3 | 26643 | echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5 |
f73dda09 | 26644 | echo "${ECHO_T}$bash_cv_dev_stdin" >&6 |
bb70624e | 26645 | if test $bash_cv_dev_stdin = "present"; then |
a82a04b3 | 26646 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 26647 | #define HAVE_DEV_STDIN 1 |
a82a04b3 | 26648 | _ACEOF |
bb70624e JA |
26649 | |
26650 | fi | |
26651 | ||
a82a04b3 | 26652 | echo "$as_me:$LINENO: checking for default mail directory" >&5 |
f73dda09 JA |
26653 | echo $ECHO_N "checking for default mail directory... $ECHO_C" >&6 |
26654 | if test "${bash_cv_mail_dir+set}" = set; then | |
26655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ccc6cda3 JA |
26656 | else |
26657 | if test -d /var/mail; then | |
26658 | bash_cv_mail_dir=/var/mail | |
ccc6cda3 JA |
26659 | elif test -d /var/spool/mail; then |
26660 | bash_cv_mail_dir=/var/spool/mail | |
7117c2d2 JA |
26661 | elif test -d /usr/mail; then |
26662 | bash_cv_mail_dir=/usr/mail | |
e8ce775d JA |
26663 | elif test -d /usr/spool/mail; then |
26664 | bash_cv_mail_dir=/usr/spool/mail | |
ccc6cda3 JA |
26665 | else |
26666 | bash_cv_mail_dir=unknown | |
26667 | fi | |
26668 | ||
26669 | fi | |
26670 | ||
a82a04b3 | 26671 | echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5 |
f73dda09 | 26672 | echo "${ECHO_T}$bash_cv_mail_dir" >&6 |
a82a04b3 | 26673 | cat >>confdefs.h <<_ACEOF |
7117c2d2 | 26674 | #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir" |
a82a04b3 CR |
26675 | _ACEOF |
26676 | ||
26677 | ||
ccc6cda3 | 26678 | |
ccc6cda3 JA |
26679 | if test "$bash_cv_job_control_missing" = missing; then |
26680 | opt_job_control=no | |
26681 | fi | |
26682 | ||
26683 | if test "$opt_job_control" = yes; then | |
a82a04b3 | 26684 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 26685 | #define JOB_CONTROL 1 |
a82a04b3 | 26686 | _ACEOF |
ccc6cda3 JA |
26687 | |
26688 | JOBS_O=jobs.o | |
26689 | else | |
26690 | JOBS_O=nojobs.o | |
26691 | fi | |
26692 | ||
a82a04b3 CR |
26693 | |
26694 | ||
26695 | ||
d166f048 JA |
26696 | LOCAL_DEFS=-DSHELL |
26697 | ||
a82a04b3 | 26698 | |
b72432fd | 26699 | case "${host_os}" in |
a82a04b3 | 26700 | sysv4.2*) cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 26701 | #define SVR4_2 1 |
a82a04b3 | 26702 | _ACEOF |
ccc6cda3 | 26703 | |
a82a04b3 | 26704 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 26705 | #define SVR4 1 |
a82a04b3 | 26706 | _ACEOF |
ccc6cda3 | 26707 | ;; |
a82a04b3 | 26708 | sysv4*) cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 26709 | #define SVR4 1 |
a82a04b3 | 26710 | _ACEOF |
ccc6cda3 | 26711 | ;; |
a82a04b3 | 26712 | sysv5*) cat >>confdefs.h <<\_ACEOF |
b72432fd | 26713 | #define SVR5 1 |
a82a04b3 | 26714 | _ACEOF |
b72432fd JA |
26715 | ;; |
26716 | hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;; | |
ccc6cda3 JA |
26717 | hpux*) LOCAL_CFLAGS=-DHPUX ;; |
26718 | dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;; | |
bb70624e JA |
26719 | isc*) LOCAL_CFLAGS=-Disc386 ;; |
26720 | rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;; | |
f73dda09 | 26721 | darwin*) LOCAL_CFLAGS=-DMACOSX ;; |
7117c2d2 JA |
26722 | sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;; |
26723 | sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;; | |
ccc6cda3 | 26724 | sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;; |
d166f048 JA |
26725 | sunos4*) LOCAL_CFLAGS=-DSunOS4 ;; |
26726 | solaris2.5*) LOCAL_CFLAGS=-DSunOS5 ;; | |
b72432fd | 26727 | lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;; |
3ffb039a CR |
26728 | linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading |
26729 | case "`uname -r`" in | |
26730 | 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF | |
26731 | #define PGRP_PIPE 1 | |
26732 | _ACEOF | |
26733 | ;; | |
26734 | esac ;; | |
7117c2d2 | 26735 | *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;; |
b72432fd | 26736 | powerux*) LOCAL_LIBS="-lgen" ;; |
d3a24ed2 | 26737 | cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;; |
e624d0f7 | 26738 | opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;; |
b72432fd JA |
26739 | esac |
26740 | ||
26741 | case "${host_os}-${CC}" in | |
26742 | aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;; | |
26743 | aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;; | |
26744 | bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux | |
ccc6cda3 JA |
26745 | esac |
26746 | ||
bb70624e | 26747 | case "${host_os}" in |
28ef6c31 JA |
26748 | freebsd[3-9]*) |
26749 | if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then | |
bb70624e JA |
26750 | LOCAL_LDFLAGS=-rdynamic # allow dynamic loading |
26751 | fi ;; | |
28ef6c31 | 26752 | freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading |
bb70624e JA |
26753 | esac |
26754 | ||
ccc6cda3 JA |
26755 | case "$host_cpu" in |
26756 | *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it | |
26757 | esac | |
26758 | ||
26759 | case "$host_cpu-$host_os" in | |
26760 | ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;; | |
26761 | esac | |
26762 | ||
26763 | case "$host_cpu-$host_vendor-$host_os" in | |
26764 | m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;; | |
26765 | mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;; | |
26766 | esac | |
26767 | ||
b72432fd JA |
26768 | # |
26769 | # Shared object configuration section. These values are generated by | |
26770 | # ${srcdir}/support/shobj-conf | |
26771 | # | |
26772 | if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf | |
26773 | then | |
a82a04b3 | 26774 | echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5 |
f73dda09 | 26775 | echo $ECHO_N "checking shared object configuration for loadable builtins... $ECHO_C" >&6 |
28ef6c31 | 26776 | eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"` |
f73dda09 | 26777 | |
a82a04b3 CR |
26778 | |
26779 | ||
26780 | ||
26781 | ||
26782 | ||
26783 | ||
26784 | echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5 | |
f73dda09 | 26785 | echo "${ECHO_T}$SHOBJ_STATUS" >&6 |
b72432fd JA |
26786 | fi |
26787 | ||
ccc6cda3 JA |
26788 | # try to create a directory tree if the source is elsewhere |
26789 | # this should be packaged into a script accessible via ${srcdir}/support | |
26790 | case "$srcdir" in | |
26791 | .) ;; | |
cce855bc | 26792 | *) for d in doc tests support lib examples; do # dirs |
ccc6cda3 JA |
26793 | test -d $d || mkdir $d |
26794 | done | |
cce855bc | 26795 | for ld in readline glob tilde malloc sh termcap; do # libdirs |
ccc6cda3 JA |
26796 | test -d lib/$ld || mkdir lib/$ld |
26797 | done | |
cce855bc | 26798 | test -d examples/loadables || mkdir examples/loadables # loadable builtins |
bb70624e | 26799 | test -d examples/loadables/perl || mkdir examples/loadables/perl |
ccc6cda3 JA |
26800 | ;; |
26801 | esac | |
26802 | ||
26803 | BUILD_DIR=`pwd` | |
10590446 CR |
26804 | case "$BUILD_DIR" in |
26805 | *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;; | |
26806 | *) ;; | |
26807 | esac | |
ccc6cda3 | 26808 | |
a82a04b3 CR |
26809 | |
26810 | ||
26811 | ||
26812 | ||
26813 | ||
26814 | ||
26815 | ||
26816 | ||
26817 | ||
26818 | ||
26819 | ||
26820 | ||
26821 | ||
26822 | ||
26823 | ||
26824 | ||
26825 | ||
26826 | ||
26827 | ||
26828 | ||
26829 | ||
26830 | ||
26831 | ||
d166f048 JA |
26832 | #AC_SUBST(ALLOCA_SOURCE) |
26833 | #AC_SUBST(ALLOCA_OBJECT) | |
26834 | ||
a82a04b3 CR |
26835 | ac_config_files="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/perl/Makefile pathnames.h" |
26836 | ac_config_commands="$ac_config_commands default" | |
f73dda09 | 26837 | cat >confcache <<\_ACEOF |
ccc6cda3 JA |
26838 | # This file is a shell script that caches the results of configure |
26839 | # tests run on this system so they can be shared between configure | |
f73dda09 JA |
26840 | # scripts and configure runs, see configure's option --config-cache. |
26841 | # It is not useful on other systems. If it contains results you don't | |
26842 | # want to keep, you may remove or edit it. | |
726f6388 | 26843 | # |
f73dda09 JA |
26844 | # config.status only pays attention to the cache file if you give it |
26845 | # the --recheck option to rerun configure. | |
ccc6cda3 | 26846 | # |
a82a04b3 | 26847 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
f73dda09 JA |
26848 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
26849 | # following values. | |
26850 | ||
26851 | _ACEOF | |
26852 | ||
ccc6cda3 JA |
26853 | # The following way of writing the cache mishandles newlines in values, |
26854 | # but we know of no workaround that is simple, portable, and efficient. | |
26855 | # So, don't put newlines in cache variables' values. | |
26856 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
26857 | # and sets the high bit in the cache file unless we assign to the vars. | |
f73dda09 JA |
26858 | { |
26859 | (set) 2>&1 | | |
26860 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
26861 | *ac_space=\ *) | |
26862 | # `set' does not quote correctly, so add quotes (double-quote | |
26863 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
26864 | sed -n \ | |
a82a04b3 CR |
26865 | "s/'/'\\\\''/g; |
26866 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
f73dda09 JA |
26867 | ;; |
26868 | *) | |
26869 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
26870 | sed -n \ | |
a82a04b3 | 26871 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
f73dda09 JA |
26872 | ;; |
26873 | esac; | |
26874 | } | | |
26875 | sed ' | |
26876 | t clear | |
26877 | : clear | |
26878 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
26879 | t end | |
26880 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
26881 | : end' >>confcache | |
a82a04b3 | 26882 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
ccc6cda3 | 26883 | if test -w $cache_file; then |
f73dda09 JA |
26884 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
26885 | cat confcache >$cache_file | |
ccc6cda3 JA |
26886 | else |
26887 | echo "not updating unwritable cache $cache_file" | |
26888 | fi | |
26889 | fi | |
26890 | rm -f confcache | |
26891 | ||
ccc6cda3 JA |
26892 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
26893 | # Let make expand exec_prefix. | |
26894 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
26895 | ||
f73dda09 JA |
26896 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
26897 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
26898 | # trailing colons and then remove the whole line if VPATH becomes empty | |
26899 | # (actually we leave an empty line to preserve line numbers). | |
ccc6cda3 | 26900 | if test "x$srcdir" = x.; then |
a82a04b3 | 26901 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
f73dda09 JA |
26902 | s/:*\$(srcdir):*/:/; |
26903 | s/:*\${srcdir}:*/:/; | |
26904 | s/:*@srcdir@:*/:/; | |
a82a04b3 | 26905 | s/^\([^=]*=[ ]*\):*/\1/; |
f73dda09 | 26906 | s/:*$//; |
a82a04b3 | 26907 | s/^[^=]*=[ ]*$//; |
f73dda09 | 26908 | }' |
ccc6cda3 JA |
26909 | fi |
26910 | ||
ccc6cda3 JA |
26911 | DEFS=-DHAVE_CONFIG_H |
26912 | ||
a82a04b3 CR |
26913 | ac_libobjs= |
26914 | ac_ltlibobjs= | |
26915 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
26916 | # 1. Remove the extension, and $U if already installed. | |
26917 | ac_i=`echo "$ac_i" | | |
26918 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
26919 | # 2. Add them. | |
26920 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
26921 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
26922 | done | |
26923 | LIBOBJS=$ac_libobjs | |
26924 | ||
26925 | LTLIBOBJS=$ac_ltlibobjs | |
26926 | ||
26927 | ||
26928 | ||
ccc6cda3 | 26929 | : ${CONFIG_STATUS=./config.status} |
f73dda09 JA |
26930 | ac_clean_files_save=$ac_clean_files |
26931 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
a82a04b3 | 26932 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
f73dda09 JA |
26933 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
26934 | cat >$CONFIG_STATUS <<_ACEOF | |
26935 | #! $SHELL | |
a82a04b3 | 26936 | # Generated by $as_me. |
ccc6cda3 | 26937 | # Run this file to recreate the current configuration. |
ccc6cda3 | 26938 | # Compiler output produced by configure, useful for debugging |
f73dda09 | 26939 | # configure, is in config.log if it exists. |
ccc6cda3 | 26940 | |
f73dda09 | 26941 | debug=false |
a82a04b3 CR |
26942 | ac_cs_recheck=false |
26943 | ac_cs_silent=false | |
f73dda09 | 26944 | SHELL=\${CONFIG_SHELL-$SHELL} |
f73dda09 JA |
26945 | _ACEOF |
26946 | ||
26947 | cat >>$CONFIG_STATUS <<\_ACEOF | |
a82a04b3 CR |
26948 | ## --------------------- ## |
26949 | ## M4sh Initialization. ## | |
26950 | ## --------------------- ## | |
26951 | ||
f73dda09 JA |
26952 | # Be Bourne compatible |
26953 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
26954 | emulate sh | |
26955 | NULLCMD=: | |
a82a04b3 CR |
26956 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
26957 | # is contrary to our usage. Disable this feature. | |
26958 | alias -g '${1+"$@"}'='"$@"' | |
f73dda09 JA |
26959 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
26960 | set -o posix | |
26961 | fi | |
a82a04b3 CR |
26962 | DUALCASE=1; export DUALCASE # for MKS sh |
26963 | ||
26964 | # Support unset when possible. | |
26965 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26966 | as_unset=unset | |
26967 | else | |
26968 | as_unset=false | |
26969 | fi | |
26970 | ||
26971 | ||
26972 | # Work around bugs in pre-3.0 UWIN ksh. | |
26973 | $as_unset ENV MAIL MAILPATH | |
26974 | PS1='$ ' | |
26975 | PS2='> ' | |
26976 | PS4='+ ' | |
26977 | ||
26978 | # NLS nuisances. | |
26979 | for as_var in \ | |
26980 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
26981 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
26982 | LC_TELEPHONE LC_TIME | |
26983 | do | |
26984 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
26985 | eval $as_var=C; export $as_var | |
26986 | else | |
26987 | $as_unset $as_var | |
26988 | fi | |
26989 | done | |
26990 | ||
26991 | # Required to use basename. | |
26992 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
26993 | as_expr=expr | |
26994 | else | |
26995 | as_expr=false | |
26996 | fi | |
26997 | ||
26998 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
26999 | as_basename=basename | |
27000 | else | |
27001 | as_basename=false | |
27002 | fi | |
27003 | ||
f73dda09 JA |
27004 | |
27005 | # Name of the executable. | |
a82a04b3 CR |
27006 | as_me=`$as_basename "$0" || |
27007 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
27008 | X"$0" : 'X\(//\)$' \| \ | |
27009 | X"$0" : 'X\(/\)$' \| \ | |
27010 | . : '\(.\)' 2>/dev/null || | |
27011 | echo X/"$0" | | |
27012 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
27013 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
27014 | /^X\/\(\/\).*/{ s//\1/; q; } | |
27015 | s/.*/./; q'` | |
27016 | ||
27017 | ||
27018 | # PATH needs CR, and LINENO needs CR and PATH. | |
27019 | # Avoid depending upon Character Ranges. | |
27020 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
27021 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
27022 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
27023 | as_cr_digits='0123456789' | |
27024 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
27025 | ||
27026 | # The user is always right. | |
27027 | if test "${PATH_SEPARATOR+set}" != set; then | |
27028 | echo "#! /bin/sh" >conf$$.sh | |
27029 | echo "exit 0" >>conf$$.sh | |
27030 | chmod +x conf$$.sh | |
27031 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
27032 | PATH_SEPARATOR=';' | |
27033 | else | |
27034 | PATH_SEPARATOR=: | |
27035 | fi | |
27036 | rm -f conf$$.sh | |
27037 | fi | |
27038 | ||
27039 | ||
27040 | as_lineno_1=$LINENO | |
27041 | as_lineno_2=$LINENO | |
27042 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
27043 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
27044 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
27045 | # Find who we are. Look in the path if we contain no path at all | |
27046 | # relative or not. | |
27047 | case $0 in | |
27048 | *[\\/]* ) as_myself=$0 ;; | |
27049 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27050 | for as_dir in $PATH | |
27051 | do | |
27052 | IFS=$as_save_IFS | |
27053 | test -z "$as_dir" && as_dir=. | |
27054 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
27055 | done | |
27056 | ||
27057 | ;; | |
27058 | esac | |
27059 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
27060 | # in which case we are not to be found in the path. | |
27061 | if test "x$as_myself" = x; then | |
27062 | as_myself=$0 | |
27063 | fi | |
27064 | if test ! -f "$as_myself"; then | |
27065 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
27066 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
27067 | { (exit 1); exit 1; }; } | |
27068 | fi | |
27069 | case $CONFIG_SHELL in | |
27070 | '') | |
27071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27072 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
27073 | do | |
27074 | IFS=$as_save_IFS | |
27075 | test -z "$as_dir" && as_dir=. | |
27076 | for as_base in sh bash ksh sh5; do | |
27077 | case $as_dir in | |
27078 | /*) | |
27079 | if ("$as_dir/$as_base" -c ' | |
27080 | as_lineno_1=$LINENO | |
27081 | as_lineno_2=$LINENO | |
27082 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
27083 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
27084 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
27085 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
27086 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
27087 | CONFIG_SHELL=$as_dir/$as_base | |
27088 | export CONFIG_SHELL | |
27089 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
27090 | fi;; | |
27091 | esac | |
27092 | done | |
27093 | done | |
27094 | ;; | |
27095 | esac | |
27096 | ||
27097 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
27098 | # uniformly replaced by the line number. The first 'sed' inserts a | |
27099 | # line-number line before each line; the second 'sed' does the real | |
27100 | # work. The second script uses 'N' to pair each line-number line | |
27101 | # with the numbered line, and appends trailing '-' during | |
27102 | # substitution so that $LINENO is not a special case at line end. | |
27103 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
27104 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
27105 | sed '=' <$as_myself | | |
27106 | sed ' | |
27107 | N | |
27108 | s,$,-, | |
27109 | : loop | |
27110 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
27111 | t loop | |
27112 | s,-$,, | |
27113 | s,^['$as_cr_digits']*\n,, | |
27114 | ' >$as_me.lineno && | |
27115 | chmod +x $as_me.lineno || | |
27116 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
27117 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
27118 | { (exit 1); exit 1; }; } | |
27119 | ||
27120 | # Don't try to exec as it changes $[0], causing all sort of problems | |
27121 | # (the dirname of $[0] is not the place where we might find the | |
27122 | # original and so on. Autoconf is especially sensible to this). | |
27123 | . ./$as_me.lineno | |
27124 | # Exit status is that of the last command. | |
27125 | exit | |
27126 | } | |
27127 | ||
27128 | ||
27129 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
27130 | *c*,-n*) ECHO_N= ECHO_C=' | |
27131 | ' ECHO_T=' ' ;; | |
27132 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
27133 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
27134 | esac | |
f73dda09 JA |
27135 | |
27136 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
27137 | as_expr=expr | |
27138 | else | |
27139 | as_expr=false | |
27140 | fi | |
27141 | ||
27142 | rm -f conf$$ conf$$.exe conf$$.file | |
27143 | echo >conf$$.file | |
27144 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
27145 | # We could just check for DJGPP; but this test a) works b) is more generic | |
27146 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
27147 | if test -f conf$$.exe; then | |
27148 | # Don't use ln at all; we don't have any links | |
27149 | as_ln_s='cp -p' | |
27150 | else | |
27151 | as_ln_s='ln -s' | |
27152 | fi | |
27153 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
27154 | as_ln_s=ln | |
27155 | else | |
27156 | as_ln_s='cp -p' | |
27157 | fi | |
27158 | rm -f conf$$ conf$$.exe conf$$.file | |
27159 | ||
a82a04b3 CR |
27160 | if mkdir -p . 2>/dev/null; then |
27161 | as_mkdir_p=: | |
e624d0f7 | 27162 | else |
a82a04b3 CR |
27163 | test -d ./-p && rmdir ./-p |
27164 | as_mkdir_p=false | |
e624d0f7 | 27165 | fi |
545f34cf | 27166 | |
a82a04b3 CR |
27167 | as_executable_p="test -f" |
27168 | ||
27169 | # Sed expression to map a string onto a valid CPP name. | |
27170 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
27171 | ||
27172 | # Sed expression to map a string onto a valid variable name. | |
27173 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
27174 | ||
f73dda09 JA |
27175 | |
27176 | # IFS | |
27177 | # We need space, tab and new line, in precisely that order. | |
27178 | as_nl=' | |
27179 | ' | |
27180 | IFS=" $as_nl" | |
27181 | ||
27182 | # CDPATH. | |
a82a04b3 | 27183 | $as_unset CDPATH |
f73dda09 JA |
27184 | |
27185 | exec 6>&1 | |
27186 | ||
a82a04b3 CR |
27187 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
27188 | # report actual input values of CONFIG_FILES etc. instead of their | |
27189 | # values after options handling. Logging --version etc. is OK. | |
27190 | exec 5>>config.log | |
27191 | { | |
27192 | echo | |
27193 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
27194 | ## Running $as_me. ## | |
27195 | _ASBOX | |
27196 | } >&5 | |
27197 | cat >&5 <<_CSEOF | |
27198 | ||
27199 | This file was extended by bash $as_me 3.1-devel, which was | |
27200 | generated by GNU Autoconf 2.59. Invocation command line was | |
27201 | ||
27202 | CONFIG_FILES = $CONFIG_FILES | |
27203 | CONFIG_HEADERS = $CONFIG_HEADERS | |
27204 | CONFIG_LINKS = $CONFIG_LINKS | |
27205 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
27206 | $ $0 $@ | |
27207 | ||
27208 | _CSEOF | |
27209 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
27210 | echo >&5 | |
f73dda09 JA |
27211 | _ACEOF |
27212 | ||
27213 | # Files that config.status was made for. | |
27214 | if test -n "$ac_config_files"; then | |
27215 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
27216 | fi | |
27217 | ||
27218 | if test -n "$ac_config_headers"; then | |
27219 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
27220 | fi | |
27221 | ||
27222 | if test -n "$ac_config_links"; then | |
27223 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
27224 | fi | |
27225 | ||
27226 | if test -n "$ac_config_commands"; then | |
27227 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
27228 | fi | |
27229 | ||
a82a04b3 | 27230 | cat >>$CONFIG_STATUS <<\_ACEOF |
f73dda09 JA |
27231 | |
27232 | ac_cs_usage="\ | |
27233 | \`$as_me' instantiates files from templates according to the | |
27234 | current configuration. | |
27235 | ||
27236 | Usage: $0 [OPTIONS] [FILE]... | |
27237 | ||
27238 | -h, --help print this help, then exit | |
27239 | -V, --version print version number, then exit | |
a82a04b3 | 27240 | -q, --quiet do not print progress messages |
f73dda09 JA |
27241 | -d, --debug don't remove temporary files |
27242 | --recheck update $as_me by reconfiguring in the same conditions | |
27243 | --file=FILE[:TEMPLATE] | |
a82a04b3 | 27244 | instantiate the configuration file FILE |
f73dda09 | 27245 | --header=FILE[:TEMPLATE] |
a82a04b3 | 27246 | instantiate the configuration header FILE |
f73dda09 JA |
27247 | |
27248 | Configuration files: | |
27249 | $config_files | |
27250 | ||
27251 | Configuration headers: | |
27252 | $config_headers | |
27253 | ||
27254 | Configuration commands: | |
27255 | $config_commands | |
27256 | ||
27257 | Report bugs to <bug-autoconf@gnu.org>." | |
a82a04b3 | 27258 | _ACEOF |
f73dda09 | 27259 | |
a82a04b3 | 27260 | cat >>$CONFIG_STATUS <<_ACEOF |
f73dda09 | 27261 | ac_cs_version="\\ |
301e2142 | 27262 | bash config.status 3.1-devel |
a82a04b3 | 27263 | configured by $0, generated by GNU Autoconf 2.59, |
f73dda09 JA |
27264 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
27265 | ||
a82a04b3 | 27266 | Copyright (C) 2003 Free Software Foundation, Inc. |
f73dda09 JA |
27267 | This config.status script is free software; the Free Software Foundation |
27268 | gives unlimited permission to copy, distribute and modify it." | |
27269 | srcdir=$srcdir | |
27270 | INSTALL="$INSTALL" | |
a82a04b3 | 27271 | _ACEOF |
f73dda09 | 27272 | |
a82a04b3 | 27273 | cat >>$CONFIG_STATUS <<\_ACEOF |
f73dda09 JA |
27274 | # If no file are specified by the user, then we need to provide default |
27275 | # value. By we need to know if files were specified by the user. | |
27276 | ac_need_defaults=: | |
27277 | while test $# != 0 | |
ccc6cda3 | 27278 | do |
f73dda09 JA |
27279 | case $1 in |
27280 | --*=*) | |
27281 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
27282 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
a82a04b3 CR |
27283 | ac_shift=: |
27284 | ;; | |
27285 | -*) | |
27286 | ac_option=$1 | |
27287 | ac_optarg=$2 | |
27288 | ac_shift=shift | |
f73dda09 | 27289 | ;; |
f73dda09 JA |
27290 | *) # This is not an option, so the user has probably given explicit |
27291 | # arguments. | |
a82a04b3 | 27292 | ac_option=$1 |
f73dda09 JA |
27293 | ac_need_defaults=false;; |
27294 | esac | |
27295 | ||
a82a04b3 | 27296 | case $ac_option in |
f73dda09 | 27297 | # Handling of the options. |
a82a04b3 CR |
27298 | _ACEOF |
27299 | cat >>$CONFIG_STATUS <<\_ACEOF | |
ccc6cda3 | 27300 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
a82a04b3 | 27301 | ac_cs_recheck=: ;; |
f73dda09 JA |
27302 | --version | --vers* | -V ) |
27303 | echo "$ac_cs_version"; exit 0 ;; | |
27304 | --he | --h) | |
27305 | # Conflict between --help and --header | |
a82a04b3 | 27306 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
f73dda09 JA |
27307 | Try \`$0 --help' for more information." >&5 |
27308 | echo "$as_me: error: ambiguous option: $1 | |
27309 | Try \`$0 --help' for more information." >&2;} | |
27310 | { (exit 1); exit 1; }; };; | |
27311 | --help | --hel | -h ) | |
27312 | echo "$ac_cs_usage"; exit 0 ;; | |
27313 | --debug | --d* | -d ) | |
27314 | debug=: ;; | |
27315 | --file | --fil | --fi | --f ) | |
a82a04b3 CR |
27316 | $ac_shift |
27317 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
f73dda09 JA |
27318 | ac_need_defaults=false;; |
27319 | --header | --heade | --head | --hea ) | |
a82a04b3 CR |
27320 | $ac_shift |
27321 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
f73dda09 | 27322 | ac_need_defaults=false;; |
a82a04b3 CR |
27323 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
27324 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
27325 | ac_cs_silent=: ;; | |
f73dda09 JA |
27326 | |
27327 | # This is an error. | |
a82a04b3 | 27328 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
f73dda09 JA |
27329 | Try \`$0 --help' for more information." >&5 |
27330 | echo "$as_me: error: unrecognized option: $1 | |
27331 | Try \`$0 --help' for more information." >&2;} | |
27332 | { (exit 1); exit 1; }; } ;; | |
27333 | ||
27334 | *) ac_config_targets="$ac_config_targets $1" ;; | |
27335 | ||
ccc6cda3 | 27336 | esac |
f73dda09 | 27337 | shift |
ccc6cda3 JA |
27338 | done |
27339 | ||
a82a04b3 | 27340 | ac_configure_extra_args= |
ccc6cda3 | 27341 | |
a82a04b3 CR |
27342 | if $ac_cs_silent; then |
27343 | exec 6>/dev/null | |
27344 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
27345 | fi | |
f73dda09 | 27346 | |
a82a04b3 CR |
27347 | _ACEOF |
27348 | cat >>$CONFIG_STATUS <<_ACEOF | |
27349 | if \$ac_cs_recheck; then | |
27350 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
27351 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
27352 | fi | |
f73dda09 JA |
27353 | |
27354 | _ACEOF | |
ccc6cda3 | 27355 | |
a82a04b3 | 27356 | cat >>$CONFIG_STATUS <<_ACEOF |
5e13499c CR |
27357 | # |
27358 | # INIT-COMMANDS section. | |
27359 | # | |
27360 | ||
27361 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute | |
27362 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
27363 | # from automake. | |
27364 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
27365 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
27366 | LINGUAS="${LINGUAS-%UNSET%}" | |
27367 | ||
5e13499c | 27368 | |
a82a04b3 CR |
27369 | _ACEOF |
27370 | ||
27371 | ||
27372 | ||
27373 | cat >>$CONFIG_STATUS <<\_ACEOF | |
f73dda09 JA |
27374 | for ac_config_target in $ac_config_targets |
27375 | do | |
27376 | case "$ac_config_target" in | |
27377 | # Handling of arguments. | |
27378 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
27379 | "builtins/Makefile" ) CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;; | |
27380 | "lib/readline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;; | |
27381 | "lib/glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;; | |
5e13499c | 27382 | "lib/intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;; |
f73dda09 JA |
27383 | "lib/malloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;; |
27384 | "lib/sh/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;; | |
27385 | "lib/termcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;; | |
27386 | "lib/tilde/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;; | |
27387 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
27388 | "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;; | |
5e13499c | 27389 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; |
f73dda09 JA |
27390 | "examples/loadables/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;; |
27391 | "examples/loadables/perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;; | |
d3a24ed2 | 27392 | "pathnames.h" ) CONFIG_FILES="$CONFIG_FILES pathnames.h" ;; |
5e13499c | 27393 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
f73dda09 JA |
27394 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
27395 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
a82a04b3 | 27396 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
f73dda09 JA |
27397 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
27398 | { (exit 1); exit 1; }; };; | |
27399 | esac | |
27400 | done | |
27401 | ||
27402 | # If the user did not use the arguments to specify the items to instantiate, | |
27403 | # then the envvar interface is used. Set only those that are not. | |
27404 | # We use the long form for the default assignment because of an extremely | |
27405 | # bizarre bug on SunOS 4.1.3. | |
27406 | if $ac_need_defaults; then | |
27407 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
27408 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
27409 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
27410 | fi | |
27411 | ||
a82a04b3 CR |
27412 | # Have a temporary directory for convenience. Make it in the build tree |
27413 | # simply because there is no reason to put it here, and in addition, | |
27414 | # creating and moving files from /tmp can sometimes cause problems. | |
f73dda09 JA |
27415 | # Create a temporary directory, and hook for its removal unless debugging. |
27416 | $debug || | |
27417 | { | |
27418 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
27419 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
27420 | } | |
27421 | ||
27422 | # Create a (secure) tmp directory for tmp files. | |
a82a04b3 | 27423 | |
f73dda09 | 27424 | { |
a82a04b3 | 27425 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
f73dda09 JA |
27426 | test -n "$tmp" && test -d "$tmp" |
27427 | } || | |
27428 | { | |
a82a04b3 | 27429 | tmp=./confstat$$-$RANDOM |
f73dda09 JA |
27430 | (umask 077 && mkdir $tmp) |
27431 | } || | |
27432 | { | |
a82a04b3 | 27433 | echo "$me: cannot create a temporary directory in ." >&2 |
f73dda09 JA |
27434 | { (exit 1); exit 1; } |
27435 | } | |
ccc6cda3 | 27436 | |
a82a04b3 | 27437 | _ACEOF |
ccc6cda3 | 27438 | |
a82a04b3 | 27439 | cat >>$CONFIG_STATUS <<_ACEOF |
ccc6cda3 | 27440 | |
f73dda09 JA |
27441 | # |
27442 | # CONFIG_FILES section. | |
27443 | # | |
27444 | ||
27445 | # No need to generate the scripts if there are no CONFIG_FILES. | |
27446 | # This happens for instance when ./config.status config.h | |
27447 | if test -n "\$CONFIG_FILES"; then | |
27448 | # Protect against being on the right side of a sed subst in config.status. | |
27449 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
27450 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
27451 | s,@SHELL@,$SHELL,;t t | |
a82a04b3 CR |
27452 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
27453 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
27454 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
27455 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
27456 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
27457 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
f73dda09 JA |
27458 | s,@exec_prefix@,$exec_prefix,;t t |
27459 | s,@prefix@,$prefix,;t t | |
27460 | s,@program_transform_name@,$program_transform_name,;t t | |
27461 | s,@bindir@,$bindir,;t t | |
27462 | s,@sbindir@,$sbindir,;t t | |
27463 | s,@libexecdir@,$libexecdir,;t t | |
27464 | s,@datadir@,$datadir,;t t | |
27465 | s,@sysconfdir@,$sysconfdir,;t t | |
27466 | s,@sharedstatedir@,$sharedstatedir,;t t | |
27467 | s,@localstatedir@,$localstatedir,;t t | |
27468 | s,@libdir@,$libdir,;t t | |
27469 | s,@includedir@,$includedir,;t t | |
27470 | s,@oldincludedir@,$oldincludedir,;t t | |
27471 | s,@infodir@,$infodir,;t t | |
27472 | s,@mandir@,$mandir,;t t | |
f73dda09 JA |
27473 | s,@build_alias@,$build_alias,;t t |
27474 | s,@host_alias@,$host_alias,;t t | |
27475 | s,@target_alias@,$target_alias,;t t | |
a82a04b3 | 27476 | s,@DEFS@,$DEFS,;t t |
f73dda09 JA |
27477 | s,@ECHO_C@,$ECHO_C,;t t |
27478 | s,@ECHO_N@,$ECHO_N,;t t | |
27479 | s,@ECHO_T@,$ECHO_T,;t t | |
f73dda09 JA |
27480 | s,@LIBS@,$LIBS,;t t |
27481 | s,@build@,$build,;t t | |
27482 | s,@build_cpu@,$build_cpu,;t t | |
27483 | s,@build_vendor@,$build_vendor,;t t | |
27484 | s,@build_os@,$build_os,;t t | |
27485 | s,@host@,$host,;t t | |
27486 | s,@host_cpu@,$host_cpu,;t t | |
27487 | s,@host_vendor@,$host_vendor,;t t | |
27488 | s,@host_os@,$host_os,;t t | |
d3a24ed2 CR |
27489 | s,@EMACS@,$EMACS,;t t |
27490 | s,@lispdir@,$lispdir,;t t | |
27491 | s,@DEBUGGER_START_FILE@,$DEBUGGER_START_FILE,;t t | |
f73dda09 JA |
27492 | s,@TESTSCRIPT@,$TESTSCRIPT,;t t |
27493 | s,@PURIFY@,$PURIFY,;t t | |
27494 | s,@MALLOC_TARGET@,$MALLOC_TARGET,;t t | |
27495 | s,@MALLOC_SRC@,$MALLOC_SRC,;t t | |
27496 | s,@MALLOC_LIB@,$MALLOC_LIB,;t t | |
27497 | s,@MALLOC_LIBRARY@,$MALLOC_LIBRARY,;t t | |
27498 | s,@MALLOC_LDFLAGS@,$MALLOC_LDFLAGS,;t t | |
27499 | s,@MALLOC_DEP@,$MALLOC_DEP,;t t | |
27500 | s,@htmldir@,$htmldir,;t t | |
7117c2d2 JA |
27501 | s,@HELPDIR@,$HELPDIR,;t t |
27502 | s,@HELPDIRDEFINE@,$HELPDIRDEFINE,;t t | |
27503 | s,@HELPINSTALL@,$HELPINSTALL,;t t | |
01ed5ba4 | 27504 | s,@HELPSTRINGS@,$HELPSTRINGS,;t t |
f73dda09 JA |
27505 | s,@CC@,$CC,;t t |
27506 | s,@CFLAGS@,$CFLAGS,;t t | |
27507 | s,@LDFLAGS@,$LDFLAGS,;t t | |
27508 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
27509 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
27510 | s,@EXEEXT@,$EXEEXT,;t t | |
27511 | s,@OBJEXT@,$OBJEXT,;t t | |
27512 | s,@CPP@,$CPP,;t t | |
a82a04b3 | 27513 | s,@EGREP@,$EGREP,;t t |
9607141c | 27514 | s,@CROSS_COMPILE@,$CROSS_COMPILE,;t t |
f73dda09 JA |
27515 | s,@SIGNAMES_H@,$SIGNAMES_H,;t t |
27516 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
27517 | s,@STATIC_LD@,$STATIC_LD,;t t | |
7117c2d2 JA |
27518 | s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t |
27519 | s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t | |
27520 | s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t | |
f73dda09 JA |
27521 | s,@RL_VERSION@,$RL_VERSION,;t t |
27522 | s,@RL_MAJOR@,$RL_MAJOR,;t t | |
27523 | s,@RL_MINOR@,$RL_MINOR,;t t | |
27524 | s,@READLINE_LIB@,$READLINE_LIB,;t t | |
27525 | s,@READLINE_DEP@,$READLINE_DEP,;t t | |
27526 | s,@RL_LIBDIR@,$RL_LIBDIR,;t t | |
27527 | s,@RL_INCLUDEDIR@,$RL_INCLUDEDIR,;t t | |
27528 | s,@RL_INCLUDE@,$RL_INCLUDE,;t t | |
27529 | s,@HISTORY_LIB@,$HISTORY_LIB,;t t | |
27530 | s,@HISTORY_DEP@,$HISTORY_DEP,;t t | |
27531 | s,@HIST_LIBDIR@,$HIST_LIBDIR,;t t | |
27532 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
27533 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
27534 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
27535 | s,@AR@,$AR,;t t | |
27536 | s,@RANLIB@,$RANLIB,;t t | |
27537 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
27538 | s,@YACC@,$YACC,;t t | |
27539 | s,@SET_MAKE@,$SET_MAKE,;t t | |
27540 | s,@MAKE_SHELL@,$MAKE_SHELL,;t t | |
10590446 | 27541 | s,@SIZE@,$SIZE,;t t |
5e13499c CR |
27542 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
27543 | s,@USE_NLS@,$USE_NLS,;t t | |
27544 | s,@MSGFMT@,$MSGFMT,;t t | |
27545 | s,@GMSGFMT@,$GMSGFMT,;t t | |
27546 | s,@XGETTEXT@,$XGETTEXT,;t t | |
27547 | s,@MSGMERGE@,$MSGMERGE,;t t | |
f73dda09 | 27548 | s,@ALLOCA@,$ALLOCA,;t t |
5e13499c CR |
27549 | s,@GLIBC21@,$GLIBC21,;t t |
27550 | s,@LIBICONV@,$LIBICONV,;t t | |
27551 | s,@LTLIBICONV@,$LTLIBICONV,;t t | |
27552 | s,@INTLBISON@,$INTLBISON,;t t | |
27553 | s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t | |
27554 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
27555 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
27556 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
27557 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
27558 | s,@GENCAT@,$GENCAT,;t t | |
27559 | s,@INTLOBJS@,$INTLOBJS,;t t | |
27560 | s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t | |
27561 | s,@INTLLIBS@,$INTLLIBS,;t t | |
27562 | s,@LIBINTL@,$LIBINTL,;t t | |
27563 | s,@LTLIBINTL@,$LTLIBINTL,;t t | |
27564 | s,@POSUB@,$POSUB,;t t | |
f73dda09 | 27565 | s,@LIBOBJS@,$LIBOBJS,;t t |
5e13499c CR |
27566 | s,@INTL_DEP@,$INTL_DEP,;t t |
27567 | s,@INTL_INC@,$INTL_INC,;t t | |
12d937f9 | 27568 | s,@LIBINTL_H@,$LIBINTL_H,;t t |
f73dda09 JA |
27569 | s,@SIGLIST_O@,$SIGLIST_O,;t t |
27570 | s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t | |
27571 | s,@TERMCAP_DEP@,$TERMCAP_DEP,;t t | |
27572 | s,@JOBS_O@,$JOBS_O,;t t | |
27573 | s,@SHOBJ_CC@,$SHOBJ_CC,;t t | |
27574 | s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t | |
27575 | s,@SHOBJ_LD@,$SHOBJ_LD,;t t | |
27576 | s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t | |
27577 | s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t | |
27578 | s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t | |
27579 | s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t | |
27580 | s,@PROFILE_FLAGS@,$PROFILE_FLAGS,;t t | |
27581 | s,@incdir@,$incdir,;t t | |
27582 | s,@BUILD_DIR@,$BUILD_DIR,;t t | |
27583 | s,@ARFLAGS@,$ARFLAGS,;t t | |
27584 | s,@BASHVERS@,$BASHVERS,;t t | |
7117c2d2 JA |
27585 | s,@RELSTATUS@,$RELSTATUS,;t t |
27586 | s,@DEBUG@,$DEBUG,;t t | |
27587 | s,@MALLOC_DEBUG@,$MALLOC_DEBUG,;t t | |
f73dda09 JA |
27588 | s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t |
27589 | s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t | |
27590 | s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t | |
27591 | s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t | |
a82a04b3 | 27592 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
f73dda09 JA |
27593 | CEOF |
27594 | ||
a82a04b3 | 27595 | _ACEOF |
f73dda09 | 27596 | |
a82a04b3 | 27597 | cat >>$CONFIG_STATUS <<\_ACEOF |
f73dda09 JA |
27598 | # Split the substitutions into bite-sized pieces for seds with |
27599 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
27600 | ac_max_sed_lines=48 | |
27601 | ac_sed_frag=1 # Number of current file. | |
27602 | ac_beg=1 # First line for current file. | |
27603 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
27604 | ac_more_lines=: | |
27605 | ac_sed_cmds= | |
27606 | while $ac_more_lines; do | |
27607 | if test $ac_beg -gt 1; then | |
27608 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
27609 | else | |
27610 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
27611 | fi | |
27612 | if test ! -s $tmp/subs.frag; then | |
27613 | ac_more_lines=false | |
ccc6cda3 | 27614 | else |
f73dda09 JA |
27615 | # The purpose of the label and of the branching condition is to |
27616 | # speed up the sed processing (if there are no `@' at all, there | |
27617 | # is no need to browse any of the substitutions). | |
27618 | # These are the two extra sed commands mentioned above. | |
27619 | (echo ':t | |
27620 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
27621 | if test -z "$ac_sed_cmds"; then | |
a82a04b3 | 27622 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
f73dda09 | 27623 | else |
a82a04b3 | 27624 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
f73dda09 JA |
27625 | fi |
27626 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
27627 | ac_beg=$ac_end | |
27628 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
ccc6cda3 | 27629 | fi |
f73dda09 JA |
27630 | done |
27631 | if test -z "$ac_sed_cmds"; then | |
27632 | ac_sed_cmds=cat | |
ccc6cda3 | 27633 | fi |
f73dda09 | 27634 | fi # test -n "$CONFIG_FILES" |
ccc6cda3 | 27635 | |
a82a04b3 CR |
27636 | _ACEOF |
27637 | cat >>$CONFIG_STATUS <<\_ACEOF | |
f73dda09 | 27638 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
ccc6cda3 | 27639 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
f73dda09 JA |
27640 | case $ac_file in |
27641 | - | *:- | *:-:* ) # input from stdin | |
a82a04b3 CR |
27642 | cat >$tmp/stdin |
27643 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
27644 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
f73dda09 | 27645 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
a82a04b3 | 27646 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
f73dda09 | 27647 | * ) ac_file_in=$ac_file.in ;; |
ccc6cda3 JA |
27648 | esac |
27649 | ||
f73dda09 | 27650 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
a82a04b3 CR |
27651 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
27652 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27653 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
27654 | X"$ac_file" : 'X\(//\)$' \| \ | |
27655 | X"$ac_file" : 'X\(/\)' \| \ | |
27656 | . : '\(.\)' 2>/dev/null || | |
f73dda09 JA |
27657 | echo X"$ac_file" | |
27658 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
27659 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
27660 | /^X\(\/\/\)$/{ s//\1/; q; } | |
27661 | /^X\(\/\).*/{ s//\1/; q; } | |
27662 | s/.*/./; q'` | |
a82a04b3 CR |
27663 | { if $as_mkdir_p; then |
27664 | mkdir -p "$ac_dir" | |
e624d0f7 | 27665 | else |
a82a04b3 CR |
27666 | as_dir="$ac_dir" |
27667 | as_dirs= | |
27668 | while test ! -d "$as_dir"; do | |
27669 | as_dirs="$as_dir $as_dirs" | |
27670 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
27671 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27672 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
27673 | X"$as_dir" : 'X\(//\)$' \| \ | |
27674 | X"$as_dir" : 'X\(/\)' \| \ | |
27675 | . : '\(.\)' 2>/dev/null || | |
27676 | echo X"$as_dir" | | |
27677 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
27678 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
27679 | /^X\(\/\/\)$/{ s//\1/; q; } | |
27680 | /^X\(\/\).*/{ s//\1/; q; } | |
27681 | s/.*/./; q'` | |
27682 | done | |
27683 | test ! -n "$as_dirs" || mkdir $as_dirs | |
27684 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
27685 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
27686 | { (exit 1); exit 1; }; }; } | |
545f34cf | 27687 | |
a82a04b3 CR |
27688 | ac_builddir=. |
27689 | ||
27690 | if test "$ac_dir" != .; then | |
27691 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
27692 | # A "../" for each directory in $ac_dir_suffix. | |
27693 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
27694 | else | |
27695 | ac_dir_suffix= ac_top_builddir= | |
27696 | fi | |
27697 | ||
27698 | case $srcdir in | |
27699 | .) # No --srcdir option. We are building in place. | |
27700 | ac_srcdir=. | |
27701 | if test -z "$ac_top_builddir"; then | |
27702 | ac_top_srcdir=. | |
27703 | else | |
27704 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
27705 | fi ;; | |
27706 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
27707 | ac_srcdir=$srcdir$ac_dir_suffix; | |
27708 | ac_top_srcdir=$srcdir ;; | |
ccc6cda3 | 27709 | *) # Relative path. |
a82a04b3 CR |
27710 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
27711 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
27712 | esac | |
27713 | ||
27714 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
27715 | # the directories may not exist. | |
27716 | case `pwd` in | |
27717 | .) ac_abs_builddir="$ac_dir";; | |
27718 | *) | |
27719 | case "$ac_dir" in | |
27720 | .) ac_abs_builddir=`pwd`;; | |
27721 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
27722 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
27723 | esac;; | |
27724 | esac | |
27725 | case $ac_abs_builddir in | |
27726 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
27727 | *) | |
27728 | case ${ac_top_builddir}. in | |
27729 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
27730 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
27731 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
27732 | esac;; | |
27733 | esac | |
27734 | case $ac_abs_builddir in | |
27735 | .) ac_abs_srcdir=$ac_srcdir;; | |
27736 | *) | |
27737 | case $ac_srcdir in | |
27738 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
27739 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
27740 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
27741 | esac;; | |
27742 | esac | |
27743 | case $ac_abs_builddir in | |
27744 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
27745 | *) | |
27746 | case $ac_top_srcdir in | |
27747 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
27748 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
27749 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
27750 | esac;; | |
27751 | esac | |
27752 | ||
ccc6cda3 | 27753 | |
f73dda09 JA |
27754 | case $INSTALL in |
27755 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
a82a04b3 | 27756 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
ccc6cda3 JA |
27757 | esac |
27758 | ||
f73dda09 | 27759 | if test x"$ac_file" != x-; then |
a82a04b3 | 27760 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
f73dda09 JA |
27761 | echo "$as_me: creating $ac_file" >&6;} |
27762 | rm -f "$ac_file" | |
27763 | fi | |
27764 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
27765 | # use $as_me), people would be surprised to read: | |
a82a04b3 CR |
27766 | # /* config.h. Generated by config.status. */ |
27767 | if test x"$ac_file" = x-; then | |
27768 | configure_input= | |
27769 | else | |
27770 | configure_input="$ac_file. " | |
27771 | fi | |
27772 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
27773 | sed 's,.*/,,'` by configure." | |
f73dda09 JA |
27774 | |
27775 | # First look for the input files in the build tree, otherwise in the | |
27776 | # src tree. | |
27777 | ac_file_inputs=`IFS=: | |
27778 | for f in $ac_file_in; do | |
27779 | case $f in | |
27780 | -) echo $tmp/stdin ;; | |
27781 | [\\/$]*) | |
a82a04b3 CR |
27782 | # Absolute (can't be DOS-style, as IFS=:) |
27783 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
f73dda09 JA |
27784 | echo "$as_me: error: cannot find input file: $f" >&2;} |
27785 | { (exit 1); exit 1; }; } | |
a82a04b3 | 27786 | echo "$f";; |
f73dda09 | 27787 | *) # Relative |
a82a04b3 CR |
27788 | if test -f "$f"; then |
27789 | # Build tree | |
27790 | echo "$f" | |
27791 | elif test -f "$srcdir/$f"; then | |
27792 | # Source tree | |
27793 | echo "$srcdir/$f" | |
27794 | else | |
27795 | # /dev/null tree | |
27796 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
f73dda09 JA |
27797 | echo "$as_me: error: cannot find input file: $f" >&2;} |
27798 | { (exit 1); exit 1; }; } | |
a82a04b3 | 27799 | fi;; |
f73dda09 JA |
27800 | esac |
27801 | done` || { (exit 1); exit 1; } | |
a82a04b3 CR |
27802 | _ACEOF |
27803 | cat >>$CONFIG_STATUS <<_ACEOF | |
f73dda09 JA |
27804 | sed "$ac_vpsub |
27805 | $extrasub | |
a82a04b3 CR |
27806 | _ACEOF |
27807 | cat >>$CONFIG_STATUS <<\_ACEOF | |
f73dda09 JA |
27808 | :t |
27809 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
27810 | s,@configure_input@,$configure_input,;t t | |
27811 | s,@srcdir@,$ac_srcdir,;t t | |
a82a04b3 | 27812 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
f73dda09 | 27813 | s,@top_srcdir@,$ac_top_srcdir,;t t |
a82a04b3 CR |
27814 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
27815 | s,@builddir@,$ac_builddir,;t t | |
27816 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
27817 | s,@top_builddir@,$ac_top_builddir,;t t | |
27818 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
f73dda09 JA |
27819 | s,@INSTALL@,$ac_INSTALL,;t t |
27820 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
27821 | rm -f $tmp/stdin | |
27822 | if test x"$ac_file" != x-; then | |
27823 | mv $tmp/out $ac_file | |
27824 | else | |
27825 | cat $tmp/out | |
27826 | rm -f $tmp/out | |
27827 | fi | |
27828 | ||
27829 | done | |
a82a04b3 CR |
27830 | _ACEOF |
27831 | cat >>$CONFIG_STATUS <<\_ACEOF | |
ccc6cda3 | 27832 | |
f73dda09 JA |
27833 | # |
27834 | # CONFIG_HEADER section. | |
27835 | # | |
ccc6cda3 JA |
27836 | |
27837 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
27838 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
27839 | # | |
27840 | # ac_d sets the value in "#define NAME VALUE" lines. | |
a82a04b3 CR |
27841 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
27842 | ac_dB='[ ].*$,\1#\2' | |
f73dda09 JA |
27843 | ac_dC=' ' |
27844 | ac_dD=',;t' | |
27845 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
a82a04b3 | 27846 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
f73dda09 | 27847 | ac_uB='$,\1#\2define\3' |
ccc6cda3 | 27848 | ac_uC=' ' |
f73dda09 | 27849 | ac_uD=',;t' |
ccc6cda3 | 27850 | |
f73dda09 | 27851 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
ccc6cda3 | 27852 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
f73dda09 JA |
27853 | case $ac_file in |
27854 | - | *:- | *:-:* ) # input from stdin | |
a82a04b3 CR |
27855 | cat >$tmp/stdin |
27856 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
27857 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
f73dda09 | 27858 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
a82a04b3 | 27859 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
f73dda09 | 27860 | * ) ac_file_in=$ac_file.in ;; |
ccc6cda3 JA |
27861 | esac |
27862 | ||
a82a04b3 | 27863 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
f73dda09 JA |
27864 | echo "$as_me: creating $ac_file" >&6;} |
27865 | ||
27866 | # First look for the input files in the build tree, otherwise in the | |
27867 | # src tree. | |
27868 | ac_file_inputs=`IFS=: | |
27869 | for f in $ac_file_in; do | |
27870 | case $f in | |
27871 | -) echo $tmp/stdin ;; | |
27872 | [\\/$]*) | |
a82a04b3 CR |
27873 | # Absolute (can't be DOS-style, as IFS=:) |
27874 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
f73dda09 JA |
27875 | echo "$as_me: error: cannot find input file: $f" >&2;} |
27876 | { (exit 1); exit 1; }; } | |
a82a04b3 CR |
27877 | # Do quote $f, to prevent DOS paths from being IFS'd. |
27878 | echo "$f";; | |
f73dda09 | 27879 | *) # Relative |
a82a04b3 CR |
27880 | if test -f "$f"; then |
27881 | # Build tree | |
27882 | echo "$f" | |
27883 | elif test -f "$srcdir/$f"; then | |
27884 | # Source tree | |
27885 | echo "$srcdir/$f" | |
27886 | else | |
27887 | # /dev/null tree | |
27888 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
f73dda09 JA |
27889 | echo "$as_me: error: cannot find input file: $f" >&2;} |
27890 | { (exit 1); exit 1; }; } | |
a82a04b3 | 27891 | fi;; |
f73dda09 JA |
27892 | esac |
27893 | done` || { (exit 1); exit 1; } | |
27894 | # Remove the trailing spaces. | |
a82a04b3 | 27895 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
f73dda09 | 27896 | |
a82a04b3 | 27897 | _ACEOF |
f73dda09 JA |
27898 | |
27899 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
27900 | # `conftest.undefs', that substitutes the proper values into | |
27901 | # config.h.in to produce config.h. The first handles `#define' | |
27902 | # templates, and the second `#undef' templates. | |
27903 | # And first: Protect against being on the right side of a sed subst in | |
27904 | # config.status. Protect against being in an unquoted here document | |
27905 | # in config.status. | |
27906 | rm -f conftest.defines conftest.undefs | |
27907 | # Using a here document instead of a string reduces the quoting nightmare. | |
27908 | # Putting comments in sed scripts is not portable. | |
27909 | # | |
27910 | # `end' is used to avoid that the second main sed command (meant for | |
27911 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
27912 | # See the Autoconf documentation for `clear'. | |
a82a04b3 | 27913 | cat >confdef2sed.sed <<\_ACEOF |
f73dda09 JA |
27914 | s/[\\&,]/\\&/g |
27915 | s,[\\$`],\\&,g | |
27916 | t clear | |
27917 | : clear | |
a82a04b3 | 27918 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
f73dda09 | 27919 | t end |
a82a04b3 | 27920 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
f73dda09 | 27921 | : end |
a82a04b3 | 27922 | _ACEOF |
f73dda09 JA |
27923 | # If some macros were called several times there might be several times |
27924 | # the same #defines, which is useless. Nevertheless, we may not want to | |
27925 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
27926 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
27927 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
27928 | rm -f confdef2sed.sed | |
ccc6cda3 JA |
27929 | |
27930 | # This sed command replaces #undef with comments. This is necessary, for | |
27931 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
27932 | # on some systems where configure will not decide to define it. | |
a82a04b3 CR |
27933 | cat >>conftest.undefs <<\_ACEOF |
27934 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
27935 | _ACEOF | |
ccc6cda3 | 27936 | |
f73dda09 JA |
27937 | # Break up conftest.defines because some shells have a limit on the size |
27938 | # of here documents, and old seds have small limits too (100 cmds). | |
27939 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
a82a04b3 | 27940 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
f73dda09 JA |
27941 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
27942 | echo ' :' >>$CONFIG_STATUS | |
27943 | rm -f conftest.tail | |
27944 | while grep . conftest.defines >/dev/null | |
27945 | do | |
27946 | # Write a limited-size here document to $tmp/defines.sed. | |
27947 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
27948 | # Speed up: don't consider the non `#define' lines. | |
a82a04b3 | 27949 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
f73dda09 JA |
27950 | # Work around the forget-to-reset-the-flag bug. |
27951 | echo 't clr' >>$CONFIG_STATUS | |
27952 | echo ': clr' >>$CONFIG_STATUS | |
27953 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
27954 | echo 'CEOF | |
27955 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
27956 | rm -f $tmp/in | |
27957 | mv $tmp/out $tmp/in | |
27958 | ' >>$CONFIG_STATUS | |
27959 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
27960 | rm -f conftest.defines | |
27961 | mv conftest.tail conftest.defines | |
27962 | done | |
27963 | rm -f conftest.defines | |
a82a04b3 | 27964 | echo ' fi # grep' >>$CONFIG_STATUS |
f73dda09 | 27965 | echo >>$CONFIG_STATUS |
ccc6cda3 | 27966 | |
f73dda09 JA |
27967 | # Break up conftest.undefs because some shells have a limit on the size |
27968 | # of here documents, and old seds have small limits too (100 cmds). | |
27969 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
ccc6cda3 | 27970 | rm -f conftest.tail |
f73dda09 | 27971 | while grep . conftest.undefs >/dev/null |
ccc6cda3 | 27972 | do |
f73dda09 JA |
27973 | # Write a limited-size here document to $tmp/undefs.sed. |
27974 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
27975 | # Speed up: don't consider the non `#undef' | |
a82a04b3 | 27976 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
f73dda09 JA |
27977 | # Work around the forget-to-reset-the-flag bug. |
27978 | echo 't clr' >>$CONFIG_STATUS | |
27979 | echo ': clr' >>$CONFIG_STATUS | |
27980 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
ccc6cda3 | 27981 | echo 'CEOF |
f73dda09 JA |
27982 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
27983 | rm -f $tmp/in | |
27984 | mv $tmp/out $tmp/in | |
27985 | ' >>$CONFIG_STATUS | |
27986 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
27987 | rm -f conftest.undefs | |
27988 | mv conftest.tail conftest.undefs | |
ccc6cda3 | 27989 | done |
f73dda09 JA |
27990 | rm -f conftest.undefs |
27991 | ||
a82a04b3 | 27992 | cat >>$CONFIG_STATUS <<\_ACEOF |
f73dda09 JA |
27993 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
27994 | # use $as_me), people would be surprised to read: | |
a82a04b3 | 27995 | # /* config.h. Generated by config.status. */ |
f73dda09 | 27996 | if test x"$ac_file" = x-; then |
a82a04b3 | 27997 | echo "/* Generated by configure. */" >$tmp/config.h |
ccc6cda3 | 27998 | else |
a82a04b3 | 27999 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
f73dda09 JA |
28000 | fi |
28001 | cat $tmp/in >>$tmp/config.h | |
28002 | rm -f $tmp/in | |
28003 | if test x"$ac_file" != x-; then | |
a82a04b3 CR |
28004 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
28005 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
f73dda09 JA |
28006 | echo "$as_me: $ac_file is unchanged" >&6;} |
28007 | else | |
a82a04b3 CR |
28008 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
28009 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
28010 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
28011 | X"$ac_file" : 'X\(//\)$' \| \ | |
28012 | X"$ac_file" : 'X\(/\)' \| \ | |
28013 | . : '\(.\)' 2>/dev/null || | |
f73dda09 JA |
28014 | echo X"$ac_file" | |
28015 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
28016 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
28017 | /^X\(\/\/\)$/{ s//\1/; q; } | |
28018 | /^X\(\/\).*/{ s//\1/; q; } | |
28019 | s/.*/./; q'` | |
a82a04b3 CR |
28020 | { if $as_mkdir_p; then |
28021 | mkdir -p "$ac_dir" | |
28022 | else | |
28023 | as_dir="$ac_dir" | |
28024 | as_dirs= | |
28025 | while test ! -d "$as_dir"; do | |
28026 | as_dirs="$as_dir $as_dirs" | |
28027 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
28028 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
28029 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
28030 | X"$as_dir" : 'X\(//\)$' \| \ | |
28031 | X"$as_dir" : 'X\(/\)' \| \ | |
28032 | . : '\(.\)' 2>/dev/null || | |
28033 | echo X"$as_dir" | | |
28034 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
28035 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
28036 | /^X\(\/\/\)$/{ s//\1/; q; } | |
28037 | /^X\(\/\).*/{ s//\1/; q; } | |
28038 | s/.*/./; q'` | |
28039 | done | |
28040 | test ! -n "$as_dirs" || mkdir $as_dirs | |
28041 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
28042 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
28043 | { (exit 1); exit 1; }; }; } | |
f73dda09 | 28044 | |
f73dda09 JA |
28045 | rm -f $ac_file |
28046 | mv $tmp/config.h $ac_file | |
ccc6cda3 | 28047 | fi |
f73dda09 JA |
28048 | else |
28049 | cat $tmp/config.h | |
28050 | rm -f $tmp/config.h | |
ccc6cda3 | 28051 | fi |
f73dda09 | 28052 | done |
a82a04b3 CR |
28053 | _ACEOF |
28054 | cat >>$CONFIG_STATUS <<\_ACEOF | |
ccc6cda3 | 28055 | |
f73dda09 JA |
28056 | # |
28057 | # CONFIG_COMMANDS section. | |
28058 | # | |
28059 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
28060 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
28061 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
a82a04b3 CR |
28062 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
28063 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
28064 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
28065 | X"$ac_dest" : 'X\(//\)$' \| \ | |
28066 | X"$ac_dest" : 'X\(/\)' \| \ | |
28067 | . : '\(.\)' 2>/dev/null || | |
28068 | echo X"$ac_dest" | | |
28069 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
28070 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
28071 | /^X\(\/\/\)$/{ s//\1/; q; } | |
28072 | /^X\(\/\).*/{ s//\1/; q; } | |
28073 | s/.*/./; q'` | |
28074 | { if $as_mkdir_p; then | |
28075 | mkdir -p "$ac_dir" | |
28076 | else | |
28077 | as_dir="$ac_dir" | |
28078 | as_dirs= | |
28079 | while test ! -d "$as_dir"; do | |
28080 | as_dirs="$as_dir $as_dirs" | |
28081 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
28082 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
28083 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
28084 | X"$as_dir" : 'X\(//\)$' \| \ | |
28085 | X"$as_dir" : 'X\(/\)' \| \ | |
28086 | . : '\(.\)' 2>/dev/null || | |
28087 | echo X"$as_dir" | | |
28088 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
28089 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
28090 | /^X\(\/\/\)$/{ s//\1/; q; } | |
28091 | /^X\(\/\).*/{ s//\1/; q; } | |
28092 | s/.*/./; q'` | |
28093 | done | |
28094 | test ! -n "$as_dirs" || mkdir $as_dirs | |
28095 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
28096 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
28097 | { (exit 1); exit 1; }; }; } | |
28098 | ||
28099 | ac_builddir=. | |
28100 | ||
28101 | if test "$ac_dir" != .; then | |
28102 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
28103 | # A "../" for each directory in $ac_dir_suffix. | |
28104 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
28105 | else | |
28106 | ac_dir_suffix= ac_top_builddir= | |
28107 | fi | |
28108 | ||
28109 | case $srcdir in | |
28110 | .) # No --srcdir option. We are building in place. | |
28111 | ac_srcdir=. | |
28112 | if test -z "$ac_top_builddir"; then | |
28113 | ac_top_srcdir=. | |
28114 | else | |
28115 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
28116 | fi ;; | |
28117 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
28118 | ac_srcdir=$srcdir$ac_dir_suffix; | |
28119 | ac_top_srcdir=$srcdir ;; | |
28120 | *) # Relative path. | |
28121 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
28122 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
28123 | esac | |
28124 | ||
28125 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
28126 | # the directories may not exist. | |
28127 | case `pwd` in | |
28128 | .) ac_abs_builddir="$ac_dir";; | |
28129 | *) | |
28130 | case "$ac_dir" in | |
28131 | .) ac_abs_builddir=`pwd`;; | |
28132 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
28133 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
28134 | esac;; | |
28135 | esac | |
28136 | case $ac_abs_builddir in | |
28137 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
28138 | *) | |
28139 | case ${ac_top_builddir}. in | |
28140 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
28141 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
28142 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
28143 | esac;; | |
28144 | esac | |
28145 | case $ac_abs_builddir in | |
28146 | .) ac_abs_srcdir=$ac_srcdir;; | |
28147 | *) | |
28148 | case $ac_srcdir in | |
28149 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
28150 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
28151 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
28152 | esac;; | |
28153 | esac | |
28154 | case $ac_abs_builddir in | |
28155 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
28156 | *) | |
28157 | case $ac_top_srcdir in | |
28158 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
28159 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
28160 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
28161 | esac;; | |
28162 | esac | |
28163 | ||
ccc6cda3 | 28164 | |
a82a04b3 CR |
28165 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
28166 | echo "$as_me: executing $ac_dest commands" >&6;} | |
f73dda09 | 28167 | case $ac_dest in |
5e13499c CR |
28168 | default-1 ) |
28169 | for ac_file in $CONFIG_FILES; do | |
28170 | # Support "outfile[:infile[:infile...]]" | |
28171 | case "$ac_file" in | |
28172 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
28173 | esac | |
28174 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
28175 | case "$ac_file" in */Makefile.in) | |
28176 | # Adjust a relative srcdir. | |
28177 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
28178 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
28179 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
28180 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
28181 | # In autoconf-2.50 it is called $srcdir. | |
28182 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
28183 | case "$ac_given_srcdir" in | |
28184 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
28185 | /*) top_srcdir="$ac_given_srcdir" ;; | |
28186 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
28187 | esac | |
28188 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
28189 | rm -f "$ac_dir/POTFILES" | |
28190 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
28191 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
28192 | POMAKEFILEDEPS="POTFILES.in" | |
28193 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
28194 | # on $ac_dir but don't depend on user-specified configuration | |
28195 | # parameters. | |
28196 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
28197 | # The LINGUAS file contains the set of available languages. | |
28198 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
28199 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
28200 | fi | |
28201 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
28202 | # Hide the ALL_LINGUAS assigment from automake. | |
28203 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
28204 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
28205 | else | |
28206 | # The set of available languages was given in configure.in. | |
28207 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
28208 | fi | |
28209 | case "$ac_given_srcdir" in | |
28210 | .) srcdirpre= ;; | |
28211 | *) srcdirpre='$(srcdir)/' ;; | |
28212 | esac | |
28213 | POFILES= | |
28214 | GMOFILES= | |
28215 | UPDATEPOFILES= | |
28216 | DUMMYPOFILES= | |
28217 | for lang in $ALL_LINGUAS; do | |
28218 | POFILES="$POFILES $srcdirpre$lang.po" | |
28219 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
28220 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
28221 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
28222 | done | |
28223 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
28224 | # environment variable. | |
28225 | INST_LINGUAS= | |
28226 | if test -n "$ALL_LINGUAS"; then | |
28227 | for presentlang in $ALL_LINGUAS; do | |
28228 | useit=no | |
28229 | if test "%UNSET%" != "$LINGUAS"; then | |
28230 | desiredlanguages="$LINGUAS" | |
28231 | else | |
28232 | desiredlanguages="$ALL_LINGUAS" | |
28233 | fi | |
28234 | for desiredlang in $desiredlanguages; do | |
28235 | # Use the presentlang catalog if desiredlang is | |
28236 | # a. equal to presentlang, or | |
28237 | # b. a variant of presentlang (because in this case, | |
28238 | # presentlang can be used as a fallback for messages | |
28239 | # which are not translated in the desiredlang catalog). | |
28240 | case "$desiredlang" in | |
28241 | "$presentlang"*) useit=yes;; | |
28242 | esac | |
28243 | done | |
28244 | if test $useit = yes; then | |
28245 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
28246 | fi | |
28247 | done | |
28248 | fi | |
28249 | CATALOGS= | |
28250 | if test -n "$INST_LINGUAS"; then | |
28251 | for lang in $INST_LINGUAS; do | |
28252 | CATALOGS="$CATALOGS $lang.gmo" | |
28253 | done | |
28254 | fi | |
28255 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
28256 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
28257 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
28258 | if test -f "$f"; then | |
28259 | case "$f" in | |
28260 | *.orig | *.bak | *~) ;; | |
28261 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
28262 | esac | |
28263 | fi | |
28264 | done | |
28265 | fi | |
28266 | ;; | |
28267 | esac | |
28268 | done ;; | |
f73dda09 | 28269 | default ) |
ccc6cda3 JA |
28270 | # Makefile uses this timestamp file to record whether config.h is up to date. |
28271 | echo timestamp > stamp-h | |
f73dda09 JA |
28272 | ;; |
28273 | esac | |
28274 | done | |
a82a04b3 | 28275 | _ACEOF |
ccc6cda3 | 28276 | |
a82a04b3 | 28277 | cat >>$CONFIG_STATUS <<\_ACEOF |
f73dda09 JA |
28278 | |
28279 | { (exit 0); exit 0; } | |
a82a04b3 | 28280 | _ACEOF |
ccc6cda3 | 28281 | chmod +x $CONFIG_STATUS |
f73dda09 JA |
28282 | ac_clean_files=$ac_clean_files_save |
28283 | ||
a82a04b3 | 28284 | |
f73dda09 JA |
28285 | # configure is writing to config.log, and then calls config.status. |
28286 | # config.status does its own redirection, appending to config.log. | |
28287 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
28288 | # by configure, so config.status won't be able to write to it; its | |
28289 | # output is simply discarded. So we exec the FD to /dev/null, | |
28290 | # effectively closing config.log, so it can be properly (re)opened and | |
28291 | # appended to by config.status. When coming back to configure, we | |
28292 | # need to make the FD available again. | |
28293 | if test "$no_create" != yes; then | |
28294 | ac_cs_success=: | |
a82a04b3 CR |
28295 | ac_config_status_args= |
28296 | test "$silent" = yes && | |
28297 | ac_config_status_args="$ac_config_status_args --quiet" | |
f73dda09 | 28298 | exec 5>/dev/null |
a82a04b3 | 28299 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
f73dda09 JA |
28300 | exec 5>>config.log |
28301 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
28302 | # would make configure fail if this is the last instruction. | |
28303 | $ac_cs_success || { (exit 1); exit 1; } | |
28304 | fi | |
ccc6cda3 | 28305 |