Commit | Line | Data |
---|---|---|
d60d9f65 | 1 | #! /bin/sh |
25ed0b71 | 2 | # From configure.in for Readline 4.3, version 2.45, from autoconf version AC_ACVERSION. |
9255ee31 | 3 | # Guess values for system-dependent variables and create Makefiles. |
430b7832 | 4 | # Generated by GNU Autoconf 2.59 for readline 4.3. |
9255ee31 EZ |
5 | # |
6 | # Report bugs to <bug-readline@gnu.org>. | |
7 | # | |
430b7832 | 8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
9255ee31 EZ |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
25ed0b71 KW |
11 | ## --------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
d60d9f65 | 14 | |
25ed0b71 KW |
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 | |
430b7832 | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
25ed0b71 KW |
26 | |
27 | # Support unset when possible. | |
430b7832 | 28 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
25ed0b71 KW |
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 | |
430b7832 | 47 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
25ed0b71 KW |
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. | |
9255ee31 EZ |
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 | |
d60d9f65 | 88 | |
25ed0b71 KW |
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 | |
d60d9f65 SS |
101 | |
102 | ||
25ed0b71 KW |
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 | |
d60d9f65 | 119 | |
25ed0b71 KW |
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 | |
d60d9f65 | 196 | |
9255ee31 EZ |
197 | if expr a : '\(a\)' >/dev/null 2>&1; then |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
d60d9f65 | 202 | |
9255ee31 EZ |
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 | |
d60d9f65 | 220 | |
25ed0b71 KW |
221 | if mkdir -p . 2>/dev/null; then |
222 | as_mkdir_p=: | |
9255ee31 | 223 | else |
430b7832 | 224 | test -d ./-p && rmdir ./-p |
25ed0b71 | 225 | as_mkdir_p=false |
9255ee31 | 226 | fi |
d60d9f65 | 227 | |
25ed0b71 KW |
228 | as_executable_p="test -f" |
229 | ||
230 | # Sed expression to map a string onto a valid CPP name. | |
430b7832 | 231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
25ed0b71 KW |
232 | |
233 | # Sed expression to map a string onto a valid variable name. | |
430b7832 | 234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
25ed0b71 | 235 | |
9255ee31 EZ |
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. | |
25ed0b71 KW |
244 | $as_unset CDPATH |
245 | ||
9255ee31 EZ |
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 | |
d60d9f65 | 253 | |
d60d9f65 | 254 | # |
9255ee31 EZ |
255 | # Initializations. |
256 | # | |
d60d9f65 | 257 | ac_default_prefix=/usr/local |
25ed0b71 | 258 | ac_config_libobj_dir=. |
9255ee31 EZ |
259 | cross_compiling=no |
260 | subdirs= | |
25ed0b71 KW |
261 | MFLAGS= |
262 | MAKEFLAGS= | |
9255ee31 EZ |
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 | ||
25ed0b71 KW |
270 | # Identity of this package. |
271 | PACKAGE_NAME='readline' | |
272 | PACKAGE_TARNAME='readline' | |
273 | PACKAGE_VERSION='4.3' | |
274 | PACKAGE_STRING='readline 4.3' | |
275 | PACKAGE_BUGREPORT='bug-readline@gnu.org' | |
276 | ||
9255ee31 EZ |
277 | ac_unique_file="readline.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" | |
d60d9f65 | 314 | |
25ed0b71 KW |
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 SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CROSS_COMPILING_FLAG CC_FOR_BUILD INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR RANLIB ac_ct_RANLIB MAKE_SHELL WCWIDTH_OBJ SHOBJ_CC SHOBJ_CFLAGS SHOBJ_LD SHOBJ_LDFLAGS SHOBJ_XLDFLAGS SHOBJ_LIBS SHOBJ_STATUS SHLIB_STATUS SHLIB_XLDFLAGS SHLIB_LIBSUFF SHLIB_LIBVERSION SHLIB_LIBS SHLIB_MAJOR SHLIB_MINOR STATIC_TARGET SHARED_TARGET STATIC_INSTALL_TARGET SHARED_INSTALL_TARGET BUILD_DIR LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS ARFLAGS LIBVERSION TERMCAP_LIB LIBOBJS LTLIBOBJS' |
316 | ac_subst_files='' | |
317 | ||
d60d9f65 | 318 | # Initialize some variables set by options. |
9255ee31 EZ |
319 | ac_init_help= |
320 | ac_init_version=false | |
d60d9f65 SS |
321 | # The variables have the same names as the options, with |
322 | # dashes changed to underlines. | |
9255ee31 | 323 | cache_file=/dev/null |
d60d9f65 | 324 | exec_prefix=NONE |
d60d9f65 | 325 | no_create= |
d60d9f65 SS |
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= | |
d60d9f65 SS |
334 | verbose= |
335 | x_includes=NONE | |
336 | x_libraries=NONE | |
9255ee31 EZ |
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. | |
d60d9f65 SS |
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 | ||
d60d9f65 SS |
356 | ac_prev= |
357 | for ac_option | |
358 | do | |
d60d9f65 SS |
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 | ||
9255ee31 | 366 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
d60d9f65 SS |
367 | |
368 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
369 | ||
9255ee31 | 370 | case $ac_option in |
d60d9f65 SS |
371 | |
372 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
373 | ac_prev=bindir ;; | |
374 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
9255ee31 | 375 | bindir=$ac_optarg ;; |
d60d9f65 SS |
376 | |
377 | -build | --build | --buil | --bui | --bu) | |
9255ee31 | 378 | ac_prev=build_alias ;; |
d60d9f65 | 379 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
9255ee31 | 380 | build_alias=$ac_optarg ;; |
d60d9f65 SS |
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=*) | |
9255ee31 EZ |
387 | cache_file=$ac_optarg ;; |
388 | ||
389 | --config-cache | -C) | |
390 | cache_file=config.cache ;; | |
d60d9f65 SS |
391 | |
392 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
393 | ac_prev=datadir ;; | |
394 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
395 | | --da=*) | |
9255ee31 | 396 | datadir=$ac_optarg ;; |
d60d9f65 SS |
397 | |
398 | -disable-* | --disable-*) | |
9255ee31 | 399 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d60d9f65 | 400 | # Reject names that are not valid shell variable names. |
9255ee31 EZ |
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" ;; | |
d60d9f65 SS |
406 | |
407 | -enable-* | --enable-*) | |
9255ee31 | 408 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d60d9f65 | 409 | # Reject names that are not valid shell variable names. |
9255ee31 EZ |
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"`;; | |
d60d9f65 SS |
416 | *) ac_optarg=yes ;; |
417 | esac | |
9255ee31 | 418 | eval "enable_$ac_feature='$ac_optarg'" ;; |
d60d9f65 SS |
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=*) | |
9255ee31 | 427 | exec_prefix=$ac_optarg ;; |
d60d9f65 SS |
428 | |
429 | -gas | --gas | --ga | --g) | |
430 | # Obsolete; use --with-gas. | |
431 | with_gas=yes ;; | |
432 | ||
9255ee31 EZ |
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 ;; | |
d60d9f65 SS |
439 | |
440 | -host | --host | --hos | --ho) | |
9255ee31 | 441 | ac_prev=host_alias ;; |
d60d9f65 | 442 | -host=* | --host=* | --hos=* | --ho=*) |
9255ee31 | 443 | host_alias=$ac_optarg ;; |
d60d9f65 SS |
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=*) | |
9255ee31 | 450 | includedir=$ac_optarg ;; |
d60d9f65 SS |
451 | |
452 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
453 | ac_prev=infodir ;; | |
454 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
9255ee31 | 455 | infodir=$ac_optarg ;; |
d60d9f65 SS |
456 | |
457 | -libdir | --libdir | --libdi | --libd) | |
458 | ac_prev=libdir ;; | |
459 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
9255ee31 | 460 | libdir=$ac_optarg ;; |
d60d9f65 SS |
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=*) | |
9255ee31 | 467 | libexecdir=$ac_optarg ;; |
d60d9f65 SS |
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=*) | |
9255ee31 | 476 | localstatedir=$ac_optarg ;; |
d60d9f65 SS |
477 | |
478 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
479 | ac_prev=mandir ;; | |
480 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
9255ee31 | 481 | mandir=$ac_optarg ;; |
d60d9f65 SS |
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 \ | |
25ed0b71 | 488 | | --no-cr | --no-c | -n) |
d60d9f65 SS |
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=*) | |
9255ee31 | 502 | oldincludedir=$ac_optarg ;; |
d60d9f65 SS |
503 | |
504 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
505 | ac_prev=prefix ;; | |
506 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
9255ee31 | 507 | prefix=$ac_optarg ;; |
d60d9f65 SS |
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=*) | |
9255ee31 | 514 | program_prefix=$ac_optarg ;; |
d60d9f65 SS |
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=*) | |
9255ee31 | 521 | program_suffix=$ac_optarg ;; |
d60d9f65 SS |
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=*) | |
9255ee31 | 538 | program_transform_name=$ac_optarg ;; |
d60d9f65 SS |
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=*) | |
9255ee31 | 548 | sbindir=$ac_optarg ;; |
d60d9f65 SS |
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=*) | |
9255ee31 | 559 | sharedstatedir=$ac_optarg ;; |
d60d9f65 SS |
560 | |
561 | -site | --site | --sit) | |
562 | ac_prev=site ;; | |
563 | -site=* | --site=* | --sit=*) | |
9255ee31 | 564 | site=$ac_optarg ;; |
d60d9f65 SS |
565 | |
566 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
567 | ac_prev=srcdir ;; | |
568 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
9255ee31 | 569 | srcdir=$ac_optarg ;; |
d60d9f65 SS |
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=*) | |
9255ee31 | 576 | sysconfdir=$ac_optarg ;; |
d60d9f65 SS |
577 | |
578 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
9255ee31 | 579 | ac_prev=target_alias ;; |
d60d9f65 | 580 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
9255ee31 | 581 | target_alias=$ac_optarg ;; |
d60d9f65 SS |
582 | |
583 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
584 | verbose=yes ;; | |
585 | ||
9255ee31 EZ |
586 | -version | --version | --versio | --versi | --vers | -V) |
587 | ac_init_version=: ;; | |
d60d9f65 SS |
588 | |
589 | -with-* | --with-*) | |
9255ee31 | 590 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d60d9f65 | 591 | # Reject names that are not valid shell variable names. |
9255ee31 EZ |
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; }; } | |
d60d9f65 | 595 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
9255ee31 EZ |
596 | case $ac_option in |
597 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
d60d9f65 SS |
598 | *) ac_optarg=yes ;; |
599 | esac | |
9255ee31 | 600 | eval "with_$ac_package='$ac_optarg'" ;; |
d60d9f65 SS |
601 | |
602 | -without-* | --without-*) | |
9255ee31 | 603 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d60d9f65 | 604 | # Reject names that are not valid shell variable names. |
9255ee31 EZ |
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" ;; | |
d60d9f65 SS |
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=*) | |
9255ee31 | 620 | x_includes=$ac_optarg ;; |
d60d9f65 SS |
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=*) | |
9255ee31 | 627 | x_libraries=$ac_optarg ;; |
d60d9f65 | 628 | |
9255ee31 EZ |
629 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
630 | Try \`$0 --help' for more information." >&2 | |
631 | { (exit 1); exit 1; }; } | |
d60d9f65 SS |
632 | ;; |
633 | ||
9255ee31 EZ |
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 | ||
d60d9f65 | 644 | *) |
9255ee31 EZ |
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} | |
d60d9f65 SS |
650 | ;; |
651 | ||
652 | esac | |
653 | done | |
654 | ||
655 | if test -n "$ac_prev"; then | |
9255ee31 EZ |
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; }; } | |
d60d9f65 | 659 | fi |
d60d9f65 | 660 | |
9255ee31 EZ |
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 | '' ) ;; | |
25ed0b71 | 667 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
9255ee31 EZ |
668 | { (exit 1); exit 1; }; };; |
669 | esac | |
670 | done | |
d60d9f65 | 671 | |
9255ee31 EZ |
672 | # Be sure to have absolute paths. |
673 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
430b7832 | 674 | localstatedir libdir includedir oldincludedir infodir mandir |
d60d9f65 | 675 | do |
9255ee31 EZ |
676 | eval ac_val=$`echo $ac_var` |
677 | case $ac_val in | |
678 | [\\/$]* | ?:[\\/]* ) ;; | |
25ed0b71 | 679 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
9255ee31 | 680 | { (exit 1); exit 1; }; };; |
d60d9f65 SS |
681 | esac |
682 | done | |
683 | ||
9255ee31 EZ |
684 | # There might be people who depend on the old broken behavior: `$host' |
685 | # used to hold the argument of --host etc. | |
25ed0b71 | 686 | # FIXME: To remove some day. |
9255ee31 EZ |
687 | build=$build_alias |
688 | host=$host_alias | |
689 | target=$target_alias | |
690 | ||
25ed0b71 | 691 | # FIXME: To remove some day. |
9255ee31 EZ |
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 | |
d60d9f65 | 701 | |
9255ee31 EZ |
702 | ac_tool_prefix= |
703 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
d60d9f65 | 704 | |
9255ee31 | 705 | test "$silent" = yes && exec 6>/dev/null |
d60d9f65 | 706 | |
25ed0b71 | 707 | |
d60d9f65 SS |
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. | |
25ed0b71 KW |
712 | ac_confdir=`(dirname "$0") 2>/dev/null || |
713 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
430b7832 MM |
714 | X"$0" : 'X\(//\)[^/]' \| \ |
715 | X"$0" : 'X\(//\)$' \| \ | |
716 | X"$0" : 'X\(/\)' \| \ | |
717 | . : '\(.\)' 2>/dev/null || | |
25ed0b71 KW |
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'` | |
d60d9f65 SS |
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 | |
25ed0b71 | 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
9255ee31 | 734 | { (exit 1); exit 1; }; } |
1b17e766 | 735 | else |
25ed0b71 | 736 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
9255ee31 | 737 | { (exit 1); exit 1; }; } |
d60d9f65 SS |
738 | fi |
739 | fi | |
25ed0b71 KW |
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; }; } | |
9255ee31 EZ |
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 | |
756 | ac_env_CC_set=${CC+set} | |
757 | ac_env_CC_value=$CC | |
758 | ac_cv_env_CC_set=${CC+set} | |
759 | ac_cv_env_CC_value=$CC | |
760 | ac_env_CFLAGS_set=${CFLAGS+set} | |
761 | ac_env_CFLAGS_value=$CFLAGS | |
762 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
763 | ac_cv_env_CFLAGS_value=$CFLAGS | |
764 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
765 | ac_env_LDFLAGS_value=$LDFLAGS | |
766 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
767 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
769 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
772 | ac_env_CPP_set=${CPP+set} | |
773 | ac_env_CPP_value=$CPP | |
774 | ac_cv_env_CPP_set=${CPP+set} | |
775 | ac_cv_env_CPP_value=$CPP | |
d60d9f65 | 776 | |
9255ee31 EZ |
777 | # |
778 | # Report the --help message. | |
779 | # | |
780 | if test "$ac_init_help" = "long"; then | |
781 | # Omit some internal or obsolete options to make the list less imposing. | |
782 | # This message is too long to be a string in the A/UX 3.1 sh. | |
25ed0b71 | 783 | cat <<_ACEOF |
9255ee31 | 784 | \`configure' configures readline 4.3 to adapt to many kinds of systems. |
d60d9f65 | 785 | |
9255ee31 | 786 | Usage: $0 [OPTION]... [VAR=VALUE]... |
d60d9f65 | 787 | |
9255ee31 EZ |
788 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
789 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
d60d9f65 | 790 | |
9255ee31 | 791 | Defaults for the options are specified in brackets. |
d60d9f65 | 792 | |
9255ee31 EZ |
793 | Configuration: |
794 | -h, --help display this help and exit | |
795 | --help=short display options specific to this package | |
796 | --help=recursive display the short help of all the included packages | |
797 | -V, --version display version information and exit | |
798 | -q, --quiet, --silent do not print \`checking...' messages | |
799 | --cache-file=FILE cache test results in FILE [disabled] | |
800 | -C, --config-cache alias for \`--cache-file=config.cache' | |
801 | -n, --no-create do not create output files | |
802 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
d60d9f65 | 803 | |
25ed0b71 | 804 | _ACEOF |
d60d9f65 | 805 | |
25ed0b71 | 806 | cat <<_ACEOF |
9255ee31 EZ |
807 | Installation directories: |
808 | --prefix=PREFIX install architecture-independent files in PREFIX | |
430b7832 | 809 | [$ac_default_prefix] |
9255ee31 | 810 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
430b7832 | 811 | [PREFIX] |
9255ee31 EZ |
812 | |
813 | By default, \`make install' will install all the files in | |
814 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
815 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
816 | for instance \`--prefix=\$HOME'. | |
817 | ||
818 | For better control, use the options below. | |
819 | ||
820 | Fine tuning of the installation directories: | |
821 | --bindir=DIR user executables [EPREFIX/bin] | |
822 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
823 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
824 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
825 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
826 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
827 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
828 | --libdir=DIR object code libraries [EPREFIX/lib] | |
829 | --includedir=DIR C header files [PREFIX/include] | |
830 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
831 | --infodir=DIR info documentation [PREFIX/info] | |
832 | --mandir=DIR man documentation [PREFIX/man] | |
25ed0b71 | 833 | _ACEOF |
d60d9f65 | 834 | |
25ed0b71 | 835 | cat <<\_ACEOF |
d60d9f65 | 836 | |
9255ee31 EZ |
837 | System types: |
838 | --build=BUILD configure for building on BUILD [guessed] | |
25ed0b71 KW |
839 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
840 | _ACEOF | |
d60d9f65 | 841 | fi |
d60d9f65 | 842 | |
9255ee31 EZ |
843 | if test -n "$ac_init_help"; then |
844 | case $ac_init_help in | |
845 | short | recursive ) echo "Configuration of readline 4.3:";; | |
846 | esac | |
25ed0b71 | 847 | cat <<\_ACEOF |
d60d9f65 | 848 | |
9255ee31 EZ |
849 | Optional Features: |
850 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
851 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
9255ee31 | 852 | --enable-static build static libraries [default=YES] |
d60d9f65 | 853 | |
9255ee31 EZ |
854 | Optional Packages: |
855 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
856 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
857 | --with-curses use the curses library instead of the termcap | |
858 | library | |
859 | ||
860 | Some influential environment variables: | |
861 | CC C compiler command | |
862 | CFLAGS C compiler flags | |
863 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
864 | nonstandard directory <lib dir> | |
865 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
866 | headers in a nonstandard directory <include dir> | |
867 | CPP C preprocessor | |
868 | ||
869 | Use these variables to override the choices made by `configure' or to help | |
870 | it to find libraries and programs with nonstandard names/locations. | |
871 | ||
872 | Report bugs to <bug-readline@gnu.org>. | |
25ed0b71 | 873 | _ACEOF |
9255ee31 | 874 | fi |
d60d9f65 | 875 | |
9255ee31 EZ |
876 | if test "$ac_init_help" = "recursive"; then |
877 | # If there are subdirs, report their specific --help. | |
878 | ac_popdir=`pwd` | |
25ed0b71 KW |
879 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
880 | test -d $ac_dir || continue | |
881 | ac_builddir=. | |
882 | ||
883 | if test "$ac_dir" != .; then | |
884 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
885 | # A "../" for each directory in $ac_dir_suffix. | |
886 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
887 | else | |
888 | ac_dir_suffix= ac_top_builddir= | |
889 | fi | |
d60d9f65 | 890 | |
25ed0b71 KW |
891 | case $srcdir in |
892 | .) # No --srcdir option. We are building in place. | |
893 | ac_srcdir=. | |
894 | if test -z "$ac_top_builddir"; then | |
895 | ac_top_srcdir=. | |
896 | else | |
897 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
898 | fi ;; | |
899 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
900 | ac_srcdir=$srcdir$ac_dir_suffix; | |
901 | ac_top_srcdir=$srcdir ;; | |
902 | *) # Relative path. | |
903 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
904 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
905 | esac | |
430b7832 MM |
906 | |
907 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
908 | # the directories may not exist. | |
909 | case `pwd` in | |
910 | .) ac_abs_builddir="$ac_dir";; | |
911 | *) | |
912 | case "$ac_dir" in | |
913 | .) ac_abs_builddir=`pwd`;; | |
914 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
915 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
916 | esac;; | |
917 | esac | |
918 | case $ac_abs_builddir in | |
919 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
920 | *) | |
921 | case ${ac_top_builddir}. in | |
922 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
923 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
924 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
925 | esac;; | |
926 | esac | |
927 | case $ac_abs_builddir in | |
928 | .) ac_abs_srcdir=$ac_srcdir;; | |
929 | *) | |
930 | case $ac_srcdir in | |
931 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
932 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
933 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
934 | esac;; | |
935 | esac | |
936 | case $ac_abs_builddir in | |
937 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
938 | *) | |
939 | case $ac_top_srcdir in | |
940 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
941 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
942 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
943 | esac;; | |
944 | esac | |
25ed0b71 KW |
945 | |
946 | cd $ac_dir | |
9255ee31 | 947 | # Check for guested configure; otherwise get Cygnus style configure. |
25ed0b71 | 948 | if test -f $ac_srcdir/configure.gnu; then |
9255ee31 | 949 | echo |
25ed0b71 KW |
950 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
951 | elif test -f $ac_srcdir/configure; then | |
9255ee31 | 952 | echo |
25ed0b71 KW |
953 | $SHELL $ac_srcdir/configure --help=recursive |
954 | elif test -f $ac_srcdir/configure.ac || | |
430b7832 | 955 | test -f $ac_srcdir/configure.in; then |
9255ee31 EZ |
956 | echo |
957 | $ac_configure --help | |
958 | else | |
25ed0b71 | 959 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
9255ee31 EZ |
960 | fi |
961 | cd $ac_popdir | |
962 | done | |
d60d9f65 SS |
963 | fi |
964 | ||
9255ee31 EZ |
965 | test -n "$ac_init_help" && exit 0 |
966 | if $ac_init_version; then | |
25ed0b71 | 967 | cat <<\_ACEOF |
9255ee31 | 968 | readline configure 4.3 |
430b7832 | 969 | generated by GNU Autoconf 2.59 |
d60d9f65 | 970 | |
430b7832 | 971 | Copyright (C) 2003 Free Software Foundation, Inc. |
9255ee31 EZ |
972 | This configure script is free software; the Free Software Foundation |
973 | gives unlimited permission to copy, distribute and modify it. | |
25ed0b71 | 974 | _ACEOF |
9255ee31 | 975 | exit 0 |
d60d9f65 | 976 | fi |
9255ee31 | 977 | exec 5>config.log |
25ed0b71 | 978 | cat >&5 <<_ACEOF |
9255ee31 EZ |
979 | This file contains any messages produced by compilers while |
980 | running configure, to aid debugging if configure makes a mistake. | |
d60d9f65 | 981 | |
9255ee31 | 982 | It was created by readline $as_me 4.3, which was |
430b7832 | 983 | generated by GNU Autoconf 2.59. Invocation command line was |
d60d9f65 | 984 | |
9255ee31 EZ |
985 | $ $0 $@ |
986 | ||
25ed0b71 | 987 | _ACEOF |
9255ee31 EZ |
988 | { |
989 | cat <<_ASUNAME | |
25ed0b71 KW |
990 | ## --------- ## |
991 | ## Platform. ## | |
992 | ## --------- ## | |
9255ee31 EZ |
993 | |
994 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
995 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
996 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
997 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
998 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
999 | ||
1000 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1001 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1002 | ||
1003 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1004 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1005 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1006 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1007 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1008 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1009 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1010 | ||
9255ee31 | 1011 | _ASUNAME |
25ed0b71 KW |
1012 | |
1013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1014 | for as_dir in $PATH | |
1015 | do | |
1016 | IFS=$as_save_IFS | |
1017 | test -z "$as_dir" && as_dir=. | |
1018 | echo "PATH: $as_dir" | |
1019 | done | |
1020 | ||
9255ee31 EZ |
1021 | } >&5 |
1022 | ||
25ed0b71 KW |
1023 | cat >&5 <<_ACEOF |
1024 | ||
1025 | ||
1026 | ## ----------- ## | |
1027 | ## Core tests. ## | |
1028 | ## ----------- ## | |
1029 | ||
1030 | _ACEOF | |
9255ee31 | 1031 | |
9255ee31 EZ |
1032 | |
1033 | # Keep a trace of the command line. | |
1034 | # Strip out --no-create and --no-recursion so they do not pile up. | |
25ed0b71 | 1035 | # Strip out --silent because we don't want to record it for future runs. |
9255ee31 | 1036 | # Also quote any args containing shell meta-characters. |
25ed0b71 | 1037 | # Make two passes to allow for proper duplicate-argument suppression. |
9255ee31 | 1038 | ac_configure_args= |
25ed0b71 KW |
1039 | ac_configure_args0= |
1040 | ac_configure_args1= | |
9255ee31 | 1041 | ac_sep= |
25ed0b71 KW |
1042 | ac_must_keep_next=false |
1043 | for ac_pass in 1 2 | |
9255ee31 | 1044 | do |
25ed0b71 KW |
1045 | for ac_arg |
1046 | do | |
1047 | case $ac_arg in | |
1048 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1049 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1050 | | -silent | --silent | --silen | --sile | --sil) | |
1051 | continue ;; | |
1052 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1053 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1054 | esac | |
1055 | case $ac_pass in | |
1056 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1057 | 2) | |
1058 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1059 | if test $ac_must_keep_next = true; then | |
430b7832 | 1060 | ac_must_keep_next=false # Got value, back to normal. |
25ed0b71 | 1061 | else |
430b7832 MM |
1062 | case $ac_arg in |
1063 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1064 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1065 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1066 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1067 | case "$ac_configure_args0 " in | |
1068 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1069 | esac | |
1070 | ;; | |
1071 | -* ) ac_must_keep_next=true ;; | |
1072 | esac | |
25ed0b71 KW |
1073 | fi |
1074 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1075 | # Get rid of the leading space. | |
1076 | ac_sep=" " | |
1077 | ;; | |
1078 | esac | |
1079 | done | |
9255ee31 | 1080 | done |
25ed0b71 KW |
1081 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1082 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
9255ee31 EZ |
1083 | |
1084 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1085 | # config.log. We remove comments because anyway the quotes in there | |
1086 | # would cause problems or look ugly. | |
25ed0b71 KW |
1087 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1088 | # such as our DU 5.0 friend, will then `close' the trap. | |
9255ee31 EZ |
1089 | trap 'exit_status=$? |
1090 | # Save into config.log some information that might help in debugging. | |
25ed0b71 KW |
1091 | { |
1092 | echo | |
1093 | ||
1094 | cat <<\_ASBOX | |
1095 | ## ---------------- ## | |
1096 | ## Cache variables. ## | |
1097 | ## ---------------- ## | |
1098 | _ASBOX | |
1099 | echo | |
1100 | # The following way of writing the cache mishandles newlines in values, | |
9255ee31 EZ |
1101 | { |
1102 | (set) 2>&1 | | |
1103 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1104 | *ac_space=\ *) | |
1105 | sed -n \ | |
430b7832 MM |
1106 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1107 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
9255ee31 EZ |
1108 | ;; |
1109 | *) | |
1110 | sed -n \ | |
430b7832 | 1111 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
9255ee31 EZ |
1112 | ;; |
1113 | esac; | |
25ed0b71 KW |
1114 | } |
1115 | echo | |
1116 | ||
1117 | cat <<\_ASBOX | |
1118 | ## ----------------- ## | |
1119 | ## Output variables. ## | |
1120 | ## ----------------- ## | |
1121 | _ASBOX | |
1122 | echo | |
1123 | for ac_var in $ac_subst_vars | |
1124 | do | |
1125 | eval ac_val=$`echo $ac_var` | |
1126 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1127 | done | sort | |
1128 | echo | |
1129 | ||
1130 | if test -n "$ac_subst_files"; then | |
1131 | cat <<\_ASBOX | |
1132 | ## ------------- ## | |
1133 | ## Output files. ## | |
1134 | ## ------------- ## | |
1135 | _ASBOX | |
1136 | echo | |
1137 | for ac_var in $ac_subst_files | |
1138 | do | |
1139 | eval ac_val=$`echo $ac_var` | |
430b7832 | 1140 | echo "$ac_var='"'"'$ac_val'"'"'" |
25ed0b71 KW |
1141 | done | sort |
1142 | echo | |
1143 | fi | |
1144 | ||
1145 | if test -s confdefs.h; then | |
1146 | cat <<\_ASBOX | |
1147 | ## ----------- ## | |
1148 | ## confdefs.h. ## | |
1149 | ## ----------- ## | |
1150 | _ASBOX | |
1151 | echo | |
1152 | sed "/^$/d" confdefs.h | sort | |
1153 | echo | |
1154 | fi | |
1155 | test "$ac_signal" != 0 && | |
1156 | echo "$as_me: caught signal $ac_signal" | |
1157 | echo "$as_me: exit $exit_status" | |
1158 | } >&5 | |
430b7832 | 1159 | rm -f core *.core && |
25ed0b71 | 1160 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
9255ee31 EZ |
1161 | exit $exit_status |
1162 | ' 0 | |
1163 | for ac_signal in 1 2 13 15; do | |
1164 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1165 | done | |
1166 | ac_signal=0 | |
1167 | ||
1168 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1169 | rm -rf conftest* confdefs.h | |
1170 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1171 | echo >confdefs.h | |
1172 | ||
25ed0b71 KW |
1173 | # Predefined preprocessor variables. |
1174 | ||
1175 | cat >>confdefs.h <<_ACEOF | |
1176 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1177 | _ACEOF | |
1178 | ||
1179 | ||
1180 | cat >>confdefs.h <<_ACEOF | |
1181 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1182 | _ACEOF | |
1183 | ||
1184 | ||
1185 | cat >>confdefs.h <<_ACEOF | |
1186 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1187 | _ACEOF | |
1188 | ||
1189 | ||
1190 | cat >>confdefs.h <<_ACEOF | |
1191 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1192 | _ACEOF | |
1193 | ||
1194 | ||
1195 | cat >>confdefs.h <<_ACEOF | |
1196 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1197 | _ACEOF | |
1198 | ||
1199 | ||
9255ee31 EZ |
1200 | # Let the site file select an alternate cache file if it wants to. |
1201 | # Prefer explicitly selected file to automatically selected ones. | |
1202 | if test -z "$CONFIG_SITE"; then | |
1203 | if test "x$prefix" != xNONE; then | |
1204 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1205 | else | |
1206 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1207 | fi | |
1208 | fi | |
1209 | for ac_site_file in $CONFIG_SITE; do | |
1210 | if test -r "$ac_site_file"; then | |
25ed0b71 | 1211 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
9255ee31 | 1212 | echo "$as_me: loading site script $ac_site_file" >&6;} |
25ed0b71 | 1213 | sed 's/^/| /' "$ac_site_file" >&5 |
9255ee31 EZ |
1214 | . "$ac_site_file" |
1215 | fi | |
1216 | done | |
1217 | ||
1218 | if test -r "$cache_file"; then | |
1219 | # Some versions of bash will fail to source /dev/null (special | |
1220 | # files actually), so we avoid doing that. | |
1221 | if test -f "$cache_file"; then | |
25ed0b71 | 1222 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
9255ee31 EZ |
1223 | echo "$as_me: loading cache $cache_file" >&6;} |
1224 | case $cache_file in | |
1225 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1226 | *) . ./$cache_file;; | |
1227 | esac | |
1228 | fi | |
1229 | else | |
25ed0b71 | 1230 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
9255ee31 EZ |
1231 | echo "$as_me: creating cache $cache_file" >&6;} |
1232 | >$cache_file | |
1233 | fi | |
1234 | ||
1235 | # Check that the precious variables saved in the cache have kept the same | |
1236 | # value. | |
1237 | ac_cache_corrupted=false | |
1238 | for ac_var in `(set) 2>&1 | | |
430b7832 | 1239 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
9255ee31 EZ |
1240 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1241 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1242 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1243 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1244 | case $ac_old_set,$ac_new_set in | |
1245 | set,) | |
25ed0b71 | 1246 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
9255ee31 EZ |
1247 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1248 | ac_cache_corrupted=: ;; | |
1249 | ,set) | |
25ed0b71 | 1250 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
9255ee31 EZ |
1251 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1252 | ac_cache_corrupted=: ;; | |
1253 | ,);; | |
1254 | *) | |
1255 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
430b7832 | 1256 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
9255ee31 | 1257 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
430b7832 | 1258 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
9255ee31 | 1259 | echo "$as_me: former value: $ac_old_val" >&2;} |
430b7832 | 1260 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
9255ee31 | 1261 | echo "$as_me: current value: $ac_new_val" >&2;} |
430b7832 | 1262 | ac_cache_corrupted=: |
9255ee31 EZ |
1263 | fi;; |
1264 | esac | |
25ed0b71 | 1265 | # Pass precious variables to config.status. |
9255ee31 EZ |
1266 | if test "$ac_new_set" = set; then |
1267 | case $ac_new_val in | |
1268 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
25ed0b71 KW |
1269 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1270 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1271 | esac | |
1272 | case " $ac_configure_args " in | |
1273 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1274 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
9255ee31 EZ |
1275 | esac |
1276 | fi | |
1277 | done | |
1278 | if $ac_cache_corrupted; then | |
25ed0b71 | 1279 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
9255ee31 | 1280 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
25ed0b71 | 1281 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
9255ee31 EZ |
1282 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1283 | { (exit 1); exit 1; }; } | |
1284 | fi | |
1285 | ||
1286 | ac_ext=c | |
1287 | ac_cpp='$CPP $CPPFLAGS' | |
1288 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1289 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1290 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1291 | ||
9255ee31 | 1292 | |
25ed0b71 KW |
1293 | |
1294 | ||
1295 | ||
1296 | ||
1297 | ||
1298 | ||
1299 | ||
1300 | ||
1301 | ||
1302 | ||
1303 | ||
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ac_config_headers="$ac_config_headers config.h" | |
1323 | ||
9255ee31 EZ |
1324 | |
1325 | LIBVERSION=4.3 | |
1326 | ||
1327 | ac_aux_dir= | |
1328 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1329 | if test -f $ac_dir/install-sh; then | |
1330 | ac_aux_dir=$ac_dir | |
1331 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1332 | break | |
1333 | elif test -f $ac_dir/install.sh; then | |
1334 | ac_aux_dir=$ac_dir | |
1335 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1336 | break | |
1337 | elif test -f $ac_dir/shtool; then | |
1338 | ac_aux_dir=$ac_dir | |
1339 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1340 | break | |
1341 | fi | |
1342 | done | |
1343 | if test -z "$ac_aux_dir"; then | |
25ed0b71 | 1344 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
9255ee31 EZ |
1345 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1346 | { (exit 1); exit 1; }; } | |
1347 | fi | |
1348 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1349 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1350 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1351 | ||
1352 | # Make sure we can run config.sub. | |
1353 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
25ed0b71 | 1354 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
9255ee31 EZ |
1355 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1356 | { (exit 1); exit 1; }; } | |
1357 | ||
25ed0b71 | 1358 | echo "$as_me:$LINENO: checking build system type" >&5 |
9255ee31 EZ |
1359 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1360 | if test "${ac_cv_build+set}" = set; then | |
1361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1362 | else | |
1363 | ac_cv_build_alias=$build_alias | |
1364 | test -z "$ac_cv_build_alias" && | |
1365 | ac_cv_build_alias=`$ac_config_guess` | |
1366 | test -z "$ac_cv_build_alias" && | |
25ed0b71 | 1367 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
9255ee31 EZ |
1368 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1369 | { (exit 1); exit 1; }; } | |
1370 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
25ed0b71 KW |
1371 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
1372 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
9255ee31 EZ |
1373 | { (exit 1); exit 1; }; } |
1374 | ||
1375 | fi | |
25ed0b71 | 1376 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
9255ee31 EZ |
1377 | echo "${ECHO_T}$ac_cv_build" >&6 |
1378 | build=$ac_cv_build | |
1379 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1380 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1381 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1382 | ||
25ed0b71 KW |
1383 | |
1384 | echo "$as_me:$LINENO: checking host system type" >&5 | |
9255ee31 EZ |
1385 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1386 | if test "${ac_cv_host+set}" = set; then | |
1387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1388 | else | |
1389 | ac_cv_host_alias=$host_alias | |
1390 | test -z "$ac_cv_host_alias" && | |
1391 | ac_cv_host_alias=$ac_cv_build_alias | |
1392 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
25ed0b71 | 1393 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
9255ee31 EZ |
1394 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1395 | { (exit 1); exit 1; }; } | |
1396 | ||
1397 | fi | |
25ed0b71 | 1398 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
9255ee31 EZ |
1399 | echo "${ECHO_T}$ac_cv_host" >&6 |
1400 | host=$ac_cv_host | |
1401 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1402 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1403 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1404 | ||
25ed0b71 KW |
1405 | |
1406 | ||
9255ee31 EZ |
1407 | opt_curses=no |
1408 | ||
25ed0b71 | 1409 | |
9255ee31 EZ |
1410 | # Check whether --with-curses or --without-curses was given. |
1411 | if test "${with_curses+set}" = set; then | |
1412 | withval="$with_curses" | |
1413 | opt_curses=$withval | |
1414 | fi; | |
1415 | ||
1416 | if test "$opt_curses" = "yes"; then | |
1417 | prefer_curses=yes | |
1418 | fi | |
1419 | ||
1420 | opt_static_libs=yes | |
d7d4a3d1 | 1421 | opt_shared_libs=no |
9255ee31 | 1422 | |
9255ee31 EZ |
1423 | # Check whether --enable-static or --disable-static was given. |
1424 | if test "${enable_static+set}" = set; then | |
1425 | enableval="$enable_static" | |
1426 | opt_static_libs=$enableval | |
1427 | fi; | |
1428 | ||
1429 | echo "" | |
1430 | echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}" | |
1431 | echo "" | |
1432 | ||
1433 | # We want these before the checks, so the checks can modify their values. | |
1434 | test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1 | |
1435 | ||
25ed0b71 KW |
1436 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1437 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
430b7832 | 1438 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
9255ee31 EZ |
1439 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
1440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1441 | else | |
25ed0b71 | 1442 | cat >conftest.make <<\_ACEOF |
9255ee31 | 1443 | all: |
25ed0b71 KW |
1444 | @echo 'ac_maketemp="$(MAKE)"' |
1445 | _ACEOF | |
9255ee31 EZ |
1446 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
1447 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1448 | if test -n "$ac_maketemp"; then | |
1449 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1450 | else | |
1451 | eval ac_cv_prog_make_${ac_make}_set=no | |
1452 | fi | |
1453 | rm -f conftest.make | |
1454 | fi | |
1455 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
25ed0b71 | 1456 | echo "$as_me:$LINENO: result: yes" >&5 |
9255ee31 EZ |
1457 | echo "${ECHO_T}yes" >&6 |
1458 | SET_MAKE= | |
1459 | else | |
25ed0b71 | 1460 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 EZ |
1461 | echo "${ECHO_T}no" >&6 |
1462 | SET_MAKE="MAKE=${MAKE-make}" | |
1463 | fi | |
1464 | ||
1465 | ac_ext=c | |
1466 | ac_cpp='$CPP $CPPFLAGS' | |
1467 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1468 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1469 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1470 | if test -n "$ac_tool_prefix"; then | |
1471 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1472 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
25ed0b71 | 1473 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9255ee31 EZ |
1474 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1475 | if test "${ac_cv_prog_CC+set}" = set; then | |
1476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1477 | else | |
1478 | if test -n "$CC"; then | |
1479 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1480 | else | |
25ed0b71 KW |
1481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1482 | for as_dir in $PATH | |
1483 | do | |
1484 | IFS=$as_save_IFS | |
1485 | test -z "$as_dir" && as_dir=. | |
1486 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1487 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1488 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1489 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1490 | break 2 | |
1491 | fi | |
1492 | done | |
9255ee31 EZ |
1493 | done |
1494 | ||
d60d9f65 | 1495 | fi |
9255ee31 EZ |
1496 | fi |
1497 | CC=$ac_cv_prog_CC | |
d60d9f65 | 1498 | if test -n "$CC"; then |
25ed0b71 | 1499 | echo "$as_me:$LINENO: result: $CC" >&5 |
9255ee31 EZ |
1500 | echo "${ECHO_T}$CC" >&6 |
1501 | else | |
25ed0b71 | 1502 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 EZ |
1503 | echo "${ECHO_T}no" >&6 |
1504 | fi | |
1505 | ||
1506 | fi | |
1507 | if test -z "$ac_cv_prog_CC"; then | |
1508 | ac_ct_CC=$CC | |
1509 | # Extract the first word of "gcc", so it can be a program name with args. | |
1510 | set dummy gcc; ac_word=$2 | |
25ed0b71 | 1511 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9255ee31 EZ |
1512 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1513 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1515 | else | |
1516 | if test -n "$ac_ct_CC"; then | |
1517 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1518 | else | |
25ed0b71 KW |
1519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1520 | for as_dir in $PATH | |
1521 | do | |
1522 | IFS=$as_save_IFS | |
1523 | test -z "$as_dir" && as_dir=. | |
1524 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1525 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1526 | ac_cv_prog_ac_ct_CC="gcc" | |
1527 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1528 | break 2 | |
1529 | fi | |
1530 | done | |
9255ee31 EZ |
1531 | done |
1532 | ||
1533 | fi | |
1534 | fi | |
1535 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1536 | if test -n "$ac_ct_CC"; then | |
25ed0b71 | 1537 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
9255ee31 EZ |
1538 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1539 | else | |
25ed0b71 | 1540 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 EZ |
1541 | echo "${ECHO_T}no" >&6 |
1542 | fi | |
1543 | ||
1544 | CC=$ac_ct_CC | |
d60d9f65 | 1545 | else |
9255ee31 | 1546 | CC="$ac_cv_prog_CC" |
d60d9f65 SS |
1547 | fi |
1548 | ||
1549 | if test -z "$CC"; then | |
9255ee31 EZ |
1550 | if test -n "$ac_tool_prefix"; then |
1551 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1552 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
25ed0b71 | 1553 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9255ee31 EZ |
1554 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1555 | if test "${ac_cv_prog_CC+set}" = set; then | |
1556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1557 | else | |
1558 | if test -n "$CC"; then | |
1559 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1560 | else | |
25ed0b71 KW |
1561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1562 | for as_dir in $PATH | |
1563 | do | |
1564 | IFS=$as_save_IFS | |
1565 | test -z "$as_dir" && as_dir=. | |
1566 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1567 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1568 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1569 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1570 | break 2 | |
1571 | fi | |
1572 | done | |
9255ee31 EZ |
1573 | done |
1574 | ||
1575 | fi | |
1576 | fi | |
1577 | CC=$ac_cv_prog_CC | |
1578 | if test -n "$CC"; then | |
25ed0b71 | 1579 | echo "$as_me:$LINENO: result: $CC" >&5 |
9255ee31 EZ |
1580 | echo "${ECHO_T}$CC" >&6 |
1581 | else | |
25ed0b71 | 1582 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 EZ |
1583 | echo "${ECHO_T}no" >&6 |
1584 | fi | |
1585 | ||
1586 | fi | |
1587 | if test -z "$ac_cv_prog_CC"; then | |
1588 | ac_ct_CC=$CC | |
d60d9f65 SS |
1589 | # Extract the first word of "cc", so it can be a program name with args. |
1590 | set dummy cc; ac_word=$2 | |
25ed0b71 | 1591 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9255ee31 EZ |
1592 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1593 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1595 | else | |
1596 | if test -n "$ac_ct_CC"; then | |
1597 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1598 | else | |
25ed0b71 KW |
1599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1600 | for as_dir in $PATH | |
1601 | do | |
1602 | IFS=$as_save_IFS | |
1603 | test -z "$as_dir" && as_dir=. | |
1604 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1605 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1606 | ac_cv_prog_ac_ct_CC="cc" | |
1607 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1608 | break 2 | |
1609 | fi | |
1610 | done | |
9255ee31 EZ |
1611 | done |
1612 | ||
1613 | fi | |
1614 | fi | |
1615 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1616 | if test -n "$ac_ct_CC"; then | |
25ed0b71 | 1617 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
9255ee31 EZ |
1618 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1619 | else | |
25ed0b71 | 1620 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 EZ |
1621 | echo "${ECHO_T}no" >&6 |
1622 | fi | |
1623 | ||
1624 | CC=$ac_ct_CC | |
1625 | else | |
1626 | CC="$ac_cv_prog_CC" | |
1627 | fi | |
1628 | ||
1629 | fi | |
1630 | if test -z "$CC"; then | |
1631 | # Extract the first word of "cc", so it can be a program name with args. | |
1632 | set dummy cc; ac_word=$2 | |
25ed0b71 | 1633 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9255ee31 EZ |
1634 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1635 | if test "${ac_cv_prog_CC+set}" = set; then | |
1636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 SS |
1637 | else |
1638 | if test -n "$CC"; then | |
1639 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1640 | else | |
d60d9f65 | 1641 | ac_prog_rejected=no |
25ed0b71 KW |
1642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1643 | for as_dir in $PATH | |
1644 | do | |
1645 | IFS=$as_save_IFS | |
1646 | test -z "$as_dir" && as_dir=. | |
1647 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1648 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1649 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1650 | ac_prog_rejected=yes | |
1651 | continue | |
1652 | fi | |
1653 | ac_cv_prog_CC="cc" | |
1654 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1655 | break 2 | |
1656 | fi | |
1657 | done | |
9255ee31 EZ |
1658 | done |
1659 | ||
d60d9f65 SS |
1660 | if test $ac_prog_rejected = yes; then |
1661 | # We found a bogon in the path, so make sure we never use it. | |
1662 | set dummy $ac_cv_prog_CC | |
1663 | shift | |
9255ee31 | 1664 | if test $# != 0; then |
d60d9f65 SS |
1665 | # We chose a different compiler from the bogus one. |
1666 | # However, it has the same basename, so the bogon will be chosen | |
1667 | # first if we set CC to just the basename; use the full file name. | |
1668 | shift | |
25ed0b71 | 1669 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
d60d9f65 SS |
1670 | fi |
1671 | fi | |
1672 | fi | |
1673 | fi | |
9255ee31 | 1674 | CC=$ac_cv_prog_CC |
d60d9f65 | 1675 | if test -n "$CC"; then |
25ed0b71 | 1676 | echo "$as_me:$LINENO: result: $CC" >&5 |
9255ee31 | 1677 | echo "${ECHO_T}$CC" >&6 |
d60d9f65 | 1678 | else |
25ed0b71 | 1679 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 | 1680 | echo "${ECHO_T}no" >&6 |
d60d9f65 SS |
1681 | fi |
1682 | ||
9255ee31 EZ |
1683 | fi |
1684 | if test -z "$CC"; then | |
1685 | if test -n "$ac_tool_prefix"; then | |
1686 | for ac_prog in cl | |
1687 | do | |
1688 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1689 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
25ed0b71 | 1690 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9255ee31 EZ |
1691 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1692 | if test "${ac_cv_prog_CC+set}" = set; then | |
1693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 SS |
1694 | else |
1695 | if test -n "$CC"; then | |
1696 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1697 | else | |
25ed0b71 KW |
1698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1699 | for as_dir in $PATH | |
1700 | do | |
1701 | IFS=$as_save_IFS | |
1702 | test -z "$as_dir" && as_dir=. | |
1703 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1704 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1705 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1706 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1707 | break 2 | |
1708 | fi | |
1709 | done | |
9255ee31 EZ |
1710 | done |
1711 | ||
d60d9f65 SS |
1712 | fi |
1713 | fi | |
9255ee31 | 1714 | CC=$ac_cv_prog_CC |
d60d9f65 | 1715 | if test -n "$CC"; then |
25ed0b71 | 1716 | echo "$as_me:$LINENO: result: $CC" >&5 |
9255ee31 | 1717 | echo "${ECHO_T}$CC" >&6 |
d60d9f65 | 1718 | else |
25ed0b71 | 1719 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 | 1720 | echo "${ECHO_T}no" >&6 |
d60d9f65 SS |
1721 | fi |
1722 | ||
9255ee31 EZ |
1723 | test -n "$CC" && break |
1724 | done | |
1725 | fi | |
1726 | if test -z "$CC"; then | |
1727 | ac_ct_CC=$CC | |
1728 | for ac_prog in cl | |
1729 | do | |
1730 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1731 | set dummy $ac_prog; ac_word=$2 | |
25ed0b71 | 1732 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9255ee31 EZ |
1733 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1734 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1736 | else | |
1737 | if test -n "$ac_ct_CC"; then | |
1738 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1739 | else | |
25ed0b71 KW |
1740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1741 | for as_dir in $PATH | |
1742 | do | |
1743 | IFS=$as_save_IFS | |
1744 | test -z "$as_dir" && as_dir=. | |
1745 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1746 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1747 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1748 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1749 | break 2 | |
1750 | fi | |
1751 | done | |
9255ee31 | 1752 | done |
d60d9f65 | 1753 | |
9255ee31 EZ |
1754 | fi |
1755 | fi | |
1756 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1757 | if test -n "$ac_ct_CC"; then | |
25ed0b71 | 1758 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
9255ee31 EZ |
1759 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1760 | else | |
25ed0b71 | 1761 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 EZ |
1762 | echo "${ECHO_T}no" >&6 |
1763 | fi | |
d60d9f65 | 1764 | |
9255ee31 EZ |
1765 | test -n "$ac_ct_CC" && break |
1766 | done | |
c862e87b | 1767 | |
9255ee31 EZ |
1768 | CC=$ac_ct_CC |
1769 | fi | |
1770 | ||
1771 | fi | |
1772 | ||
25ed0b71 KW |
1773 | |
1774 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1775 | See \`config.log' for more details." >&5 | |
1776 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1777 | See \`config.log' for more details." >&2;} | |
9255ee31 EZ |
1778 | { (exit 1); exit 1; }; } |
1779 | ||
1780 | # Provide some information about the compiler. | |
25ed0b71 | 1781 | echo "$as_me:$LINENO:" \ |
9255ee31 EZ |
1782 | "checking for C compiler version" >&5 |
1783 | ac_compiler=`set X $ac_compile; echo $2` | |
25ed0b71 | 1784 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
9255ee31 EZ |
1785 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
1786 | ac_status=$? | |
25ed0b71 | 1787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 1788 | (exit $ac_status); } |
25ed0b71 | 1789 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
9255ee31 EZ |
1790 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
1791 | ac_status=$? | |
25ed0b71 | 1792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 1793 | (exit $ac_status); } |
25ed0b71 | 1794 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
9255ee31 EZ |
1795 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
1796 | ac_status=$? | |
25ed0b71 | 1797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
1798 | (exit $ac_status); } |
1799 | ||
1800 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
1801 | /* confdefs.h. */ |
1802 | _ACEOF | |
1803 | cat confdefs.h >>conftest.$ac_ext | |
1804 | cat >>conftest.$ac_ext <<_ACEOF | |
1805 | /* end confdefs.h. */ | |
c862e87b | 1806 | |
9255ee31 EZ |
1807 | int |
1808 | main () | |
1809 | { | |
1810 | ||
1811 | ; | |
1812 | return 0; | |
1813 | } | |
1814 | _ACEOF | |
1815 | ac_clean_files_save=$ac_clean_files | |
25ed0b71 | 1816 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
9255ee31 EZ |
1817 | # Try to create an executable without -o first, disregard a.out. |
1818 | # It will help us diagnose broken compilers, and finding out an intuition | |
1819 | # of exeext. | |
430b7832 MM |
1820 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1821 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
9255ee31 | 1822 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
25ed0b71 | 1823 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
9255ee31 EZ |
1824 | (eval $ac_link_default) 2>&5 |
1825 | ac_status=$? | |
25ed0b71 | 1826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
1827 | (exit $ac_status); }; then |
1828 | # Find the output, starting from the most likely. This scheme is | |
1829 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1830 | # resort. | |
25ed0b71 KW |
1831 | |
1832 | # Be careful to initialize this variable, since it used to be cached. | |
1833 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1834 | ac_cv_exeext= | |
1835 | # b.out is created by i960 compilers. | |
1836 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1837 | do | |
1838 | test -f "$ac_file" || continue | |
9255ee31 | 1839 | case $ac_file in |
25ed0b71 | 1840 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
430b7832 | 1841 | ;; |
25ed0b71 | 1842 | conftest.$ac_ext ) |
430b7832 MM |
1843 | # This is the source file. |
1844 | ;; | |
25ed0b71 | 1845 | [ab].out ) |
430b7832 MM |
1846 | # We found the default executable, but exeext='' is most |
1847 | # certainly right. | |
1848 | break;; | |
25ed0b71 | 1849 | *.* ) |
430b7832 MM |
1850 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1851 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1852 | # but it would be cool to find out if it's true. Does anybody | |
1853 | # maintain Libtool? --akim. | |
1854 | export ac_cv_exeext | |
1855 | break;; | |
25ed0b71 | 1856 | * ) |
430b7832 | 1857 | break;; |
9255ee31 EZ |
1858 | esac |
1859 | done | |
1860 | else | |
1861 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
1862 | sed 's/^/| /' conftest.$ac_ext >&5 |
1863 | ||
1864 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1865 | See \`config.log' for more details." >&5 | |
1866 | echo "$as_me: error: C compiler cannot create executables | |
1867 | See \`config.log' for more details." >&2;} | |
9255ee31 EZ |
1868 | { (exit 77); exit 77; }; } |
1869 | fi | |
1870 | ||
1871 | ac_exeext=$ac_cv_exeext | |
25ed0b71 | 1872 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
9255ee31 EZ |
1873 | echo "${ECHO_T}$ac_file" >&6 |
1874 | ||
1875 | # Check the compiler produces executables we can run. If not, either | |
1876 | # the compiler is broken, or we cross compile. | |
25ed0b71 | 1877 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
9255ee31 EZ |
1878 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
1879 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1880 | # If not cross compiling, check that we can run a simple program. | |
1881 | if test "$cross_compiling" != yes; then | |
1882 | if { ac_try='./$ac_file' | |
25ed0b71 | 1883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
1884 | (eval $ac_try) 2>&5 |
1885 | ac_status=$? | |
25ed0b71 | 1886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
1887 | (exit $ac_status); }; }; then |
1888 | cross_compiling=no | |
d60d9f65 | 1889 | else |
9255ee31 EZ |
1890 | if test "$cross_compiling" = maybe; then |
1891 | cross_compiling=yes | |
1892 | else | |
25ed0b71 KW |
1893 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
1894 | If you meant to cross compile, use \`--host'. | |
1895 | See \`config.log' for more details." >&5 | |
9255ee31 | 1896 | echo "$as_me: error: cannot run C compiled programs. |
25ed0b71 KW |
1897 | If you meant to cross compile, use \`--host'. |
1898 | See \`config.log' for more details." >&2;} | |
9255ee31 EZ |
1899 | { (exit 1); exit 1; }; } |
1900 | fi | |
d60d9f65 | 1901 | fi |
d60d9f65 | 1902 | fi |
25ed0b71 | 1903 | echo "$as_me:$LINENO: result: yes" >&5 |
9255ee31 EZ |
1904 | echo "${ECHO_T}yes" >&6 |
1905 | ||
25ed0b71 | 1906 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
9255ee31 EZ |
1907 | ac_clean_files=$ac_clean_files_save |
1908 | # Check the compiler produces executables we can run. If not, either | |
1909 | # the compiler is broken, or we cross compile. | |
25ed0b71 | 1910 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
9255ee31 | 1911 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
25ed0b71 | 1912 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
9255ee31 EZ |
1913 | echo "${ECHO_T}$cross_compiling" >&6 |
1914 | ||
25ed0b71 KW |
1915 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1916 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9255ee31 EZ |
1918 | (eval $ac_link) 2>&5 |
1919 | ac_status=$? | |
25ed0b71 | 1920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
1921 | (exit $ac_status); }; then |
1922 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1923 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1924 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1925 | # `rm'. | |
25ed0b71 KW |
1926 | for ac_file in conftest.exe conftest conftest.*; do |
1927 | test -f "$ac_file" || continue | |
9255ee31 | 1928 | case $ac_file in |
25ed0b71 | 1929 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
9255ee31 | 1930 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
430b7832 MM |
1931 | export ac_cv_exeext |
1932 | break;; | |
9255ee31 EZ |
1933 | * ) break;; |
1934 | esac | |
1935 | done | |
d60d9f65 | 1936 | else |
25ed0b71 KW |
1937 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1938 | See \`config.log' for more details." >&5 | |
1939 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1940 | See \`config.log' for more details." >&2;} | |
9255ee31 EZ |
1941 | { (exit 1); exit 1; }; } |
1942 | fi | |
1943 | ||
1944 | rm -f conftest$ac_cv_exeext | |
25ed0b71 | 1945 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
9255ee31 EZ |
1946 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
1947 | ||
1948 | rm -f conftest.$ac_ext | |
1949 | EXEEXT=$ac_cv_exeext | |
1950 | ac_exeext=$EXEEXT | |
25ed0b71 KW |
1951 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1952 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
9255ee31 EZ |
1953 | if test "${ac_cv_objext+set}" = set; then |
1954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1955 | else | |
1956 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
1957 | /* confdefs.h. */ |
1958 | _ACEOF | |
1959 | cat confdefs.h >>conftest.$ac_ext | |
1960 | cat >>conftest.$ac_ext <<_ACEOF | |
1961 | /* end confdefs.h. */ | |
d60d9f65 | 1962 | |
9255ee31 EZ |
1963 | int |
1964 | main () | |
1965 | { | |
d60d9f65 | 1966 | |
9255ee31 EZ |
1967 | ; |
1968 | return 0; | |
1969 | } | |
1970 | _ACEOF | |
1971 | rm -f conftest.o conftest.obj | |
25ed0b71 | 1972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9255ee31 EZ |
1973 | (eval $ac_compile) 2>&5 |
1974 | ac_status=$? | |
25ed0b71 | 1975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
1976 | (exit $ac_status); }; then |
1977 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1978 | case $ac_file in | |
25ed0b71 | 1979 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
9255ee31 EZ |
1980 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1981 | break;; | |
1982 | esac | |
1983 | done | |
d60d9f65 | 1984 | else |
9255ee31 | 1985 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
1986 | sed 's/^/| /' conftest.$ac_ext >&5 |
1987 | ||
1988 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1989 | See \`config.log' for more details." >&5 | |
1990 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1991 | See \`config.log' for more details." >&2;} | |
9255ee31 EZ |
1992 | { (exit 1); exit 1; }; } |
1993 | fi | |
1994 | ||
1995 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1996 | fi | |
25ed0b71 | 1997 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
9255ee31 EZ |
1998 | echo "${ECHO_T}$ac_cv_objext" >&6 |
1999 | OBJEXT=$ac_cv_objext | |
2000 | ac_objext=$OBJEXT | |
25ed0b71 | 2001 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
9255ee31 EZ |
2002 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2003 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2005 | else | |
2006 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2007 | /* confdefs.h. */ |
2008 | _ACEOF | |
2009 | cat confdefs.h >>conftest.$ac_ext | |
2010 | cat >>conftest.$ac_ext <<_ACEOF | |
2011 | /* end confdefs.h. */ | |
9255ee31 EZ |
2012 | |
2013 | int | |
2014 | main () | |
2015 | { | |
2016 | #ifndef __GNUC__ | |
2017 | choke me | |
2018 | #endif | |
d60d9f65 | 2019 | |
9255ee31 EZ |
2020 | ; |
2021 | return 0; | |
2022 | } | |
2023 | _ACEOF | |
2024 | rm -f conftest.$ac_objext | |
25ed0b71 | 2025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 2026 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 2027 | ac_status=$? |
430b7832 MM |
2028 | grep -v '^ *+' conftest.er1 >conftest.err |
2029 | rm -f conftest.er1 | |
2030 | cat conftest.err >&5 | |
25ed0b71 | 2031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 2032 | (exit $ac_status); } && |
430b7832 MM |
2033 | { ac_try='test -z "$ac_c_werror_flag" |
2034 | || test ! -s conftest.err' | |
2035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2036 | (eval $ac_try) 2>&5 | |
2037 | ac_status=$? | |
2038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2039 | (exit $ac_status); }; } && | |
2040 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 2041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
2042 | (eval $ac_try) 2>&5 |
2043 | ac_status=$? | |
25ed0b71 | 2044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
2045 | (exit $ac_status); }; }; then |
2046 | ac_compiler_gnu=yes | |
2047 | else | |
2048 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
2049 | sed 's/^/| /' conftest.$ac_ext >&5 |
2050 | ||
9255ee31 EZ |
2051 | ac_compiler_gnu=no |
2052 | fi | |
430b7832 | 2053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9255ee31 EZ |
2054 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2055 | ||
2056 | fi | |
25ed0b71 | 2057 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
9255ee31 EZ |
2058 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2059 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2060 | ac_test_CFLAGS=${CFLAGS+set} | |
2061 | ac_save_CFLAGS=$CFLAGS | |
2062 | CFLAGS="-g" | |
25ed0b71 | 2063 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
9255ee31 EZ |
2064 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2065 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 2067 | else |
9255ee31 | 2068 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
2069 | /* confdefs.h. */ |
2070 | _ACEOF | |
2071 | cat confdefs.h >>conftest.$ac_ext | |
2072 | cat >>conftest.$ac_ext <<_ACEOF | |
2073 | /* end confdefs.h. */ | |
9255ee31 EZ |
2074 | |
2075 | int | |
2076 | main () | |
2077 | { | |
2078 | ||
2079 | ; | |
2080 | return 0; | |
2081 | } | |
2082 | _ACEOF | |
2083 | rm -f conftest.$ac_objext | |
25ed0b71 | 2084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 2085 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 2086 | ac_status=$? |
430b7832 MM |
2087 | grep -v '^ *+' conftest.er1 >conftest.err |
2088 | rm -f conftest.er1 | |
2089 | cat conftest.err >&5 | |
25ed0b71 | 2090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 2091 | (exit $ac_status); } && |
430b7832 MM |
2092 | { ac_try='test -z "$ac_c_werror_flag" |
2093 | || test ! -s conftest.err' | |
2094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2095 | (eval $ac_try) 2>&5 | |
2096 | ac_status=$? | |
2097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2098 | (exit $ac_status); }; } && | |
2099 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 2100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
2101 | (eval $ac_try) 2>&5 |
2102 | ac_status=$? | |
25ed0b71 | 2103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 2104 | (exit $ac_status); }; }; then |
d60d9f65 SS |
2105 | ac_cv_prog_cc_g=yes |
2106 | else | |
9255ee31 | 2107 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
2108 | sed 's/^/| /' conftest.$ac_ext >&5 |
2109 | ||
9255ee31 | 2110 | ac_cv_prog_cc_g=no |
d60d9f65 | 2111 | fi |
430b7832 | 2112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 2113 | fi |
25ed0b71 | 2114 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
9255ee31 | 2115 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
d60d9f65 | 2116 | if test "$ac_test_CFLAGS" = set; then |
9255ee31 | 2117 | CFLAGS=$ac_save_CFLAGS |
d60d9f65 SS |
2118 | elif test $ac_cv_prog_cc_g = yes; then |
2119 | if test "$GCC" = yes; then | |
2120 | CFLAGS="-g -O2" | |
2121 | else | |
2122 | CFLAGS="-g" | |
2123 | fi | |
2124 | else | |
2125 | if test "$GCC" = yes; then | |
2126 | CFLAGS="-O2" | |
2127 | else | |
2128 | CFLAGS= | |
2129 | fi | |
2130 | fi | |
25ed0b71 KW |
2131 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2132 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2133 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2135 | else | |
2136 | ac_cv_prog_cc_stdc=no | |
2137 | ac_save_CC=$CC | |
2138 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2139 | /* confdefs.h. */ |
2140 | _ACEOF | |
2141 | cat confdefs.h >>conftest.$ac_ext | |
2142 | cat >>conftest.$ac_ext <<_ACEOF | |
2143 | /* end confdefs.h. */ | |
2144 | #include <stdarg.h> | |
2145 | #include <stdio.h> | |
2146 | #include <sys/types.h> | |
2147 | #include <sys/stat.h> | |
2148 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2149 | struct buf { int x; }; | |
2150 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2151 | static char *e (p, i) | |
2152 | char **p; | |
2153 | int i; | |
2154 | { | |
2155 | return p[i]; | |
2156 | } | |
2157 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2158 | { | |
2159 | char *s; | |
2160 | va_list v; | |
2161 | va_start (v,p); | |
2162 | s = g (p, va_arg (v,int)); | |
2163 | va_end (v); | |
2164 | return s; | |
2165 | } | |
430b7832 MM |
2166 | |
2167 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2168 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2169 | These don't provoke an error unfortunately, instead are silently treated | |
2170 | as 'x'. The following induces an error, until -std1 is added to get | |
2171 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2172 | array size at least. It's necessary to write '\x00'==0 to get something | |
2173 | that's true only with -std1. */ | |
2174 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2175 | ||
25ed0b71 KW |
2176 | int test (int i, double x); |
2177 | struct s1 {int (*f) (int a);}; | |
2178 | struct s2 {int (*f) (double a);}; | |
2179 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2180 | int argc; | |
2181 | char **argv; | |
2182 | int | |
2183 | main () | |
2184 | { | |
2185 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2186 | ; | |
2187 | return 0; | |
2188 | } | |
2189 | _ACEOF | |
2190 | # Don't try gcc -ansi; that turns off useful extensions and | |
2191 | # breaks some systems' header files. | |
2192 | # AIX -qlanglvl=ansi | |
2193 | # Ultrix and OSF/1 -std1 | |
2194 | # HP-UX 10.20 and later -Ae | |
2195 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2196 | # SVR4 -Xc -D__EXTENSIONS__ | |
2197 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2198 | do | |
2199 | CC="$ac_save_CC $ac_arg" | |
2200 | rm -f conftest.$ac_objext | |
2201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
430b7832 | 2202 | (eval $ac_compile) 2>conftest.er1 |
25ed0b71 | 2203 | ac_status=$? |
430b7832 MM |
2204 | grep -v '^ *+' conftest.er1 >conftest.err |
2205 | rm -f conftest.er1 | |
2206 | cat conftest.err >&5 | |
25ed0b71 KW |
2207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2208 | (exit $ac_status); } && | |
430b7832 MM |
2209 | { ac_try='test -z "$ac_c_werror_flag" |
2210 | || test ! -s conftest.err' | |
2211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2212 | (eval $ac_try) 2>&5 | |
2213 | ac_status=$? | |
2214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2215 | (exit $ac_status); }; } && | |
2216 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 KW |
2217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2218 | (eval $ac_try) 2>&5 | |
2219 | ac_status=$? | |
2220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2221 | (exit $ac_status); }; }; then | |
2222 | ac_cv_prog_cc_stdc=$ac_arg | |
2223 | break | |
2224 | else | |
2225 | echo "$as_me: failed program was:" >&5 | |
2226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2227 | ||
2228 | fi | |
430b7832 | 2229 | rm -f conftest.err conftest.$ac_objext |
25ed0b71 KW |
2230 | done |
2231 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2232 | CC=$ac_save_CC | |
2233 | ||
2234 | fi | |
2235 | ||
2236 | case "x$ac_cv_prog_cc_stdc" in | |
2237 | x|xno) | |
2238 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2239 | echo "${ECHO_T}none needed" >&6 ;; | |
2240 | *) | |
2241 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2242 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2243 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2244 | esac | |
2245 | ||
9255ee31 EZ |
2246 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2247 | # in C++ we need to declare it. In case someone uses the same compiler | |
2248 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2249 | # the declaration of exit, since it's the most demanding environment. | |
2250 | cat >conftest.$ac_ext <<_ACEOF | |
2251 | #ifndef __cplusplus | |
2252 | choke me | |
2253 | #endif | |
2254 | _ACEOF | |
2255 | rm -f conftest.$ac_objext | |
25ed0b71 | 2256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 2257 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 2258 | ac_status=$? |
430b7832 MM |
2259 | grep -v '^ *+' conftest.er1 >conftest.err |
2260 | rm -f conftest.er1 | |
2261 | cat conftest.err >&5 | |
25ed0b71 | 2262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 2263 | (exit $ac_status); } && |
430b7832 MM |
2264 | { ac_try='test -z "$ac_c_werror_flag" |
2265 | || test ! -s conftest.err' | |
2266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2267 | (eval $ac_try) 2>&5 | |
2268 | ac_status=$? | |
2269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2270 | (exit $ac_status); }; } && | |
2271 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 2272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
2273 | (eval $ac_try) 2>&5 |
2274 | ac_status=$? | |
25ed0b71 | 2275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
2276 | (exit $ac_status); }; }; then |
2277 | for ac_declaration in \ | |
430b7832 | 2278 | '' \ |
9255ee31 EZ |
2279 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2280 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2281 | 'extern "C" void exit (int) throw ();' \ | |
2282 | 'extern "C" void exit (int);' \ | |
2283 | 'void exit (int);' | |
2284 | do | |
2285 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2286 | /* confdefs.h. */ |
2287 | _ACEOF | |
2288 | cat confdefs.h >>conftest.$ac_ext | |
2289 | cat >>conftest.$ac_ext <<_ACEOF | |
2290 | /* end confdefs.h. */ | |
9255ee31 | 2291 | $ac_declaration |
430b7832 | 2292 | #include <stdlib.h> |
9255ee31 EZ |
2293 | int |
2294 | main () | |
2295 | { | |
2296 | exit (42); | |
2297 | ; | |
2298 | return 0; | |
2299 | } | |
2300 | _ACEOF | |
2301 | rm -f conftest.$ac_objext | |
25ed0b71 | 2302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 2303 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 2304 | ac_status=$? |
430b7832 MM |
2305 | grep -v '^ *+' conftest.er1 >conftest.err |
2306 | rm -f conftest.er1 | |
2307 | cat conftest.err >&5 | |
25ed0b71 | 2308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 2309 | (exit $ac_status); } && |
430b7832 MM |
2310 | { ac_try='test -z "$ac_c_werror_flag" |
2311 | || test ! -s conftest.err' | |
2312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2313 | (eval $ac_try) 2>&5 | |
2314 | ac_status=$? | |
2315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2316 | (exit $ac_status); }; } && | |
2317 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 2318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
2319 | (eval $ac_try) 2>&5 |
2320 | ac_status=$? | |
25ed0b71 | 2321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
2322 | (exit $ac_status); }; }; then |
2323 | : | |
2324 | else | |
2325 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
2326 | sed 's/^/| /' conftest.$ac_ext >&5 |
2327 | ||
9255ee31 EZ |
2328 | continue |
2329 | fi | |
430b7832 | 2330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9255ee31 | 2331 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
2332 | /* confdefs.h. */ |
2333 | _ACEOF | |
2334 | cat confdefs.h >>conftest.$ac_ext | |
2335 | cat >>conftest.$ac_ext <<_ACEOF | |
2336 | /* end confdefs.h. */ | |
9255ee31 EZ |
2337 | $ac_declaration |
2338 | int | |
2339 | main () | |
2340 | { | |
2341 | exit (42); | |
2342 | ; | |
2343 | return 0; | |
2344 | } | |
2345 | _ACEOF | |
2346 | rm -f conftest.$ac_objext | |
25ed0b71 | 2347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 2348 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 2349 | ac_status=$? |
430b7832 MM |
2350 | grep -v '^ *+' conftest.er1 >conftest.err |
2351 | rm -f conftest.er1 | |
2352 | cat conftest.err >&5 | |
25ed0b71 | 2353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 2354 | (exit $ac_status); } && |
430b7832 MM |
2355 | { ac_try='test -z "$ac_c_werror_flag" |
2356 | || test ! -s conftest.err' | |
2357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2358 | (eval $ac_try) 2>&5 | |
2359 | ac_status=$? | |
2360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2361 | (exit $ac_status); }; } && | |
2362 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 2363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
2364 | (eval $ac_try) 2>&5 |
2365 | ac_status=$? | |
25ed0b71 | 2366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
2367 | (exit $ac_status); }; }; then |
2368 | break | |
2369 | else | |
2370 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
2371 | sed 's/^/| /' conftest.$ac_ext >&5 |
2372 | ||
9255ee31 | 2373 | fi |
430b7832 | 2374 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9255ee31 EZ |
2375 | done |
2376 | rm -f conftest* | |
2377 | if test -n "$ac_declaration"; then | |
2378 | echo '#ifdef __cplusplus' >>confdefs.h | |
2379 | echo $ac_declaration >>confdefs.h | |
2380 | echo '#endif' >>confdefs.h | |
2381 | fi | |
d60d9f65 | 2382 | |
9255ee31 EZ |
2383 | else |
2384 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
2385 | sed 's/^/| /' conftest.$ac_ext >&5 |
2386 | ||
9255ee31 | 2387 | fi |
430b7832 | 2388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9255ee31 EZ |
2389 | ac_ext=c |
2390 | ac_cpp='$CPP $CPPFLAGS' | |
2391 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2392 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2393 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2394 | ||
25ed0b71 | 2395 | |
9255ee31 EZ |
2396 | ac_ext=c |
2397 | ac_cpp='$CPP $CPPFLAGS' | |
2398 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2399 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2400 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25ed0b71 | 2401 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
9255ee31 | 2402 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
d60d9f65 SS |
2403 | # On Suns, sometimes $CPP names a directory. |
2404 | if test -n "$CPP" && test -d "$CPP"; then | |
2405 | CPP= | |
2406 | fi | |
2407 | if test -z "$CPP"; then | |
9255ee31 EZ |
2408 | if test "${ac_cv_prog_CPP+set}" = set; then |
2409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 2410 | else |
9255ee31 EZ |
2411 | # Double quotes because CPP needs to be expanded |
2412 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2413 | do | |
2414 | ac_preproc_ok=false | |
2415 | for ac_c_preproc_warn_flag in '' yes | |
2416 | do | |
2417 | # Use a header file that comes with gcc, so configuring glibc | |
2418 | # with a fresh cross-compiler works. | |
25ed0b71 KW |
2419 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2420 | # <limits.h> exists even on freestanding compilers. | |
d60d9f65 | 2421 | # On the NeXT, cc -E runs the code through the compiler's parser, |
9255ee31 EZ |
2422 | # not just through cpp. "Syntax error" is here to catch this case. |
2423 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2424 | /* confdefs.h. */ |
2425 | _ACEOF | |
2426 | cat confdefs.h >>conftest.$ac_ext | |
2427 | cat >>conftest.$ac_ext <<_ACEOF | |
2428 | /* end confdefs.h. */ | |
2429 | #ifdef __STDC__ | |
2430 | # include <limits.h> | |
2431 | #else | |
2432 | # include <assert.h> | |
2433 | #endif | |
430b7832 | 2434 | Syntax error |
9255ee31 | 2435 | _ACEOF |
25ed0b71 | 2436 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9255ee31 EZ |
2437 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2438 | ac_status=$? | |
25ed0b71 | 2439 | grep -v '^ *+' conftest.er1 >conftest.err |
9255ee31 EZ |
2440 | rm -f conftest.er1 |
2441 | cat conftest.err >&5 | |
25ed0b71 | 2442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
2443 | (exit $ac_status); } >/dev/null; then |
2444 | if test -s conftest.err; then | |
2445 | ac_cpp_err=$ac_c_preproc_warn_flag | |
430b7832 | 2446 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
9255ee31 EZ |
2447 | else |
2448 | ac_cpp_err= | |
2449 | fi | |
2450 | else | |
2451 | ac_cpp_err=yes | |
2452 | fi | |
2453 | if test -z "$ac_cpp_err"; then | |
d60d9f65 SS |
2454 | : |
2455 | else | |
9255ee31 | 2456 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
2457 | sed 's/^/| /' conftest.$ac_ext >&5 |
2458 | ||
9255ee31 EZ |
2459 | # Broken: fails on valid input. |
2460 | continue | |
2461 | fi | |
2462 | rm -f conftest.err conftest.$ac_ext | |
2463 | ||
2464 | # OK, works on sane cases. Now check whether non-existent headers | |
2465 | # can be detected and how. | |
2466 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2467 | /* confdefs.h. */ |
2468 | _ACEOF | |
2469 | cat confdefs.h >>conftest.$ac_ext | |
2470 | cat >>conftest.$ac_ext <<_ACEOF | |
2471 | /* end confdefs.h. */ | |
9255ee31 EZ |
2472 | #include <ac_nonexistent.h> |
2473 | _ACEOF | |
25ed0b71 | 2474 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9255ee31 EZ |
2475 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2476 | ac_status=$? | |
25ed0b71 | 2477 | grep -v '^ *+' conftest.er1 >conftest.err |
9255ee31 EZ |
2478 | rm -f conftest.er1 |
2479 | cat conftest.err >&5 | |
25ed0b71 | 2480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
2481 | (exit $ac_status); } >/dev/null; then |
2482 | if test -s conftest.err; then | |
2483 | ac_cpp_err=$ac_c_preproc_warn_flag | |
430b7832 | 2484 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
9255ee31 EZ |
2485 | else |
2486 | ac_cpp_err= | |
2487 | fi | |
2488 | else | |
2489 | ac_cpp_err=yes | |
2490 | fi | |
2491 | if test -z "$ac_cpp_err"; then | |
2492 | # Broken: success on invalid input. | |
2493 | continue | |
d60d9f65 | 2494 | else |
9255ee31 | 2495 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
2496 | sed 's/^/| /' conftest.$ac_ext >&5 |
2497 | ||
9255ee31 EZ |
2498 | # Passes both tests. |
2499 | ac_preproc_ok=: | |
2500 | break | |
2501 | fi | |
2502 | rm -f conftest.err conftest.$ac_ext | |
2503 | ||
2504 | done | |
2505 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2506 | rm -f conftest.err conftest.$ac_ext | |
2507 | if $ac_preproc_ok; then | |
2508 | break | |
2509 | fi | |
2510 | ||
2511 | done | |
2512 | ac_cv_prog_CPP=$CPP | |
2513 | ||
2514 | fi | |
2515 | CPP=$ac_cv_prog_CPP | |
2516 | else | |
2517 | ac_cv_prog_CPP=$CPP | |
2518 | fi | |
25ed0b71 | 2519 | echo "$as_me:$LINENO: result: $CPP" >&5 |
9255ee31 EZ |
2520 | echo "${ECHO_T}$CPP" >&6 |
2521 | ac_preproc_ok=false | |
2522 | for ac_c_preproc_warn_flag in '' yes | |
2523 | do | |
2524 | # Use a header file that comes with gcc, so configuring glibc | |
2525 | # with a fresh cross-compiler works. | |
25ed0b71 KW |
2526 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2527 | # <limits.h> exists even on freestanding compilers. | |
9255ee31 EZ |
2528 | # On the NeXT, cc -E runs the code through the compiler's parser, |
2529 | # not just through cpp. "Syntax error" is here to catch this case. | |
2530 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2531 | /* confdefs.h. */ |
2532 | _ACEOF | |
2533 | cat confdefs.h >>conftest.$ac_ext | |
2534 | cat >>conftest.$ac_ext <<_ACEOF | |
2535 | /* end confdefs.h. */ | |
2536 | #ifdef __STDC__ | |
2537 | # include <limits.h> | |
2538 | #else | |
2539 | # include <assert.h> | |
2540 | #endif | |
430b7832 | 2541 | Syntax error |
9255ee31 | 2542 | _ACEOF |
25ed0b71 | 2543 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9255ee31 EZ |
2544 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2545 | ac_status=$? | |
25ed0b71 | 2546 | grep -v '^ *+' conftest.er1 >conftest.err |
9255ee31 EZ |
2547 | rm -f conftest.er1 |
2548 | cat conftest.err >&5 | |
25ed0b71 | 2549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
2550 | (exit $ac_status); } >/dev/null; then |
2551 | if test -s conftest.err; then | |
2552 | ac_cpp_err=$ac_c_preproc_warn_flag | |
430b7832 | 2553 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
9255ee31 EZ |
2554 | else |
2555 | ac_cpp_err= | |
2556 | fi | |
2557 | else | |
2558 | ac_cpp_err=yes | |
2559 | fi | |
2560 | if test -z "$ac_cpp_err"; then | |
d60d9f65 SS |
2561 | : |
2562 | else | |
9255ee31 | 2563 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
2564 | sed 's/^/| /' conftest.$ac_ext >&5 |
2565 | ||
9255ee31 EZ |
2566 | # Broken: fails on valid input. |
2567 | continue | |
d60d9f65 | 2568 | fi |
9255ee31 EZ |
2569 | rm -f conftest.err conftest.$ac_ext |
2570 | ||
2571 | # OK, works on sane cases. Now check whether non-existent headers | |
2572 | # can be detected and how. | |
2573 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2574 | /* confdefs.h. */ |
2575 | _ACEOF | |
2576 | cat confdefs.h >>conftest.$ac_ext | |
2577 | cat >>conftest.$ac_ext <<_ACEOF | |
2578 | /* end confdefs.h. */ | |
9255ee31 EZ |
2579 | #include <ac_nonexistent.h> |
2580 | _ACEOF | |
25ed0b71 | 2581 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9255ee31 EZ |
2582 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2583 | ac_status=$? | |
25ed0b71 | 2584 | grep -v '^ *+' conftest.er1 >conftest.err |
9255ee31 EZ |
2585 | rm -f conftest.er1 |
2586 | cat conftest.err >&5 | |
25ed0b71 | 2587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
2588 | (exit $ac_status); } >/dev/null; then |
2589 | if test -s conftest.err; then | |
2590 | ac_cpp_err=$ac_c_preproc_warn_flag | |
430b7832 | 2591 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
9255ee31 EZ |
2592 | else |
2593 | ac_cpp_err= | |
2594 | fi | |
2595 | else | |
2596 | ac_cpp_err=yes | |
d60d9f65 | 2597 | fi |
9255ee31 EZ |
2598 | if test -z "$ac_cpp_err"; then |
2599 | # Broken: success on invalid input. | |
2600 | continue | |
2601 | else | |
2602 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
2603 | sed 's/^/| /' conftest.$ac_ext >&5 |
2604 | ||
9255ee31 EZ |
2605 | # Passes both tests. |
2606 | ac_preproc_ok=: | |
2607 | break | |
d60d9f65 | 2608 | fi |
9255ee31 EZ |
2609 | rm -f conftest.err conftest.$ac_ext |
2610 | ||
2611 | done | |
2612 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2613 | rm -f conftest.err conftest.$ac_ext | |
2614 | if $ac_preproc_ok; then | |
2615 | : | |
d60d9f65 | 2616 | else |
25ed0b71 KW |
2617 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
2618 | See \`config.log' for more details." >&5 | |
2619 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2620 | See \`config.log' for more details." >&2;} | |
9255ee31 | 2621 | { (exit 1); exit 1; }; } |
d60d9f65 | 2622 | fi |
d60d9f65 | 2623 | |
9255ee31 EZ |
2624 | ac_ext=c |
2625 | ac_cpp='$CPP $CPPFLAGS' | |
2626 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2627 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2628 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2629 | ||
25ed0b71 KW |
2630 | |
2631 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
2632 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2633 | if test "${ac_cv_prog_egrep+set}" = set; then | |
9255ee31 | 2634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d60d9f65 | 2635 | else |
25ed0b71 KW |
2636 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
2637 | then ac_cv_prog_egrep='grep -E' | |
2638 | else ac_cv_prog_egrep='egrep' | |
2639 | fi | |
d60d9f65 | 2640 | fi |
25ed0b71 KW |
2641 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2642 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2643 | EGREP=$ac_cv_prog_egrep | |
d60d9f65 | 2644 | |
9255ee31 | 2645 | |
25ed0b71 KW |
2646 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
2647 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
2648 | if test "${ac_cv_header_stdc+set}" = set; then | |
2649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2650 | else | |
2651 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2652 | /* confdefs.h. */ |
2653 | _ACEOF | |
2654 | cat confdefs.h >>conftest.$ac_ext | |
2655 | cat >>conftest.$ac_ext <<_ACEOF | |
2656 | /* end confdefs.h. */ | |
2657 | #include <stdlib.h> | |
2658 | #include <stdarg.h> | |
2659 | #include <string.h> | |
2660 | #include <float.h> | |
d60d9f65 | 2661 | |
25ed0b71 KW |
2662 | int |
2663 | main () | |
2664 | { | |
d60d9f65 | 2665 | |
25ed0b71 KW |
2666 | ; |
2667 | return 0; | |
2668 | } | |
2669 | _ACEOF | |
2670 | rm -f conftest.$ac_objext | |
2671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
430b7832 | 2672 | (eval $ac_compile) 2>conftest.er1 |
25ed0b71 | 2673 | ac_status=$? |
430b7832 MM |
2674 | grep -v '^ *+' conftest.er1 >conftest.err |
2675 | rm -f conftest.er1 | |
2676 | cat conftest.err >&5 | |
25ed0b71 KW |
2677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2678 | (exit $ac_status); } && | |
430b7832 MM |
2679 | { ac_try='test -z "$ac_c_werror_flag" |
2680 | || test ! -s conftest.err' | |
2681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2682 | (eval $ac_try) 2>&5 | |
2683 | ac_status=$? | |
2684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2685 | (exit $ac_status); }; } && | |
2686 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 KW |
2687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2688 | (eval $ac_try) 2>&5 | |
2689 | ac_status=$? | |
2690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2691 | (exit $ac_status); }; }; then | |
2692 | ac_cv_header_stdc=yes | |
2693 | else | |
2694 | echo "$as_me: failed program was:" >&5 | |
2695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d60d9f65 | 2696 | |
25ed0b71 | 2697 | ac_cv_header_stdc=no |
d60d9f65 | 2698 | fi |
430b7832 | 2699 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 2700 | |
25ed0b71 KW |
2701 | if test $ac_cv_header_stdc = yes; then |
2702 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2703 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2704 | /* confdefs.h. */ |
2705 | _ACEOF | |
2706 | cat confdefs.h >>conftest.$ac_ext | |
2707 | cat >>conftest.$ac_ext <<_ACEOF | |
2708 | /* end confdefs.h. */ | |
2709 | #include <string.h> | |
9255ee31 | 2710 | |
25ed0b71 KW |
2711 | _ACEOF |
2712 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2713 | $EGREP "memchr" >/dev/null 2>&1; then | |
2714 | : | |
d60d9f65 | 2715 | else |
25ed0b71 | 2716 | ac_cv_header_stdc=no |
d60d9f65 | 2717 | fi |
25ed0b71 | 2718 | rm -f conftest* |
d60d9f65 | 2719 | |
d60d9f65 SS |
2720 | fi |
2721 | ||
25ed0b71 KW |
2722 | if test $ac_cv_header_stdc = yes; then |
2723 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
9255ee31 | 2724 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 | 2725 | /* confdefs.h. */ |
9255ee31 | 2726 | _ACEOF |
25ed0b71 KW |
2727 | cat confdefs.h >>conftest.$ac_ext |
2728 | cat >>conftest.$ac_ext <<_ACEOF | |
2729 | /* end confdefs.h. */ | |
2730 | #include <stdlib.h> | |
d60d9f65 | 2731 | |
9255ee31 | 2732 | _ACEOF |
d60d9f65 | 2733 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
25ed0b71 KW |
2734 | $EGREP "free" >/dev/null 2>&1; then |
2735 | : | |
2736 | else | |
2737 | ac_cv_header_stdc=no | |
d60d9f65 SS |
2738 | fi |
2739 | rm -f conftest* | |
2740 | ||
d60d9f65 SS |
2741 | fi |
2742 | ||
25ed0b71 KW |
2743 | if test $ac_cv_header_stdc = yes; then |
2744 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2745 | if test "$cross_compiling" = yes; then | |
2746 | : | |
2747 | else | |
2748 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2749 | /* confdefs.h. */ |
2750 | _ACEOF | |
2751 | cat confdefs.h >>conftest.$ac_ext | |
2752 | cat >>conftest.$ac_ext <<_ACEOF | |
2753 | /* end confdefs.h. */ | |
2754 | #include <ctype.h> | |
2755 | #if ((' ' & 0x0FF) == 0x020) | |
2756 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2757 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2758 | #else | |
2759 | # define ISLOWER(c) \ | |
430b7832 MM |
2760 | (('a' <= (c) && (c) <= 'i') \ |
2761 | || ('j' <= (c) && (c) <= 'r') \ | |
2762 | || ('s' <= (c) && (c) <= 'z')) | |
25ed0b71 KW |
2763 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
2764 | #endif | |
2765 | ||
2766 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2767 | int | |
2768 | main () | |
2769 | { | |
2770 | int i; | |
2771 | for (i = 0; i < 256; i++) | |
2772 | if (XOR (islower (i), ISLOWER (i)) | |
430b7832 | 2773 | || toupper (i) != TOUPPER (i)) |
25ed0b71 KW |
2774 | exit(2); |
2775 | exit (0); | |
2776 | } | |
2777 | _ACEOF | |
2778 | rm -f conftest$ac_exeext | |
2779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2780 | (eval $ac_link) 2>&5 | |
2781 | ac_status=$? | |
2782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2783 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
2784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2785 | (eval $ac_try) 2>&5 | |
2786 | ac_status=$? | |
2787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2788 | (exit $ac_status); }; }; then | |
2789 | : | |
2790 | else | |
2791 | echo "$as_me: program exited with status $ac_status" >&5 | |
2792 | echo "$as_me: failed program was:" >&5 | |
2793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2794 | ||
2795 | ( exit $ac_status ) | |
2796 | ac_cv_header_stdc=no | |
2797 | fi | |
430b7832 | 2798 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
25ed0b71 KW |
2799 | fi |
2800 | fi | |
2801 | fi | |
2802 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
2803 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
2804 | if test $ac_cv_header_stdc = yes; then | |
2805 | ||
2806 | cat >>confdefs.h <<\_ACEOF | |
2807 | #define STDC_HEADERS 1 | |
2808 | _ACEOF | |
2809 | ||
2810 | fi | |
2811 | ||
2812 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
2813 | ||
2814 | ||
2815 | ||
2816 | ||
2817 | ||
2818 | ||
2819 | ||
2820 | ||
2821 | ||
2822 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
430b7832 | 2823 | inttypes.h stdint.h unistd.h |
25ed0b71 KW |
2824 | do |
2825 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
2826 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2827 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
2828 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9255ee31 | 2829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d60d9f65 | 2830 | else |
25ed0b71 | 2831 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
2832 | /* confdefs.h. */ |
2833 | _ACEOF | |
2834 | cat confdefs.h >>conftest.$ac_ext | |
2835 | cat >>conftest.$ac_ext <<_ACEOF | |
2836 | /* end confdefs.h. */ | |
2837 | $ac_includes_default | |
2838 | ||
2839 | #include <$ac_header> | |
2840 | _ACEOF | |
2841 | rm -f conftest.$ac_objext | |
2842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
430b7832 | 2843 | (eval $ac_compile) 2>conftest.er1 |
25ed0b71 | 2844 | ac_status=$? |
430b7832 MM |
2845 | grep -v '^ *+' conftest.er1 >conftest.err |
2846 | rm -f conftest.er1 | |
2847 | cat conftest.err >&5 | |
25ed0b71 KW |
2848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2849 | (exit $ac_status); } && | |
430b7832 MM |
2850 | { ac_try='test -z "$ac_c_werror_flag" |
2851 | || test ! -s conftest.err' | |
2852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2853 | (eval $ac_try) 2>&5 | |
2854 | ac_status=$? | |
2855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2856 | (exit $ac_status); }; } && | |
2857 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 KW |
2858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2859 | (eval $ac_try) 2>&5 | |
2860 | ac_status=$? | |
2861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2862 | (exit $ac_status); }; }; then | |
2863 | eval "$as_ac_Header=yes" | |
2864 | else | |
2865 | echo "$as_me: failed program was:" >&5 | |
2866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2867 | ||
2868 | eval "$as_ac_Header=no" | |
2869 | fi | |
430b7832 | 2870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25ed0b71 KW |
2871 | fi |
2872 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
2873 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2874 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2875 | cat >>confdefs.h <<_ACEOF | |
2876 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
2877 | _ACEOF | |
2878 | ||
2879 | fi | |
2880 | ||
2881 | done | |
2882 | ||
2883 | ||
2884 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
2885 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
2886 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
2887 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
2888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2889 | fi | |
2890 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
2891 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
2892 | else | |
2893 | # Is the header compilable? | |
2894 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 | |
2895 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 | |
2896 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2897 | /* confdefs.h. */ |
2898 | _ACEOF | |
2899 | cat confdefs.h >>conftest.$ac_ext | |
2900 | cat >>conftest.$ac_ext <<_ACEOF | |
2901 | /* end confdefs.h. */ | |
2902 | $ac_includes_default | |
2903 | #include <minix/config.h> | |
2904 | _ACEOF | |
2905 | rm -f conftest.$ac_objext | |
2906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
430b7832 | 2907 | (eval $ac_compile) 2>conftest.er1 |
25ed0b71 | 2908 | ac_status=$? |
430b7832 MM |
2909 | grep -v '^ *+' conftest.er1 >conftest.err |
2910 | rm -f conftest.er1 | |
2911 | cat conftest.err >&5 | |
25ed0b71 KW |
2912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2913 | (exit $ac_status); } && | |
430b7832 MM |
2914 | { ac_try='test -z "$ac_c_werror_flag" |
2915 | || test ! -s conftest.err' | |
2916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2917 | (eval $ac_try) 2>&5 | |
2918 | ac_status=$? | |
2919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2920 | (exit $ac_status); }; } && | |
2921 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 KW |
2922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2923 | (eval $ac_try) 2>&5 | |
2924 | ac_status=$? | |
2925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2926 | (exit $ac_status); }; }; then | |
2927 | ac_header_compiler=yes | |
2928 | else | |
2929 | echo "$as_me: failed program was:" >&5 | |
2930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2931 | ||
2932 | ac_header_compiler=no | |
2933 | fi | |
430b7832 | 2934 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25ed0b71 KW |
2935 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
2936 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
2937 | ||
2938 | # Is the header present? | |
2939 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 | |
2940 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 | |
2941 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2942 | /* confdefs.h. */ |
2943 | _ACEOF | |
2944 | cat confdefs.h >>conftest.$ac_ext | |
2945 | cat >>conftest.$ac_ext <<_ACEOF | |
2946 | /* end confdefs.h. */ | |
2947 | #include <minix/config.h> | |
2948 | _ACEOF | |
2949 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2950 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2951 | ac_status=$? | |
2952 | grep -v '^ *+' conftest.er1 >conftest.err | |
2953 | rm -f conftest.er1 | |
2954 | cat conftest.err >&5 | |
2955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2956 | (exit $ac_status); } >/dev/null; then | |
2957 | if test -s conftest.err; then | |
2958 | ac_cpp_err=$ac_c_preproc_warn_flag | |
430b7832 | 2959 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
25ed0b71 KW |
2960 | else |
2961 | ac_cpp_err= | |
2962 | fi | |
2963 | else | |
2964 | ac_cpp_err=yes | |
2965 | fi | |
2966 | if test -z "$ac_cpp_err"; then | |
2967 | ac_header_preproc=yes | |
2968 | else | |
2969 | echo "$as_me: failed program was:" >&5 | |
2970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2971 | ||
2972 | ac_header_preproc=no | |
2973 | fi | |
2974 | rm -f conftest.err conftest.$ac_ext | |
2975 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
2976 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
2977 | ||
2978 | # So? What about this header? | |
430b7832 MM |
2979 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
2980 | yes:no: ) | |
25ed0b71 KW |
2981 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
2982 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
430b7832 MM |
2983 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 |
2984 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
2985 | ac_header_preproc=yes | |
25ed0b71 | 2986 | ;; |
430b7832 | 2987 | no:yes:* ) |
25ed0b71 KW |
2988 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
2989 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
430b7832 MM |
2990 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
2991 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
2992 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
2993 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
2994 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
2995 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
25ed0b71 KW |
2996 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
2997 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
430b7832 MM |
2998 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 |
2999 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
25ed0b71 KW |
3000 | ( |
3001 | cat <<\_ASBOX | |
430b7832 MM |
3002 | ## ----------------------------------- ## |
3003 | ## Report this to bug-readline@gnu.org ## | |
3004 | ## ----------------------------------- ## | |
25ed0b71 KW |
3005 | _ASBOX |
3006 | ) | | |
3007 | sed "s/^/$as_me: WARNING: /" >&2 | |
3008 | ;; | |
3009 | esac | |
3010 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
3011 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
3012 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
3013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3014 | else | |
3015 | ac_cv_header_minix_config_h=$ac_header_preproc | |
3016 | fi | |
3017 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
3018 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
3019 | ||
3020 | fi | |
3021 | if test $ac_cv_header_minix_config_h = yes; then | |
3022 | MINIX=yes | |
3023 | else | |
3024 | MINIX= | |
3025 | fi | |
3026 | ||
3027 | ||
3028 | if test "$MINIX" = yes; then | |
3029 | ||
3030 | cat >>confdefs.h <<\_ACEOF | |
3031 | #define _POSIX_SOURCE 1 | |
3032 | _ACEOF | |
3033 | ||
3034 | ||
3035 | cat >>confdefs.h <<\_ACEOF | |
3036 | #define _POSIX_1_SOURCE 2 | |
3037 | _ACEOF | |
3038 | ||
3039 | ||
3040 | cat >>confdefs.h <<\_ACEOF | |
3041 | #define _MINIX 1 | |
3042 | _ACEOF | |
3043 | ||
3044 | fi | |
3045 | ||
3046 | ||
3047 | ||
3048 | if test "x$cross_compiling" = "xyes"; then | |
3049 | case "${host}" in | |
3050 | *-cygwin*) | |
3051 | cross_cache=${srcdir}/cross-build/cygwin.cache | |
25ed0b71 | 3052 | LOCAL_CFLAGS="$LOCAL_CFLAGS -I${srcdir}/../libtermcap" |
25ed0b71 | 3053 | ;; |
430b7832 MM |
3054 | *-mingw32*) |
3055 | cross_cache=${srcdir}/cross-build/mingw.cache | |
3056 | ;; | |
25ed0b71 KW |
3057 | *) echo "configure: cross-compiling for a non-cygwin target is not supported" >&2 |
3058 | ;; | |
d60d9f65 | 3059 | esac |
430b7832 MM |
3060 | |
3061 | if test "x$cross_cache" != "x"; then | |
3062 | if test -r "${cross_cache}"; then | |
3063 | echo "loading cross-build cache file ${cross_cache}" | |
3064 | . ${cross_cache} | |
3065 | fi | |
3066 | unset cross_cache | |
3067 | fi | |
25ed0b71 KW |
3068 | fi |
3069 | ||
3070 | if test "x$cross_compiling" = "xyes"; then | |
3071 | CROSS_COMPILING_FLAG=-DCROSS_COMPILING | |
3072 | else | |
3073 | CROSS_COMPILING_FLAG= | |
3074 | fi | |
3075 | ||
3076 | ||
3077 | if test -z "$CC_FOR_BUILD"; then | |
3078 | if test "x$cross_compiling" = "xno"; then | |
3079 | CC_FOR_BUILD='$(CC)' | |
3080 | else | |
3081 | CC_FOR_BUILD=gcc | |
3082 | fi | |
3083 | fi | |
3084 | ||
3085 | ||
3086 | ||
3087 | # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS. | |
3088 | test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O" | |
3089 | ||
3090 | if test $ac_cv_c_compiler_gnu = yes; then | |
3091 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
3092 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
3093 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
3094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3095 | else | |
3096 | ac_pattern="Autoconf.*'x'" | |
3097 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
3098 | /* confdefs.h. */ |
3099 | _ACEOF | |
3100 | cat confdefs.h >>conftest.$ac_ext | |
3101 | cat >>conftest.$ac_ext <<_ACEOF | |
3102 | /* end confdefs.h. */ | |
3103 | #include <sgtty.h> | |
3104 | Autoconf TIOCGETP | |
3105 | _ACEOF | |
3106 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3108 | ac_cv_prog_gcc_traditional=yes | |
3109 | else | |
3110 | ac_cv_prog_gcc_traditional=no | |
3111 | fi | |
3112 | rm -f conftest* | |
3113 | ||
3114 | ||
3115 | if test $ac_cv_prog_gcc_traditional = no; then | |
3116 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
3117 | /* confdefs.h. */ |
3118 | _ACEOF | |
3119 | cat confdefs.h >>conftest.$ac_ext | |
3120 | cat >>conftest.$ac_ext <<_ACEOF | |
3121 | /* end confdefs.h. */ | |
3122 | #include <termio.h> | |
3123 | Autoconf TCGETA | |
3124 | _ACEOF | |
3125 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3126 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3127 | ac_cv_prog_gcc_traditional=yes | |
3128 | fi | |
3129 | rm -f conftest* | |
3130 | ||
3131 | fi | |
3132 | fi | |
3133 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
3134 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
3135 | if test $ac_cv_prog_gcc_traditional = yes; then | |
3136 | CC="$CC -traditional" | |
3137 | fi | |
3138 | fi | |
3139 | ||
3140 | # Find a good install program. We prefer a C program (faster), | |
3141 | # so one script is as good as another. But avoid the broken or | |
3142 | # incompatible versions: | |
3143 | # SysV /etc/install, /usr/sbin/install | |
3144 | # SunOS /usr/etc/install | |
3145 | # IRIX /sbin/install | |
3146 | # AIX /bin/install | |
3147 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3148 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3149 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3150 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
430b7832 | 3151 | # OS/2's system install, which has a completely different semantic |
25ed0b71 KW |
3152 | # ./install, which can be erroneously created by make from ./install.sh. |
3153 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3154 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
3155 | if test -z "$INSTALL"; then | |
3156 | if test "${ac_cv_path_install+set}" = set; then | |
3157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3158 | else | |
3159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3160 | for as_dir in $PATH | |
3161 | do | |
3162 | IFS=$as_save_IFS | |
3163 | test -z "$as_dir" && as_dir=. | |
3164 | # Account for people who put trailing slashes in PATH elements. | |
3165 | case $as_dir/ in | |
3166 | ./ | .// | /cC/* | \ | |
3167 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
430b7832 | 3168 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
25ed0b71 KW |
3169 | /usr/ucb/* ) ;; |
3170 | *) | |
3171 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3172 | # Don't use installbsd from OSF since it installs stuff as root | |
3173 | # by default. | |
3174 | for ac_prog in ginstall scoinst install; do | |
3175 | for ac_exec_ext in '' $ac_executable_extensions; do | |
430b7832 MM |
3176 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
3177 | if test $ac_prog = install && | |
3178 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3179 | # AIX install. It has an incompatible calling convention. | |
3180 | : | |
3181 | elif test $ac_prog = install && | |
3182 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3183 | # program-specific install script used by HP pwplus--don't use. | |
3184 | : | |
3185 | else | |
3186 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3187 | break 3 | |
3188 | fi | |
3189 | fi | |
25ed0b71 KW |
3190 | done |
3191 | done | |
3192 | ;; | |
3193 | esac | |
3194 | done | |
3195 | ||
d60d9f65 SS |
3196 | |
3197 | fi | |
3198 | if test "${ac_cv_path_install+set}" = set; then | |
9255ee31 | 3199 | INSTALL=$ac_cv_path_install |
d60d9f65 SS |
3200 | else |
3201 | # As a last resort, use the slow shell script. We don't cache a | |
3202 | # path for INSTALL within a source directory, because that will | |
3203 | # break other packages using the cache if that directory is | |
3204 | # removed, or if the path is relative. | |
9255ee31 | 3205 | INSTALL=$ac_install_sh |
d60d9f65 SS |
3206 | fi |
3207 | fi | |
25ed0b71 | 3208 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
9255ee31 | 3209 | echo "${ECHO_T}$INSTALL" >&6 |
d60d9f65 SS |
3210 | |
3211 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3212 | # It thinks the first close brace ends the variable substitution. | |
3213 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3214 | ||
9255ee31 | 3215 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
c862e87b | 3216 | |
d60d9f65 SS |
3217 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3218 | ||
c862e87b JM |
3219 | # Extract the first word of "ar", so it can be a program name with args. |
3220 | set dummy ar; ac_word=$2 | |
25ed0b71 | 3221 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9255ee31 EZ |
3222 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3223 | if test "${ac_cv_prog_AR+set}" = set; then | |
3224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c862e87b JM |
3225 | else |
3226 | if test -n "$AR"; then | |
3227 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3228 | else | |
25ed0b71 KW |
3229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3230 | for as_dir in $PATH | |
3231 | do | |
3232 | IFS=$as_save_IFS | |
3233 | test -z "$as_dir" && as_dir=. | |
3234 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3235 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3236 | ac_cv_prog_AR="" | |
3237 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3238 | break 2 | |
3239 | fi | |
3240 | done | |
9255ee31 EZ |
3241 | done |
3242 | ||
3243 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
3244 | fi | |
3245 | fi | |
3246 | AR=$ac_cv_prog_AR | |
3247 | if test -n "$AR"; then | |
25ed0b71 | 3248 | echo "$as_me:$LINENO: result: $AR" >&5 |
9255ee31 EZ |
3249 | echo "${ECHO_T}$AR" >&6 |
3250 | else | |
25ed0b71 | 3251 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 EZ |
3252 | echo "${ECHO_T}no" >&6 |
3253 | fi | |
3254 | ||
3255 | test -n "$ARFLAGS" || ARFLAGS="cr" | |
3256 | if test -n "$ac_tool_prefix"; then | |
3257 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3258 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
25ed0b71 | 3259 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9255ee31 EZ |
3260 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3261 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3263 | else | |
3264 | if test -n "$RANLIB"; then | |
3265 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3266 | else | |
25ed0b71 KW |
3267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3268 | for as_dir in $PATH | |
3269 | do | |
3270 | IFS=$as_save_IFS | |
3271 | test -z "$as_dir" && as_dir=. | |
3272 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3273 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3274 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3275 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3276 | break 2 | |
3277 | fi | |
3278 | done | |
9255ee31 EZ |
3279 | done |
3280 | ||
3281 | fi | |
3282 | fi | |
3283 | RANLIB=$ac_cv_prog_RANLIB | |
3284 | if test -n "$RANLIB"; then | |
25ed0b71 | 3285 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
9255ee31 EZ |
3286 | echo "${ECHO_T}$RANLIB" >&6 |
3287 | else | |
25ed0b71 | 3288 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 EZ |
3289 | echo "${ECHO_T}no" >&6 |
3290 | fi | |
3291 | ||
3292 | fi | |
3293 | if test -z "$ac_cv_prog_RANLIB"; then | |
3294 | ac_ct_RANLIB=$RANLIB | |
3295 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3296 | set dummy ranlib; ac_word=$2 | |
25ed0b71 | 3297 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9255ee31 EZ |
3298 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3299 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3301 | else | |
3302 | if test -n "$ac_ct_RANLIB"; then | |
3303 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3304 | else | |
25ed0b71 KW |
3305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3306 | for as_dir in $PATH | |
3307 | do | |
3308 | IFS=$as_save_IFS | |
3309 | test -z "$as_dir" && as_dir=. | |
3310 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3311 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3312 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3313 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3314 | break 2 | |
3315 | fi | |
3316 | done | |
9255ee31 EZ |
3317 | done |
3318 | ||
3319 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3320 | fi | |
3321 | fi | |
3322 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3323 | if test -n "$ac_ct_RANLIB"; then | |
25ed0b71 | 3324 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
9255ee31 EZ |
3325 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
3326 | else | |
25ed0b71 | 3327 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 EZ |
3328 | echo "${ECHO_T}no" >&6 |
3329 | fi | |
3330 | ||
3331 | RANLIB=$ac_ct_RANLIB | |
3332 | else | |
3333 | RANLIB="$ac_cv_prog_RANLIB" | |
3334 | fi | |
3335 | ||
9255ee31 | 3336 | |
25ed0b71 | 3337 | MAKE_SHELL=/bin/sh |
9255ee31 | 3338 | |
9255ee31 | 3339 | |
25ed0b71 | 3340 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
9255ee31 EZ |
3341 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
3342 | if test "${ac_cv_c_const+set}" = set; then | |
3343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3344 | else | |
3345 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
3346 | /* confdefs.h. */ |
3347 | _ACEOF | |
3348 | cat confdefs.h >>conftest.$ac_ext | |
3349 | cat >>conftest.$ac_ext <<_ACEOF | |
3350 | /* end confdefs.h. */ | |
9255ee31 EZ |
3351 | |
3352 | int | |
3353 | main () | |
3354 | { | |
3355 | /* FIXME: Include the comments suggested by Paul. */ | |
3356 | #ifndef __cplusplus | |
3357 | /* Ultrix mips cc rejects this. */ | |
3358 | typedef int charset[2]; | |
3359 | const charset x; | |
3360 | /* SunOS 4.1.1 cc rejects this. */ | |
3361 | char const *const *ccp; | |
3362 | char **p; | |
3363 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3364 | struct point {int x, y;}; | |
3365 | static struct point const zero = {0,0}; | |
3366 | /* AIX XL C 1.02.0.0 rejects this. | |
3367 | It does not let you subtract one const X* pointer from another in | |
3368 | an arm of an if-expression whose if-part is not a constant | |
3369 | expression */ | |
3370 | const char *g = "string"; | |
3371 | ccp = &g + (g ? g-g : 0); | |
3372 | /* HPUX 7.0 cc rejects these. */ | |
3373 | ++ccp; | |
3374 | p = (char**) ccp; | |
3375 | ccp = (char const *const *) p; | |
3376 | { /* SCO 3.2v4 cc rejects this. */ | |
3377 | char *t; | |
3378 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3379 | ||
25ed0b71 KW |
3380 | *t++ = 0; |
3381 | } | |
3382 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3383 | int x[] = {25, 17}; | |
3384 | const int *foo = &x[0]; | |
3385 | ++foo; | |
3386 | } | |
3387 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3388 | typedef const int *iptr; | |
3389 | iptr p = 0; | |
3390 | ++p; | |
3391 | } | |
3392 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3393 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3394 | struct s { int j; const int *ap[3]; }; | |
3395 | struct s *b; b->j = 5; | |
3396 | } | |
3397 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3398 | const int foo = 10; | |
3399 | } | |
3400 | #endif | |
9255ee31 | 3401 | |
25ed0b71 KW |
3402 | ; |
3403 | return 0; | |
3404 | } | |
9255ee31 EZ |
3405 | _ACEOF |
3406 | rm -f conftest.$ac_objext | |
25ed0b71 | 3407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 3408 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 3409 | ac_status=$? |
430b7832 MM |
3410 | grep -v '^ *+' conftest.er1 >conftest.err |
3411 | rm -f conftest.er1 | |
3412 | cat conftest.err >&5 | |
25ed0b71 | 3413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 3414 | (exit $ac_status); } && |
430b7832 MM |
3415 | { ac_try='test -z "$ac_c_werror_flag" |
3416 | || test ! -s conftest.err' | |
3417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3418 | (eval $ac_try) 2>&5 | |
3419 | ac_status=$? | |
3420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3421 | (exit $ac_status); }; } && | |
3422 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 3423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
3424 | (eval $ac_try) 2>&5 |
3425 | ac_status=$? | |
25ed0b71 | 3426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 3427 | (exit $ac_status); }; }; then |
25ed0b71 | 3428 | ac_cv_c_const=yes |
9255ee31 EZ |
3429 | else |
3430 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
3431 | sed 's/^/| /' conftest.$ac_ext >&5 |
3432 | ||
3433 | ac_cv_c_const=no | |
c862e87b | 3434 | fi |
430b7832 | 3435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c862e87b | 3436 | fi |
25ed0b71 KW |
3437 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
3438 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
3439 | if test $ac_cv_c_const = no; then | |
3440 | ||
3441 | cat >>confdefs.h <<\_ACEOF | |
3442 | #define const | |
3443 | _ACEOF | |
9255ee31 | 3444 | |
c862e87b JM |
3445 | fi |
3446 | ||
25ed0b71 KW |
3447 | echo "$as_me:$LINENO: checking for function prototypes" >&5 |
3448 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 | |
3449 | if test "$ac_cv_prog_cc_stdc" != no; then | |
3450 | echo "$as_me:$LINENO: result: yes" >&5 | |
3451 | echo "${ECHO_T}yes" >&6 | |
3452 | ||
3453 | cat >>confdefs.h <<\_ACEOF | |
3454 | #define PROTOTYPES 1 | |
3455 | _ACEOF | |
3456 | ||
3457 | ||
3458 | cat >>confdefs.h <<\_ACEOF | |
3459 | #define __PROTOTYPES 1 | |
3460 | _ACEOF | |
3461 | ||
3462 | else | |
3463 | echo "$as_me:$LINENO: result: no" >&5 | |
3464 | echo "${ECHO_T}no" >&6 | |
3465 | fi | |
3466 | ||
3467 | ||
3468 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 | |
9255ee31 EZ |
3469 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
3470 | if test "${ac_cv_c_char_unsigned+set}" = set; then | |
3471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 3472 | else |
9255ee31 | 3473 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
3474 | /* confdefs.h. */ |
3475 | _ACEOF | |
3476 | cat confdefs.h >>conftest.$ac_ext | |
3477 | cat >>conftest.$ac_ext <<_ACEOF | |
3478 | /* end confdefs.h. */ | |
9255ee31 EZ |
3479 | $ac_includes_default |
3480 | int | |
3481 | main () | |
3482 | { | |
25ed0b71 KW |
3483 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
3484 | test_array [0] = 0 | |
3485 | ||
9255ee31 EZ |
3486 | ; |
3487 | return 0; | |
3488 | } | |
3489 | _ACEOF | |
3490 | rm -f conftest.$ac_objext | |
25ed0b71 | 3491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 3492 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 3493 | ac_status=$? |
430b7832 MM |
3494 | grep -v '^ *+' conftest.er1 >conftest.err |
3495 | rm -f conftest.er1 | |
3496 | cat conftest.err >&5 | |
25ed0b71 | 3497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 3498 | (exit $ac_status); } && |
430b7832 MM |
3499 | { ac_try='test -z "$ac_c_werror_flag" |
3500 | || test ! -s conftest.err' | |
3501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3502 | (eval $ac_try) 2>&5 | |
3503 | ac_status=$? | |
3504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3505 | (exit $ac_status); }; } && | |
3506 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 3507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
3508 | (eval $ac_try) 2>&5 |
3509 | ac_status=$? | |
25ed0b71 | 3510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
3511 | (exit $ac_status); }; }; then |
3512 | ac_cv_c_char_unsigned=no | |
d60d9f65 | 3513 | else |
9255ee31 | 3514 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
3515 | sed 's/^/| /' conftest.$ac_ext >&5 |
3516 | ||
9255ee31 | 3517 | ac_cv_c_char_unsigned=yes |
d60d9f65 | 3518 | fi |
430b7832 | 3519 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 3520 | fi |
25ed0b71 | 3521 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
9255ee31 EZ |
3522 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
3523 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | |
25ed0b71 | 3524 | cat >>confdefs.h <<\_ACEOF |
9255ee31 | 3525 | #define __CHAR_UNSIGNED__ 1 |
25ed0b71 | 3526 | _ACEOF |
d60d9f65 | 3527 | |
9255ee31 | 3528 | fi |
d60d9f65 | 3529 | |
25ed0b71 KW |
3530 | |
3531 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
9255ee31 EZ |
3532 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
3533 | if test "${ac_cv_type_signal+set}" = set; then | |
3534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 3535 | else |
9255ee31 | 3536 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
3537 | /* confdefs.h. */ |
3538 | _ACEOF | |
3539 | cat confdefs.h >>conftest.$ac_ext | |
3540 | cat >>conftest.$ac_ext <<_ACEOF | |
3541 | /* end confdefs.h. */ | |
d60d9f65 SS |
3542 | #include <sys/types.h> |
3543 | #include <signal.h> | |
3544 | #ifdef signal | |
9255ee31 | 3545 | # undef signal |
d60d9f65 SS |
3546 | #endif |
3547 | #ifdef __cplusplus | |
3548 | extern "C" void (*signal (int, void (*)(int)))(int); | |
3549 | #else | |
3550 | void (*signal ()) (); | |
3551 | #endif | |
3552 | ||
9255ee31 EZ |
3553 | int |
3554 | main () | |
3555 | { | |
d60d9f65 | 3556 | int i; |
9255ee31 EZ |
3557 | ; |
3558 | return 0; | |
3559 | } | |
3560 | _ACEOF | |
3561 | rm -f conftest.$ac_objext | |
25ed0b71 | 3562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 3563 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 3564 | ac_status=$? |
430b7832 MM |
3565 | grep -v '^ *+' conftest.er1 >conftest.err |
3566 | rm -f conftest.er1 | |
3567 | cat conftest.err >&5 | |
25ed0b71 | 3568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 3569 | (exit $ac_status); } && |
430b7832 MM |
3570 | { ac_try='test -z "$ac_c_werror_flag" |
3571 | || test ! -s conftest.err' | |
3572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3573 | (eval $ac_try) 2>&5 | |
3574 | ac_status=$? | |
3575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3576 | (exit $ac_status); }; } && | |
3577 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 3578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
3579 | (eval $ac_try) 2>&5 |
3580 | ac_status=$? | |
25ed0b71 | 3581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 3582 | (exit $ac_status); }; }; then |
d60d9f65 SS |
3583 | ac_cv_type_signal=void |
3584 | else | |
9255ee31 | 3585 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
3586 | sed 's/^/| /' conftest.$ac_ext >&5 |
3587 | ||
9255ee31 | 3588 | ac_cv_type_signal=int |
d60d9f65 | 3589 | fi |
430b7832 | 3590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 3591 | fi |
25ed0b71 | 3592 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
9255ee31 | 3593 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
d60d9f65 | 3594 | |
25ed0b71 | 3595 | cat >>confdefs.h <<_ACEOF |
d60d9f65 | 3596 | #define RETSIGTYPE $ac_cv_type_signal |
25ed0b71 KW |
3597 | _ACEOF |
3598 | ||
d60d9f65 | 3599 | |
25ed0b71 KW |
3600 | |
3601 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
9255ee31 EZ |
3602 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
3603 | if test "${ac_cv_type_size_t+set}" = set; then | |
3604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3605 | else | |
3606 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
3607 | /* confdefs.h. */ |
3608 | _ACEOF | |
3609 | cat confdefs.h >>conftest.$ac_ext | |
3610 | cat >>conftest.$ac_ext <<_ACEOF | |
3611 | /* end confdefs.h. */ | |
9255ee31 EZ |
3612 | $ac_includes_default |
3613 | int | |
3614 | main () | |
3615 | { | |
3616 | if ((size_t *) 0) | |
3617 | return 0; | |
3618 | if (sizeof (size_t)) | |
3619 | return 0; | |
3620 | ; | |
3621 | return 0; | |
3622 | } | |
3623 | _ACEOF | |
3624 | rm -f conftest.$ac_objext | |
25ed0b71 | 3625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 3626 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 3627 | ac_status=$? |
430b7832 MM |
3628 | grep -v '^ *+' conftest.er1 >conftest.err |
3629 | rm -f conftest.er1 | |
3630 | cat conftest.err >&5 | |
25ed0b71 | 3631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 3632 | (exit $ac_status); } && |
430b7832 MM |
3633 | { ac_try='test -z "$ac_c_werror_flag" |
3634 | || test ! -s conftest.err' | |
3635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3636 | (eval $ac_try) 2>&5 | |
3637 | ac_status=$? | |
3638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3639 | (exit $ac_status); }; } && | |
3640 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 3641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
3642 | (eval $ac_try) 2>&5 |
3643 | ac_status=$? | |
25ed0b71 | 3644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
3645 | (exit $ac_status); }; }; then |
3646 | ac_cv_type_size_t=yes | |
3647 | else | |
3648 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
3649 | sed 's/^/| /' conftest.$ac_ext >&5 |
3650 | ||
9255ee31 EZ |
3651 | ac_cv_type_size_t=no |
3652 | fi | |
430b7832 | 3653 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9255ee31 | 3654 | fi |
25ed0b71 | 3655 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
9255ee31 EZ |
3656 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
3657 | if test $ac_cv_type_size_t = yes; then | |
3658 | : | |
3659 | else | |
3660 | ||
25ed0b71 | 3661 | cat >>confdefs.h <<_ACEOF |
9255ee31 | 3662 | #define size_t unsigned |
25ed0b71 | 3663 | _ACEOF |
9255ee31 EZ |
3664 | |
3665 | fi | |
3666 | ||
25ed0b71 | 3667 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
9255ee31 EZ |
3668 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 |
3669 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
3670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3671 | else | |
3672 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
3673 | /* confdefs.h. */ |
3674 | _ACEOF | |
3675 | cat confdefs.h >>conftest.$ac_ext | |
3676 | cat >>conftest.$ac_ext <<_ACEOF | |
3677 | /* end confdefs.h. */ | |
9255ee31 EZ |
3678 | $ac_includes_default |
3679 | int | |
3680 | main () | |
3681 | { | |
3682 | if ((ssize_t *) 0) | |
3683 | return 0; | |
3684 | if (sizeof (ssize_t)) | |
3685 | return 0; | |
3686 | ; | |
3687 | return 0; | |
3688 | } | |
3689 | _ACEOF | |
3690 | rm -f conftest.$ac_objext | |
25ed0b71 | 3691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 3692 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 3693 | ac_status=$? |
430b7832 MM |
3694 | grep -v '^ *+' conftest.er1 >conftest.err |
3695 | rm -f conftest.er1 | |
3696 | cat conftest.err >&5 | |
25ed0b71 | 3697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 3698 | (exit $ac_status); } && |
430b7832 MM |
3699 | { ac_try='test -z "$ac_c_werror_flag" |
3700 | || test ! -s conftest.err' | |
3701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3702 | (eval $ac_try) 2>&5 | |
3703 | ac_status=$? | |
3704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3705 | (exit $ac_status); }; } && | |
3706 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 3707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
3708 | (eval $ac_try) 2>&5 |
3709 | ac_status=$? | |
25ed0b71 | 3710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
3711 | (exit $ac_status); }; }; then |
3712 | ac_cv_type_ssize_t=yes | |
3713 | else | |
3714 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
3715 | sed 's/^/| /' conftest.$ac_ext >&5 |
3716 | ||
9255ee31 EZ |
3717 | ac_cv_type_ssize_t=no |
3718 | fi | |
430b7832 | 3719 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9255ee31 | 3720 | fi |
25ed0b71 | 3721 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
9255ee31 EZ |
3722 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 |
3723 | if test $ac_cv_type_ssize_t = yes; then | |
3724 | : | |
3725 | else | |
3726 | ||
25ed0b71 | 3727 | cat >>confdefs.h <<_ACEOF |
9255ee31 | 3728 | #define ssize_t int |
25ed0b71 | 3729 | _ACEOF |
d60d9f65 | 3730 | |
9255ee31 | 3731 | fi |
d60d9f65 | 3732 | |
25ed0b71 KW |
3733 | |
3734 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 | |
9255ee31 EZ |
3735 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
3736 | if test "${ac_cv_header_stat_broken+set}" = set; then | |
3737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 3738 | else |
9255ee31 | 3739 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
3740 | /* confdefs.h. */ |
3741 | _ACEOF | |
3742 | cat confdefs.h >>conftest.$ac_ext | |
3743 | cat >>conftest.$ac_ext <<_ACEOF | |
3744 | /* end confdefs.h. */ | |
d60d9f65 SS |
3745 | #include <sys/types.h> |
3746 | #include <sys/stat.h> | |
3747 | ||
3748 | #if defined(S_ISBLK) && defined(S_IFDIR) | |
3749 | # if S_ISBLK (S_IFDIR) | |
3750 | You lose. | |
3751 | # endif | |
3752 | #endif | |
3753 | ||
3754 | #if defined(S_ISBLK) && defined(S_IFCHR) | |
3755 | # if S_ISBLK (S_IFCHR) | |
3756 | You lose. | |
3757 | # endif | |
3758 | #endif | |
3759 | ||
3760 | #if defined(S_ISLNK) && defined(S_IFREG) | |
3761 | # if S_ISLNK (S_IFREG) | |
3762 | You lose. | |
3763 | # endif | |
3764 | #endif | |
3765 | ||
3766 | #if defined(S_ISSOCK) && defined(S_IFREG) | |
3767 | # if S_ISSOCK (S_IFREG) | |
3768 | You lose. | |
3769 | # endif | |
3770 | #endif | |
3771 | ||
9255ee31 | 3772 | _ACEOF |
d60d9f65 | 3773 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
25ed0b71 | 3774 | $EGREP "You lose" >/dev/null 2>&1; then |
d60d9f65 SS |
3775 | ac_cv_header_stat_broken=yes |
3776 | else | |
d60d9f65 SS |
3777 | ac_cv_header_stat_broken=no |
3778 | fi | |
3779 | rm -f conftest* | |
3780 | ||
3781 | fi | |
25ed0b71 | 3782 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
9255ee31 | 3783 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
d60d9f65 | 3784 | if test $ac_cv_header_stat_broken = yes; then |
9255ee31 | 3785 | |
25ed0b71 | 3786 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 3787 | #define STAT_MACROS_BROKEN 1 |
25ed0b71 | 3788 | _ACEOF |
d60d9f65 SS |
3789 | |
3790 | fi | |
3791 | ||
25ed0b71 KW |
3792 | |
3793 | ||
3794 | ||
3795 | ||
3796 | ||
d60d9f65 | 3797 | ac_header_dirent=no |
9255ee31 EZ |
3798 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
3799 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
25ed0b71 | 3800 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
9255ee31 EZ |
3801 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
3802 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3804 | else | |
3805 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
3806 | /* confdefs.h. */ |
3807 | _ACEOF | |
3808 | cat confdefs.h >>conftest.$ac_ext | |
3809 | cat >>conftest.$ac_ext <<_ACEOF | |
3810 | /* end confdefs.h. */ | |
d60d9f65 SS |
3811 | #include <sys/types.h> |
3812 | #include <$ac_hdr> | |
9255ee31 EZ |
3813 | |
3814 | int | |
3815 | main () | |
3816 | { | |
3817 | if ((DIR *) 0) | |
3818 | return 0; | |
3819 | ; | |
3820 | return 0; | |
3821 | } | |
3822 | _ACEOF | |
3823 | rm -f conftest.$ac_objext | |
25ed0b71 | 3824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 3825 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 3826 | ac_status=$? |
430b7832 MM |
3827 | grep -v '^ *+' conftest.er1 >conftest.err |
3828 | rm -f conftest.er1 | |
3829 | cat conftest.err >&5 | |
25ed0b71 | 3830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 3831 | (exit $ac_status); } && |
430b7832 MM |
3832 | { ac_try='test -z "$ac_c_werror_flag" |
3833 | || test ! -s conftest.err' | |
3834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3835 | (eval $ac_try) 2>&5 | |
3836 | ac_status=$? | |
3837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3838 | (exit $ac_status); }; } && | |
3839 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 3840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
3841 | (eval $ac_try) 2>&5 |
3842 | ac_status=$? | |
25ed0b71 | 3843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
3844 | (exit $ac_status); }; }; then |
3845 | eval "$as_ac_Header=yes" | |
d60d9f65 | 3846 | else |
9255ee31 | 3847 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
3848 | sed 's/^/| /' conftest.$ac_ext >&5 |
3849 | ||
9255ee31 | 3850 | eval "$as_ac_Header=no" |
d60d9f65 | 3851 | fi |
430b7832 | 3852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 3853 | fi |
25ed0b71 | 3854 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9255ee31 EZ |
3855 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3856 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
25ed0b71 | 3857 | cat >>confdefs.h <<_ACEOF |
9255ee31 | 3858 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
25ed0b71 | 3859 | _ACEOF |
9255ee31 EZ |
3860 | |
3861 | ac_header_dirent=$ac_hdr; break | |
d60d9f65 | 3862 | fi |
9255ee31 | 3863 | |
d60d9f65 SS |
3864 | done |
3865 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
3866 | if test $ac_header_dirent = dirent.h; then | |
25ed0b71 KW |
3867 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3868 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
3869 | if test "${ac_cv_search_opendir+set}" = set; then | |
9255ee31 | 3870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d60d9f65 | 3871 | else |
25ed0b71 KW |
3872 | ac_func_search_save_LIBS=$LIBS |
3873 | ac_cv_search_opendir=no | |
9255ee31 | 3874 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
3875 | /* confdefs.h. */ |
3876 | _ACEOF | |
3877 | cat confdefs.h >>conftest.$ac_ext | |
3878 | cat >>conftest.$ac_ext <<_ACEOF | |
3879 | /* end confdefs.h. */ | |
9255ee31 | 3880 | |
d60d9f65 | 3881 | /* Override any gcc2 internal prototype to avoid an error. */ |
9255ee31 EZ |
3882 | #ifdef __cplusplus |
3883 | extern "C" | |
3884 | #endif | |
d60d9f65 | 3885 | /* We use char because int might match the return type of a gcc2 |
9255ee31 EZ |
3886 | builtin and then its argument prototype would still apply. */ |
3887 | char opendir (); | |
3888 | int | |
3889 | main () | |
3890 | { | |
3891 | opendir (); | |
3892 | ; | |
3893 | return 0; | |
3894 | } | |
3895 | _ACEOF | |
3896 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 3897 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 3898 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 3899 | ac_status=$? |
430b7832 MM |
3900 | grep -v '^ *+' conftest.er1 >conftest.err |
3901 | rm -f conftest.er1 | |
3902 | cat conftest.err >&5 | |
25ed0b71 | 3903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 3904 | (exit $ac_status); } && |
430b7832 MM |
3905 | { ac_try='test -z "$ac_c_werror_flag" |
3906 | || test ! -s conftest.err' | |
3907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3908 | (eval $ac_try) 2>&5 | |
3909 | ac_status=$? | |
3910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3911 | (exit $ac_status); }; } && | |
3912 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 3913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
3914 | (eval $ac_try) 2>&5 |
3915 | ac_status=$? | |
25ed0b71 | 3916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 3917 | (exit $ac_status); }; }; then |
25ed0b71 | 3918 | ac_cv_search_opendir="none required" |
d60d9f65 | 3919 | else |
9255ee31 | 3920 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
3921 | sed 's/^/| /' conftest.$ac_ext >&5 |
3922 | ||
d60d9f65 | 3923 | fi |
430b7832 MM |
3924 | rm -f conftest.err conftest.$ac_objext \ |
3925 | conftest$ac_exeext conftest.$ac_ext | |
25ed0b71 KW |
3926 | if test "$ac_cv_search_opendir" = no; then |
3927 | for ac_lib in dir; do | |
3928 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3929 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
3930 | /* confdefs.h. */ |
3931 | _ACEOF | |
3932 | cat confdefs.h >>conftest.$ac_ext | |
3933 | cat >>conftest.$ac_ext <<_ACEOF | |
3934 | /* end confdefs.h. */ | |
3935 | ||
3936 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3937 | #ifdef __cplusplus | |
3938 | extern "C" | |
3939 | #endif | |
3940 | /* We use char because int might match the return type of a gcc2 | |
3941 | builtin and then its argument prototype would still apply. */ | |
3942 | char opendir (); | |
3943 | int | |
3944 | main () | |
3945 | { | |
3946 | opendir (); | |
3947 | ; | |
3948 | return 0; | |
3949 | } | |
3950 | _ACEOF | |
3951 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3952 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
430b7832 | 3953 | (eval $ac_link) 2>conftest.er1 |
25ed0b71 | 3954 | ac_status=$? |
430b7832 MM |
3955 | grep -v '^ *+' conftest.er1 >conftest.err |
3956 | rm -f conftest.er1 | |
3957 | cat conftest.err >&5 | |
25ed0b71 KW |
3958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3959 | (exit $ac_status); } && | |
430b7832 MM |
3960 | { ac_try='test -z "$ac_c_werror_flag" |
3961 | || test ! -s conftest.err' | |
3962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3963 | (eval $ac_try) 2>&5 | |
3964 | ac_status=$? | |
3965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3966 | (exit $ac_status); }; } && | |
3967 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 KW |
3968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3969 | (eval $ac_try) 2>&5 | |
3970 | ac_status=$? | |
3971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3972 | (exit $ac_status); }; }; then | |
3973 | ac_cv_search_opendir="-l$ac_lib" | |
3974 | break | |
3975 | else | |
3976 | echo "$as_me: failed program was:" >&5 | |
3977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3978 | ||
3979 | fi | |
430b7832 MM |
3980 | rm -f conftest.err conftest.$ac_objext \ |
3981 | conftest$ac_exeext conftest.$ac_ext | |
25ed0b71 KW |
3982 | done |
3983 | fi | |
3984 | LIBS=$ac_func_search_save_LIBS | |
d60d9f65 | 3985 | fi |
25ed0b71 KW |
3986 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3987 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
3988 | if test "$ac_cv_search_opendir" != no; then | |
3989 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
3990 | ||
d60d9f65 SS |
3991 | fi |
3992 | ||
3993 | else | |
25ed0b71 KW |
3994 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3995 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
3996 | if test "${ac_cv_search_opendir+set}" = set; then | |
9255ee31 | 3997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d60d9f65 | 3998 | else |
25ed0b71 KW |
3999 | ac_func_search_save_LIBS=$LIBS |
4000 | ac_cv_search_opendir=no | |
9255ee31 | 4001 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
4002 | /* confdefs.h. */ |
4003 | _ACEOF | |
4004 | cat confdefs.h >>conftest.$ac_ext | |
4005 | cat >>conftest.$ac_ext <<_ACEOF | |
4006 | /* end confdefs.h. */ | |
9255ee31 | 4007 | |
d60d9f65 | 4008 | /* Override any gcc2 internal prototype to avoid an error. */ |
9255ee31 EZ |
4009 | #ifdef __cplusplus |
4010 | extern "C" | |
4011 | #endif | |
d60d9f65 | 4012 | /* We use char because int might match the return type of a gcc2 |
9255ee31 EZ |
4013 | builtin and then its argument prototype would still apply. */ |
4014 | char opendir (); | |
4015 | int | |
4016 | main () | |
4017 | { | |
4018 | opendir (); | |
4019 | ; | |
4020 | return 0; | |
4021 | } | |
4022 | _ACEOF | |
4023 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 4024 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 4025 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 4026 | ac_status=$? |
430b7832 MM |
4027 | grep -v '^ *+' conftest.er1 >conftest.err |
4028 | rm -f conftest.er1 | |
4029 | cat conftest.err >&5 | |
25ed0b71 | 4030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4031 | (exit $ac_status); } && |
430b7832 MM |
4032 | { ac_try='test -z "$ac_c_werror_flag" |
4033 | || test ! -s conftest.err' | |
4034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4035 | (eval $ac_try) 2>&5 | |
4036 | ac_status=$? | |
4037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4038 | (exit $ac_status); }; } && | |
4039 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 4040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
4041 | (eval $ac_try) 2>&5 |
4042 | ac_status=$? | |
25ed0b71 | 4043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4044 | (exit $ac_status); }; }; then |
25ed0b71 | 4045 | ac_cv_search_opendir="none required" |
d60d9f65 | 4046 | else |
9255ee31 | 4047 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
4048 | sed 's/^/| /' conftest.$ac_ext >&5 |
4049 | ||
d60d9f65 | 4050 | fi |
430b7832 MM |
4051 | rm -f conftest.err conftest.$ac_objext \ |
4052 | conftest$ac_exeext conftest.$ac_ext | |
25ed0b71 KW |
4053 | if test "$ac_cv_search_opendir" = no; then |
4054 | for ac_lib in x; do | |
4055 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4056 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
4057 | /* confdefs.h. */ |
4058 | _ACEOF | |
4059 | cat confdefs.h >>conftest.$ac_ext | |
4060 | cat >>conftest.$ac_ext <<_ACEOF | |
4061 | /* end confdefs.h. */ | |
4062 | ||
4063 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4064 | #ifdef __cplusplus | |
4065 | extern "C" | |
4066 | #endif | |
4067 | /* We use char because int might match the return type of a gcc2 | |
4068 | builtin and then its argument prototype would still apply. */ | |
4069 | char opendir (); | |
4070 | int | |
4071 | main () | |
4072 | { | |
4073 | opendir (); | |
4074 | ; | |
4075 | return 0; | |
4076 | } | |
4077 | _ACEOF | |
4078 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
430b7832 | 4080 | (eval $ac_link) 2>conftest.er1 |
25ed0b71 | 4081 | ac_status=$? |
430b7832 MM |
4082 | grep -v '^ *+' conftest.er1 >conftest.err |
4083 | rm -f conftest.er1 | |
4084 | cat conftest.err >&5 | |
25ed0b71 KW |
4085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4086 | (exit $ac_status); } && | |
430b7832 MM |
4087 | { ac_try='test -z "$ac_c_werror_flag" |
4088 | || test ! -s conftest.err' | |
4089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4090 | (eval $ac_try) 2>&5 | |
4091 | ac_status=$? | |
4092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4093 | (exit $ac_status); }; } && | |
4094 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 KW |
4095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4096 | (eval $ac_try) 2>&5 | |
4097 | ac_status=$? | |
4098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4099 | (exit $ac_status); }; }; then | |
4100 | ac_cv_search_opendir="-l$ac_lib" | |
4101 | break | |
4102 | else | |
4103 | echo "$as_me: failed program was:" >&5 | |
4104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4105 | ||
4106 | fi | |
430b7832 MM |
4107 | rm -f conftest.err conftest.$ac_objext \ |
4108 | conftest$ac_exeext conftest.$ac_ext | |
25ed0b71 | 4109 | done |
d60d9f65 | 4110 | fi |
25ed0b71 | 4111 | LIBS=$ac_func_search_save_LIBS |
d60d9f65 | 4112 | fi |
25ed0b71 KW |
4113 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4114 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
4115 | if test "$ac_cv_search_opendir" != no; then | |
4116 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
d60d9f65 SS |
4117 | |
4118 | fi | |
4119 | ||
25ed0b71 KW |
4120 | fi |
4121 | ||
4122 | ||
4123 | ||
4124 | ||
4125 | ||
4126 | ||
4127 | ||
4128 | ||
4129 | ||
4130 | ||
4131 | ||
4132 | ||
4133 | ||
4134 | ||
430b7832 MM |
4135 | |
4136 | ||
4137 | ||
4138 | ||
4139 | ||
4140 | for ac_func in fcntl kill lstat memmove putenv select setenv setlocale \ | |
4141 | strcasecmp strpbrk tcgetattr vsnprintf isascii isxdigit \ | |
d01ecef6 | 4142 | getpwnam getpwent getpwuid |
d60d9f65 | 4143 | do |
9255ee31 | 4144 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
25ed0b71 | 4145 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9255ee31 EZ |
4146 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
4147 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 4149 | else |
9255ee31 | 4150 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
4151 | /* confdefs.h. */ |
4152 | _ACEOF | |
4153 | cat confdefs.h >>conftest.$ac_ext | |
4154 | cat >>conftest.$ac_ext <<_ACEOF | |
4155 | /* end confdefs.h. */ | |
430b7832 MM |
4156 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
4157 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4158 | #define $ac_func innocuous_$ac_func | |
4159 | ||
d60d9f65 | 4160 | /* System header to define __stub macros and hopefully few prototypes, |
25ed0b71 KW |
4161 | which can conflict with char $ac_func (); below. |
4162 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4163 | <limits.h> exists even on freestanding compilers. */ | |
430b7832 | 4164 | |
25ed0b71 KW |
4165 | #ifdef __STDC__ |
4166 | # include <limits.h> | |
4167 | #else | |
4168 | # include <assert.h> | |
4169 | #endif | |
430b7832 MM |
4170 | |
4171 | #undef $ac_func | |
4172 | ||
d60d9f65 | 4173 | /* Override any gcc2 internal prototype to avoid an error. */ |
9255ee31 EZ |
4174 | #ifdef __cplusplus |
4175 | extern "C" | |
25ed0b71 | 4176 | { |
9255ee31 | 4177 | #endif |
d60d9f65 | 4178 | /* We use char because int might match the return type of a gcc2 |
9255ee31 EZ |
4179 | builtin and then its argument prototype would still apply. */ |
4180 | char $ac_func (); | |
d60d9f65 SS |
4181 | /* The GNU C library defines this for functions which it implements |
4182 | to always fail with ENOSYS. Some functions are actually named | |
4183 | something starting with __ and the normal name is an alias. */ | |
4184 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4185 | choke me | |
4186 | #else | |
25ed0b71 KW |
4187 | char (*f) () = $ac_func; |
4188 | #endif | |
4189 | #ifdef __cplusplus | |
4190 | } | |
d60d9f65 SS |
4191 | #endif |
4192 | ||
25ed0b71 KW |
4193 | int |
4194 | main () | |
4195 | { | |
4196 | return f != $ac_func; | |
9255ee31 EZ |
4197 | ; |
4198 | return 0; | |
4199 | } | |
4200 | _ACEOF | |
4201 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 4202 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 4203 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 4204 | ac_status=$? |
430b7832 MM |
4205 | grep -v '^ *+' conftest.er1 >conftest.err |
4206 | rm -f conftest.er1 | |
4207 | cat conftest.err >&5 | |
25ed0b71 | 4208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4209 | (exit $ac_status); } && |
430b7832 MM |
4210 | { ac_try='test -z "$ac_c_werror_flag" |
4211 | || test ! -s conftest.err' | |
4212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4213 | (eval $ac_try) 2>&5 | |
4214 | ac_status=$? | |
4215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4216 | (exit $ac_status); }; } && | |
4217 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 4218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
4219 | (eval $ac_try) 2>&5 |
4220 | ac_status=$? | |
25ed0b71 | 4221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
4222 | (exit $ac_status); }; }; then |
4223 | eval "$as_ac_var=yes" | |
d60d9f65 | 4224 | else |
9255ee31 | 4225 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
4226 | sed 's/^/| /' conftest.$ac_ext >&5 |
4227 | ||
9255ee31 | 4228 | eval "$as_ac_var=no" |
d60d9f65 | 4229 | fi |
430b7832 MM |
4230 | rm -f conftest.err conftest.$ac_objext \ |
4231 | conftest$ac_exeext conftest.$ac_ext | |
d60d9f65 | 4232 | fi |
25ed0b71 | 4233 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9255ee31 EZ |
4234 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
4235 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25ed0b71 | 4236 | cat >>confdefs.h <<_ACEOF |
9255ee31 | 4237 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
25ed0b71 | 4238 | _ACEOF |
9255ee31 | 4239 | |
d60d9f65 SS |
4240 | fi |
4241 | done | |
4242 | ||
25ed0b71 KW |
4243 | |
4244 | echo "$as_me:$LINENO: checking for working strcoll" >&5 | |
9255ee31 EZ |
4245 | echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6 |
4246 | if test "${ac_cv_func_strcoll_works+set}" = set; then | |
4247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 SS |
4248 | else |
4249 | if test "$cross_compiling" = yes; then | |
4250 | ac_cv_func_strcoll_works=no | |
4251 | else | |
9255ee31 | 4252 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
4253 | /* confdefs.h. */ |
4254 | _ACEOF | |
4255 | cat confdefs.h >>conftest.$ac_ext | |
4256 | cat >>conftest.$ac_ext <<_ACEOF | |
4257 | /* end confdefs.h. */ | |
9255ee31 EZ |
4258 | $ac_includes_default |
4259 | int | |
d60d9f65 SS |
4260 | main () |
4261 | { | |
9255ee31 EZ |
4262 | exit (strcoll ("abc", "def") >= 0 || |
4263 | strcoll ("ABC", "DEF") >= 0 || | |
4264 | strcoll ("123", "456") >= 0) | |
4265 | ; | |
4266 | return 0; | |
d60d9f65 | 4267 | } |
9255ee31 EZ |
4268 | _ACEOF |
4269 | rm -f conftest$ac_exeext | |
25ed0b71 | 4270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9255ee31 EZ |
4271 | (eval $ac_link) 2>&5 |
4272 | ac_status=$? | |
25ed0b71 | 4273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4274 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
25ed0b71 | 4275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
4276 | (eval $ac_try) 2>&5 |
4277 | ac_status=$? | |
25ed0b71 | 4278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4279 | (exit $ac_status); }; }; then |
d60d9f65 SS |
4280 | ac_cv_func_strcoll_works=yes |
4281 | else | |
9255ee31 EZ |
4282 | echo "$as_me: program exited with status $ac_status" >&5 |
4283 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
4284 | sed 's/^/| /' conftest.$ac_ext >&5 |
4285 | ||
4286 | ( exit $ac_status ) | |
9255ee31 | 4287 | ac_cv_func_strcoll_works=no |
d60d9f65 | 4288 | fi |
430b7832 | 4289 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4290 | fi |
d60d9f65 | 4291 | fi |
25ed0b71 | 4292 | echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 |
9255ee31 | 4293 | echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6 |
d60d9f65 | 4294 | if test $ac_cv_func_strcoll_works = yes; then |
9255ee31 | 4295 | |
25ed0b71 | 4296 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 4297 | #define HAVE_STRCOLL 1 |
25ed0b71 | 4298 | _ACEOF |
d60d9f65 SS |
4299 | |
4300 | fi | |
4301 | ||
25ed0b71 KW |
4302 | |
4303 | ||
4304 | ||
4305 | ||
4306 | ||
4307 | ||
4308 | ||
4309 | ||
4310 | ||
4311 | ||
4312 | ||
4313 | ||
4314 | ||
4315 | ||
4316 | ||
4317 | ||
4318 | ||
4319 | ||
430b7832 | 4320 | |
9255ee31 EZ |
4321 | for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \ |
4322 | limits.h sys/ptem.h sys/pte.h sys/stream.h sys/select.h \ | |
430b7832 MM |
4323 | termcap.h termios.h termio.h sys/file.h locale.h memory.h \ |
4324 | pwd.h | |
d60d9f65 | 4325 | do |
9255ee31 | 4326 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
25ed0b71 KW |
4327 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4328 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9255ee31 EZ |
4329 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4330 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25ed0b71 KW |
4332 | fi |
4333 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4334 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9255ee31 | 4335 | else |
25ed0b71 KW |
4336 | # Is the header compilable? |
4337 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4338 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4339 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
4340 | /* confdefs.h. */ |
4341 | _ACEOF | |
4342 | cat confdefs.h >>conftest.$ac_ext | |
4343 | cat >>conftest.$ac_ext <<_ACEOF | |
4344 | /* end confdefs.h. */ | |
4345 | $ac_includes_default | |
4346 | #include <$ac_header> | |
4347 | _ACEOF | |
4348 | rm -f conftest.$ac_objext | |
4349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
430b7832 | 4350 | (eval $ac_compile) 2>conftest.er1 |
25ed0b71 | 4351 | ac_status=$? |
430b7832 MM |
4352 | grep -v '^ *+' conftest.er1 >conftest.err |
4353 | rm -f conftest.er1 | |
4354 | cat conftest.err >&5 | |
25ed0b71 KW |
4355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4356 | (exit $ac_status); } && | |
430b7832 MM |
4357 | { ac_try='test -z "$ac_c_werror_flag" |
4358 | || test ! -s conftest.err' | |
4359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4360 | (eval $ac_try) 2>&5 | |
4361 | ac_status=$? | |
4362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4363 | (exit $ac_status); }; } && | |
4364 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 KW |
4365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4366 | (eval $ac_try) 2>&5 | |
4367 | ac_status=$? | |
4368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4369 | (exit $ac_status); }; }; then | |
4370 | ac_header_compiler=yes | |
4371 | else | |
4372 | echo "$as_me: failed program was:" >&5 | |
4373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4374 | ||
4375 | ac_header_compiler=no | |
4376 | fi | |
430b7832 | 4377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25ed0b71 KW |
4378 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4379 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4380 | ||
4381 | # Is the header present? | |
4382 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4383 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4384 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
4385 | /* confdefs.h. */ |
4386 | _ACEOF | |
4387 | cat confdefs.h >>conftest.$ac_ext | |
4388 | cat >>conftest.$ac_ext <<_ACEOF | |
4389 | /* end confdefs.h. */ | |
9255ee31 EZ |
4390 | #include <$ac_header> |
4391 | _ACEOF | |
25ed0b71 | 4392 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9255ee31 EZ |
4393 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4394 | ac_status=$? | |
25ed0b71 | 4395 | grep -v '^ *+' conftest.er1 >conftest.err |
9255ee31 EZ |
4396 | rm -f conftest.er1 |
4397 | cat conftest.err >&5 | |
25ed0b71 | 4398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
4399 | (exit $ac_status); } >/dev/null; then |
4400 | if test -s conftest.err; then | |
4401 | ac_cpp_err=$ac_c_preproc_warn_flag | |
430b7832 | 4402 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
9255ee31 EZ |
4403 | else |
4404 | ac_cpp_err= | |
4405 | fi | |
4406 | else | |
4407 | ac_cpp_err=yes | |
4408 | fi | |
4409 | if test -z "$ac_cpp_err"; then | |
25ed0b71 KW |
4410 | ac_header_preproc=yes |
4411 | else | |
4412 | echo "$as_me: failed program was:" >&5 | |
4413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4414 | ||
4415 | ac_header_preproc=no | |
4416 | fi | |
4417 | rm -f conftest.err conftest.$ac_ext | |
4418 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4419 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4420 | ||
4421 | # So? What about this header? | |
430b7832 MM |
4422 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4423 | yes:no: ) | |
25ed0b71 KW |
4424 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4425 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
430b7832 MM |
4426 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4427 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4428 | ac_header_preproc=yes | |
25ed0b71 | 4429 | ;; |
430b7832 | 4430 | no:yes:* ) |
25ed0b71 KW |
4431 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4432 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
430b7832 MM |
4433 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4434 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4435 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4436 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4437 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4438 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
25ed0b71 KW |
4439 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4440 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
430b7832 MM |
4441 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4442 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
25ed0b71 KW |
4443 | ( |
4444 | cat <<\_ASBOX | |
430b7832 MM |
4445 | ## ----------------------------------- ## |
4446 | ## Report this to bug-readline@gnu.org ## | |
4447 | ## ----------------------------------- ## | |
25ed0b71 KW |
4448 | _ASBOX |
4449 | ) | | |
4450 | sed "s/^/$as_me: WARNING: /" >&2 | |
4451 | ;; | |
4452 | esac | |
4453 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4454 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4455 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 4457 | else |
430b7832 | 4458 | eval "$as_ac_Header=\$ac_header_preproc" |
d60d9f65 | 4459 | fi |
25ed0b71 | 4460 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9255ee31 | 4461 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
25ed0b71 KW |
4462 | |
4463 | fi | |
9255ee31 | 4464 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
25ed0b71 | 4465 | cat >>confdefs.h <<_ACEOF |
9255ee31 | 4466 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
25ed0b71 | 4467 | _ACEOF |
9255ee31 | 4468 | |
d60d9f65 | 4469 | fi |
25ed0b71 | 4470 | |
d60d9f65 SS |
4471 | done |
4472 | ||
25ed0b71 KW |
4473 | |
4474 | ||
4475 | echo "$as_me:$LINENO: checking for type of signal functions" >&5 | |
9255ee31 EZ |
4476 | echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6 |
4477 | if test "${bash_cv_signal_vintage+set}" = set; then | |
4478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 4479 | else |
9255ee31 EZ |
4480 | |
4481 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
4482 | /* confdefs.h. */ |
4483 | _ACEOF | |
4484 | cat confdefs.h >>conftest.$ac_ext | |
4485 | cat >>conftest.$ac_ext <<_ACEOF | |
4486 | /* end confdefs.h. */ | |
d60d9f65 | 4487 | #include <signal.h> |
9255ee31 EZ |
4488 | int |
4489 | main () | |
4490 | { | |
d60d9f65 SS |
4491 | |
4492 | sigset_t ss; | |
4493 | struct sigaction sa; | |
4494 | sigemptyset(&ss); sigsuspend(&ss); | |
4495 | sigaction(SIGINT, &sa, (struct sigaction *) 0); | |
4496 | sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0); | |
9255ee31 EZ |
4497 | |
4498 | ; | |
4499 | return 0; | |
4500 | } | |
4501 | _ACEOF | |
4502 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 4503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 4504 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 4505 | ac_status=$? |
430b7832 MM |
4506 | grep -v '^ *+' conftest.er1 >conftest.err |
4507 | rm -f conftest.er1 | |
4508 | cat conftest.err >&5 | |
25ed0b71 | 4509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4510 | (exit $ac_status); } && |
430b7832 MM |
4511 | { ac_try='test -z "$ac_c_werror_flag" |
4512 | || test ! -s conftest.err' | |
4513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4514 | (eval $ac_try) 2>&5 | |
4515 | ac_status=$? | |
4516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4517 | (exit $ac_status); }; } && | |
4518 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 4519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
4520 | (eval $ac_try) 2>&5 |
4521 | ac_status=$? | |
25ed0b71 | 4522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4523 | (exit $ac_status); }; }; then |
d60d9f65 SS |
4524 | bash_cv_signal_vintage=posix |
4525 | else | |
9255ee31 | 4526 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
4527 | sed 's/^/| /' conftest.$ac_ext >&5 |
4528 | ||
9255ee31 EZ |
4529 | |
4530 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
4531 | /* confdefs.h. */ |
4532 | _ACEOF | |
4533 | cat confdefs.h >>conftest.$ac_ext | |
4534 | cat >>conftest.$ac_ext <<_ACEOF | |
4535 | /* end confdefs.h. */ | |
d60d9f65 | 4536 | #include <signal.h> |
9255ee31 EZ |
4537 | int |
4538 | main () | |
4539 | { | |
d60d9f65 SS |
4540 | |
4541 | int mask = sigmask(SIGINT); | |
4542 | sigsetmask(mask); sigblock(mask); sigpause(mask); | |
9255ee31 EZ |
4543 | |
4544 | ; | |
4545 | return 0; | |
4546 | } | |
4547 | _ACEOF | |
4548 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 4549 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 4550 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 4551 | ac_status=$? |
430b7832 MM |
4552 | grep -v '^ *+' conftest.er1 >conftest.err |
4553 | rm -f conftest.er1 | |
4554 | cat conftest.err >&5 | |
25ed0b71 | 4555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4556 | (exit $ac_status); } && |
430b7832 MM |
4557 | { ac_try='test -z "$ac_c_werror_flag" |
4558 | || test ! -s conftest.err' | |
4559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4560 | (eval $ac_try) 2>&5 | |
4561 | ac_status=$? | |
4562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4563 | (exit $ac_status); }; } && | |
4564 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 4565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
4566 | (eval $ac_try) 2>&5 |
4567 | ac_status=$? | |
25ed0b71 | 4568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4569 | (exit $ac_status); }; }; then |
d60d9f65 SS |
4570 | bash_cv_signal_vintage=4.2bsd |
4571 | else | |
9255ee31 | 4572 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
4573 | sed 's/^/| /' conftest.$ac_ext >&5 |
4574 | ||
9255ee31 EZ |
4575 | |
4576 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
4577 | /* confdefs.h. */ |
4578 | _ACEOF | |
4579 | cat confdefs.h >>conftest.$ac_ext | |
4580 | cat >>conftest.$ac_ext <<_ACEOF | |
4581 | /* end confdefs.h. */ | |
d60d9f65 SS |
4582 | |
4583 | #include <signal.h> | |
4584 | RETSIGTYPE foo() { } | |
9255ee31 EZ |
4585 | int |
4586 | main () | |
4587 | { | |
d60d9f65 SS |
4588 | |
4589 | int mask = sigmask(SIGINT); | |
4590 | sigset(SIGINT, foo); sigrelse(SIGINT); | |
4591 | sighold(SIGINT); sigpause(SIGINT); | |
9255ee31 EZ |
4592 | |
4593 | ; | |
4594 | return 0; | |
4595 | } | |
4596 | _ACEOF | |
4597 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 4598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 4599 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 4600 | ac_status=$? |
430b7832 MM |
4601 | grep -v '^ *+' conftest.er1 >conftest.err |
4602 | rm -f conftest.er1 | |
4603 | cat conftest.err >&5 | |
25ed0b71 | 4604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4605 | (exit $ac_status); } && |
430b7832 MM |
4606 | { ac_try='test -z "$ac_c_werror_flag" |
4607 | || test ! -s conftest.err' | |
4608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4609 | (eval $ac_try) 2>&5 | |
4610 | ac_status=$? | |
4611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4612 | (exit $ac_status); }; } && | |
4613 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 4614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
4615 | (eval $ac_try) 2>&5 |
4616 | ac_status=$? | |
25ed0b71 | 4617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4618 | (exit $ac_status); }; }; then |
d60d9f65 SS |
4619 | bash_cv_signal_vintage=svr3 |
4620 | else | |
9255ee31 | 4621 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
4622 | sed 's/^/| /' conftest.$ac_ext >&5 |
4623 | ||
9255ee31 EZ |
4624 | bash_cv_signal_vintage=v7 |
4625 | ||
d60d9f65 | 4626 | fi |
430b7832 MM |
4627 | rm -f conftest.err conftest.$ac_objext \ |
4628 | conftest$ac_exeext conftest.$ac_ext | |
9255ee31 | 4629 | |
d60d9f65 | 4630 | fi |
430b7832 MM |
4631 | rm -f conftest.err conftest.$ac_objext \ |
4632 | conftest$ac_exeext conftest.$ac_ext | |
d60d9f65 SS |
4633 | |
4634 | fi | |
430b7832 MM |
4635 | rm -f conftest.err conftest.$ac_objext \ |
4636 | conftest$ac_exeext conftest.$ac_ext | |
d60d9f65 SS |
4637 | |
4638 | fi | |
4639 | ||
25ed0b71 | 4640 | echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5 |
9255ee31 | 4641 | echo "${ECHO_T}$bash_cv_signal_vintage" >&6 |
d60d9f65 | 4642 | if test "$bash_cv_signal_vintage" = posix; then |
25ed0b71 | 4643 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 4644 | #define HAVE_POSIX_SIGNALS 1 |
25ed0b71 | 4645 | _ACEOF |
d60d9f65 SS |
4646 | |
4647 | elif test "$bash_cv_signal_vintage" = "4.2bsd"; then | |
25ed0b71 | 4648 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 4649 | #define HAVE_BSD_SIGNALS 1 |
25ed0b71 | 4650 | _ACEOF |
d60d9f65 SS |
4651 | |
4652 | elif test "$bash_cv_signal_vintage" = svr3; then | |
25ed0b71 | 4653 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 4654 | #define HAVE_USG_SIGHOLD 1 |
25ed0b71 | 4655 | _ACEOF |
d60d9f65 SS |
4656 | |
4657 | fi | |
4658 | ||
25ed0b71 KW |
4659 | |
4660 | ||
4661 | echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5 | |
9255ee31 EZ |
4662 | echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6 |
4663 | if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then | |
4664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 SS |
4665 | else |
4666 | if test "$cross_compiling" = yes; then | |
25ed0b71 | 4667 | { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5 |
9255ee31 | 4668 | echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;} |
d60d9f65 SS |
4669 | bash_cv_must_reinstall_sighandlers=no |
4670 | ||
4671 | else | |
9255ee31 | 4672 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
4673 | /* confdefs.h. */ |
4674 | _ACEOF | |
4675 | cat confdefs.h >>conftest.$ac_ext | |
4676 | cat >>conftest.$ac_ext <<_ACEOF | |
4677 | /* end confdefs.h. */ | |
d60d9f65 SS |
4678 | |
4679 | #include <signal.h> | |
4680 | #ifdef HAVE_UNISTD_H | |
4681 | #include <unistd.h> | |
4682 | #endif | |
4683 | ||
4684 | typedef RETSIGTYPE sigfunc(); | |
4685 | ||
4686 | int nsigint; | |
4687 | ||
4688 | #ifdef HAVE_POSIX_SIGNALS | |
4689 | sigfunc * | |
4690 | set_signal_handler(sig, handler) | |
4691 | int sig; | |
4692 | sigfunc *handler; | |
4693 | { | |
4694 | struct sigaction act, oact; | |
4695 | act.sa_handler = handler; | |
4696 | act.sa_flags = 0; | |
4697 | sigemptyset (&act.sa_mask); | |
4698 | sigemptyset (&oact.sa_mask); | |
4699 | sigaction (sig, &act, &oact); | |
4700 | return (oact.sa_handler); | |
4701 | } | |
4702 | #else | |
4703 | #define set_signal_handler(s, h) signal(s, h) | |
4704 | #endif | |
4705 | ||
4706 | RETSIGTYPE | |
4707 | sigint(s) | |
4708 | int s; | |
4709 | { | |
4710 | nsigint++; | |
4711 | } | |
4712 | ||
4713 | main() | |
4714 | { | |
4715 | nsigint = 0; | |
4716 | set_signal_handler(SIGINT, sigint); | |
4717 | kill((int)getpid(), SIGINT); | |
4718 | kill((int)getpid(), SIGINT); | |
4719 | exit(nsigint != 2); | |
4720 | } | |
4721 | ||
9255ee31 EZ |
4722 | _ACEOF |
4723 | rm -f conftest$ac_exeext | |
25ed0b71 | 4724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9255ee31 EZ |
4725 | (eval $ac_link) 2>&5 |
4726 | ac_status=$? | |
25ed0b71 | 4727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4728 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
25ed0b71 | 4729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
4730 | (eval $ac_try) 2>&5 |
4731 | ac_status=$? | |
25ed0b71 | 4732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4733 | (exit $ac_status); }; }; then |
d60d9f65 SS |
4734 | bash_cv_must_reinstall_sighandlers=no |
4735 | else | |
9255ee31 EZ |
4736 | echo "$as_me: program exited with status $ac_status" >&5 |
4737 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
4738 | sed 's/^/| /' conftest.$ac_ext >&5 |
4739 | ||
4740 | ( exit $ac_status ) | |
9255ee31 | 4741 | bash_cv_must_reinstall_sighandlers=yes |
d60d9f65 | 4742 | fi |
430b7832 | 4743 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4744 | fi |
d60d9f65 SS |
4745 | fi |
4746 | ||
25ed0b71 | 4747 | echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5 |
9255ee31 | 4748 | echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6 |
d60d9f65 | 4749 | if test $bash_cv_must_reinstall_sighandlers = yes; then |
25ed0b71 | 4750 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 4751 | #define MUST_REINSTALL_SIGHANDLERS 1 |
25ed0b71 | 4752 | _ACEOF |
d60d9f65 SS |
4753 | |
4754 | fi | |
4755 | ||
25ed0b71 KW |
4756 | |
4757 | ||
4758 | echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5 | |
9255ee31 EZ |
4759 | echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6 |
4760 | if test "${bash_cv_func_sigsetjmp+set}" = set; then | |
4761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 SS |
4762 | else |
4763 | if test "$cross_compiling" = yes; then | |
25ed0b71 | 4764 | { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5 |
9255ee31 | 4765 | echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;} |
d60d9f65 SS |
4766 | bash_cv_func_sigsetjmp=missing |
4767 | ||
4768 | else | |
9255ee31 | 4769 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
4770 | /* confdefs.h. */ |
4771 | _ACEOF | |
4772 | cat confdefs.h >>conftest.$ac_ext | |
4773 | cat >>conftest.$ac_ext <<_ACEOF | |
4774 | /* end confdefs.h. */ | |
d60d9f65 SS |
4775 | |
4776 | #ifdef HAVE_UNISTD_H | |
4777 | #include <unistd.h> | |
4778 | #endif | |
4779 | #include <sys/types.h> | |
4780 | #include <signal.h> | |
4781 | #include <setjmp.h> | |
4782 | ||
4783 | main() | |
4784 | { | |
4785 | #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS) | |
4786 | exit (1); | |
4787 | #else | |
4788 | ||
4789 | int code; | |
4790 | sigset_t set, oset; | |
4791 | sigjmp_buf xx; | |
4792 | ||
4793 | /* get the mask */ | |
4794 | sigemptyset(&set); | |
4795 | sigemptyset(&oset); | |
4796 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set); | |
4797 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset); | |
4798 | ||
4799 | /* save it */ | |
4800 | code = sigsetjmp(xx, 1); | |
4801 | if (code) | |
4802 | exit(0); /* could get sigmask and compare to oset here. */ | |
4803 | ||
4804 | /* change it */ | |
4805 | sigaddset(&set, SIGINT); | |
4806 | sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL); | |
4807 | ||
4808 | /* and siglongjmp */ | |
4809 | siglongjmp(xx, 10); | |
4810 | exit(1); | |
4811 | #endif | |
4812 | } | |
9255ee31 EZ |
4813 | _ACEOF |
4814 | rm -f conftest$ac_exeext | |
25ed0b71 | 4815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9255ee31 EZ |
4816 | (eval $ac_link) 2>&5 |
4817 | ac_status=$? | |
25ed0b71 | 4818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4819 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
25ed0b71 | 4820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
4821 | (eval $ac_try) 2>&5 |
4822 | ac_status=$? | |
25ed0b71 | 4823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4824 | (exit $ac_status); }; }; then |
d60d9f65 SS |
4825 | bash_cv_func_sigsetjmp=present |
4826 | else | |
9255ee31 EZ |
4827 | echo "$as_me: program exited with status $ac_status" >&5 |
4828 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
4829 | sed 's/^/| /' conftest.$ac_ext >&5 |
4830 | ||
4831 | ( exit $ac_status ) | |
9255ee31 | 4832 | bash_cv_func_sigsetjmp=missing |
d60d9f65 | 4833 | fi |
430b7832 | 4834 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4835 | fi |
d60d9f65 SS |
4836 | fi |
4837 | ||
25ed0b71 | 4838 | echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5 |
9255ee31 | 4839 | echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6 |
d60d9f65 | 4840 | if test $bash_cv_func_sigsetjmp = present; then |
25ed0b71 | 4841 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 4842 | #define HAVE_POSIX_SIGSETJMP 1 |
25ed0b71 | 4843 | _ACEOF |
d60d9f65 SS |
4844 | |
4845 | fi | |
4846 | ||
25ed0b71 | 4847 | echo "$as_me:$LINENO: checking for lstat" >&5 |
9255ee31 EZ |
4848 | echo $ECHO_N "checking for lstat... $ECHO_C" >&6 |
4849 | if test "${bash_cv_func_lstat+set}" = set; then | |
4850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 4851 | else |
9255ee31 | 4852 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
4853 | /* confdefs.h. */ |
4854 | _ACEOF | |
4855 | cat confdefs.h >>conftest.$ac_ext | |
4856 | cat >>conftest.$ac_ext <<_ACEOF | |
4857 | /* end confdefs.h. */ | |
d60d9f65 SS |
4858 | |
4859 | #include <sys/types.h> | |
4860 | #include <sys/stat.h> | |
4861 | ||
9255ee31 EZ |
4862 | int |
4863 | main () | |
4864 | { | |
4865 | lstat(".",(struct stat *)0); | |
4866 | ; | |
4867 | return 0; | |
4868 | } | |
4869 | _ACEOF | |
4870 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 4871 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 4872 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 4873 | ac_status=$? |
430b7832 MM |
4874 | grep -v '^ *+' conftest.er1 >conftest.err |
4875 | rm -f conftest.er1 | |
4876 | cat conftest.err >&5 | |
25ed0b71 | 4877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4878 | (exit $ac_status); } && |
430b7832 MM |
4879 | { ac_try='test -z "$ac_c_werror_flag" |
4880 | || test ! -s conftest.err' | |
4881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4882 | (eval $ac_try) 2>&5 | |
4883 | ac_status=$? | |
4884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4885 | (exit $ac_status); }; } && | |
4886 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 4887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
4888 | (eval $ac_try) 2>&5 |
4889 | ac_status=$? | |
25ed0b71 | 4890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4891 | (exit $ac_status); }; }; then |
d60d9f65 SS |
4892 | bash_cv_func_lstat=yes |
4893 | else | |
9255ee31 | 4894 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
4895 | sed 's/^/| /' conftest.$ac_ext >&5 |
4896 | ||
9255ee31 | 4897 | bash_cv_func_lstat=no |
d60d9f65 | 4898 | fi |
430b7832 MM |
4899 | rm -f conftest.err conftest.$ac_objext \ |
4900 | conftest$ac_exeext conftest.$ac_ext | |
d60d9f65 | 4901 | fi |
25ed0b71 | 4902 | echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5 |
9255ee31 | 4903 | echo "${ECHO_T}$bash_cv_func_lstat" >&6 |
d60d9f65 | 4904 | if test $bash_cv_func_lstat = yes; then |
25ed0b71 | 4905 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 4906 | #define HAVE_LSTAT 1 |
25ed0b71 | 4907 | _ACEOF |
d60d9f65 SS |
4908 | |
4909 | fi | |
4910 | ||
25ed0b71 KW |
4911 | |
4912 | echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5 | |
9255ee31 EZ |
4913 | echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6 |
4914 | if test "${bash_cv_func_strcoll_broken+set}" = set; then | |
4915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 SS |
4916 | else |
4917 | if test "$cross_compiling" = yes; then | |
25ed0b71 | 4918 | { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5 |
9255ee31 | 4919 | echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;} |
d60d9f65 SS |
4920 | bash_cv_func_strcoll_broken=no |
4921 | ||
4922 | else | |
9255ee31 | 4923 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
4924 | /* confdefs.h. */ |
4925 | _ACEOF | |
4926 | cat confdefs.h >>conftest.$ac_ext | |
4927 | cat >>conftest.$ac_ext <<_ACEOF | |
4928 | /* end confdefs.h. */ | |
d60d9f65 SS |
4929 | |
4930 | #include <stdio.h> | |
4931 | #if defined (HAVE_LOCALE_H) | |
4932 | #include <locale.h> | |
4933 | #endif | |
4934 | ||
4935 | main(c, v) | |
4936 | int c; | |
4937 | char *v[]; | |
4938 | { | |
4939 | int r1, r2; | |
4940 | char *deflocale, *defcoll; | |
4941 | ||
4942 | #ifdef HAVE_SETLOCALE | |
4943 | deflocale = setlocale(LC_ALL, ""); | |
4944 | defcoll = setlocale(LC_COLLATE, ""); | |
4945 | #endif | |
4946 | ||
4947 | #ifdef HAVE_STRCOLL | |
4948 | /* These two values are taken from tests/glob-test. */ | |
4949 | r1 = strcoll("abd", "aXd"); | |
4950 | #else | |
4951 | r1 = 0; | |
4952 | #endif | |
9255ee31 EZ |
4953 | r2 = strcmp("abd", "aXd"); |
4954 | ||
4955 | /* These two should both be greater than 0. It is permissible for | |
4956 | a system to return different values, as long as the sign is the | |
4957 | same. */ | |
4958 | ||
4959 | /* Exit with 1 (failure) if these two values are both > 0, since | |
4960 | this tests whether strcoll(3) is broken with respect to strcmp(3) | |
4961 | in the default locale. */ | |
4962 | exit (r1 > 0 && r2 > 0); | |
4963 | } | |
4964 | ||
4965 | _ACEOF | |
4966 | rm -f conftest$ac_exeext | |
25ed0b71 | 4967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9255ee31 EZ |
4968 | (eval $ac_link) 2>&5 |
4969 | ac_status=$? | |
25ed0b71 | 4970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4971 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
25ed0b71 | 4972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
4973 | (eval $ac_try) 2>&5 |
4974 | ac_status=$? | |
25ed0b71 | 4975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
4976 | (exit $ac_status); }; }; then |
4977 | bash_cv_func_strcoll_broken=yes | |
4978 | else | |
4979 | echo "$as_me: program exited with status $ac_status" >&5 | |
4980 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
4981 | sed 's/^/| /' conftest.$ac_ext >&5 |
4982 | ||
4983 | ( exit $ac_status ) | |
9255ee31 EZ |
4984 | bash_cv_func_strcoll_broken=no |
4985 | fi | |
430b7832 | 4986 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9255ee31 EZ |
4987 | fi |
4988 | fi | |
4989 | ||
25ed0b71 | 4990 | echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5 |
9255ee31 EZ |
4991 | echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6 |
4992 | if test $bash_cv_func_strcoll_broken = yes; then | |
25ed0b71 | 4993 | cat >>confdefs.h <<\_ACEOF |
9255ee31 | 4994 | #define STRCOLL_BROKEN 1 |
25ed0b71 | 4995 | _ACEOF |
9255ee31 EZ |
4996 | |
4997 | fi | |
4998 | ||
25ed0b71 KW |
4999 | |
5000 | echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5 | |
9255ee31 EZ |
5001 | echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6 |
5002 | if test "${bash_cv_getpw_declared+set}" = set; then | |
5003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5004 | else | |
5005 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
5006 | /* confdefs.h. */ |
5007 | _ACEOF | |
5008 | cat confdefs.h >>conftest.$ac_ext | |
5009 | cat >>conftest.$ac_ext <<_ACEOF | |
5010 | /* end confdefs.h. */ | |
9255ee31 EZ |
5011 | |
5012 | #include <sys/types.h> | |
5013 | #ifdef HAVE_UNISTD_H | |
5014 | # include <unistd.h> | |
5015 | #endif | |
5016 | #include <pwd.h> | |
5017 | ||
5018 | _ACEOF | |
5019 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
25ed0b71 | 5020 | $EGREP "getpwuid" >/dev/null 2>&1; then |
9255ee31 EZ |
5021 | bash_cv_getpw_declared=yes |
5022 | else | |
5023 | bash_cv_getpw_declared=no | |
5024 | fi | |
5025 | rm -f conftest* | |
5026 | ||
5027 | fi | |
5028 | ||
25ed0b71 | 5029 | echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5 |
9255ee31 EZ |
5030 | echo "${ECHO_T}$bash_cv_getpw_declared" >&6 |
5031 | if test $bash_cv_getpw_declared = yes; then | |
25ed0b71 | 5032 | cat >>confdefs.h <<\_ACEOF |
9255ee31 | 5033 | #define HAVE_GETPW_DECLS 1 |
25ed0b71 | 5034 | _ACEOF |
9255ee31 EZ |
5035 | |
5036 | fi | |
5037 | ||
9255ee31 | 5038 | |
25ed0b71 | 5039 | echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5 |
9255ee31 EZ |
5040 | echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6 |
5041 | if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then | |
5042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5043 | else | |
5044 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
5045 | /* confdefs.h. */ |
5046 | _ACEOF | |
5047 | cat confdefs.h >>conftest.$ac_ext | |
5048 | cat >>conftest.$ac_ext <<_ACEOF | |
5049 | /* end confdefs.h. */ | |
9255ee31 EZ |
5050 | #include <sys/types.h> |
5051 | #include <termios.h> | |
5052 | #ifdef TIOCGWINSZ | |
5053 | yes | |
5054 | #endif | |
d60d9f65 | 5055 | |
9255ee31 EZ |
5056 | _ACEOF |
5057 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
25ed0b71 | 5058 | $EGREP "yes" >/dev/null 2>&1; then |
9255ee31 EZ |
5059 | ac_cv_sys_tiocgwinsz_in_termios_h=yes |
5060 | else | |
5061 | ac_cv_sys_tiocgwinsz_in_termios_h=no | |
5062 | fi | |
5063 | rm -f conftest* | |
d60d9f65 | 5064 | |
9255ee31 | 5065 | fi |
25ed0b71 | 5066 | echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 |
9255ee31 | 5067 | echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6 |
d60d9f65 | 5068 | |
9255ee31 | 5069 | if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then |
25ed0b71 | 5070 | echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 |
9255ee31 EZ |
5071 | echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6 |
5072 | if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then | |
5073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5074 | else | |
5075 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
5076 | /* confdefs.h. */ |
5077 | _ACEOF | |
5078 | cat confdefs.h >>conftest.$ac_ext | |
5079 | cat >>conftest.$ac_ext <<_ACEOF | |
5080 | /* end confdefs.h. */ | |
9255ee31 EZ |
5081 | #include <sys/types.h> |
5082 | #include <sys/ioctl.h> | |
5083 | #ifdef TIOCGWINSZ | |
5084 | yes | |
5085 | #endif | |
5086 | ||
5087 | _ACEOF | |
5088 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
25ed0b71 | 5089 | $EGREP "yes" >/dev/null 2>&1; then |
9255ee31 EZ |
5090 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes |
5091 | else | |
5092 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no | |
d60d9f65 | 5093 | fi |
9255ee31 | 5094 | rm -f conftest* |
d60d9f65 SS |
5095 | |
5096 | fi | |
25ed0b71 | 5097 | echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 |
9255ee31 | 5098 | echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6 |
d60d9f65 | 5099 | |
9255ee31 EZ |
5100 | if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then |
5101 | ||
25ed0b71 | 5102 | cat >>confdefs.h <<\_ACEOF |
9255ee31 | 5103 | #define GWINSZ_IN_SYS_IOCTL 1 |
25ed0b71 | 5104 | _ACEOF |
d60d9f65 | 5105 | |
9255ee31 | 5106 | fi |
d60d9f65 SS |
5107 | fi |
5108 | ||
25ed0b71 KW |
5109 | |
5110 | echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5 | |
9255ee31 EZ |
5111 | echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6 |
5112 | if test "${bash_cv_void_sighandler+set}" = set; then | |
5113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 5114 | else |
9255ee31 | 5115 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
5116 | /* confdefs.h. */ |
5117 | _ACEOF | |
5118 | cat confdefs.h >>conftest.$ac_ext | |
5119 | cat >>conftest.$ac_ext <<_ACEOF | |
5120 | /* end confdefs.h. */ | |
d60d9f65 SS |
5121 | #include <sys/types.h> |
5122 | #include <signal.h> | |
5123 | #ifdef signal | |
5124 | #undef signal | |
5125 | #endif | |
5126 | #ifdef __cplusplus | |
5127 | extern "C" | |
5128 | #endif | |
5129 | void (*signal ()) (); | |
9255ee31 EZ |
5130 | int |
5131 | main () | |
5132 | { | |
d60d9f65 | 5133 | int i; |
9255ee31 EZ |
5134 | ; |
5135 | return 0; | |
5136 | } | |
5137 | _ACEOF | |
5138 | rm -f conftest.$ac_objext | |
25ed0b71 | 5139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 5140 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 5141 | ac_status=$? |
430b7832 MM |
5142 | grep -v '^ *+' conftest.er1 >conftest.err |
5143 | rm -f conftest.er1 | |
5144 | cat conftest.err >&5 | |
25ed0b71 | 5145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5146 | (exit $ac_status); } && |
430b7832 MM |
5147 | { ac_try='test -z "$ac_c_werror_flag" |
5148 | || test ! -s conftest.err' | |
5149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5150 | (eval $ac_try) 2>&5 | |
5151 | ac_status=$? | |
5152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5153 | (exit $ac_status); }; } && | |
5154 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 5155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5156 | (eval $ac_try) 2>&5 |
5157 | ac_status=$? | |
25ed0b71 | 5158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5159 | (exit $ac_status); }; }; then |
d60d9f65 SS |
5160 | bash_cv_void_sighandler=yes |
5161 | else | |
9255ee31 | 5162 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
5163 | sed 's/^/| /' conftest.$ac_ext >&5 |
5164 | ||
9255ee31 | 5165 | bash_cv_void_sighandler=no |
d60d9f65 | 5166 | fi |
430b7832 | 5167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 5168 | fi |
25ed0b71 | 5169 | echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5 |
9255ee31 | 5170 | echo "${ECHO_T}$bash_cv_void_sighandler" >&6 |
d60d9f65 | 5171 | if test $bash_cv_void_sighandler = yes; then |
25ed0b71 | 5172 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 5173 | #define VOID_SIGHANDLER 1 |
25ed0b71 | 5174 | _ACEOF |
d60d9f65 SS |
5175 | |
5176 | fi | |
5177 | ||
25ed0b71 | 5178 | echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5 |
9255ee31 EZ |
5179 | echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6 |
5180 | if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then | |
5181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 5182 | else |
9255ee31 | 5183 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
5184 | /* confdefs.h. */ |
5185 | _ACEOF | |
5186 | cat confdefs.h >>conftest.$ac_ext | |
5187 | cat >>conftest.$ac_ext <<_ACEOF | |
5188 | /* end confdefs.h. */ | |
d60d9f65 SS |
5189 | #include <sys/types.h> |
5190 | #include <sys/ioctl.h> | |
9255ee31 EZ |
5191 | int |
5192 | main () | |
5193 | { | |
d60d9f65 | 5194 | int x = TIOCSTAT; |
9255ee31 EZ |
5195 | ; |
5196 | return 0; | |
5197 | } | |
5198 | _ACEOF | |
5199 | rm -f conftest.$ac_objext | |
25ed0b71 | 5200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 5201 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 5202 | ac_status=$? |
430b7832 MM |
5203 | grep -v '^ *+' conftest.er1 >conftest.err |
5204 | rm -f conftest.er1 | |
5205 | cat conftest.err >&5 | |
25ed0b71 | 5206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5207 | (exit $ac_status); } && |
430b7832 MM |
5208 | { ac_try='test -z "$ac_c_werror_flag" |
5209 | || test ! -s conftest.err' | |
5210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5211 | (eval $ac_try) 2>&5 | |
5212 | ac_status=$? | |
5213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5214 | (exit $ac_status); }; } && | |
5215 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 5216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5217 | (eval $ac_try) 2>&5 |
5218 | ac_status=$? | |
25ed0b71 | 5219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5220 | (exit $ac_status); }; }; then |
d60d9f65 SS |
5221 | bash_cv_tiocstat_in_ioctl=yes |
5222 | else | |
9255ee31 | 5223 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
5224 | sed 's/^/| /' conftest.$ac_ext >&5 |
5225 | ||
9255ee31 | 5226 | bash_cv_tiocstat_in_ioctl=no |
d60d9f65 | 5227 | fi |
430b7832 | 5228 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 SS |
5229 | fi |
5230 | ||
25ed0b71 | 5231 | echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5 |
9255ee31 EZ |
5232 | echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6 |
5233 | if test $bash_cv_tiocstat_in_ioctl = yes; then | |
25ed0b71 | 5234 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 5235 | #define TIOCSTAT_IN_SYS_IOCTL 1 |
25ed0b71 | 5236 | _ACEOF |
d60d9f65 SS |
5237 | |
5238 | fi | |
5239 | ||
25ed0b71 | 5240 | echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5 |
9255ee31 EZ |
5241 | echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6 |
5242 | if test "${bash_cv_fionread_in_ioctl+set}" = set; then | |
5243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 5244 | else |
9255ee31 | 5245 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
5246 | /* confdefs.h. */ |
5247 | _ACEOF | |
5248 | cat confdefs.h >>conftest.$ac_ext | |
5249 | cat >>conftest.$ac_ext <<_ACEOF | |
5250 | /* end confdefs.h. */ | |
d60d9f65 SS |
5251 | #include <sys/types.h> |
5252 | #include <sys/ioctl.h> | |
9255ee31 EZ |
5253 | int |
5254 | main () | |
5255 | { | |
d60d9f65 | 5256 | int x = FIONREAD; |
9255ee31 EZ |
5257 | ; |
5258 | return 0; | |
5259 | } | |
5260 | _ACEOF | |
5261 | rm -f conftest.$ac_objext | |
25ed0b71 | 5262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 5263 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 5264 | ac_status=$? |
430b7832 MM |
5265 | grep -v '^ *+' conftest.er1 >conftest.err |
5266 | rm -f conftest.er1 | |
5267 | cat conftest.err >&5 | |
25ed0b71 | 5268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5269 | (exit $ac_status); } && |
430b7832 MM |
5270 | { ac_try='test -z "$ac_c_werror_flag" |
5271 | || test ! -s conftest.err' | |
5272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5273 | (eval $ac_try) 2>&5 | |
5274 | ac_status=$? | |
5275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5276 | (exit $ac_status); }; } && | |
5277 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 5278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5279 | (eval $ac_try) 2>&5 |
5280 | ac_status=$? | |
25ed0b71 | 5281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5282 | (exit $ac_status); }; }; then |
d60d9f65 SS |
5283 | bash_cv_fionread_in_ioctl=yes |
5284 | else | |
9255ee31 | 5285 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
5286 | sed 's/^/| /' conftest.$ac_ext >&5 |
5287 | ||
9255ee31 | 5288 | bash_cv_fionread_in_ioctl=no |
d60d9f65 | 5289 | fi |
430b7832 | 5290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 SS |
5291 | fi |
5292 | ||
25ed0b71 | 5293 | echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5 |
9255ee31 EZ |
5294 | echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6 |
5295 | if test $bash_cv_fionread_in_ioctl = yes; then | |
25ed0b71 | 5296 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 5297 | #define FIONREAD_IN_SYS_IOCTL 1 |
25ed0b71 | 5298 | _ACEOF |
d60d9f65 SS |
5299 | |
5300 | fi | |
5301 | ||
25ed0b71 | 5302 | echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5 |
9255ee31 EZ |
5303 | echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6 |
5304 | if test "${bash_cv_speed_t_in_sys_types+set}" = set; then | |
5305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 5306 | else |
9255ee31 | 5307 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
5308 | /* confdefs.h. */ |
5309 | _ACEOF | |
5310 | cat confdefs.h >>conftest.$ac_ext | |
5311 | cat >>conftest.$ac_ext <<_ACEOF | |
5312 | /* end confdefs.h. */ | |
d60d9f65 | 5313 | #include <sys/types.h> |
9255ee31 EZ |
5314 | int |
5315 | main () | |
5316 | { | |
d60d9f65 | 5317 | speed_t x; |
9255ee31 EZ |
5318 | ; |
5319 | return 0; | |
5320 | } | |
5321 | _ACEOF | |
5322 | rm -f conftest.$ac_objext | |
25ed0b71 | 5323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 5324 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 5325 | ac_status=$? |
430b7832 MM |
5326 | grep -v '^ *+' conftest.er1 >conftest.err |
5327 | rm -f conftest.er1 | |
5328 | cat conftest.err >&5 | |
25ed0b71 | 5329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5330 | (exit $ac_status); } && |
430b7832 MM |
5331 | { ac_try='test -z "$ac_c_werror_flag" |
5332 | || test ! -s conftest.err' | |
5333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5334 | (eval $ac_try) 2>&5 | |
5335 | ac_status=$? | |
5336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5337 | (exit $ac_status); }; } && | |
5338 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 5339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5340 | (eval $ac_try) 2>&5 |
5341 | ac_status=$? | |
25ed0b71 | 5342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5343 | (exit $ac_status); }; }; then |
d60d9f65 SS |
5344 | bash_cv_speed_t_in_sys_types=yes |
5345 | else | |
9255ee31 | 5346 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
5347 | sed 's/^/| /' conftest.$ac_ext >&5 |
5348 | ||
9255ee31 | 5349 | bash_cv_speed_t_in_sys_types=no |
d60d9f65 | 5350 | fi |
430b7832 | 5351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 SS |
5352 | fi |
5353 | ||
25ed0b71 | 5354 | echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5 |
9255ee31 EZ |
5355 | echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6 |
5356 | if test $bash_cv_speed_t_in_sys_types = yes; then | |
25ed0b71 | 5357 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 5358 | #define SPEED_T_IN_SYS_TYPES 1 |
25ed0b71 | 5359 | _ACEOF |
d60d9f65 SS |
5360 | |
5361 | fi | |
5362 | ||
25ed0b71 | 5363 | echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5 |
9255ee31 EZ |
5364 | echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6 |
5365 | if test "${bash_cv_struct_winsize_header+set}" = set; then | |
5366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 5367 | else |
9255ee31 | 5368 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
5369 | /* confdefs.h. */ |
5370 | _ACEOF | |
5371 | cat confdefs.h >>conftest.$ac_ext | |
5372 | cat >>conftest.$ac_ext <<_ACEOF | |
5373 | /* end confdefs.h. */ | |
d60d9f65 SS |
5374 | #include <sys/types.h> |
5375 | #include <sys/ioctl.h> | |
9255ee31 EZ |
5376 | int |
5377 | main () | |
5378 | { | |
d60d9f65 | 5379 | struct winsize x; |
9255ee31 EZ |
5380 | ; |
5381 | return 0; | |
5382 | } | |
5383 | _ACEOF | |
5384 | rm -f conftest.$ac_objext | |
25ed0b71 | 5385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 5386 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 5387 | ac_status=$? |
430b7832 MM |
5388 | grep -v '^ *+' conftest.er1 >conftest.err |
5389 | rm -f conftest.er1 | |
5390 | cat conftest.err >&5 | |
25ed0b71 | 5391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5392 | (exit $ac_status); } && |
430b7832 MM |
5393 | { ac_try='test -z "$ac_c_werror_flag" |
5394 | || test ! -s conftest.err' | |
5395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5396 | (eval $ac_try) 2>&5 | |
5397 | ac_status=$? | |
5398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5399 | (exit $ac_status); }; } && | |
5400 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 5401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5402 | (eval $ac_try) 2>&5 |
5403 | ac_status=$? | |
25ed0b71 | 5404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5405 | (exit $ac_status); }; }; then |
d60d9f65 SS |
5406 | bash_cv_struct_winsize_header=ioctl_h |
5407 | else | |
9255ee31 | 5408 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
5409 | sed 's/^/| /' conftest.$ac_ext >&5 |
5410 | ||
9255ee31 | 5411 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
5412 | /* confdefs.h. */ |
5413 | _ACEOF | |
5414 | cat confdefs.h >>conftest.$ac_ext | |
5415 | cat >>conftest.$ac_ext <<_ACEOF | |
5416 | /* end confdefs.h. */ | |
d60d9f65 SS |
5417 | #include <sys/types.h> |
5418 | #include <termios.h> | |
9255ee31 EZ |
5419 | int |
5420 | main () | |
5421 | { | |
d60d9f65 | 5422 | struct winsize x; |
9255ee31 EZ |
5423 | ; |
5424 | return 0; | |
5425 | } | |
5426 | _ACEOF | |
5427 | rm -f conftest.$ac_objext | |
25ed0b71 | 5428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 5429 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 5430 | ac_status=$? |
430b7832 MM |
5431 | grep -v '^ *+' conftest.er1 >conftest.err |
5432 | rm -f conftest.er1 | |
5433 | cat conftest.err >&5 | |
25ed0b71 | 5434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5435 | (exit $ac_status); } && |
430b7832 MM |
5436 | { ac_try='test -z "$ac_c_werror_flag" |
5437 | || test ! -s conftest.err' | |
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 | |
5442 | (exit $ac_status); }; } && | |
5443 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 5444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5445 | (eval $ac_try) 2>&5 |
5446 | ac_status=$? | |
25ed0b71 | 5447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5448 | (exit $ac_status); }; }; then |
d60d9f65 SS |
5449 | bash_cv_struct_winsize_header=termios_h |
5450 | else | |
9255ee31 | 5451 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
5452 | sed 's/^/| /' conftest.$ac_ext >&5 |
5453 | ||
9255ee31 | 5454 | bash_cv_struct_winsize_header=other |
d60d9f65 | 5455 | fi |
430b7832 | 5456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 SS |
5457 | |
5458 | fi | |
430b7832 | 5459 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 SS |
5460 | fi |
5461 | ||
5462 | if test $bash_cv_struct_winsize_header = ioctl_h; then | |
25ed0b71 | 5463 | echo "$as_me:$LINENO: result: sys/ioctl.h" >&5 |
9255ee31 | 5464 | echo "${ECHO_T}sys/ioctl.h" >&6 |
25ed0b71 | 5465 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 5466 | #define STRUCT_WINSIZE_IN_SYS_IOCTL 1 |
25ed0b71 | 5467 | _ACEOF |
d60d9f65 SS |
5468 | |
5469 | elif test $bash_cv_struct_winsize_header = termios_h; then | |
25ed0b71 | 5470 | echo "$as_me:$LINENO: result: termios.h" >&5 |
9255ee31 | 5471 | echo "${ECHO_T}termios.h" >&6 |
25ed0b71 | 5472 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 5473 | #define STRUCT_WINSIZE_IN_TERMIOS 1 |
25ed0b71 | 5474 | _ACEOF |
d60d9f65 SS |
5475 | |
5476 | else | |
25ed0b71 | 5477 | echo "$as_me:$LINENO: result: not found" >&5 |
9255ee31 | 5478 | echo "${ECHO_T}not found" >&6 |
d60d9f65 SS |
5479 | fi |
5480 | ||
25ed0b71 KW |
5481 | |
5482 | echo "$as_me:$LINENO: checking if struct dirent has a d_ino member" >&5 | |
9255ee31 EZ |
5483 | echo $ECHO_N "checking if struct dirent has a d_ino member... $ECHO_C" >&6 |
5484 | if test "${bash_cv_dirent_has_dino+set}" = set; then | |
5485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 5486 | else |
9255ee31 | 5487 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
5488 | /* confdefs.h. */ |
5489 | _ACEOF | |
5490 | cat confdefs.h >>conftest.$ac_ext | |
5491 | cat >>conftest.$ac_ext <<_ACEOF | |
5492 | /* end confdefs.h. */ | |
d60d9f65 SS |
5493 | |
5494 | #include <stdio.h> | |
5495 | #include <sys/types.h> | |
5496 | #ifdef HAVE_UNISTD_H | |
5497 | # include <unistd.h> | |
5498 | #endif /* HAVE_UNISTD_H */ | |
5499 | #if defined(HAVE_DIRENT_H) | |
5500 | # include <dirent.h> | |
5501 | #else | |
5502 | # define dirent direct | |
5503 | # ifdef HAVE_SYS_NDIR_H | |
5504 | # include <sys/ndir.h> | |
5505 | # endif /* SYSNDIR */ | |
5506 | # ifdef HAVE_SYS_DIR_H | |
5507 | # include <sys/dir.h> | |
5508 | # endif /* SYSDIR */ | |
5509 | # ifdef HAVE_NDIR_H | |
5510 | # include <ndir.h> | |
5511 | # endif | |
5512 | #endif /* HAVE_DIRENT_H */ | |
5513 | ||
9255ee31 EZ |
5514 | int |
5515 | main () | |
5516 | { | |
d60d9f65 SS |
5517 | |
5518 | struct dirent d; int z; z = d.d_ino; | |
5519 | ||
9255ee31 EZ |
5520 | ; |
5521 | return 0; | |
5522 | } | |
5523 | _ACEOF | |
5524 | rm -f conftest.$ac_objext | |
25ed0b71 | 5525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 5526 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 5527 | ac_status=$? |
430b7832 MM |
5528 | grep -v '^ *+' conftest.er1 >conftest.err |
5529 | rm -f conftest.er1 | |
5530 | cat conftest.err >&5 | |
25ed0b71 | 5531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5532 | (exit $ac_status); } && |
430b7832 MM |
5533 | { ac_try='test -z "$ac_c_werror_flag" |
5534 | || test ! -s conftest.err' | |
5535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5536 | (eval $ac_try) 2>&5 | |
5537 | ac_status=$? | |
5538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5539 | (exit $ac_status); }; } && | |
5540 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 5541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5542 | (eval $ac_try) 2>&5 |
5543 | ac_status=$? | |
25ed0b71 | 5544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5545 | (exit $ac_status); }; }; then |
d60d9f65 SS |
5546 | bash_cv_dirent_has_dino=yes |
5547 | else | |
9255ee31 | 5548 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
5549 | sed 's/^/| /' conftest.$ac_ext >&5 |
5550 | ||
9255ee31 | 5551 | bash_cv_dirent_has_dino=no |
d60d9f65 | 5552 | fi |
430b7832 | 5553 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 SS |
5554 | fi |
5555 | ||
25ed0b71 | 5556 | echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5 |
9255ee31 | 5557 | echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6 |
d60d9f65 | 5558 | if test $bash_cv_dirent_has_dino = yes; then |
25ed0b71 | 5559 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 5560 | #define STRUCT_DIRENT_HAS_D_INO 1 |
25ed0b71 | 5561 | _ACEOF |
d60d9f65 SS |
5562 | |
5563 | fi | |
5564 | ||
25ed0b71 KW |
5565 | |
5566 | echo "$as_me:$LINENO: checking if struct dirent has a d_fileno member" >&5 | |
9255ee31 EZ |
5567 | echo $ECHO_N "checking if struct dirent has a d_fileno member... $ECHO_C" >&6 |
5568 | if test "${bash_cv_dirent_has_d_fileno+set}" = set; then | |
5569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 5570 | else |
9255ee31 | 5571 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
5572 | /* confdefs.h. */ |
5573 | _ACEOF | |
5574 | cat confdefs.h >>conftest.$ac_ext | |
5575 | cat >>conftest.$ac_ext <<_ACEOF | |
5576 | /* end confdefs.h. */ | |
d60d9f65 SS |
5577 | |
5578 | #include <stdio.h> | |
5579 | #include <sys/types.h> | |
5580 | #ifdef HAVE_UNISTD_H | |
5581 | # include <unistd.h> | |
5582 | #endif /* HAVE_UNISTD_H */ | |
5583 | #if defined(HAVE_DIRENT_H) | |
5584 | # include <dirent.h> | |
5585 | #else | |
5586 | # define dirent direct | |
5587 | # ifdef HAVE_SYS_NDIR_H | |
5588 | # include <sys/ndir.h> | |
5589 | # endif /* SYSNDIR */ | |
5590 | # ifdef HAVE_SYS_DIR_H | |
5591 | # include <sys/dir.h> | |
5592 | # endif /* SYSDIR */ | |
5593 | # ifdef HAVE_NDIR_H | |
5594 | # include <ndir.h> | |
5595 | # endif | |
5596 | #endif /* HAVE_DIRENT_H */ | |
5597 | ||
9255ee31 EZ |
5598 | int |
5599 | main () | |
5600 | { | |
d60d9f65 SS |
5601 | |
5602 | struct dirent d; int z; z = d.d_fileno; | |
5603 | ||
9255ee31 EZ |
5604 | ; |
5605 | return 0; | |
5606 | } | |
5607 | _ACEOF | |
5608 | rm -f conftest.$ac_objext | |
25ed0b71 | 5609 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 5610 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 5611 | ac_status=$? |
430b7832 MM |
5612 | grep -v '^ *+' conftest.er1 >conftest.err |
5613 | rm -f conftest.er1 | |
5614 | cat conftest.err >&5 | |
25ed0b71 | 5615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5616 | (exit $ac_status); } && |
430b7832 MM |
5617 | { ac_try='test -z "$ac_c_werror_flag" |
5618 | || test ! -s conftest.err' | |
5619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5620 | (eval $ac_try) 2>&5 | |
5621 | ac_status=$? | |
5622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5623 | (exit $ac_status); }; } && | |
5624 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 5625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5626 | (eval $ac_try) 2>&5 |
5627 | ac_status=$? | |
25ed0b71 | 5628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5629 | (exit $ac_status); }; }; then |
d60d9f65 SS |
5630 | bash_cv_dirent_has_d_fileno=yes |
5631 | else | |
9255ee31 | 5632 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
5633 | sed 's/^/| /' conftest.$ac_ext >&5 |
5634 | ||
9255ee31 | 5635 | bash_cv_dirent_has_d_fileno=no |
d60d9f65 | 5636 | fi |
430b7832 | 5637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 SS |
5638 | fi |
5639 | ||
25ed0b71 | 5640 | echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5 |
9255ee31 | 5641 | echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6 |
d60d9f65 | 5642 | if test $bash_cv_dirent_has_d_fileno = yes; then |
25ed0b71 | 5643 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 5644 | #define STRUCT_DIRENT_HAS_D_FILENO 1 |
25ed0b71 | 5645 | _ACEOF |
d60d9f65 SS |
5646 | |
5647 | fi | |
5648 | ||
25ed0b71 | 5649 | |
d60d9f65 SS |
5650 | case "$host_os" in |
5651 | aix*) prefer_curses=yes ;; | |
5652 | esac | |
5653 | ||
5654 | if test "X$bash_cv_termcap_lib" = "X"; then | |
5655 | _bash_needmsg=yes | |
5656 | else | |
25ed0b71 | 5657 | echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
9255ee31 | 5658 | echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6 |
d60d9f65 SS |
5659 | _bash_needmsg= |
5660 | fi | |
9255ee31 EZ |
5661 | if test "${bash_cv_termcap_lib+set}" = set; then |
5662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 5663 | else |
25ed0b71 | 5664 | echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 |
9255ee31 EZ |
5665 | echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6 |
5666 | if test "${ac_cv_lib_termcap_tgetent+set}" = set; then | |
5667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 5668 | else |
9255ee31 | 5669 | ac_check_lib_save_LIBS=$LIBS |
d60d9f65 | 5670 | LIBS="-ltermcap $LIBS" |
9255ee31 | 5671 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
5672 | /* confdefs.h. */ |
5673 | _ACEOF | |
5674 | cat confdefs.h >>conftest.$ac_ext | |
5675 | cat >>conftest.$ac_ext <<_ACEOF | |
5676 | /* end confdefs.h. */ | |
9255ee31 EZ |
5677 | |
5678 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5679 | #ifdef __cplusplus | |
5680 | extern "C" | |
5681 | #endif | |
5682 | /* We use char because int might match the return type of a gcc2 | |
5683 | builtin and then its argument prototype would still apply. */ | |
5684 | char tgetent (); | |
5685 | int | |
5686 | main () | |
5687 | { | |
5688 | tgetent (); | |
5689 | ; | |
5690 | return 0; | |
5691 | } | |
5692 | _ACEOF | |
5693 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 5694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 5695 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 5696 | ac_status=$? |
430b7832 MM |
5697 | grep -v '^ *+' conftest.er1 >conftest.err |
5698 | rm -f conftest.er1 | |
5699 | cat conftest.err >&5 | |
25ed0b71 | 5700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5701 | (exit $ac_status); } && |
430b7832 MM |
5702 | { ac_try='test -z "$ac_c_werror_flag" |
5703 | || test ! -s conftest.err' | |
5704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5705 | (eval $ac_try) 2>&5 | |
5706 | ac_status=$? | |
5707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5708 | (exit $ac_status); }; } && | |
5709 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 5710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5711 | (eval $ac_try) 2>&5 |
5712 | ac_status=$? | |
25ed0b71 | 5713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
5714 | (exit $ac_status); }; }; then |
5715 | ac_cv_lib_termcap_tgetent=yes | |
5716 | else | |
5717 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
5718 | sed 's/^/| /' conftest.$ac_ext >&5 |
5719 | ||
9255ee31 EZ |
5720 | ac_cv_lib_termcap_tgetent=no |
5721 | fi | |
430b7832 MM |
5722 | rm -f conftest.err conftest.$ac_objext \ |
5723 | conftest$ac_exeext conftest.$ac_ext | |
9255ee31 EZ |
5724 | LIBS=$ac_check_lib_save_LIBS |
5725 | fi | |
25ed0b71 | 5726 | echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 |
9255ee31 EZ |
5727 | echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6 |
5728 | if test $ac_cv_lib_termcap_tgetent = yes; then | |
5729 | bash_cv_termcap_lib=libtermcap | |
5730 | else | |
25ed0b71 | 5731 | echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5 |
9255ee31 EZ |
5732 | echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6 |
5733 | if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then | |
5734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5735 | else | |
5736 | ac_check_lib_save_LIBS=$LIBS | |
5737 | LIBS="-ltinfo $LIBS" | |
5738 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
5739 | /* confdefs.h. */ |
5740 | _ACEOF | |
5741 | cat confdefs.h >>conftest.$ac_ext | |
5742 | cat >>conftest.$ac_ext <<_ACEOF | |
5743 | /* end confdefs.h. */ | |
9255ee31 EZ |
5744 | |
5745 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5746 | #ifdef __cplusplus | |
5747 | extern "C" | |
5748 | #endif | |
5749 | /* We use char because int might match the return type of a gcc2 | |
5750 | builtin and then its argument prototype would still apply. */ | |
5751 | char tgetent (); | |
5752 | int | |
5753 | main () | |
5754 | { | |
5755 | tgetent (); | |
5756 | ; | |
5757 | return 0; | |
5758 | } | |
5759 | _ACEOF | |
5760 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 5761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 5762 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 5763 | ac_status=$? |
430b7832 MM |
5764 | grep -v '^ *+' conftest.er1 >conftest.err |
5765 | rm -f conftest.er1 | |
5766 | cat conftest.err >&5 | |
25ed0b71 | 5767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5768 | (exit $ac_status); } && |
430b7832 MM |
5769 | { ac_try='test -z "$ac_c_werror_flag" |
5770 | || test ! -s conftest.err' | |
5771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5772 | (eval $ac_try) 2>&5 | |
5773 | ac_status=$? | |
5774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5775 | (exit $ac_status); }; } && | |
5776 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 5777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5778 | (eval $ac_try) 2>&5 |
5779 | ac_status=$? | |
25ed0b71 | 5780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
5781 | (exit $ac_status); }; }; then |
5782 | ac_cv_lib_tinfo_tgetent=yes | |
5783 | else | |
5784 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
5785 | sed 's/^/| /' conftest.$ac_ext >&5 |
5786 | ||
9255ee31 EZ |
5787 | ac_cv_lib_tinfo_tgetent=no |
5788 | fi | |
430b7832 MM |
5789 | rm -f conftest.err conftest.$ac_objext \ |
5790 | conftest$ac_exeext conftest.$ac_ext | |
9255ee31 EZ |
5791 | LIBS=$ac_check_lib_save_LIBS |
5792 | fi | |
25ed0b71 | 5793 | echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5 |
9255ee31 EZ |
5794 | echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6 |
5795 | if test $ac_cv_lib_tinfo_tgetent = yes; then | |
5796 | bash_cv_termcap_lib=libtinfo | |
5797 | else | |
25ed0b71 | 5798 | echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5 |
9255ee31 EZ |
5799 | echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6 |
5800 | if test "${ac_cv_lib_curses_tgetent+set}" = set; then | |
5801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5802 | else | |
5803 | ac_check_lib_save_LIBS=$LIBS | |
5804 | LIBS="-lcurses $LIBS" | |
5805 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
5806 | /* confdefs.h. */ |
5807 | _ACEOF | |
5808 | cat confdefs.h >>conftest.$ac_ext | |
5809 | cat >>conftest.$ac_ext <<_ACEOF | |
5810 | /* end confdefs.h. */ | |
9255ee31 EZ |
5811 | |
5812 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5813 | #ifdef __cplusplus | |
5814 | extern "C" | |
5815 | #endif | |
5816 | /* We use char because int might match the return type of a gcc2 | |
5817 | builtin and then its argument prototype would still apply. */ | |
5818 | char tgetent (); | |
5819 | int | |
5820 | main () | |
5821 | { | |
5822 | tgetent (); | |
5823 | ; | |
5824 | return 0; | |
5825 | } | |
5826 | _ACEOF | |
5827 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 5828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 5829 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 5830 | ac_status=$? |
430b7832 MM |
5831 | grep -v '^ *+' conftest.er1 >conftest.err |
5832 | rm -f conftest.er1 | |
5833 | cat conftest.err >&5 | |
25ed0b71 | 5834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5835 | (exit $ac_status); } && |
430b7832 MM |
5836 | { ac_try='test -z "$ac_c_werror_flag" |
5837 | || test ! -s conftest.err' | |
5838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5839 | (eval $ac_try) 2>&5 | |
5840 | ac_status=$? | |
5841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5842 | (exit $ac_status); }; } && | |
5843 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 5844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5845 | (eval $ac_try) 2>&5 |
5846 | ac_status=$? | |
25ed0b71 | 5847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
5848 | (exit $ac_status); }; }; then |
5849 | ac_cv_lib_curses_tgetent=yes | |
5850 | else | |
5851 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
5852 | sed 's/^/| /' conftest.$ac_ext >&5 |
5853 | ||
9255ee31 EZ |
5854 | ac_cv_lib_curses_tgetent=no |
5855 | fi | |
430b7832 MM |
5856 | rm -f conftest.err conftest.$ac_objext \ |
5857 | conftest$ac_exeext conftest.$ac_ext | |
9255ee31 EZ |
5858 | LIBS=$ac_check_lib_save_LIBS |
5859 | fi | |
25ed0b71 | 5860 | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5 |
9255ee31 EZ |
5861 | echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6 |
5862 | if test $ac_cv_lib_curses_tgetent = yes; then | |
5863 | bash_cv_termcap_lib=libcurses | |
5864 | else | |
25ed0b71 | 5865 | echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 |
9255ee31 EZ |
5866 | echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6 |
5867 | if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then | |
5868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5869 | else | |
5870 | ac_check_lib_save_LIBS=$LIBS | |
5871 | LIBS="-lncurses $LIBS" | |
5872 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
5873 | /* confdefs.h. */ |
5874 | _ACEOF | |
5875 | cat confdefs.h >>conftest.$ac_ext | |
5876 | cat >>conftest.$ac_ext <<_ACEOF | |
5877 | /* end confdefs.h. */ | |
9255ee31 EZ |
5878 | |
5879 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5880 | #ifdef __cplusplus | |
5881 | extern "C" | |
5882 | #endif | |
5883 | /* We use char because int might match the return type of a gcc2 | |
5884 | builtin and then its argument prototype would still apply. */ | |
5885 | char tgetent (); | |
5886 | int | |
5887 | main () | |
5888 | { | |
5889 | tgetent (); | |
5890 | ; | |
5891 | return 0; | |
5892 | } | |
5893 | _ACEOF | |
5894 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 5895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 5896 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 5897 | ac_status=$? |
430b7832 MM |
5898 | grep -v '^ *+' conftest.er1 >conftest.err |
5899 | rm -f conftest.er1 | |
5900 | cat conftest.err >&5 | |
25ed0b71 | 5901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5902 | (exit $ac_status); } && |
430b7832 MM |
5903 | { ac_try='test -z "$ac_c_werror_flag" |
5904 | || test ! -s conftest.err' | |
5905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5906 | (eval $ac_try) 2>&5 | |
5907 | ac_status=$? | |
5908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5909 | (exit $ac_status); }; } && | |
5910 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 5911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5912 | (eval $ac_try) 2>&5 |
5913 | ac_status=$? | |
25ed0b71 | 5914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
5915 | (exit $ac_status); }; }; then |
5916 | ac_cv_lib_ncurses_tgetent=yes | |
5917 | else | |
5918 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
5919 | sed 's/^/| /' conftest.$ac_ext >&5 |
5920 | ||
9255ee31 EZ |
5921 | ac_cv_lib_ncurses_tgetent=no |
5922 | fi | |
430b7832 MM |
5923 | rm -f conftest.err conftest.$ac_objext \ |
5924 | conftest$ac_exeext conftest.$ac_ext | |
9255ee31 EZ |
5925 | LIBS=$ac_check_lib_save_LIBS |
5926 | fi | |
25ed0b71 | 5927 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 |
9255ee31 EZ |
5928 | echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6 |
5929 | if test $ac_cv_lib_ncurses_tgetent = yes; then | |
5930 | bash_cv_termcap_lib=libncurses | |
5931 | else | |
5932 | bash_cv_termcap_lib=gnutermcap | |
5933 | fi | |
5934 | ||
5935 | fi | |
5936 | ||
5937 | fi | |
5938 | ||
5939 | fi | |
5940 | ||
5941 | fi | |
5942 | ||
5943 | if test "X$_bash_needmsg" = "Xyes"; then | |
25ed0b71 | 5944 | echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
9255ee31 EZ |
5945 | echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6 |
5946 | fi | |
25ed0b71 | 5947 | echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5 |
9255ee31 EZ |
5948 | echo "${ECHO_T}using $bash_cv_termcap_lib" >&6 |
5949 | if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then | |
5950 | LDFLAGS="$LDFLAGS -L./lib/termcap" | |
5951 | TERMCAP_LIB="./lib/termcap/libtermcap.a" | |
5952 | TERMCAP_DEP="./lib/termcap/libtermcap.a" | |
5953 | elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then | |
5954 | TERMCAP_LIB=-ltermcap | |
5955 | TERMCAP_DEP= | |
5956 | elif test $bash_cv_termcap_lib = libtinfo; then | |
5957 | TERMCAP_LIB=-ltinfo | |
5958 | TERMCAP_DEP= | |
5959 | elif test $bash_cv_termcap_lib = libncurses; then | |
5960 | TERMCAP_LIB=-lncurses | |
5961 | TERMCAP_DEP= | |
5962 | else | |
5963 | TERMCAP_LIB=-lcurses | |
5964 | TERMCAP_DEP= | |
5965 | fi | |
5966 | ||
5967 | if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then | |
5968 | if test "$prefer_curses" = yes; then | |
5969 | TERMCAP_LIB=-lcurses | |
5970 | else | |
5971 | TERMCAP_LIB=-ltermcap #default | |
5972 | fi | |
5973 | fi | |
5974 | ||
25ed0b71 KW |
5975 | |
5976 | ||
9255ee31 EZ |
5977 | for ac_header in wctype.h |
5978 | do | |
5979 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25ed0b71 KW |
5980 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5981 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9255ee31 EZ |
5982 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5983 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25ed0b71 KW |
5985 | fi |
5986 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5987 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9255ee31 | 5988 | else |
25ed0b71 KW |
5989 | # Is the header compilable? |
5990 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5991 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5992 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
5993 | /* confdefs.h. */ |
5994 | _ACEOF | |
5995 | cat confdefs.h >>conftest.$ac_ext | |
5996 | cat >>conftest.$ac_ext <<_ACEOF | |
5997 | /* end confdefs.h. */ | |
5998 | $ac_includes_default | |
5999 | #include <$ac_header> | |
6000 | _ACEOF | |
6001 | rm -f conftest.$ac_objext | |
6002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
430b7832 | 6003 | (eval $ac_compile) 2>conftest.er1 |
25ed0b71 | 6004 | ac_status=$? |
430b7832 MM |
6005 | grep -v '^ *+' conftest.er1 >conftest.err |
6006 | rm -f conftest.er1 | |
6007 | cat conftest.err >&5 | |
25ed0b71 KW |
6008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6009 | (exit $ac_status); } && | |
430b7832 MM |
6010 | { ac_try='test -z "$ac_c_werror_flag" |
6011 | || test ! -s conftest.err' | |
6012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6013 | (eval $ac_try) 2>&5 | |
6014 | ac_status=$? | |
6015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6016 | (exit $ac_status); }; } && | |
6017 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 KW |
6018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6019 | (eval $ac_try) 2>&5 | |
6020 | ac_status=$? | |
6021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6022 | (exit $ac_status); }; }; then | |
6023 | ac_header_compiler=yes | |
6024 | else | |
6025 | echo "$as_me: failed program was:" >&5 | |
6026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6027 | ||
6028 | ac_header_compiler=no | |
6029 | fi | |
430b7832 | 6030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25ed0b71 KW |
6031 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6032 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6033 | ||
6034 | # Is the header present? | |
6035 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6036 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6037 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
6038 | /* confdefs.h. */ |
6039 | _ACEOF | |
6040 | cat confdefs.h >>conftest.$ac_ext | |
6041 | cat >>conftest.$ac_ext <<_ACEOF | |
6042 | /* end confdefs.h. */ | |
9255ee31 EZ |
6043 | #include <$ac_header> |
6044 | _ACEOF | |
25ed0b71 | 6045 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9255ee31 EZ |
6046 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6047 | ac_status=$? | |
25ed0b71 | 6048 | grep -v '^ *+' conftest.er1 >conftest.err |
9255ee31 EZ |
6049 | rm -f conftest.er1 |
6050 | cat conftest.err >&5 | |
25ed0b71 | 6051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
6052 | (exit $ac_status); } >/dev/null; then |
6053 | if test -s conftest.err; then | |
6054 | ac_cpp_err=$ac_c_preproc_warn_flag | |
430b7832 | 6055 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
9255ee31 EZ |
6056 | else |
6057 | ac_cpp_err= | |
6058 | fi | |
6059 | else | |
6060 | ac_cpp_err=yes | |
6061 | fi | |
6062 | if test -z "$ac_cpp_err"; then | |
25ed0b71 | 6063 | ac_header_preproc=yes |
9255ee31 EZ |
6064 | else |
6065 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
6066 | sed 's/^/| /' conftest.$ac_ext >&5 |
6067 | ||
6068 | ac_header_preproc=no | |
9255ee31 EZ |
6069 | fi |
6070 | rm -f conftest.err conftest.$ac_ext | |
25ed0b71 KW |
6071 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6072 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6073 | ||
6074 | # So? What about this header? | |
430b7832 MM |
6075 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6076 | yes:no: ) | |
25ed0b71 KW |
6077 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6078 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
430b7832 MM |
6079 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6080 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6081 | ac_header_preproc=yes | |
25ed0b71 | 6082 | ;; |
430b7832 | 6083 | no:yes:* ) |
25ed0b71 KW |
6084 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6085 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
430b7832 MM |
6086 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6087 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6088 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6089 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6090 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6091 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
25ed0b71 KW |
6092 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6093 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
430b7832 MM |
6094 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6095 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
25ed0b71 KW |
6096 | ( |
6097 | cat <<\_ASBOX | |
430b7832 MM |
6098 | ## ----------------------------------- ## |
6099 | ## Report this to bug-readline@gnu.org ## | |
6100 | ## ----------------------------------- ## | |
25ed0b71 KW |
6101 | _ASBOX |
6102 | ) | | |
6103 | sed "s/^/$as_me: WARNING: /" >&2 | |
6104 | ;; | |
6105 | esac | |
6106 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6107 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6108 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6110 | else | |
430b7832 | 6111 | eval "$as_ac_Header=\$ac_header_preproc" |
9255ee31 | 6112 | fi |
25ed0b71 | 6113 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9255ee31 | 6114 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
25ed0b71 KW |
6115 | |
6116 | fi | |
9255ee31 | 6117 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
25ed0b71 | 6118 | cat >>confdefs.h <<_ACEOF |
9255ee31 | 6119 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
25ed0b71 | 6120 | _ACEOF |
9255ee31 EZ |
6121 | |
6122 | fi | |
25ed0b71 | 6123 | |
9255ee31 EZ |
6124 | done |
6125 | ||
25ed0b71 | 6126 | |
9255ee31 EZ |
6127 | for ac_header in wchar.h |
6128 | do | |
6129 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25ed0b71 KW |
6130 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6131 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9255ee31 EZ |
6132 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6133 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25ed0b71 KW |
6135 | fi |
6136 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6137 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9255ee31 | 6138 | else |
25ed0b71 KW |
6139 | # Is the header compilable? |
6140 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6141 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6142 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
6143 | /* confdefs.h. */ |
6144 | _ACEOF | |
6145 | cat confdefs.h >>conftest.$ac_ext | |
6146 | cat >>conftest.$ac_ext <<_ACEOF | |
6147 | /* end confdefs.h. */ | |
6148 | $ac_includes_default | |
6149 | #include <$ac_header> | |
6150 | _ACEOF | |
6151 | rm -f conftest.$ac_objext | |
6152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
430b7832 | 6153 | (eval $ac_compile) 2>conftest.er1 |
25ed0b71 | 6154 | ac_status=$? |
430b7832 MM |
6155 | grep -v '^ *+' conftest.er1 >conftest.err |
6156 | rm -f conftest.er1 | |
6157 | cat conftest.err >&5 | |
25ed0b71 KW |
6158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6159 | (exit $ac_status); } && | |
430b7832 MM |
6160 | { ac_try='test -z "$ac_c_werror_flag" |
6161 | || test ! -s conftest.err' | |
6162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6163 | (eval $ac_try) 2>&5 | |
6164 | ac_status=$? | |
6165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6166 | (exit $ac_status); }; } && | |
6167 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 KW |
6168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6169 | (eval $ac_try) 2>&5 | |
6170 | ac_status=$? | |
6171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6172 | (exit $ac_status); }; }; then | |
6173 | ac_header_compiler=yes | |
6174 | else | |
6175 | echo "$as_me: failed program was:" >&5 | |
6176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6177 | ||
6178 | ac_header_compiler=no | |
6179 | fi | |
430b7832 | 6180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25ed0b71 KW |
6181 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6182 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6183 | ||
6184 | # Is the header present? | |
6185 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6186 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6187 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
6188 | /* confdefs.h. */ |
6189 | _ACEOF | |
6190 | cat confdefs.h >>conftest.$ac_ext | |
6191 | cat >>conftest.$ac_ext <<_ACEOF | |
6192 | /* end confdefs.h. */ | |
9255ee31 EZ |
6193 | #include <$ac_header> |
6194 | _ACEOF | |
25ed0b71 | 6195 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9255ee31 EZ |
6196 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6197 | ac_status=$? | |
25ed0b71 | 6198 | grep -v '^ *+' conftest.er1 >conftest.err |
9255ee31 EZ |
6199 | rm -f conftest.er1 |
6200 | cat conftest.err >&5 | |
25ed0b71 | 6201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
6202 | (exit $ac_status); } >/dev/null; then |
6203 | if test -s conftest.err; then | |
6204 | ac_cpp_err=$ac_c_preproc_warn_flag | |
430b7832 | 6205 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
9255ee31 EZ |
6206 | else |
6207 | ac_cpp_err= | |
6208 | fi | |
6209 | else | |
6210 | ac_cpp_err=yes | |
6211 | fi | |
6212 | if test -z "$ac_cpp_err"; then | |
25ed0b71 | 6213 | ac_header_preproc=yes |
9255ee31 EZ |
6214 | else |
6215 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
6216 | sed 's/^/| /' conftest.$ac_ext >&5 |
6217 | ||
6218 | ac_header_preproc=no | |
9255ee31 EZ |
6219 | fi |
6220 | rm -f conftest.err conftest.$ac_ext | |
25ed0b71 KW |
6221 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6222 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6223 | ||
6224 | # So? What about this header? | |
430b7832 MM |
6225 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6226 | yes:no: ) | |
25ed0b71 KW |
6227 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6228 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
430b7832 MM |
6229 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6230 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6231 | ac_header_preproc=yes | |
25ed0b71 | 6232 | ;; |
430b7832 | 6233 | no:yes:* ) |
25ed0b71 KW |
6234 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6235 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
430b7832 MM |
6236 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6237 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6238 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6239 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6240 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6241 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
25ed0b71 KW |
6242 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6243 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
430b7832 MM |
6244 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6245 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
25ed0b71 KW |
6246 | ( |
6247 | cat <<\_ASBOX | |
430b7832 MM |
6248 | ## ----------------------------------- ## |
6249 | ## Report this to bug-readline@gnu.org ## | |
6250 | ## ----------------------------------- ## | |
25ed0b71 KW |
6251 | _ASBOX |
6252 | ) | | |
6253 | sed "s/^/$as_me: WARNING: /" >&2 | |
6254 | ;; | |
6255 | esac | |
6256 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6257 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6258 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6260 | else | |
430b7832 | 6261 | eval "$as_ac_Header=\$ac_header_preproc" |
9255ee31 | 6262 | fi |
25ed0b71 | 6263 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9255ee31 | 6264 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
25ed0b71 KW |
6265 | |
6266 | fi | |
9255ee31 | 6267 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
25ed0b71 | 6268 | cat >>confdefs.h <<_ACEOF |
9255ee31 | 6269 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
25ed0b71 | 6270 | _ACEOF |
9255ee31 EZ |
6271 | |
6272 | fi | |
25ed0b71 | 6273 | |
9255ee31 EZ |
6274 | done |
6275 | ||
25ed0b71 | 6276 | |
9255ee31 EZ |
6277 | for ac_header in langinfo.h |
6278 | do | |
6279 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25ed0b71 KW |
6280 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6281 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9255ee31 EZ |
6282 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6283 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25ed0b71 KW |
6285 | fi |
6286 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6287 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9255ee31 | 6288 | else |
25ed0b71 KW |
6289 | # Is the header compilable? |
6290 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6291 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6292 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
6293 | /* confdefs.h. */ |
6294 | _ACEOF | |
6295 | cat confdefs.h >>conftest.$ac_ext | |
6296 | cat >>conftest.$ac_ext <<_ACEOF | |
6297 | /* end confdefs.h. */ | |
6298 | $ac_includes_default | |
6299 | #include <$ac_header> | |
6300 | _ACEOF | |
6301 | rm -f conftest.$ac_objext | |
6302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
430b7832 | 6303 | (eval $ac_compile) 2>conftest.er1 |
25ed0b71 | 6304 | ac_status=$? |
430b7832 MM |
6305 | grep -v '^ *+' conftest.er1 >conftest.err |
6306 | rm -f conftest.er1 | |
6307 | cat conftest.err >&5 | |
25ed0b71 KW |
6308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6309 | (exit $ac_status); } && | |
430b7832 MM |
6310 | { ac_try='test -z "$ac_c_werror_flag" |
6311 | || test ! -s conftest.err' | |
6312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6313 | (eval $ac_try) 2>&5 | |
6314 | ac_status=$? | |
6315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6316 | (exit $ac_status); }; } && | |
6317 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 KW |
6318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6319 | (eval $ac_try) 2>&5 | |
6320 | ac_status=$? | |
6321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6322 | (exit $ac_status); }; }; then | |
6323 | ac_header_compiler=yes | |
6324 | else | |
6325 | echo "$as_me: failed program was:" >&5 | |
6326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6327 | ||
6328 | ac_header_compiler=no | |
6329 | fi | |
430b7832 | 6330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25ed0b71 KW |
6331 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6332 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6333 | ||
6334 | # Is the header present? | |
6335 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6336 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6337 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
6338 | /* confdefs.h. */ |
6339 | _ACEOF | |
6340 | cat confdefs.h >>conftest.$ac_ext | |
6341 | cat >>conftest.$ac_ext <<_ACEOF | |
6342 | /* end confdefs.h. */ | |
9255ee31 EZ |
6343 | #include <$ac_header> |
6344 | _ACEOF | |
25ed0b71 | 6345 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9255ee31 EZ |
6346 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6347 | ac_status=$? | |
25ed0b71 | 6348 | grep -v '^ *+' conftest.er1 >conftest.err |
9255ee31 EZ |
6349 | rm -f conftest.er1 |
6350 | cat conftest.err >&5 | |
25ed0b71 | 6351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
6352 | (exit $ac_status); } >/dev/null; then |
6353 | if test -s conftest.err; then | |
6354 | ac_cpp_err=$ac_c_preproc_warn_flag | |
430b7832 | 6355 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
9255ee31 EZ |
6356 | else |
6357 | ac_cpp_err= | |
6358 | fi | |
6359 | else | |
6360 | ac_cpp_err=yes | |
6361 | fi | |
6362 | if test -z "$ac_cpp_err"; then | |
25ed0b71 | 6363 | ac_header_preproc=yes |
9255ee31 EZ |
6364 | else |
6365 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
6366 | sed 's/^/| /' conftest.$ac_ext >&5 |
6367 | ||
6368 | ac_header_preproc=no | |
9255ee31 EZ |
6369 | fi |
6370 | rm -f conftest.err conftest.$ac_ext | |
25ed0b71 KW |
6371 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6372 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6373 | ||
6374 | # So? What about this header? | |
430b7832 MM |
6375 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6376 | yes:no: ) | |
25ed0b71 KW |
6377 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6378 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
430b7832 MM |
6379 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6380 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6381 | ac_header_preproc=yes | |
25ed0b71 | 6382 | ;; |
430b7832 | 6383 | no:yes:* ) |
25ed0b71 KW |
6384 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6385 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
430b7832 MM |
6386 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6387 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6388 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6389 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6390 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6391 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
25ed0b71 KW |
6392 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6393 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
430b7832 MM |
6394 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6395 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
25ed0b71 KW |
6396 | ( |
6397 | cat <<\_ASBOX | |
430b7832 MM |
6398 | ## ----------------------------------- ## |
6399 | ## Report this to bug-readline@gnu.org ## | |
6400 | ## ----------------------------------- ## | |
25ed0b71 KW |
6401 | _ASBOX |
6402 | ) | | |
6403 | sed "s/^/$as_me: WARNING: /" >&2 | |
6404 | ;; | |
6405 | esac | |
6406 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6407 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6408 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6410 | else | |
430b7832 | 6411 | eval "$as_ac_Header=\$ac_header_preproc" |
9255ee31 | 6412 | fi |
25ed0b71 | 6413 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9255ee31 | 6414 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
25ed0b71 KW |
6415 | |
6416 | fi | |
9255ee31 | 6417 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
25ed0b71 | 6418 | cat >>confdefs.h <<_ACEOF |
9255ee31 | 6419 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
25ed0b71 | 6420 | _ACEOF |
9255ee31 EZ |
6421 | |
6422 | fi | |
25ed0b71 | 6423 | |
9255ee31 EZ |
6424 | done |
6425 | ||
25ed0b71 | 6426 | |
832a9484 JB |
6427 | echo "$as_me:$LINENO: checking for mbrtowc" >&5 |
6428 | echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6 | |
6429 | if test "${ac_cv_func_mbrtowc+set}" = set; then | |
6430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6431 | else | |
6432 | cat >conftest.$ac_ext <<_ACEOF | |
832a9484 JB |
6433 | /* confdefs.h. */ |
6434 | _ACEOF | |
6435 | cat confdefs.h >>conftest.$ac_ext | |
6436 | cat >>conftest.$ac_ext <<_ACEOF | |
6437 | /* end confdefs.h. */ | |
430b7832 MM |
6438 | /* Define mbrtowc to an innocuous variant, in case <limits.h> declares mbrtowc. |
6439 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6440 | #define mbrtowc innocuous_mbrtowc | |
6441 | ||
832a9484 JB |
6442 | /* System header to define __stub macros and hopefully few prototypes, |
6443 | which can conflict with char mbrtowc (); below. | |
6444 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6445 | <limits.h> exists even on freestanding compilers. */ | |
430b7832 | 6446 | |
832a9484 JB |
6447 | #ifdef __STDC__ |
6448 | # include <limits.h> | |
6449 | #else | |
6450 | # include <assert.h> | |
6451 | #endif | |
430b7832 MM |
6452 | |
6453 | #undef mbrtowc | |
6454 | ||
832a9484 JB |
6455 | /* Override any gcc2 internal prototype to avoid an error. */ |
6456 | #ifdef __cplusplus | |
6457 | extern "C" | |
6458 | { | |
6459 | #endif | |
6460 | /* We use char because int might match the return type of a gcc2 | |
6461 | builtin and then its argument prototype would still apply. */ | |
6462 | char mbrtowc (); | |
6463 | /* The GNU C library defines this for functions which it implements | |
6464 | to always fail with ENOSYS. Some functions are actually named | |
6465 | something starting with __ and the normal name is an alias. */ | |
6466 | #if defined (__stub_mbrtowc) || defined (__stub___mbrtowc) | |
6467 | choke me | |
6468 | #else | |
6469 | char (*f) () = mbrtowc; | |
6470 | #endif | |
6471 | #ifdef __cplusplus | |
6472 | } | |
6473 | #endif | |
6474 | ||
6475 | int | |
6476 | main () | |
6477 | { | |
6478 | return f != mbrtowc; | |
6479 | ; | |
6480 | return 0; | |
6481 | } | |
6482 | _ACEOF | |
6483 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
430b7832 | 6485 | (eval $ac_link) 2>conftest.er1 |
832a9484 | 6486 | ac_status=$? |
430b7832 MM |
6487 | grep -v '^ *+' conftest.er1 >conftest.err |
6488 | rm -f conftest.er1 | |
6489 | cat conftest.err >&5 | |
832a9484 JB |
6490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6491 | (exit $ac_status); } && | |
430b7832 MM |
6492 | { ac_try='test -z "$ac_c_werror_flag" |
6493 | || test ! -s conftest.err' | |
6494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6495 | (eval $ac_try) 2>&5 | |
6496 | ac_status=$? | |
6497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6498 | (exit $ac_status); }; } && | |
6499 | { ac_try='test -s conftest$ac_exeext' | |
832a9484 JB |
6500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6501 | (eval $ac_try) 2>&5 | |
6502 | ac_status=$? | |
6503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6504 | (exit $ac_status); }; }; then | |
6505 | ac_cv_func_mbrtowc=yes | |
6506 | else | |
6507 | echo "$as_me: failed program was:" >&5 | |
6508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6509 | ||
6510 | ac_cv_func_mbrtowc=no | |
6511 | fi | |
430b7832 MM |
6512 | rm -f conftest.err conftest.$ac_objext \ |
6513 | conftest$ac_exeext conftest.$ac_ext | |
832a9484 JB |
6514 | fi |
6515 | echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5 | |
6516 | echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6 | |
6517 | if test $ac_cv_func_mbrtowc = yes; then | |
6518 | cat >>confdefs.h <<\_ACEOF | |
6519 | #define HAVE_MBRTOWC 1 | |
6520 | _ACEOF | |
6521 | ||
6522 | fi | |
6523 | ||
25ed0b71 | 6524 | echo "$as_me:$LINENO: checking for mbsrtowcs" >&5 |
9255ee31 EZ |
6525 | echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6 |
6526 | if test "${ac_cv_func_mbsrtowcs+set}" = set; then | |
6527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6528 | else | |
6529 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
6530 | /* confdefs.h. */ |
6531 | _ACEOF | |
6532 | cat confdefs.h >>conftest.$ac_ext | |
6533 | cat >>conftest.$ac_ext <<_ACEOF | |
6534 | /* end confdefs.h. */ | |
430b7832 MM |
6535 | /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs. |
6536 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6537 | #define mbsrtowcs innocuous_mbsrtowcs | |
6538 | ||
9255ee31 | 6539 | /* System header to define __stub macros and hopefully few prototypes, |
25ed0b71 KW |
6540 | which can conflict with char mbsrtowcs (); below. |
6541 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6542 | <limits.h> exists even on freestanding compilers. */ | |
430b7832 | 6543 | |
25ed0b71 KW |
6544 | #ifdef __STDC__ |
6545 | # include <limits.h> | |
6546 | #else | |
6547 | # include <assert.h> | |
6548 | #endif | |
430b7832 MM |
6549 | |
6550 | #undef mbsrtowcs | |
6551 | ||
d60d9f65 | 6552 | /* Override any gcc2 internal prototype to avoid an error. */ |
9255ee31 EZ |
6553 | #ifdef __cplusplus |
6554 | extern "C" | |
25ed0b71 | 6555 | { |
9255ee31 | 6556 | #endif |
d60d9f65 | 6557 | /* We use char because int might match the return type of a gcc2 |
9255ee31 EZ |
6558 | builtin and then its argument prototype would still apply. */ |
6559 | char mbsrtowcs (); | |
9255ee31 EZ |
6560 | /* The GNU C library defines this for functions which it implements |
6561 | to always fail with ENOSYS. Some functions are actually named | |
6562 | something starting with __ and the normal name is an alias. */ | |
6563 | #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs) | |
6564 | choke me | |
6565 | #else | |
25ed0b71 KW |
6566 | char (*f) () = mbsrtowcs; |
6567 | #endif | |
6568 | #ifdef __cplusplus | |
6569 | } | |
9255ee31 | 6570 | #endif |
d60d9f65 | 6571 | |
25ed0b71 KW |
6572 | int |
6573 | main () | |
6574 | { | |
6575 | return f != mbsrtowcs; | |
9255ee31 EZ |
6576 | ; |
6577 | return 0; | |
6578 | } | |
6579 | _ACEOF | |
6580 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 6581 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 6582 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 6583 | ac_status=$? |
430b7832 MM |
6584 | grep -v '^ *+' conftest.er1 >conftest.err |
6585 | rm -f conftest.er1 | |
6586 | cat conftest.err >&5 | |
25ed0b71 | 6587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 6588 | (exit $ac_status); } && |
430b7832 MM |
6589 | { ac_try='test -z "$ac_c_werror_flag" |
6590 | || test ! -s conftest.err' | |
6591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6592 | (eval $ac_try) 2>&5 | |
6593 | ac_status=$? | |
6594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6595 | (exit $ac_status); }; } && | |
6596 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 6597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
6598 | (eval $ac_try) 2>&5 |
6599 | ac_status=$? | |
25ed0b71 | 6600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
6601 | (exit $ac_status); }; }; then |
6602 | ac_cv_func_mbsrtowcs=yes | |
d60d9f65 | 6603 | else |
9255ee31 | 6604 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
6605 | sed 's/^/| /' conftest.$ac_ext >&5 |
6606 | ||
9255ee31 | 6607 | ac_cv_func_mbsrtowcs=no |
d60d9f65 | 6608 | fi |
430b7832 MM |
6609 | rm -f conftest.err conftest.$ac_objext \ |
6610 | conftest$ac_exeext conftest.$ac_ext | |
9255ee31 | 6611 | fi |
25ed0b71 | 6612 | echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5 |
9255ee31 EZ |
6613 | echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6 |
6614 | if test $ac_cv_func_mbsrtowcs = yes; then | |
25ed0b71 | 6615 | cat >>confdefs.h <<\_ACEOF |
9255ee31 | 6616 | #define HAVE_MBSRTOWCS 1 |
25ed0b71 | 6617 | _ACEOF |
d60d9f65 SS |
6618 | |
6619 | fi | |
9255ee31 | 6620 | |
25ed0b71 | 6621 | echo "$as_me:$LINENO: checking for wcwidth" >&5 |
9255ee31 EZ |
6622 | echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6 |
6623 | if test "${ac_cv_func_wcwidth+set}" = set; then | |
6624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 6625 | else |
9255ee31 | 6626 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
6627 | /* confdefs.h. */ |
6628 | _ACEOF | |
6629 | cat confdefs.h >>conftest.$ac_ext | |
6630 | cat >>conftest.$ac_ext <<_ACEOF | |
6631 | /* end confdefs.h. */ | |
430b7832 MM |
6632 | /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth. |
6633 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6634 | #define wcwidth innocuous_wcwidth | |
6635 | ||
9255ee31 | 6636 | /* System header to define __stub macros and hopefully few prototypes, |
25ed0b71 KW |
6637 | which can conflict with char wcwidth (); below. |
6638 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6639 | <limits.h> exists even on freestanding compilers. */ | |
430b7832 | 6640 | |
25ed0b71 KW |
6641 | #ifdef __STDC__ |
6642 | # include <limits.h> | |
6643 | #else | |
6644 | # include <assert.h> | |
6645 | #endif | |
430b7832 MM |
6646 | |
6647 | #undef wcwidth | |
6648 | ||
d60d9f65 | 6649 | /* Override any gcc2 internal prototype to avoid an error. */ |
9255ee31 EZ |
6650 | #ifdef __cplusplus |
6651 | extern "C" | |
25ed0b71 | 6652 | { |
9255ee31 | 6653 | #endif |
d60d9f65 | 6654 | /* We use char because int might match the return type of a gcc2 |
9255ee31 EZ |
6655 | builtin and then its argument prototype would still apply. */ |
6656 | char wcwidth (); | |
9255ee31 EZ |
6657 | /* The GNU C library defines this for functions which it implements |
6658 | to always fail with ENOSYS. Some functions are actually named | |
6659 | something starting with __ and the normal name is an alias. */ | |
6660 | #if defined (__stub_wcwidth) || defined (__stub___wcwidth) | |
6661 | choke me | |
6662 | #else | |
25ed0b71 KW |
6663 | char (*f) () = wcwidth; |
6664 | #endif | |
6665 | #ifdef __cplusplus | |
6666 | } | |
9255ee31 EZ |
6667 | #endif |
6668 | ||
25ed0b71 KW |
6669 | int |
6670 | main () | |
6671 | { | |
6672 | return f != wcwidth; | |
9255ee31 EZ |
6673 | ; |
6674 | return 0; | |
6675 | } | |
6676 | _ACEOF | |
6677 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 6678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 6679 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 6680 | ac_status=$? |
430b7832 MM |
6681 | grep -v '^ *+' conftest.er1 >conftest.err |
6682 | rm -f conftest.er1 | |
6683 | cat conftest.err >&5 | |
25ed0b71 | 6684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 6685 | (exit $ac_status); } && |
430b7832 MM |
6686 | { ac_try='test -z "$ac_c_werror_flag" |
6687 | || test ! -s conftest.err' | |
6688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6689 | (eval $ac_try) 2>&5 | |
6690 | ac_status=$? | |
6691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6692 | (exit $ac_status); }; } && | |
6693 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 6694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
6695 | (eval $ac_try) 2>&5 |
6696 | ac_status=$? | |
25ed0b71 | 6697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
6698 | (exit $ac_status); }; }; then |
6699 | ac_cv_func_wcwidth=yes | |
d60d9f65 | 6700 | else |
9255ee31 | 6701 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
6702 | sed 's/^/| /' conftest.$ac_ext >&5 |
6703 | ||
9255ee31 | 6704 | ac_cv_func_wcwidth=no |
d60d9f65 | 6705 | fi |
430b7832 MM |
6706 | rm -f conftest.err conftest.$ac_objext \ |
6707 | conftest$ac_exeext conftest.$ac_ext | |
9255ee31 | 6708 | fi |
25ed0b71 | 6709 | echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5 |
9255ee31 EZ |
6710 | echo "${ECHO_T}$ac_cv_func_wcwidth" >&6 |
6711 | if test $ac_cv_func_wcwidth = yes; then | |
25ed0b71 | 6712 | cat >>confdefs.h <<\_ACEOF |
9255ee31 | 6713 | #define HAVE_WCWIDTH 1 |
25ed0b71 KW |
6714 | _ACEOF |
6715 | ||
05bc3370 | 6716 | fi |
25ed0b71 | 6717 | |
05bc3370 | 6718 | if test "$ac_cv_func_wcwidth" = no && test "$ac_cv_header_wchar_h" = yes; then |
25ed0b71 | 6719 | WCWIDTH_OBJ=wcwidth.o |
05bc3370 MK |
6720 | else |
6721 | WCWIDTH_OBJ= | |
d60d9f65 | 6722 | fi |
9255ee31 | 6723 | |
05bc3370 | 6724 | |
25ed0b71 | 6725 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
9255ee31 EZ |
6726 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 |
6727 | if test "${bash_cv_have_mbstate_t+set}" = set; then | |
6728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 6729 | else |
9255ee31 | 6730 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
6731 | /* confdefs.h. */ |
6732 | _ACEOF | |
6733 | cat confdefs.h >>conftest.$ac_ext | |
6734 | cat >>conftest.$ac_ext <<_ACEOF | |
6735 | /* end confdefs.h. */ | |
9255ee31 EZ |
6736 | #include <wchar.h> |
6737 | int | |
6738 | main () | |
430b7832 MM |
6739 | { |
6740 | int | |
6741 | main () | |
9255ee31 EZ |
6742 | { |
6743 | mbstate_t ps; | |
6744 | return 0; | |
430b7832 MM |
6745 | } |
6746 | ; | |
6747 | return 0; | |
9255ee31 EZ |
6748 | } |
6749 | _ACEOF | |
430b7832 | 6750 | rm -f conftest.$ac_objext conftest$ac_exeext |
25ed0b71 | 6751 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 6752 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 6753 | ac_status=$? |
430b7832 MM |
6754 | grep -v '^ *+' conftest.er1 >conftest.err |
6755 | rm -f conftest.er1 | |
6756 | cat conftest.err >&5 | |
25ed0b71 | 6757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
430b7832 MM |
6758 | (exit $ac_status); } && |
6759 | { ac_try='test -z "$ac_c_werror_flag" | |
6760 | || test ! -s conftest.err' | |
6761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6762 | (eval $ac_try) 2>&5 | |
6763 | ac_status=$? | |
6764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6765 | (exit $ac_status); }; } && | |
6766 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 6767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
6768 | (eval $ac_try) 2>&5 |
6769 | ac_status=$? | |
25ed0b71 | 6770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
6771 | (exit $ac_status); }; }; then |
6772 | bash_cv_have_mbstate_t=yes | |
d60d9f65 | 6773 | else |
430b7832 | 6774 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
6775 | sed 's/^/| /' conftest.$ac_ext >&5 |
6776 | ||
9255ee31 | 6777 | bash_cv_have_mbstate_t=no |
d60d9f65 | 6778 | fi |
430b7832 MM |
6779 | rm -f conftest.err conftest.$ac_objext \ |
6780 | conftest$ac_exeext conftest.$ac_ext | |
d60d9f65 | 6781 | fi |
25ed0b71 | 6782 | echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5 |
9255ee31 EZ |
6783 | echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6 |
6784 | if test $bash_cv_have_mbstate_t = yes; then | |
25ed0b71 | 6785 | cat >>confdefs.h <<\_ACEOF |
9255ee31 | 6786 | #define HAVE_MBSTATE_T 1 |
25ed0b71 | 6787 | _ACEOF |
d60d9f65 SS |
6788 | |
6789 | fi | |
6790 | ||
25ed0b71 | 6791 | echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
9255ee31 EZ |
6792 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 |
6793 | if test "${bash_cv_langinfo_codeset+set}" = set; then | |
6794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 6795 | else |
9255ee31 | 6796 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
6797 | /* confdefs.h. */ |
6798 | _ACEOF | |
6799 | cat confdefs.h >>conftest.$ac_ext | |
6800 | cat >>conftest.$ac_ext <<_ACEOF | |
6801 | /* end confdefs.h. */ | |
9255ee31 EZ |
6802 | #include <langinfo.h> |
6803 | int | |
6804 | main () | |
6805 | { | |
6806 | char* cs = nl_langinfo(CODESET); | |
6807 | ; | |
6808 | return 0; | |
6809 | } | |
6810 | _ACEOF | |
6811 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 6812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 6813 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 6814 | ac_status=$? |
430b7832 MM |
6815 | grep -v '^ *+' conftest.er1 >conftest.err |
6816 | rm -f conftest.er1 | |
6817 | cat conftest.err >&5 | |
25ed0b71 | 6818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 6819 | (exit $ac_status); } && |
430b7832 MM |
6820 | { ac_try='test -z "$ac_c_werror_flag" |
6821 | || test ! -s conftest.err' | |
6822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6823 | (eval $ac_try) 2>&5 | |
6824 | ac_status=$? | |
6825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6826 | (exit $ac_status); }; } && | |
6827 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 6828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
6829 | (eval $ac_try) 2>&5 |
6830 | ac_status=$? | |
25ed0b71 | 6831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
6832 | (exit $ac_status); }; }; then |
6833 | bash_cv_langinfo_codeset=yes | |
6834 | else | |
6835 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
6836 | sed 's/^/| /' conftest.$ac_ext >&5 |
6837 | ||
9255ee31 EZ |
6838 | bash_cv_langinfo_codeset=no |
6839 | fi | |
430b7832 MM |
6840 | rm -f conftest.err conftest.$ac_objext \ |
6841 | conftest$ac_exeext conftest.$ac_ext | |
d60d9f65 | 6842 | fi |
25ed0b71 | 6843 | echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5 |
9255ee31 EZ |
6844 | echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6 |
6845 | if test $bash_cv_langinfo_codeset = yes; then | |
25ed0b71 | 6846 | cat >>confdefs.h <<\_ACEOF |
9255ee31 | 6847 | #define HAVE_LANGINFO_CODESET 1 |
25ed0b71 | 6848 | _ACEOF |
d60d9f65 | 6849 | |
d60d9f65 SS |
6850 | fi |
6851 | ||
25ed0b71 KW |
6852 | |
6853 | ||
d60d9f65 SS |
6854 | case "$host_cpu" in |
6855 | *cray*) LOCAL_CFLAGS=-DCRAY ;; | |
9255ee31 | 6856 | *s390*) LOCAL_CFLAGS=-fsigned-char ;; |
d60d9f65 SS |
6857 | esac |
6858 | ||
6859 | case "$host_os" in | |
6860 | isc*) LOCAL_CFLAGS=-Disc386 ;; | |
6861 | esac | |
6862 | ||
c862e87b JM |
6863 | # shared library configuration section |
6864 | # | |
6865 | # Shared object configuration section. These values are generated by | |
6866 | # ${srcdir}/support/shobj-conf | |
6867 | # | |
6868 | if test -f ${srcdir}/support/shobj-conf; then | |
25ed0b71 | 6869 | echo "$as_me:$LINENO: checking configuration for building shared libraries" >&5 |
9255ee31 | 6870 | echo $ECHO_N "checking configuration for building shared libraries... $ECHO_C" >&6 |
1b17e766 | 6871 | eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}` |
9255ee31 | 6872 | |
25ed0b71 KW |
6873 | |
6874 | ||
6875 | ||
6876 | ||
6877 | ||
6878 | ||
6879 | ||
6880 | ||
6881 | ||
6882 | ||
6883 | ||
6884 | echo "$as_me:$LINENO: result: $SHLIB_STATUS" >&5 | |
9255ee31 EZ |
6885 | echo "${ECHO_T}$SHLIB_STATUS" >&6 |
6886 | ||
6887 | # SHLIB_STATUS is either `supported' or `unsupported'. If it's | |
6888 | # `unsupported', turn off any default shared library building | |
6889 | if test "$SHLIB_STATUS" = 'unsupported'; then | |
6890 | opt_shared_libs=no | |
6891 | fi | |
1b17e766 EZ |
6892 | |
6893 | # shared library versioning | |
6894 | # quoted for m4 so I can use character classes | |
6895 | SHLIB_MAJOR=`expr "$LIBVERSION" : '\([0-9]\)\..*'` | |
6896 | SHLIB_MINOR=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'` | |
9255ee31 | 6897 | |
25ed0b71 | 6898 | |
9255ee31 EZ |
6899 | fi |
6900 | ||
6901 | if test "$opt_static_libs" = "yes"; then | |
6902 | STATIC_TARGET=static | |
6903 | STATIC_INSTALL_TARGET=install-static | |
6904 | fi | |
6905 | if test "$opt_shared_libs" = "yes"; then | |
6906 | SHARED_TARGET=shared | |
6907 | SHARED_INSTALL_TARGET=install-shared | |
c862e87b JM |
6908 | fi |
6909 | ||
25ed0b71 KW |
6910 | |
6911 | ||
6912 | ||
6913 | ||
6914 | ||
1b17e766 EZ |
6915 | case "$host_os" in |
6916 | msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file | |
6917 | *) BUILD_DIR=`pwd` ;; | |
6918 | esac | |
6919 | ||
25ed0b71 KW |
6920 | |
6921 | ||
6922 | ||
6923 | ||
6924 | ||
6925 | ||
6926 | ||
6927 | ||
6928 | ||
6929 | ||
6930 | ||
6931 | ||
6932 | ||
6933 | ||
6934 | ||
6935 | ||
6936 | ||
6937 | ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile" | |
6938 | ac_config_commands="$ac_config_commands default" | |
9255ee31 | 6939 | cat >confcache <<\_ACEOF |
d60d9f65 SS |
6940 | # This file is a shell script that caches the results of configure |
6941 | # tests run on this system so they can be shared between configure | |
9255ee31 EZ |
6942 | # scripts and configure runs, see configure's option --config-cache. |
6943 | # It is not useful on other systems. If it contains results you don't | |
6944 | # want to keep, you may remove or edit it. | |
d60d9f65 | 6945 | # |
9255ee31 EZ |
6946 | # config.status only pays attention to the cache file if you give it |
6947 | # the --recheck option to rerun configure. | |
d60d9f65 | 6948 | # |
25ed0b71 | 6949 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
9255ee31 EZ |
6950 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
6951 | # following values. | |
6952 | ||
6953 | _ACEOF | |
6954 | ||
d60d9f65 SS |
6955 | # The following way of writing the cache mishandles newlines in values, |
6956 | # but we know of no workaround that is simple, portable, and efficient. | |
6957 | # So, don't put newlines in cache variables' values. | |
6958 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6959 | # and sets the high bit in the cache file unless we assign to the vars. | |
9255ee31 EZ |
6960 | { |
6961 | (set) 2>&1 | | |
6962 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6963 | *ac_space=\ *) | |
6964 | # `set' does not quote correctly, so add quotes (double-quote | |
6965 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
6966 | sed -n \ | |
430b7832 MM |
6967 | "s/'/'\\\\''/g; |
6968 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
9255ee31 EZ |
6969 | ;; |
6970 | *) | |
6971 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6972 | sed -n \ | |
430b7832 | 6973 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
9255ee31 EZ |
6974 | ;; |
6975 | esac; | |
6976 | } | | |
6977 | sed ' | |
6978 | t clear | |
6979 | : clear | |
6980 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
6981 | t end | |
6982 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
6983 | : end' >>confcache | |
25ed0b71 | 6984 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
d60d9f65 | 6985 | if test -w $cache_file; then |
9255ee31 EZ |
6986 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
6987 | cat confcache >$cache_file | |
d60d9f65 SS |
6988 | else |
6989 | echo "not updating unwritable cache $cache_file" | |
6990 | fi | |
6991 | fi | |
6992 | rm -f confcache | |
6993 | ||
d60d9f65 SS |
6994 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
6995 | # Let make expand exec_prefix. | |
6996 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6997 | ||
9255ee31 EZ |
6998 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
6999 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7000 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7001 | # (actually we leave an empty line to preserve line numbers). | |
d60d9f65 | 7002 | if test "x$srcdir" = x.; then |
430b7832 | 7003 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
9255ee31 EZ |
7004 | s/:*\$(srcdir):*/:/; |
7005 | s/:*\${srcdir}:*/:/; | |
7006 | s/:*@srcdir@:*/:/; | |
430b7832 | 7007 | s/^\([^=]*=[ ]*\):*/\1/; |
9255ee31 | 7008 | s/:*$//; |
430b7832 | 7009 | s/^[^=]*=[ ]*$//; |
9255ee31 | 7010 | }' |
d60d9f65 SS |
7011 | fi |
7012 | ||
d60d9f65 SS |
7013 | DEFS=-DHAVE_CONFIG_H |
7014 | ||
25ed0b71 KW |
7015 | ac_libobjs= |
7016 | ac_ltlibobjs= | |
7017 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7018 | # 1. Remove the extension, and $U if already installed. | |
7019 | ac_i=`echo "$ac_i" | | |
430b7832 | 7020 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
25ed0b71 KW |
7021 | # 2. Add them. |
7022 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
7023 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
7024 | done | |
7025 | LIBOBJS=$ac_libobjs | |
7026 | ||
7027 | LTLIBOBJS=$ac_ltlibobjs | |
7028 | ||
7029 | ||
7030 | ||
d60d9f65 | 7031 | : ${CONFIG_STATUS=./config.status} |
9255ee31 EZ |
7032 | ac_clean_files_save=$ac_clean_files |
7033 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
25ed0b71 | 7034 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
9255ee31 EZ |
7035 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
7036 | cat >$CONFIG_STATUS <<_ACEOF | |
7037 | #! $SHELL | |
25ed0b71 | 7038 | # Generated by $as_me. |
d60d9f65 | 7039 | # Run this file to recreate the current configuration. |
d60d9f65 | 7040 | # Compiler output produced by configure, useful for debugging |
9255ee31 | 7041 | # configure, is in config.log if it exists. |
d60d9f65 | 7042 | |
9255ee31 | 7043 | debug=false |
25ed0b71 KW |
7044 | ac_cs_recheck=false |
7045 | ac_cs_silent=false | |
9255ee31 | 7046 | SHELL=\${CONFIG_SHELL-$SHELL} |
9255ee31 EZ |
7047 | _ACEOF |
7048 | ||
7049 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25ed0b71 KW |
7050 | ## --------------------- ## |
7051 | ## M4sh Initialization. ## | |
7052 | ## --------------------- ## | |
7053 | ||
9255ee31 EZ |
7054 | # Be Bourne compatible |
7055 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
7056 | emulate sh | |
7057 | NULLCMD=: | |
25ed0b71 KW |
7058 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
7059 | # is contrary to our usage. Disable this feature. | |
7060 | alias -g '${1+"$@"}'='"$@"' | |
9255ee31 EZ |
7061 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
7062 | set -o posix | |
7063 | fi | |
430b7832 | 7064 | DUALCASE=1; export DUALCASE # for MKS sh |
9255ee31 | 7065 | |
25ed0b71 | 7066 | # Support unset when possible. |
430b7832 | 7067 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
25ed0b71 KW |
7068 | as_unset=unset |
7069 | else | |
7070 | as_unset=false | |
7071 | fi | |
7072 | ||
7073 | ||
7074 | # Work around bugs in pre-3.0 UWIN ksh. | |
7075 | $as_unset ENV MAIL MAILPATH | |
7076 | PS1='$ ' | |
7077 | PS2='> ' | |
7078 | PS4='+ ' | |
7079 | ||
7080 | # NLS nuisances. | |
7081 | for as_var in \ | |
7082 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
7083 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
7084 | LC_TELEPHONE LC_TIME | |
7085 | do | |
430b7832 | 7086 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
25ed0b71 KW |
7087 | eval $as_var=C; export $as_var |
7088 | else | |
7089 | $as_unset $as_var | |
7090 | fi | |
7091 | done | |
7092 | ||
7093 | # Required to use basename. | |
7094 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7095 | as_expr=expr | |
7096 | else | |
7097 | as_expr=false | |
7098 | fi | |
7099 | ||
7100 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
7101 | as_basename=basename | |
7102 | else | |
7103 | as_basename=false | |
7104 | fi | |
7105 | ||
7106 | ||
9255ee31 | 7107 | # Name of the executable. |
25ed0b71 KW |
7108 | as_me=`$as_basename "$0" || |
7109 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
7110 | X"$0" : 'X\(//\)$' \| \ | |
7111 | X"$0" : 'X\(/\)$' \| \ | |
7112 | . : '\(.\)' 2>/dev/null || | |
7113 | echo X/"$0" | | |
7114 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
7115 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
7116 | /^X\/\(\/\).*/{ s//\1/; q; } | |
7117 | s/.*/./; q'` | |
7118 | ||
7119 | ||
7120 | # PATH needs CR, and LINENO needs CR and PATH. | |
7121 | # Avoid depending upon Character Ranges. | |
7122 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7123 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7124 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7125 | as_cr_digits='0123456789' | |
7126 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7127 | ||
7128 | # The user is always right. | |
7129 | if test "${PATH_SEPARATOR+set}" != set; then | |
7130 | echo "#! /bin/sh" >conf$$.sh | |
7131 | echo "exit 0" >>conf$$.sh | |
7132 | chmod +x conf$$.sh | |
7133 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7134 | PATH_SEPARATOR=';' | |
7135 | else | |
7136 | PATH_SEPARATOR=: | |
7137 | fi | |
7138 | rm -f conf$$.sh | |
7139 | fi | |
7140 | ||
7141 | ||
7142 | as_lineno_1=$LINENO | |
7143 | as_lineno_2=$LINENO | |
7144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7145 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7146 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
7147 | # Find who we are. Look in the path if we contain no path at all | |
7148 | # relative or not. | |
7149 | case $0 in | |
7150 | *[\\/]* ) as_myself=$0 ;; | |
7151 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7152 | for as_dir in $PATH | |
7153 | do | |
7154 | IFS=$as_save_IFS | |
7155 | test -z "$as_dir" && as_dir=. | |
7156 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7157 | done | |
7158 | ||
7159 | ;; | |
7160 | esac | |
7161 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7162 | # in which case we are not to be found in the path. | |
7163 | if test "x$as_myself" = x; then | |
7164 | as_myself=$0 | |
7165 | fi | |
7166 | if test ! -f "$as_myself"; then | |
7167 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
7168 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
7169 | { (exit 1); exit 1; }; } | |
7170 | fi | |
7171 | case $CONFIG_SHELL in | |
7172 | '') | |
7173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7174 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
7175 | do | |
7176 | IFS=$as_save_IFS | |
7177 | test -z "$as_dir" && as_dir=. | |
7178 | for as_base in sh bash ksh sh5; do | |
7179 | case $as_dir in | |
7180 | /*) | |
7181 | if ("$as_dir/$as_base" -c ' | |
7182 | as_lineno_1=$LINENO | |
7183 | as_lineno_2=$LINENO | |
7184 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7185 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7186 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
7187 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
7188 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
7189 | CONFIG_SHELL=$as_dir/$as_base | |
7190 | export CONFIG_SHELL | |
7191 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
7192 | fi;; | |
7193 | esac | |
7194 | done | |
7195 | done | |
7196 | ;; | |
7197 | esac | |
7198 | ||
7199 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
7200 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7201 | # line-number line before each line; the second 'sed' does the real | |
7202 | # work. The second script uses 'N' to pair each line-number line | |
7203 | # with the numbered line, and appends trailing '-' during | |
7204 | # substitution so that $LINENO is not a special case at line end. | |
7205 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
7206 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
7207 | sed '=' <$as_myself | | |
7208 | sed ' | |
7209 | N | |
7210 | s,$,-, | |
7211 | : loop | |
7212 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
7213 | t loop | |
7214 | s,-$,, | |
7215 | s,^['$as_cr_digits']*\n,, | |
7216 | ' >$as_me.lineno && | |
7217 | chmod +x $as_me.lineno || | |
7218 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
7219 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
7220 | { (exit 1); exit 1; }; } | |
7221 | ||
7222 | # Don't try to exec as it changes $[0], causing all sort of problems | |
7223 | # (the dirname of $[0] is not the place where we might find the | |
7224 | # original and so on. Autoconf is especially sensible to this). | |
7225 | . ./$as_me.lineno | |
7226 | # Exit status is that of the last command. | |
7227 | exit | |
7228 | } | |
7229 | ||
7230 | ||
7231 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
7232 | *c*,-n*) ECHO_N= ECHO_C=' | |
7233 | ' ECHO_T=' ' ;; | |
7234 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
7235 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
7236 | esac | |
9255ee31 EZ |
7237 | |
7238 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7239 | as_expr=expr | |
7240 | else | |
7241 | as_expr=false | |
7242 | fi | |
7243 | ||
7244 | rm -f conf$$ conf$$.exe conf$$.file | |
7245 | echo >conf$$.file | |
7246 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7247 | # We could just check for DJGPP; but this test a) works b) is more generic | |
7248 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
7249 | if test -f conf$$.exe; then | |
7250 | # Don't use ln at all; we don't have any links | |
7251 | as_ln_s='cp -p' | |
7252 | else | |
7253 | as_ln_s='ln -s' | |
7254 | fi | |
7255 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
7256 | as_ln_s=ln | |
7257 | else | |
7258 | as_ln_s='cp -p' | |
7259 | fi | |
7260 | rm -f conf$$ conf$$.exe conf$$.file | |
7261 | ||
25ed0b71 KW |
7262 | if mkdir -p . 2>/dev/null; then |
7263 | as_mkdir_p=: | |
9255ee31 | 7264 | else |
430b7832 | 7265 | test -d ./-p && rmdir ./-p |
25ed0b71 | 7266 | as_mkdir_p=false |
9255ee31 EZ |
7267 | fi |
7268 | ||
25ed0b71 KW |
7269 | as_executable_p="test -f" |
7270 | ||
7271 | # Sed expression to map a string onto a valid CPP name. | |
430b7832 | 7272 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
25ed0b71 KW |
7273 | |
7274 | # Sed expression to map a string onto a valid variable name. | |
430b7832 | 7275 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
25ed0b71 | 7276 | |
9255ee31 EZ |
7277 | |
7278 | # IFS | |
7279 | # We need space, tab and new line, in precisely that order. | |
7280 | as_nl=' | |
7281 | ' | |
7282 | IFS=" $as_nl" | |
7283 | ||
7284 | # CDPATH. | |
25ed0b71 | 7285 | $as_unset CDPATH |
9255ee31 EZ |
7286 | |
7287 | exec 6>&1 | |
7288 | ||
25ed0b71 KW |
7289 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
7290 | # report actual input values of CONFIG_FILES etc. instead of their | |
7291 | # values after options handling. Logging --version etc. is OK. | |
7292 | exec 5>>config.log | |
7293 | { | |
7294 | echo | |
7295 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7296 | ## Running $as_me. ## | |
7297 | _ASBOX | |
7298 | } >&5 | |
7299 | cat >&5 <<_CSEOF | |
7300 | ||
7301 | This file was extended by readline $as_me 4.3, which was | |
430b7832 | 7302 | generated by GNU Autoconf 2.59. Invocation command line was |
25ed0b71 KW |
7303 | |
7304 | CONFIG_FILES = $CONFIG_FILES | |
7305 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7306 | CONFIG_LINKS = $CONFIG_LINKS | |
7307 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7308 | $ $0 $@ | |
7309 | ||
7310 | _CSEOF | |
7311 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
7312 | echo >&5 | |
9255ee31 EZ |
7313 | _ACEOF |
7314 | ||
7315 | # Files that config.status was made for. | |
7316 | if test -n "$ac_config_files"; then | |
7317 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
7318 | fi | |
7319 | ||
7320 | if test -n "$ac_config_headers"; then | |
7321 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
7322 | fi | |
7323 | ||
7324 | if test -n "$ac_config_links"; then | |
7325 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
7326 | fi | |
7327 | ||
7328 | if test -n "$ac_config_commands"; then | |
7329 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
7330 | fi | |
7331 | ||
25ed0b71 | 7332 | cat >>$CONFIG_STATUS <<\_ACEOF |
9255ee31 EZ |
7333 | |
7334 | ac_cs_usage="\ | |
7335 | \`$as_me' instantiates files from templates according to the | |
7336 | current configuration. | |
7337 | ||
7338 | Usage: $0 [OPTIONS] [FILE]... | |
7339 | ||
7340 | -h, --help print this help, then exit | |
7341 | -V, --version print version number, then exit | |
25ed0b71 | 7342 | -q, --quiet do not print progress messages |
9255ee31 EZ |
7343 | -d, --debug don't remove temporary files |
7344 | --recheck update $as_me by reconfiguring in the same conditions | |
7345 | --file=FILE[:TEMPLATE] | |
430b7832 | 7346 | instantiate the configuration file FILE |
9255ee31 | 7347 | --header=FILE[:TEMPLATE] |
430b7832 | 7348 | instantiate the configuration header FILE |
9255ee31 EZ |
7349 | |
7350 | Configuration files: | |
7351 | $config_files | |
7352 | ||
7353 | Configuration headers: | |
7354 | $config_headers | |
7355 | ||
7356 | Configuration commands: | |
7357 | $config_commands | |
7358 | ||
7359 | Report bugs to <bug-autoconf@gnu.org>." | |
25ed0b71 | 7360 | _ACEOF |
9255ee31 | 7361 | |
25ed0b71 | 7362 | cat >>$CONFIG_STATUS <<_ACEOF |
9255ee31 EZ |
7363 | ac_cs_version="\\ |
7364 | readline config.status 4.3 | |
430b7832 | 7365 | configured by $0, generated by GNU Autoconf 2.59, |
9255ee31 EZ |
7366 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
7367 | ||
430b7832 | 7368 | Copyright (C) 2003 Free Software Foundation, Inc. |
9255ee31 EZ |
7369 | This config.status script is free software; the Free Software Foundation |
7370 | gives unlimited permission to copy, distribute and modify it." | |
7371 | srcdir=$srcdir | |
7372 | INSTALL="$INSTALL" | |
25ed0b71 | 7373 | _ACEOF |
9255ee31 | 7374 | |
25ed0b71 | 7375 | cat >>$CONFIG_STATUS <<\_ACEOF |
9255ee31 EZ |
7376 | # If no file are specified by the user, then we need to provide default |
7377 | # value. By we need to know if files were specified by the user. | |
7378 | ac_need_defaults=: | |
7379 | while test $# != 0 | |
d60d9f65 | 7380 | do |
9255ee31 EZ |
7381 | case $1 in |
7382 | --*=*) | |
7383 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
7384 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
25ed0b71 KW |
7385 | ac_shift=: |
7386 | ;; | |
7387 | -*) | |
7388 | ac_option=$1 | |
7389 | ac_optarg=$2 | |
7390 | ac_shift=shift | |
9255ee31 | 7391 | ;; |
9255ee31 EZ |
7392 | *) # This is not an option, so the user has probably given explicit |
7393 | # arguments. | |
25ed0b71 | 7394 | ac_option=$1 |
9255ee31 EZ |
7395 | ac_need_defaults=false;; |
7396 | esac | |
7397 | ||
25ed0b71 | 7398 | case $ac_option in |
9255ee31 | 7399 | # Handling of the options. |
25ed0b71 KW |
7400 | _ACEOF |
7401 | cat >>$CONFIG_STATUS <<\_ACEOF | |
d60d9f65 | 7402 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
25ed0b71 | 7403 | ac_cs_recheck=: ;; |
9255ee31 EZ |
7404 | --version | --vers* | -V ) |
7405 | echo "$ac_cs_version"; exit 0 ;; | |
7406 | --he | --h) | |
7407 | # Conflict between --help and --header | |
25ed0b71 | 7408 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
9255ee31 EZ |
7409 | Try \`$0 --help' for more information." >&5 |
7410 | echo "$as_me: error: ambiguous option: $1 | |
7411 | Try \`$0 --help' for more information." >&2;} | |
7412 | { (exit 1); exit 1; }; };; | |
7413 | --help | --hel | -h ) | |
7414 | echo "$ac_cs_usage"; exit 0 ;; | |
7415 | --debug | --d* | -d ) | |
7416 | debug=: ;; | |
7417 | --file | --fil | --fi | --f ) | |
25ed0b71 KW |
7418 | $ac_shift |
7419 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
9255ee31 EZ |
7420 | ac_need_defaults=false;; |
7421 | --header | --heade | --head | --hea ) | |
25ed0b71 KW |
7422 | $ac_shift |
7423 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
9255ee31 | 7424 | ac_need_defaults=false;; |
25ed0b71 KW |
7425 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
7426 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7427 | ac_cs_silent=: ;; | |
9255ee31 EZ |
7428 | |
7429 | # This is an error. | |
25ed0b71 | 7430 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
9255ee31 EZ |
7431 | Try \`$0 --help' for more information." >&5 |
7432 | echo "$as_me: error: unrecognized option: $1 | |
7433 | Try \`$0 --help' for more information." >&2;} | |
7434 | { (exit 1); exit 1; }; } ;; | |
7435 | ||
7436 | *) ac_config_targets="$ac_config_targets $1" ;; | |
7437 | ||
d60d9f65 | 7438 | esac |
9255ee31 | 7439 | shift |
d60d9f65 SS |
7440 | done |
7441 | ||
25ed0b71 | 7442 | ac_configure_extra_args= |
9255ee31 | 7443 | |
25ed0b71 KW |
7444 | if $ac_cs_silent; then |
7445 | exec 6>/dev/null | |
7446 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7447 | fi | |
9255ee31 | 7448 | |
25ed0b71 KW |
7449 | _ACEOF |
7450 | cat >>$CONFIG_STATUS <<_ACEOF | |
7451 | if \$ac_cs_recheck; then | |
7452 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
7453 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
7454 | fi | |
d60d9f65 | 7455 | |
9255ee31 | 7456 | _ACEOF |
d60d9f65 | 7457 | |
25ed0b71 KW |
7458 | |
7459 | ||
7460 | ||
7461 | ||
7462 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9255ee31 EZ |
7463 | for ac_config_target in $ac_config_targets |
7464 | do | |
7465 | case "$ac_config_target" in | |
7466 | # Handling of arguments. | |
7467 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7468 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
7469 | "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; | |
7470 | "shlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES shlib/Makefile" ;; | |
7471 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
7472 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
25ed0b71 | 7473 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
9255ee31 EZ |
7474 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
7475 | { (exit 1); exit 1; }; };; | |
7476 | esac | |
7477 | done | |
7478 | ||
7479 | # If the user did not use the arguments to specify the items to instantiate, | |
7480 | # then the envvar interface is used. Set only those that are not. | |
7481 | # We use the long form for the default assignment because of an extremely | |
7482 | # bizarre bug on SunOS 4.1.3. | |
7483 | if $ac_need_defaults; then | |
7484 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7485 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7486 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
7487 | fi | |
7488 | ||
25ed0b71 KW |
7489 | # Have a temporary directory for convenience. Make it in the build tree |
7490 | # simply because there is no reason to put it here, and in addition, | |
7491 | # creating and moving files from /tmp can sometimes cause problems. | |
9255ee31 EZ |
7492 | # Create a temporary directory, and hook for its removal unless debugging. |
7493 | $debug || | |
7494 | { | |
7495 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
7496 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
7497 | } | |
7498 | ||
7499 | # Create a (secure) tmp directory for tmp files. | |
25ed0b71 | 7500 | |
9255ee31 | 7501 | { |
25ed0b71 | 7502 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
9255ee31 EZ |
7503 | test -n "$tmp" && test -d "$tmp" |
7504 | } || | |
7505 | { | |
25ed0b71 | 7506 | tmp=./confstat$$-$RANDOM |
9255ee31 EZ |
7507 | (umask 077 && mkdir $tmp) |
7508 | } || | |
7509 | { | |
25ed0b71 | 7510 | echo "$me: cannot create a temporary directory in ." >&2 |
9255ee31 EZ |
7511 | { (exit 1); exit 1; } |
7512 | } | |
d60d9f65 | 7513 | |
25ed0b71 | 7514 | _ACEOF |
d60d9f65 | 7515 | |
25ed0b71 | 7516 | cat >>$CONFIG_STATUS <<_ACEOF |
d60d9f65 | 7517 | |
9255ee31 EZ |
7518 | # |
7519 | # CONFIG_FILES section. | |
7520 | # | |
7521 | ||
7522 | # No need to generate the scripts if there are no CONFIG_FILES. | |
7523 | # This happens for instance when ./config.status config.h | |
7524 | if test -n "\$CONFIG_FILES"; then | |
7525 | # Protect against being on the right side of a sed subst in config.status. | |
7526 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
7527 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
7528 | s,@SHELL@,$SHELL,;t t | |
25ed0b71 KW |
7529 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
7530 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
7531 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
7532 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
7533 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
7534 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
9255ee31 EZ |
7535 | s,@exec_prefix@,$exec_prefix,;t t |
7536 | s,@prefix@,$prefix,;t t | |
7537 | s,@program_transform_name@,$program_transform_name,;t t | |
7538 | s,@bindir@,$bindir,;t t | |
7539 | s,@sbindir@,$sbindir,;t t | |
7540 | s,@libexecdir@,$libexecdir,;t t | |
7541 | s,@datadir@,$datadir,;t t | |
7542 | s,@sysconfdir@,$sysconfdir,;t t | |
7543 | s,@sharedstatedir@,$sharedstatedir,;t t | |
7544 | s,@localstatedir@,$localstatedir,;t t | |
7545 | s,@libdir@,$libdir,;t t | |
7546 | s,@includedir@,$includedir,;t t | |
7547 | s,@oldincludedir@,$oldincludedir,;t t | |
7548 | s,@infodir@,$infodir,;t t | |
7549 | s,@mandir@,$mandir,;t t | |
9255ee31 EZ |
7550 | s,@build_alias@,$build_alias,;t t |
7551 | s,@host_alias@,$host_alias,;t t | |
7552 | s,@target_alias@,$target_alias,;t t | |
25ed0b71 | 7553 | s,@DEFS@,$DEFS,;t t |
9255ee31 EZ |
7554 | s,@ECHO_C@,$ECHO_C,;t t |
7555 | s,@ECHO_N@,$ECHO_N,;t t | |
7556 | s,@ECHO_T@,$ECHO_T,;t t | |
9255ee31 EZ |
7557 | s,@LIBS@,$LIBS,;t t |
7558 | s,@build@,$build,;t t | |
7559 | s,@build_cpu@,$build_cpu,;t t | |
7560 | s,@build_vendor@,$build_vendor,;t t | |
7561 | s,@build_os@,$build_os,;t t | |
7562 | s,@host@,$host,;t t | |
7563 | s,@host_cpu@,$host_cpu,;t t | |
7564 | s,@host_vendor@,$host_vendor,;t t | |
7565 | s,@host_os@,$host_os,;t t | |
7566 | s,@SET_MAKE@,$SET_MAKE,;t t | |
7567 | s,@CC@,$CC,;t t | |
7568 | s,@CFLAGS@,$CFLAGS,;t t | |
7569 | s,@LDFLAGS@,$LDFLAGS,;t t | |
7570 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
7571 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
7572 | s,@EXEEXT@,$EXEEXT,;t t | |
7573 | s,@OBJEXT@,$OBJEXT,;t t | |
7574 | s,@CPP@,$CPP,;t t | |
25ed0b71 | 7575 | s,@EGREP@,$EGREP,;t t |
9255ee31 EZ |
7576 | s,@CROSS_COMPILING_FLAG@,$CROSS_COMPILING_FLAG,;t t |
7577 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
7578 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
7579 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
7580 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
7581 | s,@AR@,$AR,;t t | |
7582 | s,@RANLIB@,$RANLIB,;t t | |
7583 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
7584 | s,@MAKE_SHELL@,$MAKE_SHELL,;t t | |
25ed0b71 | 7585 | s,@WCWIDTH_OBJ@,$WCWIDTH_OBJ,;t t |
9255ee31 EZ |
7586 | s,@SHOBJ_CC@,$SHOBJ_CC,;t t |
7587 | s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t | |
7588 | s,@SHOBJ_LD@,$SHOBJ_LD,;t t | |
7589 | s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t | |
7590 | s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t | |
7591 | s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t | |
7592 | s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t | |
7593 | s,@SHLIB_STATUS@,$SHLIB_STATUS,;t t | |
7594 | s,@SHLIB_XLDFLAGS@,$SHLIB_XLDFLAGS,;t t | |
7595 | s,@SHLIB_LIBSUFF@,$SHLIB_LIBSUFF,;t t | |
7596 | s,@SHLIB_LIBVERSION@,$SHLIB_LIBVERSION,;t t | |
7597 | s,@SHLIB_LIBS@,$SHLIB_LIBS,;t t | |
7598 | s,@SHLIB_MAJOR@,$SHLIB_MAJOR,;t t | |
7599 | s,@SHLIB_MINOR@,$SHLIB_MINOR,;t t | |
7600 | s,@STATIC_TARGET@,$STATIC_TARGET,;t t | |
7601 | s,@SHARED_TARGET@,$SHARED_TARGET,;t t | |
7602 | s,@STATIC_INSTALL_TARGET@,$STATIC_INSTALL_TARGET,;t t | |
7603 | s,@SHARED_INSTALL_TARGET@,$SHARED_INSTALL_TARGET,;t t | |
7604 | s,@BUILD_DIR@,$BUILD_DIR,;t t | |
7605 | s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t | |
7606 | s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t | |
7607 | s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t | |
7608 | s,@ARFLAGS@,$ARFLAGS,;t t | |
7609 | s,@LIBVERSION@,$LIBVERSION,;t t | |
7610 | s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t | |
25ed0b71 KW |
7611 | s,@LIBOBJS@,$LIBOBJS,;t t |
7612 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
9255ee31 EZ |
7613 | CEOF |
7614 | ||
25ed0b71 | 7615 | _ACEOF |
9255ee31 | 7616 | |
25ed0b71 | 7617 | cat >>$CONFIG_STATUS <<\_ACEOF |
9255ee31 EZ |
7618 | # Split the substitutions into bite-sized pieces for seds with |
7619 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
7620 | ac_max_sed_lines=48 | |
7621 | ac_sed_frag=1 # Number of current file. | |
7622 | ac_beg=1 # First line for current file. | |
7623 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
7624 | ac_more_lines=: | |
7625 | ac_sed_cmds= | |
7626 | while $ac_more_lines; do | |
7627 | if test $ac_beg -gt 1; then | |
7628 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7629 | else | |
7630 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7631 | fi | |
7632 | if test ! -s $tmp/subs.frag; then | |
7633 | ac_more_lines=false | |
d60d9f65 | 7634 | else |
9255ee31 EZ |
7635 | # The purpose of the label and of the branching condition is to |
7636 | # speed up the sed processing (if there are no `@' at all, there | |
7637 | # is no need to browse any of the substitutions). | |
7638 | # These are the two extra sed commands mentioned above. | |
7639 | (echo ':t | |
7640 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
7641 | if test -z "$ac_sed_cmds"; then | |
430b7832 | 7642 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
9255ee31 | 7643 | else |
430b7832 | 7644 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
9255ee31 EZ |
7645 | fi |
7646 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
7647 | ac_beg=$ac_end | |
7648 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
d60d9f65 | 7649 | fi |
9255ee31 EZ |
7650 | done |
7651 | if test -z "$ac_sed_cmds"; then | |
7652 | ac_sed_cmds=cat | |
d60d9f65 | 7653 | fi |
9255ee31 | 7654 | fi # test -n "$CONFIG_FILES" |
d60d9f65 | 7655 | |
25ed0b71 KW |
7656 | _ACEOF |
7657 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9255ee31 | 7658 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
d60d9f65 | 7659 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
9255ee31 EZ |
7660 | case $ac_file in |
7661 | - | *:- | *:-:* ) # input from stdin | |
430b7832 MM |
7662 | cat >$tmp/stdin |
7663 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7664 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9255ee31 | 7665 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
430b7832 | 7666 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
9255ee31 | 7667 | * ) ac_file_in=$ac_file.in ;; |
d60d9f65 SS |
7668 | esac |
7669 | ||
9255ee31 | 7670 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
25ed0b71 KW |
7671 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
7672 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
430b7832 MM |
7673 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
7674 | X"$ac_file" : 'X\(//\)$' \| \ | |
7675 | X"$ac_file" : 'X\(/\)' \| \ | |
7676 | . : '\(.\)' 2>/dev/null || | |
9255ee31 EZ |
7677 | echo X"$ac_file" | |
7678 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7679 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7680 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7681 | /^X\(\/\).*/{ s//\1/; q; } | |
7682 | s/.*/./; q'` | |
25ed0b71 KW |
7683 | { if $as_mkdir_p; then |
7684 | mkdir -p "$ac_dir" | |
d60d9f65 | 7685 | else |
25ed0b71 KW |
7686 | as_dir="$ac_dir" |
7687 | as_dirs= | |
7688 | while test ! -d "$as_dir"; do | |
7689 | as_dirs="$as_dir $as_dirs" | |
7690 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7691 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
430b7832 MM |
7692 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
7693 | X"$as_dir" : 'X\(//\)$' \| \ | |
7694 | X"$as_dir" : 'X\(/\)' \| \ | |
7695 | . : '\(.\)' 2>/dev/null || | |
25ed0b71 KW |
7696 | echo X"$as_dir" | |
7697 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7698 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7699 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7700 | /^X\(\/\).*/{ s//\1/; q; } | |
7701 | s/.*/./; q'` | |
7702 | done | |
7703 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7704 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7705 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7706 | { (exit 1); exit 1; }; }; } | |
d60d9f65 | 7707 | |
25ed0b71 KW |
7708 | ac_builddir=. |
7709 | ||
7710 | if test "$ac_dir" != .; then | |
7711 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
7712 | # A "../" for each directory in $ac_dir_suffix. | |
7713 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
7714 | else | |
7715 | ac_dir_suffix= ac_top_builddir= | |
7716 | fi | |
7717 | ||
7718 | case $srcdir in | |
7719 | .) # No --srcdir option. We are building in place. | |
7720 | ac_srcdir=. | |
7721 | if test -z "$ac_top_builddir"; then | |
7722 | ac_top_srcdir=. | |
7723 | else | |
7724 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
7725 | fi ;; | |
7726 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
7727 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7728 | ac_top_srcdir=$srcdir ;; | |
d60d9f65 | 7729 | *) # Relative path. |
25ed0b71 KW |
7730 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
7731 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
7732 | esac | |
430b7832 MM |
7733 | |
7734 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
7735 | # the directories may not exist. | |
7736 | case `pwd` in | |
7737 | .) ac_abs_builddir="$ac_dir";; | |
7738 | *) | |
7739 | case "$ac_dir" in | |
7740 | .) ac_abs_builddir=`pwd`;; | |
7741 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
7742 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
7743 | esac;; | |
7744 | esac | |
7745 | case $ac_abs_builddir in | |
7746 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7747 | *) | |
7748 | case ${ac_top_builddir}. in | |
7749 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
7750 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7751 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
7752 | esac;; | |
7753 | esac | |
7754 | case $ac_abs_builddir in | |
7755 | .) ac_abs_srcdir=$ac_srcdir;; | |
7756 | *) | |
7757 | case $ac_srcdir in | |
7758 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
7759 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
7760 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
7761 | esac;; | |
7762 | esac | |
7763 | case $ac_abs_builddir in | |
7764 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7765 | *) | |
7766 | case $ac_top_srcdir in | |
7767 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
7768 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7769 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
7770 | esac;; | |
7771 | esac | |
25ed0b71 | 7772 | |
d60d9f65 | 7773 | |
9255ee31 EZ |
7774 | case $INSTALL in |
7775 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
25ed0b71 | 7776 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
d60d9f65 SS |
7777 | esac |
7778 | ||
9255ee31 | 7779 | if test x"$ac_file" != x-; then |
25ed0b71 | 7780 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
9255ee31 EZ |
7781 | echo "$as_me: creating $ac_file" >&6;} |
7782 | rm -f "$ac_file" | |
7783 | fi | |
7784 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7785 | # use $as_me), people would be surprised to read: | |
25ed0b71 KW |
7786 | # /* config.h. Generated by config.status. */ |
7787 | if test x"$ac_file" = x-; then | |
7788 | configure_input= | |
7789 | else | |
7790 | configure_input="$ac_file. " | |
7791 | fi | |
7792 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
430b7832 | 7793 | sed 's,.*/,,'` by configure." |
9255ee31 EZ |
7794 | |
7795 | # First look for the input files in the build tree, otherwise in the | |
7796 | # src tree. | |
7797 | ac_file_inputs=`IFS=: | |
7798 | for f in $ac_file_in; do | |
7799 | case $f in | |
7800 | -) echo $tmp/stdin ;; | |
7801 | [\\/$]*) | |
430b7832 MM |
7802 | # Absolute (can't be DOS-style, as IFS=:) |
7803 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9255ee31 EZ |
7804 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7805 | { (exit 1); exit 1; }; } | |
430b7832 | 7806 | echo "$f";; |
9255ee31 | 7807 | *) # Relative |
430b7832 MM |
7808 | if test -f "$f"; then |
7809 | # Build tree | |
7810 | echo "$f" | |
7811 | elif test -f "$srcdir/$f"; then | |
7812 | # Source tree | |
7813 | echo "$srcdir/$f" | |
7814 | else | |
7815 | # /dev/null tree | |
7816 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9255ee31 EZ |
7817 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7818 | { (exit 1); exit 1; }; } | |
430b7832 | 7819 | fi;; |
9255ee31 EZ |
7820 | esac |
7821 | done` || { (exit 1); exit 1; } | |
25ed0b71 KW |
7822 | _ACEOF |
7823 | cat >>$CONFIG_STATUS <<_ACEOF | |
9255ee31 EZ |
7824 | sed "$ac_vpsub |
7825 | $extrasub | |
25ed0b71 KW |
7826 | _ACEOF |
7827 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9255ee31 EZ |
7828 | :t |
7829 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7830 | s,@configure_input@,$configure_input,;t t | |
7831 | s,@srcdir@,$ac_srcdir,;t t | |
25ed0b71 | 7832 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
9255ee31 | 7833 | s,@top_srcdir@,$ac_top_srcdir,;t t |
25ed0b71 KW |
7834 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
7835 | s,@builddir@,$ac_builddir,;t t | |
7836 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
7837 | s,@top_builddir@,$ac_top_builddir,;t t | |
7838 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
9255ee31 EZ |
7839 | s,@INSTALL@,$ac_INSTALL,;t t |
7840 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
7841 | rm -f $tmp/stdin | |
7842 | if test x"$ac_file" != x-; then | |
7843 | mv $tmp/out $ac_file | |
7844 | else | |
7845 | cat $tmp/out | |
7846 | rm -f $tmp/out | |
7847 | fi | |
7848 | ||
7849 | done | |
25ed0b71 KW |
7850 | _ACEOF |
7851 | cat >>$CONFIG_STATUS <<\_ACEOF | |
d60d9f65 | 7852 | |
9255ee31 EZ |
7853 | # |
7854 | # CONFIG_HEADER section. | |
7855 | # | |
d60d9f65 SS |
7856 | |
7857 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
7858 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
7859 | # | |
7860 | # ac_d sets the value in "#define NAME VALUE" lines. | |
430b7832 MM |
7861 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
7862 | ac_dB='[ ].*$,\1#\2' | |
9255ee31 EZ |
7863 | ac_dC=' ' |
7864 | ac_dD=',;t' | |
7865 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
430b7832 | 7866 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
9255ee31 | 7867 | ac_uB='$,\1#\2define\3' |
d60d9f65 | 7868 | ac_uC=' ' |
9255ee31 | 7869 | ac_uD=',;t' |
d60d9f65 | 7870 | |
9255ee31 | 7871 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
d60d9f65 | 7872 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
9255ee31 EZ |
7873 | case $ac_file in |
7874 | - | *:- | *:-:* ) # input from stdin | |
430b7832 MM |
7875 | cat >$tmp/stdin |
7876 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7877 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9255ee31 | 7878 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
430b7832 | 7879 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
9255ee31 | 7880 | * ) ac_file_in=$ac_file.in ;; |
d60d9f65 SS |
7881 | esac |
7882 | ||
25ed0b71 | 7883 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
9255ee31 EZ |
7884 | echo "$as_me: creating $ac_file" >&6;} |
7885 | ||
7886 | # First look for the input files in the build tree, otherwise in the | |
7887 | # src tree. | |
7888 | ac_file_inputs=`IFS=: | |
7889 | for f in $ac_file_in; do | |
7890 | case $f in | |
7891 | -) echo $tmp/stdin ;; | |
7892 | [\\/$]*) | |
430b7832 MM |
7893 | # Absolute (can't be DOS-style, as IFS=:) |
7894 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9255ee31 EZ |
7895 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7896 | { (exit 1); exit 1; }; } | |
430b7832 MM |
7897 | # Do quote $f, to prevent DOS paths from being IFS'd. |
7898 | echo "$f";; | |
9255ee31 | 7899 | *) # Relative |
430b7832 MM |
7900 | if test -f "$f"; then |
7901 | # Build tree | |
7902 | echo "$f" | |
7903 | elif test -f "$srcdir/$f"; then | |
7904 | # Source tree | |
7905 | echo "$srcdir/$f" | |
7906 | else | |
7907 | # /dev/null tree | |
7908 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9255ee31 EZ |
7909 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7910 | { (exit 1); exit 1; }; } | |
430b7832 | 7911 | fi;; |
9255ee31 EZ |
7912 | esac |
7913 | done` || { (exit 1); exit 1; } | |
7914 | # Remove the trailing spaces. | |
430b7832 | 7915 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
d60d9f65 | 7916 | |
25ed0b71 | 7917 | _ACEOF |
d60d9f65 | 7918 | |
9255ee31 EZ |
7919 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
7920 | # `conftest.undefs', that substitutes the proper values into | |
7921 | # config.h.in to produce config.h. The first handles `#define' | |
7922 | # templates, and the second `#undef' templates. | |
7923 | # And first: Protect against being on the right side of a sed subst in | |
7924 | # config.status. Protect against being in an unquoted here document | |
7925 | # in config.status. | |
7926 | rm -f conftest.defines conftest.undefs | |
7927 | # Using a here document instead of a string reduces the quoting nightmare. | |
7928 | # Putting comments in sed scripts is not portable. | |
7929 | # | |
7930 | # `end' is used to avoid that the second main sed command (meant for | |
7931 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
7932 | # See the Autoconf documentation for `clear'. | |
25ed0b71 | 7933 | cat >confdef2sed.sed <<\_ACEOF |
9255ee31 EZ |
7934 | s/[\\&,]/\\&/g |
7935 | s,[\\$`],\\&,g | |
7936 | t clear | |
7937 | : clear | |
430b7832 | 7938 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
9255ee31 | 7939 | t end |
430b7832 | 7940 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
9255ee31 | 7941 | : end |
25ed0b71 | 7942 | _ACEOF |
9255ee31 EZ |
7943 | # If some macros were called several times there might be several times |
7944 | # the same #defines, which is useless. Nevertheless, we may not want to | |
7945 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
7946 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
7947 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
7948 | rm -f confdef2sed.sed | |
d60d9f65 SS |
7949 | |
7950 | # This sed command replaces #undef with comments. This is necessary, for | |
7951 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
7952 | # on some systems where configure will not decide to define it. | |
25ed0b71 | 7953 | cat >>conftest.undefs <<\_ACEOF |
430b7832 | 7954 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
25ed0b71 | 7955 | _ACEOF |
d60d9f65 | 7956 | |
9255ee31 EZ |
7957 | # Break up conftest.defines because some shells have a limit on the size |
7958 | # of here documents, and old seds have small limits too (100 cmds). | |
7959 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
430b7832 | 7960 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
9255ee31 EZ |
7961 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
7962 | echo ' :' >>$CONFIG_STATUS | |
7963 | rm -f conftest.tail | |
7964 | while grep . conftest.defines >/dev/null | |
7965 | do | |
7966 | # Write a limited-size here document to $tmp/defines.sed. | |
7967 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
7968 | # Speed up: don't consider the non `#define' lines. | |
430b7832 | 7969 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
9255ee31 EZ |
7970 | # Work around the forget-to-reset-the-flag bug. |
7971 | echo 't clr' >>$CONFIG_STATUS | |
7972 | echo ': clr' >>$CONFIG_STATUS | |
7973 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
7974 | echo 'CEOF | |
7975 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
7976 | rm -f $tmp/in | |
7977 | mv $tmp/out $tmp/in | |
7978 | ' >>$CONFIG_STATUS | |
7979 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
7980 | rm -f conftest.defines | |
7981 | mv conftest.tail conftest.defines | |
7982 | done | |
7983 | rm -f conftest.defines | |
25ed0b71 | 7984 | echo ' fi # grep' >>$CONFIG_STATUS |
9255ee31 | 7985 | echo >>$CONFIG_STATUS |
d60d9f65 | 7986 | |
9255ee31 EZ |
7987 | # Break up conftest.undefs because some shells have a limit on the size |
7988 | # of here documents, and old seds have small limits too (100 cmds). | |
7989 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
d60d9f65 | 7990 | rm -f conftest.tail |
9255ee31 | 7991 | while grep . conftest.undefs >/dev/null |
d60d9f65 | 7992 | do |
9255ee31 EZ |
7993 | # Write a limited-size here document to $tmp/undefs.sed. |
7994 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
7995 | # Speed up: don't consider the non `#undef' | |
430b7832 | 7996 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
9255ee31 EZ |
7997 | # Work around the forget-to-reset-the-flag bug. |
7998 | echo 't clr' >>$CONFIG_STATUS | |
7999 | echo ': clr' >>$CONFIG_STATUS | |
8000 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
d60d9f65 | 8001 | echo 'CEOF |
9255ee31 EZ |
8002 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
8003 | rm -f $tmp/in | |
8004 | mv $tmp/out $tmp/in | |
8005 | ' >>$CONFIG_STATUS | |
8006 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
8007 | rm -f conftest.undefs | |
8008 | mv conftest.tail conftest.undefs | |
d60d9f65 | 8009 | done |
9255ee31 EZ |
8010 | rm -f conftest.undefs |
8011 | ||
25ed0b71 | 8012 | cat >>$CONFIG_STATUS <<\_ACEOF |
9255ee31 EZ |
8013 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
8014 | # use $as_me), people would be surprised to read: | |
25ed0b71 | 8015 | # /* config.h. Generated by config.status. */ |
9255ee31 | 8016 | if test x"$ac_file" = x-; then |
25ed0b71 | 8017 | echo "/* Generated by configure. */" >$tmp/config.h |
d60d9f65 | 8018 | else |
25ed0b71 | 8019 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
9255ee31 EZ |
8020 | fi |
8021 | cat $tmp/in >>$tmp/config.h | |
8022 | rm -f $tmp/in | |
8023 | if test x"$ac_file" != x-; then | |
25ed0b71 KW |
8024 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
8025 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
9255ee31 EZ |
8026 | echo "$as_me: $ac_file is unchanged" >&6;} |
8027 | else | |
25ed0b71 KW |
8028 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
8029 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
430b7832 MM |
8030 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
8031 | X"$ac_file" : 'X\(//\)$' \| \ | |
8032 | X"$ac_file" : 'X\(/\)' \| \ | |
8033 | . : '\(.\)' 2>/dev/null || | |
9255ee31 EZ |
8034 | echo X"$ac_file" | |
8035 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8036 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8037 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8038 | /^X\(\/\).*/{ s//\1/; q; } | |
8039 | s/.*/./; q'` | |
25ed0b71 KW |
8040 | { if $as_mkdir_p; then |
8041 | mkdir -p "$ac_dir" | |
8042 | else | |
8043 | as_dir="$ac_dir" | |
8044 | as_dirs= | |
8045 | while test ! -d "$as_dir"; do | |
8046 | as_dirs="$as_dir $as_dirs" | |
8047 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8048 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
430b7832 MM |
8049 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
8050 | X"$as_dir" : 'X\(//\)$' \| \ | |
8051 | X"$as_dir" : 'X\(/\)' \| \ | |
8052 | . : '\(.\)' 2>/dev/null || | |
25ed0b71 KW |
8053 | echo X"$as_dir" | |
8054 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8055 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8056 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8057 | /^X\(\/\).*/{ s//\1/; q; } | |
8058 | s/.*/./; q'` | |
8059 | done | |
8060 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8061 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8062 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8063 | { (exit 1); exit 1; }; }; } | |
9255ee31 | 8064 | |
9255ee31 EZ |
8065 | rm -f $ac_file |
8066 | mv $tmp/config.h $ac_file | |
d60d9f65 | 8067 | fi |
9255ee31 EZ |
8068 | else |
8069 | cat $tmp/config.h | |
8070 | rm -f $tmp/config.h | |
d60d9f65 | 8071 | fi |
9255ee31 | 8072 | done |
25ed0b71 KW |
8073 | _ACEOF |
8074 | cat >>$CONFIG_STATUS <<\_ACEOF | |
d60d9f65 | 8075 | |
9255ee31 EZ |
8076 | # |
8077 | # CONFIG_COMMANDS section. | |
8078 | # | |
8079 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
8080 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
8081 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25ed0b71 KW |
8082 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
8083 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
430b7832 MM |
8084 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
8085 | X"$ac_dest" : 'X\(//\)$' \| \ | |
8086 | X"$ac_dest" : 'X\(/\)' \| \ | |
8087 | . : '\(.\)' 2>/dev/null || | |
25ed0b71 KW |
8088 | echo X"$ac_dest" | |
8089 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8090 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8091 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8092 | /^X\(\/\).*/{ s//\1/; q; } | |
8093 | s/.*/./; q'` | |
430b7832 MM |
8094 | { if $as_mkdir_p; then |
8095 | mkdir -p "$ac_dir" | |
8096 | else | |
8097 | as_dir="$ac_dir" | |
8098 | as_dirs= | |
8099 | while test ! -d "$as_dir"; do | |
8100 | as_dirs="$as_dir $as_dirs" | |
8101 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8102 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8103 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8104 | X"$as_dir" : 'X\(//\)$' \| \ | |
8105 | X"$as_dir" : 'X\(/\)' \| \ | |
8106 | . : '\(.\)' 2>/dev/null || | |
8107 | echo X"$as_dir" | | |
8108 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8109 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8110 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8111 | /^X\(\/\).*/{ s//\1/; q; } | |
8112 | s/.*/./; q'` | |
8113 | done | |
8114 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8115 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8116 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8117 | { (exit 1); exit 1; }; }; } | |
8118 | ||
25ed0b71 KW |
8119 | ac_builddir=. |
8120 | ||
8121 | if test "$ac_dir" != .; then | |
8122 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
8123 | # A "../" for each directory in $ac_dir_suffix. | |
8124 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8125 | else | |
8126 | ac_dir_suffix= ac_top_builddir= | |
8127 | fi | |
8128 | ||
8129 | case $srcdir in | |
8130 | .) # No --srcdir option. We are building in place. | |
8131 | ac_srcdir=. | |
8132 | if test -z "$ac_top_builddir"; then | |
8133 | ac_top_srcdir=. | |
8134 | else | |
8135 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8136 | fi ;; | |
8137 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8138 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8139 | ac_top_srcdir=$srcdir ;; | |
8140 | *) # Relative path. | |
8141 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
8142 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8143 | esac | |
430b7832 MM |
8144 | |
8145 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
8146 | # the directories may not exist. | |
8147 | case `pwd` in | |
8148 | .) ac_abs_builddir="$ac_dir";; | |
8149 | *) | |
8150 | case "$ac_dir" in | |
8151 | .) ac_abs_builddir=`pwd`;; | |
8152 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
8153 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
8154 | esac;; | |
8155 | esac | |
8156 | case $ac_abs_builddir in | |
8157 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8158 | *) | |
8159 | case ${ac_top_builddir}. in | |
8160 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
8161 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8162 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
8163 | esac;; | |
8164 | esac | |
8165 | case $ac_abs_builddir in | |
8166 | .) ac_abs_srcdir=$ac_srcdir;; | |
8167 | *) | |
8168 | case $ac_srcdir in | |
8169 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
8170 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
8171 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
8172 | esac;; | |
8173 | esac | |
8174 | case $ac_abs_builddir in | |
8175 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8176 | *) | |
8177 | case $ac_top_srcdir in | |
8178 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
8179 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8180 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
8181 | esac;; | |
8182 | esac | |
25ed0b71 | 8183 | |
d60d9f65 | 8184 | |
25ed0b71 KW |
8185 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
8186 | echo "$as_me: executing $ac_dest commands" >&6;} | |
9255ee31 EZ |
8187 | case $ac_dest in |
8188 | default ) | |
d60d9f65 SS |
8189 | # Makefile uses this timestamp file to record whether config.h is up to date. |
8190 | echo > stamp-h | |
9255ee31 EZ |
8191 | ;; |
8192 | esac | |
8193 | done | |
25ed0b71 | 8194 | _ACEOF |
d60d9f65 | 8195 | |
25ed0b71 | 8196 | cat >>$CONFIG_STATUS <<\_ACEOF |
9255ee31 EZ |
8197 | |
8198 | { (exit 0); exit 0; } | |
25ed0b71 | 8199 | _ACEOF |
d60d9f65 | 8200 | chmod +x $CONFIG_STATUS |
9255ee31 EZ |
8201 | ac_clean_files=$ac_clean_files_save |
8202 | ||
25ed0b71 | 8203 | |
9255ee31 EZ |
8204 | # configure is writing to config.log, and then calls config.status. |
8205 | # config.status does its own redirection, appending to config.log. | |
8206 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8207 | # by configure, so config.status won't be able to write to it; its | |
8208 | # output is simply discarded. So we exec the FD to /dev/null, | |
8209 | # effectively closing config.log, so it can be properly (re)opened and | |
8210 | # appended to by config.status. When coming back to configure, we | |
8211 | # need to make the FD available again. | |
8212 | if test "$no_create" != yes; then | |
8213 | ac_cs_success=: | |
25ed0b71 KW |
8214 | ac_config_status_args= |
8215 | test "$silent" = yes && | |
8216 | ac_config_status_args="$ac_config_status_args --quiet" | |
9255ee31 | 8217 | exec 5>/dev/null |
25ed0b71 | 8218 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
9255ee31 EZ |
8219 | exec 5>>config.log |
8220 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8221 | # would make configure fail if this is the last instruction. | |
8222 | $ac_cs_success || { (exit 1); exit 1; } | |
8223 | fi | |
d60d9f65 | 8224 |