Commit | Line | Data |
---|---|---|
d60d9f65 | 1 | #! /bin/sh |
5bdf8622 | 2 | # From configure.in for Readline 5.1, version 2.59. |
9255ee31 | 3 | # Guess values for system-dependent variables and create Makefiles. |
81ecdfbb | 4 | # Generated by GNU Autoconf 2.64 for readline 5.1-release. |
9255ee31 EZ |
5 | # |
6 | # Report bugs to <bug-readline@gnu.org>. | |
7 | # | |
81ecdfbb RW |
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
10 | # Foundation, Inc. | |
11 | # | |
9255ee31 EZ |
12 | # This configure script is free software; the Free Software Foundation |
13 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
14 | ## -------------------- ## |
15 | ## M4sh Initialization. ## | |
16 | ## -------------------- ## | |
d60d9f65 | 17 | |
81ecdfbb RW |
18 | # Be more Bourne compatible |
19 | DUALCASE=1; export DUALCASE # for MKS sh | |
20 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
25ed0b71 KW |
21 | emulate sh |
22 | NULLCMD=: | |
81ecdfbb | 23 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
25ed0b71 KW |
24 | # is contrary to our usage. Disable this feature. |
25 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
26 | setopt NO_GLOB_SUBST |
27 | else | |
28 | case `(set -o) 2>/dev/null` in #( | |
29 | *posix*) : | |
30 | set -o posix ;; #( | |
31 | *) : | |
32 | ;; | |
33 | esac | |
25ed0b71 KW |
34 | fi |
35 | ||
81ecdfbb RW |
36 | |
37 | as_nl=' | |
38 | ' | |
39 | export as_nl | |
40 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
41 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
45 | # but without wasting forks for bash or zsh. | |
46 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
47 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='print -r --' | |
49 | as_echo_n='print -rn --' | |
50 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
51 | as_echo='printf %s\n' | |
52 | as_echo_n='printf %s' | |
53 | else | |
54 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
55 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
56 | as_echo_n='/usr/ucb/echo -n' | |
57 | else | |
58 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
59 | as_echo_n_body='eval | |
60 | arg=$1; | |
61 | case $arg in #( | |
62 | *"$as_nl"*) | |
63 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
64 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
65 | esac; | |
66 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
67 | ' | |
68 | export as_echo_n_body | |
69 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
70 | fi | |
71 | export as_echo_body | |
72 | as_echo='sh -c $as_echo_body as_echo' | |
73 | fi | |
74 | ||
75 | # The user is always right. | |
76 | if test "${PATH_SEPARATOR+set}" != set; then | |
77 | PATH_SEPARATOR=: | |
78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
80 | PATH_SEPARATOR=';' | |
81 | } | |
25ed0b71 KW |
82 | fi |
83 | ||
84 | ||
81ecdfbb RW |
85 | # IFS |
86 | # We need space, tab and new line, in precisely that order. Quoting is | |
87 | # there to prevent editors from complaining about space-tab. | |
88 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
89 | # splitting by setting IFS to empty value.) | |
90 | IFS=" "" $as_nl" | |
91 | ||
92 | # Find who we are. Look in the path if we contain no directory separator. | |
93 | case $0 in #(( | |
94 | *[\\/]* ) as_myself=$0 ;; | |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 | done | |
102 | IFS=$as_save_IFS | |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 | exit 1 | |
114 | fi | |
115 | ||
116 | # Unset variables that we do not need and which cause bugs (e.g. in | |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 | done | |
25ed0b71 KW |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
81ecdfbb RW |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
133 | ||
134 | # CDPATH. | |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
137 | if test "x$CONFIG_SHELL" = x; then | |
138 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
139 | emulate sh | |
140 | NULLCMD=: | |
141 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
142 | # is contrary to our usage. Disable this feature. | |
143 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
144 | setopt NO_GLOB_SUBST | |
145 | else | |
146 | case \`(set -o) 2>/dev/null\` in #( | |
147 | *posix*) : | |
148 | set -o posix ;; #( | |
149 | *) : | |
150 | ;; | |
151 | esac | |
152 | fi | |
153 | " | |
154 | as_required="as_fn_return () { (exit \$1); } | |
155 | as_fn_success () { as_fn_return 0; } | |
156 | as_fn_failure () { as_fn_return 1; } | |
157 | as_fn_ret_success () { return 0; } | |
158 | as_fn_ret_failure () { return 1; } | |
159 | ||
160 | exitcode=0 | |
161 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
162 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
163 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
164 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
165 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
166 | ||
167 | else | |
168 | exitcode=1; echo positional parameters were not saved. | |
169 | fi | |
170 | test x\$exitcode = x0 || exit 1" | |
171 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
172 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
173 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
174 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
175 | test \$(( 1 + 1 )) = 2 || exit 1" | |
176 | if (eval "$as_required") 2>/dev/null; then : | |
177 | as_have_required=yes | |
178 | else | |
179 | as_have_required=no | |
180 | fi | |
181 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
182 | ||
183 | else | |
184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
185 | as_found=false | |
186 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
25ed0b71 | 187 | do |
81ecdfbb RW |
188 | IFS=$as_save_IFS |
189 | test -z "$as_dir" && as_dir=. | |
190 | as_found=: | |
191 | case $as_dir in #( | |
192 | /*) | |
193 | for as_base in sh bash ksh sh5; do | |
194 | # Try only shells that exist, to save several forks. | |
195 | as_shell=$as_dir/$as_base | |
196 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
197 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
198 | CONFIG_SHELL=$as_shell as_have_required=yes | |
199 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
200 | break 2 | |
201 | fi | |
202 | fi | |
203 | done;; | |
204 | esac | |
205 | as_found=false | |
206 | done | |
207 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
208 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
209 | CONFIG_SHELL=$SHELL as_have_required=yes | |
210 | fi; } | |
211 | IFS=$as_save_IFS | |
212 | ||
213 | ||
214 | if test "x$CONFIG_SHELL" != x; then : | |
215 | # We cannot yet assume a decent shell, so we have to provide a | |
216 | # neutralization value for shells without unset; and this also | |
217 | # works around shells that cannot unset nonexistent variables. | |
218 | BASH_ENV=/dev/null | |
219 | ENV=/dev/null | |
220 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
221 | export CONFIG_SHELL | |
222 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
223 | fi | |
224 | ||
225 | if test x$as_have_required = xno; then : | |
226 | $as_echo "$0: This script requires a shell more modern than all" | |
227 | $as_echo "$0: the shells that I found on your system." | |
228 | if test x${ZSH_VERSION+set} = xset ; then | |
229 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
230 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
25ed0b71 | 231 | else |
81ecdfbb RW |
232 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
233 | $0: bug-readline@gnu.org about your system, including any | |
234 | $0: error possibly output before this message. Then install | |
235 | $0: a modern shell, or manually run the script under such a | |
236 | $0: shell if you do have one." | |
25ed0b71 | 237 | fi |
81ecdfbb RW |
238 | exit 1 |
239 | fi | |
240 | fi | |
241 | fi | |
242 | SHELL=${CONFIG_SHELL-/bin/sh} | |
243 | export SHELL | |
244 | # Unset more variables known to interfere with behavior of common tools. | |
245 | CLICOLOR_FORCE= GREP_OPTIONS= | |
246 | unset CLICOLOR_FORCE GREP_OPTIONS | |
247 | ||
248 | ## --------------------- ## | |
249 | ## M4sh Shell Functions. ## | |
250 | ## --------------------- ## | |
251 | # as_fn_unset VAR | |
252 | # --------------- | |
253 | # Portably unset VAR. | |
254 | as_fn_unset () | |
255 | { | |
256 | { eval $1=; unset $1;} | |
257 | } | |
258 | as_unset=as_fn_unset | |
259 | ||
260 | # as_fn_set_status STATUS | |
261 | # ----------------------- | |
262 | # Set $? to STATUS, without forking. | |
263 | as_fn_set_status () | |
264 | { | |
265 | return $1 | |
266 | } # as_fn_set_status | |
267 | ||
268 | # as_fn_exit STATUS | |
269 | # ----------------- | |
270 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
271 | as_fn_exit () | |
272 | { | |
273 | set +e | |
274 | as_fn_set_status $1 | |
275 | exit $1 | |
276 | } # as_fn_exit | |
277 | ||
278 | # as_fn_mkdir_p | |
279 | # ------------- | |
280 | # Create "$as_dir" as a directory, including parents if necessary. | |
281 | as_fn_mkdir_p () | |
282 | { | |
25ed0b71 | 283 | |
81ecdfbb RW |
284 | case $as_dir in #( |
285 | -*) as_dir=./$as_dir;; | |
286 | esac | |
287 | test -d "$as_dir" || eval $as_mkdir_p || { | |
288 | as_dirs= | |
289 | while :; do | |
290 | case $as_dir in #( | |
291 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
292 | *) as_qdir=$as_dir;; | |
293 | esac | |
294 | as_dirs="'$as_qdir' $as_dirs" | |
295 | as_dir=`$as_dirname -- "$as_dir" || | |
296 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
297 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
298 | X"$as_dir" : 'X\(//\)$' \| \ | |
299 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
300 | $as_echo X"$as_dir" | | |
301 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)[^/].*/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\/\)$/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | /^X\(\/\).*/{ | |
314 | s//\1/ | |
315 | q | |
316 | } | |
317 | s/.*/./; q'` | |
318 | test -d "$as_dir" && break | |
319 | done | |
320 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
321 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
322 | ||
323 | ||
324 | } # as_fn_mkdir_p | |
325 | # as_fn_append VAR VALUE | |
326 | # ---------------------- | |
327 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
328 | # advantage of any shell optimizations that allow amortized linear growth over | |
329 | # repeated appends, instead of the typical quadratic growth present in naive | |
330 | # implementations. | |
331 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
332 | eval 'as_fn_append () | |
333 | { | |
334 | eval $1+=\$2 | |
335 | }' | |
336 | else | |
337 | as_fn_append () | |
338 | { | |
339 | eval $1=\$$1\$2 | |
340 | } | |
341 | fi # as_fn_append | |
342 | ||
343 | # as_fn_arith ARG... | |
344 | # ------------------ | |
345 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
346 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
347 | # must be portable across $(()) and expr. | |
348 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
349 | eval 'as_fn_arith () | |
350 | { | |
351 | as_val=$(( $* )) | |
352 | }' | |
353 | else | |
354 | as_fn_arith () | |
355 | { | |
356 | as_val=`expr "$@" || test $? -eq 1` | |
357 | } | |
358 | fi # as_fn_arith | |
359 | ||
360 | ||
361 | # as_fn_error ERROR [LINENO LOG_FD] | |
362 | # --------------------------------- | |
363 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
364 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
365 | # script with status $?, using 1 if that was 0. | |
366 | as_fn_error () | |
367 | { | |
368 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
369 | if test "$3"; then | |
370 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
371 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
372 | fi | |
373 | $as_echo "$as_me: error: $1" >&2 | |
374 | as_fn_exit $as_status | |
375 | } # as_fn_error | |
376 | ||
377 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
378 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
25ed0b71 KW |
379 | as_expr=expr |
380 | else | |
381 | as_expr=false | |
382 | fi | |
383 | ||
81ecdfbb | 384 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
25ed0b71 KW |
385 | as_basename=basename |
386 | else | |
387 | as_basename=false | |
388 | fi | |
389 | ||
81ecdfbb RW |
390 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
391 | as_dirname=dirname | |
392 | else | |
393 | as_dirname=false | |
394 | fi | |
25ed0b71 | 395 | |
81ecdfbb | 396 | as_me=`$as_basename -- "$0" || |
25ed0b71 KW |
397 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
398 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
399 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
400 | $as_echo X/"$0" | | |
401 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\/\)$/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | /^X\/\(\/\).*/{ | |
410 | s//\1/ | |
411 | q | |
412 | } | |
413 | s/.*/./; q'` | |
25ed0b71 | 414 | |
9255ee31 EZ |
415 | # Avoid depending upon Character Ranges. |
416 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
417 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
418 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
419 | as_cr_digits='0123456789' | |
420 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
d60d9f65 | 421 | |
25ed0b71 | 422 | |
81ecdfbb RW |
423 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
424 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
425 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
426 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
427 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
428 | sed -n ' | |
429 | p | |
430 | /[$]LINENO/= | |
431 | ' <$as_myself | | |
25ed0b71 | 432 | sed ' |
81ecdfbb RW |
433 | s/[$]LINENO.*/&-/ |
434 | t lineno | |
435 | b | |
436 | :lineno | |
25ed0b71 | 437 | N |
81ecdfbb RW |
438 | :loop |
439 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
25ed0b71 | 440 | t loop |
81ecdfbb | 441 | s/-\n.*// |
25ed0b71 | 442 | ' >$as_me.lineno && |
81ecdfbb RW |
443 | chmod +x "$as_me.lineno" || |
444 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
25ed0b71 KW |
445 | |
446 | # Don't try to exec as it changes $[0], causing all sort of problems | |
447 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
448 | # original and so on. Autoconf is especially sensitive to this). |
449 | . "./$as_me.lineno" | |
25ed0b71 KW |
450 | # Exit status is that of the last command. |
451 | exit | |
452 | } | |
453 | ||
81ecdfbb RW |
454 | ECHO_C= ECHO_N= ECHO_T= |
455 | case `echo -n x` in #((((( | |
456 | -n*) | |
457 | case `echo 'xy\c'` in | |
458 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
459 | xy) ECHO_C='\c';; | |
460 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
461 | ECHO_T=' ';; | |
462 | esac;; | |
463 | *) | |
464 | ECHO_N='-n';; | |
25ed0b71 | 465 | esac |
d60d9f65 | 466 | |
81ecdfbb RW |
467 | rm -f conf$$ conf$$.exe conf$$.file |
468 | if test -d conf$$.dir; then | |
469 | rm -f conf$$.dir/conf$$.file | |
9255ee31 | 470 | else |
81ecdfbb RW |
471 | rm -f conf$$.dir |
472 | mkdir conf$$.dir 2>/dev/null | |
9255ee31 | 473 | fi |
81ecdfbb RW |
474 | if (echo >conf$$.file) 2>/dev/null; then |
475 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
9255ee31 | 476 | as_ln_s='ln -s' |
81ecdfbb RW |
477 | # ... but there are two gotchas: |
478 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
479 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
480 | # In both cases, we have to default to `cp -p'. | |
481 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
482 | as_ln_s='cp -p' | |
483 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
484 | as_ln_s=ln | |
485 | else | |
486 | as_ln_s='cp -p' | |
9255ee31 | 487 | fi |
9255ee31 EZ |
488 | else |
489 | as_ln_s='cp -p' | |
490 | fi | |
81ecdfbb RW |
491 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
492 | rmdir conf$$.dir 2>/dev/null | |
d60d9f65 | 493 | |
25ed0b71 | 494 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 495 | as_mkdir_p='mkdir -p "$as_dir"' |
9255ee31 | 496 | else |
430b7832 | 497 | test -d ./-p && rmdir ./-p |
25ed0b71 | 498 | as_mkdir_p=false |
9255ee31 | 499 | fi |
d60d9f65 | 500 | |
81ecdfbb RW |
501 | if test -x / >/dev/null 2>&1; then |
502 | as_test_x='test -x' | |
503 | else | |
504 | if ls -dL / >/dev/null 2>&1; then | |
505 | as_ls_L_option=L | |
506 | else | |
507 | as_ls_L_option= | |
508 | fi | |
509 | as_test_x=' | |
510 | eval sh -c '\'' | |
511 | if test -d "$1"; then | |
512 | test -d "$1/."; | |
513 | else | |
514 | case $1 in #( | |
515 | -*)set "./$1";; | |
516 | esac; | |
517 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
518 | ???[sx]*):;;*)false;;esac;fi | |
519 | '\'' sh | |
520 | ' | |
521 | fi | |
522 | as_executable_p=$as_test_x | |
25ed0b71 KW |
523 | |
524 | # Sed expression to map a string onto a valid CPP name. | |
430b7832 | 525 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
25ed0b71 KW |
526 | |
527 | # Sed expression to map a string onto a valid variable name. | |
430b7832 | 528 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
25ed0b71 | 529 | |
9255ee31 | 530 | |
81ecdfbb | 531 | exec 7<&0 </dev/null 6>&1 |
9255ee31 EZ |
532 | |
533 | # Name of the host. | |
534 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
535 | # so uname gets run too. | |
536 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
537 | ||
d60d9f65 | 538 | # |
9255ee31 EZ |
539 | # Initializations. |
540 | # | |
d60d9f65 | 541 | ac_default_prefix=/usr/local |
81ecdfbb | 542 | ac_clean_files= |
25ed0b71 | 543 | ac_config_libobj_dir=. |
81ecdfbb | 544 | LIBOBJS= |
9255ee31 EZ |
545 | cross_compiling=no |
546 | subdirs= | |
25ed0b71 KW |
547 | MFLAGS= |
548 | MAKEFLAGS= | |
9255ee31 | 549 | |
25ed0b71 KW |
550 | # Identity of this package. |
551 | PACKAGE_NAME='readline' | |
552 | PACKAGE_TARNAME='readline' | |
5bdf8622 DJ |
553 | PACKAGE_VERSION='5.1-release' |
554 | PACKAGE_STRING='readline 5.1-release' | |
25ed0b71 | 555 | PACKAGE_BUGREPORT='bug-readline@gnu.org' |
81ecdfbb | 556 | PACKAGE_URL='' |
25ed0b71 | 557 | |
9255ee31 EZ |
558 | ac_unique_file="readline.h" |
559 | # Factoring default headers for most tests. | |
560 | ac_includes_default="\ | |
561 | #include <stdio.h> | |
81ecdfbb | 562 | #ifdef HAVE_SYS_TYPES_H |
9255ee31 EZ |
563 | # include <sys/types.h> |
564 | #endif | |
81ecdfbb | 565 | #ifdef HAVE_SYS_STAT_H |
9255ee31 EZ |
566 | # include <sys/stat.h> |
567 | #endif | |
81ecdfbb | 568 | #ifdef STDC_HEADERS |
9255ee31 EZ |
569 | # include <stdlib.h> |
570 | # include <stddef.h> | |
571 | #else | |
81ecdfbb | 572 | # ifdef HAVE_STDLIB_H |
9255ee31 EZ |
573 | # include <stdlib.h> |
574 | # endif | |
575 | #endif | |
81ecdfbb RW |
576 | #ifdef HAVE_STRING_H |
577 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
9255ee31 EZ |
578 | # include <memory.h> |
579 | # endif | |
580 | # include <string.h> | |
581 | #endif | |
81ecdfbb | 582 | #ifdef HAVE_STRINGS_H |
9255ee31 EZ |
583 | # include <strings.h> |
584 | #endif | |
81ecdfbb | 585 | #ifdef HAVE_INTTYPES_H |
9255ee31 | 586 | # include <inttypes.h> |
9255ee31 | 587 | #endif |
81ecdfbb RW |
588 | #ifdef HAVE_STDINT_H |
589 | # include <stdint.h> | |
590 | #endif | |
591 | #ifdef HAVE_UNISTD_H | |
9255ee31 EZ |
592 | # include <unistd.h> |
593 | #endif" | |
d60d9f65 | 594 | |
81ecdfbb RW |
595 | ac_subst_vars='LTLIBOBJS |
596 | LIBOBJS | |
597 | TERMCAP_LIB | |
598 | LIBVERSION | |
599 | ARFLAGS | |
600 | LOCAL_DEFS | |
601 | LOCAL_LDFLAGS | |
602 | LOCAL_CFLAGS | |
603 | BUILD_DIR | |
604 | PURIFY | |
605 | SHARED_INSTALL_TARGET | |
606 | STATIC_INSTALL_TARGET | |
607 | SHARED_TARGET | |
608 | STATIC_TARGET | |
609 | SHLIB_MINOR | |
610 | SHLIB_MAJOR | |
611 | SHLIB_LIBS | |
612 | SHLIB_DLLVERSION | |
613 | SHLIB_LIBVERSION | |
614 | SHLIB_LIBSUFF | |
615 | SHLIB_LIBPREF | |
616 | SHLIB_DOT | |
617 | SHLIB_XLDFLAGS | |
618 | SHLIB_STATUS | |
619 | SHOBJ_STATUS | |
620 | SHOBJ_LIBS | |
621 | SHOBJ_XLDFLAGS | |
622 | SHOBJ_LDFLAGS | |
623 | SHOBJ_LD | |
624 | SHOBJ_CFLAGS | |
625 | SHOBJ_CC | |
626 | WCWIDTH_OBJ | |
627 | MAKE_SHELL | |
628 | RANLIB | |
629 | AR | |
630 | INSTALL_DATA | |
631 | INSTALL_SCRIPT | |
632 | INSTALL_PROGRAM | |
633 | CC_FOR_BUILD | |
634 | EGREP | |
635 | GREP | |
636 | CPP | |
637 | OBJEXT | |
638 | EXEEXT | |
639 | ac_ct_CC | |
640 | CPPFLAGS | |
641 | LDFLAGS | |
642 | CFLAGS | |
643 | CC | |
644 | SET_MAKE | |
645 | CROSS_COMPILE | |
646 | host_os | |
647 | host_vendor | |
648 | host_cpu | |
649 | host | |
650 | build_os | |
651 | build_vendor | |
652 | build_cpu | |
653 | build | |
654 | target_alias | |
655 | host_alias | |
656 | build_alias | |
657 | LIBS | |
658 | ECHO_T | |
659 | ECHO_N | |
660 | ECHO_C | |
661 | DEFS | |
662 | mandir | |
663 | localedir | |
664 | libdir | |
665 | psdir | |
666 | pdfdir | |
667 | dvidir | |
668 | htmldir | |
669 | infodir | |
670 | docdir | |
671 | oldincludedir | |
672 | includedir | |
673 | localstatedir | |
674 | sharedstatedir | |
675 | sysconfdir | |
676 | datadir | |
677 | datarootdir | |
678 | libexecdir | |
679 | sbindir | |
680 | bindir | |
681 | program_transform_name | |
682 | prefix | |
683 | exec_prefix | |
684 | PACKAGE_URL | |
685 | PACKAGE_BUGREPORT | |
686 | PACKAGE_STRING | |
687 | PACKAGE_VERSION | |
688 | PACKAGE_TARNAME | |
689 | PACKAGE_NAME | |
690 | PATH_SEPARATOR | |
691 | SHELL' | |
25ed0b71 | 692 | ac_subst_files='' |
81ecdfbb RW |
693 | ac_user_opts=' |
694 | enable_option_checking | |
695 | with_curses | |
696 | with_purify | |
697 | enable_multibyte | |
698 | enable_static | |
699 | ' | |
700 | ac_precious_vars='build_alias | |
701 | host_alias | |
702 | target_alias | |
703 | CC | |
704 | CFLAGS | |
705 | LDFLAGS | |
706 | LIBS | |
707 | CPPFLAGS | |
708 | CPP' | |
709 | ||
25ed0b71 | 710 | |
d60d9f65 | 711 | # Initialize some variables set by options. |
9255ee31 EZ |
712 | ac_init_help= |
713 | ac_init_version=false | |
81ecdfbb RW |
714 | ac_unrecognized_opts= |
715 | ac_unrecognized_sep= | |
d60d9f65 SS |
716 | # The variables have the same names as the options, with |
717 | # dashes changed to underlines. | |
9255ee31 | 718 | cache_file=/dev/null |
d60d9f65 | 719 | exec_prefix=NONE |
d60d9f65 | 720 | no_create= |
d60d9f65 SS |
721 | no_recursion= |
722 | prefix=NONE | |
723 | program_prefix=NONE | |
724 | program_suffix=NONE | |
725 | program_transform_name=s,x,x, | |
726 | silent= | |
727 | site= | |
728 | srcdir= | |
d60d9f65 SS |
729 | verbose= |
730 | x_includes=NONE | |
731 | x_libraries=NONE | |
9255ee31 EZ |
732 | |
733 | # Installation directory options. | |
734 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
735 | # and all the variables that are supposed to be based on exec_prefix | |
736 | # by default will actually change. | |
737 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 738 | # (The list follows the same order as the GNU Coding Standards.) |
d60d9f65 SS |
739 | bindir='${exec_prefix}/bin' |
740 | sbindir='${exec_prefix}/sbin' | |
741 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
742 | datarootdir='${prefix}/share' |
743 | datadir='${datarootdir}' | |
d60d9f65 SS |
744 | sysconfdir='${prefix}/etc' |
745 | sharedstatedir='${prefix}/com' | |
746 | localstatedir='${prefix}/var' | |
d60d9f65 SS |
747 | includedir='${prefix}/include' |
748 | oldincludedir='/usr/include' | |
81ecdfbb RW |
749 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
750 | infodir='${datarootdir}/info' | |
751 | htmldir='${docdir}' | |
752 | dvidir='${docdir}' | |
753 | pdfdir='${docdir}' | |
754 | psdir='${docdir}' | |
755 | libdir='${exec_prefix}/lib' | |
756 | localedir='${datarootdir}/locale' | |
757 | mandir='${datarootdir}/man' | |
d60d9f65 | 758 | |
d60d9f65 | 759 | ac_prev= |
81ecdfbb | 760 | ac_dashdash= |
d60d9f65 SS |
761 | for ac_option |
762 | do | |
d60d9f65 SS |
763 | # If the previous option needs an argument, assign it. |
764 | if test -n "$ac_prev"; then | |
81ecdfbb | 765 | eval $ac_prev=\$ac_option |
d60d9f65 SS |
766 | ac_prev= |
767 | continue | |
768 | fi | |
769 | ||
81ecdfbb RW |
770 | case $ac_option in |
771 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
772 | *) ac_optarg=yes ;; | |
773 | esac | |
d60d9f65 SS |
774 | |
775 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
776 | ||
81ecdfbb RW |
777 | case $ac_dashdash$ac_option in |
778 | --) | |
779 | ac_dashdash=yes ;; | |
d60d9f65 SS |
780 | |
781 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
782 | ac_prev=bindir ;; | |
783 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
9255ee31 | 784 | bindir=$ac_optarg ;; |
d60d9f65 SS |
785 | |
786 | -build | --build | --buil | --bui | --bu) | |
9255ee31 | 787 | ac_prev=build_alias ;; |
d60d9f65 | 788 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
9255ee31 | 789 | build_alias=$ac_optarg ;; |
d60d9f65 SS |
790 | |
791 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
792 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
793 | ac_prev=cache_file ;; | |
794 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
795 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
9255ee31 EZ |
796 | cache_file=$ac_optarg ;; |
797 | ||
798 | --config-cache | -C) | |
799 | cache_file=config.cache ;; | |
d60d9f65 | 800 | |
81ecdfbb | 801 | -datadir | --datadir | --datadi | --datad) |
d60d9f65 | 802 | ac_prev=datadir ;; |
81ecdfbb | 803 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
9255ee31 | 804 | datadir=$ac_optarg ;; |
d60d9f65 | 805 | |
81ecdfbb RW |
806 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
807 | | --dataroo | --dataro | --datar) | |
808 | ac_prev=datarootdir ;; | |
809 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
810 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
811 | datarootdir=$ac_optarg ;; | |
812 | ||
d60d9f65 | 813 | -disable-* | --disable-*) |
81ecdfbb | 814 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d60d9f65 | 815 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
816 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
817 | as_fn_error "invalid feature name: $ac_useropt" | |
818 | ac_useropt_orig=$ac_useropt | |
819 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
820 | case $ac_user_opts in | |
821 | *" | |
822 | "enable_$ac_useropt" | |
823 | "*) ;; | |
824 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
825 | ac_unrecognized_sep=', ';; | |
826 | esac | |
827 | eval enable_$ac_useropt=no ;; | |
828 | ||
829 | -docdir | --docdir | --docdi | --doc | --do) | |
830 | ac_prev=docdir ;; | |
831 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
832 | docdir=$ac_optarg ;; | |
833 | ||
834 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
835 | ac_prev=dvidir ;; | |
836 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
837 | dvidir=$ac_optarg ;; | |
d60d9f65 SS |
838 | |
839 | -enable-* | --enable-*) | |
81ecdfbb | 840 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d60d9f65 | 841 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
842 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
843 | as_fn_error "invalid feature name: $ac_useropt" | |
844 | ac_useropt_orig=$ac_useropt | |
845 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
846 | case $ac_user_opts in | |
847 | *" | |
848 | "enable_$ac_useropt" | |
849 | "*) ;; | |
850 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
851 | ac_unrecognized_sep=', ';; | |
d60d9f65 | 852 | esac |
81ecdfbb | 853 | eval enable_$ac_useropt=\$ac_optarg ;; |
d60d9f65 SS |
854 | |
855 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
856 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
857 | | --exec | --exe | --ex) | |
858 | ac_prev=exec_prefix ;; | |
859 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
860 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
861 | | --exec=* | --exe=* | --ex=*) | |
9255ee31 | 862 | exec_prefix=$ac_optarg ;; |
d60d9f65 SS |
863 | |
864 | -gas | --gas | --ga | --g) | |
865 | # Obsolete; use --with-gas. | |
866 | with_gas=yes ;; | |
867 | ||
9255ee31 EZ |
868 | -help | --help | --hel | --he | -h) |
869 | ac_init_help=long ;; | |
870 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
871 | ac_init_help=recursive ;; | |
872 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
873 | ac_init_help=short ;; | |
d60d9f65 SS |
874 | |
875 | -host | --host | --hos | --ho) | |
9255ee31 | 876 | ac_prev=host_alias ;; |
d60d9f65 | 877 | -host=* | --host=* | --hos=* | --ho=*) |
9255ee31 | 878 | host_alias=$ac_optarg ;; |
d60d9f65 | 879 | |
81ecdfbb RW |
880 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
881 | ac_prev=htmldir ;; | |
882 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
883 | | --ht=*) | |
884 | htmldir=$ac_optarg ;; | |
885 | ||
d60d9f65 SS |
886 | -includedir | --includedir | --includedi | --included | --include \ |
887 | | --includ | --inclu | --incl | --inc) | |
888 | ac_prev=includedir ;; | |
889 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
890 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
9255ee31 | 891 | includedir=$ac_optarg ;; |
d60d9f65 SS |
892 | |
893 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
894 | ac_prev=infodir ;; | |
895 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
9255ee31 | 896 | infodir=$ac_optarg ;; |
d60d9f65 SS |
897 | |
898 | -libdir | --libdir | --libdi | --libd) | |
899 | ac_prev=libdir ;; | |
900 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
9255ee31 | 901 | libdir=$ac_optarg ;; |
d60d9f65 SS |
902 | |
903 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
904 | | --libexe | --libex | --libe) | |
905 | ac_prev=libexecdir ;; | |
906 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
907 | | --libexe=* | --libex=* | --libe=*) | |
9255ee31 | 908 | libexecdir=$ac_optarg ;; |
d60d9f65 | 909 | |
81ecdfbb RW |
910 | -localedir | --localedir | --localedi | --localed | --locale) |
911 | ac_prev=localedir ;; | |
912 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
913 | localedir=$ac_optarg ;; | |
914 | ||
d60d9f65 | 915 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 916 | | --localstate | --localstat | --localsta | --localst | --locals) |
d60d9f65 SS |
917 | ac_prev=localstatedir ;; |
918 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 919 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
9255ee31 | 920 | localstatedir=$ac_optarg ;; |
d60d9f65 SS |
921 | |
922 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
923 | ac_prev=mandir ;; | |
924 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
9255ee31 | 925 | mandir=$ac_optarg ;; |
d60d9f65 SS |
926 | |
927 | -nfp | --nfp | --nf) | |
928 | # Obsolete; use --without-fp. | |
929 | with_fp=no ;; | |
930 | ||
931 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
25ed0b71 | 932 | | --no-cr | --no-c | -n) |
d60d9f65 SS |
933 | no_create=yes ;; |
934 | ||
935 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
936 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
937 | no_recursion=yes ;; | |
938 | ||
939 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
940 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
941 | | --oldin | --oldi | --old | --ol | --o) | |
942 | ac_prev=oldincludedir ;; | |
943 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
944 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
945 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
9255ee31 | 946 | oldincludedir=$ac_optarg ;; |
d60d9f65 SS |
947 | |
948 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
949 | ac_prev=prefix ;; | |
950 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
9255ee31 | 951 | prefix=$ac_optarg ;; |
d60d9f65 SS |
952 | |
953 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
954 | | --program-pre | --program-pr | --program-p) | |
955 | ac_prev=program_prefix ;; | |
956 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
957 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
9255ee31 | 958 | program_prefix=$ac_optarg ;; |
d60d9f65 SS |
959 | |
960 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
961 | | --program-suf | --program-su | --program-s) | |
962 | ac_prev=program_suffix ;; | |
963 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
964 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
9255ee31 | 965 | program_suffix=$ac_optarg ;; |
d60d9f65 SS |
966 | |
967 | -program-transform-name | --program-transform-name \ | |
968 | | --program-transform-nam | --program-transform-na \ | |
969 | | --program-transform-n | --program-transform- \ | |
970 | | --program-transform | --program-transfor \ | |
971 | | --program-transfo | --program-transf \ | |
972 | | --program-trans | --program-tran \ | |
973 | | --progr-tra | --program-tr | --program-t) | |
974 | ac_prev=program_transform_name ;; | |
975 | -program-transform-name=* | --program-transform-name=* \ | |
976 | | --program-transform-nam=* | --program-transform-na=* \ | |
977 | | --program-transform-n=* | --program-transform-=* \ | |
978 | | --program-transform=* | --program-transfor=* \ | |
979 | | --program-transfo=* | --program-transf=* \ | |
980 | | --program-trans=* | --program-tran=* \ | |
981 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
9255ee31 | 982 | program_transform_name=$ac_optarg ;; |
d60d9f65 | 983 | |
81ecdfbb RW |
984 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
985 | ac_prev=pdfdir ;; | |
986 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
987 | pdfdir=$ac_optarg ;; | |
988 | ||
989 | -psdir | --psdir | --psdi | --psd | --ps) | |
990 | ac_prev=psdir ;; | |
991 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
992 | psdir=$ac_optarg ;; | |
993 | ||
d60d9f65 SS |
994 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
995 | | -silent | --silent | --silen | --sile | --sil) | |
996 | silent=yes ;; | |
997 | ||
998 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
999 | ac_prev=sbindir ;; | |
1000 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1001 | | --sbi=* | --sb=*) | |
9255ee31 | 1002 | sbindir=$ac_optarg ;; |
d60d9f65 SS |
1003 | |
1004 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1005 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1006 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1007 | | --sha | --sh) | |
1008 | ac_prev=sharedstatedir ;; | |
1009 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1010 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1011 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1012 | | --sha=* | --sh=*) | |
9255ee31 | 1013 | sharedstatedir=$ac_optarg ;; |
d60d9f65 SS |
1014 | |
1015 | -site | --site | --sit) | |
1016 | ac_prev=site ;; | |
1017 | -site=* | --site=* | --sit=*) | |
9255ee31 | 1018 | site=$ac_optarg ;; |
d60d9f65 SS |
1019 | |
1020 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1021 | ac_prev=srcdir ;; | |
1022 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
9255ee31 | 1023 | srcdir=$ac_optarg ;; |
d60d9f65 SS |
1024 | |
1025 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1026 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1027 | ac_prev=sysconfdir ;; | |
1028 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1029 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
9255ee31 | 1030 | sysconfdir=$ac_optarg ;; |
d60d9f65 SS |
1031 | |
1032 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
9255ee31 | 1033 | ac_prev=target_alias ;; |
d60d9f65 | 1034 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
9255ee31 | 1035 | target_alias=$ac_optarg ;; |
d60d9f65 SS |
1036 | |
1037 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1038 | verbose=yes ;; | |
1039 | ||
9255ee31 EZ |
1040 | -version | --version | --versio | --versi | --vers | -V) |
1041 | ac_init_version=: ;; | |
d60d9f65 SS |
1042 | |
1043 | -with-* | --with-*) | |
81ecdfbb | 1044 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d60d9f65 | 1045 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1046 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1047 | as_fn_error "invalid package name: $ac_useropt" | |
1048 | ac_useropt_orig=$ac_useropt | |
1049 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1050 | case $ac_user_opts in | |
1051 | *" | |
1052 | "with_$ac_useropt" | |
1053 | "*) ;; | |
1054 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1055 | ac_unrecognized_sep=', ';; | |
d60d9f65 | 1056 | esac |
81ecdfbb | 1057 | eval with_$ac_useropt=\$ac_optarg ;; |
d60d9f65 SS |
1058 | |
1059 | -without-* | --without-*) | |
81ecdfbb | 1060 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d60d9f65 | 1061 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1062 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1063 | as_fn_error "invalid package name: $ac_useropt" | |
1064 | ac_useropt_orig=$ac_useropt | |
1065 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1066 | case $ac_user_opts in | |
1067 | *" | |
1068 | "with_$ac_useropt" | |
1069 | "*) ;; | |
1070 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1071 | ac_unrecognized_sep=', ';; | |
1072 | esac | |
1073 | eval with_$ac_useropt=no ;; | |
d60d9f65 SS |
1074 | |
1075 | --x) | |
1076 | # Obsolete; use --with-x. | |
1077 | with_x=yes ;; | |
1078 | ||
1079 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1080 | | --x-incl | --x-inc | --x-in | --x-i) | |
1081 | ac_prev=x_includes ;; | |
1082 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1083 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
9255ee31 | 1084 | x_includes=$ac_optarg ;; |
d60d9f65 SS |
1085 | |
1086 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1087 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1088 | ac_prev=x_libraries ;; | |
1089 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1090 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
9255ee31 | 1091 | x_libraries=$ac_optarg ;; |
d60d9f65 | 1092 | |
81ecdfbb RW |
1093 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1094 | Try \`$0 --help' for more information." | |
d60d9f65 SS |
1095 | ;; |
1096 | ||
9255ee31 EZ |
1097 | *=*) |
1098 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1099 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1100 | case $ac_envvar in #( |
1101 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1102 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1103 | esac | |
1104 | eval $ac_envvar=\$ac_optarg | |
9255ee31 EZ |
1105 | export $ac_envvar ;; |
1106 | ||
d60d9f65 | 1107 | *) |
9255ee31 | 1108 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1109 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
9255ee31 | 1110 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1111 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
9255ee31 | 1112 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
d60d9f65 SS |
1113 | ;; |
1114 | ||
1115 | esac | |
1116 | done | |
1117 | ||
1118 | if test -n "$ac_prev"; then | |
9255ee31 | 1119 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1120 | as_fn_error "missing argument to $ac_option" |
d60d9f65 | 1121 | fi |
d60d9f65 | 1122 | |
81ecdfbb RW |
1123 | if test -n "$ac_unrecognized_opts"; then |
1124 | case $enable_option_checking in | |
1125 | no) ;; | |
1126 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1127 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
9255ee31 | 1128 | esac |
81ecdfbb | 1129 | fi |
d60d9f65 | 1130 | |
81ecdfbb RW |
1131 | # Check all directory arguments for consistency. |
1132 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1133 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1134 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1135 | libdir localedir mandir | |
d60d9f65 | 1136 | do |
81ecdfbb RW |
1137 | eval ac_val=\$$ac_var |
1138 | # Remove trailing slashes. | |
1139 | case $ac_val in | |
1140 | */ ) | |
1141 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1142 | eval $ac_var=\$ac_val;; | |
1143 | esac | |
1144 | # Be sure to have absolute directory names. | |
9255ee31 | 1145 | case $ac_val in |
81ecdfbb RW |
1146 | [\\/$]* | ?:[\\/]* ) continue;; |
1147 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d60d9f65 | 1148 | esac |
81ecdfbb | 1149 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
d60d9f65 SS |
1150 | done |
1151 | ||
9255ee31 EZ |
1152 | # There might be people who depend on the old broken behavior: `$host' |
1153 | # used to hold the argument of --host etc. | |
25ed0b71 | 1154 | # FIXME: To remove some day. |
9255ee31 EZ |
1155 | build=$build_alias |
1156 | host=$host_alias | |
1157 | target=$target_alias | |
1158 | ||
25ed0b71 | 1159 | # FIXME: To remove some day. |
9255ee31 EZ |
1160 | if test "x$host_alias" != x; then |
1161 | if test "x$build_alias" = x; then | |
1162 | cross_compiling=maybe | |
81ecdfbb | 1163 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
9255ee31 EZ |
1164 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1165 | elif test "x$build_alias" != "x$host_alias"; then | |
1166 | cross_compiling=yes | |
1167 | fi | |
1168 | fi | |
d60d9f65 | 1169 | |
9255ee31 EZ |
1170 | ac_tool_prefix= |
1171 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
d60d9f65 | 1172 | |
9255ee31 | 1173 | test "$silent" = yes && exec 6>/dev/null |
d60d9f65 | 1174 | |
25ed0b71 | 1175 | |
81ecdfbb RW |
1176 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1177 | ac_ls_di=`ls -di .` && | |
1178 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1179 | as_fn_error "working directory cannot be determined" | |
1180 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1181 | as_fn_error "pwd does not report name of working directory" | |
1182 | ||
1183 | ||
d60d9f65 SS |
1184 | # Find the source files, if location was not specified. |
1185 | if test -z "$srcdir"; then | |
1186 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1187 | # Try the directory containing this script, then the parent directory. |
1188 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1189 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1190 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1191 | X"$as_myself" : 'X\(//\)$' \| \ | |
1192 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1193 | $as_echo X"$as_myself" | | |
1194 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1195 | s//\1/ | |
1196 | q | |
1197 | } | |
1198 | /^X\(\/\/\)[^/].*/{ | |
1199 | s//\1/ | |
1200 | q | |
1201 | } | |
1202 | /^X\(\/\/\)$/{ | |
1203 | s//\1/ | |
1204 | q | |
1205 | } | |
1206 | /^X\(\/\).*/{ | |
1207 | s//\1/ | |
1208 | q | |
1209 | } | |
1210 | s/.*/./; q'` | |
d60d9f65 | 1211 | srcdir=$ac_confdir |
81ecdfbb | 1212 | if test ! -r "$srcdir/$ac_unique_file"; then |
d60d9f65 SS |
1213 | srcdir=.. |
1214 | fi | |
1215 | else | |
1216 | ac_srcdir_defaulted=no | |
1217 | fi | |
81ecdfbb RW |
1218 | if test ! -r "$srcdir/$ac_unique_file"; then |
1219 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1220 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1221 | fi | |
1222 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1223 | ac_abs_confdir=`( | |
1224 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1225 | pwd)` | |
1226 | # When building in place, set srcdir=. | |
1227 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1228 | srcdir=. | |
1229 | fi | |
1230 | # Remove unnecessary trailing slashes from srcdir. | |
1231 | # Double slashes in file names in object file debugging info | |
1232 | # mess up M-x gdb in Emacs. | |
1233 | case $srcdir in | |
1234 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1235 | esac | |
1236 | for ac_var in $ac_precious_vars; do | |
1237 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1238 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1239 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1240 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1241 | done | |
d60d9f65 | 1242 | |
9255ee31 EZ |
1243 | # |
1244 | # Report the --help message. | |
1245 | # | |
1246 | if test "$ac_init_help" = "long"; then | |
1247 | # Omit some internal or obsolete options to make the list less imposing. | |
1248 | # This message is too long to be a string in the A/UX 3.1 sh. | |
25ed0b71 | 1249 | cat <<_ACEOF |
5bdf8622 | 1250 | \`configure' configures readline 5.1-release to adapt to many kinds of systems. |
d60d9f65 | 1251 | |
9255ee31 | 1252 | Usage: $0 [OPTION]... [VAR=VALUE]... |
d60d9f65 | 1253 | |
9255ee31 EZ |
1254 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1255 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
d60d9f65 | 1256 | |
9255ee31 | 1257 | Defaults for the options are specified in brackets. |
d60d9f65 | 1258 | |
9255ee31 EZ |
1259 | Configuration: |
1260 | -h, --help display this help and exit | |
1261 | --help=short display options specific to this package | |
1262 | --help=recursive display the short help of all the included packages | |
1263 | -V, --version display version information and exit | |
1264 | -q, --quiet, --silent do not print \`checking...' messages | |
1265 | --cache-file=FILE cache test results in FILE [disabled] | |
1266 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1267 | -n, --no-create do not create output files | |
1268 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
d60d9f65 | 1269 | |
9255ee31 EZ |
1270 | Installation directories: |
1271 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1272 | [$ac_default_prefix] |
9255ee31 | 1273 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1274 | [PREFIX] |
9255ee31 EZ |
1275 | |
1276 | By default, \`make install' will install all the files in | |
1277 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1278 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1279 | for instance \`--prefix=\$HOME'. | |
1280 | ||
1281 | For better control, use the options below. | |
1282 | ||
1283 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1284 | --bindir=DIR user executables [EPREFIX/bin] |
1285 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1286 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1287 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1288 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1289 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1290 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1291 | --includedir=DIR C header files [PREFIX/include] | |
1292 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1293 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1294 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1295 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1296 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1297 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1298 | --docdir=DIR documentation root [DATAROOTDIR/doc/readline] | |
1299 | --htmldir=DIR html documentation [DOCDIR] | |
1300 | --dvidir=DIR dvi documentation [DOCDIR] | |
1301 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1302 | --psdir=DIR ps documentation [DOCDIR] | |
25ed0b71 | 1303 | _ACEOF |
d60d9f65 | 1304 | |
25ed0b71 | 1305 | cat <<\_ACEOF |
d60d9f65 | 1306 | |
9255ee31 EZ |
1307 | System types: |
1308 | --build=BUILD configure for building on BUILD [guessed] | |
25ed0b71 KW |
1309 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1310 | _ACEOF | |
d60d9f65 | 1311 | fi |
d60d9f65 | 1312 | |
9255ee31 EZ |
1313 | if test -n "$ac_init_help"; then |
1314 | case $ac_init_help in | |
5bdf8622 | 1315 | short | recursive ) echo "Configuration of readline 5.1-release:";; |
9255ee31 | 1316 | esac |
25ed0b71 | 1317 | cat <<\_ACEOF |
d60d9f65 | 1318 | |
9255ee31 | 1319 | Optional Features: |
81ecdfbb | 1320 | --disable-option-checking ignore unrecognized --enable/--with options |
9255ee31 EZ |
1321 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1322 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
5bdf8622 | 1323 | --enable-multibyte enable multibyte characters if OS supports them |
9255ee31 | 1324 | --enable-static build static libraries [default=YES] |
d60d9f65 | 1325 | |
9255ee31 EZ |
1326 | Optional Packages: |
1327 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1328 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1329 | --with-curses use the curses library instead of the termcap | |
1330 | library | |
5bdf8622 | 1331 | --with-purify configure to postprocess with purify |
9255ee31 EZ |
1332 | |
1333 | Some influential environment variables: | |
1334 | CC C compiler command | |
1335 | CFLAGS C compiler flags | |
1336 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1337 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1338 | LIBS libraries to pass to the linker, e.g. -l<library> |
1339 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1340 | you have headers in a nonstandard directory <include dir> | |
9255ee31 EZ |
1341 | CPP C preprocessor |
1342 | ||
1343 | Use these variables to override the choices made by `configure' or to help | |
1344 | it to find libraries and programs with nonstandard names/locations. | |
1345 | ||
1346 | Report bugs to <bug-readline@gnu.org>. | |
25ed0b71 | 1347 | _ACEOF |
81ecdfbb | 1348 | ac_status=$? |
9255ee31 | 1349 | fi |
d60d9f65 | 1350 | |
9255ee31 EZ |
1351 | if test "$ac_init_help" = "recursive"; then |
1352 | # If there are subdirs, report their specific --help. | |
25ed0b71 | 1353 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1354 | test -d "$ac_dir" || |
1355 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1356 | continue | |
25ed0b71 KW |
1357 | ac_builddir=. |
1358 | ||
81ecdfbb RW |
1359 | case "$ac_dir" in |
1360 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1361 | *) | |
1362 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1363 | # A ".." for each directory in $ac_dir_suffix. | |
1364 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1365 | case $ac_top_builddir_sub in | |
1366 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1367 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1368 | esac ;; | |
1369 | esac | |
1370 | ac_abs_top_builddir=$ac_pwd | |
1371 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1372 | # for backward compatibility: | |
1373 | ac_top_builddir=$ac_top_build_prefix | |
d60d9f65 | 1374 | |
25ed0b71 | 1375 | case $srcdir in |
81ecdfbb | 1376 | .) # We are building in place. |
25ed0b71 | 1377 | ac_srcdir=. |
81ecdfbb RW |
1378 | ac_top_srcdir=$ac_top_builddir_sub |
1379 | ac_abs_top_srcdir=$ac_pwd ;; | |
1380 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
25ed0b71 | 1381 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1382 | ac_top_srcdir=$srcdir |
1383 | ac_abs_top_srcdir=$srcdir ;; | |
1384 | *) # Relative name. | |
1385 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1386 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1387 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
430b7832 | 1388 | esac |
81ecdfbb RW |
1389 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1390 | ||
1391 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1392 | # Check for guested configure. | |
1393 | if test -f "$ac_srcdir/configure.gnu"; then | |
1394 | echo && | |
1395 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1396 | elif test -f "$ac_srcdir/configure"; then | |
1397 | echo && | |
1398 | $SHELL "$ac_srcdir/configure" --help=recursive | |
9255ee31 | 1399 | else |
81ecdfbb RW |
1400 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1401 | fi || ac_status=$? | |
1402 | cd "$ac_pwd" || { ac_status=$?; break; } | |
9255ee31 | 1403 | done |
d60d9f65 SS |
1404 | fi |
1405 | ||
81ecdfbb | 1406 | test -n "$ac_init_help" && exit $ac_status |
9255ee31 | 1407 | if $ac_init_version; then |
25ed0b71 | 1408 | cat <<\_ACEOF |
5bdf8622 | 1409 | readline configure 5.1-release |
81ecdfbb | 1410 | generated by GNU Autoconf 2.64 |
d60d9f65 | 1411 | |
81ecdfbb | 1412 | Copyright (C) 2009 Free Software Foundation, Inc. |
9255ee31 EZ |
1413 | This configure script is free software; the Free Software Foundation |
1414 | gives unlimited permission to copy, distribute and modify it. | |
25ed0b71 | 1415 | _ACEOF |
81ecdfbb | 1416 | exit |
d60d9f65 SS |
1417 | fi |
1418 | ||
81ecdfbb RW |
1419 | ## ------------------------ ## |
1420 | ## Autoconf initialization. ## | |
1421 | ## ------------------------ ## | |
9255ee31 | 1422 | |
81ecdfbb RW |
1423 | # ac_fn_c_try_compile LINENO |
1424 | # -------------------------- | |
1425 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1426 | ac_fn_c_try_compile () | |
9255ee31 | 1427 | { |
81ecdfbb RW |
1428 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1429 | rm -f conftest.$ac_objext | |
1430 | if { { ac_try="$ac_compile" | |
1431 | case "(($ac_try" in | |
1432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1433 | *) ac_try_echo=$ac_try;; | |
1434 | esac | |
1435 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1436 | $as_echo "$ac_try_echo"; } >&5 | |
1437 | (eval "$ac_compile") 2>conftest.err | |
1438 | ac_status=$? | |
1439 | if test -s conftest.err; then | |
1440 | grep -v '^ *+' conftest.err >conftest.er1 | |
1441 | cat conftest.er1 >&5 | |
1442 | mv -f conftest.er1 conftest.err | |
1443 | fi | |
1444 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1445 | test $ac_status = 0; } && { | |
1446 | test -z "$ac_c_werror_flag" || | |
1447 | test ! -s conftest.err | |
1448 | } && test -s conftest.$ac_objext; then : | |
1449 | ac_retval=0 | |
1450 | else | |
1451 | $as_echo "$as_me: failed program was:" >&5 | |
1452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9255ee31 | 1453 | |
81ecdfbb RW |
1454 | ac_retval=1 |
1455 | fi | |
1456 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1457 | return $ac_retval | |
9255ee31 | 1458 | |
81ecdfbb | 1459 | } # ac_fn_c_try_compile |
9255ee31 | 1460 | |
81ecdfbb RW |
1461 | # ac_fn_c_try_cpp LINENO |
1462 | # ---------------------- | |
1463 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1464 | ac_fn_c_try_cpp () | |
1465 | { | |
1466 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1467 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1468 | case "(($ac_try" in | |
1469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1470 | *) ac_try_echo=$ac_try;; | |
1471 | esac | |
1472 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1473 | $as_echo "$ac_try_echo"; } >&5 | |
1474 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1475 | ac_status=$? | |
1476 | if test -s conftest.err; then | |
1477 | grep -v '^ *+' conftest.err >conftest.er1 | |
1478 | cat conftest.er1 >&5 | |
1479 | mv -f conftest.er1 conftest.err | |
1480 | fi | |
1481 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1482 | test $ac_status = 0; } >/dev/null && { | |
1483 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1484 | test ! -s conftest.err | |
1485 | }; then : | |
1486 | ac_retval=0 | |
1487 | else | |
1488 | $as_echo "$as_me: failed program was:" >&5 | |
1489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9255ee31 | 1490 | |
81ecdfbb RW |
1491 | ac_retval=1 |
1492 | fi | |
1493 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1494 | return $ac_retval | |
25ed0b71 | 1495 | |
81ecdfbb | 1496 | } # ac_fn_c_try_cpp |
25ed0b71 | 1497 | |
81ecdfbb RW |
1498 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1499 | # ------------------------------------------------------- | |
1500 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1501 | # the include files in INCLUDES and setting the cache variable VAR | |
1502 | # accordingly. | |
1503 | ac_fn_c_check_header_mongrel () | |
1504 | { | |
1505 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1506 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1508 | $as_echo_n "checking for $2... " >&6; } | |
1509 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1510 | $as_echo_n "(cached) " >&6 | |
1511 | fi | |
1512 | eval ac_res=\$$3 | |
1513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1514 | $as_echo "$ac_res" >&6; } | |
1515 | else | |
1516 | # Is the header compilable? | |
1517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1518 | $as_echo_n "checking $2 usability... " >&6; } | |
1519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1520 | /* end confdefs.h. */ | |
1521 | $4 | |
1522 | #include <$2> | |
1523 | _ACEOF | |
1524 | if ac_fn_c_try_compile "$LINENO"; then : | |
1525 | ac_header_compiler=yes | |
1526 | else | |
1527 | ac_header_compiler=no | |
1528 | fi | |
1529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1531 | $as_echo "$ac_header_compiler" >&6; } | |
1532 | ||
1533 | # Is the header present? | |
1534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1535 | $as_echo_n "checking $2 presence... " >&6; } | |
1536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1537 | /* end confdefs.h. */ | |
1538 | #include <$2> | |
1539 | _ACEOF | |
1540 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1541 | ac_header_preproc=yes | |
1542 | else | |
1543 | ac_header_preproc=no | |
1544 | fi | |
1545 | rm -f conftest.err conftest.$ac_ext | |
1546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1547 | $as_echo "$ac_header_preproc" >&6; } | |
1548 | ||
1549 | # So? What about this header? | |
1550 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1551 | yes:no: ) | |
1552 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1553 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1554 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1555 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1556 | ;; | |
1557 | no:yes:* ) | |
1558 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1559 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1560 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1561 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1562 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1563 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1564 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1565 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1566 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1567 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1568 | ( cat <<\_ASBOX | |
1569 | ## ----------------------------------- ## | |
1570 | ## Report this to bug-readline@gnu.org ## | |
1571 | ## ----------------------------------- ## | |
1572 | _ASBOX | |
1573 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1574 | ;; | |
1575 | esac | |
1576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1577 | $as_echo_n "checking for $2... " >&6; } | |
1578 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1579 | $as_echo_n "(cached) " >&6 | |
1580 | else | |
1581 | eval "$3=\$ac_header_compiler" | |
1582 | fi | |
1583 | eval ac_res=\$$3 | |
1584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1585 | $as_echo "$ac_res" >&6; } | |
1586 | fi | |
1587 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1588 | ||
1589 | } # ac_fn_c_check_header_mongrel | |
1590 | ||
1591 | # ac_fn_c_try_run LINENO | |
1592 | # ---------------------- | |
1593 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1594 | # that executables *can* be run. | |
1595 | ac_fn_c_try_run () | |
1596 | { | |
1597 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1598 | if { { ac_try="$ac_link" | |
1599 | case "(($ac_try" in | |
1600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1601 | *) ac_try_echo=$ac_try;; | |
1602 | esac | |
1603 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1604 | $as_echo "$ac_try_echo"; } >&5 | |
1605 | (eval "$ac_link") 2>&5 | |
1606 | ac_status=$? | |
1607 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1608 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1609 | { { case "(($ac_try" in | |
1610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1611 | *) ac_try_echo=$ac_try;; | |
1612 | esac | |
1613 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1614 | $as_echo "$ac_try_echo"; } >&5 | |
1615 | (eval "$ac_try") 2>&5 | |
1616 | ac_status=$? | |
1617 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1618 | test $ac_status = 0; }; }; then : | |
1619 | ac_retval=0 | |
1620 | else | |
1621 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1622 | $as_echo "$as_me: failed program was:" >&5 | |
1623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1624 | ||
1625 | ac_retval=$ac_status | |
1626 | fi | |
1627 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1628 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1629 | return $ac_retval | |
1630 | ||
1631 | } # ac_fn_c_try_run | |
1632 | ||
1633 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1634 | # ------------------------------------------------------- | |
1635 | # Tests whether HEADER exists and can be compiled using the include files in | |
1636 | # INCLUDES, setting the cache variable VAR accordingly. | |
1637 | ac_fn_c_check_header_compile () | |
1638 | { | |
1639 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1641 | $as_echo_n "checking for $2... " >&6; } | |
1642 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1643 | $as_echo_n "(cached) " >&6 | |
1644 | else | |
1645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1646 | /* end confdefs.h. */ | |
1647 | $4 | |
1648 | #include <$2> | |
1649 | _ACEOF | |
1650 | if ac_fn_c_try_compile "$LINENO"; then : | |
1651 | eval "$3=yes" | |
1652 | else | |
1653 | eval "$3=no" | |
1654 | fi | |
1655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1656 | fi | |
1657 | eval ac_res=\$$3 | |
1658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1659 | $as_echo "$ac_res" >&6; } | |
1660 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1661 | ||
1662 | } # ac_fn_c_check_header_compile | |
1663 | ||
1664 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1665 | # ------------------------------------------- | |
1666 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1667 | # variable VAR accordingly. | |
1668 | ac_fn_c_check_type () | |
1669 | { | |
1670 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1672 | $as_echo_n "checking for $2... " >&6; } | |
1673 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1674 | $as_echo_n "(cached) " >&6 | |
1675 | else | |
1676 | eval "$3=no" | |
1677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1678 | /* end confdefs.h. */ | |
1679 | $4 | |
1680 | int | |
1681 | main () | |
1682 | { | |
1683 | if (sizeof ($2)) | |
1684 | return 0; | |
1685 | ; | |
1686 | return 0; | |
1687 | } | |
1688 | _ACEOF | |
1689 | if ac_fn_c_try_compile "$LINENO"; then : | |
1690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1691 | /* end confdefs.h. */ | |
1692 | $4 | |
1693 | int | |
1694 | main () | |
1695 | { | |
1696 | if (sizeof (($2))) | |
1697 | return 0; | |
1698 | ; | |
1699 | return 0; | |
1700 | } | |
1701 | _ACEOF | |
1702 | if ac_fn_c_try_compile "$LINENO"; then : | |
1703 | ||
1704 | else | |
1705 | eval "$3=yes" | |
1706 | fi | |
1707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1708 | fi | |
1709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1710 | fi | |
1711 | eval ac_res=\$$3 | |
1712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1713 | $as_echo "$ac_res" >&6; } | |
1714 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1715 | ||
1716 | } # ac_fn_c_check_type | |
1717 | ||
1718 | # ac_fn_c_try_link LINENO | |
1719 | # ----------------------- | |
1720 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1721 | ac_fn_c_try_link () | |
1722 | { | |
1723 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1724 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1725 | if { { ac_try="$ac_link" | |
1726 | case "(($ac_try" in | |
1727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1728 | *) ac_try_echo=$ac_try;; | |
1729 | esac | |
1730 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1731 | $as_echo "$ac_try_echo"; } >&5 | |
1732 | (eval "$ac_link") 2>conftest.err | |
1733 | ac_status=$? | |
1734 | if test -s conftest.err; then | |
1735 | grep -v '^ *+' conftest.err >conftest.er1 | |
1736 | cat conftest.er1 >&5 | |
1737 | mv -f conftest.er1 conftest.err | |
1738 | fi | |
1739 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1740 | test $ac_status = 0; } && { | |
1741 | test -z "$ac_c_werror_flag" || | |
1742 | test ! -s conftest.err | |
1743 | } && test -s conftest$ac_exeext && { | |
1744 | test "$cross_compiling" = yes || | |
1745 | $as_test_x conftest$ac_exeext | |
1746 | }; then : | |
1747 | ac_retval=0 | |
1748 | else | |
1749 | $as_echo "$as_me: failed program was:" >&5 | |
1750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1751 | ||
1752 | ac_retval=1 | |
1753 | fi | |
1754 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1755 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1756 | # interfere with the next link command; also delete a directory that is | |
1757 | # left behind by Apple's compiler. We do this before executing the actions. | |
1758 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1759 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1760 | return $ac_retval | |
1761 | ||
1762 | } # ac_fn_c_try_link | |
1763 | ||
1764 | # ac_fn_c_check_func LINENO FUNC VAR | |
1765 | # ---------------------------------- | |
1766 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1767 | ac_fn_c_check_func () | |
1768 | { | |
1769 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1771 | $as_echo_n "checking for $2... " >&6; } | |
1772 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1773 | $as_echo_n "(cached) " >&6 | |
1774 | else | |
1775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1776 | /* end confdefs.h. */ | |
1777 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1778 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1779 | #define $2 innocuous_$2 | |
1780 | ||
1781 | /* System header to define __stub macros and hopefully few prototypes, | |
1782 | which can conflict with char $2 (); below. | |
1783 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1784 | <limits.h> exists even on freestanding compilers. */ | |
1785 | ||
1786 | #ifdef __STDC__ | |
1787 | # include <limits.h> | |
1788 | #else | |
1789 | # include <assert.h> | |
1790 | #endif | |
1791 | ||
1792 | #undef $2 | |
1793 | ||
1794 | /* Override any GCC internal prototype to avoid an error. | |
1795 | Use char because int might match the return type of a GCC | |
1796 | builtin and then its argument prototype would still apply. */ | |
1797 | #ifdef __cplusplus | |
1798 | extern "C" | |
1799 | #endif | |
1800 | char $2 (); | |
1801 | /* The GNU C library defines this for functions which it implements | |
1802 | to always fail with ENOSYS. Some functions are actually named | |
1803 | something starting with __ and the normal name is an alias. */ | |
1804 | #if defined __stub_$2 || defined __stub___$2 | |
1805 | choke me | |
1806 | #endif | |
1807 | ||
1808 | int | |
1809 | main () | |
1810 | { | |
1811 | return $2 (); | |
1812 | ; | |
1813 | return 0; | |
1814 | } | |
1815 | _ACEOF | |
1816 | if ac_fn_c_try_link "$LINENO"; then : | |
1817 | eval "$3=yes" | |
1818 | else | |
1819 | eval "$3=no" | |
1820 | fi | |
1821 | rm -f core conftest.err conftest.$ac_objext \ | |
1822 | conftest$ac_exeext conftest.$ac_ext | |
1823 | fi | |
1824 | eval ac_res=\$$3 | |
1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1826 | $as_echo "$ac_res" >&6; } | |
1827 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1828 | ||
1829 | } # ac_fn_c_check_func | |
1830 | cat >config.log <<_ACEOF | |
1831 | This file contains any messages produced by compilers while | |
1832 | running configure, to aid debugging if configure makes a mistake. | |
1833 | ||
1834 | It was created by readline $as_me 5.1-release, which was | |
1835 | generated by GNU Autoconf 2.64. Invocation command line was | |
1836 | ||
1837 | $ $0 $@ | |
1838 | ||
1839 | _ACEOF | |
1840 | exec 5>>config.log | |
1841 | { | |
1842 | cat <<_ASUNAME | |
1843 | ## --------- ## | |
1844 | ## Platform. ## | |
1845 | ## --------- ## | |
1846 | ||
1847 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1848 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1849 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1850 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1851 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1852 | ||
1853 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1854 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1855 | ||
1856 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1857 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1858 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1859 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1860 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1861 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1862 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1863 | ||
1864 | _ASUNAME | |
1865 | ||
1866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1867 | for as_dir in $PATH | |
1868 | do | |
1869 | IFS=$as_save_IFS | |
1870 | test -z "$as_dir" && as_dir=. | |
1871 | $as_echo "PATH: $as_dir" | |
1872 | done | |
1873 | IFS=$as_save_IFS | |
1874 | ||
1875 | } >&5 | |
9255ee31 | 1876 | |
25ed0b71 KW |
1877 | cat >&5 <<_ACEOF |
1878 | ||
1879 | ||
1880 | ## ----------- ## | |
1881 | ## Core tests. ## | |
1882 | ## ----------- ## | |
1883 | ||
1884 | _ACEOF | |
9255ee31 | 1885 | |
9255ee31 EZ |
1886 | |
1887 | # Keep a trace of the command line. | |
1888 | # Strip out --no-create and --no-recursion so they do not pile up. | |
25ed0b71 | 1889 | # Strip out --silent because we don't want to record it for future runs. |
9255ee31 | 1890 | # Also quote any args containing shell meta-characters. |
25ed0b71 | 1891 | # Make two passes to allow for proper duplicate-argument suppression. |
9255ee31 | 1892 | ac_configure_args= |
25ed0b71 KW |
1893 | ac_configure_args0= |
1894 | ac_configure_args1= | |
25ed0b71 KW |
1895 | ac_must_keep_next=false |
1896 | for ac_pass in 1 2 | |
9255ee31 | 1897 | do |
25ed0b71 KW |
1898 | for ac_arg |
1899 | do | |
1900 | case $ac_arg in | |
1901 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1902 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1903 | | -silent | --silent | --silen | --sile | --sil) | |
1904 | continue ;; | |
81ecdfbb RW |
1905 | *\'*) |
1906 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
25ed0b71 KW |
1907 | esac |
1908 | case $ac_pass in | |
81ecdfbb | 1909 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
25ed0b71 | 1910 | 2) |
81ecdfbb | 1911 | as_fn_append ac_configure_args1 " '$ac_arg'" |
25ed0b71 | 1912 | if test $ac_must_keep_next = true; then |
430b7832 | 1913 | ac_must_keep_next=false # Got value, back to normal. |
25ed0b71 | 1914 | else |
430b7832 MM |
1915 | case $ac_arg in |
1916 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1917 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1918 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1919 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1920 | case "$ac_configure_args0 " in | |
1921 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1922 | esac | |
1923 | ;; | |
1924 | -* ) ac_must_keep_next=true ;; | |
1925 | esac | |
25ed0b71 | 1926 | fi |
81ecdfbb | 1927 | as_fn_append ac_configure_args " '$ac_arg'" |
25ed0b71 KW |
1928 | ;; |
1929 | esac | |
1930 | done | |
9255ee31 | 1931 | done |
81ecdfbb RW |
1932 | { ac_configure_args0=; unset ac_configure_args0;} |
1933 | { ac_configure_args1=; unset ac_configure_args1;} | |
9255ee31 EZ |
1934 | |
1935 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1936 | # config.log. We remove comments because anyway the quotes in there | |
1937 | # would cause problems or look ugly. | |
81ecdfbb RW |
1938 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1939 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
9255ee31 EZ |
1940 | trap 'exit_status=$? |
1941 | # Save into config.log some information that might help in debugging. | |
25ed0b71 KW |
1942 | { |
1943 | echo | |
1944 | ||
1945 | cat <<\_ASBOX | |
1946 | ## ---------------- ## | |
1947 | ## Cache variables. ## | |
1948 | ## ---------------- ## | |
1949 | _ASBOX | |
1950 | echo | |
1951 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
1952 | ( |
1953 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1954 | eval ac_val=\$$ac_var | |
1955 | case $ac_val in #( | |
1956 | *${as_nl}*) | |
1957 | case $ac_var in #( | |
1958 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1959 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1960 | esac | |
1961 | case $ac_var in #( | |
1962 | _ | IFS | as_nl) ;; #( | |
1963 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1964 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1965 | esac ;; | |
1966 | esac | |
1967 | done | |
9255ee31 | 1968 | (set) 2>&1 | |
81ecdfbb RW |
1969 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1970 | *${as_nl}ac_space=\ *) | |
9255ee31 | 1971 | sed -n \ |
81ecdfbb RW |
1972 | "s/'\''/'\''\\\\'\'''\''/g; |
1973 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1974 | ;; #( | |
9255ee31 | 1975 | *) |
81ecdfbb | 1976 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
9255ee31 | 1977 | ;; |
81ecdfbb RW |
1978 | esac | |
1979 | sort | |
1980 | ) | |
25ed0b71 KW |
1981 | echo |
1982 | ||
1983 | cat <<\_ASBOX | |
1984 | ## ----------------- ## | |
1985 | ## Output variables. ## | |
1986 | ## ----------------- ## | |
1987 | _ASBOX | |
1988 | echo | |
1989 | for ac_var in $ac_subst_vars | |
1990 | do | |
81ecdfbb RW |
1991 | eval ac_val=\$$ac_var |
1992 | case $ac_val in | |
1993 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1994 | esac | |
1995 | $as_echo "$ac_var='\''$ac_val'\''" | |
25ed0b71 KW |
1996 | done | sort |
1997 | echo | |
1998 | ||
1999 | if test -n "$ac_subst_files"; then | |
2000 | cat <<\_ASBOX | |
81ecdfbb RW |
2001 | ## ------------------- ## |
2002 | ## File substitutions. ## | |
2003 | ## ------------------- ## | |
25ed0b71 KW |
2004 | _ASBOX |
2005 | echo | |
2006 | for ac_var in $ac_subst_files | |
2007 | do | |
81ecdfbb RW |
2008 | eval ac_val=\$$ac_var |
2009 | case $ac_val in | |
2010 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2011 | esac | |
2012 | $as_echo "$ac_var='\''$ac_val'\''" | |
25ed0b71 KW |
2013 | done | sort |
2014 | echo | |
2015 | fi | |
2016 | ||
2017 | if test -s confdefs.h; then | |
2018 | cat <<\_ASBOX | |
2019 | ## ----------- ## | |
2020 | ## confdefs.h. ## | |
2021 | ## ----------- ## | |
2022 | _ASBOX | |
2023 | echo | |
81ecdfbb | 2024 | cat confdefs.h |
25ed0b71 KW |
2025 | echo |
2026 | fi | |
2027 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2028 | $as_echo "$as_me: caught signal $ac_signal" |
2029 | $as_echo "$as_me: exit $exit_status" | |
25ed0b71 | 2030 | } >&5 |
81ecdfbb RW |
2031 | rm -f core *.core core.conftest.* && |
2032 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
9255ee31 | 2033 | exit $exit_status |
81ecdfbb | 2034 | ' 0 |
9255ee31 | 2035 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2036 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
9255ee31 EZ |
2037 | done |
2038 | ac_signal=0 | |
2039 | ||
2040 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2041 | rm -f -r conftest* confdefs.h |
2042 | ||
2043 | $as_echo "/* confdefs.h */" > confdefs.h | |
9255ee31 | 2044 | |
25ed0b71 KW |
2045 | # Predefined preprocessor variables. |
2046 | ||
2047 | cat >>confdefs.h <<_ACEOF | |
2048 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2049 | _ACEOF | |
2050 | ||
25ed0b71 KW |
2051 | cat >>confdefs.h <<_ACEOF |
2052 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2053 | _ACEOF | |
2054 | ||
25ed0b71 KW |
2055 | cat >>confdefs.h <<_ACEOF |
2056 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2057 | _ACEOF | |
2058 | ||
25ed0b71 KW |
2059 | cat >>confdefs.h <<_ACEOF |
2060 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2061 | _ACEOF | |
2062 | ||
25ed0b71 KW |
2063 | cat >>confdefs.h <<_ACEOF |
2064 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2065 | _ACEOF | |
2066 | ||
81ecdfbb RW |
2067 | cat >>confdefs.h <<_ACEOF |
2068 | #define PACKAGE_URL "$PACKAGE_URL" | |
2069 | _ACEOF | |
2070 | ||
25ed0b71 | 2071 | |
9255ee31 | 2072 | # Let the site file select an alternate cache file if it wants to. |
81ecdfbb RW |
2073 | # Prefer an explicitly selected file to automatically selected ones. |
2074 | ac_site_file1=NONE | |
2075 | ac_site_file2=NONE | |
2076 | if test -n "$CONFIG_SITE"; then | |
2077 | ac_site_file1=$CONFIG_SITE | |
2078 | elif test "x$prefix" != xNONE; then | |
2079 | ac_site_file1=$prefix/share/config.site | |
2080 | ac_site_file2=$prefix/etc/config.site | |
2081 | else | |
2082 | ac_site_file1=$ac_default_prefix/share/config.site | |
2083 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2084 | fi | |
2085 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2086 | do | |
2087 | test "x$ac_site_file" = xNONE && continue | |
9255ee31 | 2088 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2089 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2090 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
25ed0b71 | 2091 | sed 's/^/| /' "$ac_site_file" >&5 |
9255ee31 EZ |
2092 | . "$ac_site_file" |
2093 | fi | |
2094 | done | |
2095 | ||
2096 | if test -r "$cache_file"; then | |
2097 | # Some versions of bash will fail to source /dev/null (special | |
2098 | # files actually), so we avoid doing that. | |
2099 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2100 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2101 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
9255ee31 | 2102 | case $cache_file in |
81ecdfbb RW |
2103 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2104 | *) . "./$cache_file";; | |
9255ee31 EZ |
2105 | esac |
2106 | fi | |
2107 | else | |
81ecdfbb RW |
2108 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2109 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
9255ee31 EZ |
2110 | >$cache_file |
2111 | fi | |
2112 | ||
2113 | # Check that the precious variables saved in the cache have kept the same | |
2114 | # value. | |
2115 | ac_cache_corrupted=false | |
81ecdfbb | 2116 | for ac_var in $ac_precious_vars; do |
9255ee31 EZ |
2117 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2118 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2119 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2120 | eval ac_new_val=\$ac_env_${ac_var}_value | |
9255ee31 EZ |
2121 | case $ac_old_set,$ac_new_set in |
2122 | set,) | |
81ecdfbb RW |
2123 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2124 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
9255ee31 EZ |
2125 | ac_cache_corrupted=: ;; |
2126 | ,set) | |
81ecdfbb RW |
2127 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2128 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
9255ee31 EZ |
2129 | ac_cache_corrupted=: ;; |
2130 | ,);; | |
2131 | *) | |
2132 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2133 | # differences in whitespace do not lead to failure. |
2134 | ac_old_val_w=`echo x $ac_old_val` | |
2135 | ac_new_val_w=`echo x $ac_new_val` | |
2136 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2137 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2138 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2139 | ac_cache_corrupted=: | |
2140 | else | |
2141 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2142 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2143 | eval $ac_var=\$ac_old_val | |
2144 | fi | |
2145 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2146 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2147 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2148 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
9255ee31 EZ |
2149 | fi;; |
2150 | esac | |
25ed0b71 | 2151 | # Pass precious variables to config.status. |
9255ee31 EZ |
2152 | if test "$ac_new_set" = set; then |
2153 | case $ac_new_val in | |
81ecdfbb | 2154 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
25ed0b71 KW |
2155 | *) ac_arg=$ac_var=$ac_new_val ;; |
2156 | esac | |
2157 | case " $ac_configure_args " in | |
2158 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2159 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
9255ee31 EZ |
2160 | esac |
2161 | fi | |
2162 | done | |
2163 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2164 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2165 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2166 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2167 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2168 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
9255ee31 | 2169 | fi |
81ecdfbb RW |
2170 | ## -------------------- ## |
2171 | ## Main body of script. ## | |
2172 | ## -------------------- ## | |
9255ee31 EZ |
2173 | |
2174 | ac_ext=c | |
2175 | ac_cpp='$CPP $CPPFLAGS' | |
2176 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2177 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2178 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2179 | ||
9255ee31 | 2180 | |
25ed0b71 KW |
2181 | |
2182 | ||
2183 | ||
2184 | ||
2185 | ||
2186 | ||
2187 | ||
9255ee31 | 2188 | ac_aux_dir= |
81ecdfbb RW |
2189 | for ac_dir in `cd $srcdir;pwd`/.. "$srcdir"/`cd $srcdir;pwd`/..; do |
2190 | for ac_t in install-sh install.sh shtool; do | |
2191 | if test -f "$ac_dir/$ac_t"; then | |
2192 | ac_aux_dir=$ac_dir | |
2193 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2194 | break 2 | |
2195 | fi | |
2196 | done | |
9255ee31 EZ |
2197 | done |
2198 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2199 | as_fn_error "cannot find install-sh, install.sh, or shtool in \`cd $srcdir;pwd\`/.. \"$srcdir\"/\`cd $srcdir;pwd\`/.." "$LINENO" 5 |
9255ee31 | 2200 | fi |
9255ee31 | 2201 | |
81ecdfbb RW |
2202 | # These three variables are undocumented and unsupported, |
2203 | # and are intended to be withdrawn in a future Autoconf release. | |
2204 | # They can cause serious problems if a builder's source tree is in a directory | |
2205 | # whose full name contains unusual characters. | |
2206 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2207 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2208 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2209 | ||
2210 | ||
2211 | ac_config_headers="$ac_config_headers config.h" | |
5bdf8622 DJ |
2212 | |
2213 | ||
2214 | LIBVERSION=5.1 | |
2215 | ||
9255ee31 | 2216 | # Make sure we can run config.sub. |
81ecdfbb RW |
2217 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2218 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2219 | ||
2220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2221 | $as_echo_n "checking build system type... " >&6; } | |
2222 | if test "${ac_cv_build+set}" = set; then : | |
2223 | $as_echo_n "(cached) " >&6 | |
2224 | else | |
2225 | ac_build_alias=$build_alias | |
2226 | test "x$ac_build_alias" = x && | |
2227 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2228 | test "x$ac_build_alias" = x && | |
2229 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2230 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2231 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2232 | ||
2233 | fi | |
2234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2235 | $as_echo "$ac_cv_build" >&6; } | |
2236 | case $ac_cv_build in | |
2237 | *-*-*) ;; | |
2238 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2239 | esac | |
9255ee31 | 2240 | build=$ac_cv_build |
81ecdfbb RW |
2241 | ac_save_IFS=$IFS; IFS='-' |
2242 | set x $ac_cv_build | |
2243 | shift | |
2244 | build_cpu=$1 | |
2245 | build_vendor=$2 | |
2246 | shift; shift | |
2247 | # Remember, the first character of IFS is used to create $*, | |
2248 | # except with old shells: | |
2249 | build_os=$* | |
2250 | IFS=$ac_save_IFS | |
2251 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
9255ee31 | 2252 | |
25ed0b71 | 2253 | |
81ecdfbb RW |
2254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2255 | $as_echo_n "checking host system type... " >&6; } | |
2256 | if test "${ac_cv_host+set}" = set; then : | |
2257 | $as_echo_n "(cached) " >&6 | |
2258 | else | |
2259 | if test "x$host_alias" = x; then | |
2260 | ac_cv_host=$ac_cv_build | |
9255ee31 | 2261 | else |
81ecdfbb RW |
2262 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2263 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2264 | fi | |
9255ee31 EZ |
2265 | |
2266 | fi | |
81ecdfbb RW |
2267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2268 | $as_echo "$ac_cv_host" >&6; } | |
2269 | case $ac_cv_host in | |
2270 | *-*-*) ;; | |
2271 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2272 | esac | |
9255ee31 | 2273 | host=$ac_cv_host |
81ecdfbb RW |
2274 | ac_save_IFS=$IFS; IFS='-' |
2275 | set x $ac_cv_host | |
2276 | shift | |
2277 | host_cpu=$1 | |
2278 | host_vendor=$2 | |
2279 | shift; shift | |
2280 | # Remember, the first character of IFS is used to create $*, | |
2281 | # except with old shells: | |
2282 | host_os=$* | |
2283 | IFS=$ac_save_IFS | |
2284 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
9255ee31 | 2285 | |
25ed0b71 KW |
2286 | |
2287 | ||
9255ee31 | 2288 | opt_curses=no |
5bdf8622 | 2289 | opt_purify=no |
9255ee31 | 2290 | |
25ed0b71 | 2291 | |
81ecdfbb RW |
2292 | # Check whether --with-curses was given. |
2293 | if test "${with_curses+set}" = set; then : | |
2294 | withval=$with_curses; opt_curses=$withval | |
2295 | fi | |
2296 | ||
2297 | ||
2298 | # Check whether --with-purify was given. | |
2299 | if test "${with_purify+set}" = set; then : | |
2300 | withval=$with_purify; opt_purify=$withval | |
2301 | fi | |
9255ee31 | 2302 | |
5bdf8622 | 2303 | |
9255ee31 EZ |
2304 | if test "$opt_curses" = "yes"; then |
2305 | prefer_curses=yes | |
2306 | fi | |
2307 | ||
5bdf8622 DJ |
2308 | if test "$opt_purify" = yes; then |
2309 | PURIFY="purify" | |
2310 | else | |
2311 | PURIFY= | |
2312 | fi | |
2313 | ||
2314 | opt_multibyte=yes | |
9255ee31 | 2315 | opt_static_libs=yes |
d7d4a3d1 | 2316 | opt_shared_libs=no |
9255ee31 | 2317 | |
81ecdfbb RW |
2318 | # Check whether --enable-multibyte was given. |
2319 | if test "${enable_multibyte+set}" = set; then : | |
2320 | enableval=$enable_multibyte; opt_multibyte=$enableval | |
2321 | fi | |
2322 | ||
2323 | # Check whether --enable-static was given. | |
2324 | if test "${enable_static+set}" = set; then : | |
2325 | enableval=$enable_static; opt_static_libs=$enableval | |
2326 | fi | |
2327 | ||
9255ee31 | 2328 | |
5bdf8622 | 2329 | if test $opt_multibyte = no; then |
81ecdfbb | 2330 | $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h |
5bdf8622 DJ |
2331 | |
2332 | fi | |
2333 | ||
2334 | ||
2335 | ||
eeab5adb | 2336 | CROSS_COMPILE= |
5bdf8622 DJ |
2337 | if test "x$cross_compiling" = "xyes"; then |
2338 | case "${host}" in | |
2339 | *-cygwin*) | |
2340 | cross_cache=${srcdir}/cross-build/cygwin.cache | |
2341 | ;; | |
2342 | *-mingw*) | |
2343 | cross_cache=${srcdir}/cross-build/mingw.cache | |
2344 | ;; | |
2345 | i[3456]86-*-beos*) | |
2346 | cross_cache=${srcdir}/cross-build/x86-beos.cache | |
2347 | ;; | |
2348 | *) echo "configure: cross-compiling for $host is not supported" >&2 | |
2349 | ;; | |
2350 | esac | |
2351 | if test -n "${cross_cache}" && test -r "${cross_cache}"; then | |
2352 | echo "loading cross-build cache file ${cross_cache}" | |
2353 | . ${cross_cache} | |
2354 | fi | |
2355 | unset cross_cache | |
2356 | CROSS_COMPILE='-DCROSS_COMPILING' | |
2357 | ||
2358 | fi | |
2359 | ||
9255ee31 EZ |
2360 | echo "" |
2361 | echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}" | |
2362 | echo "" | |
2363 | ||
2364 | # We want these before the checks, so the checks can modify their values. | |
2365 | test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1 | |
2366 | ||
81ecdfbb RW |
2367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2368 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2369 | set x ${MAKE-make} | |
2370 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2371 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2372 | $as_echo_n "(cached) " >&6 | |
9255ee31 | 2373 | else |
25ed0b71 | 2374 | cat >conftest.make <<\_ACEOF |
81ecdfbb | 2375 | SHELL = /bin/sh |
9255ee31 | 2376 | all: |
81ecdfbb | 2377 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
25ed0b71 | 2378 | _ACEOF |
9255ee31 | 2379 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
81ecdfbb RW |
2380 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2381 | *@@@%%%=?*=@@@%%%*) | |
2382 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2383 | *) | |
2384 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2385 | esac | |
9255ee31 EZ |
2386 | rm -f conftest.make |
2387 | fi | |
81ecdfbb RW |
2388 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2390 | $as_echo "yes" >&6; } | |
9255ee31 EZ |
2391 | SET_MAKE= |
2392 | else | |
81ecdfbb RW |
2393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2394 | $as_echo "no" >&6; } | |
9255ee31 EZ |
2395 | SET_MAKE="MAKE=${MAKE-make}" |
2396 | fi | |
2397 | ||
2398 | ac_ext=c | |
2399 | ac_cpp='$CPP $CPPFLAGS' | |
2400 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2401 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2402 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2403 | if test -n "$ac_tool_prefix"; then | |
2404 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2405 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
2406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2407 | $as_echo_n "checking for $ac_word... " >&6; } | |
2408 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2409 | $as_echo_n "(cached) " >&6 | |
9255ee31 EZ |
2410 | else |
2411 | if test -n "$CC"; then | |
2412 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2413 | else | |
25ed0b71 KW |
2414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2415 | for as_dir in $PATH | |
2416 | do | |
2417 | IFS=$as_save_IFS | |
2418 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2419 | for ac_exec_ext in '' $ac_executable_extensions; do |
2420 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
25ed0b71 | 2421 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
2423 | break 2 |
2424 | fi | |
2425 | done | |
81ecdfbb RW |
2426 | done |
2427 | IFS=$as_save_IFS | |
9255ee31 | 2428 | |
d60d9f65 | 2429 | fi |
9255ee31 EZ |
2430 | fi |
2431 | CC=$ac_cv_prog_CC | |
d60d9f65 | 2432 | if test -n "$CC"; then |
81ecdfbb RW |
2433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2434 | $as_echo "$CC" >&6; } | |
9255ee31 | 2435 | else |
81ecdfbb RW |
2436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2437 | $as_echo "no" >&6; } | |
9255ee31 EZ |
2438 | fi |
2439 | ||
81ecdfbb | 2440 | |
9255ee31 EZ |
2441 | fi |
2442 | if test -z "$ac_cv_prog_CC"; then | |
2443 | ac_ct_CC=$CC | |
2444 | # Extract the first word of "gcc", so it can be a program name with args. | |
2445 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2447 | $as_echo_n "checking for $ac_word... " >&6; } | |
2448 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2449 | $as_echo_n "(cached) " >&6 | |
9255ee31 EZ |
2450 | else |
2451 | if test -n "$ac_ct_CC"; then | |
2452 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2453 | else | |
25ed0b71 KW |
2454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2455 | for as_dir in $PATH | |
2456 | do | |
2457 | IFS=$as_save_IFS | |
2458 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2459 | for ac_exec_ext in '' $ac_executable_extensions; do |
2460 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
25ed0b71 | 2461 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
2463 | break 2 |
2464 | fi | |
2465 | done | |
81ecdfbb RW |
2466 | done |
2467 | IFS=$as_save_IFS | |
9255ee31 EZ |
2468 | |
2469 | fi | |
2470 | fi | |
2471 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2472 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2474 | $as_echo "$ac_ct_CC" >&6; } | |
9255ee31 | 2475 | else |
81ecdfbb RW |
2476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2477 | $as_echo "no" >&6; } | |
9255ee31 EZ |
2478 | fi |
2479 | ||
81ecdfbb RW |
2480 | if test "x$ac_ct_CC" = x; then |
2481 | CC="" | |
2482 | else | |
2483 | case $cross_compiling:$ac_tool_warned in | |
2484 | yes:) | |
2485 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2486 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2487 | ac_tool_warned=yes ;; | |
2488 | esac | |
2489 | CC=$ac_ct_CC | |
2490 | fi | |
d60d9f65 | 2491 | else |
9255ee31 | 2492 | CC="$ac_cv_prog_CC" |
d60d9f65 SS |
2493 | fi |
2494 | ||
2495 | if test -z "$CC"; then | |
81ecdfbb RW |
2496 | if test -n "$ac_tool_prefix"; then |
2497 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
9255ee31 | 2498 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2500 | $as_echo_n "checking for $ac_word... " >&6; } | |
2501 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2502 | $as_echo_n "(cached) " >&6 | |
9255ee31 EZ |
2503 | else |
2504 | if test -n "$CC"; then | |
2505 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2506 | else | |
25ed0b71 KW |
2507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2508 | for as_dir in $PATH | |
2509 | do | |
2510 | IFS=$as_save_IFS | |
2511 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2512 | for ac_exec_ext in '' $ac_executable_extensions; do |
2513 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
25ed0b71 | 2514 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
2516 | break 2 |
2517 | fi | |
2518 | done | |
81ecdfbb RW |
2519 | done |
2520 | IFS=$as_save_IFS | |
9255ee31 EZ |
2521 | |
2522 | fi | |
2523 | fi | |
2524 | CC=$ac_cv_prog_CC | |
2525 | if test -n "$CC"; then | |
81ecdfbb RW |
2526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2527 | $as_echo "$CC" >&6; } | |
9255ee31 | 2528 | else |
81ecdfbb RW |
2529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2530 | $as_echo "no" >&6; } | |
9255ee31 EZ |
2531 | fi |
2532 | ||
81ecdfbb RW |
2533 | |
2534 | fi | |
9255ee31 | 2535 | fi |
81ecdfbb | 2536 | if test -z "$CC"; then |
d60d9f65 SS |
2537 | # Extract the first word of "cc", so it can be a program name with args. |
2538 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2540 | $as_echo_n "checking for $ac_word... " >&6; } | |
2541 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2542 | $as_echo_n "(cached) " >&6 | |
9255ee31 | 2543 | else |
81ecdfbb RW |
2544 | if test -n "$CC"; then |
2545 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9255ee31 | 2546 | else |
81ecdfbb | 2547 | ac_prog_rejected=no |
25ed0b71 KW |
2548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2549 | for as_dir in $PATH | |
2550 | do | |
2551 | IFS=$as_save_IFS | |
2552 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2553 | for ac_exec_ext in '' $ac_executable_extensions; do |
2554 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2555 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2556 | ac_prog_rejected=yes | |
2557 | continue | |
2558 | fi | |
2559 | ac_cv_prog_CC="cc" | |
2560 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25ed0b71 KW |
2561 | break 2 |
2562 | fi | |
2563 | done | |
81ecdfbb RW |
2564 | done |
2565 | IFS=$as_save_IFS | |
9255ee31 | 2566 | |
d60d9f65 SS |
2567 | if test $ac_prog_rejected = yes; then |
2568 | # We found a bogon in the path, so make sure we never use it. | |
2569 | set dummy $ac_cv_prog_CC | |
2570 | shift | |
9255ee31 | 2571 | if test $# != 0; then |
d60d9f65 SS |
2572 | # We chose a different compiler from the bogus one. |
2573 | # However, it has the same basename, so the bogon will be chosen | |
2574 | # first if we set CC to just the basename; use the full file name. | |
2575 | shift | |
25ed0b71 | 2576 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
d60d9f65 SS |
2577 | fi |
2578 | fi | |
2579 | fi | |
2580 | fi | |
9255ee31 | 2581 | CC=$ac_cv_prog_CC |
d60d9f65 | 2582 | if test -n "$CC"; then |
81ecdfbb RW |
2583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2584 | $as_echo "$CC" >&6; } | |
d60d9f65 | 2585 | else |
81ecdfbb RW |
2586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2587 | $as_echo "no" >&6; } | |
d60d9f65 SS |
2588 | fi |
2589 | ||
81ecdfbb | 2590 | |
9255ee31 EZ |
2591 | fi |
2592 | if test -z "$CC"; then | |
2593 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2594 | for ac_prog in cl.exe |
9255ee31 EZ |
2595 | do |
2596 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2597 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2599 | $as_echo_n "checking for $ac_word... " >&6; } | |
2600 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2601 | $as_echo_n "(cached) " >&6 | |
d60d9f65 SS |
2602 | else |
2603 | if test -n "$CC"; then | |
2604 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2605 | else | |
25ed0b71 KW |
2606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2607 | for as_dir in $PATH | |
2608 | do | |
2609 | IFS=$as_save_IFS | |
2610 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2611 | for ac_exec_ext in '' $ac_executable_extensions; do |
2612 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
25ed0b71 | 2613 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2614 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
2615 | break 2 |
2616 | fi | |
2617 | done | |
81ecdfbb RW |
2618 | done |
2619 | IFS=$as_save_IFS | |
9255ee31 | 2620 | |
d60d9f65 SS |
2621 | fi |
2622 | fi | |
9255ee31 | 2623 | CC=$ac_cv_prog_CC |
d60d9f65 | 2624 | if test -n "$CC"; then |
81ecdfbb RW |
2625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2626 | $as_echo "$CC" >&6; } | |
d60d9f65 | 2627 | else |
81ecdfbb RW |
2628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2629 | $as_echo "no" >&6; } | |
d60d9f65 SS |
2630 | fi |
2631 | ||
81ecdfbb | 2632 | |
9255ee31 EZ |
2633 | test -n "$CC" && break |
2634 | done | |
2635 | fi | |
2636 | if test -z "$CC"; then | |
2637 | ac_ct_CC=$CC | |
81ecdfbb | 2638 | for ac_prog in cl.exe |
9255ee31 EZ |
2639 | do |
2640 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2641 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2643 | $as_echo_n "checking for $ac_word... " >&6; } | |
2644 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2645 | $as_echo_n "(cached) " >&6 | |
9255ee31 EZ |
2646 | else |
2647 | if test -n "$ac_ct_CC"; then | |
2648 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2649 | else | |
25ed0b71 KW |
2650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2651 | for as_dir in $PATH | |
2652 | do | |
2653 | IFS=$as_save_IFS | |
2654 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2655 | for ac_exec_ext in '' $ac_executable_extensions; do |
2656 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
25ed0b71 | 2657 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 2658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
2659 | break 2 |
2660 | fi | |
2661 | done | |
81ecdfbb RW |
2662 | done |
2663 | IFS=$as_save_IFS | |
d60d9f65 | 2664 | |
9255ee31 EZ |
2665 | fi |
2666 | fi | |
2667 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2668 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2670 | $as_echo "$ac_ct_CC" >&6; } | |
9255ee31 | 2671 | else |
81ecdfbb RW |
2672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2673 | $as_echo "no" >&6; } | |
9255ee31 | 2674 | fi |
d60d9f65 | 2675 | |
81ecdfbb | 2676 | |
9255ee31 EZ |
2677 | test -n "$ac_ct_CC" && break |
2678 | done | |
c862e87b | 2679 | |
81ecdfbb RW |
2680 | if test "x$ac_ct_CC" = x; then |
2681 | CC="" | |
2682 | else | |
2683 | case $cross_compiling:$ac_tool_warned in | |
2684 | yes:) | |
2685 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2686 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2687 | ac_tool_warned=yes ;; | |
2688 | esac | |
2689 | CC=$ac_ct_CC | |
2690 | fi | |
9255ee31 EZ |
2691 | fi |
2692 | ||
2693 | fi | |
2694 | ||
25ed0b71 | 2695 | |
81ecdfbb RW |
2696 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2697 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2698 | as_fn_error "no acceptable C compiler found in \$PATH | |
2699 | See \`config.log' for more details." "$LINENO" 5; } | |
9255ee31 EZ |
2700 | |
2701 | # Provide some information about the compiler. | |
81ecdfbb RW |
2702 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2703 | set X $ac_compile | |
2704 | ac_compiler=$2 | |
2705 | for ac_option in --version -v -V -qversion; do | |
2706 | { { ac_try="$ac_compiler $ac_option >&5" | |
2707 | case "(($ac_try" in | |
2708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2709 | *) ac_try_echo=$ac_try;; | |
2710 | esac | |
2711 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2712 | $as_echo "$ac_try_echo"; } >&5 | |
2713 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
9255ee31 | 2714 | ac_status=$? |
81ecdfbb RW |
2715 | if test -s conftest.err; then |
2716 | sed '10a\ | |
2717 | ... rest of stderr output deleted ... | |
2718 | 10q' conftest.err >conftest.er1 | |
2719 | cat conftest.er1 >&5 | |
2720 | rm -f conftest.er1 conftest.err | |
2721 | fi | |
2722 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2723 | test $ac_status = 0; } | |
2724 | done | |
9255ee31 | 2725 | |
81ecdfbb | 2726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 2727 | /* end confdefs.h. */ |
c862e87b | 2728 | |
9255ee31 EZ |
2729 | int |
2730 | main () | |
2731 | { | |
2732 | ||
2733 | ; | |
2734 | return 0; | |
2735 | } | |
2736 | _ACEOF | |
2737 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 2738 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
9255ee31 EZ |
2739 | # Try to create an executable without -o first, disregard a.out. |
2740 | # It will help us diagnose broken compilers, and finding out an intuition | |
2741 | # of exeext. | |
81ecdfbb RW |
2742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2743 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2744 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2745 | ||
2746 | # The possible output files: | |
2747 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2748 | ||
2749 | ac_rmfiles= | |
2750 | for ac_file in $ac_files | |
2751 | do | |
2752 | case $ac_file in | |
2753 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2754 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2755 | esac | |
2756 | done | |
2757 | rm -f $ac_rmfiles | |
2758 | ||
2759 | if { { ac_try="$ac_link_default" | |
2760 | case "(($ac_try" in | |
2761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2762 | *) ac_try_echo=$ac_try;; | |
2763 | esac | |
2764 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2765 | $as_echo "$ac_try_echo"; } >&5 | |
2766 | (eval "$ac_link_default") 2>&5 | |
2767 | ac_status=$? | |
2768 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2769 | test $ac_status = 0; }; then : | |
2770 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2771 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2772 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2773 | # so that the user can short-circuit this test for compilers unknown to | |
2774 | # Autoconf. | |
2775 | for ac_file in $ac_files '' | |
25ed0b71 KW |
2776 | do |
2777 | test -f "$ac_file" || continue | |
9255ee31 | 2778 | case $ac_file in |
81ecdfbb | 2779 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
430b7832 | 2780 | ;; |
25ed0b71 | 2781 | [ab].out ) |
430b7832 MM |
2782 | # We found the default executable, but exeext='' is most |
2783 | # certainly right. | |
2784 | break;; | |
25ed0b71 | 2785 | *.* ) |
81ecdfbb RW |
2786 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2787 | then :; else | |
2788 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2789 | fi | |
2790 | # We set ac_cv_exeext here because the later test for it is not | |
2791 | # safe: cross compilers may not add the suffix if given an `-o' | |
2792 | # argument, so we may need to know it at that point already. | |
2793 | # Even if this section looks crufty: it has the advantage of | |
2794 | # actually working. | |
430b7832 | 2795 | break;; |
25ed0b71 | 2796 | * ) |
430b7832 | 2797 | break;; |
9255ee31 EZ |
2798 | esac |
2799 | done | |
81ecdfbb RW |
2800 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2801 | ||
9255ee31 | 2802 | else |
81ecdfbb RW |
2803 | ac_file='' |
2804 | fi | |
2805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2806 | $as_echo "$ac_file" >&6; } | |
2807 | if test -z "$ac_file"; then : | |
2808 | $as_echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
2809 | sed 's/^/| /' conftest.$ac_ext >&5 |
2810 | ||
81ecdfbb RW |
2811 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2812 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2813 | { as_fn_set_status 77 | |
2814 | as_fn_error "C compiler cannot create executables | |
2815 | See \`config.log' for more details." "$LINENO" 5; }; } | |
9255ee31 | 2816 | fi |
9255ee31 | 2817 | ac_exeext=$ac_cv_exeext |
9255ee31 | 2818 | |
81ecdfbb | 2819 | # Check that the compiler produces executables we can run. If not, either |
9255ee31 | 2820 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2822 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
9255ee31 EZ |
2823 | # If not cross compiling, check that we can run a simple program. |
2824 | if test "$cross_compiling" != yes; then | |
2825 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
2826 | { { case "(($ac_try" in |
2827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2828 | *) ac_try_echo=$ac_try;; | |
2829 | esac | |
2830 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2831 | $as_echo "$ac_try_echo"; } >&5 | |
2832 | (eval "$ac_try") 2>&5 | |
9255ee31 | 2833 | ac_status=$? |
81ecdfbb RW |
2834 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2835 | test $ac_status = 0; }; }; then | |
9255ee31 | 2836 | cross_compiling=no |
d60d9f65 | 2837 | else |
9255ee31 EZ |
2838 | if test "$cross_compiling" = maybe; then |
2839 | cross_compiling=yes | |
2840 | else | |
81ecdfbb RW |
2841 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2842 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2843 | as_fn_error "cannot run C compiled programs. | |
25ed0b71 | 2844 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 2845 | See \`config.log' for more details." "$LINENO" 5; } |
9255ee31 | 2846 | fi |
d60d9f65 | 2847 | fi |
d60d9f65 | 2848 | fi |
81ecdfbb RW |
2849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2850 | $as_echo "yes" >&6; } | |
9255ee31 | 2851 | |
81ecdfbb | 2852 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
9255ee31 | 2853 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 2854 | # Check that the compiler produces executables we can run. If not, either |
9255ee31 | 2855 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
2857 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2859 | $as_echo "$cross_compiling" >&6; } | |
2860 | ||
2861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2862 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2863 | if { { ac_try="$ac_link" | |
2864 | case "(($ac_try" in | |
2865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2866 | *) ac_try_echo=$ac_try;; | |
2867 | esac | |
2868 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2869 | $as_echo "$ac_try_echo"; } >&5 | |
2870 | (eval "$ac_link") 2>&5 | |
9255ee31 | 2871 | ac_status=$? |
81ecdfbb RW |
2872 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2873 | test $ac_status = 0; }; then : | |
9255ee31 EZ |
2874 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2875 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2876 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2877 | # `rm'. | |
25ed0b71 KW |
2878 | for ac_file in conftest.exe conftest conftest.*; do |
2879 | test -f "$ac_file" || continue | |
9255ee31 | 2880 | case $ac_file in |
81ecdfbb | 2881 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
9255ee31 | 2882 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
430b7832 | 2883 | break;; |
9255ee31 EZ |
2884 | * ) break;; |
2885 | esac | |
2886 | done | |
d60d9f65 | 2887 | else |
81ecdfbb RW |
2888 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2889 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2890 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
2891 | See \`config.log' for more details." "$LINENO" 5; } | |
9255ee31 | 2892 | fi |
9255ee31 | 2893 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2895 | $as_echo "$ac_cv_exeext" >&6; } | |
9255ee31 EZ |
2896 | |
2897 | rm -f conftest.$ac_ext | |
2898 | EXEEXT=$ac_cv_exeext | |
2899 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
2900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2901 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2902 | if test "${ac_cv_objext+set}" = set; then : | |
2903 | $as_echo_n "(cached) " >&6 | |
9255ee31 | 2904 | else |
81ecdfbb | 2905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 2906 | /* end confdefs.h. */ |
d60d9f65 | 2907 | |
9255ee31 EZ |
2908 | int |
2909 | main () | |
2910 | { | |
d60d9f65 | 2911 | |
9255ee31 EZ |
2912 | ; |
2913 | return 0; | |
2914 | } | |
2915 | _ACEOF | |
2916 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
2917 | if { { ac_try="$ac_compile" |
2918 | case "(($ac_try" in | |
2919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2920 | *) ac_try_echo=$ac_try;; | |
2921 | esac | |
2922 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2923 | $as_echo "$ac_try_echo"; } >&5 | |
2924 | (eval "$ac_compile") 2>&5 | |
2925 | ac_status=$? | |
2926 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2927 | test $ac_status = 0; }; then : | |
2928 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2929 | test -f "$ac_file" || continue; | |
9255ee31 | 2930 | case $ac_file in |
81ecdfbb | 2931 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
9255ee31 EZ |
2932 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2933 | break;; | |
2934 | esac | |
2935 | done | |
d60d9f65 | 2936 | else |
81ecdfbb | 2937 | $as_echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
2938 | sed 's/^/| /' conftest.$ac_ext >&5 |
2939 | ||
81ecdfbb RW |
2940 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2941 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2942 | as_fn_error "cannot compute suffix of object files: cannot compile | |
2943 | See \`config.log' for more details." "$LINENO" 5; } | |
9255ee31 | 2944 | fi |
9255ee31 EZ |
2945 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2946 | fi | |
81ecdfbb RW |
2947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2948 | $as_echo "$ac_cv_objext" >&6; } | |
9255ee31 EZ |
2949 | OBJEXT=$ac_cv_objext |
2950 | ac_objext=$OBJEXT | |
81ecdfbb RW |
2951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
2952 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2953 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
2954 | $as_echo_n "(cached) " >&6 | |
9255ee31 | 2955 | else |
81ecdfbb | 2956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 2957 | /* end confdefs.h. */ |
9255ee31 EZ |
2958 | |
2959 | int | |
2960 | main () | |
2961 | { | |
2962 | #ifndef __GNUC__ | |
2963 | choke me | |
2964 | #endif | |
d60d9f65 | 2965 | |
9255ee31 EZ |
2966 | ; |
2967 | return 0; | |
2968 | } | |
2969 | _ACEOF | |
81ecdfbb | 2970 | if ac_fn_c_try_compile "$LINENO"; then : |
9255ee31 EZ |
2971 | ac_compiler_gnu=yes |
2972 | else | |
81ecdfbb | 2973 | ac_compiler_gnu=no |
9255ee31 | 2974 | fi |
81ecdfbb | 2975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9255ee31 EZ |
2976 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2977 | ||
2978 | fi | |
81ecdfbb RW |
2979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
2980 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2981 | if test $ac_compiler_gnu = yes; then | |
2982 | GCC=yes | |
2983 | else | |
2984 | GCC= | |
2985 | fi | |
9255ee31 EZ |
2986 | ac_test_CFLAGS=${CFLAGS+set} |
2987 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2989 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2990 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
2991 | $as_echo_n "(cached) " >&6 | |
2992 | else | |
2993 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2994 | ac_c_werror_flag=yes | |
2995 | ac_cv_prog_cc_g=no | |
2996 | CFLAGS="-g" | |
2997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 2998 | /* end confdefs.h. */ |
9255ee31 EZ |
2999 | |
3000 | int | |
3001 | main () | |
3002 | { | |
3003 | ||
3004 | ; | |
3005 | return 0; | |
3006 | } | |
3007 | _ACEOF | |
81ecdfbb | 3008 | if ac_fn_c_try_compile "$LINENO"; then : |
d60d9f65 SS |
3009 | ac_cv_prog_cc_g=yes |
3010 | else | |
81ecdfbb RW |
3011 | CFLAGS="" |
3012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3013 | /* end confdefs.h. */ | |
3014 | ||
3015 | int | |
3016 | main () | |
3017 | { | |
3018 | ||
3019 | ; | |
3020 | return 0; | |
3021 | } | |
3022 | _ACEOF | |
3023 | if ac_fn_c_try_compile "$LINENO"; then : | |
3024 | ||
3025 | else | |
3026 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3027 | CFLAGS="-g" | |
3028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3029 | /* end confdefs.h. */ | |
3030 | ||
3031 | int | |
3032 | main () | |
3033 | { | |
25ed0b71 | 3034 | |
81ecdfbb RW |
3035 | ; |
3036 | return 0; | |
3037 | } | |
3038 | _ACEOF | |
3039 | if ac_fn_c_try_compile "$LINENO"; then : | |
3040 | ac_cv_prog_cc_g=yes | |
3041 | fi | |
3042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3043 | fi | |
3044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d60d9f65 | 3045 | fi |
81ecdfbb RW |
3046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3047 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d60d9f65 | 3048 | fi |
81ecdfbb RW |
3049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3050 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
d60d9f65 | 3051 | if test "$ac_test_CFLAGS" = set; then |
9255ee31 | 3052 | CFLAGS=$ac_save_CFLAGS |
d60d9f65 SS |
3053 | elif test $ac_cv_prog_cc_g = yes; then |
3054 | if test "$GCC" = yes; then | |
3055 | CFLAGS="-g -O2" | |
3056 | else | |
3057 | CFLAGS="-g" | |
3058 | fi | |
3059 | else | |
3060 | if test "$GCC" = yes; then | |
3061 | CFLAGS="-O2" | |
3062 | else | |
3063 | CFLAGS= | |
3064 | fi | |
3065 | fi | |
81ecdfbb RW |
3066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3067 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3068 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3069 | $as_echo_n "(cached) " >&6 | |
25ed0b71 | 3070 | else |
81ecdfbb | 3071 | ac_cv_prog_cc_c89=no |
25ed0b71 | 3072 | ac_save_CC=$CC |
81ecdfbb | 3073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3074 | /* end confdefs.h. */ |
3075 | #include <stdarg.h> | |
3076 | #include <stdio.h> | |
3077 | #include <sys/types.h> | |
3078 | #include <sys/stat.h> | |
3079 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3080 | struct buf { int x; }; | |
3081 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3082 | static char *e (p, i) | |
3083 | char **p; | |
3084 | int i; | |
3085 | { | |
3086 | return p[i]; | |
3087 | } | |
3088 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3089 | { | |
3090 | char *s; | |
3091 | va_list v; | |
3092 | va_start (v,p); | |
3093 | s = g (p, va_arg (v,int)); | |
3094 | va_end (v); | |
3095 | return s; | |
3096 | } | |
430b7832 MM |
3097 | |
3098 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3099 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3100 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3101 | as 'x'. The following induces an error, until -std is added to get |
430b7832 MM |
3102 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3103 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3104 | that's true only with -std. */ |
430b7832 MM |
3105 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3106 | ||
81ecdfbb RW |
3107 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3108 | inside strings and character constants. */ | |
3109 | #define FOO(x) 'x' | |
3110 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3111 | ||
25ed0b71 KW |
3112 | int test (int i, double x); |
3113 | struct s1 {int (*f) (int a);}; | |
3114 | struct s2 {int (*f) (double a);}; | |
3115 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3116 | int argc; | |
3117 | char **argv; | |
3118 | int | |
3119 | main () | |
3120 | { | |
3121 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3122 | ; | |
3123 | return 0; | |
3124 | } | |
3125 | _ACEOF | |
81ecdfbb RW |
3126 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3127 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
25ed0b71 KW |
3128 | do |
3129 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3130 | if ac_fn_c_try_compile "$LINENO"; then : |
3131 | ac_cv_prog_cc_c89=$ac_arg | |
25ed0b71 | 3132 | fi |
81ecdfbb RW |
3133 | rm -f core conftest.err conftest.$ac_objext |
3134 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
25ed0b71 | 3135 | done |
81ecdfbb | 3136 | rm -f conftest.$ac_ext |
25ed0b71 KW |
3137 | CC=$ac_save_CC |
3138 | ||
3139 | fi | |
81ecdfbb RW |
3140 | # AC_CACHE_VAL |
3141 | case "x$ac_cv_prog_cc_c89" in | |
3142 | x) | |
3143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3144 | $as_echo "none needed" >&6; } ;; | |
3145 | xno) | |
3146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3147 | $as_echo "unsupported" >&6; } ;; | |
25ed0b71 | 3148 | *) |
81ecdfbb RW |
3149 | CC="$CC $ac_cv_prog_cc_c89" |
3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3151 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
25ed0b71 | 3152 | esac |
81ecdfbb | 3153 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
25ed0b71 | 3154 | |
9255ee31 | 3155 | fi |
d60d9f65 | 3156 | |
9255ee31 EZ |
3157 | ac_ext=c |
3158 | ac_cpp='$CPP $CPPFLAGS' | |
3159 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3160 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3161 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3162 | ||
25ed0b71 | 3163 | |
9255ee31 EZ |
3164 | ac_ext=c |
3165 | ac_cpp='$CPP $CPPFLAGS' | |
3166 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3167 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3168 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
3169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
3170 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d60d9f65 SS |
3171 | # On Suns, sometimes $CPP names a directory. |
3172 | if test -n "$CPP" && test -d "$CPP"; then | |
3173 | CPP= | |
3174 | fi | |
3175 | if test -z "$CPP"; then | |
81ecdfbb RW |
3176 | if test "${ac_cv_prog_CPP+set}" = set; then : |
3177 | $as_echo_n "(cached) " >&6 | |
d60d9f65 | 3178 | else |
9255ee31 EZ |
3179 | # Double quotes because CPP needs to be expanded |
3180 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3181 | do | |
3182 | ac_preproc_ok=false | |
3183 | for ac_c_preproc_warn_flag in '' yes | |
3184 | do | |
3185 | # Use a header file that comes with gcc, so configuring glibc | |
3186 | # with a fresh cross-compiler works. | |
25ed0b71 KW |
3187 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3188 | # <limits.h> exists even on freestanding compilers. | |
d60d9f65 | 3189 | # On the NeXT, cc -E runs the code through the compiler's parser, |
9255ee31 | 3190 | # not just through cpp. "Syntax error" is here to catch this case. |
81ecdfbb | 3191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3192 | /* end confdefs.h. */ |
3193 | #ifdef __STDC__ | |
3194 | # include <limits.h> | |
3195 | #else | |
3196 | # include <assert.h> | |
3197 | #endif | |
430b7832 | 3198 | Syntax error |
9255ee31 | 3199 | _ACEOF |
81ecdfbb | 3200 | if ac_fn_c_try_cpp "$LINENO"; then : |
25ed0b71 | 3201 | |
81ecdfbb | 3202 | else |
9255ee31 EZ |
3203 | # Broken: fails on valid input. |
3204 | continue | |
3205 | fi | |
3206 | rm -f conftest.err conftest.$ac_ext | |
3207 | ||
81ecdfbb | 3208 | # OK, works on sane cases. Now check whether nonexistent headers |
9255ee31 | 3209 | # can be detected and how. |
81ecdfbb | 3210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 3211 | /* end confdefs.h. */ |
9255ee31 EZ |
3212 | #include <ac_nonexistent.h> |
3213 | _ACEOF | |
81ecdfbb | 3214 | if ac_fn_c_try_cpp "$LINENO"; then : |
9255ee31 EZ |
3215 | # Broken: success on invalid input. |
3216 | continue | |
d60d9f65 | 3217 | else |
9255ee31 EZ |
3218 | # Passes both tests. |
3219 | ac_preproc_ok=: | |
3220 | break | |
3221 | fi | |
3222 | rm -f conftest.err conftest.$ac_ext | |
3223 | ||
3224 | done | |
3225 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3226 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb | 3227 | if $ac_preproc_ok; then : |
9255ee31 EZ |
3228 | break |
3229 | fi | |
3230 | ||
3231 | done | |
3232 | ac_cv_prog_CPP=$CPP | |
3233 | ||
3234 | fi | |
3235 | CPP=$ac_cv_prog_CPP | |
3236 | else | |
3237 | ac_cv_prog_CPP=$CPP | |
3238 | fi | |
81ecdfbb RW |
3239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3240 | $as_echo "$CPP" >&6; } | |
9255ee31 EZ |
3241 | ac_preproc_ok=false |
3242 | for ac_c_preproc_warn_flag in '' yes | |
3243 | do | |
3244 | # Use a header file that comes with gcc, so configuring glibc | |
3245 | # with a fresh cross-compiler works. | |
25ed0b71 KW |
3246 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3247 | # <limits.h> exists even on freestanding compilers. | |
9255ee31 EZ |
3248 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3249 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 3250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3251 | /* end confdefs.h. */ |
3252 | #ifdef __STDC__ | |
3253 | # include <limits.h> | |
3254 | #else | |
3255 | # include <assert.h> | |
3256 | #endif | |
430b7832 | 3257 | Syntax error |
9255ee31 | 3258 | _ACEOF |
81ecdfbb | 3259 | if ac_fn_c_try_cpp "$LINENO"; then : |
25ed0b71 | 3260 | |
81ecdfbb | 3261 | else |
9255ee31 EZ |
3262 | # Broken: fails on valid input. |
3263 | continue | |
d60d9f65 | 3264 | fi |
9255ee31 EZ |
3265 | rm -f conftest.err conftest.$ac_ext |
3266 | ||
81ecdfbb | 3267 | # OK, works on sane cases. Now check whether nonexistent headers |
9255ee31 | 3268 | # can be detected and how. |
81ecdfbb | 3269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 3270 | /* end confdefs.h. */ |
9255ee31 EZ |
3271 | #include <ac_nonexistent.h> |
3272 | _ACEOF | |
81ecdfbb | 3273 | if ac_fn_c_try_cpp "$LINENO"; then : |
9255ee31 EZ |
3274 | # Broken: success on invalid input. |
3275 | continue | |
3276 | else | |
9255ee31 EZ |
3277 | # Passes both tests. |
3278 | ac_preproc_ok=: | |
3279 | break | |
d60d9f65 | 3280 | fi |
9255ee31 EZ |
3281 | rm -f conftest.err conftest.$ac_ext |
3282 | ||
3283 | done | |
3284 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3285 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
3286 | if $ac_preproc_ok; then : |
3287 | ||
d60d9f65 | 3288 | else |
81ecdfbb RW |
3289 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3290 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3291 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
3292 | See \`config.log' for more details." "$LINENO" 5; } | |
d60d9f65 | 3293 | fi |
d60d9f65 | 3294 | |
9255ee31 EZ |
3295 | ac_ext=c |
3296 | ac_cpp='$CPP $CPPFLAGS' | |
3297 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3298 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3299 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3300 | ||
25ed0b71 | 3301 | |
81ecdfbb RW |
3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3303 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3304 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3305 | $as_echo_n "(cached) " >&6 | |
3306 | else | |
3307 | if test -z "$GREP"; then | |
3308 | ac_path_GREP_found=false | |
3309 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3311 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3312 | do | |
3313 | IFS=$as_save_IFS | |
3314 | test -z "$as_dir" && as_dir=. | |
3315 | for ac_prog in grep ggrep; do | |
3316 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3317 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3318 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3319 | # Check for GNU ac_path_GREP and select it if it is found. | |
3320 | # Check for GNU $ac_path_GREP | |
3321 | case `"$ac_path_GREP" --version 2>&1` in | |
3322 | *GNU*) | |
3323 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3324 | *) | |
3325 | ac_count=0 | |
3326 | $as_echo_n 0123456789 >"conftest.in" | |
3327 | while : | |
3328 | do | |
3329 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3330 | mv "conftest.tmp" "conftest.in" | |
3331 | cp "conftest.in" "conftest.nl" | |
3332 | $as_echo 'GREP' >> "conftest.nl" | |
3333 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3334 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3335 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3336 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3337 | # Best one so far, save it but keep looking for a better one | |
3338 | ac_cv_path_GREP="$ac_path_GREP" | |
3339 | ac_path_GREP_max=$ac_count | |
3340 | fi | |
3341 | # 10*(2^10) chars as input seems more than enough | |
3342 | test $ac_count -gt 10 && break | |
3343 | done | |
3344 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3345 | esac | |
3346 | ||
3347 | $ac_path_GREP_found && break 3 | |
3348 | done | |
3349 | done | |
3350 | done | |
3351 | IFS=$as_save_IFS | |
3352 | if test -z "$ac_cv_path_GREP"; then | |
3353 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3354 | fi | |
3355 | else | |
3356 | ac_cv_path_GREP=$GREP | |
3357 | fi | |
3358 | ||
3359 | fi | |
3360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3361 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3362 | GREP="$ac_cv_path_GREP" | |
3363 | ||
3364 | ||
3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3366 | $as_echo_n "checking for egrep... " >&6; } | |
3367 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3368 | $as_echo_n "(cached) " >&6 | |
d60d9f65 | 3369 | else |
81ecdfbb RW |
3370 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3371 | then ac_cv_path_EGREP="$GREP -E" | |
3372 | else | |
3373 | if test -z "$EGREP"; then | |
3374 | ac_path_EGREP_found=false | |
3375 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3377 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3378 | do | |
3379 | IFS=$as_save_IFS | |
3380 | test -z "$as_dir" && as_dir=. | |
3381 | for ac_prog in egrep; do | |
3382 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3383 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3384 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3385 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3386 | # Check for GNU $ac_path_EGREP | |
3387 | case `"$ac_path_EGREP" --version 2>&1` in | |
3388 | *GNU*) | |
3389 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3390 | *) | |
3391 | ac_count=0 | |
3392 | $as_echo_n 0123456789 >"conftest.in" | |
3393 | while : | |
3394 | do | |
3395 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3396 | mv "conftest.tmp" "conftest.in" | |
3397 | cp "conftest.in" "conftest.nl" | |
3398 | $as_echo 'EGREP' >> "conftest.nl" | |
3399 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3400 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3401 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3402 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3403 | # Best one so far, save it but keep looking for a better one | |
3404 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3405 | ac_path_EGREP_max=$ac_count | |
25ed0b71 | 3406 | fi |
81ecdfbb RW |
3407 | # 10*(2^10) chars as input seems more than enough |
3408 | test $ac_count -gt 10 && break | |
3409 | done | |
3410 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3411 | esac | |
3412 | ||
3413 | $ac_path_EGREP_found && break 3 | |
3414 | done | |
3415 | done | |
3416 | done | |
3417 | IFS=$as_save_IFS | |
3418 | if test -z "$ac_cv_path_EGREP"; then | |
3419 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3420 | fi | |
3421 | else | |
3422 | ac_cv_path_EGREP=$EGREP | |
3423 | fi | |
3424 | ||
3425 | fi | |
d60d9f65 | 3426 | fi |
81ecdfbb RW |
3427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
3428 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3429 | EGREP="$ac_cv_path_EGREP" | |
d60d9f65 | 3430 | |
9255ee31 | 3431 | |
81ecdfbb RW |
3432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3433 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3434 | if test "${ac_cv_header_stdc+set}" = set; then : | |
3435 | $as_echo_n "(cached) " >&6 | |
25ed0b71 | 3436 | else |
81ecdfbb | 3437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3438 | /* end confdefs.h. */ |
3439 | #include <stdlib.h> | |
3440 | #include <stdarg.h> | |
3441 | #include <string.h> | |
3442 | #include <float.h> | |
d60d9f65 | 3443 | |
25ed0b71 KW |
3444 | int |
3445 | main () | |
3446 | { | |
d60d9f65 | 3447 | |
25ed0b71 KW |
3448 | ; |
3449 | return 0; | |
3450 | } | |
3451 | _ACEOF | |
81ecdfbb | 3452 | if ac_fn_c_try_compile "$LINENO"; then : |
25ed0b71 KW |
3453 | ac_cv_header_stdc=yes |
3454 | else | |
81ecdfbb | 3455 | ac_cv_header_stdc=no |
d60d9f65 | 3456 | fi |
81ecdfbb | 3457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 3458 | |
25ed0b71 KW |
3459 | if test $ac_cv_header_stdc = yes; then |
3460 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 3461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3462 | /* end confdefs.h. */ |
3463 | #include <string.h> | |
9255ee31 | 3464 | |
25ed0b71 KW |
3465 | _ACEOF |
3466 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
3467 | $EGREP "memchr" >/dev/null 2>&1; then : |
3468 | ||
d60d9f65 | 3469 | else |
25ed0b71 | 3470 | ac_cv_header_stdc=no |
d60d9f65 | 3471 | fi |
25ed0b71 | 3472 | rm -f conftest* |
d60d9f65 | 3473 | |
d60d9f65 SS |
3474 | fi |
3475 | ||
25ed0b71 KW |
3476 | if test $ac_cv_header_stdc = yes; then |
3477 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 3478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3479 | /* end confdefs.h. */ |
3480 | #include <stdlib.h> | |
d60d9f65 | 3481 | |
9255ee31 | 3482 | _ACEOF |
d60d9f65 | 3483 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
81ecdfbb RW |
3484 | $EGREP "free" >/dev/null 2>&1; then : |
3485 | ||
25ed0b71 KW |
3486 | else |
3487 | ac_cv_header_stdc=no | |
d60d9f65 SS |
3488 | fi |
3489 | rm -f conftest* | |
3490 | ||
d60d9f65 SS |
3491 | fi |
3492 | ||
25ed0b71 KW |
3493 | if test $ac_cv_header_stdc = yes; then |
3494 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 3495 | if test "$cross_compiling" = yes; then : |
25ed0b71 KW |
3496 | : |
3497 | else | |
81ecdfbb | 3498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3499 | /* end confdefs.h. */ |
3500 | #include <ctype.h> | |
81ecdfbb | 3501 | #include <stdlib.h> |
25ed0b71 KW |
3502 | #if ((' ' & 0x0FF) == 0x020) |
3503 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3504 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3505 | #else | |
3506 | # define ISLOWER(c) \ | |
430b7832 MM |
3507 | (('a' <= (c) && (c) <= 'i') \ |
3508 | || ('j' <= (c) && (c) <= 'r') \ | |
3509 | || ('s' <= (c) && (c) <= 'z')) | |
25ed0b71 KW |
3510 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
3511 | #endif | |
3512 | ||
3513 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3514 | int | |
3515 | main () | |
3516 | { | |
3517 | int i; | |
3518 | for (i = 0; i < 256; i++) | |
3519 | if (XOR (islower (i), ISLOWER (i)) | |
430b7832 | 3520 | || toupper (i) != TOUPPER (i)) |
81ecdfbb RW |
3521 | return 2; |
3522 | return 0; | |
25ed0b71 KW |
3523 | } |
3524 | _ACEOF | |
81ecdfbb | 3525 | if ac_fn_c_try_run "$LINENO"; then : |
25ed0b71 | 3526 | |
81ecdfbb RW |
3527 | else |
3528 | ac_cv_header_stdc=no | |
25ed0b71 | 3529 | fi |
81ecdfbb RW |
3530 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3531 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
25ed0b71 | 3532 | fi |
81ecdfbb | 3533 | |
25ed0b71 KW |
3534 | fi |
3535 | fi | |
81ecdfbb RW |
3536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
3537 | $as_echo "$ac_cv_header_stdc" >&6; } | |
25ed0b71 KW |
3538 | if test $ac_cv_header_stdc = yes; then |
3539 | ||
81ecdfbb | 3540 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
25ed0b71 KW |
3541 | |
3542 | fi | |
3543 | ||
3544 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
81ecdfbb RW |
3545 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
3546 | inttypes.h stdint.h unistd.h | |
3547 | do : | |
3548 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3549 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3550 | " | |
3551 | eval as_val=\$$as_ac_Header | |
3552 | if test "x$as_val" = x""yes; then : | |
3553 | cat >>confdefs.h <<_ACEOF | |
3554 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3555 | _ACEOF | |
25ed0b71 | 3556 | |
81ecdfbb | 3557 | fi |
25ed0b71 | 3558 | |
81ecdfbb | 3559 | done |
25ed0b71 KW |
3560 | |
3561 | ||
3562 | ||
81ecdfbb RW |
3563 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
3564 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
3565 | MINIX=yes | |
3566 | else | |
3567 | MINIX= | |
3568 | fi | |
25ed0b71 KW |
3569 | |
3570 | ||
81ecdfbb | 3571 | if test "$MINIX" = yes; then |
25ed0b71 | 3572 | |
81ecdfbb | 3573 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
25ed0b71 | 3574 | |
25ed0b71 | 3575 | |
81ecdfbb | 3576 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
25ed0b71 | 3577 | |
25ed0b71 | 3578 | |
81ecdfbb | 3579 | $as_echo "#define _MINIX 1" >>confdefs.h |
25ed0b71 | 3580 | |
81ecdfbb | 3581 | fi |
25ed0b71 KW |
3582 | |
3583 | ||
81ecdfbb RW |
3584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
3585 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
3586 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
3587 | $as_echo_n "(cached) " >&6 | |
25ed0b71 | 3588 | else |
81ecdfbb | 3589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 3590 | /* end confdefs.h. */ |
25ed0b71 | 3591 | |
81ecdfbb RW |
3592 | # define __EXTENSIONS__ 1 |
3593 | $ac_includes_default | |
3594 | int | |
3595 | main () | |
3596 | { | |
25ed0b71 | 3597 | |
81ecdfbb RW |
3598 | ; |
3599 | return 0; | |
3600 | } | |
25ed0b71 | 3601 | _ACEOF |
81ecdfbb RW |
3602 | if ac_fn_c_try_compile "$LINENO"; then : |
3603 | ac_cv_safe_to_define___extensions__=yes | |
25ed0b71 | 3604 | else |
81ecdfbb | 3605 | ac_cv_safe_to_define___extensions__=no |
25ed0b71 | 3606 | fi |
81ecdfbb | 3607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
25ed0b71 | 3608 | fi |
81ecdfbb RW |
3609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
3610 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3611 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3612 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
25ed0b71 | 3613 | |
81ecdfbb | 3614 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
25ed0b71 | 3615 | |
81ecdfbb | 3616 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
25ed0b71 | 3617 | |
81ecdfbb | 3618 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
25ed0b71 | 3619 | |
81ecdfbb | 3620 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
25ed0b71 | 3621 | |
25ed0b71 | 3622 | |
25ed0b71 KW |
3623 | |
3624 | ||
3625 | ||
3626 | if test "x$cross_compiling" = "xyes"; then | |
3627 | case "${host}" in | |
3628 | *-cygwin*) | |
3629 | cross_cache=${srcdir}/cross-build/cygwin.cache | |
25ed0b71 | 3630 | LOCAL_CFLAGS="$LOCAL_CFLAGS -I${srcdir}/../libtermcap" |
25ed0b71 | 3631 | ;; |
430b7832 MM |
3632 | *-mingw32*) |
3633 | cross_cache=${srcdir}/cross-build/mingw.cache | |
3634 | ;; | |
25ed0b71 KW |
3635 | *) echo "configure: cross-compiling for a non-cygwin target is not supported" >&2 |
3636 | ;; | |
d60d9f65 | 3637 | esac |
430b7832 MM |
3638 | |
3639 | if test "x$cross_cache" != "x"; then | |
3640 | if test -r "${cross_cache}"; then | |
3641 | echo "loading cross-build cache file ${cross_cache}" | |
3642 | . ${cross_cache} | |
3643 | fi | |
3644 | unset cross_cache | |
3645 | fi | |
25ed0b71 KW |
3646 | fi |
3647 | ||
25ed0b71 KW |
3648 | if test -z "$CC_FOR_BUILD"; then |
3649 | if test "x$cross_compiling" = "xno"; then | |
3650 | CC_FOR_BUILD='$(CC)' | |
3651 | else | |
3652 | CC_FOR_BUILD=gcc | |
3653 | fi | |
3654 | fi | |
3655 | ||
3656 | ||
3657 | ||
3658 | # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS. | |
3659 | test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O" | |
3660 | ||
3661 | if test $ac_cv_c_compiler_gnu = yes; then | |
81ecdfbb RW |
3662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
3663 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
3664 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then : | |
3665 | $as_echo_n "(cached) " >&6 | |
25ed0b71 KW |
3666 | else |
3667 | ac_pattern="Autoconf.*'x'" | |
81ecdfbb | 3668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3669 | /* end confdefs.h. */ |
3670 | #include <sgtty.h> | |
3671 | Autoconf TIOCGETP | |
3672 | _ACEOF | |
3673 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb | 3674 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
25ed0b71 KW |
3675 | ac_cv_prog_gcc_traditional=yes |
3676 | else | |
3677 | ac_cv_prog_gcc_traditional=no | |
3678 | fi | |
3679 | rm -f conftest* | |
3680 | ||
3681 | ||
3682 | if test $ac_cv_prog_gcc_traditional = no; then | |
81ecdfbb | 3683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3684 | /* end confdefs.h. */ |
3685 | #include <termio.h> | |
3686 | Autoconf TCGETA | |
3687 | _ACEOF | |
3688 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb | 3689 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
25ed0b71 KW |
3690 | ac_cv_prog_gcc_traditional=yes |
3691 | fi | |
3692 | rm -f conftest* | |
3693 | ||
3694 | fi | |
3695 | fi | |
81ecdfbb RW |
3696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
3697 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
25ed0b71 KW |
3698 | if test $ac_cv_prog_gcc_traditional = yes; then |
3699 | CC="$CC -traditional" | |
3700 | fi | |
3701 | fi | |
3702 | ||
3703 | # Find a good install program. We prefer a C program (faster), | |
3704 | # so one script is as good as another. But avoid the broken or | |
3705 | # incompatible versions: | |
3706 | # SysV /etc/install, /usr/sbin/install | |
3707 | # SunOS /usr/etc/install | |
3708 | # IRIX /sbin/install | |
3709 | # AIX /bin/install | |
3710 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3711 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3712 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3713 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
430b7832 | 3714 | # OS/2's system install, which has a completely different semantic |
25ed0b71 | 3715 | # ./install, which can be erroneously created by make from ./install.sh. |
81ecdfbb RW |
3716 | # Reject install programs that cannot install multiple files. |
3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3718 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
25ed0b71 | 3719 | if test -z "$INSTALL"; then |
81ecdfbb RW |
3720 | if test "${ac_cv_path_install+set}" = set; then : |
3721 | $as_echo_n "(cached) " >&6 | |
25ed0b71 KW |
3722 | else |
3723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3724 | for as_dir in $PATH | |
3725 | do | |
3726 | IFS=$as_save_IFS | |
3727 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3728 | # Account for people who put trailing slashes in PATH elements. |
3729 | case $as_dir/ in #(( | |
3730 | ./ | .// | /[cC]/* | \ | |
25ed0b71 | 3731 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 3732 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
25ed0b71 KW |
3733 | /usr/ucb/* ) ;; |
3734 | *) | |
3735 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3736 | # Don't use installbsd from OSF since it installs stuff as root | |
3737 | # by default. | |
3738 | for ac_prog in ginstall scoinst install; do | |
3739 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 3740 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
430b7832 MM |
3741 | if test $ac_prog = install && |
3742 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3743 | # AIX install. It has an incompatible calling convention. | |
3744 | : | |
3745 | elif test $ac_prog = install && | |
3746 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3747 | # program-specific install script used by HP pwplus--don't use. | |
3748 | : | |
3749 | else | |
81ecdfbb RW |
3750 | rm -rf conftest.one conftest.two conftest.dir |
3751 | echo one > conftest.one | |
3752 | echo two > conftest.two | |
3753 | mkdir conftest.dir | |
3754 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3755 | test -s conftest.one && test -s conftest.two && | |
3756 | test -s conftest.dir/conftest.one && | |
3757 | test -s conftest.dir/conftest.two | |
3758 | then | |
3759 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3760 | break 3 | |
3761 | fi | |
430b7832 MM |
3762 | fi |
3763 | fi | |
25ed0b71 KW |
3764 | done |
3765 | done | |
3766 | ;; | |
3767 | esac | |
25ed0b71 | 3768 | |
81ecdfbb RW |
3769 | done |
3770 | IFS=$as_save_IFS | |
3771 | ||
3772 | rm -rf conftest.one conftest.two conftest.dir | |
d60d9f65 SS |
3773 | |
3774 | fi | |
3775 | if test "${ac_cv_path_install+set}" = set; then | |
9255ee31 | 3776 | INSTALL=$ac_cv_path_install |
d60d9f65 | 3777 | else |
81ecdfbb RW |
3778 | # As a last resort, use the slow shell script. Don't cache a |
3779 | # value for INSTALL within a source directory, because that will | |
d60d9f65 | 3780 | # break other packages using the cache if that directory is |
81ecdfbb | 3781 | # removed, or if the value is a relative name. |
9255ee31 | 3782 | INSTALL=$ac_install_sh |
d60d9f65 SS |
3783 | fi |
3784 | fi | |
81ecdfbb RW |
3785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3786 | $as_echo "$INSTALL" >&6; } | |
d60d9f65 SS |
3787 | |
3788 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3789 | # It thinks the first close brace ends the variable substitution. | |
3790 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3791 | ||
9255ee31 | 3792 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
c862e87b | 3793 | |
d60d9f65 SS |
3794 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3795 | ||
c862e87b JM |
3796 | # Extract the first word of "ar", so it can be a program name with args. |
3797 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3799 | $as_echo_n "checking for $ac_word... " >&6; } | |
3800 | if test "${ac_cv_prog_AR+set}" = set; then : | |
3801 | $as_echo_n "(cached) " >&6 | |
c862e87b JM |
3802 | else |
3803 | if test -n "$AR"; then | |
3804 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3805 | else | |
25ed0b71 KW |
3806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3807 | for as_dir in $PATH | |
3808 | do | |
3809 | IFS=$as_save_IFS | |
3810 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3811 | for ac_exec_ext in '' $ac_executable_extensions; do |
3812 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
25ed0b71 | 3813 | ac_cv_prog_AR="" |
81ecdfbb | 3814 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
3815 | break 2 |
3816 | fi | |
3817 | done | |
81ecdfbb RW |
3818 | done |
3819 | IFS=$as_save_IFS | |
9255ee31 EZ |
3820 | |
3821 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
3822 | fi | |
3823 | fi | |
3824 | AR=$ac_cv_prog_AR | |
3825 | if test -n "$AR"; then | |
81ecdfbb RW |
3826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
3827 | $as_echo "$AR" >&6; } | |
9255ee31 | 3828 | else |
81ecdfbb RW |
3829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3830 | $as_echo "no" >&6; } | |
9255ee31 EZ |
3831 | fi |
3832 | ||
81ecdfbb | 3833 | |
9255ee31 EZ |
3834 | test -n "$ARFLAGS" || ARFLAGS="cr" |
3835 | if test -n "$ac_tool_prefix"; then | |
3836 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3837 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
3838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3839 | $as_echo_n "checking for $ac_word... " >&6; } | |
3840 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
3841 | $as_echo_n "(cached) " >&6 | |
9255ee31 EZ |
3842 | else |
3843 | if test -n "$RANLIB"; then | |
3844 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3845 | else | |
25ed0b71 KW |
3846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3847 | for as_dir in $PATH | |
3848 | do | |
3849 | IFS=$as_save_IFS | |
3850 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3851 | for ac_exec_ext in '' $ac_executable_extensions; do |
3852 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
25ed0b71 | 3853 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 3854 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
3855 | break 2 |
3856 | fi | |
3857 | done | |
81ecdfbb RW |
3858 | done |
3859 | IFS=$as_save_IFS | |
9255ee31 EZ |
3860 | |
3861 | fi | |
3862 | fi | |
3863 | RANLIB=$ac_cv_prog_RANLIB | |
3864 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
3865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
3866 | $as_echo "$RANLIB" >&6; } | |
9255ee31 | 3867 | else |
81ecdfbb RW |
3868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3869 | $as_echo "no" >&6; } | |
9255ee31 EZ |
3870 | fi |
3871 | ||
81ecdfbb | 3872 | |
9255ee31 EZ |
3873 | fi |
3874 | if test -z "$ac_cv_prog_RANLIB"; then | |
3875 | ac_ct_RANLIB=$RANLIB | |
3876 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3877 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
3878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3879 | $as_echo_n "checking for $ac_word... " >&6; } | |
3880 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
3881 | $as_echo_n "(cached) " >&6 | |
9255ee31 EZ |
3882 | else |
3883 | if test -n "$ac_ct_RANLIB"; then | |
3884 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3885 | else | |
25ed0b71 KW |
3886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3887 | for as_dir in $PATH | |
3888 | do | |
3889 | IFS=$as_save_IFS | |
3890 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3891 | for ac_exec_ext in '' $ac_executable_extensions; do |
3892 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
25ed0b71 | 3893 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 3894 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
3895 | break 2 |
3896 | fi | |
3897 | done | |
81ecdfbb RW |
3898 | done |
3899 | IFS=$as_save_IFS | |
9255ee31 | 3900 | |
9255ee31 EZ |
3901 | fi |
3902 | fi | |
3903 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3904 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
3905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
3906 | $as_echo "$ac_ct_RANLIB" >&6; } | |
9255ee31 | 3907 | else |
81ecdfbb RW |
3908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3909 | $as_echo "no" >&6; } | |
9255ee31 EZ |
3910 | fi |
3911 | ||
81ecdfbb RW |
3912 | if test "x$ac_ct_RANLIB" = x; then |
3913 | RANLIB=":" | |
3914 | else | |
3915 | case $cross_compiling:$ac_tool_warned in | |
3916 | yes:) | |
3917 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3918 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3919 | ac_tool_warned=yes ;; | |
3920 | esac | |
3921 | RANLIB=$ac_ct_RANLIB | |
3922 | fi | |
9255ee31 EZ |
3923 | else |
3924 | RANLIB="$ac_cv_prog_RANLIB" | |
3925 | fi | |
3926 | ||
9255ee31 | 3927 | |
25ed0b71 | 3928 | MAKE_SHELL=/bin/sh |
9255ee31 | 3929 | |
9255ee31 | 3930 | |
81ecdfbb RW |
3931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
3932 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
3933 | if test "${ac_cv_c_const+set}" = set; then : | |
3934 | $as_echo_n "(cached) " >&6 | |
9255ee31 | 3935 | else |
81ecdfbb | 3936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 3937 | /* end confdefs.h. */ |
9255ee31 EZ |
3938 | |
3939 | int | |
3940 | main () | |
3941 | { | |
3942 | /* FIXME: Include the comments suggested by Paul. */ | |
3943 | #ifndef __cplusplus | |
3944 | /* Ultrix mips cc rejects this. */ | |
3945 | typedef int charset[2]; | |
81ecdfbb | 3946 | const charset cs; |
9255ee31 | 3947 | /* SunOS 4.1.1 cc rejects this. */ |
81ecdfbb RW |
3948 | char const *const *pcpcc; |
3949 | char **ppc; | |
9255ee31 EZ |
3950 | /* NEC SVR4.0.2 mips cc rejects this. */ |
3951 | struct point {int x, y;}; | |
3952 | static struct point const zero = {0,0}; | |
3953 | /* AIX XL C 1.02.0.0 rejects this. | |
3954 | It does not let you subtract one const X* pointer from another in | |
3955 | an arm of an if-expression whose if-part is not a constant | |
3956 | expression */ | |
3957 | const char *g = "string"; | |
81ecdfbb | 3958 | pcpcc = &g + (g ? g-g : 0); |
9255ee31 | 3959 | /* HPUX 7.0 cc rejects these. */ |
81ecdfbb RW |
3960 | ++pcpcc; |
3961 | ppc = (char**) pcpcc; | |
3962 | pcpcc = (char const *const *) ppc; | |
9255ee31 EZ |
3963 | { /* SCO 3.2v4 cc rejects this. */ |
3964 | char *t; | |
3965 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3966 | ||
25ed0b71 | 3967 | *t++ = 0; |
81ecdfbb | 3968 | if (s) return 0; |
25ed0b71 KW |
3969 | } |
3970 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3971 | int x[] = {25, 17}; | |
3972 | const int *foo = &x[0]; | |
3973 | ++foo; | |
3974 | } | |
3975 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3976 | typedef const int *iptr; | |
3977 | iptr p = 0; | |
3978 | ++p; | |
3979 | } | |
3980 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3981 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3982 | struct s { int j; const int *ap[3]; }; | |
3983 | struct s *b; b->j = 5; | |
3984 | } | |
3985 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3986 | const int foo = 10; | |
81ecdfbb | 3987 | if (!foo) return 0; |
25ed0b71 | 3988 | } |
81ecdfbb | 3989 | return !cs[0] && !zero.x; |
25ed0b71 | 3990 | #endif |
9255ee31 | 3991 | |
25ed0b71 KW |
3992 | ; |
3993 | return 0; | |
3994 | } | |
9255ee31 | 3995 | _ACEOF |
81ecdfbb | 3996 | if ac_fn_c_try_compile "$LINENO"; then : |
25ed0b71 | 3997 | ac_cv_c_const=yes |
9255ee31 | 3998 | else |
81ecdfbb | 3999 | ac_cv_c_const=no |
c862e87b | 4000 | fi |
81ecdfbb | 4001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c862e87b | 4002 | fi |
81ecdfbb RW |
4003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
4004 | $as_echo "$ac_cv_c_const" >&6; } | |
25ed0b71 KW |
4005 | if test $ac_cv_c_const = no; then |
4006 | ||
81ecdfbb | 4007 | $as_echo "#define const /**/" >>confdefs.h |
9255ee31 | 4008 | |
c862e87b JM |
4009 | fi |
4010 | ||
81ecdfbb RW |
4011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 |
4012 | $as_echo_n "checking for function prototypes... " >&6; } | |
4013 | if test "$ac_cv_prog_cc_c89" != no; then | |
4014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4015 | $as_echo "yes" >&6; } | |
25ed0b71 | 4016 | |
81ecdfbb | 4017 | $as_echo "#define PROTOTYPES 1" >>confdefs.h |
25ed0b71 KW |
4018 | |
4019 | ||
81ecdfbb | 4020 | $as_echo "#define __PROTOTYPES 1" >>confdefs.h |
25ed0b71 KW |
4021 | |
4022 | else | |
81ecdfbb RW |
4023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4024 | $as_echo "no" >&6; } | |
25ed0b71 KW |
4025 | fi |
4026 | ||
81ecdfbb RW |
4027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
4028 | $as_echo_n "checking whether char is unsigned... " >&6; } | |
4029 | if test "${ac_cv_c_char_unsigned+set}" = set; then : | |
4030 | $as_echo_n "(cached) " >&6 | |
d60d9f65 | 4031 | else |
81ecdfbb | 4032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4033 | /* end confdefs.h. */ |
9255ee31 EZ |
4034 | $ac_includes_default |
4035 | int | |
4036 | main () | |
4037 | { | |
25ed0b71 KW |
4038 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
4039 | test_array [0] = 0 | |
4040 | ||
9255ee31 EZ |
4041 | ; |
4042 | return 0; | |
4043 | } | |
4044 | _ACEOF | |
81ecdfbb | 4045 | if ac_fn_c_try_compile "$LINENO"; then : |
9255ee31 | 4046 | ac_cv_c_char_unsigned=no |
d60d9f65 | 4047 | else |
81ecdfbb | 4048 | ac_cv_c_char_unsigned=yes |
d60d9f65 | 4049 | fi |
81ecdfbb | 4050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4051 | fi |
81ecdfbb RW |
4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
4053 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | |
9255ee31 | 4054 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
81ecdfbb | 4055 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
d60d9f65 | 4056 | |
9255ee31 | 4057 | fi |
d60d9f65 | 4058 | |
25ed0b71 | 4059 | |
81ecdfbb RW |
4060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
4061 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
4062 | if test "${ac_cv_type_signal+set}" = set; then : | |
4063 | $as_echo_n "(cached) " >&6 | |
d60d9f65 | 4064 | else |
81ecdfbb | 4065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4066 | /* end confdefs.h. */ |
d60d9f65 SS |
4067 | #include <sys/types.h> |
4068 | #include <signal.h> | |
d60d9f65 | 4069 | |
9255ee31 EZ |
4070 | int |
4071 | main () | |
4072 | { | |
81ecdfbb | 4073 | return *(signal (0, 0)) (0) == 1; |
9255ee31 EZ |
4074 | ; |
4075 | return 0; | |
4076 | } | |
4077 | _ACEOF | |
81ecdfbb RW |
4078 | if ac_fn_c_try_compile "$LINENO"; then : |
4079 | ac_cv_type_signal=int | |
d60d9f65 | 4080 | else |
81ecdfbb | 4081 | ac_cv_type_signal=void |
d60d9f65 | 4082 | fi |
81ecdfbb | 4083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4084 | fi |
81ecdfbb RW |
4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
4086 | $as_echo "$ac_cv_type_signal" >&6; } | |
d60d9f65 | 4087 | |
25ed0b71 | 4088 | cat >>confdefs.h <<_ACEOF |
d60d9f65 | 4089 | #define RETSIGTYPE $ac_cv_type_signal |
25ed0b71 KW |
4090 | _ACEOF |
4091 | ||
d60d9f65 | 4092 | |
25ed0b71 | 4093 | |
81ecdfbb RW |
4094 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
4095 | if test "x$ac_cv_type_size_t" = x""yes; then : | |
25ed0b71 | 4096 | |
9255ee31 EZ |
4097 | else |
4098 | ||
25ed0b71 | 4099 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4100 | #define size_t unsigned int |
25ed0b71 | 4101 | _ACEOF |
9255ee31 EZ |
4102 | |
4103 | fi | |
4104 | ||
81ecdfbb RW |
4105 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
4106 | if test "x$ac_cv_type_ssize_t" = x""yes; then : | |
25ed0b71 | 4107 | |
9255ee31 EZ |
4108 | else |
4109 | ||
25ed0b71 | 4110 | cat >>confdefs.h <<_ACEOF |
9255ee31 | 4111 | #define ssize_t int |
25ed0b71 | 4112 | _ACEOF |
d60d9f65 | 4113 | |
9255ee31 | 4114 | fi |
d60d9f65 | 4115 | |
25ed0b71 | 4116 | |
81ecdfbb RW |
4117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4118 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4119 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4120 | $as_echo_n "(cached) " >&6 | |
5bdf8622 | 4121 | else |
81ecdfbb | 4122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 DJ |
4123 | /* end confdefs.h. */ |
4124 | #include <stdlib.h> | |
4125 | #include <stdarg.h> | |
4126 | #include <string.h> | |
4127 | #include <float.h> | |
4128 | ||
4129 | int | |
4130 | main () | |
4131 | { | |
4132 | ||
4133 | ; | |
4134 | return 0; | |
4135 | } | |
4136 | _ACEOF | |
81ecdfbb | 4137 | if ac_fn_c_try_compile "$LINENO"; then : |
5bdf8622 DJ |
4138 | ac_cv_header_stdc=yes |
4139 | else | |
81ecdfbb | 4140 | ac_cv_header_stdc=no |
5bdf8622 | 4141 | fi |
81ecdfbb | 4142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5bdf8622 DJ |
4143 | |
4144 | if test $ac_cv_header_stdc = yes; then | |
4145 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 4146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 DJ |
4147 | /* end confdefs.h. */ |
4148 | #include <string.h> | |
4149 | ||
4150 | _ACEOF | |
4151 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4152 | $EGREP "memchr" >/dev/null 2>&1; then : |
4153 | ||
5bdf8622 DJ |
4154 | else |
4155 | ac_cv_header_stdc=no | |
4156 | fi | |
4157 | rm -f conftest* | |
4158 | ||
4159 | fi | |
4160 | ||
4161 | if test $ac_cv_header_stdc = yes; then | |
4162 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 4163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 DJ |
4164 | /* end confdefs.h. */ |
4165 | #include <stdlib.h> | |
4166 | ||
4167 | _ACEOF | |
4168 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4169 | $EGREP "free" >/dev/null 2>&1; then : |
4170 | ||
5bdf8622 DJ |
4171 | else |
4172 | ac_cv_header_stdc=no | |
4173 | fi | |
4174 | rm -f conftest* | |
4175 | ||
4176 | fi | |
4177 | ||
4178 | if test $ac_cv_header_stdc = yes; then | |
4179 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 4180 | if test "$cross_compiling" = yes; then : |
5bdf8622 DJ |
4181 | : |
4182 | else | |
81ecdfbb | 4183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 DJ |
4184 | /* end confdefs.h. */ |
4185 | #include <ctype.h> | |
81ecdfbb | 4186 | #include <stdlib.h> |
5bdf8622 DJ |
4187 | #if ((' ' & 0x0FF) == 0x020) |
4188 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4189 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4190 | #else | |
4191 | # define ISLOWER(c) \ | |
4192 | (('a' <= (c) && (c) <= 'i') \ | |
4193 | || ('j' <= (c) && (c) <= 'r') \ | |
4194 | || ('s' <= (c) && (c) <= 'z')) | |
4195 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4196 | #endif | |
4197 | ||
4198 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4199 | int | |
4200 | main () | |
4201 | { | |
4202 | int i; | |
4203 | for (i = 0; i < 256; i++) | |
4204 | if (XOR (islower (i), ISLOWER (i)) | |
4205 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
4206 | return 2; |
4207 | return 0; | |
5bdf8622 DJ |
4208 | } |
4209 | _ACEOF | |
81ecdfbb | 4210 | if ac_fn_c_try_run "$LINENO"; then : |
5bdf8622 | 4211 | |
81ecdfbb RW |
4212 | else |
4213 | ac_cv_header_stdc=no | |
5bdf8622 | 4214 | fi |
81ecdfbb RW |
4215 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4216 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5bdf8622 | 4217 | fi |
81ecdfbb | 4218 | |
5bdf8622 DJ |
4219 | fi |
4220 | fi | |
81ecdfbb RW |
4221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4222 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5bdf8622 DJ |
4223 | if test $ac_cv_header_stdc = yes; then |
4224 | ||
81ecdfbb | 4225 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
5bdf8622 DJ |
4226 | |
4227 | fi | |
4228 | ||
4229 | ||
81ecdfbb RW |
4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 |
4231 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } | |
4232 | if test "${ac_cv_header_stat_broken+set}" = set; then : | |
4233 | $as_echo_n "(cached) " >&6 | |
d60d9f65 | 4234 | else |
81ecdfbb | 4235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4236 | /* end confdefs.h. */ |
d60d9f65 SS |
4237 | #include <sys/types.h> |
4238 | #include <sys/stat.h> | |
4239 | ||
81ecdfbb RW |
4240 | #if defined S_ISBLK && defined S_IFDIR |
4241 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; | |
d60d9f65 SS |
4242 | #endif |
4243 | ||
81ecdfbb RW |
4244 | #if defined S_ISBLK && defined S_IFCHR |
4245 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; | |
d60d9f65 SS |
4246 | #endif |
4247 | ||
81ecdfbb RW |
4248 | #if defined S_ISLNK && defined S_IFREG |
4249 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; | |
d60d9f65 SS |
4250 | #endif |
4251 | ||
81ecdfbb RW |
4252 | #if defined S_ISSOCK && defined S_IFREG |
4253 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; | |
d60d9f65 SS |
4254 | #endif |
4255 | ||
9255ee31 | 4256 | _ACEOF |
81ecdfbb | 4257 | if ac_fn_c_try_compile "$LINENO"; then : |
d60d9f65 | 4258 | ac_cv_header_stat_broken=no |
81ecdfbb RW |
4259 | else |
4260 | ac_cv_header_stat_broken=yes | |
d60d9f65 | 4261 | fi |
81ecdfbb | 4262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4263 | fi |
81ecdfbb RW |
4264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 |
4265 | $as_echo "$ac_cv_header_stat_broken" >&6; } | |
d60d9f65 | 4266 | if test $ac_cv_header_stat_broken = yes; then |
9255ee31 | 4267 | |
81ecdfbb | 4268 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
d60d9f65 SS |
4269 | |
4270 | fi | |
4271 | ||
4272 | ac_header_dirent=no | |
9255ee31 | 4273 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
81ecdfbb RW |
4274 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
4276 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
4277 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : | |
4278 | $as_echo_n "(cached) " >&6 | |
4279 | else | |
4280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 4281 | /* end confdefs.h. */ |
d60d9f65 SS |
4282 | #include <sys/types.h> |
4283 | #include <$ac_hdr> | |
9255ee31 EZ |
4284 | |
4285 | int | |
4286 | main () | |
4287 | { | |
4288 | if ((DIR *) 0) | |
4289 | return 0; | |
4290 | ; | |
4291 | return 0; | |
4292 | } | |
4293 | _ACEOF | |
81ecdfbb | 4294 | if ac_fn_c_try_compile "$LINENO"; then : |
9255ee31 | 4295 | eval "$as_ac_Header=yes" |
d60d9f65 | 4296 | else |
81ecdfbb | 4297 | eval "$as_ac_Header=no" |
d60d9f65 | 4298 | fi |
81ecdfbb | 4299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4300 | fi |
81ecdfbb RW |
4301 | eval ac_res=\$$as_ac_Header |
4302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4303 | $as_echo "$ac_res" >&6; } | |
4304 | eval as_val=\$$as_ac_Header | |
4305 | if test "x$as_val" = x""yes; then : | |
25ed0b71 | 4306 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4307 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
25ed0b71 | 4308 | _ACEOF |
9255ee31 EZ |
4309 | |
4310 | ac_header_dirent=$ac_hdr; break | |
d60d9f65 | 4311 | fi |
9255ee31 | 4312 | |
d60d9f65 SS |
4313 | done |
4314 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4315 | if test $ac_header_dirent = dirent.h; then | |
81ecdfbb RW |
4316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
4317 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4318 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4319 | $as_echo_n "(cached) " >&6 | |
d60d9f65 | 4320 | else |
25ed0b71 | 4321 | ac_func_search_save_LIBS=$LIBS |
81ecdfbb | 4322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4323 | /* end confdefs.h. */ |
9255ee31 | 4324 | |
81ecdfbb RW |
4325 | /* Override any GCC internal prototype to avoid an error. |
4326 | Use char because int might match the return type of a GCC | |
4327 | builtin and then its argument prototype would still apply. */ | |
9255ee31 EZ |
4328 | #ifdef __cplusplus |
4329 | extern "C" | |
4330 | #endif | |
9255ee31 EZ |
4331 | char opendir (); |
4332 | int | |
4333 | main () | |
4334 | { | |
81ecdfbb | 4335 | return opendir (); |
9255ee31 EZ |
4336 | ; |
4337 | return 0; | |
4338 | } | |
4339 | _ACEOF | |
81ecdfbb RW |
4340 | for ac_lib in '' dir; do |
4341 | if test -z "$ac_lib"; then | |
4342 | ac_res="none required" | |
4343 | else | |
4344 | ac_res=-l$ac_lib | |
25ed0b71 | 4345 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
4346 | fi |
4347 | if ac_fn_c_try_link "$LINENO"; then : | |
4348 | ac_cv_search_opendir=$ac_res | |
4349 | fi | |
4350 | rm -f core conftest.err conftest.$ac_objext \ | |
4351 | conftest$ac_exeext | |
4352 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4353 | break | |
4354 | fi | |
4355 | done | |
4356 | if test "${ac_cv_search_opendir+set}" = set; then : | |
25ed0b71 | 4357 | |
25ed0b71 | 4358 | else |
81ecdfbb | 4359 | ac_cv_search_opendir=no |
25ed0b71 | 4360 | fi |
81ecdfbb | 4361 | rm conftest.$ac_ext |
25ed0b71 | 4362 | LIBS=$ac_func_search_save_LIBS |
d60d9f65 | 4363 | fi |
81ecdfbb RW |
4364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
4365 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4366 | ac_res=$ac_cv_search_opendir | |
4367 | if test "$ac_res" != no; then : | |
4368 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
25ed0b71 | 4369 | |
d60d9f65 SS |
4370 | fi |
4371 | ||
4372 | else | |
81ecdfbb RW |
4373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
4374 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4375 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4376 | $as_echo_n "(cached) " >&6 | |
d60d9f65 | 4377 | else |
25ed0b71 | 4378 | ac_func_search_save_LIBS=$LIBS |
81ecdfbb | 4379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4380 | /* end confdefs.h. */ |
9255ee31 | 4381 | |
81ecdfbb RW |
4382 | /* Override any GCC internal prototype to avoid an error. |
4383 | Use char because int might match the return type of a GCC | |
4384 | builtin and then its argument prototype would still apply. */ | |
9255ee31 EZ |
4385 | #ifdef __cplusplus |
4386 | extern "C" | |
4387 | #endif | |
9255ee31 EZ |
4388 | char opendir (); |
4389 | int | |
4390 | main () | |
4391 | { | |
81ecdfbb | 4392 | return opendir (); |
9255ee31 EZ |
4393 | ; |
4394 | return 0; | |
4395 | } | |
4396 | _ACEOF | |
81ecdfbb RW |
4397 | for ac_lib in '' x; do |
4398 | if test -z "$ac_lib"; then | |
4399 | ac_res="none required" | |
4400 | else | |
4401 | ac_res=-l$ac_lib | |
25ed0b71 | 4402 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
4403 | fi |
4404 | if ac_fn_c_try_link "$LINENO"; then : | |
4405 | ac_cv_search_opendir=$ac_res | |
4406 | fi | |
4407 | rm -f core conftest.err conftest.$ac_objext \ | |
4408 | conftest$ac_exeext | |
4409 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4410 | break | |
4411 | fi | |
4412 | done | |
4413 | if test "${ac_cv_search_opendir+set}" = set; then : | |
25ed0b71 | 4414 | |
25ed0b71 | 4415 | else |
81ecdfbb | 4416 | ac_cv_search_opendir=no |
d60d9f65 | 4417 | fi |
81ecdfbb | 4418 | rm conftest.$ac_ext |
25ed0b71 | 4419 | LIBS=$ac_func_search_save_LIBS |
d60d9f65 | 4420 | fi |
81ecdfbb RW |
4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
4422 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4423 | ac_res=$ac_cv_search_opendir | |
4424 | if test "$ac_res" != no; then : | |
4425 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
d60d9f65 SS |
4426 | |
4427 | fi | |
4428 | ||
25ed0b71 KW |
4429 | fi |
4430 | ||
4431 | ||
81ecdfbb RW |
4432 | for ac_func in fcntl kill lstat |
4433 | do : | |
4434 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4435 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
4436 | eval as_val=\$$as_ac_var | |
4437 | if test "x$as_val" = x""yes; then : | |
4438 | cat >>confdefs.h <<_ACEOF | |
4439 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4440 | _ACEOF | |
25ed0b71 | 4441 | |
81ecdfbb RW |
4442 | fi |
4443 | done | |
25ed0b71 | 4444 | |
81ecdfbb RW |
4445 | for ac_func in memmove putenv select setenv setlocale \ |
4446 | strcasecmp strpbrk tcgetattr vsnprintf | |
4447 | do : | |
4448 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4449 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
4450 | eval as_val=\$$as_ac_var | |
4451 | if test "x$as_val" = x""yes; then : | |
4452 | cat >>confdefs.h <<_ACEOF | |
4453 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4454 | _ACEOF | |
25ed0b71 | 4455 | |
81ecdfbb RW |
4456 | fi |
4457 | done | |
4458 | ||
4459 | for ac_func in isascii isxdigit | |
4460 | do : | |
4461 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4462 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
4463 | eval as_val=\$$as_ac_var | |
4464 | if test "x$as_val" = x""yes; then : | |
4465 | cat >>confdefs.h <<_ACEOF | |
4466 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25ed0b71 | 4467 | _ACEOF |
430b7832 | 4468 | |
81ecdfbb RW |
4469 | fi |
4470 | done | |
430b7832 | 4471 | |
81ecdfbb RW |
4472 | for ac_func in getpwent getpwnam getpwuid |
4473 | do : | |
4474 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4475 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
4476 | eval as_val=\$$as_ac_var | |
4477 | if test "x$as_val" = x""yes; then : | |
4478 | cat >>confdefs.h <<_ACEOF | |
4479 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4480 | _ACEOF | |
430b7832 | 4481 | |
81ecdfbb RW |
4482 | fi |
4483 | done | |
430b7832 | 4484 | |
d60d9f65 | 4485 | |
81ecdfbb RW |
4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5 |
4487 | $as_echo_n "checking for working strcoll... " >&6; } | |
4488 | if test "${ac_cv_func_strcoll_works+set}" = set; then : | |
4489 | $as_echo_n "(cached) " >&6 | |
4490 | else | |
4491 | if test "$cross_compiling" = yes; then : | |
4492 | ac_cv_func_strcoll_works=no | |
4493 | else | |
4494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4495 | /* end confdefs.h. */ | |
4496 | $ac_includes_default | |
25ed0b71 KW |
4497 | int |
4498 | main () | |
4499 | { | |
81ecdfbb RW |
4500 | return (strcoll ("abc", "def") >= 0 || |
4501 | strcoll ("ABC", "DEF") >= 0 || | |
4502 | strcoll ("123", "456") >= 0) | |
9255ee31 EZ |
4503 | ; |
4504 | return 0; | |
4505 | } | |
4506 | _ACEOF | |
81ecdfbb RW |
4507 | if ac_fn_c_try_run "$LINENO"; then : |
4508 | ac_cv_func_strcoll_works=yes | |
d60d9f65 | 4509 | else |
81ecdfbb RW |
4510 | ac_cv_func_strcoll_works=no |
4511 | fi | |
4512 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4513 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4514 | fi | |
25ed0b71 | 4515 | |
d60d9f65 | 4516 | fi |
81ecdfbb RW |
4517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5 |
4518 | $as_echo "$ac_cv_func_strcoll_works" >&6; } | |
4519 | if test $ac_cv_func_strcoll_works = yes; then | |
4520 | ||
4521 | $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h | |
4522 | ||
d60d9f65 | 4523 | fi |
81ecdfbb RW |
4524 | |
4525 | ||
4526 | for ac_header in fcntl.h unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \ | |
4527 | limits.h locale.h pwd.h memory.h termcap.h termios.h termio.h | |
4528 | do : | |
4529 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4530 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4531 | eval as_val=\$$as_ac_Header | |
4532 | if test "x$as_val" = x""yes; then : | |
25ed0b71 | 4533 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4534 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
25ed0b71 | 4535 | _ACEOF |
9255ee31 | 4536 | |
d60d9f65 | 4537 | fi |
81ecdfbb | 4538 | |
d60d9f65 SS |
4539 | done |
4540 | ||
81ecdfbb RW |
4541 | for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h |
4542 | do : | |
4543 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4544 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4545 | eval as_val=\$$as_ac_Header | |
4546 | if test "x$as_val" = x""yes; then : | |
4547 | cat >>confdefs.h <<_ACEOF | |
4548 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4549 | _ACEOF | |
25ed0b71 | 4550 | |
81ecdfbb | 4551 | fi |
5bdf8622 | 4552 | |
81ecdfbb | 4553 | done |
5bdf8622 DJ |
4554 | |
4555 | ||
81ecdfbb RW |
4556 | for ac_header in sys/ptem.h |
4557 | do : | |
4558 | ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" " | |
4559 | #if HAVE_SYS_STREAM_H | |
4560 | # include <sys/stream.h> | |
4561 | #endif | |
5bdf8622 | 4562 | |
81ecdfbb RW |
4563 | " |
4564 | if test "x$ac_cv_header_sys_ptem_h" = x""yes; then : | |
4565 | cat >>confdefs.h <<_ACEOF | |
4566 | #define HAVE_SYS_PTEM_H 1 | |
4567 | _ACEOF | |
5bdf8622 | 4568 | |
81ecdfbb | 4569 | fi |
5bdf8622 | 4570 | |
81ecdfbb | 4571 | done |
5bdf8622 DJ |
4572 | |
4573 | ||
5bdf8622 | 4574 | |
81ecdfbb RW |
4575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5 |
4576 | $as_echo_n "checking for type of signal functions... " >&6; } | |
4577 | if test "${bash_cv_signal_vintage+set}" = set; then : | |
4578 | $as_echo_n "(cached) " >&6 | |
4579 | else | |
5bdf8622 | 4580 | |
81ecdfbb RW |
4581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4582 | /* end confdefs.h. */ | |
4583 | #include <signal.h> | |
4584 | int | |
4585 | main () | |
4586 | { | |
4587 | ||
4588 | sigset_t ss; | |
4589 | struct sigaction sa; | |
4590 | sigemptyset(&ss); sigsuspend(&ss); | |
4591 | sigaction(SIGINT, &sa, (struct sigaction *) 0); | |
4592 | sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0); | |
5bdf8622 | 4593 | |
81ecdfbb RW |
4594 | ; |
4595 | return 0; | |
4596 | } | |
4597 | _ACEOF | |
4598 | if ac_fn_c_try_link "$LINENO"; then : | |
4599 | bash_cv_signal_vintage=posix | |
4600 | else | |
5bdf8622 | 4601 | |
81ecdfbb RW |
4602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4603 | /* end confdefs.h. */ | |
4604 | #include <signal.h> | |
4605 | int | |
4606 | main () | |
5bdf8622 | 4607 | { |
81ecdfbb RW |
4608 | |
4609 | int mask = sigmask(SIGINT); | |
4610 | sigsetmask(mask); sigblock(mask); sigpause(mask); | |
4611 | ||
4612 | ; | |
4613 | return 0; | |
5bdf8622 | 4614 | } |
81ecdfbb RW |
4615 | _ACEOF |
4616 | if ac_fn_c_try_link "$LINENO"; then : | |
4617 | bash_cv_signal_vintage=4.2bsd | |
4618 | else | |
5bdf8622 | 4619 | |
81ecdfbb RW |
4620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4621 | /* end confdefs.h. */ | |
4622 | ||
4623 | #include <signal.h> | |
4624 | RETSIGTYPE foo() { } | |
5bdf8622 DJ |
4625 | int |
4626 | main () | |
4627 | { | |
81ecdfbb RW |
4628 | |
4629 | int mask = sigmask(SIGINT); | |
4630 | sigset(SIGINT, foo); sigrelse(SIGINT); | |
4631 | sighold(SIGINT); sigpause(SIGINT); | |
4632 | ||
5bdf8622 DJ |
4633 | ; |
4634 | return 0; | |
4635 | } | |
4636 | _ACEOF | |
81ecdfbb RW |
4637 | if ac_fn_c_try_link "$LINENO"; then : |
4638 | bash_cv_signal_vintage=svr3 | |
5bdf8622 | 4639 | else |
81ecdfbb | 4640 | bash_cv_signal_vintage=v7 |
5bdf8622 | 4641 | |
5bdf8622 | 4642 | fi |
81ecdfbb RW |
4643 | rm -f core conftest.err conftest.$ac_objext \ |
4644 | conftest$ac_exeext conftest.$ac_ext | |
4645 | ||
5bdf8622 | 4646 | fi |
81ecdfbb RW |
4647 | rm -f core conftest.err conftest.$ac_objext \ |
4648 | conftest$ac_exeext conftest.$ac_ext | |
5bdf8622 DJ |
4649 | |
4650 | fi | |
81ecdfbb RW |
4651 | rm -f core conftest.err conftest.$ac_objext \ |
4652 | conftest$ac_exeext conftest.$ac_ext | |
5bdf8622 | 4653 | |
81ecdfbb | 4654 | fi |
5bdf8622 | 4655 | |
81ecdfbb RW |
4656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5 |
4657 | $as_echo "$bash_cv_signal_vintage" >&6; } | |
4658 | if test "$bash_cv_signal_vintage" = posix; then | |
4659 | $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h | |
5bdf8622 | 4660 | |
81ecdfbb RW |
4661 | elif test "$bash_cv_signal_vintage" = "4.2bsd"; then |
4662 | $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h | |
5bdf8622 | 4663 | |
81ecdfbb RW |
4664 | elif test "$bash_cv_signal_vintage" = svr3; then |
4665 | $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h | |
5bdf8622 | 4666 | |
81ecdfbb RW |
4667 | fi |
4668 | ||
4669 | ||
4670 | ||
4671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5 | |
4672 | $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; } | |
4673 | if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then : | |
4674 | $as_echo_n "(cached) " >&6 | |
4675 | else | |
4676 | if test "$cross_compiling" = yes; then : | |
4677 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5 | |
4678 | $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;} | |
4679 | bash_cv_must_reinstall_sighandlers=no | |
4680 | ||
4681 | else | |
4682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4683 | /* end confdefs.h. */ | |
4684 | ||
4685 | #include <signal.h> | |
4686 | #ifdef HAVE_UNISTD_H | |
4687 | #include <unistd.h> | |
5bdf8622 DJ |
4688 | #endif |
4689 | ||
81ecdfbb | 4690 | typedef RETSIGTYPE sigfunc(); |
5bdf8622 | 4691 | |
81ecdfbb RW |
4692 | int nsigint; |
4693 | ||
4694 | #ifdef HAVE_POSIX_SIGNALS | |
4695 | sigfunc * | |
4696 | set_signal_handler(sig, handler) | |
4697 | int sig; | |
4698 | sigfunc *handler; | |
5bdf8622 | 4699 | { |
81ecdfbb RW |
4700 | struct sigaction act, oact; |
4701 | act.sa_handler = handler; | |
4702 | act.sa_flags = 0; | |
4703 | sigemptyset (&act.sa_mask); | |
4704 | sigemptyset (&oact.sa_mask); | |
4705 | sigaction (sig, &act, &oact); | |
4706 | return (oact.sa_handler); | |
4707 | } | |
5bdf8622 | 4708 | #else |
81ecdfbb | 4709 | #define set_signal_handler(s, h) signal(s, h) |
5bdf8622 | 4710 | #endif |
81ecdfbb RW |
4711 | |
4712 | RETSIGTYPE | |
4713 | sigint(s) | |
4714 | int s; | |
4715 | { | |
4716 | nsigint++; | |
5bdf8622 | 4717 | } |
5bdf8622 | 4718 | |
81ecdfbb | 4719 | main() |
5bdf8622 | 4720 | { |
81ecdfbb RW |
4721 | nsigint = 0; |
4722 | set_signal_handler(SIGINT, sigint); | |
4723 | kill((int)getpid(), SIGINT); | |
4724 | kill((int)getpid(), SIGINT); | |
4725 | exit(nsigint != 2); | |
5bdf8622 | 4726 | } |
81ecdfbb | 4727 | |
5bdf8622 | 4728 | _ACEOF |
81ecdfbb RW |
4729 | if ac_fn_c_try_run "$LINENO"; then : |
4730 | bash_cv_must_reinstall_sighandlers=no | |
5bdf8622 | 4731 | else |
81ecdfbb | 4732 | bash_cv_must_reinstall_sighandlers=yes |
5bdf8622 | 4733 | fi |
81ecdfbb RW |
4734 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4735 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5bdf8622 | 4736 | fi |
5bdf8622 DJ |
4737 | |
4738 | fi | |
5bdf8622 | 4739 | |
81ecdfbb RW |
4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5 |
4741 | $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; } | |
4742 | if test $bash_cv_must_reinstall_sighandlers = yes; then | |
4743 | $as_echo "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h | |
5bdf8622 | 4744 | |
81ecdfbb | 4745 | fi |
5bdf8622 DJ |
4746 | |
4747 | ||
5bdf8622 | 4748 | |
81ecdfbb RW |
4749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5 |
4750 | $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; } | |
4751 | if test "${bash_cv_func_sigsetjmp+set}" = set; then : | |
4752 | $as_echo_n "(cached) " >&6 | |
4753 | else | |
4754 | if test "$cross_compiling" = yes; then : | |
4755 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5 | |
4756 | $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;} | |
4757 | bash_cv_func_sigsetjmp=missing | |
5bdf8622 | 4758 | |
81ecdfbb RW |
4759 | else |
4760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4761 | /* end confdefs.h. */ | |
5bdf8622 | 4762 | |
81ecdfbb RW |
4763 | #ifdef HAVE_UNISTD_H |
4764 | #include <unistd.h> | |
4765 | #endif | |
4766 | #include <sys/types.h> | |
4767 | #include <signal.h> | |
4768 | #include <setjmp.h> | |
5bdf8622 | 4769 | |
81ecdfbb | 4770 | main() |
5bdf8622 | 4771 | { |
81ecdfbb RW |
4772 | #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS) |
4773 | exit (1); | |
5bdf8622 | 4774 | #else |
5bdf8622 | 4775 | |
81ecdfbb RW |
4776 | int code; |
4777 | sigset_t set, oset; | |
4778 | sigjmp_buf xx; | |
4779 | ||
4780 | /* get the mask */ | |
4781 | sigemptyset(&set); | |
4782 | sigemptyset(&oset); | |
4783 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set); | |
4784 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset); | |
4785 | ||
4786 | /* save it */ | |
4787 | code = sigsetjmp(xx, 1); | |
4788 | if (code) | |
4789 | exit(0); /* could get sigmask and compare to oset here. */ | |
4790 | ||
4791 | /* change it */ | |
4792 | sigaddset(&set, SIGINT); | |
4793 | sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL); | |
4794 | ||
4795 | /* and siglongjmp */ | |
4796 | siglongjmp(xx, 10); | |
4797 | exit(1); | |
4798 | #endif | |
5bdf8622 DJ |
4799 | } |
4800 | _ACEOF | |
81ecdfbb RW |
4801 | if ac_fn_c_try_run "$LINENO"; then : |
4802 | bash_cv_func_sigsetjmp=present | |
5bdf8622 | 4803 | else |
81ecdfbb | 4804 | bash_cv_func_sigsetjmp=missing |
5bdf8622 | 4805 | fi |
81ecdfbb RW |
4806 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4807 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5bdf8622 | 4808 | fi |
5bdf8622 DJ |
4809 | |
4810 | fi | |
5bdf8622 | 4811 | |
81ecdfbb RW |
4812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5 |
4813 | $as_echo "$bash_cv_func_sigsetjmp" >&6; } | |
4814 | if test $bash_cv_func_sigsetjmp = present; then | |
4815 | $as_echo "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h | |
5bdf8622 | 4816 | |
81ecdfbb RW |
4817 | fi |
4818 | ||
4819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5 | |
4820 | $as_echo_n "checking for lstat... " >&6; } | |
4821 | if test "${bash_cv_func_lstat+set}" = set; then : | |
4822 | $as_echo_n "(cached) " >&6 | |
5bdf8622 | 4823 | else |
81ecdfbb | 4824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 | 4825 | /* end confdefs.h. */ |
81ecdfbb RW |
4826 | |
4827 | #include <sys/types.h> | |
4828 | #include <sys/stat.h> | |
4829 | ||
5bdf8622 DJ |
4830 | int |
4831 | main () | |
4832 | { | |
81ecdfbb | 4833 | lstat(".",(struct stat *)0); |
5bdf8622 DJ |
4834 | ; |
4835 | return 0; | |
4836 | } | |
4837 | _ACEOF | |
81ecdfbb RW |
4838 | if ac_fn_c_try_link "$LINENO"; then : |
4839 | bash_cv_func_lstat=yes | |
5bdf8622 | 4840 | else |
81ecdfbb | 4841 | bash_cv_func_lstat=no |
5bdf8622 | 4842 | fi |
81ecdfbb RW |
4843 | rm -f core conftest.err conftest.$ac_objext \ |
4844 | conftest$ac_exeext conftest.$ac_ext | |
5bdf8622 | 4845 | fi |
81ecdfbb RW |
4846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5 |
4847 | $as_echo "$bash_cv_func_lstat" >&6; } | |
4848 | if test $bash_cv_func_lstat = yes; then | |
4849 | $as_echo "#define HAVE_LSTAT 1" >>confdefs.h | |
5bdf8622 DJ |
4850 | |
4851 | fi | |
4852 | ||
4853 | ||
81ecdfbb RW |
4854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5 |
4855 | $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; } | |
4856 | if test "${bash_cv_func_strcoll_broken+set}" = set; then : | |
4857 | $as_echo_n "(cached) " >&6 | |
4858 | else | |
4859 | if test "$cross_compiling" = yes; then : | |
4860 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5 | |
4861 | $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;} | |
4862 | bash_cv_func_strcoll_broken=no | |
5bdf8622 | 4863 | |
81ecdfbb RW |
4864 | else |
4865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4866 | /* end confdefs.h. */ | |
5bdf8622 | 4867 | |
81ecdfbb RW |
4868 | #include <stdio.h> |
4869 | #if defined (HAVE_LOCALE_H) | |
4870 | #include <locale.h> | |
4871 | #endif | |
5bdf8622 | 4872 | |
81ecdfbb RW |
4873 | main(c, v) |
4874 | int c; | |
4875 | char *v[]; | |
4876 | { | |
4877 | int r1, r2; | |
4878 | char *deflocale, *defcoll; | |
5bdf8622 | 4879 | |
81ecdfbb RW |
4880 | #ifdef HAVE_SETLOCALE |
4881 | deflocale = setlocale(LC_ALL, ""); | |
4882 | defcoll = setlocale(LC_COLLATE, ""); | |
4883 | #endif | |
5bdf8622 | 4884 | |
81ecdfbb RW |
4885 | #ifdef HAVE_STRCOLL |
4886 | /* These two values are taken from tests/glob-test. */ | |
4887 | r1 = strcoll("abd", "aXd"); | |
4888 | #else | |
4889 | r1 = 0; | |
4890 | #endif | |
4891 | r2 = strcmp("abd", "aXd"); | |
5bdf8622 | 4892 | |
81ecdfbb RW |
4893 | /* These two should both be greater than 0. It is permissible for |
4894 | a system to return different values, as long as the sign is the | |
4895 | same. */ | |
5bdf8622 | 4896 | |
81ecdfbb RW |
4897 | /* Exit with 1 (failure) if these two values are both > 0, since |
4898 | this tests whether strcoll(3) is broken with respect to strcmp(3) | |
4899 | in the default locale. */ | |
4900 | exit (r1 > 0 && r2 > 0); | |
4901 | } | |
5bdf8622 | 4902 | |
81ecdfbb RW |
4903 | _ACEOF |
4904 | if ac_fn_c_try_run "$LINENO"; then : | |
4905 | bash_cv_func_strcoll_broken=yes | |
4906 | else | |
4907 | bash_cv_func_strcoll_broken=no | |
4908 | fi | |
4909 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4910 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4911 | fi | |
5bdf8622 | 4912 | |
81ecdfbb | 4913 | fi |
5bdf8622 | 4914 | |
81ecdfbb RW |
4915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5 |
4916 | $as_echo "$bash_cv_func_strcoll_broken" >&6; } | |
4917 | if test $bash_cv_func_strcoll_broken = yes; then | |
4918 | $as_echo "#define STRCOLL_BROKEN 1" >>confdefs.h | |
5bdf8622 | 4919 | |
81ecdfbb | 4920 | fi |
5bdf8622 DJ |
4921 | |
4922 | ||
81ecdfbb RW |
4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5 |
4924 | $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; } | |
4925 | if test "${bash_cv_func_ctype_nonascii+set}" = set; then : | |
4926 | $as_echo_n "(cached) " >&6 | |
4927 | else | |
4928 | if test "$cross_compiling" = yes; then : | |
4929 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5 | |
4930 | $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;} | |
4931 | bash_cv_func_ctype_nonascii=no | |
5bdf8622 | 4932 | |
5bdf8622 | 4933 | else |
81ecdfbb | 4934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 | 4935 | /* end confdefs.h. */ |
5bdf8622 | 4936 | |
81ecdfbb RW |
4937 | #ifdef HAVE_LOCALE_H |
4938 | #include <locale.h> | |
4939 | #endif | |
4940 | #include <stdio.h> | |
4941 | #include <ctype.h> | |
4942 | ||
4943 | main(c, v) | |
4944 | int c; | |
4945 | char *v[]; | |
4946 | { | |
4947 | char *deflocale; | |
4948 | unsigned char x; | |
4949 | int r1, r2; | |
4950 | ||
4951 | #ifdef HAVE_SETLOCALE | |
4952 | /* We take a shot here. If that locale is not known, try the | |
4953 | system default. We try this one because '\342' (226) is | |
4954 | known to be a printable character in that locale. */ | |
4955 | deflocale = setlocale(LC_ALL, "en_US.ISO8859-1"); | |
4956 | if (deflocale == 0) | |
4957 | deflocale = setlocale(LC_ALL, ""); | |
4958 | #endif | |
4959 | ||
4960 | x = '\342'; | |
4961 | r1 = isprint(x); | |
4962 | x -= 128; | |
4963 | r2 = isprint(x); | |
4964 | exit (r1 == 0 || r2 == 0); | |
4965 | } | |
5bdf8622 | 4966 | |
5bdf8622 | 4967 | _ACEOF |
81ecdfbb RW |
4968 | if ac_fn_c_try_run "$LINENO"; then : |
4969 | bash_cv_func_ctype_nonascii=yes | |
d60d9f65 | 4970 | else |
81ecdfbb RW |
4971 | bash_cv_func_ctype_nonascii=no |
4972 | fi | |
4973 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4974 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5bdf8622 | 4975 | fi |
25ed0b71 | 4976 | |
d60d9f65 | 4977 | fi |
5bdf8622 | 4978 | |
81ecdfbb RW |
4979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_ctype_nonascii" >&5 |
4980 | $as_echo "$bash_cv_func_ctype_nonascii" >&6; } | |
4981 | if test $bash_cv_func_ctype_nonascii = yes; then | |
4982 | $as_echo "#define CTYPE_NON_ASCII 1" >>confdefs.h | |
d60d9f65 SS |
4983 | |
4984 | fi | |
4985 | ||
25ed0b71 | 4986 | |
81ecdfbb RW |
4987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5 |
4988 | $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; } | |
4989 | if test "${bash_cv_getpw_declared+set}" = set; then : | |
4990 | $as_echo_n "(cached) " >&6 | |
9255ee31 | 4991 | else |
81ecdfbb | 4992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4993 | /* end confdefs.h. */ |
25ed0b71 | 4994 | |
81ecdfbb RW |
4995 | #include <sys/types.h> |
4996 | #ifdef HAVE_UNISTD_H | |
4997 | # include <unistd.h> | |
4998 | #endif | |
4999 | #include <pwd.h> | |
25ed0b71 | 5000 | |
9255ee31 | 5001 | _ACEOF |
81ecdfbb RW |
5002 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5003 | $EGREP "getpwuid" >/dev/null 2>&1; then : | |
5004 | bash_cv_getpw_declared=yes | |
9255ee31 | 5005 | else |
81ecdfbb | 5006 | bash_cv_getpw_declared=no |
9255ee31 | 5007 | fi |
81ecdfbb | 5008 | rm -f conftest* |
25ed0b71 | 5009 | |
25ed0b71 | 5010 | fi |
25ed0b71 | 5011 | |
81ecdfbb RW |
5012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5 |
5013 | $as_echo "$bash_cv_getpw_declared" >&6; } | |
5014 | if test $bash_cv_getpw_declared = yes; then | |
5015 | $as_echo "#define HAVE_GETPW_DECLS 1" >>confdefs.h | |
25ed0b71 KW |
5016 | |
5017 | fi | |
9255ee31 | 5018 | |
25ed0b71 | 5019 | |
81ecdfbb RW |
5020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5 |
5021 | $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; } | |
5022 | if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then : | |
5023 | $as_echo_n "(cached) " >&6 | |
5024 | else | |
5025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5026 | /* end confdefs.h. */ | |
5027 | #include <sys/types.h> | |
5028 | #include <termios.h> | |
5029 | #ifdef TIOCGWINSZ | |
5030 | yes | |
5031 | #endif | |
d60d9f65 | 5032 | |
81ecdfbb RW |
5033 | _ACEOF |
5034 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5035 | $EGREP "yes" >/dev/null 2>&1; then : | |
5036 | ac_cv_sys_tiocgwinsz_in_termios_h=yes | |
5037 | else | |
5038 | ac_cv_sys_tiocgwinsz_in_termios_h=no | |
5039 | fi | |
5040 | rm -f conftest* | |
25ed0b71 | 5041 | |
81ecdfbb RW |
5042 | fi |
5043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 | |
5044 | $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } | |
25ed0b71 | 5045 | |
81ecdfbb RW |
5046 | if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then |
5047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 | |
5048 | $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; } | |
5049 | if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then : | |
5050 | $as_echo_n "(cached) " >&6 | |
5051 | else | |
5052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5bdf8622 | 5053 | /* end confdefs.h. */ |
81ecdfbb RW |
5054 | #include <sys/types.h> |
5055 | #include <sys/ioctl.h> | |
5056 | #ifdef TIOCGWINSZ | |
5057 | yes | |
5bdf8622 DJ |
5058 | #endif |
5059 | ||
5bdf8622 | 5060 | _ACEOF |
81ecdfbb RW |
5061 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5062 | $EGREP "yes" >/dev/null 2>&1; then : | |
5063 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes | |
5bdf8622 | 5064 | else |
81ecdfbb | 5065 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no |
5bdf8622 | 5066 | fi |
81ecdfbb | 5067 | rm -f conftest* |
5bdf8622 DJ |
5068 | |
5069 | fi | |
81ecdfbb RW |
5070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 |
5071 | $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } | |
5bdf8622 | 5072 | |
81ecdfbb | 5073 | if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then |
5bdf8622 | 5074 | |
81ecdfbb RW |
5075 | $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h |
5076 | ||
5077 | fi | |
5078 | fi | |
5bdf8622 DJ |
5079 | |
5080 | ||
81ecdfbb RW |
5081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5 |
5082 | $as_echo_n "checking whether signal handlers are of type void... " >&6; } | |
5083 | if test "${bash_cv_void_sighandler+set}" = set; then : | |
5084 | $as_echo_n "(cached) " >&6 | |
d60d9f65 | 5085 | else |
81ecdfbb | 5086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 5087 | /* end confdefs.h. */ |
81ecdfbb | 5088 | #include <sys/types.h> |
d60d9f65 | 5089 | #include <signal.h> |
81ecdfbb RW |
5090 | #ifdef signal |
5091 | #undef signal | |
5092 | #endif | |
5093 | #ifdef __cplusplus | |
5094 | extern "C" | |
5095 | #endif | |
5096 | void (*signal ()) (); | |
9255ee31 EZ |
5097 | int |
5098 | main () | |
5099 | { | |
81ecdfbb | 5100 | int i; |
9255ee31 EZ |
5101 | ; |
5102 | return 0; | |
5103 | } | |
5104 | _ACEOF | |
81ecdfbb RW |
5105 | if ac_fn_c_try_compile "$LINENO"; then : |
5106 | bash_cv_void_sighandler=yes | |
d60d9f65 | 5107 | else |
81ecdfbb RW |
5108 | bash_cv_void_sighandler=no |
5109 | fi | |
5110 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5111 | fi | |
5112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_void_sighandler" >&5 | |
5113 | $as_echo "$bash_cv_void_sighandler" >&6; } | |
5114 | if test $bash_cv_void_sighandler = yes; then | |
5115 | $as_echo "#define VOID_SIGHANDLER 1" >>confdefs.h | |
25ed0b71 | 5116 | |
81ecdfbb | 5117 | fi |
9255ee31 | 5118 | |
81ecdfbb RW |
5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5 |
5120 | $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; } | |
5121 | if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then : | |
5122 | $as_echo_n "(cached) " >&6 | |
5123 | else | |
5124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 5125 | /* end confdefs.h. */ |
81ecdfbb RW |
5126 | #include <sys/types.h> |
5127 | #include <sys/ioctl.h> | |
9255ee31 EZ |
5128 | int |
5129 | main () | |
5130 | { | |
81ecdfbb | 5131 | int x = TIOCSTAT; |
9255ee31 EZ |
5132 | ; |
5133 | return 0; | |
5134 | } | |
5135 | _ACEOF | |
81ecdfbb RW |
5136 | if ac_fn_c_try_compile "$LINENO"; then : |
5137 | bash_cv_tiocstat_in_ioctl=yes | |
d60d9f65 | 5138 | else |
81ecdfbb RW |
5139 | bash_cv_tiocstat_in_ioctl=no |
5140 | fi | |
5141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5142 | fi | |
5143 | ||
5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5 | |
5145 | $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; } | |
5146 | if test $bash_cv_tiocstat_in_ioctl = yes; then | |
5147 | $as_echo "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h | |
25ed0b71 | 5148 | |
81ecdfbb | 5149 | fi |
9255ee31 | 5150 | |
81ecdfbb RW |
5151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5 |
5152 | $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; } | |
5153 | if test "${bash_cv_fionread_in_ioctl+set}" = set; then : | |
5154 | $as_echo_n "(cached) " >&6 | |
5155 | else | |
5156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 5157 | /* end confdefs.h. */ |
81ecdfbb RW |
5158 | #include <sys/types.h> |
5159 | #include <sys/ioctl.h> | |
9255ee31 EZ |
5160 | int |
5161 | main () | |
5162 | { | |
81ecdfbb | 5163 | int x = FIONREAD; |
9255ee31 EZ |
5164 | ; |
5165 | return 0; | |
5166 | } | |
5167 | _ACEOF | |
81ecdfbb RW |
5168 | if ac_fn_c_try_compile "$LINENO"; then : |
5169 | bash_cv_fionread_in_ioctl=yes | |
d60d9f65 | 5170 | else |
81ecdfbb | 5171 | bash_cv_fionread_in_ioctl=no |
d60d9f65 | 5172 | fi |
81ecdfbb | 5173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 5174 | fi |
d60d9f65 | 5175 | |
81ecdfbb RW |
5176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5 |
5177 | $as_echo "$bash_cv_fionread_in_ioctl" >&6; } | |
5178 | if test $bash_cv_fionread_in_ioctl = yes; then | |
5179 | $as_echo "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h | |
d60d9f65 SS |
5180 | |
5181 | fi | |
5182 | ||
81ecdfbb RW |
5183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5 |
5184 | $as_echo_n "checking for speed_t in sys/types.h... " >&6; } | |
5185 | if test "${bash_cv_speed_t_in_sys_types+set}" = set; then : | |
5186 | $as_echo_n "(cached) " >&6 | |
5187 | else | |
5188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5189 | /* end confdefs.h. */ | |
5190 | #include <sys/types.h> | |
5191 | int | |
5192 | main () | |
5193 | { | |
5194 | speed_t x; | |
5195 | ; | |
5196 | return 0; | |
5197 | } | |
25ed0b71 | 5198 | _ACEOF |
81ecdfbb RW |
5199 | if ac_fn_c_try_compile "$LINENO"; then : |
5200 | bash_cv_speed_t_in_sys_types=yes | |
5201 | else | |
5202 | bash_cv_speed_t_in_sys_types=no | |
5203 | fi | |
5204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d60d9f65 SS |
5205 | fi |
5206 | ||
81ecdfbb RW |
5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5 |
5208 | $as_echo "$bash_cv_speed_t_in_sys_types" >&6; } | |
5209 | if test $bash_cv_speed_t_in_sys_types = yes; then | |
5210 | $as_echo "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h | |
25ed0b71 | 5211 | |
81ecdfbb | 5212 | fi |
25ed0b71 | 5213 | |
81ecdfbb RW |
5214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5 |
5215 | $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; } | |
5216 | if test "${bash_cv_struct_winsize_header+set}" = set; then : | |
5217 | $as_echo_n "(cached) " >&6 | |
d60d9f65 | 5218 | else |
81ecdfbb RW |
5219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5220 | /* end confdefs.h. */ | |
5221 | #include <sys/types.h> | |
5222 | #include <sys/ioctl.h> | |
5223 | int | |
5224 | main () | |
5225 | { | |
5226 | struct winsize x; | |
5227 | ; | |
5228 | return 0; | |
5229 | } | |
25ed0b71 | 5230 | _ACEOF |
81ecdfbb RW |
5231 | if ac_fn_c_try_compile "$LINENO"; then : |
5232 | bash_cv_struct_winsize_header=ioctl_h | |
5233 | else | |
5234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 5235 | /* end confdefs.h. */ |
81ecdfbb RW |
5236 | #include <sys/types.h> |
5237 | #include <termios.h> | |
5238 | int | |
5239 | main () | |
5240 | { | |
5241 | struct winsize x; | |
5242 | ; | |
5243 | return 0; | |
5244 | } | |
5245 | _ACEOF | |
5246 | if ac_fn_c_try_compile "$LINENO"; then : | |
5247 | bash_cv_struct_winsize_header=termios_h | |
5248 | else | |
5249 | bash_cv_struct_winsize_header=other | |
5250 | fi | |
5251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d60d9f65 | 5252 | |
81ecdfbb RW |
5253 | fi |
5254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5255 | fi | |
d60d9f65 | 5256 | |
81ecdfbb RW |
5257 | if test $bash_cv_struct_winsize_header = ioctl_h; then |
5258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5 | |
5259 | $as_echo "sys/ioctl.h" >&6; } | |
5260 | $as_echo "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h | |
d60d9f65 | 5261 | |
81ecdfbb RW |
5262 | elif test $bash_cv_struct_winsize_header = termios_h; then |
5263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5 | |
5264 | $as_echo "termios.h" >&6; } | |
5265 | $as_echo "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h | |
9255ee31 | 5266 | |
81ecdfbb RW |
5267 | else |
5268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
5269 | $as_echo "not found" >&6; } | |
9255ee31 | 5270 | fi |
25ed0b71 | 5271 | |
25ed0b71 | 5272 | |
81ecdfbb RW |
5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5 |
5274 | $as_echo_n "checking for struct dirent.d_ino... " >&6; } | |
5275 | if test "${bash_cv_dirent_has_dino+set}" = set; then : | |
5276 | $as_echo_n "(cached) " >&6 | |
5bdf8622 | 5277 | else |
81ecdfbb | 5278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 | 5279 | /* end confdefs.h. */ |
5bdf8622 | 5280 | |
81ecdfbb RW |
5281 | #include <stdio.h> |
5282 | #include <sys/types.h> | |
5283 | #ifdef HAVE_UNISTD_H | |
5284 | # include <unistd.h> | |
5285 | #endif /* HAVE_UNISTD_H */ | |
5286 | #if defined(HAVE_DIRENT_H) | |
5287 | # include <dirent.h> | |
5bdf8622 | 5288 | #else |
81ecdfbb RW |
5289 | # define dirent direct |
5290 | # ifdef HAVE_SYS_NDIR_H | |
5291 | # include <sys/ndir.h> | |
5292 | # endif /* SYSNDIR */ | |
5293 | # ifdef HAVE_SYS_DIR_H | |
5294 | # include <sys/dir.h> | |
5295 | # endif /* SYSDIR */ | |
5296 | # ifdef HAVE_NDIR_H | |
5297 | # include <ndir.h> | |
5298 | # endif | |
5299 | #endif /* HAVE_DIRENT_H */ | |
5bdf8622 DJ |
5300 | |
5301 | int | |
5302 | main () | |
5303 | { | |
81ecdfbb RW |
5304 | |
5305 | struct dirent d; int z; z = d.d_ino; | |
5306 | ||
5bdf8622 DJ |
5307 | ; |
5308 | return 0; | |
5309 | } | |
5310 | _ACEOF | |
81ecdfbb RW |
5311 | if ac_fn_c_try_compile "$LINENO"; then : |
5312 | bash_cv_dirent_has_dino=yes | |
5bdf8622 | 5313 | else |
81ecdfbb | 5314 | bash_cv_dirent_has_dino=no |
25ed0b71 | 5315 | fi |
81ecdfbb | 5316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5bdf8622 | 5317 | fi |
81ecdfbb RW |
5318 | |
5319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_dino" >&5 | |
5320 | $as_echo "$bash_cv_dirent_has_dino" >&6; } | |
5321 | if test $bash_cv_dirent_has_dino = yes; then | |
5322 | $as_echo "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h | |
5bdf8622 DJ |
5323 | |
5324 | fi | |
5325 | ||
81ecdfbb RW |
5326 | |
5327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5 | |
5328 | $as_echo_n "checking for struct dirent.d_fileno... " >&6; } | |
5329 | if test "${bash_cv_dirent_has_d_fileno+set}" = set; then : | |
5330 | $as_echo_n "(cached) " >&6 | |
9255ee31 | 5331 | else |
81ecdfbb | 5332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 5333 | /* end confdefs.h. */ |
5bdf8622 | 5334 | |
81ecdfbb RW |
5335 | #include <stdio.h> |
5336 | #include <sys/types.h> | |
5337 | #ifdef HAVE_UNISTD_H | |
5338 | # include <unistd.h> | |
5339 | #endif /* HAVE_UNISTD_H */ | |
5340 | #if defined(HAVE_DIRENT_H) | |
5341 | # include <dirent.h> | |
5bdf8622 | 5342 | #else |
81ecdfbb RW |
5343 | # define dirent direct |
5344 | # ifdef HAVE_SYS_NDIR_H | |
5345 | # include <sys/ndir.h> | |
5346 | # endif /* SYSNDIR */ | |
5347 | # ifdef HAVE_SYS_DIR_H | |
5348 | # include <sys/dir.h> | |
5349 | # endif /* SYSDIR */ | |
5350 | # ifdef HAVE_NDIR_H | |
5351 | # include <ndir.h> | |
5352 | # endif | |
5353 | #endif /* HAVE_DIRENT_H */ | |
5bdf8622 DJ |
5354 | |
5355 | int | |
5356 | main () | |
5357 | { | |
81ecdfbb RW |
5358 | |
5359 | struct dirent d; int z; z = d.d_fileno; | |
5360 | ||
5bdf8622 DJ |
5361 | ; |
5362 | return 0; | |
5363 | } | |
25ed0b71 | 5364 | _ACEOF |
81ecdfbb RW |
5365 | if ac_fn_c_try_compile "$LINENO"; then : |
5366 | bash_cv_dirent_has_d_fileno=yes | |
9255ee31 | 5367 | else |
81ecdfbb | 5368 | bash_cv_dirent_has_d_fileno=no |
9255ee31 | 5369 | fi |
81ecdfbb | 5370 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
25ed0b71 | 5371 | fi |
9255ee31 | 5372 | |
81ecdfbb RW |
5373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5 |
5374 | $as_echo "$bash_cv_dirent_has_d_fileno" >&6; } | |
5375 | if test $bash_cv_dirent_has_d_fileno = yes; then | |
5376 | $as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h | |
25ed0b71 | 5377 | |
81ecdfbb | 5378 | fi |
430b7832 | 5379 | |
430b7832 | 5380 | |
81ecdfbb RW |
5381 | case "$host_os" in |
5382 | aix*) prefer_curses=yes ;; | |
5383 | esac | |
430b7832 | 5384 | |
81ecdfbb RW |
5385 | if test "X$bash_cv_termcap_lib" = "X"; then |
5386 | _bash_needmsg=yes | |
5387 | else | |
5388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5 | |
5389 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
5390 | _bash_needmsg= | |
5391 | fi | |
5392 | if test "${bash_cv_termcap_lib+set}" = set; then : | |
5393 | $as_echo_n "(cached) " >&6 | |
5394 | else | |
5395 | ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent" | |
5396 | if test "x$ac_cv_func_tgetent" = x""yes; then : | |
5397 | bash_cv_termcap_lib=libc | |
5398 | else | |
5399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 | |
5400 | $as_echo_n "checking for tgetent in -ltermcap... " >&6; } | |
5401 | if test "${ac_cv_lib_termcap_tgetent+set}" = set; then : | |
5402 | $as_echo_n "(cached) " >&6 | |
5403 | else | |
5404 | ac_check_lib_save_LIBS=$LIBS | |
5405 | LIBS="-ltermcap $LIBS" | |
5406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5407 | /* end confdefs.h. */ | |
430b7832 | 5408 | |
81ecdfbb RW |
5409 | /* Override any GCC internal prototype to avoid an error. |
5410 | Use char because int might match the return type of a GCC | |
832a9484 | 5411 | builtin and then its argument prototype would still apply. */ |
832a9484 | 5412 | #ifdef __cplusplus |
81ecdfbb | 5413 | extern "C" |
832a9484 | 5414 | #endif |
81ecdfbb | 5415 | char tgetent (); |
832a9484 JB |
5416 | int |
5417 | main () | |
5418 | { | |
81ecdfbb | 5419 | return tgetent (); |
832a9484 JB |
5420 | ; |
5421 | return 0; | |
5422 | } | |
5423 | _ACEOF | |
81ecdfbb RW |
5424 | if ac_fn_c_try_link "$LINENO"; then : |
5425 | ac_cv_lib_termcap_tgetent=yes | |
832a9484 | 5426 | else |
81ecdfbb | 5427 | ac_cv_lib_termcap_tgetent=no |
832a9484 | 5428 | fi |
81ecdfbb RW |
5429 | rm -f core conftest.err conftest.$ac_objext \ |
5430 | conftest$ac_exeext conftest.$ac_ext | |
5431 | LIBS=$ac_check_lib_save_LIBS | |
832a9484 | 5432 | fi |
81ecdfbb RW |
5433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 |
5434 | $as_echo "$ac_cv_lib_termcap_tgetent" >&6; } | |
5435 | if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then : | |
5436 | bash_cv_termcap_lib=libtermcap | |
9255ee31 | 5437 | else |
81ecdfbb RW |
5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5 |
5439 | $as_echo_n "checking for tgetent in -ltinfo... " >&6; } | |
5440 | if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then : | |
5441 | $as_echo_n "(cached) " >&6 | |
5442 | else | |
5443 | ac_check_lib_save_LIBS=$LIBS | |
5444 | LIBS="-ltinfo $LIBS" | |
5445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 5446 | /* end confdefs.h. */ |
430b7832 | 5447 | |
81ecdfbb RW |
5448 | /* Override any GCC internal prototype to avoid an error. |
5449 | Use char because int might match the return type of a GCC | |
9255ee31 | 5450 | builtin and then its argument prototype would still apply. */ |
25ed0b71 | 5451 | #ifdef __cplusplus |
81ecdfbb | 5452 | extern "C" |
9255ee31 | 5453 | #endif |
81ecdfbb | 5454 | char tgetent (); |
25ed0b71 KW |
5455 | int |
5456 | main () | |
5457 | { | |
81ecdfbb | 5458 | return tgetent (); |
9255ee31 EZ |
5459 | ; |
5460 | return 0; | |
5461 | } | |
5462 | _ACEOF | |
81ecdfbb RW |
5463 | if ac_fn_c_try_link "$LINENO"; then : |
5464 | ac_cv_lib_tinfo_tgetent=yes | |
d60d9f65 | 5465 | else |
81ecdfbb | 5466 | ac_cv_lib_tinfo_tgetent=no |
9255ee31 | 5467 | fi |
81ecdfbb RW |
5468 | rm -f core conftest.err conftest.$ac_objext \ |
5469 | conftest$ac_exeext conftest.$ac_ext | |
5470 | LIBS=$ac_check_lib_save_LIBS | |
d60d9f65 | 5471 | fi |
81ecdfbb RW |
5472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5 |
5473 | $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } | |
5474 | if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then : | |
5475 | bash_cv_termcap_lib=libtinfo | |
d60d9f65 | 5476 | else |
81ecdfbb RW |
5477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5 |
5478 | $as_echo_n "checking for tgetent in -lcurses... " >&6; } | |
5479 | if test "${ac_cv_lib_curses_tgetent+set}" = set; then : | |
5480 | $as_echo_n "(cached) " >&6 | |
5481 | else | |
5482 | ac_check_lib_save_LIBS=$LIBS | |
5483 | LIBS="-lcurses $LIBS" | |
5484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 5485 | /* end confdefs.h. */ |
430b7832 | 5486 | |
81ecdfbb RW |
5487 | /* Override any GCC internal prototype to avoid an error. |
5488 | Use char because int might match the return type of a GCC | |
5489 | builtin and then its argument prototype would still apply. */ | |
9255ee31 EZ |
5490 | #ifdef __cplusplus |
5491 | extern "C" | |
25ed0b71 | 5492 | #endif |
81ecdfbb RW |
5493 | char tgetent (); |
5494 | int | |
5495 | main () | |
5496 | { | |
5497 | return tgetent (); | |
5498 | ; | |
5499 | return 0; | |
5500 | } | |
5501 | _ACEOF | |
5502 | if ac_fn_c_try_link "$LINENO"; then : | |
5503 | ac_cv_lib_curses_tgetent=yes | |
5504 | else | |
5505 | ac_cv_lib_curses_tgetent=no | |
5506 | fi | |
5507 | rm -f core conftest.err conftest.$ac_objext \ | |
5508 | conftest$ac_exeext conftest.$ac_ext | |
5509 | LIBS=$ac_check_lib_save_LIBS | |
5510 | fi | |
5511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5 | |
5512 | $as_echo "$ac_cv_lib_curses_tgetent" >&6; } | |
5513 | if test "x$ac_cv_lib_curses_tgetent" = x""yes; then : | |
5514 | bash_cv_termcap_lib=libcurses | |
5515 | else | |
5516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 | |
5517 | $as_echo_n "checking for tgetent in -lncurses... " >&6; } | |
5518 | if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then : | |
5519 | $as_echo_n "(cached) " >&6 | |
5520 | else | |
5521 | ac_check_lib_save_LIBS=$LIBS | |
5522 | LIBS="-lncurses $LIBS" | |
5523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5524 | /* end confdefs.h. */ | |
5525 | ||
5526 | /* Override any GCC internal prototype to avoid an error. | |
5527 | Use char because int might match the return type of a GCC | |
5528 | builtin and then its argument prototype would still apply. */ | |
25ed0b71 | 5529 | #ifdef __cplusplus |
81ecdfbb | 5530 | extern "C" |
9255ee31 | 5531 | #endif |
81ecdfbb | 5532 | char tgetent (); |
25ed0b71 KW |
5533 | int |
5534 | main () | |
5535 | { | |
81ecdfbb | 5536 | return tgetent (); |
9255ee31 EZ |
5537 | ; |
5538 | return 0; | |
5539 | } | |
5540 | _ACEOF | |
81ecdfbb RW |
5541 | if ac_fn_c_try_link "$LINENO"; then : |
5542 | ac_cv_lib_ncurses_tgetent=yes | |
d60d9f65 | 5543 | else |
81ecdfbb RW |
5544 | ac_cv_lib_ncurses_tgetent=no |
5545 | fi | |
5546 | rm -f core conftest.err conftest.$ac_objext \ | |
5547 | conftest$ac_exeext conftest.$ac_ext | |
5548 | LIBS=$ac_check_lib_save_LIBS | |
5549 | fi | |
5550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 | |
5551 | $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } | |
5552 | if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then : | |
5553 | bash_cv_termcap_lib=libncurses | |
5554 | else | |
5555 | bash_cv_termcap_lib=gnutermcap | |
5556 | fi | |
5557 | ||
5558 | fi | |
25ed0b71 | 5559 | |
d60d9f65 | 5560 | fi |
81ecdfbb RW |
5561 | |
5562 | fi | |
5563 | ||
9255ee31 | 5564 | fi |
25ed0b71 | 5565 | |
05bc3370 | 5566 | fi |
25ed0b71 | 5567 | |
81ecdfbb RW |
5568 | if test "X$_bash_needmsg" = "Xyes"; then |
5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5 | |
5570 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
5571 | fi | |
5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5 | |
5573 | $as_echo "using $bash_cv_termcap_lib" >&6; } | |
5574 | if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then | |
5575 | LDFLAGS="$LDFLAGS -L./lib/termcap" | |
5576 | TERMCAP_LIB="./lib/termcap/libtermcap.a" | |
5577 | TERMCAP_DEP="./lib/termcap/libtermcap.a" | |
5578 | elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then | |
5579 | TERMCAP_LIB=-ltermcap | |
5580 | TERMCAP_DEP= | |
5581 | elif test $bash_cv_termcap_lib = libtinfo; then | |
5582 | TERMCAP_LIB=-ltinfo | |
5583 | TERMCAP_DEP= | |
5584 | elif test $bash_cv_termcap_lib = libncurses; then | |
5585 | TERMCAP_LIB=-lncurses | |
5586 | TERMCAP_DEP= | |
5587 | elif test $bash_cv_termcap_lib = libc; then | |
5588 | TERMCAP_LIB= | |
5589 | TERMCAP_DEP= | |
5bdf8622 | 5590 | else |
81ecdfbb RW |
5591 | TERMCAP_LIB=-lcurses |
5592 | TERMCAP_DEP= | |
5593 | fi | |
5594 | ||
5595 | if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then | |
5596 | if test "$prefer_curses" = yes; then | |
5597 | TERMCAP_LIB=-lcurses | |
5598 | else | |
5599 | TERMCAP_LIB=-ltermcap #default | |
5600 | fi | |
5601 | fi | |
5602 | ||
5603 | ||
5604 | for ac_header in wctype.h | |
5605 | do : | |
5606 | ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default" | |
5607 | if test "x$ac_cv_header_wctype_h" = x""yes; then : | |
5608 | cat >>confdefs.h <<_ACEOF | |
5609 | #define HAVE_WCTYPE_H 1 | |
5bdf8622 | 5610 | _ACEOF |
5bdf8622 | 5611 | |
81ecdfbb | 5612 | fi |
5bdf8622 | 5613 | |
81ecdfbb | 5614 | done |
5bdf8622 | 5615 | |
81ecdfbb RW |
5616 | for ac_header in wchar.h |
5617 | do : | |
5618 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" | |
5619 | if test "x$ac_cv_header_wchar_h" = x""yes; then : | |
5620 | cat >>confdefs.h <<_ACEOF | |
5621 | #define HAVE_WCHAR_H 1 | |
5622 | _ACEOF | |
5bdf8622 | 5623 | |
81ecdfbb | 5624 | fi |
5bdf8622 | 5625 | |
81ecdfbb RW |
5626 | done |
5627 | ||
5628 | for ac_header in langinfo.h | |
5629 | do : | |
5630 | ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" | |
5631 | if test "x$ac_cv_header_langinfo_h" = x""yes; then : | |
5632 | cat >>confdefs.h <<_ACEOF | |
5633 | #define HAVE_LANGINFO_H 1 | |
5bdf8622 | 5634 | _ACEOF |
5bdf8622 | 5635 | |
5bdf8622 | 5636 | fi |
81ecdfbb RW |
5637 | |
5638 | done | |
5639 | ||
5640 | ||
5641 | ac_fn_c_check_func "$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs" | |
5642 | if test "x$ac_cv_func_mbsrtowcs" = x""yes; then : | |
5643 | $as_echo "#define HAVE_MBSRTOWCS 1" >>confdefs.h | |
5644 | ||
5645 | fi | |
5646 | ||
5647 | ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc" | |
5648 | if test "x$ac_cv_func_mbrtowc" = x""yes; then : | |
5649 | $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h | |
5650 | ||
5bdf8622 | 5651 | fi |
81ecdfbb RW |
5652 | |
5653 | ac_fn_c_check_func "$LINENO" "mbrlen" "ac_cv_func_mbrlen" | |
5654 | if test "x$ac_cv_func_mbrlen" = x""yes; then : | |
5655 | $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h | |
5656 | ||
5657 | fi | |
5658 | ||
5659 | ac_fn_c_check_func "$LINENO" "wctomb" "ac_cv_func_wctomb" | |
5660 | if test "x$ac_cv_func_wctomb" = x""yes; then : | |
5661 | $as_echo "#define HAVE_WCTOMB 1" >>confdefs.h | |
5662 | ||
5663 | fi | |
5664 | ||
5665 | ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth" | |
5666 | if test "x$ac_cv_func_wcwidth" = x""yes; then : | |
5667 | $as_echo "#define HAVE_WCWIDTH 1" >>confdefs.h | |
5668 | ||
5669 | fi | |
5670 | ||
5671 | ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup" | |
5672 | if test "x$ac_cv_func_wcsdup" = x""yes; then : | |
5673 | $as_echo "#define HAVE_WCSDUP 1" >>confdefs.h | |
5bdf8622 DJ |
5674 | |
5675 | fi | |
5676 | ||
5677 | ||
05bc3370 | 5678 | if test "$ac_cv_func_wcwidth" = no && test "$ac_cv_header_wchar_h" = yes; then |
25ed0b71 | 5679 | WCWIDTH_OBJ=wcwidth.o |
05bc3370 MK |
5680 | else |
5681 | WCWIDTH_OBJ= | |
d60d9f65 | 5682 | fi |
9255ee31 | 5683 | |
05bc3370 | 5684 | |
81ecdfbb RW |
5685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 |
5686 | $as_echo_n "checking for mbstate_t... " >&6; } | |
5687 | if test "${bash_cv_have_mbstate_t+set}" = set; then : | |
5688 | $as_echo_n "(cached) " >&6 | |
d60d9f65 | 5689 | else |
81ecdfbb | 5690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 5691 | /* end confdefs.h. */ |
5bdf8622 | 5692 | |
9255ee31 EZ |
5693 | #include <wchar.h> |
5694 | int | |
5695 | main () | |
430b7832 | 5696 | { |
5bdf8622 | 5697 | |
9255ee31 | 5698 | mbstate_t ps; |
5bdf8622 DJ |
5699 | mbstate_t *psp; |
5700 | psp = (mbstate_t *)0; | |
5701 | ||
430b7832 MM |
5702 | ; |
5703 | return 0; | |
9255ee31 EZ |
5704 | } |
5705 | _ACEOF | |
81ecdfbb | 5706 | if ac_fn_c_try_compile "$LINENO"; then : |
9255ee31 | 5707 | bash_cv_have_mbstate_t=yes |
d60d9f65 | 5708 | else |
81ecdfbb | 5709 | bash_cv_have_mbstate_t=no |
d60d9f65 | 5710 | fi |
81ecdfbb | 5711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 5712 | fi |
81ecdfbb RW |
5713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_mbstate_t" >&5 |
5714 | $as_echo "$bash_cv_have_mbstate_t" >&6; } | |
9255ee31 | 5715 | if test $bash_cv_have_mbstate_t = yes; then |
81ecdfbb | 5716 | $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h |
d60d9f65 SS |
5717 | |
5718 | fi | |
5719 | ||
81ecdfbb RW |
5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
5721 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
5722 | if test "${bash_cv_langinfo_codeset+set}" = set; then : | |
5723 | $as_echo_n "(cached) " >&6 | |
d60d9f65 | 5724 | else |
81ecdfbb | 5725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 5726 | /* end confdefs.h. */ |
9255ee31 EZ |
5727 | #include <langinfo.h> |
5728 | int | |
5729 | main () | |
5730 | { | |
5731 | char* cs = nl_langinfo(CODESET); | |
5732 | ; | |
5733 | return 0; | |
5734 | } | |
5735 | _ACEOF | |
81ecdfbb | 5736 | if ac_fn_c_try_link "$LINENO"; then : |
9255ee31 EZ |
5737 | bash_cv_langinfo_codeset=yes |
5738 | else | |
81ecdfbb | 5739 | bash_cv_langinfo_codeset=no |
9255ee31 | 5740 | fi |
81ecdfbb RW |
5741 | rm -f core conftest.err conftest.$ac_objext \ |
5742 | conftest$ac_exeext conftest.$ac_ext | |
d60d9f65 | 5743 | fi |
81ecdfbb RW |
5744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_langinfo_codeset" >&5 |
5745 | $as_echo "$bash_cv_langinfo_codeset" >&6; } | |
9255ee31 | 5746 | if test $bash_cv_langinfo_codeset = yes; then |
81ecdfbb | 5747 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
d60d9f65 | 5748 | |
d60d9f65 SS |
5749 | fi |
5750 | ||
25ed0b71 KW |
5751 | |
5752 | ||
d60d9f65 SS |
5753 | case "$host_cpu" in |
5754 | *cray*) LOCAL_CFLAGS=-DCRAY ;; | |
9255ee31 | 5755 | *s390*) LOCAL_CFLAGS=-fsigned-char ;; |
d60d9f65 SS |
5756 | esac |
5757 | ||
5758 | case "$host_os" in | |
5759 | isc*) LOCAL_CFLAGS=-Disc386 ;; | |
5760 | esac | |
5761 | ||
c862e87b JM |
5762 | # shared library configuration section |
5763 | # | |
5764 | # Shared object configuration section. These values are generated by | |
5765 | # ${srcdir}/support/shobj-conf | |
5766 | # | |
5767 | if test -f ${srcdir}/support/shobj-conf; then | |
81ecdfbb RW |
5768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking configuration for building shared libraries" >&5 |
5769 | $as_echo_n "checking configuration for building shared libraries... " >&6; } | |
5bdf8622 DJ |
5770 | eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}` |
5771 | ||
5772 | # case "$SHLIB_LIBS" in | |
5773 | # *curses*|*termcap*|*termlib*) ;; | |
5774 | # *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;; | |
5775 | # esac | |
5776 | ||
5777 | ||
5778 | ||
5779 | ||
9255ee31 | 5780 | |
25ed0b71 KW |
5781 | |
5782 | ||
5783 | ||
5784 | ||
5785 | ||
5786 | ||
5787 | ||
5788 | ||
5789 | ||
5790 | ||
5791 | ||
81ecdfbb RW |
5792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_STATUS" >&5 |
5793 | $as_echo "$SHLIB_STATUS" >&6; } | |
9255ee31 EZ |
5794 | |
5795 | # SHLIB_STATUS is either `supported' or `unsupported'. If it's | |
5796 | # `unsupported', turn off any default shared library building | |
5797 | if test "$SHLIB_STATUS" = 'unsupported'; then | |
5798 | opt_shared_libs=no | |
5799 | fi | |
1b17e766 EZ |
5800 | |
5801 | # shared library versioning | |
5802 | # quoted for m4 so I can use character classes | |
5803 | SHLIB_MAJOR=`expr "$LIBVERSION" : '\([0-9]\)\..*'` | |
5804 | SHLIB_MINOR=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'` | |
9255ee31 | 5805 | |
25ed0b71 | 5806 | |
9255ee31 EZ |
5807 | fi |
5808 | ||
5809 | if test "$opt_static_libs" = "yes"; then | |
5810 | STATIC_TARGET=static | |
5811 | STATIC_INSTALL_TARGET=install-static | |
5812 | fi | |
5813 | if test "$opt_shared_libs" = "yes"; then | |
5814 | SHARED_TARGET=shared | |
5815 | SHARED_INSTALL_TARGET=install-shared | |
c862e87b JM |
5816 | fi |
5817 | ||
25ed0b71 KW |
5818 | |
5819 | ||
5820 | ||
5821 | ||
5822 | ||
1b17e766 EZ |
5823 | case "$host_os" in |
5824 | msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file | |
5825 | *) BUILD_DIR=`pwd` ;; | |
5826 | esac | |
5827 | ||
5bdf8622 DJ |
5828 | case "$BUILD_DIR" in |
5829 | *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;; | |
5830 | *) ;; | |
5831 | esac | |
5832 | ||
5833 | ||
25ed0b71 KW |
5834 | |
5835 | ||
5836 | ||
5837 | ||
5838 | ||
5839 | ||
5840 | ||
5841 | ||
5842 | ||
5843 | ||
5844 | ||
5845 | ||
5846 | ||
5847 | ||
5848 | ||
5849 | ||
5850 | ||
81ecdfbb RW |
5851 | ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile" |
5852 | ||
5853 | ac_config_commands="$ac_config_commands default" | |
5854 | ||
9255ee31 | 5855 | cat >confcache <<\_ACEOF |
d60d9f65 SS |
5856 | # This file is a shell script that caches the results of configure |
5857 | # tests run on this system so they can be shared between configure | |
9255ee31 EZ |
5858 | # scripts and configure runs, see configure's option --config-cache. |
5859 | # It is not useful on other systems. If it contains results you don't | |
5860 | # want to keep, you may remove or edit it. | |
d60d9f65 | 5861 | # |
9255ee31 EZ |
5862 | # config.status only pays attention to the cache file if you give it |
5863 | # the --recheck option to rerun configure. | |
d60d9f65 | 5864 | # |
25ed0b71 | 5865 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
9255ee31 EZ |
5866 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
5867 | # following values. | |
5868 | ||
5869 | _ACEOF | |
5870 | ||
d60d9f65 SS |
5871 | # The following way of writing the cache mishandles newlines in values, |
5872 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 5873 | # So, we kill variables containing newlines. |
d60d9f65 SS |
5874 | # Ultrix sh set writes to stderr and can't be redirected directly, |
5875 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
5876 | ( |
5877 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
5878 | eval ac_val=\$$ac_var | |
5879 | case $ac_val in #( | |
5880 | *${as_nl}*) | |
5881 | case $ac_var in #( | |
5882 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
5883 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
5884 | esac | |
5885 | case $ac_var in #( | |
5886 | _ | IFS | as_nl) ;; #( | |
5887 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
5888 | *) { eval $ac_var=; unset $ac_var;} ;; | |
5889 | esac ;; | |
5890 | esac | |
5891 | done | |
5892 | ||
9255ee31 | 5893 | (set) 2>&1 | |
81ecdfbb RW |
5894 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
5895 | *${as_nl}ac_space=\ *) | |
5896 | # `set' does not quote correctly, so add quotes: double-quote | |
5897 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
9255ee31 | 5898 | sed -n \ |
430b7832 MM |
5899 | "s/'/'\\\\''/g; |
5900 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 5901 | ;; #( |
9255ee31 EZ |
5902 | *) |
5903 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 5904 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
9255ee31 | 5905 | ;; |
81ecdfbb RW |
5906 | esac | |
5907 | sort | |
5908 | ) | | |
9255ee31 | 5909 | sed ' |
81ecdfbb | 5910 | /^ac_cv_env_/b end |
9255ee31 | 5911 | t clear |
81ecdfbb | 5912 | :clear |
9255ee31 EZ |
5913 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
5914 | t end | |
81ecdfbb RW |
5915 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
5916 | :end' >>confcache | |
5917 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
5918 | if test -w "$cache_file"; then | |
5919 | test "x$cache_file" != "x/dev/null" && | |
5920 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
5921 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
9255ee31 | 5922 | cat confcache >$cache_file |
d60d9f65 | 5923 | else |
81ecdfbb RW |
5924 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
5925 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
d60d9f65 SS |
5926 | fi |
5927 | fi | |
5928 | rm -f confcache | |
5929 | ||
d60d9f65 SS |
5930 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
5931 | # Let make expand exec_prefix. | |
5932 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5933 | ||
d60d9f65 SS |
5934 | DEFS=-DHAVE_CONFIG_H |
5935 | ||
25ed0b71 KW |
5936 | ac_libobjs= |
5937 | ac_ltlibobjs= | |
5938 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
5939 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
5940 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
5941 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
5942 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
5943 | # will be set to the directory where LIBOBJS objects are built. | |
5944 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
5945 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
25ed0b71 KW |
5946 | done |
5947 | LIBOBJS=$ac_libobjs | |
5948 | ||
5949 | LTLIBOBJS=$ac_ltlibobjs | |
5950 | ||
5951 | ||
5952 | ||
d60d9f65 | 5953 | : ${CONFIG_STATUS=./config.status} |
81ecdfbb | 5954 | ac_write_fail=0 |
9255ee31 EZ |
5955 | ac_clean_files_save=$ac_clean_files |
5956 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
5957 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
5958 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
5959 | as_write_fail=0 | |
5960 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
9255ee31 | 5961 | #! $SHELL |
25ed0b71 | 5962 | # Generated by $as_me. |
d60d9f65 | 5963 | # Run this file to recreate the current configuration. |
d60d9f65 | 5964 | # Compiler output produced by configure, useful for debugging |
9255ee31 | 5965 | # configure, is in config.log if it exists. |
d60d9f65 | 5966 | |
9255ee31 | 5967 | debug=false |
25ed0b71 KW |
5968 | ac_cs_recheck=false |
5969 | ac_cs_silent=false | |
9255ee31 | 5970 | |
81ecdfbb RW |
5971 | SHELL=\${CONFIG_SHELL-$SHELL} |
5972 | export SHELL | |
5973 | _ASEOF | |
5974 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
5975 | ## -------------------- ## | |
5976 | ## M4sh Initialization. ## | |
5977 | ## -------------------- ## | |
5978 | ||
5979 | # Be more Bourne compatible | |
5980 | DUALCASE=1; export DUALCASE # for MKS sh | |
5981 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
9255ee31 EZ |
5982 | emulate sh |
5983 | NULLCMD=: | |
81ecdfbb | 5984 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
25ed0b71 KW |
5985 | # is contrary to our usage. Disable this feature. |
5986 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
5987 | setopt NO_GLOB_SUBST |
5988 | else | |
5989 | case `(set -o) 2>/dev/null` in #( | |
5990 | *posix*) : | |
5991 | set -o posix ;; #( | |
5992 | *) : | |
5993 | ;; | |
5994 | esac | |
9255ee31 EZ |
5995 | fi |
5996 | ||
81ecdfbb RW |
5997 | |
5998 | as_nl=' | |
5999 | ' | |
6000 | export as_nl | |
6001 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
6002 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6003 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
6004 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
6005 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
6006 | # but without wasting forks for bash or zsh. | |
6007 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
6008 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6009 | as_echo='print -r --' | |
6010 | as_echo_n='print -rn --' | |
6011 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6012 | as_echo='printf %s\n' | |
6013 | as_echo_n='printf %s' | |
6014 | else | |
6015 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
6016 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
6017 | as_echo_n='/usr/ucb/echo -n' | |
6018 | else | |
6019 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
6020 | as_echo_n_body='eval | |
6021 | arg=$1; | |
6022 | case $arg in #( | |
6023 | *"$as_nl"*) | |
6024 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
6025 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
6026 | esac; | |
6027 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
6028 | ' | |
6029 | export as_echo_n_body | |
6030 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
6031 | fi | |
6032 | export as_echo_body | |
6033 | as_echo='sh -c $as_echo_body as_echo' | |
6034 | fi | |
6035 | ||
6036 | # The user is always right. | |
6037 | if test "${PATH_SEPARATOR+set}" != set; then | |
6038 | PATH_SEPARATOR=: | |
6039 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
6040 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
6041 | PATH_SEPARATOR=';' | |
6042 | } | |
25ed0b71 KW |
6043 | fi |
6044 | ||
6045 | ||
81ecdfbb RW |
6046 | # IFS |
6047 | # We need space, tab and new line, in precisely that order. Quoting is | |
6048 | # there to prevent editors from complaining about space-tab. | |
6049 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
6050 | # splitting by setting IFS to empty value.) | |
6051 | IFS=" "" $as_nl" | |
6052 | ||
6053 | # Find who we are. Look in the path if we contain no directory separator. | |
6054 | case $0 in #(( | |
6055 | *[\\/]* ) as_myself=$0 ;; | |
6056 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6057 | for as_dir in $PATH | |
6058 | do | |
6059 | IFS=$as_save_IFS | |
6060 | test -z "$as_dir" && as_dir=. | |
6061 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6062 | done | |
6063 | IFS=$as_save_IFS | |
6064 | ||
6065 | ;; | |
6066 | esac | |
6067 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6068 | # in which case we are not to be found in the path. | |
6069 | if test "x$as_myself" = x; then | |
6070 | as_myself=$0 | |
6071 | fi | |
6072 | if test ! -f "$as_myself"; then | |
6073 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
6074 | exit 1 | |
6075 | fi | |
6076 | ||
6077 | # Unset variables that we do not need and which cause bugs (e.g. in | |
6078 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
6079 | # suppresses any "Segmentation fault" message there. '((' could | |
6080 | # trigger a bug in pdksh 5.2.14. | |
6081 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
6082 | do eval test x\${$as_var+set} = xset \ | |
6083 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
6084 | done | |
25ed0b71 KW |
6085 | PS1='$ ' |
6086 | PS2='> ' | |
6087 | PS4='+ ' | |
6088 | ||
6089 | # NLS nuisances. | |
81ecdfbb RW |
6090 | LC_ALL=C |
6091 | export LC_ALL | |
6092 | LANGUAGE=C | |
6093 | export LANGUAGE | |
6094 | ||
6095 | # CDPATH. | |
6096 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
6097 | ||
6098 | ||
6099 | # as_fn_error ERROR [LINENO LOG_FD] | |
6100 | # --------------------------------- | |
6101 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
6102 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
6103 | # script with status $?, using 1 if that was 0. | |
6104 | as_fn_error () | |
6105 | { | |
6106 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
6107 | if test "$3"; then | |
6108 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
6109 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
25ed0b71 | 6110 | fi |
81ecdfbb RW |
6111 | $as_echo "$as_me: error: $1" >&2 |
6112 | as_fn_exit $as_status | |
6113 | } # as_fn_error | |
25ed0b71 | 6114 | |
81ecdfbb RW |
6115 | |
6116 | # as_fn_set_status STATUS | |
6117 | # ----------------------- | |
6118 | # Set $? to STATUS, without forking. | |
6119 | as_fn_set_status () | |
6120 | { | |
6121 | return $1 | |
6122 | } # as_fn_set_status | |
6123 | ||
6124 | # as_fn_exit STATUS | |
6125 | # ----------------- | |
6126 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
6127 | as_fn_exit () | |
6128 | { | |
6129 | set +e | |
6130 | as_fn_set_status $1 | |
6131 | exit $1 | |
6132 | } # as_fn_exit | |
6133 | ||
6134 | # as_fn_unset VAR | |
6135 | # --------------- | |
6136 | # Portably unset VAR. | |
6137 | as_fn_unset () | |
6138 | { | |
6139 | { eval $1=; unset $1;} | |
6140 | } | |
6141 | as_unset=as_fn_unset | |
6142 | # as_fn_append VAR VALUE | |
6143 | # ---------------------- | |
6144 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
6145 | # advantage of any shell optimizations that allow amortized linear growth over | |
6146 | # repeated appends, instead of the typical quadratic growth present in naive | |
6147 | # implementations. | |
6148 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
6149 | eval 'as_fn_append () | |
6150 | { | |
6151 | eval $1+=\$2 | |
6152 | }' | |
6153 | else | |
6154 | as_fn_append () | |
6155 | { | |
6156 | eval $1=\$$1\$2 | |
6157 | } | |
6158 | fi # as_fn_append | |
6159 | ||
6160 | # as_fn_arith ARG... | |
6161 | # ------------------ | |
6162 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
6163 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
6164 | # must be portable across $(()) and expr. | |
6165 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
6166 | eval 'as_fn_arith () | |
6167 | { | |
6168 | as_val=$(( $* )) | |
6169 | }' | |
6170 | else | |
6171 | as_fn_arith () | |
6172 | { | |
6173 | as_val=`expr "$@" || test $? -eq 1` | |
6174 | } | |
6175 | fi # as_fn_arith | |
6176 | ||
6177 | ||
6178 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
6179 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
25ed0b71 KW |
6180 | as_expr=expr |
6181 | else | |
6182 | as_expr=false | |
6183 | fi | |
6184 | ||
81ecdfbb | 6185 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
25ed0b71 KW |
6186 | as_basename=basename |
6187 | else | |
6188 | as_basename=false | |
6189 | fi | |
6190 | ||
81ecdfbb RW |
6191 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
6192 | as_dirname=dirname | |
6193 | else | |
6194 | as_dirname=false | |
6195 | fi | |
25ed0b71 | 6196 | |
81ecdfbb | 6197 | as_me=`$as_basename -- "$0" || |
25ed0b71 KW |
6198 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
6199 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
6200 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
6201 | $as_echo X/"$0" | | |
6202 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
6203 | s//\1/ | |
6204 | q | |
6205 | } | |
6206 | /^X\/\(\/\/\)$/{ | |
6207 | s//\1/ | |
6208 | q | |
6209 | } | |
6210 | /^X\/\(\/\).*/{ | |
6211 | s//\1/ | |
6212 | q | |
6213 | } | |
6214 | s/.*/./; q'` | |
25ed0b71 | 6215 | |
25ed0b71 KW |
6216 | # Avoid depending upon Character Ranges. |
6217 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6218 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6219 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6220 | as_cr_digits='0123456789' | |
6221 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6222 | ||
81ecdfbb RW |
6223 | ECHO_C= ECHO_N= ECHO_T= |
6224 | case `echo -n x` in #((((( | |
6225 | -n*) | |
6226 | case `echo 'xy\c'` in | |
6227 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
6228 | xy) ECHO_C='\c';; | |
6229 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
6230 | ECHO_T=' ';; | |
6231 | esac;; | |
6232 | *) | |
6233 | ECHO_N='-n';; | |
25ed0b71 | 6234 | esac |
9255ee31 | 6235 | |
81ecdfbb RW |
6236 | rm -f conf$$ conf$$.exe conf$$.file |
6237 | if test -d conf$$.dir; then | |
6238 | rm -f conf$$.dir/conf$$.file | |
9255ee31 | 6239 | else |
81ecdfbb RW |
6240 | rm -f conf$$.dir |
6241 | mkdir conf$$.dir 2>/dev/null | |
9255ee31 | 6242 | fi |
81ecdfbb RW |
6243 | if (echo >conf$$.file) 2>/dev/null; then |
6244 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
9255ee31 | 6245 | as_ln_s='ln -s' |
81ecdfbb RW |
6246 | # ... but there are two gotchas: |
6247 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
6248 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
6249 | # In both cases, we have to default to `cp -p'. | |
6250 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
6251 | as_ln_s='cp -p' | |
6252 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
6253 | as_ln_s=ln | |
6254 | else | |
6255 | as_ln_s='cp -p' | |
9255ee31 | 6256 | fi |
9255ee31 EZ |
6257 | else |
6258 | as_ln_s='cp -p' | |
6259 | fi | |
81ecdfbb RW |
6260 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
6261 | rmdir conf$$.dir 2>/dev/null | |
6262 | ||
6263 | ||
6264 | # as_fn_mkdir_p | |
6265 | # ------------- | |
6266 | # Create "$as_dir" as a directory, including parents if necessary. | |
6267 | as_fn_mkdir_p () | |
6268 | { | |
6269 | ||
6270 | case $as_dir in #( | |
6271 | -*) as_dir=./$as_dir;; | |
6272 | esac | |
6273 | test -d "$as_dir" || eval $as_mkdir_p || { | |
6274 | as_dirs= | |
6275 | while :; do | |
6276 | case $as_dir in #( | |
6277 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
6278 | *) as_qdir=$as_dir;; | |
6279 | esac | |
6280 | as_dirs="'$as_qdir' $as_dirs" | |
6281 | as_dir=`$as_dirname -- "$as_dir" || | |
6282 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6283 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6284 | X"$as_dir" : 'X\(//\)$' \| \ | |
6285 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
6286 | $as_echo X"$as_dir" | | |
6287 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
6288 | s//\1/ | |
6289 | q | |
6290 | } | |
6291 | /^X\(\/\/\)[^/].*/{ | |
6292 | s//\1/ | |
6293 | q | |
6294 | } | |
6295 | /^X\(\/\/\)$/{ | |
6296 | s//\1/ | |
6297 | q | |
6298 | } | |
6299 | /^X\(\/\).*/{ | |
6300 | s//\1/ | |
6301 | q | |
6302 | } | |
6303 | s/.*/./; q'` | |
6304 | test -d "$as_dir" && break | |
6305 | done | |
6306 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
6307 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
9255ee31 | 6308 | |
81ecdfbb RW |
6309 | |
6310 | } # as_fn_mkdir_p | |
25ed0b71 | 6311 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 6312 | as_mkdir_p='mkdir -p "$as_dir"' |
9255ee31 | 6313 | else |
430b7832 | 6314 | test -d ./-p && rmdir ./-p |
25ed0b71 | 6315 | as_mkdir_p=false |
9255ee31 EZ |
6316 | fi |
6317 | ||
81ecdfbb RW |
6318 | if test -x / >/dev/null 2>&1; then |
6319 | as_test_x='test -x' | |
6320 | else | |
6321 | if ls -dL / >/dev/null 2>&1; then | |
6322 | as_ls_L_option=L | |
6323 | else | |
6324 | as_ls_L_option= | |
6325 | fi | |
6326 | as_test_x=' | |
6327 | eval sh -c '\'' | |
6328 | if test -d "$1"; then | |
6329 | test -d "$1/."; | |
6330 | else | |
6331 | case $1 in #( | |
6332 | -*)set "./$1";; | |
6333 | esac; | |
6334 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
6335 | ???[sx]*):;;*)false;;esac;fi | |
6336 | '\'' sh | |
6337 | ' | |
6338 | fi | |
6339 | as_executable_p=$as_test_x | |
25ed0b71 KW |
6340 | |
6341 | # Sed expression to map a string onto a valid CPP name. | |
430b7832 | 6342 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
25ed0b71 KW |
6343 | |
6344 | # Sed expression to map a string onto a valid variable name. | |
430b7832 | 6345 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
25ed0b71 | 6346 | |
9255ee31 | 6347 | |
9255ee31 | 6348 | exec 6>&1 |
81ecdfbb RW |
6349 | ## ----------------------------------- ## |
6350 | ## Main body of $CONFIG_STATUS script. ## | |
6351 | ## ----------------------------------- ## | |
6352 | _ASEOF | |
6353 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
9255ee31 | 6354 | |
81ecdfbb RW |
6355 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6356 | # Save the log message, to keep $0 and so on meaningful, and to | |
25ed0b71 | 6357 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
6358 | # values after options handling. |
6359 | ac_log=" | |
5bdf8622 | 6360 | This file was extended by readline $as_me 5.1-release, which was |
81ecdfbb | 6361 | generated by GNU Autoconf 2.64. Invocation command line was |
25ed0b71 KW |
6362 | |
6363 | CONFIG_FILES = $CONFIG_FILES | |
6364 | CONFIG_HEADERS = $CONFIG_HEADERS | |
6365 | CONFIG_LINKS = $CONFIG_LINKS | |
6366 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
6367 | $ $0 $@ | |
6368 | ||
81ecdfbb RW |
6369 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
6370 | " | |
6371 | ||
9255ee31 EZ |
6372 | _ACEOF |
6373 | ||
81ecdfbb RW |
6374 | case $ac_config_files in *" |
6375 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
6376 | esac | |
9255ee31 | 6377 | |
81ecdfbb RW |
6378 | case $ac_config_headers in *" |
6379 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
6380 | esac | |
9255ee31 | 6381 | |
9255ee31 | 6382 | |
81ecdfbb RW |
6383 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6384 | # Files that config.status was made for. | |
6385 | config_files="$ac_config_files" | |
6386 | config_headers="$ac_config_headers" | |
6387 | config_commands="$ac_config_commands" | |
9255ee31 | 6388 | |
81ecdfbb | 6389 | _ACEOF |
9255ee31 | 6390 | |
81ecdfbb | 6391 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9255ee31 | 6392 | ac_cs_usage="\ |
81ecdfbb RW |
6393 | \`$as_me' instantiates files and other configuration actions |
6394 | from templates according to the current configuration. Unless the files | |
6395 | and actions are specified as TAGs, all are instantiated by default. | |
9255ee31 | 6396 | |
81ecdfbb | 6397 | Usage: $0 [OPTION]... [TAG]... |
9255ee31 EZ |
6398 | |
6399 | -h, --help print this help, then exit | |
81ecdfbb RW |
6400 | -V, --version print version number and configuration settings, then exit |
6401 | -q, --quiet, --silent | |
6402 | do not print progress messages | |
9255ee31 EZ |
6403 | -d, --debug don't remove temporary files |
6404 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
6405 | --file=FILE[:TEMPLATE] |
6406 | instantiate the configuration file FILE | |
6407 | --header=FILE[:TEMPLATE] | |
6408 | instantiate the configuration header FILE | |
9255ee31 EZ |
6409 | |
6410 | Configuration files: | |
6411 | $config_files | |
6412 | ||
6413 | Configuration headers: | |
6414 | $config_headers | |
6415 | ||
6416 | Configuration commands: | |
6417 | $config_commands | |
6418 | ||
81ecdfbb | 6419 | Report bugs to <bug-readline@gnu.org>." |
9255ee31 | 6420 | |
81ecdfbb RW |
6421 | _ACEOF |
6422 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9255ee31 | 6423 | ac_cs_version="\\ |
5bdf8622 | 6424 | readline config.status 5.1-release |
81ecdfbb RW |
6425 | configured by $0, generated by GNU Autoconf 2.64, |
6426 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
9255ee31 | 6427 | |
81ecdfbb | 6428 | Copyright (C) 2009 Free Software Foundation, Inc. |
9255ee31 EZ |
6429 | This config.status script is free software; the Free Software Foundation |
6430 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
6431 | |
6432 | ac_pwd='$ac_pwd' | |
6433 | srcdir='$srcdir' | |
6434 | INSTALL='$INSTALL' | |
6435 | test -n "\$AWK" || AWK=awk | |
25ed0b71 | 6436 | _ACEOF |
9255ee31 | 6437 | |
81ecdfbb RW |
6438 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6439 | # The default lists apply if the user does not specify any file. | |
9255ee31 EZ |
6440 | ac_need_defaults=: |
6441 | while test $# != 0 | |
d60d9f65 | 6442 | do |
9255ee31 EZ |
6443 | case $1 in |
6444 | --*=*) | |
81ecdfbb RW |
6445 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
6446 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
25ed0b71 KW |
6447 | ac_shift=: |
6448 | ;; | |
81ecdfbb | 6449 | *) |
25ed0b71 KW |
6450 | ac_option=$1 |
6451 | ac_optarg=$2 | |
6452 | ac_shift=shift | |
9255ee31 | 6453 | ;; |
9255ee31 EZ |
6454 | esac |
6455 | ||
25ed0b71 | 6456 | case $ac_option in |
9255ee31 | 6457 | # Handling of the options. |
d60d9f65 | 6458 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
25ed0b71 | 6459 | ac_cs_recheck=: ;; |
81ecdfbb RW |
6460 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
6461 | $as_echo "$ac_cs_version"; exit ;; | |
6462 | --debug | --debu | --deb | --de | --d | -d ) | |
9255ee31 EZ |
6463 | debug=: ;; |
6464 | --file | --fil | --fi | --f ) | |
25ed0b71 | 6465 | $ac_shift |
81ecdfbb RW |
6466 | case $ac_optarg in |
6467 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6468 | esac | |
6469 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
9255ee31 EZ |
6470 | ac_need_defaults=false;; |
6471 | --header | --heade | --head | --hea ) | |
25ed0b71 | 6472 | $ac_shift |
81ecdfbb RW |
6473 | case $ac_optarg in |
6474 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6475 | esac | |
6476 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
9255ee31 | 6477 | ac_need_defaults=false;; |
81ecdfbb RW |
6478 | --he | --h) |
6479 | # Conflict between --help and --header | |
6480 | as_fn_error "ambiguous option: \`$1' | |
6481 | Try \`$0 --help' for more information.";; | |
6482 | --help | --hel | -h ) | |
6483 | $as_echo "$ac_cs_usage"; exit ;; | |
25ed0b71 KW |
6484 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
6485 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
6486 | ac_cs_silent=: ;; | |
9255ee31 EZ |
6487 | |
6488 | # This is an error. | |
81ecdfbb RW |
6489 | -*) as_fn_error "unrecognized option: \`$1' |
6490 | Try \`$0 --help' for more information." ;; | |
9255ee31 | 6491 | |
81ecdfbb RW |
6492 | *) as_fn_append ac_config_targets " $1" |
6493 | ac_need_defaults=false ;; | |
9255ee31 | 6494 | |
d60d9f65 | 6495 | esac |
9255ee31 | 6496 | shift |
d60d9f65 SS |
6497 | done |
6498 | ||
25ed0b71 | 6499 | ac_configure_extra_args= |
9255ee31 | 6500 | |
25ed0b71 KW |
6501 | if $ac_cs_silent; then |
6502 | exec 6>/dev/null | |
6503 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
6504 | fi | |
9255ee31 | 6505 | |
25ed0b71 | 6506 | _ACEOF |
81ecdfbb | 6507 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
25ed0b71 | 6508 | if \$ac_cs_recheck; then |
81ecdfbb RW |
6509 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
6510 | shift | |
6511 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
6512 | CONFIG_SHELL='$SHELL' | |
6513 | export CONFIG_SHELL | |
6514 | exec "\$@" | |
25ed0b71 | 6515 | fi |
d60d9f65 | 6516 | |
9255ee31 | 6517 | _ACEOF |
81ecdfbb RW |
6518 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6519 | exec 5>>config.log | |
6520 | { | |
6521 | echo | |
6522 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
6523 | ## Running $as_me. ## | |
6524 | _ASBOX | |
6525 | $as_echo "$ac_log" | |
6526 | } >&5 | |
d60d9f65 | 6527 | |
81ecdfbb RW |
6528 | _ACEOF |
6529 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6530 | _ACEOF | |
25ed0b71 | 6531 | |
81ecdfbb | 6532 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
25ed0b71 | 6533 | |
81ecdfbb | 6534 | # Handling of arguments. |
9255ee31 EZ |
6535 | for ac_config_target in $ac_config_targets |
6536 | do | |
81ecdfbb RW |
6537 | case $ac_config_target in |
6538 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
6539 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
6540 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
6541 | "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; | |
6542 | "shlib/Makefile") CONFIG_FILES="$CONFIG_FILES shlib/Makefile" ;; | |
6543 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
6544 | ||
6545 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
9255ee31 EZ |
6546 | esac |
6547 | done | |
6548 | ||
81ecdfbb | 6549 | |
9255ee31 EZ |
6550 | # If the user did not use the arguments to specify the items to instantiate, |
6551 | # then the envvar interface is used. Set only those that are not. | |
6552 | # We use the long form for the default assignment because of an extremely | |
6553 | # bizarre bug on SunOS 4.1.3. | |
6554 | if $ac_need_defaults; then | |
6555 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
6556 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
6557 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
6558 | fi | |
6559 | ||
25ed0b71 | 6560 | # Have a temporary directory for convenience. Make it in the build tree |
81ecdfbb | 6561 | # simply because there is no reason against having it here, and in addition, |
25ed0b71 | 6562 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
6563 | # Hook for its removal unless debugging. |
6564 | # Note that there is a small window in which the directory will not be cleaned: | |
6565 | # after its creation but before its name has been assigned to `$tmp'. | |
9255ee31 EZ |
6566 | $debug || |
6567 | { | |
81ecdfbb RW |
6568 | tmp= |
6569 | trap 'exit_status=$? | |
6570 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
6571 | ' 0 | |
6572 | trap 'as_fn_exit 1' 1 2 13 15 | |
9255ee31 | 6573 | } |
9255ee31 | 6574 | # Create a (secure) tmp directory for tmp files. |
25ed0b71 | 6575 | |
9255ee31 | 6576 | { |
81ecdfbb | 6577 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
9255ee31 EZ |
6578 | test -n "$tmp" && test -d "$tmp" |
6579 | } || | |
6580 | { | |
81ecdfbb RW |
6581 | tmp=./conf$$-$RANDOM |
6582 | (umask 077 && mkdir "$tmp") | |
6583 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
6584 | ||
6585 | # Set up the scripts for CONFIG_FILES section. | |
6586 | # No need to generate them if there are no CONFIG_FILES. | |
6587 | # This happens for instance with `./config.status config.h'. | |
6588 | if test -n "$CONFIG_FILES"; then | |
6589 | ||
6590 | ||
6591 | ac_cr=`echo X | tr X '\015'` | |
6592 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
6593 | # But we know of no other shell where ac_cr would be empty at this | |
6594 | # point, so we can use a bashism as a fallback. | |
6595 | if test "x$ac_cr" = x; then | |
6596 | eval ac_cr=\$\'\\r\' | |
6597 | fi | |
6598 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
6599 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
6600 | ac_cs_awk_cr='\r' | |
6601 | else | |
6602 | ac_cs_awk_cr=$ac_cr | |
6603 | fi | |
6604 | ||
6605 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
6606 | _ACEOF | |
6607 | ||
6608 | ||
9255ee31 | 6609 | { |
81ecdfbb RW |
6610 | echo "cat >conf$$subs.awk <<_ACEOF" && |
6611 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
6612 | echo "_ACEOF" | |
6613 | } >conf$$subs.sh || | |
6614 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
6615 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
6616 | ac_delim='%!_!# ' | |
6617 | for ac_last_try in false false false false false :; do | |
6618 | . ./conf$$subs.sh || | |
6619 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
6620 | ||
6621 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
6622 | if test $ac_delim_n = $ac_delim_num; then | |
6623 | break | |
6624 | elif $ac_last_try; then | |
6625 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
6626 | else | |
6627 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
6628 | fi | |
6629 | done | |
6630 | rm -f conf$$subs.sh | |
6631 | ||
6632 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6633 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
6634 | _ACEOF | |
6635 | sed -n ' | |
6636 | h | |
6637 | s/^/S["/; s/!.*/"]=/ | |
6638 | p | |
6639 | g | |
6640 | s/^[^!]*!// | |
6641 | :repl | |
6642 | t repl | |
6643 | s/'"$ac_delim"'$// | |
6644 | t delim | |
6645 | :nl | |
6646 | h | |
6647 | s/\(.\{148\}\).*/\1/ | |
6648 | t more1 | |
6649 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
6650 | p | |
6651 | n | |
6652 | b repl | |
6653 | :more1 | |
6654 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
6655 | p | |
6656 | g | |
6657 | s/.\{148\}// | |
6658 | t nl | |
6659 | :delim | |
6660 | h | |
6661 | s/\(.\{148\}\).*/\1/ | |
6662 | t more2 | |
6663 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
6664 | p | |
6665 | b | |
6666 | :more2 | |
6667 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
6668 | p | |
6669 | g | |
6670 | s/.\{148\}// | |
6671 | t delim | |
6672 | ' <conf$$subs.awk | sed ' | |
6673 | /^[^""]/{ | |
6674 | N | |
6675 | s/\n// | |
9255ee31 | 6676 | } |
81ecdfbb RW |
6677 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
6678 | rm -f conf$$subs.awk | |
6679 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6680 | _ACAWK | |
6681 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
6682 | for (key in S) S_is_set[key] = 1 | |
6683 | FS = "\a" | |
d60d9f65 | 6684 | |
81ecdfbb RW |
6685 | } |
6686 | { | |
6687 | line = $ 0 | |
6688 | nfields = split(line, field, "@") | |
6689 | substed = 0 | |
6690 | len = length(field[1]) | |
6691 | for (i = 2; i < nfields; i++) { | |
6692 | key = field[i] | |
6693 | keylen = length(key) | |
6694 | if (S_is_set[key]) { | |
6695 | value = S[key] | |
6696 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
6697 | len += length(value) + length(field[++i]) | |
6698 | substed = 1 | |
6699 | } else | |
6700 | len += 1 + keylen | |
6701 | } | |
d60d9f65 | 6702 | |
81ecdfbb RW |
6703 | print line |
6704 | } | |
d60d9f65 | 6705 | |
81ecdfbb RW |
6706 | _ACAWK |
6707 | _ACEOF | |
6708 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6709 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
6710 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
6711 | else | |
6712 | cat | |
6713 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
6714 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
6715 | _ACEOF | |
6716 | ||
6717 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
6718 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
6719 | # trailing colons and then remove the whole line if VPATH becomes empty | |
6720 | # (actually we leave an empty line to preserve line numbers). | |
6721 | if test "x$srcdir" = x.; then | |
6722 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
6723 | s/:*\$(srcdir):*/:/ | |
6724 | s/:*\${srcdir}:*/:/ | |
6725 | s/:*@srcdir@:*/:/ | |
6726 | s/^\([^=]*=[ ]*\):*/\1/ | |
6727 | s/:*$// | |
6728 | s/^[^=]*=[ ]*$// | |
6729 | }' | |
6730 | fi | |
9255ee31 | 6731 | |
81ecdfbb RW |
6732 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6733 | fi # test -n "$CONFIG_FILES" | |
9255ee31 | 6734 | |
81ecdfbb RW |
6735 | # Set up the scripts for CONFIG_HEADERS section. |
6736 | # No need to generate them if there are no CONFIG_HEADERS. | |
6737 | # This happens for instance with `./config.status Makefile'. | |
6738 | if test -n "$CONFIG_HEADERS"; then | |
6739 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
6740 | BEGIN { | |
25ed0b71 | 6741 | _ACEOF |
9255ee31 | 6742 | |
81ecdfbb RW |
6743 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
6744 | # here-document in config.status, that substitutes the proper values into | |
6745 | # config.h.in to produce config.h. | |
6746 | ||
6747 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
6748 | # handling of long lines. | |
6749 | ac_delim='%!_!# ' | |
6750 | for ac_last_try in false false :; do | |
6751 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
6752 | if test -z "$ac_t"; then | |
6753 | break | |
6754 | elif $ac_last_try; then | |
6755 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
6756 | else | |
6757 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
d60d9f65 | 6758 | fi |
81ecdfbb | 6759 | done |
d60d9f65 | 6760 | |
81ecdfbb RW |
6761 | # For the awk script, D is an array of macro values keyed by name, |
6762 | # likewise P contains macro parameters if any. Preserve backslash | |
6763 | # newline sequences. | |
6764 | ||
6765 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
6766 | sed -n ' | |
6767 | s/.\{148\}/&'"$ac_delim"'/g | |
6768 | t rset | |
6769 | :rset | |
6770 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
6771 | t def | |
6772 | d | |
6773 | :def | |
6774 | s/\\$// | |
6775 | t bsnl | |
6776 | s/["\\]/\\&/g | |
6777 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
6778 | D["\1"]=" \3"/p | |
6779 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
6780 | d | |
6781 | :bsnl | |
6782 | s/["\\]/\\&/g | |
6783 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
6784 | D["\1"]=" \3\\\\\\n"\\/p | |
6785 | t cont | |
6786 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
6787 | t cont | |
6788 | d | |
6789 | :cont | |
6790 | n | |
6791 | s/.\{148\}/&'"$ac_delim"'/g | |
6792 | t clear | |
6793 | :clear | |
6794 | s/\\$// | |
6795 | t bsnlc | |
6796 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
6797 | d | |
6798 | :bsnlc | |
6799 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
6800 | b cont | |
6801 | ' <confdefs.h | sed ' | |
6802 | s/'"$ac_delim"'/"\\\ | |
6803 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
6804 | ||
6805 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6806 | for (key in D) D_is_set[key] = 1 | |
6807 | FS = "\a" | |
6808 | } | |
6809 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
6810 | line = \$ 0 | |
6811 | split(line, arg, " ") | |
6812 | if (arg[1] == "#") { | |
6813 | defundef = arg[2] | |
6814 | mac1 = arg[3] | |
6815 | } else { | |
6816 | defundef = substr(arg[1], 2) | |
6817 | mac1 = arg[2] | |
6818 | } | |
6819 | split(mac1, mac2, "(") #) | |
6820 | macro = mac2[1] | |
6821 | prefix = substr(line, 1, index(line, defundef) - 1) | |
6822 | if (D_is_set[macro]) { | |
6823 | # Preserve the white space surrounding the "#". | |
6824 | print prefix "define", macro P[macro] D[macro] | |
6825 | next | |
6826 | } else { | |
6827 | # Replace #undef with comments. This is necessary, for example, | |
6828 | # in the case of _POSIX_SOURCE, which is predefined and required | |
6829 | # on some systems where configure will not decide to define it. | |
6830 | if (defundef == "undef") { | |
6831 | print "/*", prefix defundef, macro, "*/" | |
6832 | next | |
6833 | } | |
6834 | } | |
6835 | } | |
6836 | { print } | |
6837 | _ACAWK | |
25ed0b71 | 6838 | _ACEOF |
81ecdfbb RW |
6839 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6840 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
6841 | fi # test -n "$CONFIG_HEADERS" | |
6842 | ||
6843 | ||
6844 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
6845 | shift | |
6846 | for ac_tag | |
6847 | do | |
6848 | case $ac_tag in | |
6849 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
6850 | esac | |
6851 | case $ac_mode$ac_tag in | |
6852 | :[FHL]*:*);; | |
6853 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
6854 | :[FH]-) ac_tag=-:-;; | |
6855 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
6856 | esac | |
6857 | ac_save_IFS=$IFS | |
6858 | IFS=: | |
6859 | set x $ac_tag | |
6860 | IFS=$ac_save_IFS | |
6861 | shift | |
6862 | ac_file=$1 | |
6863 | shift | |
6864 | ||
6865 | case $ac_mode in | |
6866 | :L) ac_source=$1;; | |
6867 | :[FH]) | |
6868 | ac_file_inputs= | |
6869 | for ac_f | |
6870 | do | |
6871 | case $ac_f in | |
6872 | -) ac_f="$tmp/stdin";; | |
6873 | *) # Look for the file first in the build tree, then in the source tree | |
6874 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
6875 | # because $ac_f cannot contain `:'. | |
6876 | test -f "$ac_f" || | |
6877 | case $ac_f in | |
6878 | [\\/$]*) false;; | |
6879 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
6880 | esac || | |
6881 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
6882 | esac | |
6883 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
6884 | as_fn_append ac_file_inputs " '$ac_f'" | |
6885 | done | |
6886 | ||
6887 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
6888 | # use $as_me), people would be surprised to read: | |
6889 | # /* config.h. Generated by config.status. */ | |
6890 | configure_input='Generated from '` | |
6891 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
6892 | `' by configure.' | |
6893 | if test x"$ac_file" != x-; then | |
6894 | configure_input="$ac_file. $configure_input" | |
6895 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
6896 | $as_echo "$as_me: creating $ac_file" >&6;} | |
6897 | fi | |
6898 | # Neutralize special characters interpreted by sed in replacement strings. | |
6899 | case $configure_input in #( | |
6900 | *\&* | *\|* | *\\* ) | |
6901 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
6902 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
6903 | *) ac_sed_conf_input=$configure_input;; | |
6904 | esac | |
6905 | ||
6906 | case $ac_tag in | |
6907 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
6908 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
6909 | esac | |
6910 | ;; | |
d60d9f65 SS |
6911 | esac |
6912 | ||
81ecdfbb | 6913 | ac_dir=`$as_dirname -- "$ac_file" || |
25ed0b71 | 6914 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
430b7832 MM |
6915 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
6916 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
6917 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
6918 | $as_echo X"$ac_file" | | |
6919 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
6920 | s//\1/ | |
6921 | q | |
6922 | } | |
6923 | /^X\(\/\/\)[^/].*/{ | |
6924 | s//\1/ | |
6925 | q | |
6926 | } | |
6927 | /^X\(\/\/\)$/{ | |
6928 | s//\1/ | |
6929 | q | |
6930 | } | |
6931 | /^X\(\/\).*/{ | |
6932 | s//\1/ | |
6933 | q | |
6934 | } | |
6935 | s/.*/./; q'` | |
6936 | as_dir="$ac_dir"; as_fn_mkdir_p | |
25ed0b71 KW |
6937 | ac_builddir=. |
6938 | ||
81ecdfbb RW |
6939 | case "$ac_dir" in |
6940 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
6941 | *) | |
6942 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
6943 | # A ".." for each directory in $ac_dir_suffix. | |
6944 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
6945 | case $ac_top_builddir_sub in | |
6946 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
6947 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
6948 | esac ;; | |
6949 | esac | |
6950 | ac_abs_top_builddir=$ac_pwd | |
6951 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
6952 | # for backward compatibility: | |
6953 | ac_top_builddir=$ac_top_build_prefix | |
25ed0b71 KW |
6954 | |
6955 | case $srcdir in | |
81ecdfbb | 6956 | .) # We are building in place. |
25ed0b71 | 6957 | ac_srcdir=. |
81ecdfbb RW |
6958 | ac_top_srcdir=$ac_top_builddir_sub |
6959 | ac_abs_top_srcdir=$ac_pwd ;; | |
6960 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
25ed0b71 | 6961 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
6962 | ac_top_srcdir=$srcdir |
6963 | ac_abs_top_srcdir=$srcdir ;; | |
6964 | *) # Relative name. | |
6965 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
6966 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
6967 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
25ed0b71 | 6968 | esac |
81ecdfbb | 6969 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
430b7832 | 6970 | |
25ed0b71 | 6971 | |
81ecdfbb RW |
6972 | case $ac_mode in |
6973 | :F) | |
6974 | # | |
6975 | # CONFIG_FILE | |
6976 | # | |
d60d9f65 | 6977 | |
9255ee31 EZ |
6978 | case $INSTALL in |
6979 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 6980 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
d60d9f65 | 6981 | esac |
81ecdfbb | 6982 | _ACEOF |
d60d9f65 | 6983 | |
81ecdfbb RW |
6984 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6985 | # If the template does not know about datarootdir, expand it. | |
6986 | # FIXME: This hack should be removed a few years after 2.60. | |
6987 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
6988 | ac_sed_dataroot=' | |
6989 | /datarootdir/ { | |
6990 | p | |
6991 | q | |
6992 | } | |
6993 | /@datadir@/p | |
6994 | /@docdir@/p | |
6995 | /@infodir@/p | |
6996 | /@localedir@/p | |
6997 | /@mandir@/p' | |
6998 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
6999 | *datarootdir*) ac_datarootdir_seen=yes;; | |
7000 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7001 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
7002 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
7003 | _ACEOF | |
7004 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7005 | ac_datarootdir_hack=' | |
7006 | s&@datadir@&$datadir&g | |
7007 | s&@docdir@&$docdir&g | |
7008 | s&@infodir@&$infodir&g | |
7009 | s&@localedir@&$localedir&g | |
7010 | s&@mandir@&$mandir&g | |
7011 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
7012 | esac | |
25ed0b71 | 7013 | _ACEOF |
81ecdfbb RW |
7014 | |
7015 | # Neutralize VPATH when `$srcdir' = `.'. | |
7016 | # Shell code in configure.ac might set extrasub. | |
7017 | # FIXME: do we really want to maintain this feature? | |
7018 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7019 | ac_sed_extra="$ac_vpsub | |
9255ee31 | 7020 | $extrasub |
25ed0b71 | 7021 | _ACEOF |
81ecdfbb | 7022 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9255ee31 EZ |
7023 | :t |
7024 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
7025 | s|@configure_input@|$ac_sed_conf_input|;t t |
7026 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
7027 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
7028 | s&@srcdir@&$ac_srcdir&;t t | |
7029 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
7030 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
7031 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
7032 | s&@builddir@&$ac_builddir&;t t | |
7033 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
7034 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
7035 | s&@INSTALL@&$ac_INSTALL&;t t | |
7036 | $ac_datarootdir_hack | |
7037 | " | |
7038 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
7039 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
7040 | ||
7041 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
7042 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
7043 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
7044 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
7045 | which seems to be undefined. Please make sure it is defined." >&5 | |
7046 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
7047 | which seems to be undefined. Please make sure it is defined." >&2;} | |
7048 | ||
7049 | rm -f "$tmp/stdin" | |
9255ee31 | 7050 | case $ac_file in |
81ecdfbb RW |
7051 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
7052 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
7053 | esac \ | |
7054 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
7055 | ;; | |
7056 | :H) | |
7057 | # | |
7058 | # CONFIG_HEADER | |
7059 | # | |
9255ee31 | 7060 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
7061 | { |
7062 | $as_echo "/* $configure_input */" \ | |
7063 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
7064 | } >"$tmp/config.h" \ | |
7065 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
7066 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
7067 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
7068 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
9255ee31 | 7069 | else |
81ecdfbb RW |
7070 | rm -f "$ac_file" |
7071 | mv "$tmp/config.h" "$ac_file" \ | |
7072 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
d60d9f65 | 7073 | fi |
9255ee31 | 7074 | else |
81ecdfbb RW |
7075 | $as_echo "/* $configure_input */" \ |
7076 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
7077 | || as_fn_error "could not create -" "$LINENO" 5 | |
d60d9f65 | 7078 | fi |
81ecdfbb | 7079 | ;; |
430b7832 | 7080 | |
81ecdfbb RW |
7081 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
7082 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
7083 | ;; | |
7084 | esac | |
25ed0b71 | 7085 | |
d60d9f65 | 7086 | |
81ecdfbb RW |
7087 | case $ac_file$ac_mode in |
7088 | "default":C) | |
d60d9f65 SS |
7089 | # Makefile uses this timestamp file to record whether config.h is up to date. |
7090 | echo > stamp-h | |
9255ee31 | 7091 | ;; |
81ecdfbb | 7092 | |
9255ee31 | 7093 | esac |
81ecdfbb | 7094 | done # for ac_tag |
d60d9f65 | 7095 | |
9255ee31 | 7096 | |
81ecdfbb | 7097 | as_fn_exit 0 |
25ed0b71 | 7098 | _ACEOF |
9255ee31 EZ |
7099 | ac_clean_files=$ac_clean_files_save |
7100 | ||
81ecdfbb RW |
7101 | test $ac_write_fail = 0 || |
7102 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
7103 | ||
25ed0b71 | 7104 | |
9255ee31 EZ |
7105 | # configure is writing to config.log, and then calls config.status. |
7106 | # config.status does its own redirection, appending to config.log. | |
7107 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7108 | # by configure, so config.status won't be able to write to it; its | |
7109 | # output is simply discarded. So we exec the FD to /dev/null, | |
7110 | # effectively closing config.log, so it can be properly (re)opened and | |
7111 | # appended to by config.status. When coming back to configure, we | |
7112 | # need to make the FD available again. | |
7113 | if test "$no_create" != yes; then | |
7114 | ac_cs_success=: | |
25ed0b71 KW |
7115 | ac_config_status_args= |
7116 | test "$silent" = yes && | |
7117 | ac_config_status_args="$ac_config_status_args --quiet" | |
9255ee31 | 7118 | exec 5>/dev/null |
25ed0b71 | 7119 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
9255ee31 EZ |
7120 | exec 5>>config.log |
7121 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7122 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
7123 | $ac_cs_success || as_fn_exit $? |
7124 | fi | |
7125 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
7126 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
7127 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
9255ee31 | 7128 | fi |
d60d9f65 | 7129 |