Commit | Line | Data |
---|---|---|
d60d9f65 | 1 | #! /bin/sh |
5836a818 | 2 | # From configure.in for Readline 6.2, version 2.67. |
9255ee31 | 3 | # Guess values for system-dependent variables and create Makefiles. |
5836a818 | 4 | # Generated by GNU Autoconf 2.64 for readline 6.2. |
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' | |
5836a818 PP |
553 | PACKAGE_VERSION='6.2' |
554 | PACKAGE_STRING='readline 6.2' | |
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 | 595 | ac_subst_vars='LTLIBOBJS |
81ecdfbb RW |
596 | TERMCAP_LIB |
597 | LIBVERSION | |
598 | ARFLAGS | |
599 | LOCAL_DEFS | |
600 | LOCAL_LDFLAGS | |
601 | LOCAL_CFLAGS | |
602 | BUILD_DIR | |
603 | PURIFY | |
604 | SHARED_INSTALL_TARGET | |
605 | STATIC_INSTALL_TARGET | |
606 | SHARED_TARGET | |
607 | STATIC_TARGET | |
608 | SHLIB_MINOR | |
609 | SHLIB_MAJOR | |
610 | SHLIB_LIBS | |
611 | SHLIB_DLLVERSION | |
612 | SHLIB_LIBVERSION | |
613 | SHLIB_LIBSUFF | |
614 | SHLIB_LIBPREF | |
615 | SHLIB_DOT | |
616 | SHLIB_XLDFLAGS | |
617 | SHLIB_STATUS | |
618 | SHOBJ_STATUS | |
619 | SHOBJ_LIBS | |
620 | SHOBJ_XLDFLAGS | |
621 | SHOBJ_LDFLAGS | |
622 | SHOBJ_LD | |
623 | SHOBJ_CFLAGS | |
624 | SHOBJ_CC | |
cc88a640 | 625 | LIBOBJS |
81ecdfbb RW |
626 | MAKE_SHELL |
627 | RANLIB | |
628 | AR | |
629 | INSTALL_DATA | |
630 | INSTALL_SCRIPT | |
631 | INSTALL_PROGRAM | |
81ecdfbb RW |
632 | EGREP |
633 | GREP | |
634 | CPP | |
635 | OBJEXT | |
636 | EXEEXT | |
637 | ac_ct_CC | |
638 | CPPFLAGS | |
639 | LDFLAGS | |
640 | CFLAGS | |
641 | CC | |
642 | SET_MAKE | |
643 | CROSS_COMPILE | |
644 | host_os | |
645 | host_vendor | |
646 | host_cpu | |
647 | host | |
648 | build_os | |
649 | build_vendor | |
650 | build_cpu | |
651 | build | |
652 | target_alias | |
653 | host_alias | |
654 | build_alias | |
655 | LIBS | |
656 | ECHO_T | |
657 | ECHO_N | |
658 | ECHO_C | |
659 | DEFS | |
660 | mandir | |
661 | localedir | |
662 | libdir | |
663 | psdir | |
664 | pdfdir | |
665 | dvidir | |
666 | htmldir | |
667 | infodir | |
668 | docdir | |
669 | oldincludedir | |
670 | includedir | |
671 | localstatedir | |
672 | sharedstatedir | |
673 | sysconfdir | |
674 | datadir | |
675 | datarootdir | |
676 | libexecdir | |
677 | sbindir | |
678 | bindir | |
679 | program_transform_name | |
680 | prefix | |
681 | exec_prefix | |
682 | PACKAGE_URL | |
683 | PACKAGE_BUGREPORT | |
684 | PACKAGE_STRING | |
685 | PACKAGE_VERSION | |
686 | PACKAGE_TARNAME | |
687 | PACKAGE_NAME | |
688 | PATH_SEPARATOR | |
689 | SHELL' | |
25ed0b71 | 690 | ac_subst_files='' |
81ecdfbb RW |
691 | ac_user_opts=' |
692 | enable_option_checking | |
693 | with_curses | |
694 | with_purify | |
695 | enable_multibyte | |
696 | enable_static | |
cc88a640 | 697 | enable_largefile |
81ecdfbb RW |
698 | ' |
699 | ac_precious_vars='build_alias | |
700 | host_alias | |
701 | target_alias | |
702 | CC | |
703 | CFLAGS | |
704 | LDFLAGS | |
705 | LIBS | |
706 | CPPFLAGS | |
707 | CPP' | |
708 | ||
25ed0b71 | 709 | |
d60d9f65 | 710 | # Initialize some variables set by options. |
9255ee31 EZ |
711 | ac_init_help= |
712 | ac_init_version=false | |
81ecdfbb RW |
713 | ac_unrecognized_opts= |
714 | ac_unrecognized_sep= | |
d60d9f65 SS |
715 | # The variables have the same names as the options, with |
716 | # dashes changed to underlines. | |
9255ee31 | 717 | cache_file=/dev/null |
d60d9f65 | 718 | exec_prefix=NONE |
d60d9f65 | 719 | no_create= |
d60d9f65 SS |
720 | no_recursion= |
721 | prefix=NONE | |
722 | program_prefix=NONE | |
723 | program_suffix=NONE | |
724 | program_transform_name=s,x,x, | |
725 | silent= | |
726 | site= | |
727 | srcdir= | |
d60d9f65 SS |
728 | verbose= |
729 | x_includes=NONE | |
730 | x_libraries=NONE | |
9255ee31 EZ |
731 | |
732 | # Installation directory options. | |
733 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
734 | # and all the variables that are supposed to be based on exec_prefix | |
735 | # by default will actually change. | |
736 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 737 | # (The list follows the same order as the GNU Coding Standards.) |
d60d9f65 SS |
738 | bindir='${exec_prefix}/bin' |
739 | sbindir='${exec_prefix}/sbin' | |
740 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
741 | datarootdir='${prefix}/share' |
742 | datadir='${datarootdir}' | |
d60d9f65 SS |
743 | sysconfdir='${prefix}/etc' |
744 | sharedstatedir='${prefix}/com' | |
745 | localstatedir='${prefix}/var' | |
d60d9f65 SS |
746 | includedir='${prefix}/include' |
747 | oldincludedir='/usr/include' | |
81ecdfbb RW |
748 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
749 | infodir='${datarootdir}/info' | |
750 | htmldir='${docdir}' | |
751 | dvidir='${docdir}' | |
752 | pdfdir='${docdir}' | |
753 | psdir='${docdir}' | |
754 | libdir='${exec_prefix}/lib' | |
755 | localedir='${datarootdir}/locale' | |
756 | mandir='${datarootdir}/man' | |
d60d9f65 | 757 | |
d60d9f65 | 758 | ac_prev= |
81ecdfbb | 759 | ac_dashdash= |
d60d9f65 SS |
760 | for ac_option |
761 | do | |
d60d9f65 SS |
762 | # If the previous option needs an argument, assign it. |
763 | if test -n "$ac_prev"; then | |
81ecdfbb | 764 | eval $ac_prev=\$ac_option |
d60d9f65 SS |
765 | ac_prev= |
766 | continue | |
767 | fi | |
768 | ||
81ecdfbb RW |
769 | case $ac_option in |
770 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
771 | *) ac_optarg=yes ;; | |
772 | esac | |
d60d9f65 SS |
773 | |
774 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
775 | ||
81ecdfbb RW |
776 | case $ac_dashdash$ac_option in |
777 | --) | |
778 | ac_dashdash=yes ;; | |
d60d9f65 SS |
779 | |
780 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
781 | ac_prev=bindir ;; | |
782 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
9255ee31 | 783 | bindir=$ac_optarg ;; |
d60d9f65 SS |
784 | |
785 | -build | --build | --buil | --bui | --bu) | |
9255ee31 | 786 | ac_prev=build_alias ;; |
d60d9f65 | 787 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
9255ee31 | 788 | build_alias=$ac_optarg ;; |
d60d9f65 SS |
789 | |
790 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
791 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
792 | ac_prev=cache_file ;; | |
793 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
794 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
9255ee31 EZ |
795 | cache_file=$ac_optarg ;; |
796 | ||
797 | --config-cache | -C) | |
798 | cache_file=config.cache ;; | |
d60d9f65 | 799 | |
81ecdfbb | 800 | -datadir | --datadir | --datadi | --datad) |
d60d9f65 | 801 | ac_prev=datadir ;; |
81ecdfbb | 802 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
9255ee31 | 803 | datadir=$ac_optarg ;; |
d60d9f65 | 804 | |
81ecdfbb RW |
805 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
806 | | --dataroo | --dataro | --datar) | |
807 | ac_prev=datarootdir ;; | |
808 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
809 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
810 | datarootdir=$ac_optarg ;; | |
811 | ||
d60d9f65 | 812 | -disable-* | --disable-*) |
81ecdfbb | 813 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d60d9f65 | 814 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
815 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
816 | as_fn_error "invalid feature name: $ac_useropt" | |
817 | ac_useropt_orig=$ac_useropt | |
818 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
819 | case $ac_user_opts in | |
820 | *" | |
821 | "enable_$ac_useropt" | |
822 | "*) ;; | |
823 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
824 | ac_unrecognized_sep=', ';; | |
825 | esac | |
826 | eval enable_$ac_useropt=no ;; | |
827 | ||
828 | -docdir | --docdir | --docdi | --doc | --do) | |
829 | ac_prev=docdir ;; | |
830 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
831 | docdir=$ac_optarg ;; | |
832 | ||
833 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
834 | ac_prev=dvidir ;; | |
835 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
836 | dvidir=$ac_optarg ;; | |
d60d9f65 SS |
837 | |
838 | -enable-* | --enable-*) | |
81ecdfbb | 839 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d60d9f65 | 840 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
841 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
842 | as_fn_error "invalid feature name: $ac_useropt" | |
843 | ac_useropt_orig=$ac_useropt | |
844 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
845 | case $ac_user_opts in | |
846 | *" | |
847 | "enable_$ac_useropt" | |
848 | "*) ;; | |
849 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
850 | ac_unrecognized_sep=', ';; | |
d60d9f65 | 851 | esac |
81ecdfbb | 852 | eval enable_$ac_useropt=\$ac_optarg ;; |
d60d9f65 SS |
853 | |
854 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
855 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
856 | | --exec | --exe | --ex) | |
857 | ac_prev=exec_prefix ;; | |
858 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
859 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
860 | | --exec=* | --exe=* | --ex=*) | |
9255ee31 | 861 | exec_prefix=$ac_optarg ;; |
d60d9f65 SS |
862 | |
863 | -gas | --gas | --ga | --g) | |
864 | # Obsolete; use --with-gas. | |
865 | with_gas=yes ;; | |
866 | ||
9255ee31 EZ |
867 | -help | --help | --hel | --he | -h) |
868 | ac_init_help=long ;; | |
869 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
870 | ac_init_help=recursive ;; | |
871 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
872 | ac_init_help=short ;; | |
d60d9f65 SS |
873 | |
874 | -host | --host | --hos | --ho) | |
9255ee31 | 875 | ac_prev=host_alias ;; |
d60d9f65 | 876 | -host=* | --host=* | --hos=* | --ho=*) |
9255ee31 | 877 | host_alias=$ac_optarg ;; |
d60d9f65 | 878 | |
81ecdfbb RW |
879 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
880 | ac_prev=htmldir ;; | |
881 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
882 | | --ht=*) | |
883 | htmldir=$ac_optarg ;; | |
884 | ||
d60d9f65 SS |
885 | -includedir | --includedir | --includedi | --included | --include \ |
886 | | --includ | --inclu | --incl | --inc) | |
887 | ac_prev=includedir ;; | |
888 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
889 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
9255ee31 | 890 | includedir=$ac_optarg ;; |
d60d9f65 SS |
891 | |
892 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
893 | ac_prev=infodir ;; | |
894 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
9255ee31 | 895 | infodir=$ac_optarg ;; |
d60d9f65 SS |
896 | |
897 | -libdir | --libdir | --libdi | --libd) | |
898 | ac_prev=libdir ;; | |
899 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
9255ee31 | 900 | libdir=$ac_optarg ;; |
d60d9f65 SS |
901 | |
902 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
903 | | --libexe | --libex | --libe) | |
904 | ac_prev=libexecdir ;; | |
905 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
906 | | --libexe=* | --libex=* | --libe=*) | |
9255ee31 | 907 | libexecdir=$ac_optarg ;; |
d60d9f65 | 908 | |
81ecdfbb RW |
909 | -localedir | --localedir | --localedi | --localed | --locale) |
910 | ac_prev=localedir ;; | |
911 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
912 | localedir=$ac_optarg ;; | |
913 | ||
d60d9f65 | 914 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 915 | | --localstate | --localstat | --localsta | --localst | --locals) |
d60d9f65 SS |
916 | ac_prev=localstatedir ;; |
917 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 918 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
9255ee31 | 919 | localstatedir=$ac_optarg ;; |
d60d9f65 SS |
920 | |
921 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
922 | ac_prev=mandir ;; | |
923 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
9255ee31 | 924 | mandir=$ac_optarg ;; |
d60d9f65 SS |
925 | |
926 | -nfp | --nfp | --nf) | |
927 | # Obsolete; use --without-fp. | |
928 | with_fp=no ;; | |
929 | ||
930 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
25ed0b71 | 931 | | --no-cr | --no-c | -n) |
d60d9f65 SS |
932 | no_create=yes ;; |
933 | ||
934 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
935 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
936 | no_recursion=yes ;; | |
937 | ||
938 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
939 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
940 | | --oldin | --oldi | --old | --ol | --o) | |
941 | ac_prev=oldincludedir ;; | |
942 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
943 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
944 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
9255ee31 | 945 | oldincludedir=$ac_optarg ;; |
d60d9f65 SS |
946 | |
947 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
948 | ac_prev=prefix ;; | |
949 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
9255ee31 | 950 | prefix=$ac_optarg ;; |
d60d9f65 SS |
951 | |
952 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
953 | | --program-pre | --program-pr | --program-p) | |
954 | ac_prev=program_prefix ;; | |
955 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
956 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
9255ee31 | 957 | program_prefix=$ac_optarg ;; |
d60d9f65 SS |
958 | |
959 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
960 | | --program-suf | --program-su | --program-s) | |
961 | ac_prev=program_suffix ;; | |
962 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
963 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
9255ee31 | 964 | program_suffix=$ac_optarg ;; |
d60d9f65 SS |
965 | |
966 | -program-transform-name | --program-transform-name \ | |
967 | | --program-transform-nam | --program-transform-na \ | |
968 | | --program-transform-n | --program-transform- \ | |
969 | | --program-transform | --program-transfor \ | |
970 | | --program-transfo | --program-transf \ | |
971 | | --program-trans | --program-tran \ | |
972 | | --progr-tra | --program-tr | --program-t) | |
973 | ac_prev=program_transform_name ;; | |
974 | -program-transform-name=* | --program-transform-name=* \ | |
975 | | --program-transform-nam=* | --program-transform-na=* \ | |
976 | | --program-transform-n=* | --program-transform-=* \ | |
977 | | --program-transform=* | --program-transfor=* \ | |
978 | | --program-transfo=* | --program-transf=* \ | |
979 | | --program-trans=* | --program-tran=* \ | |
980 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
9255ee31 | 981 | program_transform_name=$ac_optarg ;; |
d60d9f65 | 982 | |
81ecdfbb RW |
983 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
984 | ac_prev=pdfdir ;; | |
985 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
986 | pdfdir=$ac_optarg ;; | |
987 | ||
988 | -psdir | --psdir | --psdi | --psd | --ps) | |
989 | ac_prev=psdir ;; | |
990 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
991 | psdir=$ac_optarg ;; | |
992 | ||
d60d9f65 SS |
993 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
994 | | -silent | --silent | --silen | --sile | --sil) | |
995 | silent=yes ;; | |
996 | ||
997 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
998 | ac_prev=sbindir ;; | |
999 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1000 | | --sbi=* | --sb=*) | |
9255ee31 | 1001 | sbindir=$ac_optarg ;; |
d60d9f65 SS |
1002 | |
1003 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1004 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1005 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1006 | | --sha | --sh) | |
1007 | ac_prev=sharedstatedir ;; | |
1008 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1009 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1010 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1011 | | --sha=* | --sh=*) | |
9255ee31 | 1012 | sharedstatedir=$ac_optarg ;; |
d60d9f65 SS |
1013 | |
1014 | -site | --site | --sit) | |
1015 | ac_prev=site ;; | |
1016 | -site=* | --site=* | --sit=*) | |
9255ee31 | 1017 | site=$ac_optarg ;; |
d60d9f65 SS |
1018 | |
1019 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1020 | ac_prev=srcdir ;; | |
1021 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
9255ee31 | 1022 | srcdir=$ac_optarg ;; |
d60d9f65 SS |
1023 | |
1024 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1025 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1026 | ac_prev=sysconfdir ;; | |
1027 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1028 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
9255ee31 | 1029 | sysconfdir=$ac_optarg ;; |
d60d9f65 SS |
1030 | |
1031 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
9255ee31 | 1032 | ac_prev=target_alias ;; |
d60d9f65 | 1033 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
9255ee31 | 1034 | target_alias=$ac_optarg ;; |
d60d9f65 SS |
1035 | |
1036 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1037 | verbose=yes ;; | |
1038 | ||
9255ee31 EZ |
1039 | -version | --version | --versio | --versi | --vers | -V) |
1040 | ac_init_version=: ;; | |
d60d9f65 SS |
1041 | |
1042 | -with-* | --with-*) | |
81ecdfbb | 1043 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d60d9f65 | 1044 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1045 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1046 | as_fn_error "invalid package name: $ac_useropt" | |
1047 | ac_useropt_orig=$ac_useropt | |
1048 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1049 | case $ac_user_opts in | |
1050 | *" | |
1051 | "with_$ac_useropt" | |
1052 | "*) ;; | |
1053 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1054 | ac_unrecognized_sep=', ';; | |
d60d9f65 | 1055 | esac |
81ecdfbb | 1056 | eval with_$ac_useropt=\$ac_optarg ;; |
d60d9f65 SS |
1057 | |
1058 | -without-* | --without-*) | |
81ecdfbb | 1059 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d60d9f65 | 1060 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1061 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1062 | as_fn_error "invalid package name: $ac_useropt" | |
1063 | ac_useropt_orig=$ac_useropt | |
1064 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1065 | case $ac_user_opts in | |
1066 | *" | |
1067 | "with_$ac_useropt" | |
1068 | "*) ;; | |
1069 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1070 | ac_unrecognized_sep=', ';; | |
1071 | esac | |
1072 | eval with_$ac_useropt=no ;; | |
d60d9f65 SS |
1073 | |
1074 | --x) | |
1075 | # Obsolete; use --with-x. | |
1076 | with_x=yes ;; | |
1077 | ||
1078 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1079 | | --x-incl | --x-inc | --x-in | --x-i) | |
1080 | ac_prev=x_includes ;; | |
1081 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1082 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
9255ee31 | 1083 | x_includes=$ac_optarg ;; |
d60d9f65 SS |
1084 | |
1085 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1086 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1087 | ac_prev=x_libraries ;; | |
1088 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1089 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
9255ee31 | 1090 | x_libraries=$ac_optarg ;; |
d60d9f65 | 1091 | |
81ecdfbb RW |
1092 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1093 | Try \`$0 --help' for more information." | |
d60d9f65 SS |
1094 | ;; |
1095 | ||
9255ee31 EZ |
1096 | *=*) |
1097 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1098 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1099 | case $ac_envvar in #( |
1100 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1101 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1102 | esac | |
1103 | eval $ac_envvar=\$ac_optarg | |
9255ee31 EZ |
1104 | export $ac_envvar ;; |
1105 | ||
d60d9f65 | 1106 | *) |
9255ee31 | 1107 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1108 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
9255ee31 | 1109 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1110 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
9255ee31 | 1111 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
d60d9f65 SS |
1112 | ;; |
1113 | ||
1114 | esac | |
1115 | done | |
1116 | ||
1117 | if test -n "$ac_prev"; then | |
9255ee31 | 1118 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1119 | as_fn_error "missing argument to $ac_option" |
d60d9f65 | 1120 | fi |
d60d9f65 | 1121 | |
81ecdfbb RW |
1122 | if test -n "$ac_unrecognized_opts"; then |
1123 | case $enable_option_checking in | |
1124 | no) ;; | |
1125 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1126 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
9255ee31 | 1127 | esac |
81ecdfbb | 1128 | fi |
d60d9f65 | 1129 | |
81ecdfbb RW |
1130 | # Check all directory arguments for consistency. |
1131 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1132 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1133 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1134 | libdir localedir mandir | |
d60d9f65 | 1135 | do |
81ecdfbb RW |
1136 | eval ac_val=\$$ac_var |
1137 | # Remove trailing slashes. | |
1138 | case $ac_val in | |
1139 | */ ) | |
1140 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1141 | eval $ac_var=\$ac_val;; | |
1142 | esac | |
1143 | # Be sure to have absolute directory names. | |
9255ee31 | 1144 | case $ac_val in |
81ecdfbb RW |
1145 | [\\/$]* | ?:[\\/]* ) continue;; |
1146 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d60d9f65 | 1147 | esac |
81ecdfbb | 1148 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
d60d9f65 SS |
1149 | done |
1150 | ||
9255ee31 EZ |
1151 | # There might be people who depend on the old broken behavior: `$host' |
1152 | # used to hold the argument of --host etc. | |
25ed0b71 | 1153 | # FIXME: To remove some day. |
9255ee31 EZ |
1154 | build=$build_alias |
1155 | host=$host_alias | |
1156 | target=$target_alias | |
1157 | ||
25ed0b71 | 1158 | # FIXME: To remove some day. |
9255ee31 EZ |
1159 | if test "x$host_alias" != x; then |
1160 | if test "x$build_alias" = x; then | |
1161 | cross_compiling=maybe | |
81ecdfbb | 1162 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
9255ee31 EZ |
1163 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1164 | elif test "x$build_alias" != "x$host_alias"; then | |
1165 | cross_compiling=yes | |
1166 | fi | |
1167 | fi | |
d60d9f65 | 1168 | |
9255ee31 EZ |
1169 | ac_tool_prefix= |
1170 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
d60d9f65 | 1171 | |
9255ee31 | 1172 | test "$silent" = yes && exec 6>/dev/null |
d60d9f65 | 1173 | |
25ed0b71 | 1174 | |
81ecdfbb RW |
1175 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1176 | ac_ls_di=`ls -di .` && | |
1177 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1178 | as_fn_error "working directory cannot be determined" | |
1179 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1180 | as_fn_error "pwd does not report name of working directory" | |
1181 | ||
1182 | ||
d60d9f65 SS |
1183 | # Find the source files, if location was not specified. |
1184 | if test -z "$srcdir"; then | |
1185 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1186 | # Try the directory containing this script, then the parent directory. |
1187 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1188 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1189 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1190 | X"$as_myself" : 'X\(//\)$' \| \ | |
1191 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1192 | $as_echo X"$as_myself" | | |
1193 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1194 | s//\1/ | |
1195 | q | |
1196 | } | |
1197 | /^X\(\/\/\)[^/].*/{ | |
1198 | s//\1/ | |
1199 | q | |
1200 | } | |
1201 | /^X\(\/\/\)$/{ | |
1202 | s//\1/ | |
1203 | q | |
1204 | } | |
1205 | /^X\(\/\).*/{ | |
1206 | s//\1/ | |
1207 | q | |
1208 | } | |
1209 | s/.*/./; q'` | |
d60d9f65 | 1210 | srcdir=$ac_confdir |
81ecdfbb | 1211 | if test ! -r "$srcdir/$ac_unique_file"; then |
d60d9f65 SS |
1212 | srcdir=.. |
1213 | fi | |
1214 | else | |
1215 | ac_srcdir_defaulted=no | |
1216 | fi | |
81ecdfbb RW |
1217 | if test ! -r "$srcdir/$ac_unique_file"; then |
1218 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1219 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1220 | fi | |
1221 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1222 | ac_abs_confdir=`( | |
1223 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1224 | pwd)` | |
1225 | # When building in place, set srcdir=. | |
1226 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1227 | srcdir=. | |
1228 | fi | |
1229 | # Remove unnecessary trailing slashes from srcdir. | |
1230 | # Double slashes in file names in object file debugging info | |
1231 | # mess up M-x gdb in Emacs. | |
1232 | case $srcdir in | |
1233 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1234 | esac | |
1235 | for ac_var in $ac_precious_vars; do | |
1236 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1237 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1238 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1239 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1240 | done | |
d60d9f65 | 1241 | |
9255ee31 EZ |
1242 | # |
1243 | # Report the --help message. | |
1244 | # | |
1245 | if test "$ac_init_help" = "long"; then | |
1246 | # Omit some internal or obsolete options to make the list less imposing. | |
1247 | # This message is too long to be a string in the A/UX 3.1 sh. | |
25ed0b71 | 1248 | cat <<_ACEOF |
5836a818 | 1249 | \`configure' configures readline 6.2 to adapt to many kinds of systems. |
d60d9f65 | 1250 | |
9255ee31 | 1251 | Usage: $0 [OPTION]... [VAR=VALUE]... |
d60d9f65 | 1252 | |
9255ee31 EZ |
1253 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1254 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
d60d9f65 | 1255 | |
9255ee31 | 1256 | Defaults for the options are specified in brackets. |
d60d9f65 | 1257 | |
9255ee31 EZ |
1258 | Configuration: |
1259 | -h, --help display this help and exit | |
1260 | --help=short display options specific to this package | |
1261 | --help=recursive display the short help of all the included packages | |
1262 | -V, --version display version information and exit | |
1263 | -q, --quiet, --silent do not print \`checking...' messages | |
1264 | --cache-file=FILE cache test results in FILE [disabled] | |
1265 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1266 | -n, --no-create do not create output files | |
1267 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
d60d9f65 | 1268 | |
9255ee31 EZ |
1269 | Installation directories: |
1270 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1271 | [$ac_default_prefix] |
9255ee31 | 1272 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1273 | [PREFIX] |
9255ee31 EZ |
1274 | |
1275 | By default, \`make install' will install all the files in | |
1276 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1277 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1278 | for instance \`--prefix=\$HOME'. | |
1279 | ||
1280 | For better control, use the options below. | |
1281 | ||
1282 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1283 | --bindir=DIR user executables [EPREFIX/bin] |
1284 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1285 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1286 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1287 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1288 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1289 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1290 | --includedir=DIR C header files [PREFIX/include] | |
1291 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1292 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1293 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1294 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1295 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1296 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1297 | --docdir=DIR documentation root [DATAROOTDIR/doc/readline] | |
1298 | --htmldir=DIR html documentation [DOCDIR] | |
1299 | --dvidir=DIR dvi documentation [DOCDIR] | |
1300 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1301 | --psdir=DIR ps documentation [DOCDIR] | |
25ed0b71 | 1302 | _ACEOF |
d60d9f65 | 1303 | |
25ed0b71 | 1304 | cat <<\_ACEOF |
d60d9f65 | 1305 | |
9255ee31 EZ |
1306 | System types: |
1307 | --build=BUILD configure for building on BUILD [guessed] | |
25ed0b71 KW |
1308 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1309 | _ACEOF | |
d60d9f65 | 1310 | fi |
d60d9f65 | 1311 | |
9255ee31 EZ |
1312 | if test -n "$ac_init_help"; then |
1313 | case $ac_init_help in | |
5836a818 | 1314 | short | recursive ) echo "Configuration of readline 6.2:";; |
9255ee31 | 1315 | esac |
25ed0b71 | 1316 | cat <<\_ACEOF |
d60d9f65 | 1317 | |
9255ee31 | 1318 | Optional Features: |
81ecdfbb | 1319 | --disable-option-checking ignore unrecognized --enable/--with options |
9255ee31 EZ |
1320 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1321 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
5bdf8622 | 1322 | --enable-multibyte enable multibyte characters if OS supports them |
9255ee31 | 1323 | --enable-static build static libraries [default=YES] |
cc88a640 | 1324 | --disable-largefile omit support for large files |
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 |
5836a818 | 1409 | readline configure 6.2 |
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 | ||
5836a818 | 1834 | It was created by readline $as_me 6.2, which was |
81ecdfbb RW |
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 | ||
5836a818 PP |
2185 | |
2186 | ||
2187 | ||
9255ee31 | 2188 | ac_aux_dir= |
5836a818 | 2189 | for ac_dir in `cd $srcdir;pwd`/.. "$srcdir"/`cd $srcdir;pwd`/..; do |
81ecdfbb RW |
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 | |
5836a818 | 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 | ||
5836a818 | 2214 | LIBVERSION=6.2 |
5bdf8622 | 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 | ||
19ce2a29 | 2288 | |
9255ee31 | 2289 | opt_curses=no |
5bdf8622 | 2290 | opt_purify=no |
9255ee31 | 2291 | |
25ed0b71 | 2292 | |
81ecdfbb RW |
2293 | # Check whether --with-curses was given. |
2294 | if test "${with_curses+set}" = set; then : | |
2295 | withval=$with_curses; opt_curses=$withval | |
2296 | fi | |
2297 | ||
2298 | ||
2299 | # Check whether --with-purify was given. | |
2300 | if test "${with_purify+set}" = set; then : | |
2301 | withval=$with_purify; opt_purify=$withval | |
2302 | fi | |
9255ee31 | 2303 | |
5bdf8622 | 2304 | |
9255ee31 EZ |
2305 | if test "$opt_curses" = "yes"; then |
2306 | prefer_curses=yes | |
2307 | fi | |
2308 | ||
5bdf8622 DJ |
2309 | if test "$opt_purify" = yes; then |
2310 | PURIFY="purify" | |
2311 | else | |
2312 | PURIFY= | |
2313 | fi | |
2314 | ||
2315 | opt_multibyte=yes | |
9255ee31 | 2316 | opt_static_libs=yes |
b558ff04 | 2317 | opt_shared_libs=no |
9255ee31 | 2318 | |
81ecdfbb RW |
2319 | # Check whether --enable-multibyte was given. |
2320 | if test "${enable_multibyte+set}" = set; then : | |
2321 | enableval=$enable_multibyte; opt_multibyte=$enableval | |
2322 | fi | |
2323 | ||
2324 | # Check whether --enable-static was given. | |
2325 | if test "${enable_static+set}" = set; then : | |
2326 | enableval=$enable_static; opt_static_libs=$enableval | |
2327 | fi | |
2328 | ||
9255ee31 | 2329 | |
5bdf8622 | 2330 | if test $opt_multibyte = no; then |
81ecdfbb | 2331 | $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h |
5bdf8622 DJ |
2332 | |
2333 | fi | |
2334 | ||
2335 | ||
2336 | ||
eeab5adb | 2337 | CROSS_COMPILE= |
5bdf8622 DJ |
2338 | if test "x$cross_compiling" = "xyes"; then |
2339 | case "${host}" in | |
2340 | *-cygwin*) | |
2341 | cross_cache=${srcdir}/cross-build/cygwin.cache | |
2342 | ;; | |
2343 | *-mingw*) | |
2344 | cross_cache=${srcdir}/cross-build/mingw.cache | |
2345 | ;; | |
2346 | i[3456]86-*-beos*) | |
2347 | cross_cache=${srcdir}/cross-build/x86-beos.cache | |
2348 | ;; | |
2349 | *) echo "configure: cross-compiling for $host is not supported" >&2 | |
2350 | ;; | |
2351 | esac | |
2352 | if test -n "${cross_cache}" && test -r "${cross_cache}"; then | |
2353 | echo "loading cross-build cache file ${cross_cache}" | |
2354 | . ${cross_cache} | |
2355 | fi | |
2356 | unset cross_cache | |
2357 | CROSS_COMPILE='-DCROSS_COMPILING' | |
2358 | ||
2359 | fi | |
2360 | ||
9255ee31 EZ |
2361 | echo "" |
2362 | echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}" | |
2363 | echo "" | |
2364 | ||
2365 | # We want these before the checks, so the checks can modify their values. | |
2366 | test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1 | |
2367 | ||
81ecdfbb RW |
2368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2369 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2370 | set x ${MAKE-make} | |
2371 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2372 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2373 | $as_echo_n "(cached) " >&6 | |
9255ee31 | 2374 | else |
25ed0b71 | 2375 | cat >conftest.make <<\_ACEOF |
81ecdfbb | 2376 | SHELL = /bin/sh |
9255ee31 | 2377 | all: |
81ecdfbb | 2378 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
25ed0b71 | 2379 | _ACEOF |
9255ee31 | 2380 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
81ecdfbb RW |
2381 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2382 | *@@@%%%=?*=@@@%%%*) | |
2383 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2384 | *) | |
2385 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2386 | esac | |
9255ee31 EZ |
2387 | rm -f conftest.make |
2388 | fi | |
81ecdfbb RW |
2389 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2391 | $as_echo "yes" >&6; } | |
9255ee31 EZ |
2392 | SET_MAKE= |
2393 | else | |
81ecdfbb RW |
2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2395 | $as_echo "no" >&6; } | |
9255ee31 EZ |
2396 | SET_MAKE="MAKE=${MAKE-make}" |
2397 | fi | |
2398 | ||
2399 | ac_ext=c | |
2400 | ac_cpp='$CPP $CPPFLAGS' | |
2401 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2402 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2403 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2404 | if test -n "$ac_tool_prefix"; then | |
2405 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2406 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
2407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2408 | $as_echo_n "checking for $ac_word... " >&6; } | |
2409 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2410 | $as_echo_n "(cached) " >&6 | |
9255ee31 EZ |
2411 | else |
2412 | if test -n "$CC"; then | |
2413 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2414 | else | |
25ed0b71 KW |
2415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2416 | for as_dir in $PATH | |
2417 | do | |
2418 | IFS=$as_save_IFS | |
2419 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2420 | for ac_exec_ext in '' $ac_executable_extensions; do |
2421 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
25ed0b71 | 2422 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2423 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
2424 | break 2 |
2425 | fi | |
2426 | done | |
81ecdfbb RW |
2427 | done |
2428 | IFS=$as_save_IFS | |
9255ee31 | 2429 | |
d60d9f65 | 2430 | fi |
9255ee31 EZ |
2431 | fi |
2432 | CC=$ac_cv_prog_CC | |
d60d9f65 | 2433 | if test -n "$CC"; then |
81ecdfbb RW |
2434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2435 | $as_echo "$CC" >&6; } | |
9255ee31 | 2436 | else |
81ecdfbb RW |
2437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2438 | $as_echo "no" >&6; } | |
9255ee31 EZ |
2439 | fi |
2440 | ||
81ecdfbb | 2441 | |
9255ee31 EZ |
2442 | fi |
2443 | if test -z "$ac_cv_prog_CC"; then | |
2444 | ac_ct_CC=$CC | |
2445 | # Extract the first word of "gcc", so it can be a program name with args. | |
2446 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2448 | $as_echo_n "checking for $ac_word... " >&6; } | |
2449 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2450 | $as_echo_n "(cached) " >&6 | |
9255ee31 EZ |
2451 | else |
2452 | if test -n "$ac_ct_CC"; then | |
2453 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2454 | else | |
25ed0b71 KW |
2455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2456 | for as_dir in $PATH | |
2457 | do | |
2458 | IFS=$as_save_IFS | |
2459 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2460 | for ac_exec_ext in '' $ac_executable_extensions; do |
2461 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
25ed0b71 | 2462 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2463 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
2464 | break 2 |
2465 | fi | |
2466 | done | |
81ecdfbb RW |
2467 | done |
2468 | IFS=$as_save_IFS | |
9255ee31 EZ |
2469 | |
2470 | fi | |
2471 | fi | |
2472 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2473 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2475 | $as_echo "$ac_ct_CC" >&6; } | |
9255ee31 | 2476 | else |
81ecdfbb RW |
2477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2478 | $as_echo "no" >&6; } | |
9255ee31 EZ |
2479 | fi |
2480 | ||
81ecdfbb RW |
2481 | if test "x$ac_ct_CC" = x; then |
2482 | CC="" | |
2483 | else | |
2484 | case $cross_compiling:$ac_tool_warned in | |
2485 | yes:) | |
2486 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2487 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2488 | ac_tool_warned=yes ;; | |
2489 | esac | |
2490 | CC=$ac_ct_CC | |
2491 | fi | |
d60d9f65 | 2492 | else |
9255ee31 | 2493 | CC="$ac_cv_prog_CC" |
d60d9f65 SS |
2494 | fi |
2495 | ||
2496 | if test -z "$CC"; then | |
81ecdfbb RW |
2497 | if test -n "$ac_tool_prefix"; then |
2498 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
9255ee31 | 2499 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2501 | $as_echo_n "checking for $ac_word... " >&6; } | |
2502 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2503 | $as_echo_n "(cached) " >&6 | |
9255ee31 EZ |
2504 | else |
2505 | if test -n "$CC"; then | |
2506 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2507 | else | |
25ed0b71 KW |
2508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2509 | for as_dir in $PATH | |
2510 | do | |
2511 | IFS=$as_save_IFS | |
2512 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2513 | for ac_exec_ext in '' $ac_executable_extensions; do |
2514 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
25ed0b71 | 2515 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
2517 | break 2 |
2518 | fi | |
2519 | done | |
81ecdfbb RW |
2520 | done |
2521 | IFS=$as_save_IFS | |
9255ee31 EZ |
2522 | |
2523 | fi | |
2524 | fi | |
2525 | CC=$ac_cv_prog_CC | |
2526 | if test -n "$CC"; then | |
81ecdfbb RW |
2527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2528 | $as_echo "$CC" >&6; } | |
9255ee31 | 2529 | else |
81ecdfbb RW |
2530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2531 | $as_echo "no" >&6; } | |
9255ee31 EZ |
2532 | fi |
2533 | ||
81ecdfbb RW |
2534 | |
2535 | fi | |
9255ee31 | 2536 | fi |
81ecdfbb | 2537 | if test -z "$CC"; then |
d60d9f65 SS |
2538 | # Extract the first word of "cc", so it can be a program name with args. |
2539 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2541 | $as_echo_n "checking for $ac_word... " >&6; } | |
2542 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2543 | $as_echo_n "(cached) " >&6 | |
9255ee31 | 2544 | else |
81ecdfbb RW |
2545 | if test -n "$CC"; then |
2546 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9255ee31 | 2547 | else |
81ecdfbb | 2548 | ac_prog_rejected=no |
25ed0b71 KW |
2549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2550 | for as_dir in $PATH | |
2551 | do | |
2552 | IFS=$as_save_IFS | |
2553 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2554 | for ac_exec_ext in '' $ac_executable_extensions; do |
2555 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2556 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2557 | ac_prog_rejected=yes | |
2558 | continue | |
2559 | fi | |
2560 | ac_cv_prog_CC="cc" | |
2561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25ed0b71 KW |
2562 | break 2 |
2563 | fi | |
2564 | done | |
81ecdfbb RW |
2565 | done |
2566 | IFS=$as_save_IFS | |
9255ee31 | 2567 | |
d60d9f65 SS |
2568 | if test $ac_prog_rejected = yes; then |
2569 | # We found a bogon in the path, so make sure we never use it. | |
2570 | set dummy $ac_cv_prog_CC | |
2571 | shift | |
9255ee31 | 2572 | if test $# != 0; then |
d60d9f65 SS |
2573 | # We chose a different compiler from the bogus one. |
2574 | # However, it has the same basename, so the bogon will be chosen | |
2575 | # first if we set CC to just the basename; use the full file name. | |
2576 | shift | |
25ed0b71 | 2577 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
d60d9f65 SS |
2578 | fi |
2579 | fi | |
2580 | fi | |
2581 | fi | |
9255ee31 | 2582 | CC=$ac_cv_prog_CC |
d60d9f65 | 2583 | if test -n "$CC"; then |
81ecdfbb RW |
2584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2585 | $as_echo "$CC" >&6; } | |
d60d9f65 | 2586 | else |
81ecdfbb RW |
2587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2588 | $as_echo "no" >&6; } | |
d60d9f65 SS |
2589 | fi |
2590 | ||
81ecdfbb | 2591 | |
9255ee31 EZ |
2592 | fi |
2593 | if test -z "$CC"; then | |
2594 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2595 | for ac_prog in cl.exe |
9255ee31 EZ |
2596 | do |
2597 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2598 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2600 | $as_echo_n "checking for $ac_word... " >&6; } | |
2601 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2602 | $as_echo_n "(cached) " >&6 | |
d60d9f65 SS |
2603 | else |
2604 | if test -n "$CC"; then | |
2605 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2606 | else | |
25ed0b71 KW |
2607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2608 | for as_dir in $PATH | |
2609 | do | |
2610 | IFS=$as_save_IFS | |
2611 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2612 | for ac_exec_ext in '' $ac_executable_extensions; do |
2613 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
25ed0b71 | 2614 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2615 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
2616 | break 2 |
2617 | fi | |
2618 | done | |
81ecdfbb RW |
2619 | done |
2620 | IFS=$as_save_IFS | |
9255ee31 | 2621 | |
d60d9f65 SS |
2622 | fi |
2623 | fi | |
9255ee31 | 2624 | CC=$ac_cv_prog_CC |
d60d9f65 | 2625 | if test -n "$CC"; then |
81ecdfbb RW |
2626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2627 | $as_echo "$CC" >&6; } | |
d60d9f65 | 2628 | else |
81ecdfbb RW |
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2630 | $as_echo "no" >&6; } | |
d60d9f65 SS |
2631 | fi |
2632 | ||
81ecdfbb | 2633 | |
9255ee31 EZ |
2634 | test -n "$CC" && break |
2635 | done | |
2636 | fi | |
2637 | if test -z "$CC"; then | |
2638 | ac_ct_CC=$CC | |
81ecdfbb | 2639 | for ac_prog in cl.exe |
9255ee31 EZ |
2640 | do |
2641 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2642 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2644 | $as_echo_n "checking for $ac_word... " >&6; } | |
2645 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2646 | $as_echo_n "(cached) " >&6 | |
9255ee31 EZ |
2647 | else |
2648 | if test -n "$ac_ct_CC"; then | |
2649 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2650 | else | |
25ed0b71 KW |
2651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2652 | for as_dir in $PATH | |
2653 | do | |
2654 | IFS=$as_save_IFS | |
2655 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2656 | for ac_exec_ext in '' $ac_executable_extensions; do |
2657 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
25ed0b71 | 2658 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 2659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
2660 | break 2 |
2661 | fi | |
2662 | done | |
81ecdfbb RW |
2663 | done |
2664 | IFS=$as_save_IFS | |
d60d9f65 | 2665 | |
9255ee31 EZ |
2666 | fi |
2667 | fi | |
2668 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2669 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2671 | $as_echo "$ac_ct_CC" >&6; } | |
9255ee31 | 2672 | else |
81ecdfbb RW |
2673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2674 | $as_echo "no" >&6; } | |
9255ee31 | 2675 | fi |
d60d9f65 | 2676 | |
81ecdfbb | 2677 | |
9255ee31 EZ |
2678 | test -n "$ac_ct_CC" && break |
2679 | done | |
c862e87b | 2680 | |
81ecdfbb RW |
2681 | if test "x$ac_ct_CC" = x; then |
2682 | CC="" | |
2683 | else | |
2684 | case $cross_compiling:$ac_tool_warned in | |
2685 | yes:) | |
2686 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2687 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2688 | ac_tool_warned=yes ;; | |
2689 | esac | |
2690 | CC=$ac_ct_CC | |
2691 | fi | |
9255ee31 EZ |
2692 | fi |
2693 | ||
2694 | fi | |
2695 | ||
25ed0b71 | 2696 | |
81ecdfbb RW |
2697 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2698 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2699 | as_fn_error "no acceptable C compiler found in \$PATH | |
2700 | See \`config.log' for more details." "$LINENO" 5; } | |
9255ee31 EZ |
2701 | |
2702 | # Provide some information about the compiler. | |
81ecdfbb RW |
2703 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2704 | set X $ac_compile | |
2705 | ac_compiler=$2 | |
2706 | for ac_option in --version -v -V -qversion; do | |
2707 | { { ac_try="$ac_compiler $ac_option >&5" | |
2708 | case "(($ac_try" in | |
2709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2710 | *) ac_try_echo=$ac_try;; | |
2711 | esac | |
2712 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2713 | $as_echo "$ac_try_echo"; } >&5 | |
2714 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
9255ee31 | 2715 | ac_status=$? |
81ecdfbb RW |
2716 | if test -s conftest.err; then |
2717 | sed '10a\ | |
2718 | ... rest of stderr output deleted ... | |
2719 | 10q' conftest.err >conftest.er1 | |
2720 | cat conftest.er1 >&5 | |
2721 | rm -f conftest.er1 conftest.err | |
2722 | fi | |
2723 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2724 | test $ac_status = 0; } | |
2725 | done | |
9255ee31 | 2726 | |
81ecdfbb | 2727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 2728 | /* end confdefs.h. */ |
5836a818 | 2729 | |
9255ee31 EZ |
2730 | int |
2731 | main () | |
2732 | { | |
2733 | ||
2734 | ; | |
2735 | return 0; | |
2736 | } | |
2737 | _ACEOF | |
2738 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 2739 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
9255ee31 EZ |
2740 | # Try to create an executable without -o first, disregard a.out. |
2741 | # It will help us diagnose broken compilers, and finding out an intuition | |
2742 | # of exeext. | |
81ecdfbb RW |
2743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2744 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2745 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2746 | ||
2747 | # The possible output files: | |
2748 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2749 | ||
2750 | ac_rmfiles= | |
2751 | for ac_file in $ac_files | |
2752 | do | |
2753 | case $ac_file in | |
2754 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2755 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2756 | esac | |
2757 | done | |
2758 | rm -f $ac_rmfiles | |
2759 | ||
2760 | if { { ac_try="$ac_link_default" | |
2761 | case "(($ac_try" in | |
2762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2763 | *) ac_try_echo=$ac_try;; | |
2764 | esac | |
2765 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2766 | $as_echo "$ac_try_echo"; } >&5 | |
2767 | (eval "$ac_link_default") 2>&5 | |
2768 | ac_status=$? | |
2769 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2770 | test $ac_status = 0; }; then : | |
2771 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2772 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2773 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2774 | # so that the user can short-circuit this test for compilers unknown to | |
2775 | # Autoconf. | |
2776 | for ac_file in $ac_files '' | |
25ed0b71 KW |
2777 | do |
2778 | test -f "$ac_file" || continue | |
9255ee31 | 2779 | case $ac_file in |
81ecdfbb | 2780 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
430b7832 | 2781 | ;; |
25ed0b71 | 2782 | [ab].out ) |
430b7832 MM |
2783 | # We found the default executable, but exeext='' is most |
2784 | # certainly right. | |
2785 | break;; | |
25ed0b71 | 2786 | *.* ) |
81ecdfbb RW |
2787 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2788 | then :; else | |
2789 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2790 | fi | |
2791 | # We set ac_cv_exeext here because the later test for it is not | |
2792 | # safe: cross compilers may not add the suffix if given an `-o' | |
2793 | # argument, so we may need to know it at that point already. | |
2794 | # Even if this section looks crufty: it has the advantage of | |
2795 | # actually working. | |
430b7832 | 2796 | break;; |
25ed0b71 | 2797 | * ) |
430b7832 | 2798 | break;; |
9255ee31 EZ |
2799 | esac |
2800 | done | |
81ecdfbb RW |
2801 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2802 | ||
9255ee31 | 2803 | else |
81ecdfbb RW |
2804 | ac_file='' |
2805 | fi | |
2806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2807 | $as_echo "$ac_file" >&6; } | |
2808 | if test -z "$ac_file"; then : | |
2809 | $as_echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
2810 | sed 's/^/| /' conftest.$ac_ext >&5 |
2811 | ||
81ecdfbb RW |
2812 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2813 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2814 | { as_fn_set_status 77 | |
2815 | as_fn_error "C compiler cannot create executables | |
2816 | See \`config.log' for more details." "$LINENO" 5; }; } | |
9255ee31 | 2817 | fi |
9255ee31 | 2818 | ac_exeext=$ac_cv_exeext |
9255ee31 | 2819 | |
81ecdfbb | 2820 | # Check that the compiler produces executables we can run. If not, either |
9255ee31 | 2821 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2823 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
9255ee31 EZ |
2824 | # If not cross compiling, check that we can run a simple program. |
2825 | if test "$cross_compiling" != yes; then | |
2826 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
2827 | { { case "(($ac_try" in |
2828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2829 | *) ac_try_echo=$ac_try;; | |
2830 | esac | |
2831 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2832 | $as_echo "$ac_try_echo"; } >&5 | |
2833 | (eval "$ac_try") 2>&5 | |
9255ee31 | 2834 | ac_status=$? |
81ecdfbb RW |
2835 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2836 | test $ac_status = 0; }; }; then | |
9255ee31 | 2837 | cross_compiling=no |
d60d9f65 | 2838 | else |
9255ee31 EZ |
2839 | if test "$cross_compiling" = maybe; then |
2840 | cross_compiling=yes | |
2841 | else | |
81ecdfbb RW |
2842 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2843 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2844 | as_fn_error "cannot run C compiled programs. | |
25ed0b71 | 2845 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 2846 | See \`config.log' for more details." "$LINENO" 5; } |
9255ee31 | 2847 | fi |
d60d9f65 | 2848 | fi |
d60d9f65 | 2849 | fi |
81ecdfbb RW |
2850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2851 | $as_echo "yes" >&6; } | |
9255ee31 | 2852 | |
81ecdfbb | 2853 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
9255ee31 | 2854 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 2855 | # Check that the compiler produces executables we can run. If not, either |
9255ee31 | 2856 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
2858 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2860 | $as_echo "$cross_compiling" >&6; } | |
2861 | ||
2862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2863 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2864 | if { { ac_try="$ac_link" | |
2865 | case "(($ac_try" in | |
2866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2867 | *) ac_try_echo=$ac_try;; | |
2868 | esac | |
2869 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2870 | $as_echo "$ac_try_echo"; } >&5 | |
2871 | (eval "$ac_link") 2>&5 | |
9255ee31 | 2872 | ac_status=$? |
81ecdfbb RW |
2873 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2874 | test $ac_status = 0; }; then : | |
9255ee31 EZ |
2875 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2876 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2877 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2878 | # `rm'. | |
25ed0b71 KW |
2879 | for ac_file in conftest.exe conftest conftest.*; do |
2880 | test -f "$ac_file" || continue | |
9255ee31 | 2881 | case $ac_file in |
81ecdfbb | 2882 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
9255ee31 | 2883 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
430b7832 | 2884 | break;; |
9255ee31 EZ |
2885 | * ) break;; |
2886 | esac | |
2887 | done | |
d60d9f65 | 2888 | else |
81ecdfbb RW |
2889 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2890 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2891 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
2892 | See \`config.log' for more details." "$LINENO" 5; } | |
9255ee31 | 2893 | fi |
9255ee31 | 2894 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
2895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2896 | $as_echo "$ac_cv_exeext" >&6; } | |
9255ee31 EZ |
2897 | |
2898 | rm -f conftest.$ac_ext | |
2899 | EXEEXT=$ac_cv_exeext | |
2900 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
2901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2902 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2903 | if test "${ac_cv_objext+set}" = set; then : | |
2904 | $as_echo_n "(cached) " >&6 | |
9255ee31 | 2905 | else |
81ecdfbb | 2906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 2907 | /* end confdefs.h. */ |
d60d9f65 | 2908 | |
9255ee31 EZ |
2909 | int |
2910 | main () | |
2911 | { | |
d60d9f65 | 2912 | |
9255ee31 EZ |
2913 | ; |
2914 | return 0; | |
2915 | } | |
2916 | _ACEOF | |
2917 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
2918 | if { { ac_try="$ac_compile" |
2919 | case "(($ac_try" in | |
2920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2921 | *) ac_try_echo=$ac_try;; | |
2922 | esac | |
2923 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2924 | $as_echo "$ac_try_echo"; } >&5 | |
2925 | (eval "$ac_compile") 2>&5 | |
2926 | ac_status=$? | |
2927 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2928 | test $ac_status = 0; }; then : | |
2929 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2930 | test -f "$ac_file" || continue; | |
9255ee31 | 2931 | case $ac_file in |
81ecdfbb | 2932 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
9255ee31 EZ |
2933 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2934 | break;; | |
2935 | esac | |
2936 | done | |
d60d9f65 | 2937 | else |
81ecdfbb | 2938 | $as_echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
2939 | sed 's/^/| /' conftest.$ac_ext >&5 |
2940 | ||
81ecdfbb RW |
2941 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2942 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2943 | as_fn_error "cannot compute suffix of object files: cannot compile | |
2944 | See \`config.log' for more details." "$LINENO" 5; } | |
9255ee31 | 2945 | fi |
9255ee31 EZ |
2946 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2947 | fi | |
81ecdfbb RW |
2948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2949 | $as_echo "$ac_cv_objext" >&6; } | |
9255ee31 EZ |
2950 | OBJEXT=$ac_cv_objext |
2951 | ac_objext=$OBJEXT | |
81ecdfbb RW |
2952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
2953 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2954 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
2955 | $as_echo_n "(cached) " >&6 | |
9255ee31 | 2956 | else |
81ecdfbb | 2957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 2958 | /* end confdefs.h. */ |
9255ee31 EZ |
2959 | |
2960 | int | |
2961 | main () | |
2962 | { | |
2963 | #ifndef __GNUC__ | |
2964 | choke me | |
2965 | #endif | |
d60d9f65 | 2966 | |
9255ee31 EZ |
2967 | ; |
2968 | return 0; | |
2969 | } | |
2970 | _ACEOF | |
81ecdfbb | 2971 | if ac_fn_c_try_compile "$LINENO"; then : |
9255ee31 EZ |
2972 | ac_compiler_gnu=yes |
2973 | else | |
81ecdfbb | 2974 | ac_compiler_gnu=no |
9255ee31 | 2975 | fi |
81ecdfbb | 2976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9255ee31 EZ |
2977 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2978 | ||
2979 | fi | |
81ecdfbb RW |
2980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
2981 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2982 | if test $ac_compiler_gnu = yes; then | |
2983 | GCC=yes | |
2984 | else | |
2985 | GCC= | |
2986 | fi | |
9255ee31 EZ |
2987 | ac_test_CFLAGS=${CFLAGS+set} |
2988 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
2989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2990 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2991 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
2992 | $as_echo_n "(cached) " >&6 | |
2993 | else | |
2994 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2995 | ac_c_werror_flag=yes | |
2996 | ac_cv_prog_cc_g=no | |
2997 | CFLAGS="-g" | |
2998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 2999 | /* end confdefs.h. */ |
9255ee31 EZ |
3000 | |
3001 | int | |
3002 | main () | |
3003 | { | |
3004 | ||
3005 | ; | |
3006 | return 0; | |
3007 | } | |
3008 | _ACEOF | |
81ecdfbb | 3009 | if ac_fn_c_try_compile "$LINENO"; then : |
d60d9f65 SS |
3010 | ac_cv_prog_cc_g=yes |
3011 | else | |
81ecdfbb RW |
3012 | CFLAGS="" |
3013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3014 | /* end confdefs.h. */ | |
3015 | ||
3016 | int | |
3017 | main () | |
3018 | { | |
3019 | ||
3020 | ; | |
3021 | return 0; | |
3022 | } | |
3023 | _ACEOF | |
3024 | if ac_fn_c_try_compile "$LINENO"; then : | |
3025 | ||
3026 | else | |
3027 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3028 | CFLAGS="-g" | |
3029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3030 | /* end confdefs.h. */ | |
3031 | ||
3032 | int | |
3033 | main () | |
3034 | { | |
25ed0b71 | 3035 | |
81ecdfbb RW |
3036 | ; |
3037 | return 0; | |
3038 | } | |
3039 | _ACEOF | |
3040 | if ac_fn_c_try_compile "$LINENO"; then : | |
3041 | ac_cv_prog_cc_g=yes | |
3042 | fi | |
3043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3044 | fi | |
3045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d60d9f65 | 3046 | fi |
81ecdfbb RW |
3047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3048 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d60d9f65 | 3049 | fi |
81ecdfbb RW |
3050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3051 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
d60d9f65 | 3052 | if test "$ac_test_CFLAGS" = set; then |
9255ee31 | 3053 | CFLAGS=$ac_save_CFLAGS |
d60d9f65 SS |
3054 | elif test $ac_cv_prog_cc_g = yes; then |
3055 | if test "$GCC" = yes; then | |
3056 | CFLAGS="-g -O2" | |
3057 | else | |
3058 | CFLAGS="-g" | |
3059 | fi | |
3060 | else | |
3061 | if test "$GCC" = yes; then | |
3062 | CFLAGS="-O2" | |
3063 | else | |
3064 | CFLAGS= | |
3065 | fi | |
3066 | fi | |
81ecdfbb RW |
3067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3068 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3069 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3070 | $as_echo_n "(cached) " >&6 | |
25ed0b71 | 3071 | else |
81ecdfbb | 3072 | ac_cv_prog_cc_c89=no |
25ed0b71 | 3073 | ac_save_CC=$CC |
81ecdfbb | 3074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3075 | /* end confdefs.h. */ |
3076 | #include <stdarg.h> | |
3077 | #include <stdio.h> | |
3078 | #include <sys/types.h> | |
3079 | #include <sys/stat.h> | |
3080 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3081 | struct buf { int x; }; | |
3082 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3083 | static char *e (p, i) | |
3084 | char **p; | |
3085 | int i; | |
3086 | { | |
3087 | return p[i]; | |
3088 | } | |
3089 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3090 | { | |
3091 | char *s; | |
3092 | va_list v; | |
3093 | va_start (v,p); | |
3094 | s = g (p, va_arg (v,int)); | |
3095 | va_end (v); | |
3096 | return s; | |
3097 | } | |
430b7832 MM |
3098 | |
3099 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3100 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3101 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3102 | as 'x'. The following induces an error, until -std is added to get |
430b7832 MM |
3103 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3104 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3105 | that's true only with -std. */ |
430b7832 MM |
3106 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3107 | ||
81ecdfbb RW |
3108 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3109 | inside strings and character constants. */ | |
3110 | #define FOO(x) 'x' | |
3111 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3112 | ||
25ed0b71 KW |
3113 | int test (int i, double x); |
3114 | struct s1 {int (*f) (int a);}; | |
3115 | struct s2 {int (*f) (double a);}; | |
3116 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3117 | int argc; | |
3118 | char **argv; | |
3119 | int | |
3120 | main () | |
3121 | { | |
3122 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3123 | ; | |
3124 | return 0; | |
3125 | } | |
3126 | _ACEOF | |
81ecdfbb RW |
3127 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3128 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
25ed0b71 KW |
3129 | do |
3130 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3131 | if ac_fn_c_try_compile "$LINENO"; then : |
3132 | ac_cv_prog_cc_c89=$ac_arg | |
25ed0b71 | 3133 | fi |
81ecdfbb RW |
3134 | rm -f core conftest.err conftest.$ac_objext |
3135 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
25ed0b71 | 3136 | done |
81ecdfbb | 3137 | rm -f conftest.$ac_ext |
25ed0b71 KW |
3138 | CC=$ac_save_CC |
3139 | ||
3140 | fi | |
81ecdfbb RW |
3141 | # AC_CACHE_VAL |
3142 | case "x$ac_cv_prog_cc_c89" in | |
3143 | x) | |
3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3145 | $as_echo "none needed" >&6; } ;; | |
3146 | xno) | |
3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3148 | $as_echo "unsupported" >&6; } ;; | |
25ed0b71 | 3149 | *) |
81ecdfbb RW |
3150 | CC="$CC $ac_cv_prog_cc_c89" |
3151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3152 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
25ed0b71 | 3153 | esac |
81ecdfbb | 3154 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
25ed0b71 | 3155 | |
9255ee31 | 3156 | fi |
d60d9f65 | 3157 | |
9255ee31 EZ |
3158 | ac_ext=c |
3159 | ac_cpp='$CPP $CPPFLAGS' | |
3160 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3161 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3162 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3163 | ||
25ed0b71 | 3164 | |
9255ee31 EZ |
3165 | ac_ext=c |
3166 | ac_cpp='$CPP $CPPFLAGS' | |
3167 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3168 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3169 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
3170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
3171 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d60d9f65 SS |
3172 | # On Suns, sometimes $CPP names a directory. |
3173 | if test -n "$CPP" && test -d "$CPP"; then | |
3174 | CPP= | |
3175 | fi | |
3176 | if test -z "$CPP"; then | |
81ecdfbb RW |
3177 | if test "${ac_cv_prog_CPP+set}" = set; then : |
3178 | $as_echo_n "(cached) " >&6 | |
d60d9f65 | 3179 | else |
9255ee31 EZ |
3180 | # Double quotes because CPP needs to be expanded |
3181 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3182 | do | |
3183 | ac_preproc_ok=false | |
3184 | for ac_c_preproc_warn_flag in '' yes | |
3185 | do | |
3186 | # Use a header file that comes with gcc, so configuring glibc | |
3187 | # with a fresh cross-compiler works. | |
25ed0b71 KW |
3188 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3189 | # <limits.h> exists even on freestanding compilers. | |
d60d9f65 | 3190 | # On the NeXT, cc -E runs the code through the compiler's parser, |
9255ee31 | 3191 | # not just through cpp. "Syntax error" is here to catch this case. |
81ecdfbb | 3192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3193 | /* end confdefs.h. */ |
3194 | #ifdef __STDC__ | |
3195 | # include <limits.h> | |
3196 | #else | |
3197 | # include <assert.h> | |
3198 | #endif | |
430b7832 | 3199 | Syntax error |
9255ee31 | 3200 | _ACEOF |
81ecdfbb | 3201 | if ac_fn_c_try_cpp "$LINENO"; then : |
25ed0b71 | 3202 | |
81ecdfbb | 3203 | else |
9255ee31 EZ |
3204 | # Broken: fails on valid input. |
3205 | continue | |
3206 | fi | |
3207 | rm -f conftest.err conftest.$ac_ext | |
3208 | ||
81ecdfbb | 3209 | # OK, works on sane cases. Now check whether nonexistent headers |
9255ee31 | 3210 | # can be detected and how. |
81ecdfbb | 3211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 3212 | /* end confdefs.h. */ |
9255ee31 EZ |
3213 | #include <ac_nonexistent.h> |
3214 | _ACEOF | |
81ecdfbb | 3215 | if ac_fn_c_try_cpp "$LINENO"; then : |
9255ee31 EZ |
3216 | # Broken: success on invalid input. |
3217 | continue | |
d60d9f65 | 3218 | else |
9255ee31 EZ |
3219 | # Passes both tests. |
3220 | ac_preproc_ok=: | |
3221 | break | |
3222 | fi | |
3223 | rm -f conftest.err conftest.$ac_ext | |
3224 | ||
3225 | done | |
3226 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3227 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb | 3228 | if $ac_preproc_ok; then : |
9255ee31 EZ |
3229 | break |
3230 | fi | |
3231 | ||
3232 | done | |
3233 | ac_cv_prog_CPP=$CPP | |
3234 | ||
3235 | fi | |
3236 | CPP=$ac_cv_prog_CPP | |
3237 | else | |
3238 | ac_cv_prog_CPP=$CPP | |
3239 | fi | |
81ecdfbb RW |
3240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3241 | $as_echo "$CPP" >&6; } | |
9255ee31 EZ |
3242 | ac_preproc_ok=false |
3243 | for ac_c_preproc_warn_flag in '' yes | |
3244 | do | |
3245 | # Use a header file that comes with gcc, so configuring glibc | |
3246 | # with a fresh cross-compiler works. | |
25ed0b71 KW |
3247 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3248 | # <limits.h> exists even on freestanding compilers. | |
9255ee31 EZ |
3249 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3250 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 3251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3252 | /* end confdefs.h. */ |
3253 | #ifdef __STDC__ | |
3254 | # include <limits.h> | |
3255 | #else | |
3256 | # include <assert.h> | |
3257 | #endif | |
430b7832 | 3258 | Syntax error |
9255ee31 | 3259 | _ACEOF |
81ecdfbb | 3260 | if ac_fn_c_try_cpp "$LINENO"; then : |
25ed0b71 | 3261 | |
81ecdfbb | 3262 | else |
9255ee31 EZ |
3263 | # Broken: fails on valid input. |
3264 | continue | |
d60d9f65 | 3265 | fi |
9255ee31 EZ |
3266 | rm -f conftest.err conftest.$ac_ext |
3267 | ||
81ecdfbb | 3268 | # OK, works on sane cases. Now check whether nonexistent headers |
9255ee31 | 3269 | # can be detected and how. |
81ecdfbb | 3270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 3271 | /* end confdefs.h. */ |
9255ee31 EZ |
3272 | #include <ac_nonexistent.h> |
3273 | _ACEOF | |
81ecdfbb | 3274 | if ac_fn_c_try_cpp "$LINENO"; then : |
9255ee31 EZ |
3275 | # Broken: success on invalid input. |
3276 | continue | |
3277 | else | |
9255ee31 EZ |
3278 | # Passes both tests. |
3279 | ac_preproc_ok=: | |
3280 | break | |
d60d9f65 | 3281 | fi |
9255ee31 EZ |
3282 | rm -f conftest.err conftest.$ac_ext |
3283 | ||
3284 | done | |
3285 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3286 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
3287 | if $ac_preproc_ok; then : |
3288 | ||
d60d9f65 | 3289 | else |
81ecdfbb RW |
3290 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3291 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3292 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
3293 | See \`config.log' for more details." "$LINENO" 5; } | |
d60d9f65 | 3294 | fi |
d60d9f65 | 3295 | |
9255ee31 EZ |
3296 | ac_ext=c |
3297 | ac_cpp='$CPP $CPPFLAGS' | |
3298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3301 | ||
25ed0b71 | 3302 | |
81ecdfbb RW |
3303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3304 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3305 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3306 | $as_echo_n "(cached) " >&6 | |
3307 | else | |
3308 | if test -z "$GREP"; then | |
3309 | ac_path_GREP_found=false | |
3310 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3312 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3313 | do | |
3314 | IFS=$as_save_IFS | |
3315 | test -z "$as_dir" && as_dir=. | |
3316 | for ac_prog in grep ggrep; do | |
3317 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3318 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3319 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3320 | # Check for GNU ac_path_GREP and select it if it is found. | |
3321 | # Check for GNU $ac_path_GREP | |
3322 | case `"$ac_path_GREP" --version 2>&1` in | |
3323 | *GNU*) | |
3324 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3325 | *) | |
3326 | ac_count=0 | |
3327 | $as_echo_n 0123456789 >"conftest.in" | |
3328 | while : | |
3329 | do | |
3330 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3331 | mv "conftest.tmp" "conftest.in" | |
3332 | cp "conftest.in" "conftest.nl" | |
3333 | $as_echo 'GREP' >> "conftest.nl" | |
3334 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3335 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3336 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3337 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3338 | # Best one so far, save it but keep looking for a better one | |
3339 | ac_cv_path_GREP="$ac_path_GREP" | |
3340 | ac_path_GREP_max=$ac_count | |
3341 | fi | |
3342 | # 10*(2^10) chars as input seems more than enough | |
3343 | test $ac_count -gt 10 && break | |
3344 | done | |
3345 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3346 | esac | |
3347 | ||
3348 | $ac_path_GREP_found && break 3 | |
3349 | done | |
3350 | done | |
3351 | done | |
3352 | IFS=$as_save_IFS | |
3353 | if test -z "$ac_cv_path_GREP"; then | |
3354 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3355 | fi | |
3356 | else | |
3357 | ac_cv_path_GREP=$GREP | |
3358 | fi | |
3359 | ||
3360 | fi | |
3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3362 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3363 | GREP="$ac_cv_path_GREP" | |
3364 | ||
3365 | ||
3366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3367 | $as_echo_n "checking for egrep... " >&6; } | |
3368 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3369 | $as_echo_n "(cached) " >&6 | |
d60d9f65 | 3370 | else |
81ecdfbb RW |
3371 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3372 | then ac_cv_path_EGREP="$GREP -E" | |
3373 | else | |
3374 | if test -z "$EGREP"; then | |
3375 | ac_path_EGREP_found=false | |
3376 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3378 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3379 | do | |
3380 | IFS=$as_save_IFS | |
3381 | test -z "$as_dir" && as_dir=. | |
3382 | for ac_prog in egrep; do | |
3383 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3384 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3385 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3386 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3387 | # Check for GNU $ac_path_EGREP | |
3388 | case `"$ac_path_EGREP" --version 2>&1` in | |
3389 | *GNU*) | |
3390 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3391 | *) | |
3392 | ac_count=0 | |
3393 | $as_echo_n 0123456789 >"conftest.in" | |
3394 | while : | |
3395 | do | |
3396 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3397 | mv "conftest.tmp" "conftest.in" | |
3398 | cp "conftest.in" "conftest.nl" | |
3399 | $as_echo 'EGREP' >> "conftest.nl" | |
3400 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3401 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3402 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3403 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3404 | # Best one so far, save it but keep looking for a better one | |
3405 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3406 | ac_path_EGREP_max=$ac_count | |
25ed0b71 | 3407 | fi |
81ecdfbb RW |
3408 | # 10*(2^10) chars as input seems more than enough |
3409 | test $ac_count -gt 10 && break | |
3410 | done | |
3411 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3412 | esac | |
3413 | ||
3414 | $ac_path_EGREP_found && break 3 | |
3415 | done | |
3416 | done | |
3417 | done | |
3418 | IFS=$as_save_IFS | |
3419 | if test -z "$ac_cv_path_EGREP"; then | |
3420 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3421 | fi | |
3422 | else | |
3423 | ac_cv_path_EGREP=$EGREP | |
3424 | fi | |
3425 | ||
3426 | fi | |
d60d9f65 | 3427 | fi |
81ecdfbb RW |
3428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
3429 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3430 | EGREP="$ac_cv_path_EGREP" | |
d60d9f65 | 3431 | |
9255ee31 | 3432 | |
81ecdfbb RW |
3433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3434 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3435 | if test "${ac_cv_header_stdc+set}" = set; then : | |
3436 | $as_echo_n "(cached) " >&6 | |
25ed0b71 | 3437 | else |
81ecdfbb | 3438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3439 | /* end confdefs.h. */ |
3440 | #include <stdlib.h> | |
3441 | #include <stdarg.h> | |
3442 | #include <string.h> | |
3443 | #include <float.h> | |
d60d9f65 | 3444 | |
25ed0b71 KW |
3445 | int |
3446 | main () | |
3447 | { | |
d60d9f65 | 3448 | |
25ed0b71 KW |
3449 | ; |
3450 | return 0; | |
3451 | } | |
3452 | _ACEOF | |
81ecdfbb | 3453 | if ac_fn_c_try_compile "$LINENO"; then : |
25ed0b71 KW |
3454 | ac_cv_header_stdc=yes |
3455 | else | |
81ecdfbb | 3456 | ac_cv_header_stdc=no |
d60d9f65 | 3457 | fi |
81ecdfbb | 3458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 3459 | |
25ed0b71 KW |
3460 | if test $ac_cv_header_stdc = yes; then |
3461 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 3462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3463 | /* end confdefs.h. */ |
3464 | #include <string.h> | |
9255ee31 | 3465 | |
25ed0b71 KW |
3466 | _ACEOF |
3467 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
3468 | $EGREP "memchr" >/dev/null 2>&1; then : |
3469 | ||
d60d9f65 | 3470 | else |
25ed0b71 | 3471 | ac_cv_header_stdc=no |
d60d9f65 | 3472 | fi |
25ed0b71 | 3473 | rm -f conftest* |
d60d9f65 | 3474 | |
d60d9f65 SS |
3475 | fi |
3476 | ||
25ed0b71 KW |
3477 | if test $ac_cv_header_stdc = yes; then |
3478 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 3479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3480 | /* end confdefs.h. */ |
3481 | #include <stdlib.h> | |
d60d9f65 | 3482 | |
9255ee31 | 3483 | _ACEOF |
d60d9f65 | 3484 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
81ecdfbb RW |
3485 | $EGREP "free" >/dev/null 2>&1; then : |
3486 | ||
25ed0b71 KW |
3487 | else |
3488 | ac_cv_header_stdc=no | |
d60d9f65 SS |
3489 | fi |
3490 | rm -f conftest* | |
3491 | ||
d60d9f65 SS |
3492 | fi |
3493 | ||
25ed0b71 KW |
3494 | if test $ac_cv_header_stdc = yes; then |
3495 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 3496 | if test "$cross_compiling" = yes; then : |
25ed0b71 KW |
3497 | : |
3498 | else | |
81ecdfbb | 3499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3500 | /* end confdefs.h. */ |
3501 | #include <ctype.h> | |
81ecdfbb | 3502 | #include <stdlib.h> |
25ed0b71 KW |
3503 | #if ((' ' & 0x0FF) == 0x020) |
3504 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3505 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3506 | #else | |
3507 | # define ISLOWER(c) \ | |
430b7832 MM |
3508 | (('a' <= (c) && (c) <= 'i') \ |
3509 | || ('j' <= (c) && (c) <= 'r') \ | |
3510 | || ('s' <= (c) && (c) <= 'z')) | |
25ed0b71 KW |
3511 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
3512 | #endif | |
3513 | ||
3514 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3515 | int | |
3516 | main () | |
3517 | { | |
3518 | int i; | |
3519 | for (i = 0; i < 256; i++) | |
3520 | if (XOR (islower (i), ISLOWER (i)) | |
430b7832 | 3521 | || toupper (i) != TOUPPER (i)) |
81ecdfbb RW |
3522 | return 2; |
3523 | return 0; | |
25ed0b71 KW |
3524 | } |
3525 | _ACEOF | |
81ecdfbb | 3526 | if ac_fn_c_try_run "$LINENO"; then : |
25ed0b71 | 3527 | |
81ecdfbb RW |
3528 | else |
3529 | ac_cv_header_stdc=no | |
25ed0b71 | 3530 | fi |
81ecdfbb RW |
3531 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3532 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
25ed0b71 | 3533 | fi |
81ecdfbb | 3534 | |
25ed0b71 KW |
3535 | fi |
3536 | fi | |
81ecdfbb RW |
3537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
3538 | $as_echo "$ac_cv_header_stdc" >&6; } | |
25ed0b71 KW |
3539 | if test $ac_cv_header_stdc = yes; then |
3540 | ||
81ecdfbb | 3541 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
25ed0b71 KW |
3542 | |
3543 | fi | |
3544 | ||
3545 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
81ecdfbb RW |
3546 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
3547 | inttypes.h stdint.h unistd.h | |
3548 | do : | |
3549 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3550 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3551 | " | |
3552 | eval as_val=\$$as_ac_Header | |
3553 | if test "x$as_val" = x""yes; then : | |
3554 | cat >>confdefs.h <<_ACEOF | |
3555 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3556 | _ACEOF | |
25ed0b71 | 3557 | |
81ecdfbb | 3558 | fi |
25ed0b71 | 3559 | |
81ecdfbb | 3560 | done |
25ed0b71 KW |
3561 | |
3562 | ||
3563 | ||
81ecdfbb RW |
3564 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
3565 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
3566 | MINIX=yes | |
3567 | else | |
3568 | MINIX= | |
3569 | fi | |
25ed0b71 KW |
3570 | |
3571 | ||
81ecdfbb | 3572 | if test "$MINIX" = yes; then |
25ed0b71 | 3573 | |
81ecdfbb | 3574 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
25ed0b71 | 3575 | |
25ed0b71 | 3576 | |
81ecdfbb | 3577 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
25ed0b71 | 3578 | |
25ed0b71 | 3579 | |
81ecdfbb | 3580 | $as_echo "#define _MINIX 1" >>confdefs.h |
25ed0b71 | 3581 | |
81ecdfbb | 3582 | fi |
25ed0b71 KW |
3583 | |
3584 | ||
81ecdfbb RW |
3585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
3586 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
3587 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
3588 | $as_echo_n "(cached) " >&6 | |
25ed0b71 | 3589 | else |
81ecdfbb | 3590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 3591 | /* end confdefs.h. */ |
25ed0b71 | 3592 | |
81ecdfbb RW |
3593 | # define __EXTENSIONS__ 1 |
3594 | $ac_includes_default | |
3595 | int | |
3596 | main () | |
3597 | { | |
25ed0b71 | 3598 | |
81ecdfbb RW |
3599 | ; |
3600 | return 0; | |
3601 | } | |
25ed0b71 | 3602 | _ACEOF |
81ecdfbb RW |
3603 | if ac_fn_c_try_compile "$LINENO"; then : |
3604 | ac_cv_safe_to_define___extensions__=yes | |
25ed0b71 | 3605 | else |
81ecdfbb | 3606 | ac_cv_safe_to_define___extensions__=no |
25ed0b71 | 3607 | fi |
81ecdfbb | 3608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
25ed0b71 | 3609 | fi |
81ecdfbb RW |
3610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
3611 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3612 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3613 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
25ed0b71 | 3614 | |
81ecdfbb | 3615 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
25ed0b71 | 3616 | |
81ecdfbb | 3617 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
25ed0b71 | 3618 | |
81ecdfbb | 3619 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
25ed0b71 | 3620 | |
81ecdfbb | 3621 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
25ed0b71 | 3622 | |
25ed0b71 | 3623 | |
25ed0b71 KW |
3624 | |
3625 | ||
25ed0b71 KW |
3626 | # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS. |
3627 | test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O" | |
3628 | ||
3629 | if test $ac_cv_c_compiler_gnu = yes; then | |
81ecdfbb RW |
3630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
3631 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
3632 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then : | |
3633 | $as_echo_n "(cached) " >&6 | |
25ed0b71 KW |
3634 | else |
3635 | ac_pattern="Autoconf.*'x'" | |
81ecdfbb | 3636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3637 | /* end confdefs.h. */ |
3638 | #include <sgtty.h> | |
3639 | Autoconf TIOCGETP | |
3640 | _ACEOF | |
3641 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb | 3642 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
25ed0b71 KW |
3643 | ac_cv_prog_gcc_traditional=yes |
3644 | else | |
3645 | ac_cv_prog_gcc_traditional=no | |
3646 | fi | |
3647 | rm -f conftest* | |
3648 | ||
3649 | ||
3650 | if test $ac_cv_prog_gcc_traditional = no; then | |
81ecdfbb | 3651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3652 | /* end confdefs.h. */ |
3653 | #include <termio.h> | |
3654 | Autoconf TCGETA | |
3655 | _ACEOF | |
3656 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb | 3657 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
25ed0b71 KW |
3658 | ac_cv_prog_gcc_traditional=yes |
3659 | fi | |
3660 | rm -f conftest* | |
3661 | ||
3662 | fi | |
3663 | fi | |
81ecdfbb RW |
3664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
3665 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
25ed0b71 KW |
3666 | if test $ac_cv_prog_gcc_traditional = yes; then |
3667 | CC="$CC -traditional" | |
3668 | fi | |
3669 | fi | |
3670 | ||
3671 | # Find a good install program. We prefer a C program (faster), | |
3672 | # so one script is as good as another. But avoid the broken or | |
3673 | # incompatible versions: | |
3674 | # SysV /etc/install, /usr/sbin/install | |
3675 | # SunOS /usr/etc/install | |
3676 | # IRIX /sbin/install | |
3677 | # AIX /bin/install | |
3678 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3679 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3680 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3681 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
430b7832 | 3682 | # OS/2's system install, which has a completely different semantic |
25ed0b71 | 3683 | # ./install, which can be erroneously created by make from ./install.sh. |
81ecdfbb RW |
3684 | # Reject install programs that cannot install multiple files. |
3685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3686 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
25ed0b71 | 3687 | if test -z "$INSTALL"; then |
81ecdfbb RW |
3688 | if test "${ac_cv_path_install+set}" = set; then : |
3689 | $as_echo_n "(cached) " >&6 | |
25ed0b71 KW |
3690 | else |
3691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3692 | for as_dir in $PATH | |
3693 | do | |
3694 | IFS=$as_save_IFS | |
3695 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3696 | # Account for people who put trailing slashes in PATH elements. |
3697 | case $as_dir/ in #(( | |
3698 | ./ | .// | /[cC]/* | \ | |
25ed0b71 | 3699 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 3700 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
25ed0b71 KW |
3701 | /usr/ucb/* ) ;; |
3702 | *) | |
3703 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3704 | # Don't use installbsd from OSF since it installs stuff as root | |
3705 | # by default. | |
3706 | for ac_prog in ginstall scoinst install; do | |
3707 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 3708 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
430b7832 MM |
3709 | if test $ac_prog = install && |
3710 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3711 | # AIX install. It has an incompatible calling convention. | |
3712 | : | |
3713 | elif test $ac_prog = install && | |
3714 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3715 | # program-specific install script used by HP pwplus--don't use. | |
3716 | : | |
3717 | else | |
81ecdfbb RW |
3718 | rm -rf conftest.one conftest.two conftest.dir |
3719 | echo one > conftest.one | |
3720 | echo two > conftest.two | |
3721 | mkdir conftest.dir | |
3722 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3723 | test -s conftest.one && test -s conftest.two && | |
3724 | test -s conftest.dir/conftest.one && | |
3725 | test -s conftest.dir/conftest.two | |
3726 | then | |
3727 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3728 | break 3 | |
3729 | fi | |
430b7832 MM |
3730 | fi |
3731 | fi | |
25ed0b71 KW |
3732 | done |
3733 | done | |
3734 | ;; | |
3735 | esac | |
25ed0b71 | 3736 | |
81ecdfbb RW |
3737 | done |
3738 | IFS=$as_save_IFS | |
3739 | ||
3740 | rm -rf conftest.one conftest.two conftest.dir | |
d60d9f65 SS |
3741 | |
3742 | fi | |
3743 | if test "${ac_cv_path_install+set}" = set; then | |
9255ee31 | 3744 | INSTALL=$ac_cv_path_install |
d60d9f65 | 3745 | else |
81ecdfbb RW |
3746 | # As a last resort, use the slow shell script. Don't cache a |
3747 | # value for INSTALL within a source directory, because that will | |
d60d9f65 | 3748 | # break other packages using the cache if that directory is |
81ecdfbb | 3749 | # removed, or if the value is a relative name. |
9255ee31 | 3750 | INSTALL=$ac_install_sh |
d60d9f65 SS |
3751 | fi |
3752 | fi | |
81ecdfbb RW |
3753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3754 | $as_echo "$INSTALL" >&6; } | |
d60d9f65 SS |
3755 | |
3756 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3757 | # It thinks the first close brace ends the variable substitution. | |
3758 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3759 | ||
9255ee31 | 3760 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
c862e87b | 3761 | |
d60d9f65 SS |
3762 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3763 | ||
5836a818 PP |
3764 | # Extract the first word of "ar", so it can be a program name with args. |
3765 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
3766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3767 | $as_echo_n "checking for $ac_word... " >&6; } | |
3768 | if test "${ac_cv_prog_AR+set}" = set; then : | |
3769 | $as_echo_n "(cached) " >&6 | |
c862e87b JM |
3770 | else |
3771 | if test -n "$AR"; then | |
3772 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3773 | else | |
25ed0b71 KW |
3774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3775 | for as_dir in $PATH | |
3776 | do | |
3777 | IFS=$as_save_IFS | |
3778 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3779 | for ac_exec_ext in '' $ac_executable_extensions; do |
3780 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5836a818 | 3781 | ac_cv_prog_AR="" |
81ecdfbb | 3782 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
3783 | break 2 |
3784 | fi | |
3785 | done | |
81ecdfbb RW |
3786 | done |
3787 | IFS=$as_save_IFS | |
9255ee31 | 3788 | |
5836a818 | 3789 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9255ee31 EZ |
3790 | fi |
3791 | fi | |
3792 | AR=$ac_cv_prog_AR | |
3793 | if test -n "$AR"; then | |
81ecdfbb RW |
3794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
3795 | $as_echo "$AR" >&6; } | |
9255ee31 | 3796 | else |
81ecdfbb RW |
3797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3798 | $as_echo "no" >&6; } | |
9255ee31 EZ |
3799 | fi |
3800 | ||
81ecdfbb | 3801 | |
9255ee31 EZ |
3802 | test -n "$ARFLAGS" || ARFLAGS="cr" |
3803 | if test -n "$ac_tool_prefix"; then | |
3804 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3805 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
3806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3807 | $as_echo_n "checking for $ac_word... " >&6; } | |
3808 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
3809 | $as_echo_n "(cached) " >&6 | |
9255ee31 EZ |
3810 | else |
3811 | if test -n "$RANLIB"; then | |
3812 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3813 | else | |
25ed0b71 KW |
3814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3815 | for as_dir in $PATH | |
3816 | do | |
3817 | IFS=$as_save_IFS | |
3818 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3819 | for ac_exec_ext in '' $ac_executable_extensions; do |
3820 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
25ed0b71 | 3821 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 3822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
3823 | break 2 |
3824 | fi | |
3825 | done | |
81ecdfbb RW |
3826 | done |
3827 | IFS=$as_save_IFS | |
9255ee31 EZ |
3828 | |
3829 | fi | |
3830 | fi | |
3831 | RANLIB=$ac_cv_prog_RANLIB | |
3832 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
3833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
3834 | $as_echo "$RANLIB" >&6; } | |
9255ee31 | 3835 | else |
81ecdfbb RW |
3836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3837 | $as_echo "no" >&6; } | |
9255ee31 EZ |
3838 | fi |
3839 | ||
81ecdfbb | 3840 | |
9255ee31 EZ |
3841 | fi |
3842 | if test -z "$ac_cv_prog_RANLIB"; then | |
3843 | ac_ct_RANLIB=$RANLIB | |
3844 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3845 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3847 | $as_echo_n "checking for $ac_word... " >&6; } | |
3848 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
3849 | $as_echo_n "(cached) " >&6 | |
9255ee31 EZ |
3850 | else |
3851 | if test -n "$ac_ct_RANLIB"; then | |
3852 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3853 | else | |
25ed0b71 KW |
3854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3855 | for as_dir in $PATH | |
3856 | do | |
3857 | IFS=$as_save_IFS | |
3858 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3859 | for ac_exec_ext in '' $ac_executable_extensions; do |
3860 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
25ed0b71 | 3861 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 3862 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
3863 | break 2 |
3864 | fi | |
3865 | done | |
81ecdfbb RW |
3866 | done |
3867 | IFS=$as_save_IFS | |
9255ee31 | 3868 | |
9255ee31 EZ |
3869 | fi |
3870 | fi | |
3871 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3872 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
3873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
3874 | $as_echo "$ac_ct_RANLIB" >&6; } | |
9255ee31 | 3875 | else |
81ecdfbb RW |
3876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3877 | $as_echo "no" >&6; } | |
9255ee31 EZ |
3878 | fi |
3879 | ||
81ecdfbb RW |
3880 | if test "x$ac_ct_RANLIB" = x; then |
3881 | RANLIB=":" | |
3882 | else | |
3883 | case $cross_compiling:$ac_tool_warned in | |
3884 | yes:) | |
3885 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3886 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3887 | ac_tool_warned=yes ;; | |
3888 | esac | |
3889 | RANLIB=$ac_ct_RANLIB | |
3890 | fi | |
9255ee31 EZ |
3891 | else |
3892 | RANLIB="$ac_cv_prog_RANLIB" | |
3893 | fi | |
3894 | ||
9255ee31 | 3895 | |
25ed0b71 | 3896 | MAKE_SHELL=/bin/sh |
9255ee31 | 3897 | |
9255ee31 | 3898 | |
81ecdfbb RW |
3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
3900 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
3901 | if test "${ac_cv_c_const+set}" = set; then : | |
3902 | $as_echo_n "(cached) " >&6 | |
9255ee31 | 3903 | else |
81ecdfbb | 3904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 3905 | /* end confdefs.h. */ |
9255ee31 EZ |
3906 | |
3907 | int | |
3908 | main () | |
3909 | { | |
3910 | /* FIXME: Include the comments suggested by Paul. */ | |
3911 | #ifndef __cplusplus | |
3912 | /* Ultrix mips cc rejects this. */ | |
3913 | typedef int charset[2]; | |
81ecdfbb | 3914 | const charset cs; |
9255ee31 | 3915 | /* SunOS 4.1.1 cc rejects this. */ |
81ecdfbb RW |
3916 | char const *const *pcpcc; |
3917 | char **ppc; | |
9255ee31 EZ |
3918 | /* NEC SVR4.0.2 mips cc rejects this. */ |
3919 | struct point {int x, y;}; | |
3920 | static struct point const zero = {0,0}; | |
3921 | /* AIX XL C 1.02.0.0 rejects this. | |
3922 | It does not let you subtract one const X* pointer from another in | |
3923 | an arm of an if-expression whose if-part is not a constant | |
3924 | expression */ | |
3925 | const char *g = "string"; | |
81ecdfbb | 3926 | pcpcc = &g + (g ? g-g : 0); |
9255ee31 | 3927 | /* HPUX 7.0 cc rejects these. */ |
81ecdfbb RW |
3928 | ++pcpcc; |
3929 | ppc = (char**) pcpcc; | |
3930 | pcpcc = (char const *const *) ppc; | |
9255ee31 EZ |
3931 | { /* SCO 3.2v4 cc rejects this. */ |
3932 | char *t; | |
3933 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3934 | ||
25ed0b71 | 3935 | *t++ = 0; |
81ecdfbb | 3936 | if (s) return 0; |
25ed0b71 KW |
3937 | } |
3938 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3939 | int x[] = {25, 17}; | |
3940 | const int *foo = &x[0]; | |
3941 | ++foo; | |
3942 | } | |
3943 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3944 | typedef const int *iptr; | |
3945 | iptr p = 0; | |
3946 | ++p; | |
3947 | } | |
3948 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3949 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3950 | struct s { int j; const int *ap[3]; }; | |
3951 | struct s *b; b->j = 5; | |
3952 | } | |
3953 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3954 | const int foo = 10; | |
81ecdfbb | 3955 | if (!foo) return 0; |
25ed0b71 | 3956 | } |
81ecdfbb | 3957 | return !cs[0] && !zero.x; |
25ed0b71 | 3958 | #endif |
9255ee31 | 3959 | |
25ed0b71 KW |
3960 | ; |
3961 | return 0; | |
3962 | } | |
9255ee31 | 3963 | _ACEOF |
81ecdfbb | 3964 | if ac_fn_c_try_compile "$LINENO"; then : |
25ed0b71 | 3965 | ac_cv_c_const=yes |
9255ee31 | 3966 | else |
81ecdfbb | 3967 | ac_cv_c_const=no |
c862e87b | 3968 | fi |
81ecdfbb | 3969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c862e87b | 3970 | fi |
81ecdfbb RW |
3971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
3972 | $as_echo "$ac_cv_c_const" >&6; } | |
25ed0b71 KW |
3973 | if test $ac_cv_c_const = no; then |
3974 | ||
81ecdfbb | 3975 | $as_echo "#define const /**/" >>confdefs.h |
9255ee31 | 3976 | |
c862e87b JM |
3977 | fi |
3978 | ||
81ecdfbb RW |
3979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 |
3980 | $as_echo_n "checking for function prototypes... " >&6; } | |
3981 | if test "$ac_cv_prog_cc_c89" != no; then | |
3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3983 | $as_echo "yes" >&6; } | |
25ed0b71 | 3984 | |
81ecdfbb | 3985 | $as_echo "#define PROTOTYPES 1" >>confdefs.h |
25ed0b71 KW |
3986 | |
3987 | ||
81ecdfbb | 3988 | $as_echo "#define __PROTOTYPES 1" >>confdefs.h |
25ed0b71 KW |
3989 | |
3990 | else | |
81ecdfbb RW |
3991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3992 | $as_echo "no" >&6; } | |
25ed0b71 KW |
3993 | fi |
3994 | ||
81ecdfbb RW |
3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
3996 | $as_echo_n "checking whether char is unsigned... " >&6; } | |
3997 | if test "${ac_cv_c_char_unsigned+set}" = set; then : | |
3998 | $as_echo_n "(cached) " >&6 | |
d60d9f65 | 3999 | else |
81ecdfbb | 4000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4001 | /* end confdefs.h. */ |
9255ee31 EZ |
4002 | $ac_includes_default |
4003 | int | |
4004 | main () | |
4005 | { | |
25ed0b71 KW |
4006 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
4007 | test_array [0] = 0 | |
4008 | ||
9255ee31 EZ |
4009 | ; |
4010 | return 0; | |
4011 | } | |
4012 | _ACEOF | |
81ecdfbb | 4013 | if ac_fn_c_try_compile "$LINENO"; then : |
9255ee31 | 4014 | ac_cv_c_char_unsigned=no |
d60d9f65 | 4015 | else |
81ecdfbb | 4016 | ac_cv_c_char_unsigned=yes |
d60d9f65 | 4017 | fi |
81ecdfbb | 4018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4019 | fi |
81ecdfbb RW |
4020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
4021 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | |
9255ee31 | 4022 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
81ecdfbb | 4023 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
d60d9f65 | 4024 | |
9255ee31 | 4025 | fi |
d60d9f65 | 4026 | |
cc88a640 JK |
4027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
4028 | $as_echo_n "checking for working volatile... " >&6; } | |
4029 | if test "${ac_cv_c_volatile+set}" = set; then : | |
4030 | $as_echo_n "(cached) " >&6 | |
4031 | else | |
4032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4033 | /* end confdefs.h. */ | |
4034 | ||
4035 | int | |
4036 | main () | |
4037 | { | |
4038 | ||
4039 | volatile int x; | |
4040 | int * volatile y = (int *) 0; | |
4041 | return !x && !y; | |
4042 | ; | |
4043 | return 0; | |
4044 | } | |
4045 | _ACEOF | |
4046 | if ac_fn_c_try_compile "$LINENO"; then : | |
4047 | ac_cv_c_volatile=yes | |
4048 | else | |
4049 | ac_cv_c_volatile=no | |
4050 | fi | |
4051 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4052 | fi | |
4053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 | |
4054 | $as_echo "$ac_cv_c_volatile" >&6; } | |
4055 | if test $ac_cv_c_volatile = no; then | |
4056 | ||
4057 | $as_echo "#define volatile /**/" >>confdefs.h | |
4058 | ||
4059 | fi | |
4060 | ||
25ed0b71 | 4061 | |
81ecdfbb RW |
4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
4063 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
4064 | if test "${ac_cv_type_signal+set}" = set; then : | |
4065 | $as_echo_n "(cached) " >&6 | |
d60d9f65 | 4066 | else |
81ecdfbb | 4067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4068 | /* end confdefs.h. */ |
d60d9f65 SS |
4069 | #include <sys/types.h> |
4070 | #include <signal.h> | |
d60d9f65 | 4071 | |
9255ee31 EZ |
4072 | int |
4073 | main () | |
4074 | { | |
81ecdfbb | 4075 | return *(signal (0, 0)) (0) == 1; |
9255ee31 EZ |
4076 | ; |
4077 | return 0; | |
4078 | } | |
4079 | _ACEOF | |
81ecdfbb RW |
4080 | if ac_fn_c_try_compile "$LINENO"; then : |
4081 | ac_cv_type_signal=int | |
d60d9f65 | 4082 | else |
81ecdfbb | 4083 | ac_cv_type_signal=void |
d60d9f65 | 4084 | fi |
81ecdfbb | 4085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4086 | fi |
81ecdfbb RW |
4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
4088 | $as_echo "$ac_cv_type_signal" >&6; } | |
d60d9f65 | 4089 | |
25ed0b71 | 4090 | cat >>confdefs.h <<_ACEOF |
d60d9f65 | 4091 | #define RETSIGTYPE $ac_cv_type_signal |
25ed0b71 KW |
4092 | _ACEOF |
4093 | ||
d60d9f65 | 4094 | |
25ed0b71 | 4095 | |
81ecdfbb RW |
4096 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
4097 | if test "x$ac_cv_type_size_t" = x""yes; then : | |
25ed0b71 | 4098 | |
9255ee31 EZ |
4099 | else |
4100 | ||
25ed0b71 | 4101 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4102 | #define size_t unsigned int |
25ed0b71 | 4103 | _ACEOF |
9255ee31 EZ |
4104 | |
4105 | fi | |
4106 | ||
81ecdfbb RW |
4107 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
4108 | if test "x$ac_cv_type_ssize_t" = x""yes; then : | |
25ed0b71 | 4109 | |
9255ee31 EZ |
4110 | else |
4111 | ||
25ed0b71 | 4112 | cat >>confdefs.h <<_ACEOF |
9255ee31 | 4113 | #define ssize_t int |
25ed0b71 | 4114 | _ACEOF |
d60d9f65 | 4115 | |
9255ee31 | 4116 | fi |
d60d9f65 | 4117 | |
25ed0b71 | 4118 | |
81ecdfbb RW |
4119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4120 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4121 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4122 | $as_echo_n "(cached) " >&6 | |
5bdf8622 | 4123 | else |
81ecdfbb | 4124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 DJ |
4125 | /* end confdefs.h. */ |
4126 | #include <stdlib.h> | |
4127 | #include <stdarg.h> | |
4128 | #include <string.h> | |
4129 | #include <float.h> | |
4130 | ||
4131 | int | |
4132 | main () | |
4133 | { | |
4134 | ||
4135 | ; | |
4136 | return 0; | |
4137 | } | |
4138 | _ACEOF | |
81ecdfbb | 4139 | if ac_fn_c_try_compile "$LINENO"; then : |
5bdf8622 DJ |
4140 | ac_cv_header_stdc=yes |
4141 | else | |
81ecdfbb | 4142 | ac_cv_header_stdc=no |
5bdf8622 | 4143 | fi |
81ecdfbb | 4144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5bdf8622 DJ |
4145 | |
4146 | if test $ac_cv_header_stdc = yes; then | |
4147 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 4148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 DJ |
4149 | /* end confdefs.h. */ |
4150 | #include <string.h> | |
4151 | ||
4152 | _ACEOF | |
4153 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4154 | $EGREP "memchr" >/dev/null 2>&1; then : |
4155 | ||
5bdf8622 DJ |
4156 | else |
4157 | ac_cv_header_stdc=no | |
4158 | fi | |
4159 | rm -f conftest* | |
4160 | ||
4161 | fi | |
4162 | ||
4163 | if test $ac_cv_header_stdc = yes; then | |
4164 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 4165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 DJ |
4166 | /* end confdefs.h. */ |
4167 | #include <stdlib.h> | |
4168 | ||
4169 | _ACEOF | |
4170 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4171 | $EGREP "free" >/dev/null 2>&1; then : |
4172 | ||
5bdf8622 DJ |
4173 | else |
4174 | ac_cv_header_stdc=no | |
4175 | fi | |
4176 | rm -f conftest* | |
4177 | ||
4178 | fi | |
4179 | ||
4180 | if test $ac_cv_header_stdc = yes; then | |
4181 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 4182 | if test "$cross_compiling" = yes; then : |
5bdf8622 DJ |
4183 | : |
4184 | else | |
81ecdfbb | 4185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 DJ |
4186 | /* end confdefs.h. */ |
4187 | #include <ctype.h> | |
81ecdfbb | 4188 | #include <stdlib.h> |
5bdf8622 DJ |
4189 | #if ((' ' & 0x0FF) == 0x020) |
4190 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4191 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4192 | #else | |
4193 | # define ISLOWER(c) \ | |
4194 | (('a' <= (c) && (c) <= 'i') \ | |
4195 | || ('j' <= (c) && (c) <= 'r') \ | |
4196 | || ('s' <= (c) && (c) <= 'z')) | |
4197 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4198 | #endif | |
4199 | ||
4200 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4201 | int | |
4202 | main () | |
4203 | { | |
4204 | int i; | |
4205 | for (i = 0; i < 256; i++) | |
4206 | if (XOR (islower (i), ISLOWER (i)) | |
4207 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
4208 | return 2; |
4209 | return 0; | |
5bdf8622 DJ |
4210 | } |
4211 | _ACEOF | |
81ecdfbb | 4212 | if ac_fn_c_try_run "$LINENO"; then : |
5bdf8622 | 4213 | |
81ecdfbb RW |
4214 | else |
4215 | ac_cv_header_stdc=no | |
5bdf8622 | 4216 | fi |
81ecdfbb RW |
4217 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4218 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5bdf8622 | 4219 | fi |
81ecdfbb | 4220 | |
5bdf8622 DJ |
4221 | fi |
4222 | fi | |
81ecdfbb RW |
4223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4224 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5bdf8622 DJ |
4225 | if test $ac_cv_header_stdc = yes; then |
4226 | ||
81ecdfbb | 4227 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
5bdf8622 DJ |
4228 | |
4229 | fi | |
4230 | ||
4231 | ||
81ecdfbb RW |
4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 |
4233 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } | |
4234 | if test "${ac_cv_header_stat_broken+set}" = set; then : | |
4235 | $as_echo_n "(cached) " >&6 | |
d60d9f65 | 4236 | else |
81ecdfbb | 4237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4238 | /* end confdefs.h. */ |
d60d9f65 SS |
4239 | #include <sys/types.h> |
4240 | #include <sys/stat.h> | |
4241 | ||
81ecdfbb RW |
4242 | #if defined S_ISBLK && defined S_IFDIR |
4243 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; | |
d60d9f65 SS |
4244 | #endif |
4245 | ||
81ecdfbb RW |
4246 | #if defined S_ISBLK && defined S_IFCHR |
4247 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; | |
d60d9f65 SS |
4248 | #endif |
4249 | ||
81ecdfbb RW |
4250 | #if defined S_ISLNK && defined S_IFREG |
4251 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; | |
d60d9f65 SS |
4252 | #endif |
4253 | ||
81ecdfbb RW |
4254 | #if defined S_ISSOCK && defined S_IFREG |
4255 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; | |
d60d9f65 SS |
4256 | #endif |
4257 | ||
9255ee31 | 4258 | _ACEOF |
81ecdfbb | 4259 | if ac_fn_c_try_compile "$LINENO"; then : |
d60d9f65 | 4260 | ac_cv_header_stat_broken=no |
81ecdfbb RW |
4261 | else |
4262 | ac_cv_header_stat_broken=yes | |
d60d9f65 | 4263 | fi |
81ecdfbb | 4264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4265 | fi |
81ecdfbb RW |
4266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 |
4267 | $as_echo "$ac_cv_header_stat_broken" >&6; } | |
d60d9f65 | 4268 | if test $ac_cv_header_stat_broken = yes; then |
9255ee31 | 4269 | |
81ecdfbb | 4270 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
d60d9f65 SS |
4271 | |
4272 | fi | |
4273 | ||
4274 | ac_header_dirent=no | |
9255ee31 | 4275 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
81ecdfbb RW |
4276 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
4278 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
4279 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : | |
4280 | $as_echo_n "(cached) " >&6 | |
4281 | else | |
4282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 4283 | /* end confdefs.h. */ |
d60d9f65 SS |
4284 | #include <sys/types.h> |
4285 | #include <$ac_hdr> | |
9255ee31 EZ |
4286 | |
4287 | int | |
4288 | main () | |
4289 | { | |
4290 | if ((DIR *) 0) | |
4291 | return 0; | |
4292 | ; | |
4293 | return 0; | |
4294 | } | |
4295 | _ACEOF | |
81ecdfbb | 4296 | if ac_fn_c_try_compile "$LINENO"; then : |
9255ee31 | 4297 | eval "$as_ac_Header=yes" |
d60d9f65 | 4298 | else |
81ecdfbb | 4299 | eval "$as_ac_Header=no" |
d60d9f65 | 4300 | fi |
81ecdfbb | 4301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4302 | fi |
81ecdfbb RW |
4303 | eval ac_res=\$$as_ac_Header |
4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4305 | $as_echo "$ac_res" >&6; } | |
4306 | eval as_val=\$$as_ac_Header | |
4307 | if test "x$as_val" = x""yes; then : | |
25ed0b71 | 4308 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4309 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
25ed0b71 | 4310 | _ACEOF |
9255ee31 EZ |
4311 | |
4312 | ac_header_dirent=$ac_hdr; break | |
d60d9f65 | 4313 | fi |
9255ee31 | 4314 | |
d60d9f65 SS |
4315 | done |
4316 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4317 | if test $ac_header_dirent = dirent.h; then | |
81ecdfbb RW |
4318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
4319 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4320 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4321 | $as_echo_n "(cached) " >&6 | |
d60d9f65 | 4322 | else |
25ed0b71 | 4323 | ac_func_search_save_LIBS=$LIBS |
81ecdfbb | 4324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4325 | /* end confdefs.h. */ |
9255ee31 | 4326 | |
81ecdfbb RW |
4327 | /* Override any GCC internal prototype to avoid an error. |
4328 | Use char because int might match the return type of a GCC | |
4329 | builtin and then its argument prototype would still apply. */ | |
9255ee31 EZ |
4330 | #ifdef __cplusplus |
4331 | extern "C" | |
4332 | #endif | |
9255ee31 EZ |
4333 | char opendir (); |
4334 | int | |
4335 | main () | |
4336 | { | |
81ecdfbb | 4337 | return opendir (); |
9255ee31 EZ |
4338 | ; |
4339 | return 0; | |
4340 | } | |
4341 | _ACEOF | |
81ecdfbb RW |
4342 | for ac_lib in '' dir; do |
4343 | if test -z "$ac_lib"; then | |
4344 | ac_res="none required" | |
4345 | else | |
4346 | ac_res=-l$ac_lib | |
25ed0b71 | 4347 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
4348 | fi |
4349 | if ac_fn_c_try_link "$LINENO"; then : | |
4350 | ac_cv_search_opendir=$ac_res | |
4351 | fi | |
4352 | rm -f core conftest.err conftest.$ac_objext \ | |
4353 | conftest$ac_exeext | |
4354 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4355 | break | |
4356 | fi | |
4357 | done | |
4358 | if test "${ac_cv_search_opendir+set}" = set; then : | |
25ed0b71 | 4359 | |
25ed0b71 | 4360 | else |
81ecdfbb | 4361 | ac_cv_search_opendir=no |
25ed0b71 | 4362 | fi |
81ecdfbb | 4363 | rm conftest.$ac_ext |
25ed0b71 | 4364 | LIBS=$ac_func_search_save_LIBS |
d60d9f65 | 4365 | fi |
81ecdfbb RW |
4366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
4367 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4368 | ac_res=$ac_cv_search_opendir | |
4369 | if test "$ac_res" != no; then : | |
4370 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
25ed0b71 | 4371 | |
d60d9f65 SS |
4372 | fi |
4373 | ||
4374 | else | |
81ecdfbb RW |
4375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
4376 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4377 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4378 | $as_echo_n "(cached) " >&6 | |
d60d9f65 | 4379 | else |
25ed0b71 | 4380 | ac_func_search_save_LIBS=$LIBS |
81ecdfbb | 4381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4382 | /* end confdefs.h. */ |
9255ee31 | 4383 | |
81ecdfbb RW |
4384 | /* Override any GCC internal prototype to avoid an error. |
4385 | Use char because int might match the return type of a GCC | |
4386 | builtin and then its argument prototype would still apply. */ | |
9255ee31 EZ |
4387 | #ifdef __cplusplus |
4388 | extern "C" | |
4389 | #endif | |
9255ee31 EZ |
4390 | char opendir (); |
4391 | int | |
4392 | main () | |
4393 | { | |
81ecdfbb | 4394 | return opendir (); |
9255ee31 EZ |
4395 | ; |
4396 | return 0; | |
4397 | } | |
4398 | _ACEOF | |
81ecdfbb RW |
4399 | for ac_lib in '' x; do |
4400 | if test -z "$ac_lib"; then | |
4401 | ac_res="none required" | |
4402 | else | |
4403 | ac_res=-l$ac_lib | |
25ed0b71 | 4404 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
4405 | fi |
4406 | if ac_fn_c_try_link "$LINENO"; then : | |
4407 | ac_cv_search_opendir=$ac_res | |
4408 | fi | |
4409 | rm -f core conftest.err conftest.$ac_objext \ | |
4410 | conftest$ac_exeext | |
4411 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4412 | break | |
4413 | fi | |
4414 | done | |
4415 | if test "${ac_cv_search_opendir+set}" = set; then : | |
25ed0b71 | 4416 | |
25ed0b71 | 4417 | else |
81ecdfbb | 4418 | ac_cv_search_opendir=no |
d60d9f65 | 4419 | fi |
81ecdfbb | 4420 | rm conftest.$ac_ext |
25ed0b71 | 4421 | LIBS=$ac_func_search_save_LIBS |
d60d9f65 | 4422 | fi |
81ecdfbb RW |
4423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
4424 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4425 | ac_res=$ac_cv_search_opendir | |
4426 | if test "$ac_res" != no; then : | |
4427 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
d60d9f65 SS |
4428 | |
4429 | fi | |
4430 | ||
25ed0b71 KW |
4431 | fi |
4432 | ||
4433 | ||
5836a818 | 4434 | for ac_func in fcntl kill lstat |
81ecdfbb RW |
4435 | do : |
4436 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4437 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
4438 | eval as_val=\$$as_ac_var | |
4439 | if test "x$as_val" = x""yes; then : | |
4440 | cat >>confdefs.h <<_ACEOF | |
4441 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4442 | _ACEOF | |
25ed0b71 | 4443 | |
81ecdfbb RW |
4444 | fi |
4445 | done | |
25ed0b71 | 4446 | |
5836a818 | 4447 | for ac_func in memmove putenv select setenv setlocale \ |
81ecdfbb RW |
4448 | strcasecmp strpbrk tcgetattr vsnprintf |
4449 | do : | |
4450 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4451 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
4452 | eval as_val=\$$as_ac_var | |
4453 | if test "x$as_val" = x""yes; then : | |
4454 | cat >>confdefs.h <<_ACEOF | |
4455 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4456 | _ACEOF | |
25ed0b71 | 4457 | |
81ecdfbb RW |
4458 | fi |
4459 | done | |
4460 | ||
4461 | for ac_func in isascii isxdigit | |
4462 | do : | |
4463 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4464 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
4465 | eval as_val=\$$as_ac_var | |
4466 | if test "x$as_val" = x""yes; then : | |
4467 | cat >>confdefs.h <<_ACEOF | |
4468 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25ed0b71 | 4469 | _ACEOF |
430b7832 | 4470 | |
81ecdfbb RW |
4471 | fi |
4472 | done | |
430b7832 | 4473 | |
81ecdfbb RW |
4474 | for ac_func in getpwent getpwnam getpwuid |
4475 | do : | |
4476 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4477 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
4478 | eval as_val=\$$as_ac_var | |
4479 | if test "x$as_val" = x""yes; then : | |
4480 | cat >>confdefs.h <<_ACEOF | |
4481 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4482 | _ACEOF | |
430b7832 | 4483 | |
81ecdfbb RW |
4484 | fi |
4485 | done | |
430b7832 | 4486 | |
d60d9f65 | 4487 | |
81ecdfbb RW |
4488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5 |
4489 | $as_echo_n "checking for working strcoll... " >&6; } | |
4490 | if test "${ac_cv_func_strcoll_works+set}" = set; then : | |
4491 | $as_echo_n "(cached) " >&6 | |
4492 | else | |
4493 | if test "$cross_compiling" = yes; then : | |
4494 | ac_cv_func_strcoll_works=no | |
4495 | else | |
4496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4497 | /* end confdefs.h. */ | |
4498 | $ac_includes_default | |
25ed0b71 KW |
4499 | int |
4500 | main () | |
4501 | { | |
81ecdfbb RW |
4502 | return (strcoll ("abc", "def") >= 0 || |
4503 | strcoll ("ABC", "DEF") >= 0 || | |
4504 | strcoll ("123", "456") >= 0) | |
9255ee31 EZ |
4505 | ; |
4506 | return 0; | |
4507 | } | |
4508 | _ACEOF | |
81ecdfbb RW |
4509 | if ac_fn_c_try_run "$LINENO"; then : |
4510 | ac_cv_func_strcoll_works=yes | |
d60d9f65 | 4511 | else |
81ecdfbb RW |
4512 | ac_cv_func_strcoll_works=no |
4513 | fi | |
4514 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4515 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4516 | fi | |
25ed0b71 | 4517 | |
d60d9f65 | 4518 | fi |
81ecdfbb RW |
4519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5 |
4520 | $as_echo "$ac_cv_func_strcoll_works" >&6; } | |
4521 | if test $ac_cv_func_strcoll_works = yes; then | |
4522 | ||
4523 | $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h | |
4524 | ||
d60d9f65 | 4525 | fi |
81ecdfbb RW |
4526 | |
4527 | ||
5836a818 | 4528 | for ac_header in fcntl.h unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \ |
81ecdfbb RW |
4529 | limits.h locale.h pwd.h memory.h termcap.h termios.h termio.h |
4530 | do : | |
4531 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4532 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4533 | eval as_val=\$$as_ac_Header | |
4534 | if test "x$as_val" = x""yes; then : | |
25ed0b71 | 4535 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4536 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
25ed0b71 | 4537 | _ACEOF |
9255ee31 | 4538 | |
d60d9f65 | 4539 | fi |
81ecdfbb | 4540 | |
d60d9f65 SS |
4541 | done |
4542 | ||
5836a818 | 4543 | for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h |
81ecdfbb RW |
4544 | do : |
4545 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4546 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4547 | eval as_val=\$$as_ac_Header | |
4548 | if test "x$as_val" = x""yes; then : | |
4549 | cat >>confdefs.h <<_ACEOF | |
4550 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4551 | _ACEOF | |
25ed0b71 | 4552 | |
81ecdfbb | 4553 | fi |
5bdf8622 | 4554 | |
81ecdfbb | 4555 | done |
5bdf8622 DJ |
4556 | |
4557 | ||
81ecdfbb RW |
4558 | for ac_header in sys/ptem.h |
4559 | do : | |
4560 | ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" " | |
4561 | #if HAVE_SYS_STREAM_H | |
4562 | # include <sys/stream.h> | |
4563 | #endif | |
5bdf8622 | 4564 | |
81ecdfbb RW |
4565 | " |
4566 | if test "x$ac_cv_header_sys_ptem_h" = x""yes; then : | |
4567 | cat >>confdefs.h <<_ACEOF | |
4568 | #define HAVE_SYS_PTEM_H 1 | |
4569 | _ACEOF | |
5bdf8622 | 4570 | |
81ecdfbb | 4571 | fi |
5bdf8622 | 4572 | |
81ecdfbb | 4573 | done |
5bdf8622 DJ |
4574 | |
4575 | ||
cc88a640 JK |
4576 | # Check whether --enable-largefile was given. |
4577 | if test "${enable_largefile+set}" = set; then : | |
4578 | enableval=$enable_largefile; | |
4579 | fi | |
4580 | ||
4581 | if test "$enable_largefile" != no; then | |
4582 | ||
4583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
4584 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
4585 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : | |
4586 | $as_echo_n "(cached) " >&6 | |
4587 | else | |
4588 | ac_cv_sys_largefile_CC=no | |
4589 | if test "$GCC" != yes; then | |
4590 | ac_save_CC=$CC | |
4591 | while :; do | |
4592 | # IRIX 6.2 and later do not support large files by default, | |
4593 | # so use the C compiler's -n32 option if that helps. | |
4594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4595 | /* end confdefs.h. */ | |
4596 | #include <sys/types.h> | |
4597 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4598 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4599 | since some C++ compilers masquerading as C compilers | |
4600 | incorrectly reject 9223372036854775807. */ | |
4601 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4602 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4603 | && LARGE_OFF_T % 2147483647 == 1) | |
4604 | ? 1 : -1]; | |
4605 | int | |
4606 | main () | |
4607 | { | |
4608 | ||
4609 | ; | |
4610 | return 0; | |
4611 | } | |
4612 | _ACEOF | |
4613 | if ac_fn_c_try_compile "$LINENO"; then : | |
4614 | break | |
4615 | fi | |
4616 | rm -f core conftest.err conftest.$ac_objext | |
4617 | CC="$CC -n32" | |
4618 | if ac_fn_c_try_compile "$LINENO"; then : | |
4619 | ac_cv_sys_largefile_CC=' -n32'; break | |
4620 | fi | |
4621 | rm -f core conftest.err conftest.$ac_objext | |
4622 | break | |
4623 | done | |
4624 | CC=$ac_save_CC | |
4625 | rm -f conftest.$ac_ext | |
4626 | fi | |
4627 | fi | |
4628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
4629 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
4630 | if test "$ac_cv_sys_largefile_CC" != no; then | |
4631 | CC=$CC$ac_cv_sys_largefile_CC | |
4632 | fi | |
4633 | ||
4634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
4635 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
4636 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | |
4637 | $as_echo_n "(cached) " >&6 | |
4638 | else | |
4639 | while :; do | |
4640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4641 | /* end confdefs.h. */ | |
4642 | #include <sys/types.h> | |
4643 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4644 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4645 | since some C++ compilers masquerading as C compilers | |
4646 | incorrectly reject 9223372036854775807. */ | |
4647 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4648 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4649 | && LARGE_OFF_T % 2147483647 == 1) | |
4650 | ? 1 : -1]; | |
4651 | int | |
4652 | main () | |
4653 | { | |
4654 | ||
4655 | ; | |
4656 | return 0; | |
4657 | } | |
4658 | _ACEOF | |
4659 | if ac_fn_c_try_compile "$LINENO"; then : | |
4660 | ac_cv_sys_file_offset_bits=no; break | |
4661 | fi | |
4662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4664 | /* end confdefs.h. */ | |
4665 | #define _FILE_OFFSET_BITS 64 | |
4666 | #include <sys/types.h> | |
4667 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4668 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4669 | since some C++ compilers masquerading as C compilers | |
4670 | incorrectly reject 9223372036854775807. */ | |
4671 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4672 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4673 | && LARGE_OFF_T % 2147483647 == 1) | |
4674 | ? 1 : -1]; | |
4675 | int | |
4676 | main () | |
4677 | { | |
4678 | ||
4679 | ; | |
4680 | return 0; | |
4681 | } | |
4682 | _ACEOF | |
4683 | if ac_fn_c_try_compile "$LINENO"; then : | |
4684 | ac_cv_sys_file_offset_bits=64; break | |
4685 | fi | |
4686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4687 | ac_cv_sys_file_offset_bits=unknown | |
4688 | break | |
4689 | done | |
4690 | fi | |
4691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
4692 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
4693 | case $ac_cv_sys_file_offset_bits in #( | |
4694 | no | unknown) ;; | |
4695 | *) | |
4696 | cat >>confdefs.h <<_ACEOF | |
4697 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4698 | _ACEOF | |
4699 | ;; | |
4700 | esac | |
4701 | rm -rf conftest* | |
4702 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
4703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
4704 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
4705 | if test "${ac_cv_sys_large_files+set}" = set; then : | |
4706 | $as_echo_n "(cached) " >&6 | |
4707 | else | |
4708 | while :; do | |
4709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4710 | /* end confdefs.h. */ | |
4711 | #include <sys/types.h> | |
4712 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4713 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4714 | since some C++ compilers masquerading as C compilers | |
4715 | incorrectly reject 9223372036854775807. */ | |
4716 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4717 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4718 | && LARGE_OFF_T % 2147483647 == 1) | |
4719 | ? 1 : -1]; | |
4720 | int | |
4721 | main () | |
4722 | { | |
4723 | ||
4724 | ; | |
4725 | return 0; | |
4726 | } | |
4727 | _ACEOF | |
4728 | if ac_fn_c_try_compile "$LINENO"; then : | |
4729 | ac_cv_sys_large_files=no; break | |
4730 | fi | |
4731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4733 | /* end confdefs.h. */ | |
4734 | #define _LARGE_FILES 1 | |
4735 | #include <sys/types.h> | |
4736 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4737 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4738 | since some C++ compilers masquerading as C compilers | |
4739 | incorrectly reject 9223372036854775807. */ | |
4740 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4741 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4742 | && LARGE_OFF_T % 2147483647 == 1) | |
4743 | ? 1 : -1]; | |
4744 | int | |
4745 | main () | |
4746 | { | |
4747 | ||
4748 | ; | |
4749 | return 0; | |
4750 | } | |
4751 | _ACEOF | |
4752 | if ac_fn_c_try_compile "$LINENO"; then : | |
4753 | ac_cv_sys_large_files=1; break | |
4754 | fi | |
4755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4756 | ac_cv_sys_large_files=unknown | |
4757 | break | |
4758 | done | |
4759 | fi | |
4760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
4761 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
4762 | case $ac_cv_sys_large_files in #( | |
4763 | no | unknown) ;; | |
4764 | *) | |
4765 | cat >>confdefs.h <<_ACEOF | |
4766 | #define _LARGE_FILES $ac_cv_sys_large_files | |
4767 | _ACEOF | |
4768 | ;; | |
4769 | esac | |
4770 | rm -rf conftest* | |
4771 | fi | |
4772 | fi | |
4773 | ||
4774 | ||
5bdf8622 | 4775 | |
81ecdfbb RW |
4776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5 |
4777 | $as_echo_n "checking for type of signal functions... " >&6; } | |
4778 | if test "${bash_cv_signal_vintage+set}" = set; then : | |
4779 | $as_echo_n "(cached) " >&6 | |
4780 | else | |
5bdf8622 | 4781 | |
81ecdfbb RW |
4782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4783 | /* end confdefs.h. */ | |
4784 | #include <signal.h> | |
4785 | int | |
4786 | main () | |
4787 | { | |
4788 | ||
4789 | sigset_t ss; | |
4790 | struct sigaction sa; | |
4791 | sigemptyset(&ss); sigsuspend(&ss); | |
4792 | sigaction(SIGINT, &sa, (struct sigaction *) 0); | |
4793 | sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0); | |
5bdf8622 | 4794 | |
81ecdfbb RW |
4795 | ; |
4796 | return 0; | |
4797 | } | |
4798 | _ACEOF | |
4799 | if ac_fn_c_try_link "$LINENO"; then : | |
4800 | bash_cv_signal_vintage=posix | |
4801 | else | |
5bdf8622 | 4802 | |
81ecdfbb RW |
4803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4804 | /* end confdefs.h. */ | |
4805 | #include <signal.h> | |
4806 | int | |
4807 | main () | |
5bdf8622 | 4808 | { |
81ecdfbb RW |
4809 | |
4810 | int mask = sigmask(SIGINT); | |
4811 | sigsetmask(mask); sigblock(mask); sigpause(mask); | |
4812 | ||
4813 | ; | |
4814 | return 0; | |
5bdf8622 | 4815 | } |
81ecdfbb RW |
4816 | _ACEOF |
4817 | if ac_fn_c_try_link "$LINENO"; then : | |
4818 | bash_cv_signal_vintage=4.2bsd | |
4819 | else | |
5bdf8622 | 4820 | |
81ecdfbb RW |
4821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4822 | /* end confdefs.h. */ | |
4823 | ||
4824 | #include <signal.h> | |
4825 | RETSIGTYPE foo() { } | |
5bdf8622 DJ |
4826 | int |
4827 | main () | |
4828 | { | |
81ecdfbb RW |
4829 | |
4830 | int mask = sigmask(SIGINT); | |
4831 | sigset(SIGINT, foo); sigrelse(SIGINT); | |
4832 | sighold(SIGINT); sigpause(SIGINT); | |
4833 | ||
5bdf8622 DJ |
4834 | ; |
4835 | return 0; | |
4836 | } | |
4837 | _ACEOF | |
81ecdfbb RW |
4838 | if ac_fn_c_try_link "$LINENO"; then : |
4839 | bash_cv_signal_vintage=svr3 | |
5bdf8622 | 4840 | else |
81ecdfbb | 4841 | bash_cv_signal_vintage=v7 |
5bdf8622 | 4842 | |
5bdf8622 | 4843 | fi |
81ecdfbb RW |
4844 | rm -f core conftest.err conftest.$ac_objext \ |
4845 | conftest$ac_exeext conftest.$ac_ext | |
4846 | ||
5bdf8622 | 4847 | fi |
81ecdfbb RW |
4848 | rm -f core conftest.err conftest.$ac_objext \ |
4849 | conftest$ac_exeext conftest.$ac_ext | |
5bdf8622 DJ |
4850 | |
4851 | fi | |
81ecdfbb RW |
4852 | rm -f core conftest.err conftest.$ac_objext \ |
4853 | conftest$ac_exeext conftest.$ac_ext | |
5bdf8622 | 4854 | |
81ecdfbb | 4855 | fi |
5bdf8622 | 4856 | |
81ecdfbb RW |
4857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5 |
4858 | $as_echo "$bash_cv_signal_vintage" >&6; } | |
4859 | if test "$bash_cv_signal_vintage" = posix; then | |
4860 | $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h | |
5bdf8622 | 4861 | |
81ecdfbb RW |
4862 | elif test "$bash_cv_signal_vintage" = "4.2bsd"; then |
4863 | $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h | |
5bdf8622 | 4864 | |
81ecdfbb RW |
4865 | elif test "$bash_cv_signal_vintage" = svr3; then |
4866 | $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h | |
5bdf8622 | 4867 | |
81ecdfbb RW |
4868 | fi |
4869 | ||
4870 | ||
4871 | ||
4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5 | |
4873 | $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; } | |
4874 | if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then : | |
4875 | $as_echo_n "(cached) " >&6 | |
4876 | else | |
4877 | if test "$cross_compiling" = yes; then : | |
4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5 | |
4879 | $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;} | |
4880 | bash_cv_must_reinstall_sighandlers=no | |
4881 | ||
4882 | else | |
4883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4884 | /* end confdefs.h. */ | |
4885 | ||
4886 | #include <signal.h> | |
4887 | #ifdef HAVE_UNISTD_H | |
4888 | #include <unistd.h> | |
5bdf8622 DJ |
4889 | #endif |
4890 | ||
81ecdfbb | 4891 | typedef RETSIGTYPE sigfunc(); |
5bdf8622 | 4892 | |
81ecdfbb RW |
4893 | int nsigint; |
4894 | ||
4895 | #ifdef HAVE_POSIX_SIGNALS | |
4896 | sigfunc * | |
4897 | set_signal_handler(sig, handler) | |
4898 | int sig; | |
4899 | sigfunc *handler; | |
5bdf8622 | 4900 | { |
81ecdfbb RW |
4901 | struct sigaction act, oact; |
4902 | act.sa_handler = handler; | |
4903 | act.sa_flags = 0; | |
4904 | sigemptyset (&act.sa_mask); | |
4905 | sigemptyset (&oact.sa_mask); | |
4906 | sigaction (sig, &act, &oact); | |
4907 | return (oact.sa_handler); | |
4908 | } | |
5bdf8622 | 4909 | #else |
81ecdfbb | 4910 | #define set_signal_handler(s, h) signal(s, h) |
5bdf8622 | 4911 | #endif |
81ecdfbb RW |
4912 | |
4913 | RETSIGTYPE | |
4914 | sigint(s) | |
4915 | int s; | |
4916 | { | |
4917 | nsigint++; | |
5bdf8622 | 4918 | } |
5bdf8622 | 4919 | |
81ecdfbb | 4920 | main() |
5bdf8622 | 4921 | { |
81ecdfbb RW |
4922 | nsigint = 0; |
4923 | set_signal_handler(SIGINT, sigint); | |
4924 | kill((int)getpid(), SIGINT); | |
4925 | kill((int)getpid(), SIGINT); | |
4926 | exit(nsigint != 2); | |
5bdf8622 | 4927 | } |
81ecdfbb | 4928 | |
5bdf8622 | 4929 | _ACEOF |
81ecdfbb RW |
4930 | if ac_fn_c_try_run "$LINENO"; then : |
4931 | bash_cv_must_reinstall_sighandlers=no | |
5bdf8622 | 4932 | else |
81ecdfbb | 4933 | bash_cv_must_reinstall_sighandlers=yes |
5bdf8622 | 4934 | fi |
81ecdfbb RW |
4935 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4936 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5bdf8622 | 4937 | fi |
5bdf8622 DJ |
4938 | |
4939 | fi | |
5bdf8622 | 4940 | |
81ecdfbb RW |
4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5 |
4942 | $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; } | |
4943 | if test $bash_cv_must_reinstall_sighandlers = yes; then | |
4944 | $as_echo "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h | |
5bdf8622 | 4945 | |
81ecdfbb | 4946 | fi |
5bdf8622 DJ |
4947 | |
4948 | ||
5bdf8622 | 4949 | |
81ecdfbb RW |
4950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5 |
4951 | $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; } | |
4952 | if test "${bash_cv_func_sigsetjmp+set}" = set; then : | |
4953 | $as_echo_n "(cached) " >&6 | |
4954 | else | |
4955 | if test "$cross_compiling" = yes; then : | |
4956 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5 | |
4957 | $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;} | |
4958 | bash_cv_func_sigsetjmp=missing | |
5bdf8622 | 4959 | |
81ecdfbb RW |
4960 | else |
4961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4962 | /* end confdefs.h. */ | |
5bdf8622 | 4963 | |
81ecdfbb RW |
4964 | #ifdef HAVE_UNISTD_H |
4965 | #include <unistd.h> | |
4966 | #endif | |
4967 | #include <sys/types.h> | |
4968 | #include <signal.h> | |
4969 | #include <setjmp.h> | |
5bdf8622 | 4970 | |
81ecdfbb | 4971 | main() |
5bdf8622 | 4972 | { |
81ecdfbb RW |
4973 | #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS) |
4974 | exit (1); | |
5bdf8622 | 4975 | #else |
5bdf8622 | 4976 | |
81ecdfbb RW |
4977 | int code; |
4978 | sigset_t set, oset; | |
4979 | sigjmp_buf xx; | |
4980 | ||
4981 | /* get the mask */ | |
4982 | sigemptyset(&set); | |
4983 | sigemptyset(&oset); | |
4984 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set); | |
4985 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset); | |
4986 | ||
4987 | /* save it */ | |
4988 | code = sigsetjmp(xx, 1); | |
4989 | if (code) | |
4990 | exit(0); /* could get sigmask and compare to oset here. */ | |
4991 | ||
4992 | /* change it */ | |
4993 | sigaddset(&set, SIGINT); | |
4994 | sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL); | |
4995 | ||
4996 | /* and siglongjmp */ | |
4997 | siglongjmp(xx, 10); | |
4998 | exit(1); | |
4999 | #endif | |
5bdf8622 DJ |
5000 | } |
5001 | _ACEOF | |
81ecdfbb RW |
5002 | if ac_fn_c_try_run "$LINENO"; then : |
5003 | bash_cv_func_sigsetjmp=present | |
5bdf8622 | 5004 | else |
81ecdfbb | 5005 | bash_cv_func_sigsetjmp=missing |
5bdf8622 | 5006 | fi |
81ecdfbb RW |
5007 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5008 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5bdf8622 | 5009 | fi |
5bdf8622 DJ |
5010 | |
5011 | fi | |
5bdf8622 | 5012 | |
81ecdfbb RW |
5013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5 |
5014 | $as_echo "$bash_cv_func_sigsetjmp" >&6; } | |
5015 | if test $bash_cv_func_sigsetjmp = present; then | |
5016 | $as_echo "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h | |
5bdf8622 | 5017 | |
81ecdfbb RW |
5018 | fi |
5019 | ||
5020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5 | |
5021 | $as_echo_n "checking for lstat... " >&6; } | |
5022 | if test "${bash_cv_func_lstat+set}" = set; then : | |
5023 | $as_echo_n "(cached) " >&6 | |
5bdf8622 | 5024 | else |
81ecdfbb | 5025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 | 5026 | /* end confdefs.h. */ |
81ecdfbb RW |
5027 | |
5028 | #include <sys/types.h> | |
5029 | #include <sys/stat.h> | |
5030 | ||
5bdf8622 DJ |
5031 | int |
5032 | main () | |
5033 | { | |
81ecdfbb | 5034 | lstat(".",(struct stat *)0); |
5bdf8622 DJ |
5035 | ; |
5036 | return 0; | |
5037 | } | |
5038 | _ACEOF | |
81ecdfbb RW |
5039 | if ac_fn_c_try_link "$LINENO"; then : |
5040 | bash_cv_func_lstat=yes | |
5bdf8622 | 5041 | else |
81ecdfbb | 5042 | bash_cv_func_lstat=no |
5bdf8622 | 5043 | fi |
81ecdfbb RW |
5044 | rm -f core conftest.err conftest.$ac_objext \ |
5045 | conftest$ac_exeext conftest.$ac_ext | |
5bdf8622 | 5046 | fi |
81ecdfbb RW |
5047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5 |
5048 | $as_echo "$bash_cv_func_lstat" >&6; } | |
5049 | if test $bash_cv_func_lstat = yes; then | |
5050 | $as_echo "#define HAVE_LSTAT 1" >>confdefs.h | |
5bdf8622 DJ |
5051 | |
5052 | fi | |
5053 | ||
5054 | ||
81ecdfbb RW |
5055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5 |
5056 | $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; } | |
5057 | if test "${bash_cv_func_strcoll_broken+set}" = set; then : | |
5058 | $as_echo_n "(cached) " >&6 | |
5059 | else | |
5060 | if test "$cross_compiling" = yes; then : | |
5061 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5 | |
5062 | $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;} | |
5063 | bash_cv_func_strcoll_broken=no | |
5bdf8622 | 5064 | |
81ecdfbb RW |
5065 | else |
5066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5067 | /* end confdefs.h. */ | |
5bdf8622 | 5068 | |
81ecdfbb RW |
5069 | #include <stdio.h> |
5070 | #if defined (HAVE_LOCALE_H) | |
5071 | #include <locale.h> | |
5072 | #endif | |
5bdf8622 | 5073 | |
81ecdfbb RW |
5074 | main(c, v) |
5075 | int c; | |
5076 | char *v[]; | |
5077 | { | |
5078 | int r1, r2; | |
5079 | char *deflocale, *defcoll; | |
5bdf8622 | 5080 | |
81ecdfbb RW |
5081 | #ifdef HAVE_SETLOCALE |
5082 | deflocale = setlocale(LC_ALL, ""); | |
5083 | defcoll = setlocale(LC_COLLATE, ""); | |
5084 | #endif | |
5bdf8622 | 5085 | |
81ecdfbb RW |
5086 | #ifdef HAVE_STRCOLL |
5087 | /* These two values are taken from tests/glob-test. */ | |
5088 | r1 = strcoll("abd", "aXd"); | |
5089 | #else | |
5090 | r1 = 0; | |
5091 | #endif | |
5092 | r2 = strcmp("abd", "aXd"); | |
5bdf8622 | 5093 | |
81ecdfbb RW |
5094 | /* These two should both be greater than 0. It is permissible for |
5095 | a system to return different values, as long as the sign is the | |
5096 | same. */ | |
5bdf8622 | 5097 | |
81ecdfbb RW |
5098 | /* Exit with 1 (failure) if these two values are both > 0, since |
5099 | this tests whether strcoll(3) is broken with respect to strcmp(3) | |
5100 | in the default locale. */ | |
5101 | exit (r1 > 0 && r2 > 0); | |
5102 | } | |
5bdf8622 | 5103 | |
81ecdfbb RW |
5104 | _ACEOF |
5105 | if ac_fn_c_try_run "$LINENO"; then : | |
5106 | bash_cv_func_strcoll_broken=yes | |
5107 | else | |
5108 | bash_cv_func_strcoll_broken=no | |
5109 | fi | |
5110 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5111 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5112 | fi | |
5bdf8622 | 5113 | |
81ecdfbb | 5114 | fi |
5bdf8622 | 5115 | |
81ecdfbb RW |
5116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5 |
5117 | $as_echo "$bash_cv_func_strcoll_broken" >&6; } | |
5118 | if test $bash_cv_func_strcoll_broken = yes; then | |
5119 | $as_echo "#define STRCOLL_BROKEN 1" >>confdefs.h | |
5bdf8622 | 5120 | |
81ecdfbb | 5121 | fi |
5bdf8622 DJ |
5122 | |
5123 | ||
81ecdfbb RW |
5124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5 |
5125 | $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; } | |
5126 | if test "${bash_cv_func_ctype_nonascii+set}" = set; then : | |
5127 | $as_echo_n "(cached) " >&6 | |
5128 | else | |
5129 | if test "$cross_compiling" = yes; then : | |
5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5 | |
5131 | $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;} | |
5132 | bash_cv_func_ctype_nonascii=no | |
5bdf8622 | 5133 | |
5bdf8622 | 5134 | else |
81ecdfbb | 5135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 | 5136 | /* end confdefs.h. */ |
5bdf8622 | 5137 | |
81ecdfbb RW |
5138 | #ifdef HAVE_LOCALE_H |
5139 | #include <locale.h> | |
5140 | #endif | |
5141 | #include <stdio.h> | |
5142 | #include <ctype.h> | |
5143 | ||
5144 | main(c, v) | |
5145 | int c; | |
5146 | char *v[]; | |
5147 | { | |
5148 | char *deflocale; | |
5149 | unsigned char x; | |
5150 | int r1, r2; | |
5151 | ||
5152 | #ifdef HAVE_SETLOCALE | |
5153 | /* We take a shot here. If that locale is not known, try the | |
5154 | system default. We try this one because '\342' (226) is | |
5155 | known to be a printable character in that locale. */ | |
5156 | deflocale = setlocale(LC_ALL, "en_US.ISO8859-1"); | |
5157 | if (deflocale == 0) | |
5158 | deflocale = setlocale(LC_ALL, ""); | |
5159 | #endif | |
5160 | ||
5161 | x = '\342'; | |
5162 | r1 = isprint(x); | |
5163 | x -= 128; | |
5164 | r2 = isprint(x); | |
5165 | exit (r1 == 0 || r2 == 0); | |
5166 | } | |
5bdf8622 | 5167 | |
5bdf8622 | 5168 | _ACEOF |
81ecdfbb RW |
5169 | if ac_fn_c_try_run "$LINENO"; then : |
5170 | bash_cv_func_ctype_nonascii=yes | |
d60d9f65 | 5171 | else |
81ecdfbb RW |
5172 | bash_cv_func_ctype_nonascii=no |
5173 | fi | |
5174 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5175 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5bdf8622 | 5176 | fi |
25ed0b71 | 5177 | |
d60d9f65 | 5178 | fi |
5bdf8622 | 5179 | |
81ecdfbb RW |
5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_ctype_nonascii" >&5 |
5181 | $as_echo "$bash_cv_func_ctype_nonascii" >&6; } | |
5182 | if test $bash_cv_func_ctype_nonascii = yes; then | |
5183 | $as_echo "#define CTYPE_NON_ASCII 1" >>confdefs.h | |
d60d9f65 SS |
5184 | |
5185 | fi | |
5186 | ||
25ed0b71 | 5187 | |
81ecdfbb RW |
5188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5 |
5189 | $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; } | |
5190 | if test "${bash_cv_getpw_declared+set}" = set; then : | |
5191 | $as_echo_n "(cached) " >&6 | |
9255ee31 | 5192 | else |
81ecdfbb | 5193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 5194 | /* end confdefs.h. */ |
25ed0b71 | 5195 | |
81ecdfbb RW |
5196 | #include <sys/types.h> |
5197 | #ifdef HAVE_UNISTD_H | |
5198 | # include <unistd.h> | |
5199 | #endif | |
5200 | #include <pwd.h> | |
25ed0b71 | 5201 | |
9255ee31 | 5202 | _ACEOF |
81ecdfbb RW |
5203 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5204 | $EGREP "getpwuid" >/dev/null 2>&1; then : | |
5205 | bash_cv_getpw_declared=yes | |
9255ee31 | 5206 | else |
81ecdfbb | 5207 | bash_cv_getpw_declared=no |
9255ee31 | 5208 | fi |
81ecdfbb | 5209 | rm -f conftest* |
25ed0b71 | 5210 | |
25ed0b71 | 5211 | fi |
25ed0b71 | 5212 | |
81ecdfbb RW |
5213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5 |
5214 | $as_echo "$bash_cv_getpw_declared" >&6; } | |
5215 | if test $bash_cv_getpw_declared = yes; then | |
5216 | $as_echo "#define HAVE_GETPW_DECLS 1" >>confdefs.h | |
25ed0b71 KW |
5217 | |
5218 | fi | |
9255ee31 | 5219 | |
25ed0b71 | 5220 | |
81ecdfbb RW |
5221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5 |
5222 | $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; } | |
5223 | if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then : | |
5224 | $as_echo_n "(cached) " >&6 | |
5225 | else | |
5226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5227 | /* end confdefs.h. */ | |
5228 | #include <sys/types.h> | |
5229 | #include <termios.h> | |
5230 | #ifdef TIOCGWINSZ | |
5231 | yes | |
5232 | #endif | |
d60d9f65 | 5233 | |
81ecdfbb RW |
5234 | _ACEOF |
5235 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5236 | $EGREP "yes" >/dev/null 2>&1; then : | |
5237 | ac_cv_sys_tiocgwinsz_in_termios_h=yes | |
5238 | else | |
5239 | ac_cv_sys_tiocgwinsz_in_termios_h=no | |
5240 | fi | |
5241 | rm -f conftest* | |
25ed0b71 | 5242 | |
81ecdfbb RW |
5243 | fi |
5244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 | |
5245 | $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } | |
25ed0b71 | 5246 | |
81ecdfbb RW |
5247 | if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then |
5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 | |
5249 | $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; } | |
5250 | if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then : | |
5251 | $as_echo_n "(cached) " >&6 | |
5252 | else | |
5253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5bdf8622 | 5254 | /* end confdefs.h. */ |
81ecdfbb RW |
5255 | #include <sys/types.h> |
5256 | #include <sys/ioctl.h> | |
5257 | #ifdef TIOCGWINSZ | |
5258 | yes | |
5bdf8622 DJ |
5259 | #endif |
5260 | ||
5bdf8622 | 5261 | _ACEOF |
81ecdfbb RW |
5262 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5263 | $EGREP "yes" >/dev/null 2>&1; then : | |
5264 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes | |
5bdf8622 | 5265 | else |
81ecdfbb | 5266 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no |
5bdf8622 | 5267 | fi |
81ecdfbb | 5268 | rm -f conftest* |
5bdf8622 DJ |
5269 | |
5270 | fi | |
81ecdfbb RW |
5271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 |
5272 | $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } | |
5bdf8622 | 5273 | |
81ecdfbb | 5274 | if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then |
5bdf8622 | 5275 | |
81ecdfbb RW |
5276 | $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h |
5277 | ||
5278 | fi | |
5279 | fi | |
5bdf8622 DJ |
5280 | |
5281 | ||
cc88a640 JK |
5282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5 |
5283 | $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; } | |
5284 | if test "${ac_cv_have_sig_atomic_t+set}" = set; then : | |
5285 | $as_echo_n "(cached) " >&6 | |
5286 | else | |
5287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5288 | /* end confdefs.h. */ | |
5289 | ||
5290 | #include <signal.h> | |
5291 | ||
5292 | int | |
5293 | main () | |
5294 | { | |
5295 | sig_atomic_t x; | |
5296 | ; | |
5297 | return 0; | |
5298 | } | |
5299 | _ACEOF | |
5300 | if ac_fn_c_try_link "$LINENO"; then : | |
5301 | ac_cv_have_sig_atomic_t=yes | |
5302 | else | |
5303 | ac_cv_have_sig_atomic_t=no | |
5304 | fi | |
5305 | rm -f core conftest.err conftest.$ac_objext \ | |
5306 | conftest$ac_exeext conftest.$ac_ext | |
5307 | fi | |
5308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5 | |
5309 | $as_echo "$ac_cv_have_sig_atomic_t" >&6; } | |
5310 | if test "$ac_cv_have_sig_atomic_t" = "no" | |
5311 | then | |
5312 | ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default" | |
5313 | if test "x$ac_cv_type_sig_atomic_t" = x""yes; then : | |
5314 | ||
5315 | else | |
5316 | ||
5317 | cat >>confdefs.h <<_ACEOF | |
5318 | #define sig_atomic_t int | |
5319 | _ACEOF | |
5320 | ||
5321 | fi | |
5322 | ||
5323 | fi | |
5324 | ||
81ecdfbb RW |
5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5 |
5326 | $as_echo_n "checking whether signal handlers are of type void... " >&6; } | |
5327 | if test "${bash_cv_void_sighandler+set}" = set; then : | |
5328 | $as_echo_n "(cached) " >&6 | |
d60d9f65 | 5329 | else |
81ecdfbb | 5330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 5331 | /* end confdefs.h. */ |
81ecdfbb | 5332 | #include <sys/types.h> |
d60d9f65 | 5333 | #include <signal.h> |
81ecdfbb RW |
5334 | #ifdef signal |
5335 | #undef signal | |
5336 | #endif | |
5337 | #ifdef __cplusplus | |
5338 | extern "C" | |
5339 | #endif | |
5340 | void (*signal ()) (); | |
9255ee31 EZ |
5341 | int |
5342 | main () | |
5343 | { | |
81ecdfbb | 5344 | int i; |
9255ee31 EZ |
5345 | ; |
5346 | return 0; | |
5347 | } | |
5348 | _ACEOF | |
81ecdfbb RW |
5349 | if ac_fn_c_try_compile "$LINENO"; then : |
5350 | bash_cv_void_sighandler=yes | |
d60d9f65 | 5351 | else |
81ecdfbb RW |
5352 | bash_cv_void_sighandler=no |
5353 | fi | |
5354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5355 | fi | |
5356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_void_sighandler" >&5 | |
5357 | $as_echo "$bash_cv_void_sighandler" >&6; } | |
5358 | if test $bash_cv_void_sighandler = yes; then | |
5359 | $as_echo "#define VOID_SIGHANDLER 1" >>confdefs.h | |
25ed0b71 | 5360 | |
81ecdfbb | 5361 | fi |
9255ee31 | 5362 | |
cc88a640 | 5363 | |
81ecdfbb RW |
5364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5 |
5365 | $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; } | |
5366 | if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then : | |
5367 | $as_echo_n "(cached) " >&6 | |
5368 | else | |
5369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 5370 | /* end confdefs.h. */ |
81ecdfbb RW |
5371 | #include <sys/types.h> |
5372 | #include <sys/ioctl.h> | |
9255ee31 EZ |
5373 | int |
5374 | main () | |
5375 | { | |
81ecdfbb | 5376 | int x = TIOCSTAT; |
9255ee31 EZ |
5377 | ; |
5378 | return 0; | |
5379 | } | |
5380 | _ACEOF | |
81ecdfbb RW |
5381 | if ac_fn_c_try_compile "$LINENO"; then : |
5382 | bash_cv_tiocstat_in_ioctl=yes | |
d60d9f65 | 5383 | else |
81ecdfbb RW |
5384 | bash_cv_tiocstat_in_ioctl=no |
5385 | fi | |
5386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5387 | fi | |
5388 | ||
5389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5 | |
5390 | $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; } | |
5391 | if test $bash_cv_tiocstat_in_ioctl = yes; then | |
5392 | $as_echo "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h | |
25ed0b71 | 5393 | |
81ecdfbb | 5394 | fi |
9255ee31 | 5395 | |
81ecdfbb RW |
5396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5 |
5397 | $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; } | |
5398 | if test "${bash_cv_fionread_in_ioctl+set}" = set; then : | |
5399 | $as_echo_n "(cached) " >&6 | |
5400 | else | |
5401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 5402 | /* end confdefs.h. */ |
81ecdfbb RW |
5403 | #include <sys/types.h> |
5404 | #include <sys/ioctl.h> | |
9255ee31 EZ |
5405 | int |
5406 | main () | |
5407 | { | |
81ecdfbb | 5408 | int x = FIONREAD; |
9255ee31 EZ |
5409 | ; |
5410 | return 0; | |
5411 | } | |
5412 | _ACEOF | |
81ecdfbb RW |
5413 | if ac_fn_c_try_compile "$LINENO"; then : |
5414 | bash_cv_fionread_in_ioctl=yes | |
d60d9f65 | 5415 | else |
81ecdfbb | 5416 | bash_cv_fionread_in_ioctl=no |
d60d9f65 | 5417 | fi |
81ecdfbb | 5418 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 5419 | fi |
d60d9f65 | 5420 | |
81ecdfbb RW |
5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5 |
5422 | $as_echo "$bash_cv_fionread_in_ioctl" >&6; } | |
5423 | if test $bash_cv_fionread_in_ioctl = yes; then | |
5424 | $as_echo "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h | |
d60d9f65 SS |
5425 | |
5426 | fi | |
5427 | ||
81ecdfbb RW |
5428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5 |
5429 | $as_echo_n "checking for speed_t in sys/types.h... " >&6; } | |
5430 | if test "${bash_cv_speed_t_in_sys_types+set}" = set; then : | |
5431 | $as_echo_n "(cached) " >&6 | |
5432 | else | |
5433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5434 | /* end confdefs.h. */ | |
5435 | #include <sys/types.h> | |
5436 | int | |
5437 | main () | |
5438 | { | |
5439 | speed_t x; | |
5440 | ; | |
5441 | return 0; | |
5442 | } | |
25ed0b71 | 5443 | _ACEOF |
81ecdfbb RW |
5444 | if ac_fn_c_try_compile "$LINENO"; then : |
5445 | bash_cv_speed_t_in_sys_types=yes | |
5446 | else | |
5447 | bash_cv_speed_t_in_sys_types=no | |
5448 | fi | |
5449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d60d9f65 SS |
5450 | fi |
5451 | ||
81ecdfbb RW |
5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5 |
5453 | $as_echo "$bash_cv_speed_t_in_sys_types" >&6; } | |
5454 | if test $bash_cv_speed_t_in_sys_types = yes; then | |
5455 | $as_echo "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h | |
25ed0b71 | 5456 | |
81ecdfbb | 5457 | fi |
25ed0b71 | 5458 | |
81ecdfbb RW |
5459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5 |
5460 | $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; } | |
5461 | if test "${bash_cv_struct_winsize_header+set}" = set; then : | |
5462 | $as_echo_n "(cached) " >&6 | |
d60d9f65 | 5463 | else |
81ecdfbb RW |
5464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5465 | /* end confdefs.h. */ | |
5466 | #include <sys/types.h> | |
5467 | #include <sys/ioctl.h> | |
5468 | int | |
5469 | main () | |
5470 | { | |
5471 | struct winsize x; | |
5472 | ; | |
5473 | return 0; | |
5474 | } | |
25ed0b71 | 5475 | _ACEOF |
81ecdfbb RW |
5476 | if ac_fn_c_try_compile "$LINENO"; then : |
5477 | bash_cv_struct_winsize_header=ioctl_h | |
5478 | else | |
5479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 5480 | /* end confdefs.h. */ |
81ecdfbb RW |
5481 | #include <sys/types.h> |
5482 | #include <termios.h> | |
5483 | int | |
5484 | main () | |
5485 | { | |
5486 | struct winsize x; | |
5487 | ; | |
5488 | return 0; | |
5489 | } | |
5490 | _ACEOF | |
5491 | if ac_fn_c_try_compile "$LINENO"; then : | |
5492 | bash_cv_struct_winsize_header=termios_h | |
5493 | else | |
5494 | bash_cv_struct_winsize_header=other | |
5495 | fi | |
5496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d60d9f65 | 5497 | |
81ecdfbb RW |
5498 | fi |
5499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5500 | fi | |
d60d9f65 | 5501 | |
81ecdfbb RW |
5502 | if test $bash_cv_struct_winsize_header = ioctl_h; then |
5503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5 | |
5504 | $as_echo "sys/ioctl.h" >&6; } | |
5505 | $as_echo "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h | |
d60d9f65 | 5506 | |
81ecdfbb RW |
5507 | elif test $bash_cv_struct_winsize_header = termios_h; then |
5508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5 | |
5509 | $as_echo "termios.h" >&6; } | |
5510 | $as_echo "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h | |
9255ee31 | 5511 | |
81ecdfbb RW |
5512 | else |
5513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
5514 | $as_echo "not found" >&6; } | |
9255ee31 | 5515 | fi |
25ed0b71 | 5516 | |
25ed0b71 | 5517 | |
81ecdfbb RW |
5518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5 |
5519 | $as_echo_n "checking for struct dirent.d_ino... " >&6; } | |
5520 | if test "${bash_cv_dirent_has_dino+set}" = set; then : | |
5521 | $as_echo_n "(cached) " >&6 | |
5bdf8622 | 5522 | else |
81ecdfbb | 5523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 | 5524 | /* end confdefs.h. */ |
5bdf8622 | 5525 | |
81ecdfbb RW |
5526 | #include <stdio.h> |
5527 | #include <sys/types.h> | |
5528 | #ifdef HAVE_UNISTD_H | |
5529 | # include <unistd.h> | |
5530 | #endif /* HAVE_UNISTD_H */ | |
5531 | #if defined(HAVE_DIRENT_H) | |
5532 | # include <dirent.h> | |
5bdf8622 | 5533 | #else |
81ecdfbb RW |
5534 | # define dirent direct |
5535 | # ifdef HAVE_SYS_NDIR_H | |
5536 | # include <sys/ndir.h> | |
5537 | # endif /* SYSNDIR */ | |
5538 | # ifdef HAVE_SYS_DIR_H | |
5539 | # include <sys/dir.h> | |
5540 | # endif /* SYSDIR */ | |
5541 | # ifdef HAVE_NDIR_H | |
5542 | # include <ndir.h> | |
5543 | # endif | |
5544 | #endif /* HAVE_DIRENT_H */ | |
5bdf8622 DJ |
5545 | |
5546 | int | |
5547 | main () | |
5548 | { | |
81ecdfbb RW |
5549 | |
5550 | struct dirent d; int z; z = d.d_ino; | |
5551 | ||
5bdf8622 DJ |
5552 | ; |
5553 | return 0; | |
5554 | } | |
5555 | _ACEOF | |
81ecdfbb RW |
5556 | if ac_fn_c_try_compile "$LINENO"; then : |
5557 | bash_cv_dirent_has_dino=yes | |
5bdf8622 | 5558 | else |
81ecdfbb | 5559 | bash_cv_dirent_has_dino=no |
25ed0b71 | 5560 | fi |
81ecdfbb | 5561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5bdf8622 | 5562 | fi |
81ecdfbb RW |
5563 | |
5564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_dino" >&5 | |
5565 | $as_echo "$bash_cv_dirent_has_dino" >&6; } | |
5566 | if test $bash_cv_dirent_has_dino = yes; then | |
5567 | $as_echo "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h | |
5bdf8622 DJ |
5568 | |
5569 | fi | |
5570 | ||
81ecdfbb RW |
5571 | |
5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5 | |
5573 | $as_echo_n "checking for struct dirent.d_fileno... " >&6; } | |
5574 | if test "${bash_cv_dirent_has_d_fileno+set}" = set; then : | |
5575 | $as_echo_n "(cached) " >&6 | |
9255ee31 | 5576 | else |
81ecdfbb | 5577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 5578 | /* end confdefs.h. */ |
5bdf8622 | 5579 | |
81ecdfbb RW |
5580 | #include <stdio.h> |
5581 | #include <sys/types.h> | |
5582 | #ifdef HAVE_UNISTD_H | |
5583 | # include <unistd.h> | |
5584 | #endif /* HAVE_UNISTD_H */ | |
5585 | #if defined(HAVE_DIRENT_H) | |
5586 | # include <dirent.h> | |
5bdf8622 | 5587 | #else |
81ecdfbb RW |
5588 | # define dirent direct |
5589 | # ifdef HAVE_SYS_NDIR_H | |
5590 | # include <sys/ndir.h> | |
5591 | # endif /* SYSNDIR */ | |
5592 | # ifdef HAVE_SYS_DIR_H | |
5593 | # include <sys/dir.h> | |
5594 | # endif /* SYSDIR */ | |
5595 | # ifdef HAVE_NDIR_H | |
5596 | # include <ndir.h> | |
5597 | # endif | |
5598 | #endif /* HAVE_DIRENT_H */ | |
5bdf8622 DJ |
5599 | |
5600 | int | |
5601 | main () | |
5602 | { | |
81ecdfbb RW |
5603 | |
5604 | struct dirent d; int z; z = d.d_fileno; | |
5605 | ||
5bdf8622 DJ |
5606 | ; |
5607 | return 0; | |
5608 | } | |
25ed0b71 | 5609 | _ACEOF |
81ecdfbb RW |
5610 | if ac_fn_c_try_compile "$LINENO"; then : |
5611 | bash_cv_dirent_has_d_fileno=yes | |
9255ee31 | 5612 | else |
81ecdfbb | 5613 | bash_cv_dirent_has_d_fileno=no |
9255ee31 | 5614 | fi |
81ecdfbb | 5615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
25ed0b71 | 5616 | fi |
9255ee31 | 5617 | |
81ecdfbb RW |
5618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5 |
5619 | $as_echo "$bash_cv_dirent_has_d_fileno" >&6; } | |
5620 | if test $bash_cv_dirent_has_d_fileno = yes; then | |
5621 | $as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h | |
25ed0b71 | 5622 | |
81ecdfbb | 5623 | fi |
430b7832 | 5624 | |
430b7832 | 5625 | |
81ecdfbb RW |
5626 | case "$host_os" in |
5627 | aix*) prefer_curses=yes ;; | |
5628 | esac | |
430b7832 | 5629 | |
81ecdfbb RW |
5630 | if test "X$bash_cv_termcap_lib" = "X"; then |
5631 | _bash_needmsg=yes | |
5632 | else | |
5633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5 | |
5634 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
5635 | _bash_needmsg= | |
5636 | fi | |
5637 | if test "${bash_cv_termcap_lib+set}" = set; then : | |
5638 | $as_echo_n "(cached) " >&6 | |
5639 | else | |
5640 | ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent" | |
5641 | if test "x$ac_cv_func_tgetent" = x""yes; then : | |
5642 | bash_cv_termcap_lib=libc | |
5643 | else | |
5644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 | |
5645 | $as_echo_n "checking for tgetent in -ltermcap... " >&6; } | |
5646 | if test "${ac_cv_lib_termcap_tgetent+set}" = set; then : | |
5647 | $as_echo_n "(cached) " >&6 | |
5648 | else | |
5649 | ac_check_lib_save_LIBS=$LIBS | |
5650 | LIBS="-ltermcap $LIBS" | |
5651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5652 | /* end confdefs.h. */ | |
430b7832 | 5653 | |
81ecdfbb RW |
5654 | /* Override any GCC internal prototype to avoid an error. |
5655 | Use char because int might match the return type of a GCC | |
832a9484 | 5656 | builtin and then its argument prototype would still apply. */ |
832a9484 | 5657 | #ifdef __cplusplus |
81ecdfbb | 5658 | extern "C" |
832a9484 | 5659 | #endif |
81ecdfbb | 5660 | char tgetent (); |
832a9484 JB |
5661 | int |
5662 | main () | |
5663 | { | |
81ecdfbb | 5664 | return tgetent (); |
832a9484 JB |
5665 | ; |
5666 | return 0; | |
5667 | } | |
5668 | _ACEOF | |
81ecdfbb RW |
5669 | if ac_fn_c_try_link "$LINENO"; then : |
5670 | ac_cv_lib_termcap_tgetent=yes | |
832a9484 | 5671 | else |
81ecdfbb | 5672 | ac_cv_lib_termcap_tgetent=no |
832a9484 | 5673 | fi |
81ecdfbb RW |
5674 | rm -f core conftest.err conftest.$ac_objext \ |
5675 | conftest$ac_exeext conftest.$ac_ext | |
5676 | LIBS=$ac_check_lib_save_LIBS | |
832a9484 | 5677 | fi |
81ecdfbb RW |
5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 |
5679 | $as_echo "$ac_cv_lib_termcap_tgetent" >&6; } | |
5680 | if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then : | |
5681 | bash_cv_termcap_lib=libtermcap | |
9255ee31 | 5682 | else |
81ecdfbb RW |
5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5 |
5684 | $as_echo_n "checking for tgetent in -ltinfo... " >&6; } | |
5685 | if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then : | |
5686 | $as_echo_n "(cached) " >&6 | |
5687 | else | |
5688 | ac_check_lib_save_LIBS=$LIBS | |
5689 | LIBS="-ltinfo $LIBS" | |
5690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 5691 | /* end confdefs.h. */ |
430b7832 | 5692 | |
81ecdfbb RW |
5693 | /* Override any GCC internal prototype to avoid an error. |
5694 | Use char because int might match the return type of a GCC | |
9255ee31 | 5695 | builtin and then its argument prototype would still apply. */ |
25ed0b71 | 5696 | #ifdef __cplusplus |
81ecdfbb | 5697 | extern "C" |
9255ee31 | 5698 | #endif |
81ecdfbb | 5699 | char tgetent (); |
25ed0b71 KW |
5700 | int |
5701 | main () | |
5702 | { | |
81ecdfbb | 5703 | return tgetent (); |
9255ee31 EZ |
5704 | ; |
5705 | return 0; | |
5706 | } | |
5707 | _ACEOF | |
81ecdfbb RW |
5708 | if ac_fn_c_try_link "$LINENO"; then : |
5709 | ac_cv_lib_tinfo_tgetent=yes | |
d60d9f65 | 5710 | else |
81ecdfbb | 5711 | ac_cv_lib_tinfo_tgetent=no |
9255ee31 | 5712 | fi |
81ecdfbb RW |
5713 | rm -f core conftest.err conftest.$ac_objext \ |
5714 | conftest$ac_exeext conftest.$ac_ext | |
5715 | LIBS=$ac_check_lib_save_LIBS | |
d60d9f65 | 5716 | fi |
81ecdfbb RW |
5717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5 |
5718 | $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } | |
5719 | if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then : | |
5720 | bash_cv_termcap_lib=libtinfo | |
d60d9f65 | 5721 | else |
81ecdfbb RW |
5722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5 |
5723 | $as_echo_n "checking for tgetent in -lcurses... " >&6; } | |
5724 | if test "${ac_cv_lib_curses_tgetent+set}" = set; then : | |
5725 | $as_echo_n "(cached) " >&6 | |
5726 | else | |
5727 | ac_check_lib_save_LIBS=$LIBS | |
5728 | LIBS="-lcurses $LIBS" | |
5729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 5730 | /* end confdefs.h. */ |
430b7832 | 5731 | |
81ecdfbb RW |
5732 | /* Override any GCC internal prototype to avoid an error. |
5733 | Use char because int might match the return type of a GCC | |
5734 | builtin and then its argument prototype would still apply. */ | |
9255ee31 EZ |
5735 | #ifdef __cplusplus |
5736 | extern "C" | |
25ed0b71 | 5737 | #endif |
81ecdfbb RW |
5738 | char tgetent (); |
5739 | int | |
5740 | main () | |
5741 | { | |
5742 | return tgetent (); | |
5743 | ; | |
5744 | return 0; | |
5745 | } | |
5746 | _ACEOF | |
5747 | if ac_fn_c_try_link "$LINENO"; then : | |
5748 | ac_cv_lib_curses_tgetent=yes | |
5749 | else | |
5750 | ac_cv_lib_curses_tgetent=no | |
5751 | fi | |
5752 | rm -f core conftest.err conftest.$ac_objext \ | |
5753 | conftest$ac_exeext conftest.$ac_ext | |
5754 | LIBS=$ac_check_lib_save_LIBS | |
5755 | fi | |
5756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5 | |
5757 | $as_echo "$ac_cv_lib_curses_tgetent" >&6; } | |
5758 | if test "x$ac_cv_lib_curses_tgetent" = x""yes; then : | |
5759 | bash_cv_termcap_lib=libcurses | |
5760 | else | |
5761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 | |
5762 | $as_echo_n "checking for tgetent in -lncurses... " >&6; } | |
5763 | if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then : | |
5764 | $as_echo_n "(cached) " >&6 | |
5765 | else | |
5766 | ac_check_lib_save_LIBS=$LIBS | |
5767 | LIBS="-lncurses $LIBS" | |
5768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5769 | /* end confdefs.h. */ | |
5770 | ||
5771 | /* Override any GCC internal prototype to avoid an error. | |
5772 | Use char because int might match the return type of a GCC | |
5773 | builtin and then its argument prototype would still apply. */ | |
25ed0b71 | 5774 | #ifdef __cplusplus |
81ecdfbb | 5775 | extern "C" |
9255ee31 | 5776 | #endif |
81ecdfbb | 5777 | char tgetent (); |
25ed0b71 KW |
5778 | int |
5779 | main () | |
5780 | { | |
81ecdfbb | 5781 | return tgetent (); |
9255ee31 EZ |
5782 | ; |
5783 | return 0; | |
5784 | } | |
5785 | _ACEOF | |
81ecdfbb RW |
5786 | if ac_fn_c_try_link "$LINENO"; then : |
5787 | ac_cv_lib_ncurses_tgetent=yes | |
d60d9f65 | 5788 | else |
81ecdfbb RW |
5789 | ac_cv_lib_ncurses_tgetent=no |
5790 | fi | |
5791 | rm -f core conftest.err conftest.$ac_objext \ | |
5792 | conftest$ac_exeext conftest.$ac_ext | |
5793 | LIBS=$ac_check_lib_save_LIBS | |
5794 | fi | |
5795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 | |
5796 | $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } | |
5797 | if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then : | |
5798 | bash_cv_termcap_lib=libncurses | |
5799 | else | |
5800 | bash_cv_termcap_lib=gnutermcap | |
5801 | fi | |
5802 | ||
5803 | fi | |
25ed0b71 | 5804 | |
d60d9f65 | 5805 | fi |
81ecdfbb RW |
5806 | |
5807 | fi | |
5808 | ||
9255ee31 | 5809 | fi |
25ed0b71 | 5810 | |
05bc3370 | 5811 | fi |
25ed0b71 | 5812 | |
81ecdfbb RW |
5813 | if test "X$_bash_needmsg" = "Xyes"; then |
5814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5 | |
5815 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
5816 | fi | |
5817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5 | |
5818 | $as_echo "using $bash_cv_termcap_lib" >&6; } | |
5819 | if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then | |
5820 | LDFLAGS="$LDFLAGS -L./lib/termcap" | |
5821 | TERMCAP_LIB="./lib/termcap/libtermcap.a" | |
5822 | TERMCAP_DEP="./lib/termcap/libtermcap.a" | |
5823 | elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then | |
5824 | TERMCAP_LIB=-ltermcap | |
5825 | TERMCAP_DEP= | |
5826 | elif test $bash_cv_termcap_lib = libtinfo; then | |
5827 | TERMCAP_LIB=-ltinfo | |
5828 | TERMCAP_DEP= | |
5829 | elif test $bash_cv_termcap_lib = libncurses; then | |
5830 | TERMCAP_LIB=-lncurses | |
5831 | TERMCAP_DEP= | |
5832 | elif test $bash_cv_termcap_lib = libc; then | |
5833 | TERMCAP_LIB= | |
5834 | TERMCAP_DEP= | |
5bdf8622 | 5835 | else |
81ecdfbb RW |
5836 | TERMCAP_LIB=-lcurses |
5837 | TERMCAP_DEP= | |
5838 | fi | |
5839 | ||
5840 | if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then | |
5841 | if test "$prefer_curses" = yes; then | |
5842 | TERMCAP_LIB=-lcurses | |
5843 | else | |
5844 | TERMCAP_LIB=-ltermcap #default | |
5845 | fi | |
5846 | fi | |
5847 | ||
7f3c5ec8 EZ |
5848 | if test "$TERMCAP_LIB" = "-lncurses"; then |
5849 | ||
5850 | for ac_header in ncurses/termcap.h | |
5851 | do : | |
5852 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5853 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5854 | eval as_val=\$$as_ac_Header | |
5855 | if test "x$as_val" = x""yes; then : | |
5856 | cat >>confdefs.h <<_ACEOF | |
5857 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5858 | _ACEOF | |
5859 | ||
5860 | fi | |
5861 | ||
5862 | done | |
5863 | ||
5864 | fi | |
81ecdfbb RW |
5865 | |
5866 | for ac_header in wctype.h | |
5867 | do : | |
5868 | ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default" | |
5869 | if test "x$ac_cv_header_wctype_h" = x""yes; then : | |
5870 | cat >>confdefs.h <<_ACEOF | |
5871 | #define HAVE_WCTYPE_H 1 | |
5bdf8622 | 5872 | _ACEOF |
5bdf8622 | 5873 | |
81ecdfbb | 5874 | fi |
5bdf8622 | 5875 | |
81ecdfbb | 5876 | done |
5bdf8622 | 5877 | |
81ecdfbb RW |
5878 | for ac_header in wchar.h |
5879 | do : | |
5880 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" | |
5881 | if test "x$ac_cv_header_wchar_h" = x""yes; then : | |
5882 | cat >>confdefs.h <<_ACEOF | |
5883 | #define HAVE_WCHAR_H 1 | |
5884 | _ACEOF | |
5bdf8622 | 5885 | |
81ecdfbb | 5886 | fi |
5bdf8622 | 5887 | |
81ecdfbb RW |
5888 | done |
5889 | ||
5890 | for ac_header in langinfo.h | |
5891 | do : | |
5892 | ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" | |
5893 | if test "x$ac_cv_header_langinfo_h" = x""yes; then : | |
5894 | cat >>confdefs.h <<_ACEOF | |
5895 | #define HAVE_LANGINFO_H 1 | |
5bdf8622 | 5896 | _ACEOF |
5bdf8622 | 5897 | |
5bdf8622 | 5898 | fi |
81ecdfbb RW |
5899 | |
5900 | done | |
5901 | ||
5902 | ||
cc88a640 JK |
5903 | ac_fn_c_check_func "$LINENO" "mbrlen" "ac_cv_func_mbrlen" |
5904 | if test "x$ac_cv_func_mbrlen" = x""yes; then : | |
5905 | $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h | |
5906 | ||
5907 | fi | |
5908 | ||
5909 | ac_fn_c_check_func "$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp" | |
5910 | if test "x$ac_cv_func_mbscasecmp" = x""yes; then : | |
5911 | $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h | |
5912 | ||
5913 | fi | |
5914 | ||
5915 | ac_fn_c_check_func "$LINENO" "mbscmp" "ac_cv_func_mbscmp" | |
5916 | if test "x$ac_cv_func_mbscmp" = x""yes; then : | |
5917 | $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h | |
5918 | ||
5919 | fi | |
5920 | ||
5921 | ac_fn_c_check_func "$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs" | |
5922 | if test "x$ac_cv_func_mbsnrtowcs" = x""yes; then : | |
5923 | $as_echo "#define HAVE_MBSNRTOWCS 1" >>confdefs.h | |
5924 | ||
5925 | fi | |
5926 | ||
81ecdfbb RW |
5927 | ac_fn_c_check_func "$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs" |
5928 | if test "x$ac_cv_func_mbsrtowcs" = x""yes; then : | |
5929 | $as_echo "#define HAVE_MBSRTOWCS 1" >>confdefs.h | |
5930 | ||
5931 | fi | |
5932 | ||
cc88a640 | 5933 | |
5836a818 | 5934 | |
cc88a640 JK |
5935 | for ac_func in mbschr |
5936 | do : | |
5937 | ac_fn_c_check_func "$LINENO" "mbschr" "ac_cv_func_mbschr" | |
5938 | if test "x$ac_cv_func_mbschr" = x""yes; then : | |
5939 | cat >>confdefs.h <<_ACEOF | |
5940 | #define HAVE_MBSCHR 1 | |
5941 | _ACEOF | |
5942 | ||
5943 | else | |
5944 | case " $LIBOBJS " in | |
5945 | *" $ac_func.$ac_objext "* ) ;; | |
5946 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
5947 | ;; | |
5948 | esac | |
81ecdfbb | 5949 | |
5bdf8622 | 5950 | fi |
cc88a640 | 5951 | done |
81ecdfbb | 5952 | |
cc88a640 JK |
5953 | |
5954 | ||
5955 | ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb" | |
5956 | if test "x$ac_cv_func_wcrtomb" = x""yes; then : | |
5957 | $as_echo "#define HAVE_WCRTOMB 1" >>confdefs.h | |
81ecdfbb RW |
5958 | |
5959 | fi | |
5960 | ||
cc88a640 JK |
5961 | ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll" |
5962 | if test "x$ac_cv_func_wcscoll" = x""yes; then : | |
5963 | $as_echo "#define HAVE_WCSCOLL 1" >>confdefs.h | |
5964 | ||
5965 | fi | |
5966 | ||
5967 | ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup" | |
5968 | if test "x$ac_cv_func_wcsdup" = x""yes; then : | |
5969 | $as_echo "#define HAVE_WCSDUP 1" >>confdefs.h | |
81ecdfbb RW |
5970 | |
5971 | fi | |
5972 | ||
5973 | ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth" | |
5974 | if test "x$ac_cv_func_wcwidth" = x""yes; then : | |
5975 | $as_echo "#define HAVE_WCWIDTH 1" >>confdefs.h | |
5976 | ||
5977 | fi | |
5978 | ||
cc88a640 JK |
5979 | ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype" |
5980 | if test "x$ac_cv_func_wctype" = x""yes; then : | |
5981 | $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h | |
5bdf8622 DJ |
5982 | |
5983 | fi | |
5984 | ||
5985 | ||
cc88a640 JK |
5986 | for ac_func in wcswidth |
5987 | do : | |
5988 | ac_fn_c_check_func "$LINENO" "wcswidth" "ac_cv_func_wcswidth" | |
5989 | if test "x$ac_cv_func_wcswidth" = x""yes; then : | |
5990 | cat >>confdefs.h <<_ACEOF | |
5991 | #define HAVE_WCSWIDTH 1 | |
5992 | _ACEOF | |
5993 | ||
05bc3370 | 5994 | else |
cc88a640 JK |
5995 | case " $LIBOBJS " in |
5996 | *" $ac_func.$ac_objext "* ) ;; | |
5997 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
5998 | ;; | |
5999 | esac | |
6000 | ||
d60d9f65 | 6001 | fi |
cc88a640 JK |
6002 | done |
6003 | ||
9255ee31 | 6004 | |
05bc3370 | 6005 | |
cc88a640 JK |
6006 | |
6007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 | |
6008 | $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } | |
6009 | if test "${ac_cv_func_mbrtowc+set}" = set; then : | |
81ecdfbb | 6010 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 6011 | else |
81ecdfbb | 6012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 6013 | /* end confdefs.h. */ |
9255ee31 EZ |
6014 | #include <wchar.h> |
6015 | int | |
6016 | main () | |
430b7832 | 6017 | { |
cc88a640 JK |
6018 | wchar_t wc; |
6019 | char const s[] = ""; | |
6020 | size_t n = 1; | |
6021 | mbstate_t state; | |
6022 | return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); | |
430b7832 MM |
6023 | ; |
6024 | return 0; | |
9255ee31 EZ |
6025 | } |
6026 | _ACEOF | |
cc88a640 JK |
6027 | if ac_fn_c_try_link "$LINENO"; then : |
6028 | ac_cv_func_mbrtowc=yes | |
d60d9f65 | 6029 | else |
cc88a640 | 6030 | ac_cv_func_mbrtowc=no |
d60d9f65 | 6031 | fi |
cc88a640 JK |
6032 | rm -f core conftest.err conftest.$ac_objext \ |
6033 | conftest$ac_exeext conftest.$ac_ext | |
d60d9f65 | 6034 | fi |
cc88a640 JK |
6035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5 |
6036 | $as_echo "$ac_cv_func_mbrtowc" >&6; } | |
6037 | if test $ac_cv_func_mbrtowc = yes; then | |
6038 | ||
6039 | $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h | |
6040 | ||
6041 | fi | |
6042 | ||
6043 | if test $ac_cv_func_mbrtowc = yes; then | |
81ecdfbb | 6044 | $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h |
d60d9f65 SS |
6045 | |
6046 | fi | |
6047 | ||
cc88a640 JK |
6048 | for ac_func in iswlower iswupper towlower towupper iswctype |
6049 | do : | |
6050 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6051 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
6052 | eval as_val=\$$as_ac_var | |
6053 | if test "x$as_val" = x""yes; then : | |
6054 | cat >>confdefs.h <<_ACEOF | |
6055 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6056 | _ACEOF | |
6057 | ||
6058 | fi | |
6059 | done | |
6060 | ||
6061 | ||
81ecdfbb RW |
6062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
6063 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
6064 | if test "${bash_cv_langinfo_codeset+set}" = set; then : | |
6065 | $as_echo_n "(cached) " >&6 | |
d60d9f65 | 6066 | else |
81ecdfbb | 6067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 6068 | /* end confdefs.h. */ |
9255ee31 EZ |
6069 | #include <langinfo.h> |
6070 | int | |
6071 | main () | |
6072 | { | |
6073 | char* cs = nl_langinfo(CODESET); | |
6074 | ; | |
6075 | return 0; | |
6076 | } | |
6077 | _ACEOF | |
81ecdfbb | 6078 | if ac_fn_c_try_link "$LINENO"; then : |
9255ee31 EZ |
6079 | bash_cv_langinfo_codeset=yes |
6080 | else | |
81ecdfbb | 6081 | bash_cv_langinfo_codeset=no |
9255ee31 | 6082 | fi |
81ecdfbb RW |
6083 | rm -f core conftest.err conftest.$ac_objext \ |
6084 | conftest$ac_exeext conftest.$ac_ext | |
d60d9f65 | 6085 | fi |
81ecdfbb RW |
6086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_langinfo_codeset" >&5 |
6087 | $as_echo "$bash_cv_langinfo_codeset" >&6; } | |
9255ee31 | 6088 | if test $bash_cv_langinfo_codeset = yes; then |
81ecdfbb | 6089 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
d60d9f65 | 6090 | |
d60d9f65 SS |
6091 | fi |
6092 | ||
cc88a640 JK |
6093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5 |
6094 | $as_echo_n "checking for wchar_t in wchar.h... " >&6; } | |
6095 | if test "${bash_cv_type_wchar_t+set}" = set; then : | |
6096 | $as_echo_n "(cached) " >&6 | |
6097 | else | |
6098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6099 | /* end confdefs.h. */ | |
6100 | #include <wchar.h> | |
6101 | ||
6102 | int | |
6103 | main () | |
6104 | { | |
6105 | ||
6106 | wchar_t foo; | |
6107 | foo = 0; | |
6108 | ||
6109 | ; | |
6110 | return 0; | |
6111 | } | |
6112 | _ACEOF | |
6113 | if ac_fn_c_try_compile "$LINENO"; then : | |
6114 | bash_cv_type_wchar_t=yes | |
6115 | else | |
6116 | bash_cv_type_wchar_t=no | |
6117 | fi | |
6118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6119 | fi | |
6120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5 | |
6121 | $as_echo "$bash_cv_type_wchar_t" >&6; } | |
6122 | if test $bash_cv_type_wchar_t = yes; then | |
6123 | ||
6124 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h | |
6125 | ||
6126 | fi | |
6127 | ||
6128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5 | |
6129 | $as_echo_n "checking for wctype_t in wctype.h... " >&6; } | |
6130 | if test "${bash_cv_type_wctype_t+set}" = set; then : | |
6131 | $as_echo_n "(cached) " >&6 | |
6132 | else | |
6133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6134 | /* end confdefs.h. */ | |
6135 | #include <wctype.h> | |
6136 | int | |
6137 | main () | |
6138 | { | |
6139 | ||
6140 | wctype_t foo; | |
6141 | foo = 0; | |
6142 | ||
6143 | ; | |
6144 | return 0; | |
6145 | } | |
6146 | _ACEOF | |
6147 | if ac_fn_c_try_compile "$LINENO"; then : | |
6148 | bash_cv_type_wctype_t=yes | |
6149 | else | |
6150 | bash_cv_type_wctype_t=no | |
6151 | fi | |
6152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6153 | fi | |
6154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5 | |
6155 | $as_echo "$bash_cv_type_wctype_t" >&6; } | |
6156 | if test $bash_cv_type_wctype_t = yes; then | |
6157 | ||
6158 | $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h | |
6159 | ||
6160 | fi | |
6161 | ||
6162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5 | |
6163 | $as_echo_n "checking for wint_t in wctype.h... " >&6; } | |
6164 | if test "${bash_cv_type_wint_t+set}" = set; then : | |
6165 | $as_echo_n "(cached) " >&6 | |
6166 | else | |
6167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6168 | /* end confdefs.h. */ | |
6169 | #include <wctype.h> | |
6170 | int | |
6171 | main () | |
6172 | { | |
6173 | ||
6174 | wint_t foo; | |
6175 | foo = 0; | |
6176 | ||
6177 | ; | |
6178 | return 0; | |
6179 | } | |
6180 | _ACEOF | |
6181 | if ac_fn_c_try_compile "$LINENO"; then : | |
6182 | bash_cv_type_wint_t=yes | |
6183 | else | |
6184 | bash_cv_type_wint_t=no | |
6185 | fi | |
6186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6187 | fi | |
6188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5 | |
6189 | $as_echo "$bash_cv_type_wint_t" >&6; } | |
6190 | if test $bash_cv_type_wint_t = yes; then | |
6191 | ||
6192 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h | |
6193 | ||
6194 | fi | |
6195 | ||
6196 | if test "$am_cv_func_iconv" = yes; then | |
6197 | OLDLIBS="$LIBS" | |
5836a818 | 6198 | LIBS="$LIBS $LIBICONV" |
cc88a640 JK |
6199 | for ac_func in locale_charset |
6200 | do : | |
6201 | ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset" | |
6202 | if test "x$ac_cv_func_locale_charset" = x""yes; then : | |
6203 | cat >>confdefs.h <<_ACEOF | |
6204 | #define HAVE_LOCALE_CHARSET 1 | |
6205 | _ACEOF | |
6206 | ||
6207 | fi | |
6208 | done | |
6209 | ||
6210 | LIBS="$OLDLIBS" | |
6211 | fi | |
6212 | ||
25ed0b71 KW |
6213 | |
6214 | ||
d60d9f65 SS |
6215 | case "$host_cpu" in |
6216 | *cray*) LOCAL_CFLAGS=-DCRAY ;; | |
9255ee31 | 6217 | *s390*) LOCAL_CFLAGS=-fsigned-char ;; |
d60d9f65 SS |
6218 | esac |
6219 | ||
6220 | case "$host_os" in | |
6221 | isc*) LOCAL_CFLAGS=-Disc386 ;; | |
6222 | esac | |
6223 | ||
c862e87b JM |
6224 | # shared library configuration section |
6225 | # | |
6226 | # Shared object configuration section. These values are generated by | |
6227 | # ${srcdir}/support/shobj-conf | |
6228 | # | |
6229 | if test -f ${srcdir}/support/shobj-conf; then | |
81ecdfbb RW |
6230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking configuration for building shared libraries" >&5 |
6231 | $as_echo_n "checking configuration for building shared libraries... " >&6; } | |
5bdf8622 DJ |
6232 | eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}` |
6233 | ||
6234 | # case "$SHLIB_LIBS" in | |
6235 | # *curses*|*termcap*|*termlib*) ;; | |
6236 | # *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;; | |
6237 | # esac | |
6238 | ||
6239 | ||
6240 | ||
6241 | ||
9255ee31 | 6242 | |
25ed0b71 KW |
6243 | |
6244 | ||
6245 | ||
6246 | ||
6247 | ||
6248 | ||
6249 | ||
6250 | ||
6251 | ||
6252 | ||
6253 | ||
81ecdfbb RW |
6254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_STATUS" >&5 |
6255 | $as_echo "$SHLIB_STATUS" >&6; } | |
9255ee31 EZ |
6256 | |
6257 | # SHLIB_STATUS is either `supported' or `unsupported'. If it's | |
6258 | # `unsupported', turn off any default shared library building | |
6259 | if test "$SHLIB_STATUS" = 'unsupported'; then | |
6260 | opt_shared_libs=no | |
6261 | fi | |
1b17e766 EZ |
6262 | |
6263 | # shared library versioning | |
6264 | # quoted for m4 so I can use character classes | |
6265 | SHLIB_MAJOR=`expr "$LIBVERSION" : '\([0-9]\)\..*'` | |
6266 | SHLIB_MINOR=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'` | |
9255ee31 | 6267 | |
25ed0b71 | 6268 | |
9255ee31 EZ |
6269 | fi |
6270 | ||
6271 | if test "$opt_static_libs" = "yes"; then | |
6272 | STATIC_TARGET=static | |
6273 | STATIC_INSTALL_TARGET=install-static | |
6274 | fi | |
6275 | if test "$opt_shared_libs" = "yes"; then | |
6276 | SHARED_TARGET=shared | |
6277 | SHARED_INSTALL_TARGET=install-shared | |
c862e87b JM |
6278 | fi |
6279 | ||
25ed0b71 KW |
6280 | |
6281 | ||
6282 | ||
6283 | ||
6284 | ||
19ce2a29 | 6285 | case "$build_os" in |
1b17e766 EZ |
6286 | msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file |
6287 | *) BUILD_DIR=`pwd` ;; | |
6288 | esac | |
6289 | ||
5bdf8622 DJ |
6290 | case "$BUILD_DIR" in |
6291 | *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;; | |
6292 | *) ;; | |
6293 | esac | |
6294 | ||
6295 | ||
25ed0b71 KW |
6296 | |
6297 | ||
6298 | ||
6299 | ||
6300 | ||
6301 | ||
6302 | ||
6303 | ||
6304 | ||
6305 | ||
6306 | ||
6307 | ||
6308 | ||
6309 | ||
6310 | ||
6311 | ||
6312 | ||
5836a818 | 6313 | ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile" |
81ecdfbb RW |
6314 | |
6315 | ac_config_commands="$ac_config_commands default" | |
6316 | ||
9255ee31 | 6317 | cat >confcache <<\_ACEOF |
d60d9f65 SS |
6318 | # This file is a shell script that caches the results of configure |
6319 | # tests run on this system so they can be shared between configure | |
9255ee31 EZ |
6320 | # scripts and configure runs, see configure's option --config-cache. |
6321 | # It is not useful on other systems. If it contains results you don't | |
6322 | # want to keep, you may remove or edit it. | |
d60d9f65 | 6323 | # |
9255ee31 EZ |
6324 | # config.status only pays attention to the cache file if you give it |
6325 | # the --recheck option to rerun configure. | |
d60d9f65 | 6326 | # |
25ed0b71 | 6327 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
9255ee31 EZ |
6328 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
6329 | # following values. | |
6330 | ||
6331 | _ACEOF | |
6332 | ||
d60d9f65 SS |
6333 | # The following way of writing the cache mishandles newlines in values, |
6334 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 6335 | # So, we kill variables containing newlines. |
d60d9f65 SS |
6336 | # Ultrix sh set writes to stderr and can't be redirected directly, |
6337 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
6338 | ( |
6339 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
6340 | eval ac_val=\$$ac_var | |
6341 | case $ac_val in #( | |
6342 | *${as_nl}*) | |
6343 | case $ac_var in #( | |
6344 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
6345 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
6346 | esac | |
6347 | case $ac_var in #( | |
6348 | _ | IFS | as_nl) ;; #( | |
6349 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
6350 | *) { eval $ac_var=; unset $ac_var;} ;; | |
6351 | esac ;; | |
6352 | esac | |
6353 | done | |
6354 | ||
9255ee31 | 6355 | (set) 2>&1 | |
81ecdfbb RW |
6356 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
6357 | *${as_nl}ac_space=\ *) | |
6358 | # `set' does not quote correctly, so add quotes: double-quote | |
6359 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
9255ee31 | 6360 | sed -n \ |
430b7832 MM |
6361 | "s/'/'\\\\''/g; |
6362 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 6363 | ;; #( |
9255ee31 EZ |
6364 | *) |
6365 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 6366 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
9255ee31 | 6367 | ;; |
81ecdfbb RW |
6368 | esac | |
6369 | sort | |
6370 | ) | | |
9255ee31 | 6371 | sed ' |
81ecdfbb | 6372 | /^ac_cv_env_/b end |
9255ee31 | 6373 | t clear |
81ecdfbb | 6374 | :clear |
9255ee31 EZ |
6375 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
6376 | t end | |
81ecdfbb RW |
6377 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
6378 | :end' >>confcache | |
6379 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
6380 | if test -w "$cache_file"; then | |
6381 | test "x$cache_file" != "x/dev/null" && | |
6382 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
6383 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
9255ee31 | 6384 | cat confcache >$cache_file |
d60d9f65 | 6385 | else |
81ecdfbb RW |
6386 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
6387 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
d60d9f65 SS |
6388 | fi |
6389 | fi | |
6390 | rm -f confcache | |
6391 | ||
d60d9f65 SS |
6392 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
6393 | # Let make expand exec_prefix. | |
6394 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6395 | ||
d60d9f65 SS |
6396 | DEFS=-DHAVE_CONFIG_H |
6397 | ||
25ed0b71 KW |
6398 | ac_libobjs= |
6399 | ac_ltlibobjs= | |
6400 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
6401 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
6402 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
6403 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
6404 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
6405 | # will be set to the directory where LIBOBJS objects are built. | |
6406 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
6407 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
25ed0b71 KW |
6408 | done |
6409 | LIBOBJS=$ac_libobjs | |
6410 | ||
6411 | LTLIBOBJS=$ac_ltlibobjs | |
6412 | ||
6413 | ||
6414 | ||
d60d9f65 | 6415 | : ${CONFIG_STATUS=./config.status} |
81ecdfbb | 6416 | ac_write_fail=0 |
9255ee31 EZ |
6417 | ac_clean_files_save=$ac_clean_files |
6418 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
6419 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
6420 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6421 | as_write_fail=0 | |
6422 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
9255ee31 | 6423 | #! $SHELL |
25ed0b71 | 6424 | # Generated by $as_me. |
d60d9f65 | 6425 | # Run this file to recreate the current configuration. |
d60d9f65 | 6426 | # Compiler output produced by configure, useful for debugging |
9255ee31 | 6427 | # configure, is in config.log if it exists. |
d60d9f65 | 6428 | |
9255ee31 | 6429 | debug=false |
25ed0b71 KW |
6430 | ac_cs_recheck=false |
6431 | ac_cs_silent=false | |
9255ee31 | 6432 | |
81ecdfbb RW |
6433 | SHELL=\${CONFIG_SHELL-$SHELL} |
6434 | export SHELL | |
6435 | _ASEOF | |
6436 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
6437 | ## -------------------- ## | |
6438 | ## M4sh Initialization. ## | |
6439 | ## -------------------- ## | |
6440 | ||
6441 | # Be more Bourne compatible | |
6442 | DUALCASE=1; export DUALCASE # for MKS sh | |
6443 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
9255ee31 EZ |
6444 | emulate sh |
6445 | NULLCMD=: | |
81ecdfbb | 6446 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
25ed0b71 KW |
6447 | # is contrary to our usage. Disable this feature. |
6448 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
6449 | setopt NO_GLOB_SUBST |
6450 | else | |
6451 | case `(set -o) 2>/dev/null` in #( | |
6452 | *posix*) : | |
6453 | set -o posix ;; #( | |
6454 | *) : | |
6455 | ;; | |
6456 | esac | |
9255ee31 EZ |
6457 | fi |
6458 | ||
81ecdfbb RW |
6459 | |
6460 | as_nl=' | |
6461 | ' | |
6462 | export as_nl | |
6463 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
6464 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6465 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
6466 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
6467 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
6468 | # but without wasting forks for bash or zsh. | |
6469 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
6470 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6471 | as_echo='print -r --' | |
6472 | as_echo_n='print -rn --' | |
6473 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6474 | as_echo='printf %s\n' | |
6475 | as_echo_n='printf %s' | |
6476 | else | |
6477 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
6478 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
6479 | as_echo_n='/usr/ucb/echo -n' | |
6480 | else | |
6481 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
6482 | as_echo_n_body='eval | |
6483 | arg=$1; | |
6484 | case $arg in #( | |
6485 | *"$as_nl"*) | |
6486 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
6487 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
6488 | esac; | |
6489 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
6490 | ' | |
6491 | export as_echo_n_body | |
6492 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
6493 | fi | |
6494 | export as_echo_body | |
6495 | as_echo='sh -c $as_echo_body as_echo' | |
6496 | fi | |
6497 | ||
6498 | # The user is always right. | |
6499 | if test "${PATH_SEPARATOR+set}" != set; then | |
6500 | PATH_SEPARATOR=: | |
6501 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
6502 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
6503 | PATH_SEPARATOR=';' | |
6504 | } | |
25ed0b71 KW |
6505 | fi |
6506 | ||
6507 | ||
81ecdfbb RW |
6508 | # IFS |
6509 | # We need space, tab and new line, in precisely that order. Quoting is | |
6510 | # there to prevent editors from complaining about space-tab. | |
6511 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
6512 | # splitting by setting IFS to empty value.) | |
6513 | IFS=" "" $as_nl" | |
6514 | ||
6515 | # Find who we are. Look in the path if we contain no directory separator. | |
6516 | case $0 in #(( | |
6517 | *[\\/]* ) as_myself=$0 ;; | |
6518 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6519 | for as_dir in $PATH | |
6520 | do | |
6521 | IFS=$as_save_IFS | |
6522 | test -z "$as_dir" && as_dir=. | |
6523 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6524 | done | |
6525 | IFS=$as_save_IFS | |
6526 | ||
6527 | ;; | |
6528 | esac | |
6529 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6530 | # in which case we are not to be found in the path. | |
6531 | if test "x$as_myself" = x; then | |
6532 | as_myself=$0 | |
6533 | fi | |
6534 | if test ! -f "$as_myself"; then | |
6535 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
6536 | exit 1 | |
6537 | fi | |
6538 | ||
6539 | # Unset variables that we do not need and which cause bugs (e.g. in | |
6540 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
6541 | # suppresses any "Segmentation fault" message there. '((' could | |
6542 | # trigger a bug in pdksh 5.2.14. | |
6543 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
6544 | do eval test x\${$as_var+set} = xset \ | |
6545 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
6546 | done | |
25ed0b71 KW |
6547 | PS1='$ ' |
6548 | PS2='> ' | |
6549 | PS4='+ ' | |
6550 | ||
6551 | # NLS nuisances. | |
81ecdfbb RW |
6552 | LC_ALL=C |
6553 | export LC_ALL | |
6554 | LANGUAGE=C | |
6555 | export LANGUAGE | |
6556 | ||
6557 | # CDPATH. | |
6558 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
6559 | ||
6560 | ||
6561 | # as_fn_error ERROR [LINENO LOG_FD] | |
6562 | # --------------------------------- | |
6563 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
6564 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
6565 | # script with status $?, using 1 if that was 0. | |
6566 | as_fn_error () | |
6567 | { | |
6568 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
6569 | if test "$3"; then | |
6570 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
6571 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
25ed0b71 | 6572 | fi |
81ecdfbb RW |
6573 | $as_echo "$as_me: error: $1" >&2 |
6574 | as_fn_exit $as_status | |
6575 | } # as_fn_error | |
25ed0b71 | 6576 | |
81ecdfbb RW |
6577 | |
6578 | # as_fn_set_status STATUS | |
6579 | # ----------------------- | |
6580 | # Set $? to STATUS, without forking. | |
6581 | as_fn_set_status () | |
6582 | { | |
6583 | return $1 | |
6584 | } # as_fn_set_status | |
6585 | ||
6586 | # as_fn_exit STATUS | |
6587 | # ----------------- | |
6588 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
6589 | as_fn_exit () | |
6590 | { | |
6591 | set +e | |
6592 | as_fn_set_status $1 | |
6593 | exit $1 | |
6594 | } # as_fn_exit | |
6595 | ||
6596 | # as_fn_unset VAR | |
6597 | # --------------- | |
6598 | # Portably unset VAR. | |
6599 | as_fn_unset () | |
6600 | { | |
6601 | { eval $1=; unset $1;} | |
6602 | } | |
6603 | as_unset=as_fn_unset | |
6604 | # as_fn_append VAR VALUE | |
6605 | # ---------------------- | |
6606 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
6607 | # advantage of any shell optimizations that allow amortized linear growth over | |
6608 | # repeated appends, instead of the typical quadratic growth present in naive | |
6609 | # implementations. | |
6610 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
6611 | eval 'as_fn_append () | |
6612 | { | |
6613 | eval $1+=\$2 | |
6614 | }' | |
6615 | else | |
6616 | as_fn_append () | |
6617 | { | |
6618 | eval $1=\$$1\$2 | |
6619 | } | |
6620 | fi # as_fn_append | |
6621 | ||
6622 | # as_fn_arith ARG... | |
6623 | # ------------------ | |
6624 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
6625 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
6626 | # must be portable across $(()) and expr. | |
6627 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
6628 | eval 'as_fn_arith () | |
6629 | { | |
6630 | as_val=$(( $* )) | |
6631 | }' | |
6632 | else | |
6633 | as_fn_arith () | |
6634 | { | |
6635 | as_val=`expr "$@" || test $? -eq 1` | |
6636 | } | |
6637 | fi # as_fn_arith | |
6638 | ||
6639 | ||
6640 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
6641 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
25ed0b71 KW |
6642 | as_expr=expr |
6643 | else | |
6644 | as_expr=false | |
6645 | fi | |
6646 | ||
81ecdfbb | 6647 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
25ed0b71 KW |
6648 | as_basename=basename |
6649 | else | |
6650 | as_basename=false | |
6651 | fi | |
6652 | ||
81ecdfbb RW |
6653 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
6654 | as_dirname=dirname | |
6655 | else | |
6656 | as_dirname=false | |
6657 | fi | |
25ed0b71 | 6658 | |
81ecdfbb | 6659 | as_me=`$as_basename -- "$0" || |
25ed0b71 KW |
6660 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
6661 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
6662 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
6663 | $as_echo X/"$0" | | |
6664 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
6665 | s//\1/ | |
6666 | q | |
6667 | } | |
6668 | /^X\/\(\/\/\)$/{ | |
6669 | s//\1/ | |
6670 | q | |
6671 | } | |
6672 | /^X\/\(\/\).*/{ | |
6673 | s//\1/ | |
6674 | q | |
6675 | } | |
6676 | s/.*/./; q'` | |
25ed0b71 | 6677 | |
25ed0b71 KW |
6678 | # Avoid depending upon Character Ranges. |
6679 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6680 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6681 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6682 | as_cr_digits='0123456789' | |
6683 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6684 | ||
81ecdfbb RW |
6685 | ECHO_C= ECHO_N= ECHO_T= |
6686 | case `echo -n x` in #((((( | |
6687 | -n*) | |
6688 | case `echo 'xy\c'` in | |
6689 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
6690 | xy) ECHO_C='\c';; | |
6691 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
6692 | ECHO_T=' ';; | |
6693 | esac;; | |
6694 | *) | |
6695 | ECHO_N='-n';; | |
25ed0b71 | 6696 | esac |
9255ee31 | 6697 | |
81ecdfbb RW |
6698 | rm -f conf$$ conf$$.exe conf$$.file |
6699 | if test -d conf$$.dir; then | |
6700 | rm -f conf$$.dir/conf$$.file | |
9255ee31 | 6701 | else |
81ecdfbb RW |
6702 | rm -f conf$$.dir |
6703 | mkdir conf$$.dir 2>/dev/null | |
9255ee31 | 6704 | fi |
81ecdfbb RW |
6705 | if (echo >conf$$.file) 2>/dev/null; then |
6706 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
9255ee31 | 6707 | as_ln_s='ln -s' |
81ecdfbb RW |
6708 | # ... but there are two gotchas: |
6709 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
6710 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
6711 | # In both cases, we have to default to `cp -p'. | |
6712 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
6713 | as_ln_s='cp -p' | |
6714 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
6715 | as_ln_s=ln | |
6716 | else | |
6717 | as_ln_s='cp -p' | |
9255ee31 | 6718 | fi |
9255ee31 EZ |
6719 | else |
6720 | as_ln_s='cp -p' | |
6721 | fi | |
81ecdfbb RW |
6722 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
6723 | rmdir conf$$.dir 2>/dev/null | |
6724 | ||
6725 | ||
6726 | # as_fn_mkdir_p | |
6727 | # ------------- | |
6728 | # Create "$as_dir" as a directory, including parents if necessary. | |
6729 | as_fn_mkdir_p () | |
6730 | { | |
6731 | ||
6732 | case $as_dir in #( | |
6733 | -*) as_dir=./$as_dir;; | |
6734 | esac | |
6735 | test -d "$as_dir" || eval $as_mkdir_p || { | |
6736 | as_dirs= | |
6737 | while :; do | |
6738 | case $as_dir in #( | |
6739 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
6740 | *) as_qdir=$as_dir;; | |
6741 | esac | |
6742 | as_dirs="'$as_qdir' $as_dirs" | |
6743 | as_dir=`$as_dirname -- "$as_dir" || | |
6744 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6745 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6746 | X"$as_dir" : 'X\(//\)$' \| \ | |
6747 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
6748 | $as_echo X"$as_dir" | | |
6749 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
6750 | s//\1/ | |
6751 | q | |
6752 | } | |
6753 | /^X\(\/\/\)[^/].*/{ | |
6754 | s//\1/ | |
6755 | q | |
6756 | } | |
6757 | /^X\(\/\/\)$/{ | |
6758 | s//\1/ | |
6759 | q | |
6760 | } | |
6761 | /^X\(\/\).*/{ | |
6762 | s//\1/ | |
6763 | q | |
6764 | } | |
6765 | s/.*/./; q'` | |
6766 | test -d "$as_dir" && break | |
6767 | done | |
6768 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
6769 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
9255ee31 | 6770 | |
81ecdfbb RW |
6771 | |
6772 | } # as_fn_mkdir_p | |
25ed0b71 | 6773 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 6774 | as_mkdir_p='mkdir -p "$as_dir"' |
9255ee31 | 6775 | else |
430b7832 | 6776 | test -d ./-p && rmdir ./-p |
25ed0b71 | 6777 | as_mkdir_p=false |
9255ee31 EZ |
6778 | fi |
6779 | ||
81ecdfbb RW |
6780 | if test -x / >/dev/null 2>&1; then |
6781 | as_test_x='test -x' | |
6782 | else | |
6783 | if ls -dL / >/dev/null 2>&1; then | |
6784 | as_ls_L_option=L | |
6785 | else | |
6786 | as_ls_L_option= | |
6787 | fi | |
6788 | as_test_x=' | |
6789 | eval sh -c '\'' | |
6790 | if test -d "$1"; then | |
6791 | test -d "$1/."; | |
6792 | else | |
6793 | case $1 in #( | |
6794 | -*)set "./$1";; | |
6795 | esac; | |
6796 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
6797 | ???[sx]*):;;*)false;;esac;fi | |
6798 | '\'' sh | |
6799 | ' | |
6800 | fi | |
6801 | as_executable_p=$as_test_x | |
25ed0b71 KW |
6802 | |
6803 | # Sed expression to map a string onto a valid CPP name. | |
430b7832 | 6804 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
25ed0b71 KW |
6805 | |
6806 | # Sed expression to map a string onto a valid variable name. | |
430b7832 | 6807 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
25ed0b71 | 6808 | |
9255ee31 | 6809 | |
9255ee31 | 6810 | exec 6>&1 |
81ecdfbb RW |
6811 | ## ----------------------------------- ## |
6812 | ## Main body of $CONFIG_STATUS script. ## | |
6813 | ## ----------------------------------- ## | |
6814 | _ASEOF | |
6815 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
9255ee31 | 6816 | |
81ecdfbb RW |
6817 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6818 | # Save the log message, to keep $0 and so on meaningful, and to | |
25ed0b71 | 6819 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
6820 | # values after options handling. |
6821 | ac_log=" | |
5836a818 | 6822 | This file was extended by readline $as_me 6.2, which was |
81ecdfbb | 6823 | generated by GNU Autoconf 2.64. Invocation command line was |
25ed0b71 KW |
6824 | |
6825 | CONFIG_FILES = $CONFIG_FILES | |
6826 | CONFIG_HEADERS = $CONFIG_HEADERS | |
6827 | CONFIG_LINKS = $CONFIG_LINKS | |
6828 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
6829 | $ $0 $@ | |
6830 | ||
81ecdfbb RW |
6831 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
6832 | " | |
6833 | ||
9255ee31 EZ |
6834 | _ACEOF |
6835 | ||
81ecdfbb RW |
6836 | case $ac_config_files in *" |
6837 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
6838 | esac | |
9255ee31 | 6839 | |
81ecdfbb RW |
6840 | case $ac_config_headers in *" |
6841 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
6842 | esac | |
9255ee31 | 6843 | |
9255ee31 | 6844 | |
81ecdfbb RW |
6845 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6846 | # Files that config.status was made for. | |
6847 | config_files="$ac_config_files" | |
6848 | config_headers="$ac_config_headers" | |
6849 | config_commands="$ac_config_commands" | |
9255ee31 | 6850 | |
81ecdfbb | 6851 | _ACEOF |
9255ee31 | 6852 | |
81ecdfbb | 6853 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9255ee31 | 6854 | ac_cs_usage="\ |
81ecdfbb RW |
6855 | \`$as_me' instantiates files and other configuration actions |
6856 | from templates according to the current configuration. Unless the files | |
6857 | and actions are specified as TAGs, all are instantiated by default. | |
9255ee31 | 6858 | |
81ecdfbb | 6859 | Usage: $0 [OPTION]... [TAG]... |
9255ee31 EZ |
6860 | |
6861 | -h, --help print this help, then exit | |
81ecdfbb RW |
6862 | -V, --version print version number and configuration settings, then exit |
6863 | -q, --quiet, --silent | |
6864 | do not print progress messages | |
9255ee31 EZ |
6865 | -d, --debug don't remove temporary files |
6866 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
6867 | --file=FILE[:TEMPLATE] |
6868 | instantiate the configuration file FILE | |
6869 | --header=FILE[:TEMPLATE] | |
6870 | instantiate the configuration header FILE | |
9255ee31 EZ |
6871 | |
6872 | Configuration files: | |
6873 | $config_files | |
6874 | ||
6875 | Configuration headers: | |
6876 | $config_headers | |
6877 | ||
6878 | Configuration commands: | |
6879 | $config_commands | |
6880 | ||
81ecdfbb | 6881 | Report bugs to <bug-readline@gnu.org>." |
9255ee31 | 6882 | |
81ecdfbb RW |
6883 | _ACEOF |
6884 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9255ee31 | 6885 | ac_cs_version="\\ |
5836a818 | 6886 | readline config.status 6.2 |
81ecdfbb RW |
6887 | configured by $0, generated by GNU Autoconf 2.64, |
6888 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
9255ee31 | 6889 | |
81ecdfbb | 6890 | Copyright (C) 2009 Free Software Foundation, Inc. |
9255ee31 EZ |
6891 | This config.status script is free software; the Free Software Foundation |
6892 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
6893 | |
6894 | ac_pwd='$ac_pwd' | |
6895 | srcdir='$srcdir' | |
6896 | INSTALL='$INSTALL' | |
6897 | test -n "\$AWK" || AWK=awk | |
25ed0b71 | 6898 | _ACEOF |
9255ee31 | 6899 | |
81ecdfbb RW |
6900 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6901 | # The default lists apply if the user does not specify any file. | |
9255ee31 EZ |
6902 | ac_need_defaults=: |
6903 | while test $# != 0 | |
d60d9f65 | 6904 | do |
9255ee31 EZ |
6905 | case $1 in |
6906 | --*=*) | |
81ecdfbb RW |
6907 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
6908 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
25ed0b71 KW |
6909 | ac_shift=: |
6910 | ;; | |
81ecdfbb | 6911 | *) |
25ed0b71 KW |
6912 | ac_option=$1 |
6913 | ac_optarg=$2 | |
6914 | ac_shift=shift | |
9255ee31 | 6915 | ;; |
9255ee31 EZ |
6916 | esac |
6917 | ||
25ed0b71 | 6918 | case $ac_option in |
9255ee31 | 6919 | # Handling of the options. |
d60d9f65 | 6920 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
25ed0b71 | 6921 | ac_cs_recheck=: ;; |
81ecdfbb RW |
6922 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
6923 | $as_echo "$ac_cs_version"; exit ;; | |
6924 | --debug | --debu | --deb | --de | --d | -d ) | |
9255ee31 EZ |
6925 | debug=: ;; |
6926 | --file | --fil | --fi | --f ) | |
25ed0b71 | 6927 | $ac_shift |
81ecdfbb RW |
6928 | case $ac_optarg in |
6929 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6930 | esac | |
6931 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
9255ee31 EZ |
6932 | ac_need_defaults=false;; |
6933 | --header | --heade | --head | --hea ) | |
25ed0b71 | 6934 | $ac_shift |
81ecdfbb RW |
6935 | case $ac_optarg in |
6936 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6937 | esac | |
6938 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
9255ee31 | 6939 | ac_need_defaults=false;; |
81ecdfbb RW |
6940 | --he | --h) |
6941 | # Conflict between --help and --header | |
6942 | as_fn_error "ambiguous option: \`$1' | |
6943 | Try \`$0 --help' for more information.";; | |
6944 | --help | --hel | -h ) | |
6945 | $as_echo "$ac_cs_usage"; exit ;; | |
25ed0b71 KW |
6946 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
6947 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
6948 | ac_cs_silent=: ;; | |
9255ee31 EZ |
6949 | |
6950 | # This is an error. | |
81ecdfbb RW |
6951 | -*) as_fn_error "unrecognized option: \`$1' |
6952 | Try \`$0 --help' for more information." ;; | |
9255ee31 | 6953 | |
81ecdfbb RW |
6954 | *) as_fn_append ac_config_targets " $1" |
6955 | ac_need_defaults=false ;; | |
9255ee31 | 6956 | |
d60d9f65 | 6957 | esac |
9255ee31 | 6958 | shift |
d60d9f65 SS |
6959 | done |
6960 | ||
25ed0b71 | 6961 | ac_configure_extra_args= |
9255ee31 | 6962 | |
25ed0b71 KW |
6963 | if $ac_cs_silent; then |
6964 | exec 6>/dev/null | |
6965 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
6966 | fi | |
9255ee31 | 6967 | |
25ed0b71 | 6968 | _ACEOF |
81ecdfbb | 6969 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
25ed0b71 | 6970 | if \$ac_cs_recheck; then |
81ecdfbb RW |
6971 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
6972 | shift | |
6973 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
6974 | CONFIG_SHELL='$SHELL' | |
6975 | export CONFIG_SHELL | |
6976 | exec "\$@" | |
25ed0b71 | 6977 | fi |
d60d9f65 | 6978 | |
9255ee31 | 6979 | _ACEOF |
81ecdfbb RW |
6980 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6981 | exec 5>>config.log | |
6982 | { | |
6983 | echo | |
6984 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
6985 | ## Running $as_me. ## | |
6986 | _ASBOX | |
6987 | $as_echo "$ac_log" | |
6988 | } >&5 | |
d60d9f65 | 6989 | |
81ecdfbb RW |
6990 | _ACEOF |
6991 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6992 | _ACEOF | |
25ed0b71 | 6993 | |
81ecdfbb | 6994 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
25ed0b71 | 6995 | |
81ecdfbb | 6996 | # Handling of arguments. |
9255ee31 EZ |
6997 | for ac_config_target in $ac_config_targets |
6998 | do | |
81ecdfbb RW |
6999 | case $ac_config_target in |
7000 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
7001 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7002 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
7003 | "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; | |
7004 | "shlib/Makefile") CONFIG_FILES="$CONFIG_FILES shlib/Makefile" ;; | |
7005 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
7006 | ||
7007 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
9255ee31 EZ |
7008 | esac |
7009 | done | |
7010 | ||
81ecdfbb | 7011 | |
9255ee31 EZ |
7012 | # If the user did not use the arguments to specify the items to instantiate, |
7013 | # then the envvar interface is used. Set only those that are not. | |
7014 | # We use the long form for the default assignment because of an extremely | |
7015 | # bizarre bug on SunOS 4.1.3. | |
7016 | if $ac_need_defaults; then | |
7017 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7018 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7019 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
7020 | fi | |
7021 | ||
25ed0b71 | 7022 | # Have a temporary directory for convenience. Make it in the build tree |
81ecdfbb | 7023 | # simply because there is no reason against having it here, and in addition, |
25ed0b71 | 7024 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
7025 | # Hook for its removal unless debugging. |
7026 | # Note that there is a small window in which the directory will not be cleaned: | |
7027 | # after its creation but before its name has been assigned to `$tmp'. | |
9255ee31 EZ |
7028 | $debug || |
7029 | { | |
81ecdfbb RW |
7030 | tmp= |
7031 | trap 'exit_status=$? | |
7032 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
7033 | ' 0 | |
7034 | trap 'as_fn_exit 1' 1 2 13 15 | |
9255ee31 | 7035 | } |
9255ee31 | 7036 | # Create a (secure) tmp directory for tmp files. |
25ed0b71 | 7037 | |
9255ee31 | 7038 | { |
81ecdfbb | 7039 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
9255ee31 EZ |
7040 | test -n "$tmp" && test -d "$tmp" |
7041 | } || | |
7042 | { | |
81ecdfbb RW |
7043 | tmp=./conf$$-$RANDOM |
7044 | (umask 077 && mkdir "$tmp") | |
7045 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
7046 | ||
7047 | # Set up the scripts for CONFIG_FILES section. | |
7048 | # No need to generate them if there are no CONFIG_FILES. | |
7049 | # This happens for instance with `./config.status config.h'. | |
7050 | if test -n "$CONFIG_FILES"; then | |
7051 | ||
7052 | ||
7053 | ac_cr=`echo X | tr X '\015'` | |
7054 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
7055 | # But we know of no other shell where ac_cr would be empty at this | |
7056 | # point, so we can use a bashism as a fallback. | |
7057 | if test "x$ac_cr" = x; then | |
7058 | eval ac_cr=\$\'\\r\' | |
7059 | fi | |
7060 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
7061 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
7062 | ac_cs_awk_cr='\r' | |
7063 | else | |
7064 | ac_cs_awk_cr=$ac_cr | |
7065 | fi | |
7066 | ||
7067 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
7068 | _ACEOF | |
7069 | ||
7070 | ||
9255ee31 | 7071 | { |
81ecdfbb RW |
7072 | echo "cat >conf$$subs.awk <<_ACEOF" && |
7073 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
7074 | echo "_ACEOF" | |
7075 | } >conf$$subs.sh || | |
7076 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7077 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
7078 | ac_delim='%!_!# ' | |
7079 | for ac_last_try in false false false false false :; do | |
7080 | . ./conf$$subs.sh || | |
7081 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7082 | ||
7083 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
7084 | if test $ac_delim_n = $ac_delim_num; then | |
7085 | break | |
7086 | elif $ac_last_try; then | |
7087 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7088 | else | |
7089 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
7090 | fi | |
7091 | done | |
7092 | rm -f conf$$subs.sh | |
7093 | ||
7094 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7095 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
7096 | _ACEOF | |
7097 | sed -n ' | |
7098 | h | |
7099 | s/^/S["/; s/!.*/"]=/ | |
7100 | p | |
7101 | g | |
7102 | s/^[^!]*!// | |
7103 | :repl | |
7104 | t repl | |
7105 | s/'"$ac_delim"'$// | |
7106 | t delim | |
7107 | :nl | |
7108 | h | |
7109 | s/\(.\{148\}\).*/\1/ | |
7110 | t more1 | |
7111 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
7112 | p | |
7113 | n | |
7114 | b repl | |
7115 | :more1 | |
7116 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7117 | p | |
7118 | g | |
7119 | s/.\{148\}// | |
7120 | t nl | |
7121 | :delim | |
7122 | h | |
7123 | s/\(.\{148\}\).*/\1/ | |
7124 | t more2 | |
7125 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
7126 | p | |
7127 | b | |
7128 | :more2 | |
7129 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7130 | p | |
7131 | g | |
7132 | s/.\{148\}// | |
7133 | t delim | |
7134 | ' <conf$$subs.awk | sed ' | |
7135 | /^[^""]/{ | |
7136 | N | |
7137 | s/\n// | |
9255ee31 | 7138 | } |
81ecdfbb RW |
7139 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
7140 | rm -f conf$$subs.awk | |
7141 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7142 | _ACAWK | |
7143 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
7144 | for (key in S) S_is_set[key] = 1 | |
7145 | FS = "\a" | |
d60d9f65 | 7146 | |
81ecdfbb RW |
7147 | } |
7148 | { | |
7149 | line = $ 0 | |
7150 | nfields = split(line, field, "@") | |
7151 | substed = 0 | |
7152 | len = length(field[1]) | |
7153 | for (i = 2; i < nfields; i++) { | |
7154 | key = field[i] | |
7155 | keylen = length(key) | |
7156 | if (S_is_set[key]) { | |
7157 | value = S[key] | |
7158 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
7159 | len += length(value) + length(field[++i]) | |
7160 | substed = 1 | |
7161 | } else | |
7162 | len += 1 + keylen | |
7163 | } | |
d60d9f65 | 7164 | |
81ecdfbb RW |
7165 | print line |
7166 | } | |
d60d9f65 | 7167 | |
81ecdfbb RW |
7168 | _ACAWK |
7169 | _ACEOF | |
7170 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7171 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
7172 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
7173 | else | |
7174 | cat | |
7175 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
7176 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
7177 | _ACEOF | |
7178 | ||
7179 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
7180 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7181 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7182 | # (actually we leave an empty line to preserve line numbers). | |
7183 | if test "x$srcdir" = x.; then | |
7184 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
7185 | s/:*\$(srcdir):*/:/ | |
7186 | s/:*\${srcdir}:*/:/ | |
7187 | s/:*@srcdir@:*/:/ | |
7188 | s/^\([^=]*=[ ]*\):*/\1/ | |
7189 | s/:*$// | |
7190 | s/^[^=]*=[ ]*$// | |
7191 | }' | |
7192 | fi | |
9255ee31 | 7193 | |
81ecdfbb RW |
7194 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7195 | fi # test -n "$CONFIG_FILES" | |
9255ee31 | 7196 | |
81ecdfbb RW |
7197 | # Set up the scripts for CONFIG_HEADERS section. |
7198 | # No need to generate them if there are no CONFIG_HEADERS. | |
7199 | # This happens for instance with `./config.status Makefile'. | |
7200 | if test -n "$CONFIG_HEADERS"; then | |
7201 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
7202 | BEGIN { | |
25ed0b71 | 7203 | _ACEOF |
9255ee31 | 7204 | |
81ecdfbb RW |
7205 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
7206 | # here-document in config.status, that substitutes the proper values into | |
7207 | # config.h.in to produce config.h. | |
7208 | ||
7209 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
7210 | # handling of long lines. | |
7211 | ac_delim='%!_!# ' | |
7212 | for ac_last_try in false false :; do | |
7213 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
7214 | if test -z "$ac_t"; then | |
7215 | break | |
7216 | elif $ac_last_try; then | |
7217 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
7218 | else | |
7219 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
d60d9f65 | 7220 | fi |
81ecdfbb | 7221 | done |
d60d9f65 | 7222 | |
81ecdfbb RW |
7223 | # For the awk script, D is an array of macro values keyed by name, |
7224 | # likewise P contains macro parameters if any. Preserve backslash | |
7225 | # newline sequences. | |
7226 | ||
7227 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
7228 | sed -n ' | |
7229 | s/.\{148\}/&'"$ac_delim"'/g | |
7230 | t rset | |
7231 | :rset | |
7232 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
7233 | t def | |
7234 | d | |
7235 | :def | |
7236 | s/\\$// | |
7237 | t bsnl | |
7238 | s/["\\]/\\&/g | |
7239 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7240 | D["\1"]=" \3"/p | |
7241 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
7242 | d | |
7243 | :bsnl | |
7244 | s/["\\]/\\&/g | |
7245 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7246 | D["\1"]=" \3\\\\\\n"\\/p | |
7247 | t cont | |
7248 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
7249 | t cont | |
7250 | d | |
7251 | :cont | |
7252 | n | |
7253 | s/.\{148\}/&'"$ac_delim"'/g | |
7254 | t clear | |
7255 | :clear | |
7256 | s/\\$// | |
7257 | t bsnlc | |
7258 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
7259 | d | |
7260 | :bsnlc | |
7261 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
7262 | b cont | |
7263 | ' <confdefs.h | sed ' | |
7264 | s/'"$ac_delim"'/"\\\ | |
7265 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
7266 | ||
7267 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7268 | for (key in D) D_is_set[key] = 1 | |
7269 | FS = "\a" | |
7270 | } | |
7271 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
7272 | line = \$ 0 | |
7273 | split(line, arg, " ") | |
7274 | if (arg[1] == "#") { | |
7275 | defundef = arg[2] | |
7276 | mac1 = arg[3] | |
7277 | } else { | |
7278 | defundef = substr(arg[1], 2) | |
7279 | mac1 = arg[2] | |
7280 | } | |
7281 | split(mac1, mac2, "(") #) | |
7282 | macro = mac2[1] | |
7283 | prefix = substr(line, 1, index(line, defundef) - 1) | |
7284 | if (D_is_set[macro]) { | |
7285 | # Preserve the white space surrounding the "#". | |
7286 | print prefix "define", macro P[macro] D[macro] | |
7287 | next | |
7288 | } else { | |
7289 | # Replace #undef with comments. This is necessary, for example, | |
7290 | # in the case of _POSIX_SOURCE, which is predefined and required | |
7291 | # on some systems where configure will not decide to define it. | |
7292 | if (defundef == "undef") { | |
7293 | print "/*", prefix defundef, macro, "*/" | |
7294 | next | |
7295 | } | |
7296 | } | |
7297 | } | |
7298 | { print } | |
7299 | _ACAWK | |
25ed0b71 | 7300 | _ACEOF |
81ecdfbb RW |
7301 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7302 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
7303 | fi # test -n "$CONFIG_HEADERS" | |
7304 | ||
7305 | ||
7306 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
7307 | shift | |
7308 | for ac_tag | |
7309 | do | |
7310 | case $ac_tag in | |
7311 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
7312 | esac | |
7313 | case $ac_mode$ac_tag in | |
7314 | :[FHL]*:*);; | |
7315 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
7316 | :[FH]-) ac_tag=-:-;; | |
7317 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
7318 | esac | |
7319 | ac_save_IFS=$IFS | |
7320 | IFS=: | |
7321 | set x $ac_tag | |
7322 | IFS=$ac_save_IFS | |
7323 | shift | |
7324 | ac_file=$1 | |
7325 | shift | |
7326 | ||
7327 | case $ac_mode in | |
7328 | :L) ac_source=$1;; | |
7329 | :[FH]) | |
7330 | ac_file_inputs= | |
7331 | for ac_f | |
7332 | do | |
7333 | case $ac_f in | |
7334 | -) ac_f="$tmp/stdin";; | |
7335 | *) # Look for the file first in the build tree, then in the source tree | |
7336 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
7337 | # because $ac_f cannot contain `:'. | |
7338 | test -f "$ac_f" || | |
7339 | case $ac_f in | |
7340 | [\\/$]*) false;; | |
7341 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
7342 | esac || | |
7343 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
7344 | esac | |
7345 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
7346 | as_fn_append ac_file_inputs " '$ac_f'" | |
7347 | done | |
7348 | ||
7349 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7350 | # use $as_me), people would be surprised to read: | |
7351 | # /* config.h. Generated by config.status. */ | |
7352 | configure_input='Generated from '` | |
7353 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
7354 | `' by configure.' | |
7355 | if test x"$ac_file" != x-; then | |
7356 | configure_input="$ac_file. $configure_input" | |
7357 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
7358 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7359 | fi | |
7360 | # Neutralize special characters interpreted by sed in replacement strings. | |
7361 | case $configure_input in #( | |
7362 | *\&* | *\|* | *\\* ) | |
7363 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
7364 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
7365 | *) ac_sed_conf_input=$configure_input;; | |
7366 | esac | |
7367 | ||
7368 | case $ac_tag in | |
7369 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
7370 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
7371 | esac | |
7372 | ;; | |
d60d9f65 SS |
7373 | esac |
7374 | ||
81ecdfbb | 7375 | ac_dir=`$as_dirname -- "$ac_file" || |
25ed0b71 | 7376 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
430b7832 MM |
7377 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
7378 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
7379 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
7380 | $as_echo X"$ac_file" | | |
7381 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7382 | s//\1/ | |
7383 | q | |
7384 | } | |
7385 | /^X\(\/\/\)[^/].*/{ | |
7386 | s//\1/ | |
7387 | q | |
7388 | } | |
7389 | /^X\(\/\/\)$/{ | |
7390 | s//\1/ | |
7391 | q | |
7392 | } | |
7393 | /^X\(\/\).*/{ | |
7394 | s//\1/ | |
7395 | q | |
7396 | } | |
7397 | s/.*/./; q'` | |
7398 | as_dir="$ac_dir"; as_fn_mkdir_p | |
25ed0b71 KW |
7399 | ac_builddir=. |
7400 | ||
81ecdfbb RW |
7401 | case "$ac_dir" in |
7402 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7403 | *) | |
7404 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
7405 | # A ".." for each directory in $ac_dir_suffix. | |
7406 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
7407 | case $ac_top_builddir_sub in | |
7408 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7409 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
7410 | esac ;; | |
7411 | esac | |
7412 | ac_abs_top_builddir=$ac_pwd | |
7413 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
7414 | # for backward compatibility: | |
7415 | ac_top_builddir=$ac_top_build_prefix | |
25ed0b71 KW |
7416 | |
7417 | case $srcdir in | |
81ecdfbb | 7418 | .) # We are building in place. |
25ed0b71 | 7419 | ac_srcdir=. |
81ecdfbb RW |
7420 | ac_top_srcdir=$ac_top_builddir_sub |
7421 | ac_abs_top_srcdir=$ac_pwd ;; | |
7422 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
25ed0b71 | 7423 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
7424 | ac_top_srcdir=$srcdir |
7425 | ac_abs_top_srcdir=$srcdir ;; | |
7426 | *) # Relative name. | |
7427 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
7428 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
7429 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
25ed0b71 | 7430 | esac |
81ecdfbb | 7431 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
430b7832 | 7432 | |
25ed0b71 | 7433 | |
81ecdfbb RW |
7434 | case $ac_mode in |
7435 | :F) | |
7436 | # | |
7437 | # CONFIG_FILE | |
7438 | # | |
d60d9f65 | 7439 | |
9255ee31 EZ |
7440 | case $INSTALL in |
7441 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 7442 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
d60d9f65 | 7443 | esac |
81ecdfbb | 7444 | _ACEOF |
d60d9f65 | 7445 | |
81ecdfbb RW |
7446 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7447 | # If the template does not know about datarootdir, expand it. | |
7448 | # FIXME: This hack should be removed a few years after 2.60. | |
7449 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7450 | ac_sed_dataroot=' | |
7451 | /datarootdir/ { | |
7452 | p | |
7453 | q | |
7454 | } | |
7455 | /@datadir@/p | |
7456 | /@docdir@/p | |
7457 | /@infodir@/p | |
7458 | /@localedir@/p | |
7459 | /@mandir@/p' | |
7460 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7461 | *datarootdir*) ac_datarootdir_seen=yes;; | |
7462 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7463 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
7464 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
7465 | _ACEOF | |
7466 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7467 | ac_datarootdir_hack=' | |
7468 | s&@datadir@&$datadir&g | |
7469 | s&@docdir@&$docdir&g | |
7470 | s&@infodir@&$infodir&g | |
7471 | s&@localedir@&$localedir&g | |
7472 | s&@mandir@&$mandir&g | |
7473 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
7474 | esac | |
25ed0b71 | 7475 | _ACEOF |
81ecdfbb RW |
7476 | |
7477 | # Neutralize VPATH when `$srcdir' = `.'. | |
7478 | # Shell code in configure.ac might set extrasub. | |
7479 | # FIXME: do we really want to maintain this feature? | |
7480 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7481 | ac_sed_extra="$ac_vpsub | |
9255ee31 | 7482 | $extrasub |
25ed0b71 | 7483 | _ACEOF |
81ecdfbb | 7484 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9255ee31 EZ |
7485 | :t |
7486 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
7487 | s|@configure_input@|$ac_sed_conf_input|;t t |
7488 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
7489 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
7490 | s&@srcdir@&$ac_srcdir&;t t | |
7491 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
7492 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
7493 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
7494 | s&@builddir@&$ac_builddir&;t t | |
7495 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
7496 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
7497 | s&@INSTALL@&$ac_INSTALL&;t t | |
7498 | $ac_datarootdir_hack | |
7499 | " | |
7500 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
7501 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
7502 | ||
7503 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
7504 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
7505 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
7506 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
7507 | which seems to be undefined. Please make sure it is defined." >&5 | |
7508 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
7509 | which seems to be undefined. Please make sure it is defined." >&2;} | |
7510 | ||
7511 | rm -f "$tmp/stdin" | |
9255ee31 | 7512 | case $ac_file in |
81ecdfbb RW |
7513 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
7514 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
7515 | esac \ | |
7516 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
7517 | ;; | |
7518 | :H) | |
7519 | # | |
7520 | # CONFIG_HEADER | |
7521 | # | |
9255ee31 | 7522 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
7523 | { |
7524 | $as_echo "/* $configure_input */" \ | |
7525 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
7526 | } >"$tmp/config.h" \ | |
7527 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
7528 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
7529 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
7530 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
9255ee31 | 7531 | else |
81ecdfbb RW |
7532 | rm -f "$ac_file" |
7533 | mv "$tmp/config.h" "$ac_file" \ | |
7534 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
d60d9f65 | 7535 | fi |
9255ee31 | 7536 | else |
81ecdfbb RW |
7537 | $as_echo "/* $configure_input */" \ |
7538 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
7539 | || as_fn_error "could not create -" "$LINENO" 5 | |
d60d9f65 | 7540 | fi |
81ecdfbb | 7541 | ;; |
430b7832 | 7542 | |
81ecdfbb RW |
7543 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
7544 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
7545 | ;; | |
7546 | esac | |
25ed0b71 | 7547 | |
d60d9f65 | 7548 | |
81ecdfbb RW |
7549 | case $ac_file$ac_mode in |
7550 | "default":C) | |
d60d9f65 SS |
7551 | # Makefile uses this timestamp file to record whether config.h is up to date. |
7552 | echo > stamp-h | |
9255ee31 | 7553 | ;; |
81ecdfbb | 7554 | |
9255ee31 | 7555 | esac |
81ecdfbb | 7556 | done # for ac_tag |
d60d9f65 | 7557 | |
9255ee31 | 7558 | |
81ecdfbb | 7559 | as_fn_exit 0 |
25ed0b71 | 7560 | _ACEOF |
9255ee31 EZ |
7561 | ac_clean_files=$ac_clean_files_save |
7562 | ||
81ecdfbb RW |
7563 | test $ac_write_fail = 0 || |
7564 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
7565 | ||
25ed0b71 | 7566 | |
9255ee31 EZ |
7567 | # configure is writing to config.log, and then calls config.status. |
7568 | # config.status does its own redirection, appending to config.log. | |
7569 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7570 | # by configure, so config.status won't be able to write to it; its | |
7571 | # output is simply discarded. So we exec the FD to /dev/null, | |
7572 | # effectively closing config.log, so it can be properly (re)opened and | |
7573 | # appended to by config.status. When coming back to configure, we | |
7574 | # need to make the FD available again. | |
7575 | if test "$no_create" != yes; then | |
7576 | ac_cs_success=: | |
25ed0b71 KW |
7577 | ac_config_status_args= |
7578 | test "$silent" = yes && | |
7579 | ac_config_status_args="$ac_config_status_args --quiet" | |
9255ee31 | 7580 | exec 5>/dev/null |
25ed0b71 | 7581 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
9255ee31 EZ |
7582 | exec 5>>config.log |
7583 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7584 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
7585 | $ac_cs_success || as_fn_exit $? |
7586 | fi | |
7587 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
7588 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
7589 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
9255ee31 | 7590 | fi |
d60d9f65 | 7591 |