Commit | Line | Data |
---|---|---|
b585a9fa EZ |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
b585a9fa | 8 | # |
b585a9fa EZ |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
b585a9fa | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b585a9fa EZ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b585a9fa EZ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
b585a9fa | 31 | fi |
b585a9fa | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
b585a9fa | 50 | else |
81ecdfbb RW |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
b585a9fa EZ |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
b585a9fa EZ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
173 | if (eval "$as_required") 2>/dev/null; then : | |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
b585a9fa | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
b585a9fa | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
b585a9fa | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
263 | ||
264 | # as_fn_exit STATUS | |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
b585a9fa | 372 | |
81ecdfbb RW |
373 | if expr a : '\(a\)' >/dev/null 2>&1 && |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b585a9fa EZ |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b585a9fa EZ |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
b585a9fa | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
b585a9fa EZ |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
b585a9fa | 410 | |
b585a9fa EZ |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
417 | ||
b585a9fa | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
b585a9fa | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
b585a9fa | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b585a9fa | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
b585a9fa | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
b585a9fa EZ |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
b585a9fa EZ |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
b585a9fa EZ |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
b585a9fa | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
b585a9fa | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b585a9fa | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
b585a9fa | 483 | fi |
b585a9fa EZ |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
b585a9fa EZ |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
b585a9fa EZ |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
b585a9fa EZ |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
81ecdfbb | 527 | exec 7<&0 </dev/null 6>&1 |
b585a9fa EZ |
528 | |
529 | # Name of the host. | |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
b585a9fa EZ |
534 | # |
535 | # Initializations. | |
536 | # | |
537 | ac_default_prefix=/usr/local | |
81ecdfbb | 538 | ac_clean_files= |
b585a9fa | 539 | ac_config_libobj_dir=. |
81ecdfbb | 540 | LIBOBJS= |
b585a9fa EZ |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
b585a9fa EZ |
545 | |
546 | # Identity of this package. | |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
81ecdfbb | 552 | PACKAGE_URL= |
b585a9fa EZ |
553 | |
554 | ac_unique_file="rlfe.c" | |
81ecdfbb RW |
555 | ac_subst_vars='LTLIBOBJS |
556 | LIBOBJS | |
557 | XTERMPATH | |
558 | WRITEPATH | |
559 | AWK | |
560 | EGREP | |
561 | GREP | |
562 | CPP | |
563 | OBJEXT | |
564 | EXEEXT | |
565 | ac_ct_CC | |
566 | CPPFLAGS | |
567 | LDFLAGS | |
568 | CFLAGS | |
569 | CC | |
570 | VERSION | |
571 | target_alias | |
572 | host_alias | |
573 | build_alias | |
574 | LIBS | |
575 | ECHO_T | |
576 | ECHO_N | |
577 | ECHO_C | |
578 | DEFS | |
579 | mandir | |
580 | localedir | |
581 | libdir | |
582 | psdir | |
583 | pdfdir | |
584 | dvidir | |
585 | htmldir | |
586 | infodir | |
587 | docdir | |
588 | oldincludedir | |
589 | includedir | |
590 | localstatedir | |
591 | sharedstatedir | |
592 | sysconfdir | |
593 | datadir | |
594 | datarootdir | |
595 | libexecdir | |
596 | sbindir | |
597 | bindir | |
598 | program_transform_name | |
599 | prefix | |
600 | exec_prefix | |
601 | PACKAGE_URL | |
602 | PACKAGE_BUGREPORT | |
603 | PACKAGE_STRING | |
604 | PACKAGE_VERSION | |
605 | PACKAGE_TARNAME | |
606 | PACKAGE_NAME | |
607 | PATH_SEPARATOR | |
608 | SHELL' | |
b585a9fa | 609 | ac_subst_files='' |
81ecdfbb RW |
610 | ac_user_opts=' |
611 | enable_option_checking | |
612 | with_pty_mode | |
613 | with_pty_group | |
614 | ' | |
615 | ac_precious_vars='build_alias | |
616 | host_alias | |
617 | target_alias | |
618 | CC | |
619 | CFLAGS | |
620 | LDFLAGS | |
621 | LIBS | |
622 | CPPFLAGS | |
623 | CPP' | |
624 | ||
b585a9fa EZ |
625 | |
626 | # Initialize some variables set by options. | |
627 | ac_init_help= | |
628 | ac_init_version=false | |
81ecdfbb RW |
629 | ac_unrecognized_opts= |
630 | ac_unrecognized_sep= | |
b585a9fa EZ |
631 | # The variables have the same names as the options, with |
632 | # dashes changed to underlines. | |
633 | cache_file=/dev/null | |
634 | exec_prefix=NONE | |
635 | no_create= | |
636 | no_recursion= | |
637 | prefix=NONE | |
638 | program_prefix=NONE | |
639 | program_suffix=NONE | |
640 | program_transform_name=s,x,x, | |
641 | silent= | |
642 | site= | |
643 | srcdir= | |
644 | verbose= | |
645 | x_includes=NONE | |
646 | x_libraries=NONE | |
647 | ||
648 | # Installation directory options. | |
649 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
650 | # and all the variables that are supposed to be based on exec_prefix | |
651 | # by default will actually change. | |
652 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 653 | # (The list follows the same order as the GNU Coding Standards.) |
b585a9fa EZ |
654 | bindir='${exec_prefix}/bin' |
655 | sbindir='${exec_prefix}/sbin' | |
656 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
657 | datarootdir='${prefix}/share' |
658 | datadir='${datarootdir}' | |
b585a9fa EZ |
659 | sysconfdir='${prefix}/etc' |
660 | sharedstatedir='${prefix}/com' | |
661 | localstatedir='${prefix}/var' | |
b585a9fa EZ |
662 | includedir='${prefix}/include' |
663 | oldincludedir='/usr/include' | |
81ecdfbb RW |
664 | docdir='${datarootdir}/doc/${PACKAGE}' |
665 | infodir='${datarootdir}/info' | |
666 | htmldir='${docdir}' | |
667 | dvidir='${docdir}' | |
668 | pdfdir='${docdir}' | |
669 | psdir='${docdir}' | |
670 | libdir='${exec_prefix}/lib' | |
671 | localedir='${datarootdir}/locale' | |
672 | mandir='${datarootdir}/man' | |
b585a9fa EZ |
673 | |
674 | ac_prev= | |
81ecdfbb | 675 | ac_dashdash= |
b585a9fa EZ |
676 | for ac_option |
677 | do | |
678 | # If the previous option needs an argument, assign it. | |
679 | if test -n "$ac_prev"; then | |
81ecdfbb | 680 | eval $ac_prev=\$ac_option |
b585a9fa EZ |
681 | ac_prev= |
682 | continue | |
683 | fi | |
684 | ||
81ecdfbb RW |
685 | case $ac_option in |
686 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
687 | *) ac_optarg=yes ;; | |
688 | esac | |
b585a9fa EZ |
689 | |
690 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
691 | ||
81ecdfbb RW |
692 | case $ac_dashdash$ac_option in |
693 | --) | |
694 | ac_dashdash=yes ;; | |
b585a9fa EZ |
695 | |
696 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
697 | ac_prev=bindir ;; | |
698 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
699 | bindir=$ac_optarg ;; | |
700 | ||
701 | -build | --build | --buil | --bui | --bu) | |
702 | ac_prev=build_alias ;; | |
703 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
704 | build_alias=$ac_optarg ;; | |
705 | ||
706 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
707 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
708 | ac_prev=cache_file ;; | |
709 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
710 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
711 | cache_file=$ac_optarg ;; | |
712 | ||
713 | --config-cache | -C) | |
714 | cache_file=config.cache ;; | |
715 | ||
81ecdfbb | 716 | -datadir | --datadir | --datadi | --datad) |
b585a9fa | 717 | ac_prev=datadir ;; |
81ecdfbb | 718 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b585a9fa EZ |
719 | datadir=$ac_optarg ;; |
720 | ||
81ecdfbb RW |
721 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
722 | | --dataroo | --dataro | --datar) | |
723 | ac_prev=datarootdir ;; | |
724 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
725 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
726 | datarootdir=$ac_optarg ;; | |
727 | ||
b585a9fa | 728 | -disable-* | --disable-*) |
81ecdfbb | 729 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
b585a9fa | 730 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
731 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
732 | as_fn_error "invalid feature name: $ac_useropt" | |
733 | ac_useropt_orig=$ac_useropt | |
734 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
735 | case $ac_user_opts in | |
736 | *" | |
737 | "enable_$ac_useropt" | |
738 | "*) ;; | |
739 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
740 | ac_unrecognized_sep=', ';; | |
741 | esac | |
742 | eval enable_$ac_useropt=no ;; | |
743 | ||
744 | -docdir | --docdir | --docdi | --doc | --do) | |
745 | ac_prev=docdir ;; | |
746 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
747 | docdir=$ac_optarg ;; | |
748 | ||
749 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
750 | ac_prev=dvidir ;; | |
751 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
752 | dvidir=$ac_optarg ;; | |
b585a9fa EZ |
753 | |
754 | -enable-* | --enable-*) | |
81ecdfbb | 755 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
b585a9fa | 756 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
757 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
758 | as_fn_error "invalid feature name: $ac_useropt" | |
759 | ac_useropt_orig=$ac_useropt | |
760 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
761 | case $ac_user_opts in | |
762 | *" | |
763 | "enable_$ac_useropt" | |
764 | "*) ;; | |
765 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
766 | ac_unrecognized_sep=', ';; | |
b585a9fa | 767 | esac |
81ecdfbb | 768 | eval enable_$ac_useropt=\$ac_optarg ;; |
b585a9fa EZ |
769 | |
770 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
771 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
772 | | --exec | --exe | --ex) | |
773 | ac_prev=exec_prefix ;; | |
774 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
775 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
776 | | --exec=* | --exe=* | --ex=*) | |
777 | exec_prefix=$ac_optarg ;; | |
778 | ||
779 | -gas | --gas | --ga | --g) | |
780 | # Obsolete; use --with-gas. | |
781 | with_gas=yes ;; | |
782 | ||
783 | -help | --help | --hel | --he | -h) | |
784 | ac_init_help=long ;; | |
785 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
786 | ac_init_help=recursive ;; | |
787 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
788 | ac_init_help=short ;; | |
789 | ||
790 | -host | --host | --hos | --ho) | |
791 | ac_prev=host_alias ;; | |
792 | -host=* | --host=* | --hos=* | --ho=*) | |
793 | host_alias=$ac_optarg ;; | |
794 | ||
81ecdfbb RW |
795 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
796 | ac_prev=htmldir ;; | |
797 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
798 | | --ht=*) | |
799 | htmldir=$ac_optarg ;; | |
800 | ||
b585a9fa EZ |
801 | -includedir | --includedir | --includedi | --included | --include \ |
802 | | --includ | --inclu | --incl | --inc) | |
803 | ac_prev=includedir ;; | |
804 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
805 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
806 | includedir=$ac_optarg ;; | |
807 | ||
808 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
809 | ac_prev=infodir ;; | |
810 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
811 | infodir=$ac_optarg ;; | |
812 | ||
813 | -libdir | --libdir | --libdi | --libd) | |
814 | ac_prev=libdir ;; | |
815 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
816 | libdir=$ac_optarg ;; | |
817 | ||
818 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
819 | | --libexe | --libex | --libe) | |
820 | ac_prev=libexecdir ;; | |
821 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
822 | | --libexe=* | --libex=* | --libe=*) | |
823 | libexecdir=$ac_optarg ;; | |
824 | ||
81ecdfbb RW |
825 | -localedir | --localedir | --localedi | --localed | --locale) |
826 | ac_prev=localedir ;; | |
827 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
828 | localedir=$ac_optarg ;; | |
829 | ||
b585a9fa | 830 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 831 | | --localstate | --localstat | --localsta | --localst | --locals) |
b585a9fa EZ |
832 | ac_prev=localstatedir ;; |
833 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 834 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b585a9fa EZ |
835 | localstatedir=$ac_optarg ;; |
836 | ||
837 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
838 | ac_prev=mandir ;; | |
839 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
840 | mandir=$ac_optarg ;; | |
841 | ||
842 | -nfp | --nfp | --nf) | |
843 | # Obsolete; use --without-fp. | |
844 | with_fp=no ;; | |
845 | ||
846 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
847 | | --no-cr | --no-c | -n) | |
848 | no_create=yes ;; | |
849 | ||
850 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
851 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
852 | no_recursion=yes ;; | |
853 | ||
854 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
855 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
856 | | --oldin | --oldi | --old | --ol | --o) | |
857 | ac_prev=oldincludedir ;; | |
858 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
859 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
860 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
861 | oldincludedir=$ac_optarg ;; | |
862 | ||
863 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
864 | ac_prev=prefix ;; | |
865 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
866 | prefix=$ac_optarg ;; | |
867 | ||
868 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
869 | | --program-pre | --program-pr | --program-p) | |
870 | ac_prev=program_prefix ;; | |
871 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
872 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
873 | program_prefix=$ac_optarg ;; | |
874 | ||
875 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
876 | | --program-suf | --program-su | --program-s) | |
877 | ac_prev=program_suffix ;; | |
878 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
879 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
880 | program_suffix=$ac_optarg ;; | |
881 | ||
882 | -program-transform-name | --program-transform-name \ | |
883 | | --program-transform-nam | --program-transform-na \ | |
884 | | --program-transform-n | --program-transform- \ | |
885 | | --program-transform | --program-transfor \ | |
886 | | --program-transfo | --program-transf \ | |
887 | | --program-trans | --program-tran \ | |
888 | | --progr-tra | --program-tr | --program-t) | |
889 | ac_prev=program_transform_name ;; | |
890 | -program-transform-name=* | --program-transform-name=* \ | |
891 | | --program-transform-nam=* | --program-transform-na=* \ | |
892 | | --program-transform-n=* | --program-transform-=* \ | |
893 | | --program-transform=* | --program-transfor=* \ | |
894 | | --program-transfo=* | --program-transf=* \ | |
895 | | --program-trans=* | --program-tran=* \ | |
896 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
897 | program_transform_name=$ac_optarg ;; | |
898 | ||
81ecdfbb RW |
899 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
900 | ac_prev=pdfdir ;; | |
901 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
902 | pdfdir=$ac_optarg ;; | |
903 | ||
904 | -psdir | --psdir | --psdi | --psd | --ps) | |
905 | ac_prev=psdir ;; | |
906 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
907 | psdir=$ac_optarg ;; | |
908 | ||
b585a9fa EZ |
909 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
910 | | -silent | --silent | --silen | --sile | --sil) | |
911 | silent=yes ;; | |
912 | ||
913 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
914 | ac_prev=sbindir ;; | |
915 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
916 | | --sbi=* | --sb=*) | |
917 | sbindir=$ac_optarg ;; | |
918 | ||
919 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
920 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
921 | | --sharedst | --shareds | --shared | --share | --shar \ | |
922 | | --sha | --sh) | |
923 | ac_prev=sharedstatedir ;; | |
924 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
925 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
926 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
927 | | --sha=* | --sh=*) | |
928 | sharedstatedir=$ac_optarg ;; | |
929 | ||
930 | -site | --site | --sit) | |
931 | ac_prev=site ;; | |
932 | -site=* | --site=* | --sit=*) | |
933 | site=$ac_optarg ;; | |
934 | ||
935 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
936 | ac_prev=srcdir ;; | |
937 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
938 | srcdir=$ac_optarg ;; | |
939 | ||
940 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
941 | | --syscon | --sysco | --sysc | --sys | --sy) | |
942 | ac_prev=sysconfdir ;; | |
943 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
944 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
945 | sysconfdir=$ac_optarg ;; | |
946 | ||
947 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
948 | ac_prev=target_alias ;; | |
949 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
950 | target_alias=$ac_optarg ;; | |
951 | ||
952 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
953 | verbose=yes ;; | |
954 | ||
955 | -version | --version | --versio | --versi | --vers | -V) | |
956 | ac_init_version=: ;; | |
957 | ||
958 | -with-* | --with-*) | |
81ecdfbb | 959 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
b585a9fa | 960 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
961 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
962 | as_fn_error "invalid package name: $ac_useropt" | |
963 | ac_useropt_orig=$ac_useropt | |
964 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
965 | case $ac_user_opts in | |
966 | *" | |
967 | "with_$ac_useropt" | |
968 | "*) ;; | |
969 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
970 | ac_unrecognized_sep=', ';; | |
b585a9fa | 971 | esac |
81ecdfbb | 972 | eval with_$ac_useropt=\$ac_optarg ;; |
b585a9fa EZ |
973 | |
974 | -without-* | --without-*) | |
81ecdfbb | 975 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
b585a9fa | 976 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
977 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
978 | as_fn_error "invalid package name: $ac_useropt" | |
979 | ac_useropt_orig=$ac_useropt | |
980 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
981 | case $ac_user_opts in | |
982 | *" | |
983 | "with_$ac_useropt" | |
984 | "*) ;; | |
985 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
986 | ac_unrecognized_sep=', ';; | |
987 | esac | |
988 | eval with_$ac_useropt=no ;; | |
b585a9fa EZ |
989 | |
990 | --x) | |
991 | # Obsolete; use --with-x. | |
992 | with_x=yes ;; | |
993 | ||
994 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
995 | | --x-incl | --x-inc | --x-in | --x-i) | |
996 | ac_prev=x_includes ;; | |
997 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
998 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
999 | x_includes=$ac_optarg ;; | |
1000 | ||
1001 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1002 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1003 | ac_prev=x_libraries ;; | |
1004 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1005 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1006 | x_libraries=$ac_optarg ;; | |
1007 | ||
81ecdfbb RW |
1008 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1009 | Try \`$0 --help' for more information." | |
b585a9fa EZ |
1010 | ;; |
1011 | ||
1012 | *=*) | |
1013 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1014 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1015 | case $ac_envvar in #( |
1016 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1017 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1018 | esac | |
1019 | eval $ac_envvar=\$ac_optarg | |
b585a9fa EZ |
1020 | export $ac_envvar ;; |
1021 | ||
1022 | *) | |
1023 | # FIXME: should be removed in autoconf 3.0. | |
81ecdfbb | 1024 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b585a9fa | 1025 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1026 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b585a9fa EZ |
1027 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1028 | ;; | |
1029 | ||
1030 | esac | |
1031 | done | |
1032 | ||
1033 | if test -n "$ac_prev"; then | |
1034 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
81ecdfbb | 1035 | as_fn_error "missing argument to $ac_option" |
b585a9fa EZ |
1036 | fi |
1037 | ||
81ecdfbb RW |
1038 | if test -n "$ac_unrecognized_opts"; then |
1039 | case $enable_option_checking in | |
1040 | no) ;; | |
1041 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1042 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
b585a9fa | 1043 | esac |
81ecdfbb | 1044 | fi |
b585a9fa | 1045 | |
81ecdfbb RW |
1046 | # Check all directory arguments for consistency. |
1047 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1048 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1049 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1050 | libdir localedir mandir | |
b585a9fa | 1051 | do |
81ecdfbb RW |
1052 | eval ac_val=\$$ac_var |
1053 | # Remove trailing slashes. | |
1054 | case $ac_val in | |
1055 | */ ) | |
1056 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1057 | eval $ac_var=\$ac_val;; | |
1058 | esac | |
1059 | # Be sure to have absolute directory names. | |
b585a9fa | 1060 | case $ac_val in |
81ecdfbb RW |
1061 | [\\/$]* | ?:[\\/]* ) continue;; |
1062 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
b585a9fa | 1063 | esac |
81ecdfbb | 1064 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
b585a9fa EZ |
1065 | done |
1066 | ||
1067 | # There might be people who depend on the old broken behavior: `$host' | |
1068 | # used to hold the argument of --host etc. | |
1069 | # FIXME: To remove some day. | |
1070 | build=$build_alias | |
1071 | host=$host_alias | |
1072 | target=$target_alias | |
1073 | ||
1074 | # FIXME: To remove some day. | |
1075 | if test "x$host_alias" != x; then | |
1076 | if test "x$build_alias" = x; then | |
1077 | cross_compiling=maybe | |
81ecdfbb | 1078 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
b585a9fa EZ |
1079 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1080 | elif test "x$build_alias" != "x$host_alias"; then | |
1081 | cross_compiling=yes | |
1082 | fi | |
1083 | fi | |
1084 | ||
1085 | ac_tool_prefix= | |
1086 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1087 | ||
1088 | test "$silent" = yes && exec 6>/dev/null | |
1089 | ||
1090 | ||
81ecdfbb RW |
1091 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1092 | ac_ls_di=`ls -di .` && | |
1093 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1094 | as_fn_error "working directory cannot be determined" | |
1095 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1096 | as_fn_error "pwd does not report name of working directory" | |
1097 | ||
1098 | ||
b585a9fa EZ |
1099 | # Find the source files, if location was not specified. |
1100 | if test -z "$srcdir"; then | |
1101 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1102 | # Try the directory containing this script, then the parent directory. |
1103 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1104 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1105 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1106 | X"$as_myself" : 'X\(//\)$' \| \ | |
1107 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1108 | $as_echo X"$as_myself" | | |
1109 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1110 | s//\1/ | |
1111 | q | |
1112 | } | |
1113 | /^X\(\/\/\)[^/].*/{ | |
1114 | s//\1/ | |
1115 | q | |
1116 | } | |
1117 | /^X\(\/\/\)$/{ | |
1118 | s//\1/ | |
1119 | q | |
1120 | } | |
1121 | /^X\(\/\).*/{ | |
1122 | s//\1/ | |
1123 | q | |
1124 | } | |
1125 | s/.*/./; q'` | |
b585a9fa | 1126 | srcdir=$ac_confdir |
81ecdfbb | 1127 | if test ! -r "$srcdir/$ac_unique_file"; then |
b585a9fa EZ |
1128 | srcdir=.. |
1129 | fi | |
1130 | else | |
1131 | ac_srcdir_defaulted=no | |
1132 | fi | |
81ecdfbb RW |
1133 | if test ! -r "$srcdir/$ac_unique_file"; then |
1134 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1135 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1136 | fi | |
1137 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1138 | ac_abs_confdir=`( | |
1139 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1140 | pwd)` | |
1141 | # When building in place, set srcdir=. | |
1142 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1143 | srcdir=. | |
1144 | fi | |
1145 | # Remove unnecessary trailing slashes from srcdir. | |
1146 | # Double slashes in file names in object file debugging info | |
1147 | # mess up M-x gdb in Emacs. | |
1148 | case $srcdir in | |
1149 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1150 | esac | |
1151 | for ac_var in $ac_precious_vars; do | |
1152 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1153 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1154 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1155 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1156 | done | |
b585a9fa EZ |
1157 | |
1158 | # | |
1159 | # Report the --help message. | |
1160 | # | |
1161 | if test "$ac_init_help" = "long"; then | |
1162 | # Omit some internal or obsolete options to make the list less imposing. | |
1163 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1164 | cat <<_ACEOF | |
1165 | \`configure' configures this package to adapt to many kinds of systems. | |
1166 | ||
1167 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1168 | ||
1169 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1170 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1171 | ||
1172 | Defaults for the options are specified in brackets. | |
1173 | ||
1174 | Configuration: | |
1175 | -h, --help display this help and exit | |
1176 | --help=short display options specific to this package | |
1177 | --help=recursive display the short help of all the included packages | |
1178 | -V, --version display version information and exit | |
1179 | -q, --quiet, --silent do not print \`checking...' messages | |
1180 | --cache-file=FILE cache test results in FILE [disabled] | |
1181 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1182 | -n, --no-create do not create output files | |
1183 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1184 | ||
b585a9fa EZ |
1185 | Installation directories: |
1186 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1187 | [$ac_default_prefix] |
b585a9fa | 1188 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1189 | [PREFIX] |
b585a9fa EZ |
1190 | |
1191 | By default, \`make install' will install all the files in | |
1192 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1193 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1194 | for instance \`--prefix=\$HOME'. | |
1195 | ||
1196 | For better control, use the options below. | |
1197 | ||
1198 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1199 | --bindir=DIR user executables [EPREFIX/bin] |
1200 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1201 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1202 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1203 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1204 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1205 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1206 | --includedir=DIR C header files [PREFIX/include] | |
1207 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1208 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1209 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1210 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1211 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1212 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1213 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1214 | --htmldir=DIR html documentation [DOCDIR] | |
1215 | --dvidir=DIR dvi documentation [DOCDIR] | |
1216 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1217 | --psdir=DIR ps documentation [DOCDIR] | |
b585a9fa EZ |
1218 | _ACEOF |
1219 | ||
1220 | cat <<\_ACEOF | |
1221 | _ACEOF | |
1222 | fi | |
1223 | ||
1224 | if test -n "$ac_init_help"; then | |
1225 | ||
1226 | cat <<\_ACEOF | |
1227 | ||
1228 | Optional Packages: | |
1229 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1230 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1231 | --with-pty-mode=mode default mode for ptys | |
1232 | --with-pty-group=group default group for ptys | |
1233 | ||
1234 | Some influential environment variables: | |
1235 | CC C compiler command | |
1236 | CFLAGS C compiler flags | |
1237 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1238 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1239 | LIBS libraries to pass to the linker, e.g. -l<library> |
1240 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1241 | you have headers in a nonstandard directory <include dir> | |
b585a9fa EZ |
1242 | CPP C preprocessor |
1243 | ||
1244 | Use these variables to override the choices made by `configure' or to help | |
1245 | it to find libraries and programs with nonstandard names/locations. | |
1246 | ||
81ecdfbb | 1247 | Report bugs to the package provider. |
b585a9fa | 1248 | _ACEOF |
81ecdfbb | 1249 | ac_status=$? |
b585a9fa EZ |
1250 | fi |
1251 | ||
1252 | if test "$ac_init_help" = "recursive"; then | |
1253 | # If there are subdirs, report their specific --help. | |
b585a9fa | 1254 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1255 | test -d "$ac_dir" || |
1256 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1257 | continue | |
b585a9fa EZ |
1258 | ac_builddir=. |
1259 | ||
81ecdfbb RW |
1260 | case "$ac_dir" in |
1261 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1262 | *) | |
1263 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1264 | # A ".." for each directory in $ac_dir_suffix. | |
1265 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1266 | case $ac_top_builddir_sub in | |
1267 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1268 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1269 | esac ;; | |
1270 | esac | |
1271 | ac_abs_top_builddir=$ac_pwd | |
1272 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1273 | # for backward compatibility: | |
1274 | ac_top_builddir=$ac_top_build_prefix | |
b585a9fa EZ |
1275 | |
1276 | case $srcdir in | |
81ecdfbb | 1277 | .) # We are building in place. |
b585a9fa | 1278 | ac_srcdir=. |
81ecdfbb RW |
1279 | ac_top_srcdir=$ac_top_builddir_sub |
1280 | ac_abs_top_srcdir=$ac_pwd ;; | |
1281 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b585a9fa | 1282 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1283 | ac_top_srcdir=$srcdir |
1284 | ac_abs_top_srcdir=$srcdir ;; | |
1285 | *) # Relative name. | |
1286 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1287 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1288 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b585a9fa | 1289 | esac |
81ecdfbb RW |
1290 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1291 | ||
1292 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1293 | # Check for guested configure. | |
1294 | if test -f "$ac_srcdir/configure.gnu"; then | |
1295 | echo && | |
1296 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1297 | elif test -f "$ac_srcdir/configure"; then | |
1298 | echo && | |
1299 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b585a9fa | 1300 | else |
81ecdfbb RW |
1301 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1302 | fi || ac_status=$? | |
1303 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b585a9fa EZ |
1304 | done |
1305 | fi | |
1306 | ||
81ecdfbb | 1307 | test -n "$ac_init_help" && exit $ac_status |
b585a9fa EZ |
1308 | if $ac_init_version; then |
1309 | cat <<\_ACEOF | |
81ecdfbb RW |
1310 | configure |
1311 | generated by GNU Autoconf 2.64 | |
b585a9fa | 1312 | |
81ecdfbb | 1313 | Copyright (C) 2009 Free Software Foundation, Inc. |
b585a9fa EZ |
1314 | This configure script is free software; the Free Software Foundation |
1315 | gives unlimited permission to copy, distribute and modify it. | |
1316 | _ACEOF | |
81ecdfbb | 1317 | exit |
b585a9fa | 1318 | fi |
b585a9fa | 1319 | |
81ecdfbb RW |
1320 | ## ------------------------ ## |
1321 | ## Autoconf initialization. ## | |
1322 | ## ------------------------ ## | |
b585a9fa | 1323 | |
81ecdfbb RW |
1324 | # ac_fn_c_try_compile LINENO |
1325 | # -------------------------- | |
1326 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1327 | ac_fn_c_try_compile () | |
b585a9fa | 1328 | { |
81ecdfbb RW |
1329 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1330 | rm -f conftest.$ac_objext | |
1331 | if { { ac_try="$ac_compile" | |
1332 | case "(($ac_try" in | |
1333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1334 | *) ac_try_echo=$ac_try;; | |
1335 | esac | |
1336 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1337 | $as_echo "$ac_try_echo"; } >&5 | |
1338 | (eval "$ac_compile") 2>conftest.err | |
1339 | ac_status=$? | |
1340 | if test -s conftest.err; then | |
1341 | grep -v '^ *+' conftest.err >conftest.er1 | |
1342 | cat conftest.er1 >&5 | |
1343 | mv -f conftest.er1 conftest.err | |
1344 | fi | |
1345 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1346 | test $ac_status = 0; } && { | |
1347 | test -z "$ac_c_werror_flag" || | |
1348 | test ! -s conftest.err | |
1349 | } && test -s conftest.$ac_objext; then : | |
1350 | ac_retval=0 | |
1351 | else | |
1352 | $as_echo "$as_me: failed program was:" >&5 | |
1353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b585a9fa | 1354 | |
81ecdfbb RW |
1355 | ac_retval=1 |
1356 | fi | |
1357 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1358 | return $ac_retval | |
b585a9fa | 1359 | |
81ecdfbb | 1360 | } # ac_fn_c_try_compile |
b585a9fa | 1361 | |
81ecdfbb RW |
1362 | # ac_fn_c_try_cpp LINENO |
1363 | # ---------------------- | |
1364 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1365 | ac_fn_c_try_cpp () | |
1366 | { | |
1367 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1368 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1369 | case "(($ac_try" in | |
1370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1371 | *) ac_try_echo=$ac_try;; | |
1372 | esac | |
1373 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1374 | $as_echo "$ac_try_echo"; } >&5 | |
1375 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1376 | ac_status=$? | |
1377 | if test -s conftest.err; then | |
1378 | grep -v '^ *+' conftest.err >conftest.er1 | |
1379 | cat conftest.er1 >&5 | |
1380 | mv -f conftest.er1 conftest.err | |
1381 | fi | |
1382 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1383 | test $ac_status = 0; } >/dev/null && { | |
1384 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1385 | test ! -s conftest.err | |
1386 | }; then : | |
1387 | ac_retval=0 | |
1388 | else | |
1389 | $as_echo "$as_me: failed program was:" >&5 | |
1390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b585a9fa | 1391 | |
81ecdfbb RW |
1392 | ac_retval=1 |
1393 | fi | |
1394 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1395 | return $ac_retval | |
b585a9fa | 1396 | |
81ecdfbb | 1397 | } # ac_fn_c_try_cpp |
b585a9fa | 1398 | |
81ecdfbb RW |
1399 | # ac_fn_c_try_link LINENO |
1400 | # ----------------------- | |
1401 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1402 | ac_fn_c_try_link () | |
1403 | { | |
1404 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1405 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1406 | if { { ac_try="$ac_link" | |
1407 | case "(($ac_try" in | |
1408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1409 | *) ac_try_echo=$ac_try;; | |
1410 | esac | |
1411 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1412 | $as_echo "$ac_try_echo"; } >&5 | |
1413 | (eval "$ac_link") 2>conftest.err | |
1414 | ac_status=$? | |
1415 | if test -s conftest.err; then | |
1416 | grep -v '^ *+' conftest.err >conftest.er1 | |
1417 | cat conftest.er1 >&5 | |
1418 | mv -f conftest.er1 conftest.err | |
1419 | fi | |
1420 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1421 | test $ac_status = 0; } && { | |
1422 | test -z "$ac_c_werror_flag" || | |
1423 | test ! -s conftest.err | |
1424 | } && test -s conftest$ac_exeext && { | |
1425 | test "$cross_compiling" = yes || | |
1426 | $as_test_x conftest$ac_exeext | |
1427 | }; then : | |
1428 | ac_retval=0 | |
1429 | else | |
1430 | $as_echo "$as_me: failed program was:" >&5 | |
1431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b585a9fa | 1432 | |
81ecdfbb RW |
1433 | ac_retval=1 |
1434 | fi | |
1435 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1436 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1437 | # interfere with the next link command; also delete a directory that is | |
1438 | # left behind by Apple's compiler. We do this before executing the actions. | |
1439 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1440 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1441 | return $ac_retval | |
b585a9fa | 1442 | |
81ecdfbb RW |
1443 | } # ac_fn_c_try_link |
1444 | ||
1445 | # ac_fn_c_try_run LINENO | |
1446 | # ---------------------- | |
1447 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1448 | # that executables *can* be run. | |
1449 | ac_fn_c_try_run () | |
1450 | { | |
1451 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1452 | if { { ac_try="$ac_link" | |
1453 | case "(($ac_try" in | |
1454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1455 | *) ac_try_echo=$ac_try;; | |
1456 | esac | |
1457 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1458 | $as_echo "$ac_try_echo"; } >&5 | |
1459 | (eval "$ac_link") 2>&5 | |
1460 | ac_status=$? | |
1461 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1462 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1463 | { { case "(($ac_try" in | |
1464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1465 | *) ac_try_echo=$ac_try;; | |
1466 | esac | |
1467 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1468 | $as_echo "$ac_try_echo"; } >&5 | |
1469 | (eval "$ac_try") 2>&5 | |
1470 | ac_status=$? | |
1471 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1472 | test $ac_status = 0; }; }; then : | |
1473 | ac_retval=0 | |
1474 | else | |
1475 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1476 | $as_echo "$as_me: failed program was:" >&5 | |
1477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1478 | ||
1479 | ac_retval=$ac_status | |
1480 | fi | |
1481 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1482 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1483 | return $ac_retval | |
1484 | ||
1485 | } # ac_fn_c_try_run | |
1486 | ||
1487 | # ac_fn_c_check_func LINENO FUNC VAR | |
1488 | # ---------------------------------- | |
1489 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1490 | ac_fn_c_check_func () | |
1491 | { | |
1492 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1494 | $as_echo_n "checking for $2... " >&6; } | |
1495 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1496 | $as_echo_n "(cached) " >&6 | |
1497 | else | |
1498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1499 | /* end confdefs.h. */ | |
1500 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1501 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1502 | #define $2 innocuous_$2 | |
1503 | ||
1504 | /* System header to define __stub macros and hopefully few prototypes, | |
1505 | which can conflict with char $2 (); below. | |
1506 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1507 | <limits.h> exists even on freestanding compilers. */ | |
1508 | ||
1509 | #ifdef __STDC__ | |
1510 | # include <limits.h> | |
1511 | #else | |
1512 | # include <assert.h> | |
1513 | #endif | |
1514 | ||
1515 | #undef $2 | |
1516 | ||
1517 | /* Override any GCC internal prototype to avoid an error. | |
1518 | Use char because int might match the return type of a GCC | |
1519 | builtin and then its argument prototype would still apply. */ | |
1520 | #ifdef __cplusplus | |
1521 | extern "C" | |
1522 | #endif | |
1523 | char $2 (); | |
1524 | /* The GNU C library defines this for functions which it implements | |
1525 | to always fail with ENOSYS. Some functions are actually named | |
1526 | something starting with __ and the normal name is an alias. */ | |
1527 | #if defined __stub_$2 || defined __stub___$2 | |
1528 | choke me | |
1529 | #endif | |
1530 | ||
1531 | int | |
1532 | main () | |
1533 | { | |
1534 | return $2 (); | |
1535 | ; | |
1536 | return 0; | |
1537 | } | |
1538 | _ACEOF | |
1539 | if ac_fn_c_try_link "$LINENO"; then : | |
1540 | eval "$3=yes" | |
1541 | else | |
1542 | eval "$3=no" | |
1543 | fi | |
1544 | rm -f core conftest.err conftest.$ac_objext \ | |
1545 | conftest$ac_exeext conftest.$ac_ext | |
1546 | fi | |
1547 | eval ac_res=\$$3 | |
1548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1549 | $as_echo "$ac_res" >&6; } | |
1550 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1551 | ||
1552 | } # ac_fn_c_check_func | |
1553 | cat >config.log <<_ACEOF | |
1554 | This file contains any messages produced by compilers while | |
1555 | running configure, to aid debugging if configure makes a mistake. | |
1556 | ||
1557 | It was created by $as_me, which was | |
1558 | generated by GNU Autoconf 2.64. Invocation command line was | |
1559 | ||
1560 | $ $0 $@ | |
1561 | ||
1562 | _ACEOF | |
1563 | exec 5>>config.log | |
1564 | { | |
1565 | cat <<_ASUNAME | |
1566 | ## --------- ## | |
1567 | ## Platform. ## | |
1568 | ## --------- ## | |
1569 | ||
1570 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1571 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1572 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1573 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1574 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1575 | ||
1576 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1577 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1578 | ||
1579 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1580 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1581 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1582 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1583 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1584 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1585 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1586 | ||
1587 | _ASUNAME | |
1588 | ||
1589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1590 | for as_dir in $PATH | |
1591 | do | |
1592 | IFS=$as_save_IFS | |
1593 | test -z "$as_dir" && as_dir=. | |
1594 | $as_echo "PATH: $as_dir" | |
1595 | done | |
1596 | IFS=$as_save_IFS | |
1597 | ||
1598 | } >&5 | |
1599 | ||
1600 | cat >&5 <<_ACEOF | |
1601 | ||
1602 | ||
1603 | ## ----------- ## | |
1604 | ## Core tests. ## | |
1605 | ## ----------- ## | |
1606 | ||
1607 | _ACEOF | |
b585a9fa EZ |
1608 | |
1609 | ||
1610 | # Keep a trace of the command line. | |
1611 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1612 | # Strip out --silent because we don't want to record it for future runs. | |
1613 | # Also quote any args containing shell meta-characters. | |
1614 | # Make two passes to allow for proper duplicate-argument suppression. | |
1615 | ac_configure_args= | |
1616 | ac_configure_args0= | |
1617 | ac_configure_args1= | |
b585a9fa EZ |
1618 | ac_must_keep_next=false |
1619 | for ac_pass in 1 2 | |
1620 | do | |
1621 | for ac_arg | |
1622 | do | |
1623 | case $ac_arg in | |
1624 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1625 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1626 | | -silent | --silent | --silen | --sile | --sil) | |
1627 | continue ;; | |
81ecdfbb RW |
1628 | *\'*) |
1629 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b585a9fa EZ |
1630 | esac |
1631 | case $ac_pass in | |
81ecdfbb | 1632 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b585a9fa | 1633 | 2) |
81ecdfbb | 1634 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b585a9fa EZ |
1635 | if test $ac_must_keep_next = true; then |
1636 | ac_must_keep_next=false # Got value, back to normal. | |
1637 | else | |
1638 | case $ac_arg in | |
1639 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1640 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1641 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1642 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1643 | case "$ac_configure_args0 " in | |
1644 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1645 | esac | |
1646 | ;; | |
1647 | -* ) ac_must_keep_next=true ;; | |
1648 | esac | |
1649 | fi | |
81ecdfbb | 1650 | as_fn_append ac_configure_args " '$ac_arg'" |
b585a9fa EZ |
1651 | ;; |
1652 | esac | |
1653 | done | |
1654 | done | |
81ecdfbb RW |
1655 | { ac_configure_args0=; unset ac_configure_args0;} |
1656 | { ac_configure_args1=; unset ac_configure_args1;} | |
b585a9fa EZ |
1657 | |
1658 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1659 | # config.log. We remove comments because anyway the quotes in there | |
1660 | # would cause problems or look ugly. | |
81ecdfbb RW |
1661 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1662 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b585a9fa EZ |
1663 | trap 'exit_status=$? |
1664 | # Save into config.log some information that might help in debugging. | |
1665 | { | |
1666 | echo | |
1667 | ||
1668 | cat <<\_ASBOX | |
1669 | ## ---------------- ## | |
1670 | ## Cache variables. ## | |
1671 | ## ---------------- ## | |
1672 | _ASBOX | |
1673 | echo | |
1674 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
1675 | ( |
1676 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1677 | eval ac_val=\$$ac_var | |
1678 | case $ac_val in #( | |
1679 | *${as_nl}*) | |
1680 | case $ac_var in #( | |
1681 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1682 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1683 | esac | |
1684 | case $ac_var in #( | |
1685 | _ | IFS | as_nl) ;; #( | |
1686 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1687 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1688 | esac ;; | |
1689 | esac | |
1690 | done | |
b585a9fa | 1691 | (set) 2>&1 | |
81ecdfbb RW |
1692 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1693 | *${as_nl}ac_space=\ *) | |
b585a9fa | 1694 | sed -n \ |
81ecdfbb RW |
1695 | "s/'\''/'\''\\\\'\'''\''/g; |
1696 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1697 | ;; #( | |
b585a9fa | 1698 | *) |
81ecdfbb | 1699 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b585a9fa | 1700 | ;; |
81ecdfbb RW |
1701 | esac | |
1702 | sort | |
1703 | ) | |
b585a9fa EZ |
1704 | echo |
1705 | ||
1706 | cat <<\_ASBOX | |
1707 | ## ----------------- ## | |
1708 | ## Output variables. ## | |
1709 | ## ----------------- ## | |
1710 | _ASBOX | |
1711 | echo | |
1712 | for ac_var in $ac_subst_vars | |
1713 | do | |
81ecdfbb RW |
1714 | eval ac_val=\$$ac_var |
1715 | case $ac_val in | |
1716 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1717 | esac | |
1718 | $as_echo "$ac_var='\''$ac_val'\''" | |
b585a9fa EZ |
1719 | done | sort |
1720 | echo | |
1721 | ||
1722 | if test -n "$ac_subst_files"; then | |
1723 | cat <<\_ASBOX | |
81ecdfbb RW |
1724 | ## ------------------- ## |
1725 | ## File substitutions. ## | |
1726 | ## ------------------- ## | |
b585a9fa EZ |
1727 | _ASBOX |
1728 | echo | |
1729 | for ac_var in $ac_subst_files | |
1730 | do | |
81ecdfbb RW |
1731 | eval ac_val=\$$ac_var |
1732 | case $ac_val in | |
1733 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1734 | esac | |
1735 | $as_echo "$ac_var='\''$ac_val'\''" | |
b585a9fa EZ |
1736 | done | sort |
1737 | echo | |
1738 | fi | |
1739 | ||
1740 | if test -s confdefs.h; then | |
1741 | cat <<\_ASBOX | |
1742 | ## ----------- ## | |
1743 | ## confdefs.h. ## | |
1744 | ## ----------- ## | |
1745 | _ASBOX | |
1746 | echo | |
81ecdfbb | 1747 | cat confdefs.h |
b585a9fa EZ |
1748 | echo |
1749 | fi | |
1750 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
1751 | $as_echo "$as_me: caught signal $ac_signal" |
1752 | $as_echo "$as_me: exit $exit_status" | |
b585a9fa | 1753 | } >&5 |
81ecdfbb RW |
1754 | rm -f core *.core core.conftest.* && |
1755 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b585a9fa | 1756 | exit $exit_status |
81ecdfbb | 1757 | ' 0 |
b585a9fa | 1758 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 1759 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b585a9fa EZ |
1760 | done |
1761 | ac_signal=0 | |
1762 | ||
1763 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
1764 | rm -f -r conftest* confdefs.h |
1765 | ||
1766 | $as_echo "/* confdefs.h */" > confdefs.h | |
b585a9fa EZ |
1767 | |
1768 | # Predefined preprocessor variables. | |
1769 | ||
1770 | cat >>confdefs.h <<_ACEOF | |
1771 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1772 | _ACEOF | |
1773 | ||
b585a9fa EZ |
1774 | cat >>confdefs.h <<_ACEOF |
1775 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1776 | _ACEOF | |
1777 | ||
b585a9fa EZ |
1778 | cat >>confdefs.h <<_ACEOF |
1779 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1780 | _ACEOF | |
1781 | ||
b585a9fa EZ |
1782 | cat >>confdefs.h <<_ACEOF |
1783 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1784 | _ACEOF | |
1785 | ||
b585a9fa EZ |
1786 | cat >>confdefs.h <<_ACEOF |
1787 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1788 | _ACEOF | |
1789 | ||
81ecdfbb RW |
1790 | cat >>confdefs.h <<_ACEOF |
1791 | #define PACKAGE_URL "$PACKAGE_URL" | |
1792 | _ACEOF | |
1793 | ||
b585a9fa EZ |
1794 | |
1795 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
1796 | # Prefer an explicitly selected file to automatically selected ones. |
1797 | ac_site_file1=NONE | |
1798 | ac_site_file2=NONE | |
1799 | if test -n "$CONFIG_SITE"; then | |
1800 | ac_site_file1=$CONFIG_SITE | |
1801 | elif test "x$prefix" != xNONE; then | |
1802 | ac_site_file1=$prefix/share/config.site | |
1803 | ac_site_file2=$prefix/etc/config.site | |
1804 | else | |
1805 | ac_site_file1=$ac_default_prefix/share/config.site | |
1806 | ac_site_file2=$ac_default_prefix/etc/config.site | |
b585a9fa | 1807 | fi |
81ecdfbb RW |
1808 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
1809 | do | |
1810 | test "x$ac_site_file" = xNONE && continue | |
b585a9fa | 1811 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
1812 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
1813 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b585a9fa EZ |
1814 | sed 's/^/| /' "$ac_site_file" >&5 |
1815 | . "$ac_site_file" | |
1816 | fi | |
1817 | done | |
1818 | ||
1819 | if test -r "$cache_file"; then | |
1820 | # Some versions of bash will fail to source /dev/null (special | |
1821 | # files actually), so we avoid doing that. | |
1822 | if test -f "$cache_file"; then | |
81ecdfbb RW |
1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
1824 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b585a9fa | 1825 | case $cache_file in |
81ecdfbb RW |
1826 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1827 | *) . "./$cache_file";; | |
b585a9fa EZ |
1828 | esac |
1829 | fi | |
1830 | else | |
81ecdfbb RW |
1831 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
1832 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b585a9fa EZ |
1833 | >$cache_file |
1834 | fi | |
1835 | ||
1836 | # Check that the precious variables saved in the cache have kept the same | |
1837 | # value. | |
1838 | ac_cache_corrupted=false | |
81ecdfbb | 1839 | for ac_var in $ac_precious_vars; do |
b585a9fa EZ |
1840 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1841 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
1842 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1843 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b585a9fa EZ |
1844 | case $ac_old_set,$ac_new_set in |
1845 | set,) | |
81ecdfbb RW |
1846 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1847 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b585a9fa EZ |
1848 | ac_cache_corrupted=: ;; |
1849 | ,set) | |
81ecdfbb RW |
1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
1851 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b585a9fa EZ |
1852 | ac_cache_corrupted=: ;; |
1853 | ,);; | |
1854 | *) | |
1855 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
1856 | # differences in whitespace do not lead to failure. |
1857 | ac_old_val_w=`echo x $ac_old_val` | |
1858 | ac_new_val_w=`echo x $ac_new_val` | |
1859 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1860 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
1861 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1862 | ac_cache_corrupted=: | |
1863 | else | |
1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1865 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1866 | eval $ac_var=\$ac_old_val | |
1867 | fi | |
1868 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
1869 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
1871 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b585a9fa EZ |
1872 | fi;; |
1873 | esac | |
1874 | # Pass precious variables to config.status. | |
1875 | if test "$ac_new_set" = set; then | |
1876 | case $ac_new_val in | |
81ecdfbb | 1877 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b585a9fa EZ |
1878 | *) ac_arg=$ac_var=$ac_new_val ;; |
1879 | esac | |
1880 | case " $ac_configure_args " in | |
1881 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 1882 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b585a9fa EZ |
1883 | esac |
1884 | fi | |
1885 | done | |
1886 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
1887 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
1888 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1889 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
1890 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1891 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
b585a9fa | 1892 | fi |
81ecdfbb RW |
1893 | ## -------------------- ## |
1894 | ## Main body of script. ## | |
1895 | ## -------------------- ## | |
b585a9fa EZ |
1896 | |
1897 | ac_ext=c | |
1898 | ac_cpp='$CPP $CPPFLAGS' | |
1899 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1900 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1901 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1902 | ||
1903 | ||
1904 | ||
1905 | ||
1906 | ||
81ecdfbb | 1907 | ac_config_headers="$ac_config_headers config.h" |
b585a9fa EZ |
1908 | |
1909 | VERSION=0.4 | |
1910 | ||
1911 | ||
1912 | ||
1913 | old_CFLAGS="$CFLAGS" | |
1914 | ac_ext=c | |
1915 | ac_cpp='$CPP $CPPFLAGS' | |
1916 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1917 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1918 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1919 | if test -n "$ac_tool_prefix"; then | |
1920 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1921 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
1922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1923 | $as_echo_n "checking for $ac_word... " >&6; } | |
1924 | if test "${ac_cv_prog_CC+set}" = set; then : | |
1925 | $as_echo_n "(cached) " >&6 | |
b585a9fa EZ |
1926 | else |
1927 | if test -n "$CC"; then | |
1928 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1929 | else | |
1930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1931 | for as_dir in $PATH | |
1932 | do | |
1933 | IFS=$as_save_IFS | |
1934 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1935 | for ac_exec_ext in '' $ac_executable_extensions; do |
1936 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b585a9fa | 1937 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 1938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b585a9fa EZ |
1939 | break 2 |
1940 | fi | |
1941 | done | |
81ecdfbb RW |
1942 | done |
1943 | IFS=$as_save_IFS | |
b585a9fa EZ |
1944 | |
1945 | fi | |
1946 | fi | |
1947 | CC=$ac_cv_prog_CC | |
1948 | if test -n "$CC"; then | |
81ecdfbb RW |
1949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
1950 | $as_echo "$CC" >&6; } | |
b585a9fa | 1951 | else |
81ecdfbb RW |
1952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1953 | $as_echo "no" >&6; } | |
b585a9fa EZ |
1954 | fi |
1955 | ||
81ecdfbb | 1956 | |
b585a9fa EZ |
1957 | fi |
1958 | if test -z "$ac_cv_prog_CC"; then | |
1959 | ac_ct_CC=$CC | |
1960 | # Extract the first word of "gcc", so it can be a program name with args. | |
1961 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
1962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1963 | $as_echo_n "checking for $ac_word... " >&6; } | |
1964 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
1965 | $as_echo_n "(cached) " >&6 | |
b585a9fa EZ |
1966 | else |
1967 | if test -n "$ac_ct_CC"; then | |
1968 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1969 | else | |
1970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1971 | for as_dir in $PATH | |
1972 | do | |
1973 | IFS=$as_save_IFS | |
1974 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1975 | for ac_exec_ext in '' $ac_executable_extensions; do |
1976 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b585a9fa | 1977 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 1978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b585a9fa EZ |
1979 | break 2 |
1980 | fi | |
1981 | done | |
81ecdfbb RW |
1982 | done |
1983 | IFS=$as_save_IFS | |
b585a9fa EZ |
1984 | |
1985 | fi | |
1986 | fi | |
1987 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1988 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
1989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
1990 | $as_echo "$ac_ct_CC" >&6; } | |
b585a9fa | 1991 | else |
81ecdfbb RW |
1992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1993 | $as_echo "no" >&6; } | |
b585a9fa EZ |
1994 | fi |
1995 | ||
81ecdfbb RW |
1996 | if test "x$ac_ct_CC" = x; then |
1997 | CC="" | |
1998 | else | |
1999 | case $cross_compiling:$ac_tool_warned in | |
2000 | yes:) | |
2001 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2002 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2003 | ac_tool_warned=yes ;; | |
2004 | esac | |
2005 | CC=$ac_ct_CC | |
2006 | fi | |
b585a9fa EZ |
2007 | else |
2008 | CC="$ac_cv_prog_CC" | |
2009 | fi | |
2010 | ||
2011 | if test -z "$CC"; then | |
81ecdfbb RW |
2012 | if test -n "$ac_tool_prefix"; then |
2013 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b585a9fa | 2014 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2016 | $as_echo_n "checking for $ac_word... " >&6; } | |
2017 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2018 | $as_echo_n "(cached) " >&6 | |
b585a9fa EZ |
2019 | else |
2020 | if test -n "$CC"; then | |
2021 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2022 | else | |
2023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2024 | for as_dir in $PATH | |
2025 | do | |
2026 | IFS=$as_save_IFS | |
2027 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2028 | for ac_exec_ext in '' $ac_executable_extensions; do |
2029 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b585a9fa | 2030 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2031 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b585a9fa EZ |
2032 | break 2 |
2033 | fi | |
2034 | done | |
81ecdfbb RW |
2035 | done |
2036 | IFS=$as_save_IFS | |
b585a9fa EZ |
2037 | |
2038 | fi | |
2039 | fi | |
2040 | CC=$ac_cv_prog_CC | |
2041 | if test -n "$CC"; then | |
81ecdfbb RW |
2042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2043 | $as_echo "$CC" >&6; } | |
b585a9fa | 2044 | else |
81ecdfbb RW |
2045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2046 | $as_echo "no" >&6; } | |
b585a9fa EZ |
2047 | fi |
2048 | ||
b585a9fa | 2049 | |
81ecdfbb | 2050 | fi |
b585a9fa EZ |
2051 | fi |
2052 | if test -z "$CC"; then | |
2053 | # Extract the first word of "cc", so it can be a program name with args. | |
2054 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2056 | $as_echo_n "checking for $ac_word... " >&6; } | |
2057 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2058 | $as_echo_n "(cached) " >&6 | |
b585a9fa EZ |
2059 | else |
2060 | if test -n "$CC"; then | |
2061 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2062 | else | |
2063 | ac_prog_rejected=no | |
2064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2065 | for as_dir in $PATH | |
2066 | do | |
2067 | IFS=$as_save_IFS | |
2068 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2069 | for ac_exec_ext in '' $ac_executable_extensions; do |
2070 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b585a9fa EZ |
2071 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2072 | ac_prog_rejected=yes | |
2073 | continue | |
2074 | fi | |
2075 | ac_cv_prog_CC="cc" | |
81ecdfbb | 2076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b585a9fa EZ |
2077 | break 2 |
2078 | fi | |
2079 | done | |
81ecdfbb RW |
2080 | done |
2081 | IFS=$as_save_IFS | |
b585a9fa EZ |
2082 | |
2083 | if test $ac_prog_rejected = yes; then | |
2084 | # We found a bogon in the path, so make sure we never use it. | |
2085 | set dummy $ac_cv_prog_CC | |
2086 | shift | |
2087 | if test $# != 0; then | |
2088 | # We chose a different compiler from the bogus one. | |
2089 | # However, it has the same basename, so the bogon will be chosen | |
2090 | # first if we set CC to just the basename; use the full file name. | |
2091 | shift | |
2092 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2093 | fi | |
2094 | fi | |
2095 | fi | |
2096 | fi | |
2097 | CC=$ac_cv_prog_CC | |
2098 | if test -n "$CC"; then | |
81ecdfbb RW |
2099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2100 | $as_echo "$CC" >&6; } | |
b585a9fa | 2101 | else |
81ecdfbb RW |
2102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2103 | $as_echo "no" >&6; } | |
b585a9fa EZ |
2104 | fi |
2105 | ||
81ecdfbb | 2106 | |
b585a9fa EZ |
2107 | fi |
2108 | if test -z "$CC"; then | |
2109 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2110 | for ac_prog in cl.exe |
b585a9fa EZ |
2111 | do |
2112 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2113 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2115 | $as_echo_n "checking for $ac_word... " >&6; } | |
2116 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2117 | $as_echo_n "(cached) " >&6 | |
b585a9fa EZ |
2118 | else |
2119 | if test -n "$CC"; then | |
2120 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2121 | else | |
2122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2123 | for as_dir in $PATH | |
2124 | do | |
2125 | IFS=$as_save_IFS | |
2126 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2127 | for ac_exec_ext in '' $ac_executable_extensions; do |
2128 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b585a9fa | 2129 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b585a9fa EZ |
2131 | break 2 |
2132 | fi | |
2133 | done | |
81ecdfbb RW |
2134 | done |
2135 | IFS=$as_save_IFS | |
b585a9fa EZ |
2136 | |
2137 | fi | |
2138 | fi | |
2139 | CC=$ac_cv_prog_CC | |
2140 | if test -n "$CC"; then | |
81ecdfbb RW |
2141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2142 | $as_echo "$CC" >&6; } | |
b585a9fa | 2143 | else |
81ecdfbb RW |
2144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2145 | $as_echo "no" >&6; } | |
b585a9fa EZ |
2146 | fi |
2147 | ||
81ecdfbb | 2148 | |
b585a9fa EZ |
2149 | test -n "$CC" && break |
2150 | done | |
2151 | fi | |
2152 | if test -z "$CC"; then | |
2153 | ac_ct_CC=$CC | |
81ecdfbb | 2154 | for ac_prog in cl.exe |
b585a9fa EZ |
2155 | do |
2156 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2157 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2159 | $as_echo_n "checking for $ac_word... " >&6; } | |
2160 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2161 | $as_echo_n "(cached) " >&6 | |
b585a9fa EZ |
2162 | else |
2163 | if test -n "$ac_ct_CC"; then | |
2164 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2165 | else | |
2166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2167 | for as_dir in $PATH | |
2168 | do | |
2169 | IFS=$as_save_IFS | |
2170 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2171 | for ac_exec_ext in '' $ac_executable_extensions; do |
2172 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b585a9fa | 2173 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 2174 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b585a9fa EZ |
2175 | break 2 |
2176 | fi | |
2177 | done | |
81ecdfbb RW |
2178 | done |
2179 | IFS=$as_save_IFS | |
b585a9fa EZ |
2180 | |
2181 | fi | |
2182 | fi | |
2183 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2184 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2186 | $as_echo "$ac_ct_CC" >&6; } | |
b585a9fa | 2187 | else |
81ecdfbb RW |
2188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2189 | $as_echo "no" >&6; } | |
b585a9fa EZ |
2190 | fi |
2191 | ||
81ecdfbb | 2192 | |
b585a9fa EZ |
2193 | test -n "$ac_ct_CC" && break |
2194 | done | |
2195 | ||
81ecdfbb RW |
2196 | if test "x$ac_ct_CC" = x; then |
2197 | CC="" | |
2198 | else | |
2199 | case $cross_compiling:$ac_tool_warned in | |
2200 | yes:) | |
2201 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2202 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2203 | ac_tool_warned=yes ;; | |
2204 | esac | |
2205 | CC=$ac_ct_CC | |
2206 | fi | |
b585a9fa EZ |
2207 | fi |
2208 | ||
2209 | fi | |
2210 | ||
2211 | ||
81ecdfbb RW |
2212 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2213 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2214 | as_fn_error "no acceptable C compiler found in \$PATH | |
2215 | See \`config.log' for more details." "$LINENO" 5; } | |
b585a9fa EZ |
2216 | |
2217 | # Provide some information about the compiler. | |
81ecdfbb RW |
2218 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2219 | set X $ac_compile | |
2220 | ac_compiler=$2 | |
2221 | for ac_option in --version -v -V -qversion; do | |
2222 | { { ac_try="$ac_compiler $ac_option >&5" | |
2223 | case "(($ac_try" in | |
2224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2225 | *) ac_try_echo=$ac_try;; | |
2226 | esac | |
2227 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2228 | $as_echo "$ac_try_echo"; } >&5 | |
2229 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b585a9fa | 2230 | ac_status=$? |
81ecdfbb RW |
2231 | if test -s conftest.err; then |
2232 | sed '10a\ | |
2233 | ... rest of stderr output deleted ... | |
2234 | 10q' conftest.err >conftest.er1 | |
2235 | cat conftest.er1 >&5 | |
2236 | rm -f conftest.er1 conftest.err | |
2237 | fi | |
2238 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2239 | test $ac_status = 0; } | |
2240 | done | |
b585a9fa | 2241 | |
81ecdfbb | 2242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b585a9fa EZ |
2243 | /* end confdefs.h. */ |
2244 | ||
2245 | int | |
2246 | main () | |
2247 | { | |
2248 | ||
2249 | ; | |
2250 | return 0; | |
2251 | } | |
2252 | _ACEOF | |
2253 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 2254 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
b585a9fa EZ |
2255 | # Try to create an executable without -o first, disregard a.out. |
2256 | # It will help us diagnose broken compilers, and finding out an intuition | |
2257 | # of exeext. | |
81ecdfbb RW |
2258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2259 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2260 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2261 | ||
2262 | # The possible output files: | |
2263 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2264 | ||
2265 | ac_rmfiles= | |
2266 | for ac_file in $ac_files | |
2267 | do | |
2268 | case $ac_file in | |
2269 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2270 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2271 | esac | |
2272 | done | |
2273 | rm -f $ac_rmfiles | |
2274 | ||
2275 | if { { ac_try="$ac_link_default" | |
2276 | case "(($ac_try" in | |
2277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2278 | *) ac_try_echo=$ac_try;; | |
2279 | esac | |
2280 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2281 | $as_echo "$ac_try_echo"; } >&5 | |
2282 | (eval "$ac_link_default") 2>&5 | |
b585a9fa | 2283 | ac_status=$? |
81ecdfbb RW |
2284 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2285 | test $ac_status = 0; }; then : | |
2286 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2287 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2288 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2289 | # so that the user can short-circuit this test for compilers unknown to | |
2290 | # Autoconf. | |
2291 | for ac_file in $ac_files '' | |
b585a9fa EZ |
2292 | do |
2293 | test -f "$ac_file" || continue | |
2294 | case $ac_file in | |
81ecdfbb | 2295 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b585a9fa EZ |
2296 | ;; |
2297 | [ab].out ) | |
2298 | # We found the default executable, but exeext='' is most | |
2299 | # certainly right. | |
2300 | break;; | |
2301 | *.* ) | |
81ecdfbb RW |
2302 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2303 | then :; else | |
2304 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2305 | fi | |
2306 | # We set ac_cv_exeext here because the later test for it is not | |
2307 | # safe: cross compilers may not add the suffix if given an `-o' | |
2308 | # argument, so we may need to know it at that point already. | |
2309 | # Even if this section looks crufty: it has the advantage of | |
2310 | # actually working. | |
b585a9fa EZ |
2311 | break;; |
2312 | * ) | |
2313 | break;; | |
2314 | esac | |
2315 | done | |
81ecdfbb RW |
2316 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2317 | ||
b585a9fa | 2318 | else |
81ecdfbb RW |
2319 | ac_file='' |
2320 | fi | |
2321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2322 | $as_echo "$ac_file" >&6; } | |
2323 | if test -z "$ac_file"; then : | |
2324 | $as_echo "$as_me: failed program was:" >&5 | |
b585a9fa EZ |
2325 | sed 's/^/| /' conftest.$ac_ext >&5 |
2326 | ||
81ecdfbb RW |
2327 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2328 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2329 | { as_fn_set_status 77 | |
2330 | as_fn_error "C compiler cannot create executables | |
2331 | See \`config.log' for more details." "$LINENO" 5; }; } | |
b585a9fa | 2332 | fi |
b585a9fa | 2333 | ac_exeext=$ac_cv_exeext |
b585a9fa | 2334 | |
81ecdfbb | 2335 | # Check that the compiler produces executables we can run. If not, either |
b585a9fa | 2336 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2338 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
b585a9fa EZ |
2339 | # If not cross compiling, check that we can run a simple program. |
2340 | if test "$cross_compiling" != yes; then | |
2341 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
2342 | { { case "(($ac_try" in |
2343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2344 | *) ac_try_echo=$ac_try;; | |
2345 | esac | |
2346 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2347 | $as_echo "$ac_try_echo"; } >&5 | |
2348 | (eval "$ac_try") 2>&5 | |
b585a9fa | 2349 | ac_status=$? |
81ecdfbb RW |
2350 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2351 | test $ac_status = 0; }; }; then | |
b585a9fa EZ |
2352 | cross_compiling=no |
2353 | else | |
2354 | if test "$cross_compiling" = maybe; then | |
2355 | cross_compiling=yes | |
2356 | else | |
81ecdfbb RW |
2357 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2358 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2359 | as_fn_error "cannot run C compiled programs. | |
b585a9fa | 2360 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 2361 | See \`config.log' for more details." "$LINENO" 5; } |
b585a9fa EZ |
2362 | fi |
2363 | fi | |
2364 | fi | |
81ecdfbb RW |
2365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2366 | $as_echo "yes" >&6; } | |
b585a9fa | 2367 | |
81ecdfbb | 2368 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
b585a9fa | 2369 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 2370 | # Check that the compiler produces executables we can run. If not, either |
b585a9fa | 2371 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
2373 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2375 | $as_echo "$cross_compiling" >&6; } | |
2376 | ||
2377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2378 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2379 | if { { ac_try="$ac_link" | |
2380 | case "(($ac_try" in | |
2381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2382 | *) ac_try_echo=$ac_try;; | |
2383 | esac | |
2384 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2385 | $as_echo "$ac_try_echo"; } >&5 | |
2386 | (eval "$ac_link") 2>&5 | |
b585a9fa | 2387 | ac_status=$? |
81ecdfbb RW |
2388 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2389 | test $ac_status = 0; }; then : | |
b585a9fa EZ |
2390 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2391 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2392 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2393 | # `rm'. | |
2394 | for ac_file in conftest.exe conftest conftest.*; do | |
2395 | test -f "$ac_file" || continue | |
2396 | case $ac_file in | |
81ecdfbb | 2397 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b585a9fa | 2398 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b585a9fa EZ |
2399 | break;; |
2400 | * ) break;; | |
2401 | esac | |
2402 | done | |
2403 | else | |
81ecdfbb RW |
2404 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2405 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2406 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
2407 | See \`config.log' for more details." "$LINENO" 5; } | |
b585a9fa | 2408 | fi |
b585a9fa | 2409 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
2410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2411 | $as_echo "$ac_cv_exeext" >&6; } | |
b585a9fa EZ |
2412 | |
2413 | rm -f conftest.$ac_ext | |
2414 | EXEEXT=$ac_cv_exeext | |
2415 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
2416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2417 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2418 | if test "${ac_cv_objext+set}" = set; then : | |
2419 | $as_echo_n "(cached) " >&6 | |
b585a9fa | 2420 | else |
81ecdfbb | 2421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b585a9fa EZ |
2422 | /* end confdefs.h. */ |
2423 | ||
2424 | int | |
2425 | main () | |
2426 | { | |
2427 | ||
2428 | ; | |
2429 | return 0; | |
2430 | } | |
2431 | _ACEOF | |
2432 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
2433 | if { { ac_try="$ac_compile" |
2434 | case "(($ac_try" in | |
2435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2436 | *) ac_try_echo=$ac_try;; | |
2437 | esac | |
2438 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2439 | $as_echo "$ac_try_echo"; } >&5 | |
2440 | (eval "$ac_compile") 2>&5 | |
b585a9fa | 2441 | ac_status=$? |
81ecdfbb RW |
2442 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2443 | test $ac_status = 0; }; then : | |
2444 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2445 | test -f "$ac_file" || continue; | |
b585a9fa | 2446 | case $ac_file in |
81ecdfbb | 2447 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b585a9fa EZ |
2448 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2449 | break;; | |
2450 | esac | |
2451 | done | |
2452 | else | |
81ecdfbb | 2453 | $as_echo "$as_me: failed program was:" >&5 |
b585a9fa EZ |
2454 | sed 's/^/| /' conftest.$ac_ext >&5 |
2455 | ||
81ecdfbb RW |
2456 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2457 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2458 | as_fn_error "cannot compute suffix of object files: cannot compile | |
2459 | See \`config.log' for more details." "$LINENO" 5; } | |
b585a9fa | 2460 | fi |
b585a9fa EZ |
2461 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2462 | fi | |
81ecdfbb RW |
2463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2464 | $as_echo "$ac_cv_objext" >&6; } | |
b585a9fa EZ |
2465 | OBJEXT=$ac_cv_objext |
2466 | ac_objext=$OBJEXT | |
81ecdfbb RW |
2467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
2468 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2469 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
2470 | $as_echo_n "(cached) " >&6 | |
b585a9fa | 2471 | else |
81ecdfbb | 2472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b585a9fa EZ |
2473 | /* end confdefs.h. */ |
2474 | ||
2475 | int | |
2476 | main () | |
2477 | { | |
2478 | #ifndef __GNUC__ | |
2479 | choke me | |
2480 | #endif | |
2481 | ||
2482 | ; | |
2483 | return 0; | |
2484 | } | |
2485 | _ACEOF | |
81ecdfbb | 2486 | if ac_fn_c_try_compile "$LINENO"; then : |
b585a9fa EZ |
2487 | ac_compiler_gnu=yes |
2488 | else | |
81ecdfbb | 2489 | ac_compiler_gnu=no |
b585a9fa | 2490 | fi |
81ecdfbb | 2491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b585a9fa EZ |
2492 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2493 | ||
2494 | fi | |
81ecdfbb RW |
2495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
2496 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2497 | if test $ac_compiler_gnu = yes; then | |
2498 | GCC=yes | |
2499 | else | |
2500 | GCC= | |
2501 | fi | |
b585a9fa EZ |
2502 | ac_test_CFLAGS=${CFLAGS+set} |
2503 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
2504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2505 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2506 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
2507 | $as_echo_n "(cached) " >&6 | |
b585a9fa | 2508 | else |
81ecdfbb RW |
2509 | ac_save_c_werror_flag=$ac_c_werror_flag |
2510 | ac_c_werror_flag=yes | |
2511 | ac_cv_prog_cc_g=no | |
2512 | CFLAGS="-g" | |
2513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b585a9fa EZ |
2514 | /* end confdefs.h. */ |
2515 | ||
2516 | int | |
2517 | main () | |
2518 | { | |
2519 | ||
2520 | ; | |
2521 | return 0; | |
2522 | } | |
2523 | _ACEOF | |
81ecdfbb | 2524 | if ac_fn_c_try_compile "$LINENO"; then : |
b585a9fa EZ |
2525 | ac_cv_prog_cc_g=yes |
2526 | else | |
81ecdfbb RW |
2527 | CFLAGS="" |
2528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2529 | /* end confdefs.h. */ | |
2530 | ||
2531 | int | |
2532 | main () | |
2533 | { | |
2534 | ||
2535 | ; | |
2536 | return 0; | |
2537 | } | |
2538 | _ACEOF | |
2539 | if ac_fn_c_try_compile "$LINENO"; then : | |
2540 | ||
2541 | else | |
2542 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2543 | CFLAGS="-g" | |
2544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2545 | /* end confdefs.h. */ | |
2546 | ||
2547 | int | |
2548 | main () | |
2549 | { | |
b585a9fa | 2550 | |
81ecdfbb RW |
2551 | ; |
2552 | return 0; | |
2553 | } | |
2554 | _ACEOF | |
2555 | if ac_fn_c_try_compile "$LINENO"; then : | |
2556 | ac_cv_prog_cc_g=yes | |
2557 | fi | |
2558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b585a9fa | 2559 | fi |
81ecdfbb | 2560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b585a9fa | 2561 | fi |
81ecdfbb RW |
2562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2563 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2564 | fi | |
2565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
2566 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
b585a9fa EZ |
2567 | if test "$ac_test_CFLAGS" = set; then |
2568 | CFLAGS=$ac_save_CFLAGS | |
2569 | elif test $ac_cv_prog_cc_g = yes; then | |
2570 | if test "$GCC" = yes; then | |
2571 | CFLAGS="-g -O2" | |
2572 | else | |
2573 | CFLAGS="-g" | |
2574 | fi | |
2575 | else | |
2576 | if test "$GCC" = yes; then | |
2577 | CFLAGS="-O2" | |
2578 | else | |
2579 | CFLAGS= | |
2580 | fi | |
2581 | fi | |
81ecdfbb RW |
2582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
2583 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
2584 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
2585 | $as_echo_n "(cached) " >&6 | |
b585a9fa | 2586 | else |
81ecdfbb | 2587 | ac_cv_prog_cc_c89=no |
b585a9fa | 2588 | ac_save_CC=$CC |
81ecdfbb | 2589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b585a9fa EZ |
2590 | /* end confdefs.h. */ |
2591 | #include <stdarg.h> | |
2592 | #include <stdio.h> | |
2593 | #include <sys/types.h> | |
2594 | #include <sys/stat.h> | |
2595 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2596 | struct buf { int x; }; | |
2597 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2598 | static char *e (p, i) | |
2599 | char **p; | |
2600 | int i; | |
2601 | { | |
2602 | return p[i]; | |
2603 | } | |
2604 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2605 | { | |
2606 | char *s; | |
2607 | va_list v; | |
2608 | va_start (v,p); | |
2609 | s = g (p, va_arg (v,int)); | |
2610 | va_end (v); | |
2611 | return s; | |
2612 | } | |
2613 | ||
2614 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2615 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2616 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 2617 | as 'x'. The following induces an error, until -std is added to get |
b585a9fa EZ |
2618 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2619 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 2620 | that's true only with -std. */ |
b585a9fa EZ |
2621 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2622 | ||
81ecdfbb RW |
2623 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2624 | inside strings and character constants. */ | |
2625 | #define FOO(x) 'x' | |
2626 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2627 | ||
b585a9fa EZ |
2628 | int test (int i, double x); |
2629 | struct s1 {int (*f) (int a);}; | |
2630 | struct s2 {int (*f) (double a);}; | |
2631 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2632 | int argc; | |
2633 | char **argv; | |
2634 | int | |
2635 | main () | |
2636 | { | |
2637 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2638 | ; | |
2639 | return 0; | |
2640 | } | |
2641 | _ACEOF | |
81ecdfbb RW |
2642 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2643 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b585a9fa EZ |
2644 | do |
2645 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
2646 | if ac_fn_c_try_compile "$LINENO"; then : |
2647 | ac_cv_prog_cc_c89=$ac_arg | |
b585a9fa | 2648 | fi |
81ecdfbb RW |
2649 | rm -f core conftest.err conftest.$ac_objext |
2650 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b585a9fa | 2651 | done |
81ecdfbb | 2652 | rm -f conftest.$ac_ext |
b585a9fa EZ |
2653 | CC=$ac_save_CC |
2654 | ||
2655 | fi | |
81ecdfbb RW |
2656 | # AC_CACHE_VAL |
2657 | case "x$ac_cv_prog_cc_c89" in | |
2658 | x) | |
2659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
2660 | $as_echo "none needed" >&6; } ;; | |
2661 | xno) | |
2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
2663 | $as_echo "unsupported" >&6; } ;; | |
b585a9fa | 2664 | *) |
81ecdfbb RW |
2665 | CC="$CC $ac_cv_prog_cc_c89" |
2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
2667 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b585a9fa | 2668 | esac |
81ecdfbb | 2669 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b585a9fa | 2670 | |
b585a9fa EZ |
2671 | fi |
2672 | ||
b585a9fa EZ |
2673 | ac_ext=c |
2674 | ac_cpp='$CPP $CPPFLAGS' | |
2675 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2676 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2677 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2678 | ||
2679 | ac_ext=c | |
2680 | ac_cpp='$CPP $CPPFLAGS' | |
2681 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2682 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2683 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
2684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
2685 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
b585a9fa EZ |
2686 | # On Suns, sometimes $CPP names a directory. |
2687 | if test -n "$CPP" && test -d "$CPP"; then | |
2688 | CPP= | |
2689 | fi | |
2690 | if test -z "$CPP"; then | |
81ecdfbb RW |
2691 | if test "${ac_cv_prog_CPP+set}" = set; then : |
2692 | $as_echo_n "(cached) " >&6 | |
b585a9fa EZ |
2693 | else |
2694 | # Double quotes because CPP needs to be expanded | |
2695 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2696 | do | |
2697 | ac_preproc_ok=false | |
2698 | for ac_c_preproc_warn_flag in '' yes | |
2699 | do | |
2700 | # Use a header file that comes with gcc, so configuring glibc | |
2701 | # with a fresh cross-compiler works. | |
2702 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2703 | # <limits.h> exists even on freestanding compilers. | |
2704 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2705 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 2706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b585a9fa EZ |
2707 | /* end confdefs.h. */ |
2708 | #ifdef __STDC__ | |
2709 | # include <limits.h> | |
2710 | #else | |
2711 | # include <assert.h> | |
2712 | #endif | |
2713 | Syntax error | |
2714 | _ACEOF | |
81ecdfbb | 2715 | if ac_fn_c_try_cpp "$LINENO"; then : |
b585a9fa | 2716 | |
81ecdfbb | 2717 | else |
b585a9fa EZ |
2718 | # Broken: fails on valid input. |
2719 | continue | |
2720 | fi | |
2721 | rm -f conftest.err conftest.$ac_ext | |
2722 | ||
81ecdfbb | 2723 | # OK, works on sane cases. Now check whether nonexistent headers |
b585a9fa | 2724 | # can be detected and how. |
81ecdfbb | 2725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b585a9fa EZ |
2726 | /* end confdefs.h. */ |
2727 | #include <ac_nonexistent.h> | |
2728 | _ACEOF | |
81ecdfbb | 2729 | if ac_fn_c_try_cpp "$LINENO"; then : |
b585a9fa EZ |
2730 | # Broken: success on invalid input. |
2731 | continue | |
2732 | else | |
b585a9fa EZ |
2733 | # Passes both tests. |
2734 | ac_preproc_ok=: | |
2735 | break | |
2736 | fi | |
2737 | rm -f conftest.err conftest.$ac_ext | |
2738 | ||
2739 | done | |
2740 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2741 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb | 2742 | if $ac_preproc_ok; then : |
b585a9fa EZ |
2743 | break |
2744 | fi | |
2745 | ||
2746 | done | |
2747 | ac_cv_prog_CPP=$CPP | |
2748 | ||
2749 | fi | |
2750 | CPP=$ac_cv_prog_CPP | |
2751 | else | |
2752 | ac_cv_prog_CPP=$CPP | |
2753 | fi | |
81ecdfbb RW |
2754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
2755 | $as_echo "$CPP" >&6; } | |
b585a9fa EZ |
2756 | ac_preproc_ok=false |
2757 | for ac_c_preproc_warn_flag in '' yes | |
2758 | do | |
2759 | # Use a header file that comes with gcc, so configuring glibc | |
2760 | # with a fresh cross-compiler works. | |
2761 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2762 | # <limits.h> exists even on freestanding compilers. | |
2763 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2764 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 2765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b585a9fa EZ |
2766 | /* end confdefs.h. */ |
2767 | #ifdef __STDC__ | |
2768 | # include <limits.h> | |
2769 | #else | |
2770 | # include <assert.h> | |
2771 | #endif | |
2772 | Syntax error | |
2773 | _ACEOF | |
81ecdfbb | 2774 | if ac_fn_c_try_cpp "$LINENO"; then : |
b585a9fa | 2775 | |
81ecdfbb | 2776 | else |
b585a9fa EZ |
2777 | # Broken: fails on valid input. |
2778 | continue | |
2779 | fi | |
2780 | rm -f conftest.err conftest.$ac_ext | |
2781 | ||
81ecdfbb | 2782 | # OK, works on sane cases. Now check whether nonexistent headers |
b585a9fa | 2783 | # can be detected and how. |
81ecdfbb | 2784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b585a9fa EZ |
2785 | /* end confdefs.h. */ |
2786 | #include <ac_nonexistent.h> | |
2787 | _ACEOF | |
81ecdfbb | 2788 | if ac_fn_c_try_cpp "$LINENO"; then : |
b585a9fa EZ |
2789 | # Broken: success on invalid input. |
2790 | continue | |
2791 | else | |
b585a9fa EZ |
2792 | # Passes both tests. |
2793 | ac_preproc_ok=: | |
2794 | break | |
2795 | fi | |
2796 | rm -f conftest.err conftest.$ac_ext | |
2797 | ||
2798 | done | |
2799 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2800 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
2801 | if $ac_preproc_ok; then : |
2802 | ||
b585a9fa | 2803 | else |
81ecdfbb RW |
2804 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2805 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2806 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
2807 | See \`config.log' for more details." "$LINENO" 5; } | |
b585a9fa EZ |
2808 | fi |
2809 | ||
2810 | ac_ext=c | |
2811 | ac_cpp='$CPP $CPPFLAGS' | |
2812 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2813 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2814 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2815 | ||
2816 | ||
2817 | ||
81ecdfbb RW |
2818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
2819 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
2820 | if test "${ac_cv_path_GREP+set}" = set; then : | |
2821 | $as_echo_n "(cached) " >&6 | |
b585a9fa | 2822 | else |
81ecdfbb RW |
2823 | if test -z "$GREP"; then |
2824 | ac_path_GREP_found=false | |
2825 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2827 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
2828 | do | |
2829 | IFS=$as_save_IFS | |
2830 | test -z "$as_dir" && as_dir=. | |
2831 | for ac_prog in grep ggrep; do | |
2832 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2833 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
2834 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
2835 | # Check for GNU ac_path_GREP and select it if it is found. | |
2836 | # Check for GNU $ac_path_GREP | |
2837 | case `"$ac_path_GREP" --version 2>&1` in | |
2838 | *GNU*) | |
2839 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
2840 | *) | |
2841 | ac_count=0 | |
2842 | $as_echo_n 0123456789 >"conftest.in" | |
2843 | while : | |
2844 | do | |
2845 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2846 | mv "conftest.tmp" "conftest.in" | |
2847 | cp "conftest.in" "conftest.nl" | |
2848 | $as_echo 'GREP' >> "conftest.nl" | |
2849 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2850 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2851 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2852 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
2853 | # Best one so far, save it but keep looking for a better one | |
2854 | ac_cv_path_GREP="$ac_path_GREP" | |
2855 | ac_path_GREP_max=$ac_count | |
2856 | fi | |
2857 | # 10*(2^10) chars as input seems more than enough | |
2858 | test $ac_count -gt 10 && break | |
2859 | done | |
2860 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2861 | esac | |
2862 | ||
2863 | $ac_path_GREP_found && break 3 | |
2864 | done | |
2865 | done | |
2866 | done | |
2867 | IFS=$as_save_IFS | |
2868 | if test -z "$ac_cv_path_GREP"; then | |
2869 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
2870 | fi | |
2871 | else | |
2872 | ac_cv_path_GREP=$GREP | |
2873 | fi | |
2874 | ||
2875 | fi | |
2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
2877 | $as_echo "$ac_cv_path_GREP" >&6; } | |
2878 | GREP="$ac_cv_path_GREP" | |
2879 | ||
2880 | ||
2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
2882 | $as_echo_n "checking for egrep... " >&6; } | |
2883 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
2884 | $as_echo_n "(cached) " >&6 | |
2885 | else | |
2886 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
2887 | then ac_cv_path_EGREP="$GREP -E" | |
2888 | else | |
2889 | if test -z "$EGREP"; then | |
2890 | ac_path_EGREP_found=false | |
2891 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2893 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
2894 | do | |
2895 | IFS=$as_save_IFS | |
2896 | test -z "$as_dir" && as_dir=. | |
2897 | for ac_prog in egrep; do | |
2898 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2899 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
2900 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
2901 | # Check for GNU ac_path_EGREP and select it if it is found. | |
2902 | # Check for GNU $ac_path_EGREP | |
2903 | case `"$ac_path_EGREP" --version 2>&1` in | |
2904 | *GNU*) | |
2905 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
2906 | *) | |
2907 | ac_count=0 | |
2908 | $as_echo_n 0123456789 >"conftest.in" | |
2909 | while : | |
2910 | do | |
2911 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2912 | mv "conftest.tmp" "conftest.in" | |
2913 | cp "conftest.in" "conftest.nl" | |
2914 | $as_echo 'EGREP' >> "conftest.nl" | |
2915 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2916 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2917 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2918 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
2919 | # Best one so far, save it but keep looking for a better one | |
2920 | ac_cv_path_EGREP="$ac_path_EGREP" | |
2921 | ac_path_EGREP_max=$ac_count | |
b585a9fa | 2922 | fi |
81ecdfbb RW |
2923 | # 10*(2^10) chars as input seems more than enough |
2924 | test $ac_count -gt 10 && break | |
2925 | done | |
2926 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2927 | esac | |
2928 | ||
2929 | $ac_path_EGREP_found && break 3 | |
2930 | done | |
2931 | done | |
2932 | done | |
2933 | IFS=$as_save_IFS | |
2934 | if test -z "$ac_cv_path_EGREP"; then | |
2935 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
2936 | fi | |
2937 | else | |
2938 | ac_cv_path_EGREP=$EGREP | |
2939 | fi | |
2940 | ||
2941 | fi | |
b585a9fa | 2942 | fi |
81ecdfbb RW |
2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
2944 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
2945 | EGREP="$ac_cv_path_EGREP" | |
b585a9fa EZ |
2946 | |
2947 | ||
2948 | if test $ac_cv_c_compiler_gnu = yes; then | |
81ecdfbb RW |
2949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
2950 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
2951 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then : | |
2952 | $as_echo_n "(cached) " >&6 | |
b585a9fa EZ |
2953 | else |
2954 | ac_pattern="Autoconf.*'x'" | |
81ecdfbb | 2955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b585a9fa EZ |
2956 | /* end confdefs.h. */ |
2957 | #include <sgtty.h> | |
2958 | Autoconf TIOCGETP | |
2959 | _ACEOF | |
2960 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb | 2961 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
b585a9fa EZ |
2962 | ac_cv_prog_gcc_traditional=yes |
2963 | else | |
2964 | ac_cv_prog_gcc_traditional=no | |
2965 | fi | |
2966 | rm -f conftest* | |
2967 | ||
2968 | ||
2969 | if test $ac_cv_prog_gcc_traditional = no; then | |
81ecdfbb | 2970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b585a9fa EZ |
2971 | /* end confdefs.h. */ |
2972 | #include <termio.h> | |
2973 | Autoconf TCGETA | |
2974 | _ACEOF | |
2975 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb | 2976 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
b585a9fa EZ |
2977 | ac_cv_prog_gcc_traditional=yes |
2978 | fi | |
2979 | rm -f conftest* | |
2980 | ||
2981 | fi | |
2982 | fi | |
81ecdfbb RW |
2983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
2984 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
b585a9fa EZ |
2985 | if test $ac_cv_prog_gcc_traditional = yes; then |
2986 | CC="$CC -traditional" | |
2987 | fi | |
2988 | fi | |
2989 | ||
81ecdfbb RW |
2990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
2991 | $as_echo_n "checking for library containing strerror... " >&6; } | |
2992 | if test "${ac_cv_search_strerror+set}" = set; then : | |
2993 | $as_echo_n "(cached) " >&6 | |
b585a9fa EZ |
2994 | else |
2995 | ac_func_search_save_LIBS=$LIBS | |
81ecdfbb | 2996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b585a9fa EZ |
2997 | /* end confdefs.h. */ |
2998 | ||
81ecdfbb RW |
2999 | /* Override any GCC internal prototype to avoid an error. |
3000 | Use char because int might match the return type of a GCC | |
3001 | builtin and then its argument prototype would still apply. */ | |
b585a9fa EZ |
3002 | #ifdef __cplusplus |
3003 | extern "C" | |
3004 | #endif | |
b585a9fa EZ |
3005 | char strerror (); |
3006 | int | |
3007 | main () | |
3008 | { | |
81ecdfbb | 3009 | return strerror (); |
b585a9fa EZ |
3010 | ; |
3011 | return 0; | |
3012 | } | |
3013 | _ACEOF | |
81ecdfbb RW |
3014 | for ac_lib in '' cposix; do |
3015 | if test -z "$ac_lib"; then | |
3016 | ac_res="none required" | |
3017 | else | |
3018 | ac_res=-l$ac_lib | |
b585a9fa | 3019 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
3020 | fi |
3021 | if ac_fn_c_try_link "$LINENO"; then : | |
3022 | ac_cv_search_strerror=$ac_res | |
3023 | fi | |
3024 | rm -f core conftest.err conftest.$ac_objext \ | |
3025 | conftest$ac_exeext | |
3026 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3027 | break | |
3028 | fi | |
3029 | done | |
3030 | if test "${ac_cv_search_strerror+set}" = set; then : | |
b585a9fa | 3031 | |
b585a9fa | 3032 | else |
81ecdfbb | 3033 | ac_cv_search_strerror=no |
b585a9fa | 3034 | fi |
81ecdfbb | 3035 | rm conftest.$ac_ext |
b585a9fa EZ |
3036 | LIBS=$ac_func_search_save_LIBS |
3037 | fi | |
81ecdfbb RW |
3038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
3039 | $as_echo "$ac_cv_search_strerror" >&6; } | |
3040 | ac_res=$ac_cv_search_strerror | |
3041 | if test "$ac_res" != no; then : | |
3042 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
b585a9fa EZ |
3043 | |
3044 | fi | |
3045 | ||
3046 | ||
81ecdfbb RW |
3047 | if test "$cross_compiling" = yes; then : |
3048 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3049 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3050 | as_fn_error "cannot run test program while cross compiling | |
3051 | See \`config.log' for more details." "$LINENO" 5; } | |
b585a9fa | 3052 | else |
81ecdfbb | 3053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b585a9fa EZ |
3054 | /* end confdefs.h. */ |
3055 | main(){exit(0);} | |
3056 | _ACEOF | |
81ecdfbb | 3057 | if ac_fn_c_try_run "$LINENO"; then : |
b585a9fa | 3058 | |
81ecdfbb | 3059 | else |
b585a9fa EZ |
3060 | |
3061 | if test $CC != cc ; then | |
3062 | echo "Your $CC failed - restarting with CC=cc" 1>&6 | |
3063 | ||
3064 | echo "" 1>&6 | |
3065 | ||
3066 | CC=cc | |
3067 | export CC | |
3068 | exec $0 $configure_args | |
3069 | fi | |
3070 | ||
3071 | fi | |
81ecdfbb RW |
3072 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3073 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b585a9fa EZ |
3074 | fi |
3075 | ||
81ecdfbb RW |
3076 | |
3077 | if test "$cross_compiling" = yes; then : | |
3078 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3079 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3080 | as_fn_error "cannot run test program while cross compiling | |
3081 | See \`config.log' for more details." "$LINENO" 5; } | |
b585a9fa | 3082 | else |
81ecdfbb | 3083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b585a9fa EZ |
3084 | /* end confdefs.h. */ |
3085 | main(){exit(0);} | |
3086 | _ACEOF | |
81ecdfbb | 3087 | if ac_fn_c_try_run "$LINENO"; then : |
b585a9fa | 3088 | |
81ecdfbb RW |
3089 | else |
3090 | exec 5>&2 | |
b585a9fa EZ |
3091 | eval $ac_link |
3092 | echo "CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;" 1>&6 | |
3093 | ||
3094 | echo "$ac_compile" 1>&6 | |
3095 | ||
81ecdfbb | 3096 | as_fn_error "Can't run the compiler - sorry" "$LINENO" 5 |
b585a9fa | 3097 | fi |
81ecdfbb RW |
3098 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3099 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b585a9fa EZ |
3100 | fi |
3101 | ||
81ecdfbb RW |
3102 | |
3103 | if test "$cross_compiling" = yes; then : | |
3104 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3105 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3106 | as_fn_error "cannot run test program while cross compiling | |
3107 | See \`config.log' for more details." "$LINENO" 5; } | |
b585a9fa | 3108 | else |
81ecdfbb | 3109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b585a9fa EZ |
3110 | /* end confdefs.h. */ |
3111 | ||
3112 | main() | |
3113 | { | |
3114 | int __something_strange_(); | |
3115 | __something_strange_(0); | |
3116 | } | |
3117 | ||
3118 | _ACEOF | |
81ecdfbb RW |
3119 | if ac_fn_c_try_run "$LINENO"; then : |
3120 | as_fn_error "Your compiler does not set the exit status - sorry" "$LINENO" 5 | |
b585a9fa | 3121 | fi |
81ecdfbb RW |
3122 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3123 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b585a9fa EZ |
3124 | fi |
3125 | ||
81ecdfbb | 3126 | |
b585a9fa EZ |
3127 | for ac_prog in gawk mawk nawk awk |
3128 | do | |
3129 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3130 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3132 | $as_echo_n "checking for $ac_word... " >&6; } | |
3133 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3134 | $as_echo_n "(cached) " >&6 | |
b585a9fa EZ |
3135 | else |
3136 | if test -n "$AWK"; then | |
3137 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3138 | else | |
3139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3140 | for as_dir in $PATH | |
3141 | do | |
3142 | IFS=$as_save_IFS | |
3143 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3144 | for ac_exec_ext in '' $ac_executable_extensions; do |
3145 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b585a9fa | 3146 | ac_cv_prog_AWK="$ac_prog" |
81ecdfbb | 3147 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b585a9fa EZ |
3148 | break 2 |
3149 | fi | |
3150 | done | |
81ecdfbb RW |
3151 | done |
3152 | IFS=$as_save_IFS | |
b585a9fa EZ |
3153 | |
3154 | fi | |
3155 | fi | |
3156 | AWK=$ac_cv_prog_AWK | |
3157 | if test -n "$AWK"; then | |
81ecdfbb RW |
3158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3159 | $as_echo "$AWK" >&6; } | |
b585a9fa | 3160 | else |
81ecdfbb RW |
3161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3162 | $as_echo "no" >&6; } | |
b585a9fa EZ |
3163 | fi |
3164 | ||
81ecdfbb | 3165 | |
b585a9fa EZ |
3166 | test -n "$AWK" && break |
3167 | done | |
3168 | ||
3169 | ||
3170 | if test -f etc/toolcheck; then | |
81ecdfbb RW |
3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5 |
3172 | $as_echo "$as_me: checking for buggy tools..." >&6;} | |
b585a9fa EZ |
3173 | sh etc/toolcheck 1>&6 |
3174 | fi | |
3175 | ||
3176 | ||
81ecdfbb RW |
3177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for System V..." >&5 |
3178 | $as_echo "$as_me: checking for System V..." >&6;} | |
3179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b585a9fa EZ |
3180 | /* end confdefs.h. */ |
3181 | #include <sys/types.h> | |
3182 | #include <signal.h> | |
3183 | #include <fcntl.h> | |
3184 | int | |
3185 | main () | |
3186 | { | |
3187 | int x = SIGCHLD | FNDELAY; | |
3188 | ; | |
3189 | return 0; | |
3190 | } | |
3191 | _ACEOF | |
81ecdfbb | 3192 | if ac_fn_c_try_compile "$LINENO"; then : |
b585a9fa | 3193 | |
81ecdfbb RW |
3194 | else |
3195 | $as_echo "#define SYSV 1" >>confdefs.h | |
b585a9fa EZ |
3196 | |
3197 | fi | |
81ecdfbb | 3198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b585a9fa | 3199 | |
81ecdfbb RW |
3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris 2.x..." >&5 |
3201 | $as_echo "$as_me: checking for Solaris 2.x..." >&6;} | |
3202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b585a9fa EZ |
3203 | /* end confdefs.h. */ |
3204 | #if defined(SVR4) && defined(sun) | |
3205 | yes | |
3206 | #endif | |
3207 | ||
3208 | _ACEOF | |
3209 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb | 3210 | $EGREP "yes" >/dev/null 2>&1; then : |
b585a9fa EZ |
3211 | LIBS="$LIBS -lsocket -lnsl -lkstat" |
3212 | fi | |
3213 | rm -f conftest* | |
3214 | ||
3215 | ||
3216 | ||
81ecdfbb RW |
3217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking select..." >&5 |
3218 | $as_echo "$as_me: checking select..." >&6;} | |
3219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b585a9fa EZ |
3220 | /* end confdefs.h. */ |
3221 | ||
3222 | int | |
3223 | main () | |
3224 | { | |
3225 | select(0, 0, 0, 0, 0); | |
3226 | ; | |
3227 | return 0; | |
3228 | } | |
3229 | _ACEOF | |
81ecdfbb | 3230 | if ac_fn_c_try_link "$LINENO"; then : |
b585a9fa | 3231 | |
81ecdfbb RW |
3232 | else |
3233 | LIBS="$LIBS -lnet -lnsl" | |
3234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking select with $LIBS..." >&5 | |
3235 | $as_echo "$as_me: checking select with $LIBS..." >&6;} | |
3236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b585a9fa EZ |
3237 | /* end confdefs.h. */ |
3238 | ||
3239 | int | |
3240 | main () | |
3241 | { | |
3242 | select(0, 0, 0, 0, 0); | |
3243 | ; | |
3244 | return 0; | |
3245 | } | |
3246 | _ACEOF | |
81ecdfbb | 3247 | if ac_fn_c_try_link "$LINENO"; then : |
b585a9fa | 3248 | |
81ecdfbb RW |
3249 | else |
3250 | as_fn_error "!!! no select - no screen" "$LINENO" 5 | |
b585a9fa | 3251 | fi |
81ecdfbb RW |
3252 | rm -f core conftest.err conftest.$ac_objext \ |
3253 | conftest$ac_exeext conftest.$ac_ext | |
b585a9fa EZ |
3254 | |
3255 | fi | |
81ecdfbb RW |
3256 | rm -f core conftest.err conftest.$ac_objext \ |
3257 | conftest$ac_exeext conftest.$ac_ext | |
b585a9fa | 3258 | |
81ecdfbb RW |
3259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking select return value..." >&5 |
3260 | $as_echo "$as_me: checking select return value..." >&6;} | |
3261 | if test "$cross_compiling" = yes; then : | |
3262 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3263 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3264 | as_fn_error "cannot run test program while cross compiling | |
3265 | See \`config.log' for more details." "$LINENO" 5; } | |
b585a9fa | 3266 | else |
81ecdfbb | 3267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b585a9fa EZ |
3268 | /* end confdefs.h. */ |
3269 | ||
3270 | #include <sys/types.h> | |
3271 | #include <sys/stat.h> | |
3272 | #include <fcntl.h> | |
3273 | ||
3274 | char *nam = "/tmp/conftest$$"; | |
3275 | ||
3276 | #ifdef NAMEDPIPE | |
3277 | ||
3278 | #ifndef O_NONBLOCK | |
3279 | #define O_NONBLOCK O_NDELAY | |
3280 | #endif | |
3281 | #ifndef S_IFIFO | |
3282 | #define S_IFIFO 0010000 | |
3283 | #endif | |
3284 | ||
3285 | ||
3286 | main() | |
3287 | { | |
3288 | #ifdef FD_SET | |
3289 | fd_set f; | |
3290 | #else | |
3291 | int f; | |
3292 | #endif | |
3293 | ||
3294 | #ifdef __FreeBSD__ | |
3295 | /* From Andrew A. Chernov (ache@astral.msk.su): | |
3296 | * opening RDWR fifo fails in BSD 4.4, but select return values are | |
3297 | * right. | |
3298 | */ | |
3299 | exit(0); | |
3300 | #endif | |
3301 | (void)alarm(5); | |
3302 | #ifdef POSIX | |
3303 | if (mkfifo(nam, 0777)) | |
3304 | #else | |
3305 | if (mknod(nam, S_IFIFO|0777, 0)) | |
3306 | #endif | |
3307 | exit(1); | |
3308 | close(0); | |
3309 | if (open(nam, O_RDWR | O_NONBLOCK)) | |
3310 | exit(1); | |
3311 | if (write(0, "TEST", 4) == -1) | |
3312 | exit(1); | |
3313 | ||
3314 | #else | |
3315 | ||
3316 | #include <sys/types.h> | |
3317 | #include <sys/socket.h> | |
3318 | #include <sys/un.h> | |
3319 | ||
3320 | main() | |
3321 | { | |
3322 | int s1, s2, l; | |
3323 | struct sockaddr_un a; | |
3324 | #ifdef FD_SET | |
3325 | fd_set f; | |
3326 | #else | |
3327 | int f; | |
3328 | #endif | |
3329 | ||
3330 | (void)alarm(5); | |
3331 | if ((s1 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) | |
3332 | exit(1); | |
3333 | a.sun_family = AF_UNIX; | |
3334 | strcpy(a.sun_path, nam); | |
3335 | (void) unlink(nam); | |
3336 | if (bind(s1, (struct sockaddr *) &a, strlen(nam)+2) == -1) | |
3337 | exit(1); | |
3338 | if (listen(s1, 2)) | |
3339 | exit(1); | |
3340 | if (fork() == 0) | |
3341 | { | |
3342 | if ((s2 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) | |
3343 | kill(getppid(), 3); | |
3344 | (void)connect(s2, (struct sockaddr *)&a, strlen(nam) + 2); | |
3345 | if (write(s2, "HELLO", 5) == -1) | |
3346 | kill(getppid(), 3); | |
3347 | exit(0); | |
3348 | } | |
3349 | l = sizeof(a); | |
3350 | close(0); | |
3351 | if (accept(s1, (struct sockaddr *)&a, &l)) | |
3352 | exit(1); | |
3353 | #endif | |
3354 | ||
3355 | ||
3356 | #ifdef FD_SET | |
3357 | FD_SET(0, &f); | |
3358 | #else | |
3359 | f = 1; | |
3360 | #endif | |
3361 | if (select(1, &f, 0, 0, 0) == -1) | |
3362 | exit(1); | |
3363 | if (select(1, &f, &f, 0, 0) != 2) | |
3364 | exit(1); | |
3365 | exit(0); | |
3366 | } | |
3367 | ||
3368 | _ACEOF | |
81ecdfbb | 3369 | if ac_fn_c_try_run "$LINENO"; then : |
b585a9fa EZ |
3370 | echo "- select is ok" 1>&6 |
3371 | ||
3372 | else | |
81ecdfbb RW |
3373 | echo "- select can't count" 1>&6 |
3374 | $as_echo "#define SELECT_BROKEN 1" >>confdefs.h | |
b585a9fa EZ |
3375 | |
3376 | fi | |
81ecdfbb RW |
3377 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3378 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b585a9fa EZ |
3379 | fi |
3380 | ||
81ecdfbb RW |
3381 | |
3382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent..." >&5 | |
3383 | $as_echo "$as_me: checking for tgetent..." >&6;} | |
3384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b585a9fa EZ |
3385 | /* end confdefs.h. */ |
3386 | ||
3387 | int | |
3388 | main () | |
3389 | { | |
3390 | tgetent((char *)0, (char *)0); | |
3391 | ; | |
3392 | return 0; | |
3393 | } | |
3394 | _ACEOF | |
81ecdfbb | 3395 | if ac_fn_c_try_link "$LINENO"; then : |
b585a9fa | 3396 | |
81ecdfbb RW |
3397 | else |
3398 | olibs="$LIBS" | |
b585a9fa | 3399 | LIBS="-lcurses $olibs" |
81ecdfbb RW |
3400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking libcurses..." >&5 |
3401 | $as_echo "$as_me: checking libcurses..." >&6;} | |
3402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b585a9fa EZ |
3403 | /* end confdefs.h. */ |
3404 | ||
3405 | int | |
3406 | main () | |
3407 | { | |
3408 | ||
3409 | #ifdef __hpux | |
3410 | __sorry_hpux_libcurses_is_totally_broken_in_10_10(); | |
3411 | #else | |
3412 | tgetent((char *)0, (char *)0); | |
3413 | #endif | |
3414 | ||
3415 | ; | |
3416 | return 0; | |
3417 | } | |
3418 | _ACEOF | |
81ecdfbb | 3419 | if ac_fn_c_try_link "$LINENO"; then : |
b585a9fa | 3420 | |
81ecdfbb RW |
3421 | else |
3422 | LIBS="-ltermcap $olibs" | |
3423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking libtermcap..." >&5 | |
3424 | $as_echo "$as_me: checking libtermcap..." >&6;} | |
3425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b585a9fa EZ |
3426 | /* end confdefs.h. */ |
3427 | ||
3428 | int | |
3429 | main () | |
3430 | { | |
3431 | tgetent((char *)0, (char *)0); | |
3432 | ; | |
3433 | return 0; | |
3434 | } | |
3435 | _ACEOF | |
81ecdfbb | 3436 | if ac_fn_c_try_link "$LINENO"; then : |
b585a9fa | 3437 | |
81ecdfbb RW |
3438 | else |
3439 | LIBS="-ltermlib $olibs" | |
3440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking libtermlib..." >&5 | |
3441 | $as_echo "$as_me: checking libtermlib..." >&6;} | |
3442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b585a9fa EZ |
3443 | /* end confdefs.h. */ |
3444 | ||
3445 | int | |
3446 | main () | |
3447 | { | |
3448 | tgetent((char *)0, (char *)0); | |
3449 | ; | |
3450 | return 0; | |
3451 | } | |
3452 | _ACEOF | |
81ecdfbb | 3453 | if ac_fn_c_try_link "$LINENO"; then : |
b585a9fa | 3454 | |
81ecdfbb RW |
3455 | else |
3456 | LIBS="-lncurses $olibs" | |
3457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking libncurses..." >&5 | |
3458 | $as_echo "$as_me: checking libncurses..." >&6;} | |
3459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b585a9fa EZ |
3460 | /* end confdefs.h. */ |
3461 | ||
3462 | int | |
3463 | main () | |
3464 | { | |
3465 | tgetent((char *)0, (char *)0); | |
3466 | ; | |
3467 | return 0; | |
3468 | } | |
3469 | _ACEOF | |
81ecdfbb | 3470 | if ac_fn_c_try_link "$LINENO"; then : |
b585a9fa | 3471 | |
81ecdfbb RW |
3472 | else |
3473 | as_fn_error "!!! no tgetent - no screen" "$LINENO" 5 | |
b585a9fa | 3474 | fi |
81ecdfbb RW |
3475 | rm -f core conftest.err conftest.$ac_objext \ |
3476 | conftest$ac_exeext conftest.$ac_ext | |
b585a9fa | 3477 | fi |
81ecdfbb RW |
3478 | rm -f core conftest.err conftest.$ac_objext \ |
3479 | conftest$ac_exeext conftest.$ac_ext | |
b585a9fa | 3480 | fi |
81ecdfbb RW |
3481 | rm -f core conftest.err conftest.$ac_objext \ |
3482 | conftest$ac_exeext conftest.$ac_ext | |
b585a9fa | 3483 | fi |
81ecdfbb RW |
3484 | rm -f core conftest.err conftest.$ac_objext \ |
3485 | conftest$ac_exeext conftest.$ac_ext | |
b585a9fa | 3486 | fi |
81ecdfbb RW |
3487 | rm -f core conftest.err conftest.$ac_objext \ |
3488 | conftest$ac_exeext conftest.$ac_ext | |
b585a9fa | 3489 | |
81ecdfbb RW |
3490 | if test "$cross_compiling" = yes; then : |
3491 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3492 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3493 | as_fn_error "cannot run test program while cross compiling | |
3494 | See \`config.log' for more details." "$LINENO" 5; } | |
b585a9fa | 3495 | else |
81ecdfbb | 3496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b585a9fa EZ |
3497 | /* end confdefs.h. */ |
3498 | ||
3499 | main() | |
3500 | { | |
3501 | exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1); | |
3502 | } | |
3503 | _ACEOF | |
81ecdfbb | 3504 | if ac_fn_c_try_run "$LINENO"; then : |
b585a9fa EZ |
3505 | echo "- you use the termcap database" 1>&6 |
3506 | ||
3507 | else | |
81ecdfbb RW |
3508 | echo "- you use the terminfo database" 1>&6 |
3509 | $as_echo "#define TERMINFO 1" >>confdefs.h | |
b585a9fa EZ |
3510 | |
3511 | fi | |
81ecdfbb RW |
3512 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3513 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b585a9fa | 3514 | fi |
81ecdfbb RW |
3515 | |
3516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ospeed..." >&5 | |
3517 | $as_echo "$as_me: checking ospeed..." >&6;} | |
3518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b585a9fa EZ |
3519 | /* end confdefs.h. */ |
3520 | extern short ospeed; | |
3521 | int | |
3522 | main () | |
3523 | { | |
3524 | ospeed=5; | |
3525 | ; | |
3526 | return 0; | |
3527 | } | |
3528 | _ACEOF | |
81ecdfbb | 3529 | if ac_fn_c_try_link "$LINENO"; then : |
b585a9fa | 3530 | |
81ecdfbb RW |
3531 | else |
3532 | $as_echo "#define NEED_OSPEED 1" >>confdefs.h | |
b585a9fa EZ |
3533 | |
3534 | fi | |
81ecdfbb RW |
3535 | rm -f core conftest.err conftest.$ac_objext \ |
3536 | conftest$ac_exeext conftest.$ac_ext | |
b585a9fa | 3537 | |
81ecdfbb RW |
3538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc..." >&5 |
3539 | $as_echo "$as_me: checking for /dev/ptc..." >&6;} | |
b585a9fa | 3540 | if test -r /dev/ptc; then |
81ecdfbb | 3541 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h |
b585a9fa EZ |
3542 | |
3543 | fi | |
3544 | ||
81ecdfbb RW |
3545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys..." >&5 |
3546 | $as_echo "$as_me: checking for SVR4 ptys..." >&6;} | |
b585a9fa EZ |
3547 | sysvr4ptys= |
3548 | if test -c /dev/ptmx ; then | |
81ecdfbb | 3549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b585a9fa EZ |
3550 | /* end confdefs.h. */ |
3551 | ||
3552 | int | |
3553 | main () | |
3554 | { | |
3555 | ptsname(0);grantpt(0);unlockpt(0); | |
3556 | ; | |
3557 | return 0; | |
3558 | } | |
3559 | _ACEOF | |
81ecdfbb RW |
3560 | if ac_fn_c_try_link "$LINENO"; then : |
3561 | $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h | |
b585a9fa EZ |
3562 | |
3563 | sysvr4ptys=1 | |
b585a9fa | 3564 | fi |
81ecdfbb RW |
3565 | rm -f core conftest.err conftest.$ac_objext \ |
3566 | conftest$ac_exeext conftest.$ac_ext | |
b585a9fa EZ |
3567 | fi |
3568 | ||
b585a9fa | 3569 | for ac_func in getpt |
81ecdfbb RW |
3570 | do : |
3571 | ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt" | |
3572 | if test "x$ac_cv_func_getpt" = x""yes; then : | |
b585a9fa | 3573 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 3574 | #define HAVE_GETPT 1 |
b585a9fa EZ |
3575 | _ACEOF |
3576 | ||
3577 | fi | |
3578 | done | |
3579 | ||
3580 | ||
3581 | if test -z "$sysvr4ptys"; then | |
b585a9fa | 3582 | for ac_func in openpty |
81ecdfbb RW |
3583 | do : |
3584 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | |
3585 | if test "x$ac_cv_func_openpty" = x""yes; then : | |
b585a9fa | 3586 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 3587 | #define HAVE_OPENPTY 1 |
b585a9fa EZ |
3588 | _ACEOF |
3589 | ||
3590 | else | |
81ecdfbb RW |
3591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 |
3592 | $as_echo_n "checking for openpty in -lutil... " >&6; } | |
3593 | if test "${ac_cv_lib_util_openpty+set}" = set; then : | |
3594 | $as_echo_n "(cached) " >&6 | |
b585a9fa EZ |
3595 | else |
3596 | ac_check_lib_save_LIBS=$LIBS | |
3597 | LIBS="-lutil $LIBS" | |
81ecdfbb | 3598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b585a9fa EZ |
3599 | /* end confdefs.h. */ |
3600 | ||
81ecdfbb RW |
3601 | /* Override any GCC internal prototype to avoid an error. |
3602 | Use char because int might match the return type of a GCC | |
3603 | builtin and then its argument prototype would still apply. */ | |
b585a9fa EZ |
3604 | #ifdef __cplusplus |
3605 | extern "C" | |
3606 | #endif | |
b585a9fa EZ |
3607 | char openpty (); |
3608 | int | |
3609 | main () | |
3610 | { | |
81ecdfbb | 3611 | return openpty (); |
b585a9fa EZ |
3612 | ; |
3613 | return 0; | |
3614 | } | |
3615 | _ACEOF | |
81ecdfbb | 3616 | if ac_fn_c_try_link "$LINENO"; then : |
b585a9fa EZ |
3617 | ac_cv_lib_util_openpty=yes |
3618 | else | |
81ecdfbb | 3619 | ac_cv_lib_util_openpty=no |
b585a9fa | 3620 | fi |
81ecdfbb RW |
3621 | rm -f core conftest.err conftest.$ac_objext \ |
3622 | conftest$ac_exeext conftest.$ac_ext | |
b585a9fa EZ |
3623 | LIBS=$ac_check_lib_save_LIBS |
3624 | fi | |
81ecdfbb RW |
3625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 |
3626 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | |
3627 | if test "x$ac_cv_lib_util_openpty" = x""yes; then : | |
3628 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | |
b585a9fa EZ |
3629 | LIBS="$LIBS -lutil" |
3630 | fi | |
3631 | ||
3632 | fi | |
3633 | done | |
3634 | ||
3635 | fi | |
3636 | ||
81ecdfbb RW |
3637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges..." >&5 |
3638 | $as_echo "$as_me: checking for ptyranges..." >&6;} | |
b585a9fa EZ |
3639 | if test -d /dev/ptym ; then |
3640 | pdir='/dev/ptym' | |
3641 | else | |
3642 | pdir='/dev' | |
3643 | fi | |
81ecdfbb | 3644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b585a9fa EZ |
3645 | /* end confdefs.h. */ |
3646 | #ifdef M_UNIX | |
3647 | yes; | |
3648 | #endif | |
3649 | ||
3650 | _ACEOF | |
3651 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb | 3652 | $EGREP "yes" >/dev/null 2>&1; then : |
b585a9fa EZ |
3653 | ptys=`echo /dev/ptyp??` |
3654 | else | |
3655 | ptys=`echo $pdir/pty??` | |
3656 | fi | |
3657 | rm -f conftest* | |
3658 | ||
3659 | if test "$ptys" != "$pdir/pty??" ; then | |
3660 | p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` | |
3661 | p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` | |
3662 | cat >>confdefs.h <<_ACEOF | |
3663 | #define PTYRANGE0 "$p0" | |
3664 | _ACEOF | |
3665 | ||
3666 | cat >>confdefs.h <<_ACEOF | |
3667 | #define PTYRANGE1 "$p1" | |
3668 | _ACEOF | |
3669 | ||
3670 | fi | |
3671 | ||
3672 | ||
81ecdfbb RW |
3673 | # Check whether --with-pty-mode was given. |
3674 | if test "${with_pty_mode+set}" = set; then : | |
3675 | withval=$with_pty_mode; ptymode="${withval}" | |
3676 | fi | |
3677 | ||
3678 | ||
3679 | # Check whether --with-pty-group was given. | |
3680 | if test "${with_pty_group+set}" = set; then : | |
3681 | withval=$with_pty_group; ptygrp="${withval}" | |
3682 | fi | |
b585a9fa | 3683 | |
b585a9fa EZ |
3684 | test -n "$ptymode" || ptymode=0620 |
3685 | if test -n "$ptygrp" ; then | |
3686 | cat >>confdefs.h <<_ACEOF | |
3687 | #define PTYMODE $ptymode | |
3688 | _ACEOF | |
3689 | ||
3690 | cat >>confdefs.h <<_ACEOF | |
3691 | #define PTYGROUP $ptygrp | |
3692 | _ACEOF | |
3693 | ||
3694 | else | |
3695 | ||
81ecdfbb RW |
3696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group..." >&5 |
3697 | $as_echo "$as_me: checking default tty permissions/group..." >&6;} | |
b585a9fa | 3698 | rm -f conftest_grp |
81ecdfbb RW |
3699 | if test "$cross_compiling" = yes; then : |
3700 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3701 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3702 | as_fn_error "cannot run test program while cross compiling | |
3703 | See \`config.log' for more details." "$LINENO" 5; } | |
b585a9fa | 3704 | else |
81ecdfbb | 3705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b585a9fa EZ |
3706 | /* end confdefs.h. */ |
3707 | ||
3708 | #include <sys/types.h> | |
3709 | #include <sys/stat.h> | |
3710 | #include <stdio.h> | |
3711 | main() | |
3712 | { | |
3713 | struct stat sb; | |
3714 | char *x,*ttyname(); | |
3715 | int om, m; | |
3716 | FILE *fp; | |
3717 | ||
3718 | if (!(x = ttyname(0))) exit(1); | |
3719 | if (stat(x, &sb)) exit(1); | |
3720 | om = sb.st_mode; | |
3721 | if (om & 002) exit(0); | |
3722 | m = system("mesg y"); | |
3723 | if (m == -1 || m == 127) exit(1); | |
3724 | if (stat(x, &sb)) exit(1); | |
3725 | m = sb.st_mode; | |
3726 | if (chmod(x, om)) exit(1); | |
3727 | if (m & 002) exit(0); | |
3728 | if (sb.st_gid == getgid()) exit(1); | |
3729 | if (!(fp=fopen("conftest_grp", "w"))) | |
3730 | exit(1); | |
3731 | fprintf(fp, "%d\n", sb.st_gid); | |
3732 | fclose(fp); | |
3733 | exit(0); | |
3734 | } | |
3735 | ||
3736 | _ACEOF | |
81ecdfbb | 3737 | if ac_fn_c_try_run "$LINENO"; then : |
b585a9fa EZ |
3738 | |
3739 | if test -f conftest_grp; then | |
3740 | ptygrp=`cat conftest_grp` | |
3741 | echo "- pty mode: $ptymode, group: $ptygrp" 1>&6 | |
3742 | ||
3743 | cat >>confdefs.h <<_ACEOF | |
3744 | #define PTYMODE $ptymode | |
3745 | _ACEOF | |
3746 | ||
3747 | cat >>confdefs.h <<_ACEOF | |
3748 | #define PTYGROUP $ptygrp | |
3749 | _ACEOF | |
3750 | ||
3751 | else | |
3752 | echo "- ptys are world accessable" 1>&6 | |
3753 | ||
3754 | fi | |
3755 | ||
3756 | else | |
b585a9fa EZ |
3757 | |
3758 | WRITEPATH='' | |
3759 | XTERMPATH='' | |
3760 | # Extract the first word of "write", so it can be a program name with args. | |
3761 | set dummy write; ac_word=$2 | |
81ecdfbb RW |
3762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3763 | $as_echo_n "checking for $ac_word... " >&6; } | |
3764 | if test "${ac_cv_path_WRITEPATH+set}" = set; then : | |
3765 | $as_echo_n "(cached) " >&6 | |
b585a9fa EZ |
3766 | else |
3767 | case $WRITEPATH in | |
3768 | [\\/]* | ?:[\\/]*) | |
3769 | ac_cv_path_WRITEPATH="$WRITEPATH" # Let the user override the test with a path. | |
3770 | ;; | |
3771 | *) | |
3772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3773 | for as_dir in $PATH | |
3774 | do | |
3775 | IFS=$as_save_IFS | |
3776 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3777 | for ac_exec_ext in '' $ac_executable_extensions; do |
3778 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b585a9fa | 3779 | ac_cv_path_WRITEPATH="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 3780 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b585a9fa EZ |
3781 | break 2 |
3782 | fi | |
3783 | done | |
81ecdfbb RW |
3784 | done |
3785 | IFS=$as_save_IFS | |
b585a9fa EZ |
3786 | |
3787 | ;; | |
3788 | esac | |
3789 | fi | |
3790 | WRITEPATH=$ac_cv_path_WRITEPATH | |
b585a9fa | 3791 | if test -n "$WRITEPATH"; then |
81ecdfbb RW |
3792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WRITEPATH" >&5 |
3793 | $as_echo "$WRITEPATH" >&6; } | |
b585a9fa | 3794 | else |
81ecdfbb RW |
3795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3796 | $as_echo "no" >&6; } | |
b585a9fa EZ |
3797 | fi |
3798 | ||
81ecdfbb | 3799 | |
b585a9fa EZ |
3800 | # Extract the first word of "xterm", so it can be a program name with args. |
3801 | set dummy xterm; ac_word=$2 | |
81ecdfbb RW |
3802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3803 | $as_echo_n "checking for $ac_word... " >&6; } | |
3804 | if test "${ac_cv_path_XTERMPATH+set}" = set; then : | |
3805 | $as_echo_n "(cached) " >&6 | |
b585a9fa EZ |
3806 | else |
3807 | case $XTERMPATH in | |
3808 | [\\/]* | ?:[\\/]*) | |
3809 | ac_cv_path_XTERMPATH="$XTERMPATH" # Let the user override the test with a path. | |
3810 | ;; | |
3811 | *) | |
3812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3813 | for as_dir in $PATH | |
3814 | do | |
3815 | IFS=$as_save_IFS | |
3816 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3817 | for ac_exec_ext in '' $ac_executable_extensions; do |
3818 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b585a9fa | 3819 | ac_cv_path_XTERMPATH="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 3820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b585a9fa EZ |
3821 | break 2 |
3822 | fi | |
3823 | done | |
81ecdfbb RW |
3824 | done |
3825 | IFS=$as_save_IFS | |
b585a9fa EZ |
3826 | |
3827 | ;; | |
3828 | esac | |
3829 | fi | |
3830 | XTERMPATH=$ac_cv_path_XTERMPATH | |
b585a9fa | 3831 | if test -n "$XTERMPATH"; then |
81ecdfbb RW |
3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XTERMPATH" >&5 |
3833 | $as_echo "$XTERMPATH" >&6; } | |
b585a9fa | 3834 | else |
81ecdfbb RW |
3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3836 | $as_echo "no" >&6; } | |
b585a9fa EZ |
3837 | fi |
3838 | ||
81ecdfbb | 3839 | |
b585a9fa EZ |
3840 | found= |
3841 | if test -n "$WRITEPATH$XTERMPATH"; then | |
3842 | findfollow= | |
3843 | lsfollow= | |
3844 | found=`find $WRITEPATH $XTERMPATH -follow -print 2>/dev/null` | |
3845 | if test -n "$found"; then | |
3846 | findfollow=-follow | |
3847 | lsfollow=L | |
3848 | fi | |
3849 | if test -n "$XTERMPATH"; then | |
3850 | ptygrpn=`ls -l$lsfollow $XTERMPATH | sed -n -e 1p | $AWK '{print $4}'` | |
3851 | if test tty != "$ptygrpn"; then | |
3852 | XTERMPATH= | |
3853 | fi | |
3854 | fi | |
3855 | fi | |
3856 | if test -n "$WRITEPATH$XTERMPATH"; then | |
3857 | found=`find $WRITEPATH $XTERMPATH $findfollow -perm -2000 -print` | |
3858 | if test -n "$found"; then | |
3859 | ptygrp=`ls -ln$lsfollow $found | sed -n -e 1p | $AWK '{print $4}'` | |
3860 | echo "- pty mode: $ptymode, group: $ptygrp" 1>&6 | |
3861 | ||
3862 | cat >>confdefs.h <<_ACEOF | |
3863 | #define PTYMODE $ptymode | |
3864 | _ACEOF | |
3865 | ||
3866 | cat >>confdefs.h <<_ACEOF | |
3867 | #define PTYGROUP $ptygrp | |
3868 | _ACEOF | |
3869 | ||
3870 | else | |
3871 | echo "- ptys are world accessable" 1>&6 | |
3872 | ||
3873 | fi | |
3874 | else | |
3875 | echo "- can't determine - assume ptys are world accessable" 1>&6 | |
3876 | ||
3877 | fi | |
3878 | ||
3879 | ||
3880 | fi | |
81ecdfbb RW |
3881 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3882 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b585a9fa | 3883 | fi |
81ecdfbb | 3884 | |
b585a9fa EZ |
3885 | rm -f conftest_grp |
3886 | fi | |
3887 | ||
3888 | if test -n "$posix" ; then | |
3889 | ||
3890 | echo "assuming posix signal definition" 1>&6 | |
3891 | ||
81ecdfbb | 3892 | $as_echo "#define SIGVOID 1" >>confdefs.h |
b585a9fa EZ |
3893 | |
3894 | ||
3895 | else | |
3896 | ||
81ecdfbb RW |
3897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers..." >&5 |
3898 | $as_echo "$as_me: checking return type of signal handlers..." >&6;} | |
3899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b585a9fa EZ |
3900 | /* end confdefs.h. */ |
3901 | #include <sys/types.h> | |
3902 | #include <signal.h> | |
3903 | #ifdef signal | |
3904 | #undef signal | |
3905 | #endif | |
3906 | extern void (*signal ()) (); | |
3907 | int | |
3908 | main () | |
3909 | { | |
3910 | int i; | |
3911 | ; | |
3912 | return 0; | |
3913 | } | |
3914 | _ACEOF | |
81ecdfbb RW |
3915 | if ac_fn_c_try_compile "$LINENO"; then : |
3916 | $as_echo "#define SIGVOID 1" >>confdefs.h | |
b585a9fa EZ |
3917 | |
3918 | fi | |
81ecdfbb RW |
3919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sigset..." >&5 | |
3921 | $as_echo "$as_me: checking sigset..." >&6;} | |
3922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b585a9fa EZ |
3923 | /* end confdefs.h. */ |
3924 | ||
3925 | #include <sys/types.h> | |
3926 | #include <signal.h> | |
3927 | ||
3928 | int | |
3929 | main () | |
3930 | { | |
3931 | ||
3932 | #ifdef SIGVOID | |
3933 | sigset(0, (void (*)())0); | |
3934 | #else | |
3935 | sigset(0, (int (*)())0); | |
3936 | #endif | |
3937 | ||
3938 | ; | |
3939 | return 0; | |
3940 | } | |
3941 | _ACEOF | |
81ecdfbb RW |
3942 | if ac_fn_c_try_link "$LINENO"; then : |
3943 | $as_echo "#define USESIGSET 1" >>confdefs.h | |
b585a9fa EZ |
3944 | |
3945 | fi | |
81ecdfbb RW |
3946 | rm -f core conftest.err conftest.$ac_objext \ |
3947 | conftest$ac_exeext conftest.$ac_ext | |
3948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking signal implementation..." >&5 | |
3949 | $as_echo "$as_me: checking signal implementation..." >&6;} | |
3950 | if test "$cross_compiling" = yes; then : | |
3951 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3952 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3953 | as_fn_error "cannot run test program while cross compiling | |
3954 | See \`config.log' for more details." "$LINENO" 5; } | |
b585a9fa | 3955 | else |
81ecdfbb | 3956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b585a9fa EZ |
3957 | /* end confdefs.h. */ |
3958 | ||
3959 | #include <sys/types.h> | |
3960 | #include <signal.h> | |
3961 | ||
3962 | #ifndef SIGCLD | |
3963 | #define SIGCLD SIGCHLD | |
3964 | #endif | |
3965 | #ifdef USESIGSET | |
3966 | #define signal sigset | |
3967 | #endif | |
3968 | ||
3969 | int got; | |
3970 | ||
3971 | #ifdef SIGVOID | |
3972 | void | |
3973 | #endif | |
3974 | hand() | |
3975 | { | |
3976 | got++; | |
3977 | } | |
3978 | ||
3979 | main() | |
3980 | { | |
3981 | /* on hpux we use sigvec to get bsd signals */ | |
3982 | #ifdef __hpux | |
3983 | (void)signal(SIGCLD, hand); | |
3984 | kill(getpid(), SIGCLD); | |
3985 | kill(getpid(), SIGCLD); | |
3986 | if (got < 2) | |
3987 | exit(1); | |
3988 | #endif | |
3989 | exit(0); | |
3990 | } | |
3991 | ||
3992 | _ACEOF | |
81ecdfbb | 3993 | if ac_fn_c_try_run "$LINENO"; then : |
b585a9fa | 3994 | |
81ecdfbb RW |
3995 | else |
3996 | $as_echo "#define SYSVSIGS 1" >>confdefs.h | |
b585a9fa EZ |
3997 | |
3998 | fi | |
81ecdfbb RW |
3999 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4000 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b585a9fa EZ |
4001 | fi |
4002 | ||
81ecdfbb | 4003 | |
b585a9fa EZ |
4004 | fi |
4005 | ||
81ecdfbb RW |
4006 | ac_config_files="$ac_config_files Makefile" |
4007 | ||
b585a9fa EZ |
4008 | cat >confcache <<\_ACEOF |
4009 | # This file is a shell script that caches the results of configure | |
4010 | # tests run on this system so they can be shared between configure | |
4011 | # scripts and configure runs, see configure's option --config-cache. | |
4012 | # It is not useful on other systems. If it contains results you don't | |
4013 | # want to keep, you may remove or edit it. | |
4014 | # | |
4015 | # config.status only pays attention to the cache file if you give it | |
4016 | # the --recheck option to rerun configure. | |
4017 | # | |
4018 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
4019 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4020 | # following values. | |
4021 | ||
4022 | _ACEOF | |
4023 | ||
4024 | # The following way of writing the cache mishandles newlines in values, | |
4025 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 4026 | # So, we kill variables containing newlines. |
b585a9fa EZ |
4027 | # Ultrix sh set writes to stderr and can't be redirected directly, |
4028 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
4029 | ( |
4030 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
4031 | eval ac_val=\$$ac_var | |
4032 | case $ac_val in #( | |
4033 | *${as_nl}*) | |
4034 | case $ac_var in #( | |
4035 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
4036 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
4037 | esac | |
4038 | case $ac_var in #( | |
4039 | _ | IFS | as_nl) ;; #( | |
4040 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
4041 | *) { eval $ac_var=; unset $ac_var;} ;; | |
4042 | esac ;; | |
4043 | esac | |
4044 | done | |
4045 | ||
b585a9fa | 4046 | (set) 2>&1 | |
81ecdfbb RW |
4047 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
4048 | *${as_nl}ac_space=\ *) | |
4049 | # `set' does not quote correctly, so add quotes: double-quote | |
4050 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b585a9fa EZ |
4051 | sed -n \ |
4052 | "s/'/'\\\\''/g; | |
4053 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 4054 | ;; #( |
b585a9fa EZ |
4055 | *) |
4056 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 4057 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b585a9fa | 4058 | ;; |
81ecdfbb RW |
4059 | esac | |
4060 | sort | |
4061 | ) | | |
b585a9fa | 4062 | sed ' |
81ecdfbb | 4063 | /^ac_cv_env_/b end |
b585a9fa | 4064 | t clear |
81ecdfbb | 4065 | :clear |
b585a9fa EZ |
4066 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
4067 | t end | |
81ecdfbb RW |
4068 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
4069 | :end' >>confcache | |
4070 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
4071 | if test -w "$cache_file"; then | |
4072 | test "x$cache_file" != "x/dev/null" && | |
4073 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
4074 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
b585a9fa EZ |
4075 | cat confcache >$cache_file |
4076 | else | |
81ecdfbb RW |
4077 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
4078 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
b585a9fa EZ |
4079 | fi |
4080 | fi | |
4081 | rm -f confcache | |
4082 | ||
4083 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
4084 | # Let make expand exec_prefix. | |
4085 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4086 | ||
b585a9fa EZ |
4087 | DEFS=-DHAVE_CONFIG_H |
4088 | ||
4089 | ac_libobjs= | |
4090 | ac_ltlibobjs= | |
4091 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
4092 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
4093 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
4094 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
4095 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
4096 | # will be set to the directory where LIBOBJS objects are built. | |
4097 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
4098 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b585a9fa EZ |
4099 | done |
4100 | LIBOBJS=$ac_libobjs | |
4101 | ||
4102 | LTLIBOBJS=$ac_ltlibobjs | |
4103 | ||
4104 | ||
4105 | ||
4106 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 4107 | ac_write_fail=0 |
b585a9fa EZ |
4108 | ac_clean_files_save=$ac_clean_files |
4109 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
4110 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
4111 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
4112 | as_write_fail=0 | |
4113 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b585a9fa EZ |
4114 | #! $SHELL |
4115 | # Generated by $as_me. | |
4116 | # Run this file to recreate the current configuration. | |
4117 | # Compiler output produced by configure, useful for debugging | |
4118 | # configure, is in config.log if it exists. | |
4119 | ||
4120 | debug=false | |
4121 | ac_cs_recheck=false | |
4122 | ac_cs_silent=false | |
b585a9fa | 4123 | |
81ecdfbb RW |
4124 | SHELL=\${CONFIG_SHELL-$SHELL} |
4125 | export SHELL | |
4126 | _ASEOF | |
4127 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
4128 | ## -------------------- ## | |
4129 | ## M4sh Initialization. ## | |
4130 | ## -------------------- ## | |
4131 | ||
4132 | # Be more Bourne compatible | |
4133 | DUALCASE=1; export DUALCASE # for MKS sh | |
4134 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b585a9fa EZ |
4135 | emulate sh |
4136 | NULLCMD=: | |
81ecdfbb | 4137 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b585a9fa EZ |
4138 | # is contrary to our usage. Disable this feature. |
4139 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
4140 | setopt NO_GLOB_SUBST |
4141 | else | |
4142 | case `(set -o) 2>/dev/null` in #( | |
4143 | *posix*) : | |
4144 | set -o posix ;; #( | |
4145 | *) : | |
4146 | ;; | |
4147 | esac | |
b585a9fa | 4148 | fi |
b585a9fa | 4149 | |
81ecdfbb RW |
4150 | |
4151 | as_nl=' | |
4152 | ' | |
4153 | export as_nl | |
4154 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
4155 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4156 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
4157 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
4158 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
4159 | # but without wasting forks for bash or zsh. | |
4160 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
4161 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
4162 | as_echo='print -r --' | |
4163 | as_echo_n='print -rn --' | |
4164 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
4165 | as_echo='printf %s\n' | |
4166 | as_echo_n='printf %s' | |
b585a9fa | 4167 | else |
81ecdfbb RW |
4168 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
4169 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
4170 | as_echo_n='/usr/ucb/echo -n' | |
4171 | else | |
4172 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
4173 | as_echo_n_body='eval | |
4174 | arg=$1; | |
4175 | case $arg in #( | |
4176 | *"$as_nl"*) | |
4177 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
4178 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
4179 | esac; | |
4180 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
4181 | ' | |
4182 | export as_echo_n_body | |
4183 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
4184 | fi | |
4185 | export as_echo_body | |
4186 | as_echo='sh -c $as_echo_body as_echo' | |
4187 | fi | |
4188 | ||
4189 | # The user is always right. | |
4190 | if test "${PATH_SEPARATOR+set}" != set; then | |
4191 | PATH_SEPARATOR=: | |
4192 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
4193 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
4194 | PATH_SEPARATOR=';' | |
4195 | } | |
b585a9fa EZ |
4196 | fi |
4197 | ||
4198 | ||
81ecdfbb RW |
4199 | # IFS |
4200 | # We need space, tab and new line, in precisely that order. Quoting is | |
4201 | # there to prevent editors from complaining about space-tab. | |
4202 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
4203 | # splitting by setting IFS to empty value.) | |
4204 | IFS=" "" $as_nl" | |
4205 | ||
4206 | # Find who we are. Look in the path if we contain no directory separator. | |
4207 | case $0 in #(( | |
4208 | *[\\/]* ) as_myself=$0 ;; | |
4209 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4210 | for as_dir in $PATH | |
4211 | do | |
4212 | IFS=$as_save_IFS | |
4213 | test -z "$as_dir" && as_dir=. | |
4214 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
4215 | done | |
4216 | IFS=$as_save_IFS | |
4217 | ||
4218 | ;; | |
4219 | esac | |
4220 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
4221 | # in which case we are not to be found in the path. | |
4222 | if test "x$as_myself" = x; then | |
4223 | as_myself=$0 | |
4224 | fi | |
4225 | if test ! -f "$as_myself"; then | |
4226 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
4227 | exit 1 | |
4228 | fi | |
4229 | ||
4230 | # Unset variables that we do not need and which cause bugs (e.g. in | |
4231 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
4232 | # suppresses any "Segmentation fault" message there. '((' could | |
4233 | # trigger a bug in pdksh 5.2.14. | |
4234 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
4235 | do eval test x\${$as_var+set} = xset \ | |
4236 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
4237 | done | |
b585a9fa EZ |
4238 | PS1='$ ' |
4239 | PS2='> ' | |
4240 | PS4='+ ' | |
4241 | ||
4242 | # NLS nuisances. | |
81ecdfbb RW |
4243 | LC_ALL=C |
4244 | export LC_ALL | |
4245 | LANGUAGE=C | |
4246 | export LANGUAGE | |
4247 | ||
4248 | # CDPATH. | |
4249 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
4250 | ||
4251 | ||
4252 | # as_fn_error ERROR [LINENO LOG_FD] | |
4253 | # --------------------------------- | |
4254 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
4255 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
4256 | # script with status $?, using 1 if that was 0. | |
4257 | as_fn_error () | |
4258 | { | |
4259 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
4260 | if test "$3"; then | |
4261 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
4262 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
b585a9fa | 4263 | fi |
81ecdfbb RW |
4264 | $as_echo "$as_me: error: $1" >&2 |
4265 | as_fn_exit $as_status | |
4266 | } # as_fn_error | |
4267 | ||
4268 | ||
4269 | # as_fn_set_status STATUS | |
4270 | # ----------------------- | |
4271 | # Set $? to STATUS, without forking. | |
4272 | as_fn_set_status () | |
4273 | { | |
4274 | return $1 | |
4275 | } # as_fn_set_status | |
b585a9fa | 4276 | |
81ecdfbb RW |
4277 | # as_fn_exit STATUS |
4278 | # ----------------- | |
4279 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
4280 | as_fn_exit () | |
4281 | { | |
4282 | set +e | |
4283 | as_fn_set_status $1 | |
4284 | exit $1 | |
4285 | } # as_fn_exit | |
4286 | ||
4287 | # as_fn_unset VAR | |
4288 | # --------------- | |
4289 | # Portably unset VAR. | |
4290 | as_fn_unset () | |
4291 | { | |
4292 | { eval $1=; unset $1;} | |
4293 | } | |
4294 | as_unset=as_fn_unset | |
4295 | # as_fn_append VAR VALUE | |
4296 | # ---------------------- | |
4297 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
4298 | # advantage of any shell optimizations that allow amortized linear growth over | |
4299 | # repeated appends, instead of the typical quadratic growth present in naive | |
4300 | # implementations. | |
4301 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
4302 | eval 'as_fn_append () | |
4303 | { | |
4304 | eval $1+=\$2 | |
4305 | }' | |
4306 | else | |
4307 | as_fn_append () | |
4308 | { | |
4309 | eval $1=\$$1\$2 | |
4310 | } | |
4311 | fi # as_fn_append | |
4312 | ||
4313 | # as_fn_arith ARG... | |
4314 | # ------------------ | |
4315 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
4316 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
4317 | # must be portable across $(()) and expr. | |
4318 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
4319 | eval 'as_fn_arith () | |
4320 | { | |
4321 | as_val=$(( $* )) | |
4322 | }' | |
4323 | else | |
4324 | as_fn_arith () | |
4325 | { | |
4326 | as_val=`expr "$@" || test $? -eq 1` | |
4327 | } | |
4328 | fi # as_fn_arith | |
4329 | ||
4330 | ||
4331 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
4332 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b585a9fa EZ |
4333 | as_expr=expr |
4334 | else | |
4335 | as_expr=false | |
4336 | fi | |
4337 | ||
81ecdfbb | 4338 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b585a9fa EZ |
4339 | as_basename=basename |
4340 | else | |
4341 | as_basename=false | |
4342 | fi | |
4343 | ||
81ecdfbb RW |
4344 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
4345 | as_dirname=dirname | |
4346 | else | |
4347 | as_dirname=false | |
4348 | fi | |
b585a9fa | 4349 | |
81ecdfbb | 4350 | as_me=`$as_basename -- "$0" || |
b585a9fa EZ |
4351 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
4352 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
4353 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
4354 | $as_echo X/"$0" | | |
4355 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
4356 | s//\1/ | |
4357 | q | |
4358 | } | |
4359 | /^X\/\(\/\/\)$/{ | |
4360 | s//\1/ | |
4361 | q | |
4362 | } | |
4363 | /^X\/\(\/\).*/{ | |
4364 | s//\1/ | |
4365 | q | |
4366 | } | |
4367 | s/.*/./; q'` | |
b585a9fa | 4368 | |
b585a9fa EZ |
4369 | # Avoid depending upon Character Ranges. |
4370 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
4371 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
4372 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
4373 | as_cr_digits='0123456789' | |
4374 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
4375 | ||
81ecdfbb RW |
4376 | ECHO_C= ECHO_N= ECHO_T= |
4377 | case `echo -n x` in #((((( | |
4378 | -n*) | |
4379 | case `echo 'xy\c'` in | |
4380 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
4381 | xy) ECHO_C='\c';; | |
4382 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
4383 | ECHO_T=' ';; | |
4384 | esac;; | |
4385 | *) | |
4386 | ECHO_N='-n';; | |
b585a9fa EZ |
4387 | esac |
4388 | ||
81ecdfbb RW |
4389 | rm -f conf$$ conf$$.exe conf$$.file |
4390 | if test -d conf$$.dir; then | |
4391 | rm -f conf$$.dir/conf$$.file | |
b585a9fa | 4392 | else |
81ecdfbb RW |
4393 | rm -f conf$$.dir |
4394 | mkdir conf$$.dir 2>/dev/null | |
b585a9fa | 4395 | fi |
81ecdfbb RW |
4396 | if (echo >conf$$.file) 2>/dev/null; then |
4397 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b585a9fa | 4398 | as_ln_s='ln -s' |
81ecdfbb RW |
4399 | # ... but there are two gotchas: |
4400 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
4401 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
4402 | # In both cases, we have to default to `cp -p'. | |
4403 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
4404 | as_ln_s='cp -p' | |
4405 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
4406 | as_ln_s=ln | |
4407 | else | |
4408 | as_ln_s='cp -p' | |
b585a9fa | 4409 | fi |
b585a9fa EZ |
4410 | else |
4411 | as_ln_s='cp -p' | |
4412 | fi | |
81ecdfbb RW |
4413 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
4414 | rmdir conf$$.dir 2>/dev/null | |
4415 | ||
b585a9fa | 4416 | |
81ecdfbb RW |
4417 | # as_fn_mkdir_p |
4418 | # ------------- | |
4419 | # Create "$as_dir" as a directory, including parents if necessary. | |
4420 | as_fn_mkdir_p () | |
4421 | { | |
4422 | ||
4423 | case $as_dir in #( | |
4424 | -*) as_dir=./$as_dir;; | |
4425 | esac | |
4426 | test -d "$as_dir" || eval $as_mkdir_p || { | |
4427 | as_dirs= | |
4428 | while :; do | |
4429 | case $as_dir in #( | |
4430 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
4431 | *) as_qdir=$as_dir;; | |
4432 | esac | |
4433 | as_dirs="'$as_qdir' $as_dirs" | |
4434 | as_dir=`$as_dirname -- "$as_dir" || | |
4435 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4436 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
4437 | X"$as_dir" : 'X\(//\)$' \| \ | |
4438 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
4439 | $as_echo X"$as_dir" | | |
4440 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4441 | s//\1/ | |
4442 | q | |
4443 | } | |
4444 | /^X\(\/\/\)[^/].*/{ | |
4445 | s//\1/ | |
4446 | q | |
4447 | } | |
4448 | /^X\(\/\/\)$/{ | |
4449 | s//\1/ | |
4450 | q | |
4451 | } | |
4452 | /^X\(\/\).*/{ | |
4453 | s//\1/ | |
4454 | q | |
4455 | } | |
4456 | s/.*/./; q'` | |
4457 | test -d "$as_dir" && break | |
4458 | done | |
4459 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
4460 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
4461 | ||
4462 | ||
4463 | } # as_fn_mkdir_p | |
b585a9fa | 4464 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 4465 | as_mkdir_p='mkdir -p "$as_dir"' |
b585a9fa EZ |
4466 | else |
4467 | test -d ./-p && rmdir ./-p | |
4468 | as_mkdir_p=false | |
4469 | fi | |
4470 | ||
81ecdfbb RW |
4471 | if test -x / >/dev/null 2>&1; then |
4472 | as_test_x='test -x' | |
4473 | else | |
4474 | if ls -dL / >/dev/null 2>&1; then | |
4475 | as_ls_L_option=L | |
4476 | else | |
4477 | as_ls_L_option= | |
4478 | fi | |
4479 | as_test_x=' | |
4480 | eval sh -c '\'' | |
4481 | if test -d "$1"; then | |
4482 | test -d "$1/."; | |
4483 | else | |
4484 | case $1 in #( | |
4485 | -*)set "./$1";; | |
4486 | esac; | |
4487 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
4488 | ???[sx]*):;;*)false;;esac;fi | |
4489 | '\'' sh | |
4490 | ' | |
4491 | fi | |
4492 | as_executable_p=$as_test_x | |
b585a9fa EZ |
4493 | |
4494 | # Sed expression to map a string onto a valid CPP name. | |
4495 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
4496 | ||
4497 | # Sed expression to map a string onto a valid variable name. | |
4498 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
4499 | ||
4500 | ||
b585a9fa | 4501 | exec 6>&1 |
81ecdfbb RW |
4502 | ## ----------------------------------- ## |
4503 | ## Main body of $CONFIG_STATUS script. ## | |
4504 | ## ----------------------------------- ## | |
4505 | _ASEOF | |
4506 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
4507 | ||
4508 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4509 | # Save the log message, to keep $0 and so on meaningful, and to | |
b585a9fa | 4510 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
4511 | # values after options handling. |
4512 | ac_log=" | |
b585a9fa | 4513 | This file was extended by $as_me, which was |
81ecdfbb | 4514 | generated by GNU Autoconf 2.64. Invocation command line was |
b585a9fa EZ |
4515 | |
4516 | CONFIG_FILES = $CONFIG_FILES | |
4517 | CONFIG_HEADERS = $CONFIG_HEADERS | |
4518 | CONFIG_LINKS = $CONFIG_LINKS | |
4519 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
4520 | $ $0 $@ | |
4521 | ||
81ecdfbb RW |
4522 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
4523 | " | |
4524 | ||
b585a9fa EZ |
4525 | _ACEOF |
4526 | ||
81ecdfbb RW |
4527 | case $ac_config_files in *" |
4528 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
4529 | esac | |
b585a9fa | 4530 | |
81ecdfbb RW |
4531 | case $ac_config_headers in *" |
4532 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
4533 | esac | |
b585a9fa | 4534 | |
b585a9fa | 4535 | |
81ecdfbb RW |
4536 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4537 | # Files that config.status was made for. | |
4538 | config_files="$ac_config_files" | |
4539 | config_headers="$ac_config_headers" | |
b585a9fa | 4540 | |
81ecdfbb | 4541 | _ACEOF |
b585a9fa | 4542 | |
81ecdfbb | 4543 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b585a9fa | 4544 | ac_cs_usage="\ |
81ecdfbb RW |
4545 | \`$as_me' instantiates files and other configuration actions |
4546 | from templates according to the current configuration. Unless the files | |
4547 | and actions are specified as TAGs, all are instantiated by default. | |
b585a9fa | 4548 | |
81ecdfbb | 4549 | Usage: $0 [OPTION]... [TAG]... |
b585a9fa EZ |
4550 | |
4551 | -h, --help print this help, then exit | |
81ecdfbb RW |
4552 | -V, --version print version number and configuration settings, then exit |
4553 | -q, --quiet, --silent | |
4554 | do not print progress messages | |
b585a9fa EZ |
4555 | -d, --debug don't remove temporary files |
4556 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
4557 | --file=FILE[:TEMPLATE] |
4558 | instantiate the configuration file FILE | |
4559 | --header=FILE[:TEMPLATE] | |
4560 | instantiate the configuration header FILE | |
b585a9fa EZ |
4561 | |
4562 | Configuration files: | |
4563 | $config_files | |
4564 | ||
4565 | Configuration headers: | |
4566 | $config_headers | |
4567 | ||
81ecdfbb | 4568 | Report bugs to the package provider." |
b585a9fa | 4569 | |
81ecdfbb RW |
4570 | _ACEOF |
4571 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b585a9fa EZ |
4572 | ac_cs_version="\\ |
4573 | config.status | |
81ecdfbb RW |
4574 | configured by $0, generated by GNU Autoconf 2.64, |
4575 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
b585a9fa | 4576 | |
81ecdfbb | 4577 | Copyright (C) 2009 Free Software Foundation, Inc. |
b585a9fa EZ |
4578 | This config.status script is free software; the Free Software Foundation |
4579 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
4580 | |
4581 | ac_pwd='$ac_pwd' | |
4582 | srcdir='$srcdir' | |
4583 | AWK='$AWK' | |
4584 | test -n "\$AWK" || AWK=awk | |
b585a9fa EZ |
4585 | _ACEOF |
4586 | ||
81ecdfbb RW |
4587 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4588 | # The default lists apply if the user does not specify any file. | |
b585a9fa EZ |
4589 | ac_need_defaults=: |
4590 | while test $# != 0 | |
4591 | do | |
4592 | case $1 in | |
4593 | --*=*) | |
81ecdfbb RW |
4594 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
4595 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b585a9fa EZ |
4596 | ac_shift=: |
4597 | ;; | |
81ecdfbb | 4598 | *) |
b585a9fa EZ |
4599 | ac_option=$1 |
4600 | ac_optarg=$2 | |
4601 | ac_shift=shift | |
4602 | ;; | |
b585a9fa EZ |
4603 | esac |
4604 | ||
4605 | case $ac_option in | |
4606 | # Handling of the options. | |
b585a9fa EZ |
4607 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
4608 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
4609 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
4610 | $as_echo "$ac_cs_version"; exit ;; | |
4611 | --debug | --debu | --deb | --de | --d | -d ) | |
b585a9fa EZ |
4612 | debug=: ;; |
4613 | --file | --fil | --fi | --f ) | |
4614 | $ac_shift | |
81ecdfbb RW |
4615 | case $ac_optarg in |
4616 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
4617 | esac | |
4618 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
b585a9fa EZ |
4619 | ac_need_defaults=false;; |
4620 | --header | --heade | --head | --hea ) | |
4621 | $ac_shift | |
81ecdfbb RW |
4622 | case $ac_optarg in |
4623 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
4624 | esac | |
4625 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
b585a9fa | 4626 | ac_need_defaults=false;; |
81ecdfbb RW |
4627 | --he | --h) |
4628 | # Conflict between --help and --header | |
4629 | as_fn_error "ambiguous option: \`$1' | |
4630 | Try \`$0 --help' for more information.";; | |
4631 | --help | --hel | -h ) | |
4632 | $as_echo "$ac_cs_usage"; exit ;; | |
b585a9fa EZ |
4633 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
4634 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
4635 | ac_cs_silent=: ;; | |
4636 | ||
4637 | # This is an error. | |
81ecdfbb RW |
4638 | -*) as_fn_error "unrecognized option: \`$1' |
4639 | Try \`$0 --help' for more information." ;; | |
b585a9fa | 4640 | |
81ecdfbb RW |
4641 | *) as_fn_append ac_config_targets " $1" |
4642 | ac_need_defaults=false ;; | |
b585a9fa EZ |
4643 | |
4644 | esac | |
4645 | shift | |
4646 | done | |
4647 | ||
4648 | ac_configure_extra_args= | |
4649 | ||
4650 | if $ac_cs_silent; then | |
4651 | exec 6>/dev/null | |
4652 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
4653 | fi | |
4654 | ||
4655 | _ACEOF | |
81ecdfbb | 4656 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b585a9fa | 4657 | if \$ac_cs_recheck; then |
81ecdfbb RW |
4658 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
4659 | shift | |
4660 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
4661 | CONFIG_SHELL='$SHELL' | |
4662 | export CONFIG_SHELL | |
4663 | exec "\$@" | |
b585a9fa EZ |
4664 | fi |
4665 | ||
4666 | _ACEOF | |
81ecdfbb RW |
4667 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4668 | exec 5>>config.log | |
4669 | { | |
4670 | echo | |
4671 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
4672 | ## Running $as_me. ## | |
4673 | _ASBOX | |
4674 | $as_echo "$ac_log" | |
4675 | } >&5 | |
b585a9fa | 4676 | |
81ecdfbb RW |
4677 | _ACEOF |
4678 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4679 | _ACEOF | |
b585a9fa | 4680 | |
81ecdfbb | 4681 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b585a9fa | 4682 | |
81ecdfbb | 4683 | # Handling of arguments. |
b585a9fa EZ |
4684 | for ac_config_target in $ac_config_targets |
4685 | do | |
81ecdfbb RW |
4686 | case $ac_config_target in |
4687 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
4688 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
4689 | ||
4690 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
b585a9fa EZ |
4691 | esac |
4692 | done | |
4693 | ||
81ecdfbb | 4694 | |
b585a9fa EZ |
4695 | # If the user did not use the arguments to specify the items to instantiate, |
4696 | # then the envvar interface is used. Set only those that are not. | |
4697 | # We use the long form for the default assignment because of an extremely | |
4698 | # bizarre bug on SunOS 4.1.3. | |
4699 | if $ac_need_defaults; then | |
4700 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
4701 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
4702 | fi | |
4703 | ||
4704 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 4705 | # simply because there is no reason against having it here, and in addition, |
b585a9fa | 4706 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
4707 | # Hook for its removal unless debugging. |
4708 | # Note that there is a small window in which the directory will not be cleaned: | |
4709 | # after its creation but before its name has been assigned to `$tmp'. | |
b585a9fa EZ |
4710 | $debug || |
4711 | { | |
81ecdfbb RW |
4712 | tmp= |
4713 | trap 'exit_status=$? | |
4714 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
4715 | ' 0 | |
4716 | trap 'as_fn_exit 1' 1 2 13 15 | |
b585a9fa | 4717 | } |
b585a9fa EZ |
4718 | # Create a (secure) tmp directory for tmp files. |
4719 | ||
4720 | { | |
81ecdfbb | 4721 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b585a9fa EZ |
4722 | test -n "$tmp" && test -d "$tmp" |
4723 | } || | |
4724 | { | |
81ecdfbb RW |
4725 | tmp=./conf$$-$RANDOM |
4726 | (umask 077 && mkdir "$tmp") | |
4727 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
4728 | ||
4729 | # Set up the scripts for CONFIG_FILES section. | |
4730 | # No need to generate them if there are no CONFIG_FILES. | |
4731 | # This happens for instance with `./config.status config.h'. | |
4732 | if test -n "$CONFIG_FILES"; then | |
4733 | ||
4734 | ||
4735 | ac_cr=`echo X | tr X '\015'` | |
4736 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
4737 | # But we know of no other shell where ac_cr would be empty at this | |
4738 | # point, so we can use a bashism as a fallback. | |
4739 | if test "x$ac_cr" = x; then | |
4740 | eval ac_cr=\$\'\\r\' | |
4741 | fi | |
4742 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
4743 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
4744 | ac_cs_awk_cr='\r' | |
4745 | else | |
4746 | ac_cs_awk_cr=$ac_cr | |
4747 | fi | |
4748 | ||
4749 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
4750 | _ACEOF | |
4751 | ||
4752 | ||
4753 | { | |
4754 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
4755 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
4756 | echo "_ACEOF" | |
4757 | } >conf$$subs.sh || | |
4758 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4759 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
4760 | ac_delim='%!_!# ' | |
4761 | for ac_last_try in false false false false false :; do | |
4762 | . ./conf$$subs.sh || | |
4763 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4764 | ||
4765 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
4766 | if test $ac_delim_n = $ac_delim_num; then | |
4767 | break | |
4768 | elif $ac_last_try; then | |
4769 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4770 | else | |
4771 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
4772 | fi | |
4773 | done | |
4774 | rm -f conf$$subs.sh | |
4775 | ||
4776 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4777 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
4778 | _ACEOF | |
4779 | sed -n ' | |
4780 | h | |
4781 | s/^/S["/; s/!.*/"]=/ | |
4782 | p | |
4783 | g | |
4784 | s/^[^!]*!// | |
4785 | :repl | |
4786 | t repl | |
4787 | s/'"$ac_delim"'$// | |
4788 | t delim | |
4789 | :nl | |
4790 | h | |
4791 | s/\(.\{148\}\).*/\1/ | |
4792 | t more1 | |
4793 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
4794 | p | |
4795 | n | |
4796 | b repl | |
4797 | :more1 | |
4798 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
4799 | p | |
4800 | g | |
4801 | s/.\{148\}// | |
4802 | t nl | |
4803 | :delim | |
4804 | h | |
4805 | s/\(.\{148\}\).*/\1/ | |
4806 | t more2 | |
4807 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
4808 | p | |
4809 | b | |
4810 | :more2 | |
4811 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
4812 | p | |
4813 | g | |
4814 | s/.\{148\}// | |
4815 | t delim | |
4816 | ' <conf$$subs.awk | sed ' | |
4817 | /^[^""]/{ | |
4818 | N | |
4819 | s/\n// | |
4820 | } | |
4821 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
4822 | rm -f conf$$subs.awk | |
4823 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4824 | _ACAWK | |
4825 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
4826 | for (key in S) S_is_set[key] = 1 | |
4827 | FS = "\a" | |
4828 | ||
4829 | } | |
b585a9fa | 4830 | { |
81ecdfbb RW |
4831 | line = $ 0 |
4832 | nfields = split(line, field, "@") | |
4833 | substed = 0 | |
4834 | len = length(field[1]) | |
4835 | for (i = 2; i < nfields; i++) { | |
4836 | key = field[i] | |
4837 | keylen = length(key) | |
4838 | if (S_is_set[key]) { | |
4839 | value = S[key] | |
4840 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
4841 | len += length(value) + length(field[++i]) | |
4842 | substed = 1 | |
4843 | } else | |
4844 | len += 1 + keylen | |
4845 | } | |
4846 | ||
4847 | print line | |
b585a9fa EZ |
4848 | } |
4849 | ||
81ecdfbb RW |
4850 | _ACAWK |
4851 | _ACEOF | |
4852 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4853 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
4854 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
4855 | else | |
4856 | cat | |
4857 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
4858 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
b585a9fa EZ |
4859 | _ACEOF |
4860 | ||
81ecdfbb RW |
4861 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
4862 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
4863 | # trailing colons and then remove the whole line if VPATH becomes empty | |
4864 | # (actually we leave an empty line to preserve line numbers). | |
4865 | if test "x$srcdir" = x.; then | |
4866 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
4867 | s/:*\$(srcdir):*/:/ | |
4868 | s/:*\${srcdir}:*/:/ | |
4869 | s/:*@srcdir@:*/:/ | |
4870 | s/^\([^=]*=[ ]*\):*/\1/ | |
4871 | s/:*$// | |
4872 | s/^[^=]*=[ ]*$// | |
4873 | }' | |
4874 | fi | |
b585a9fa | 4875 | |
81ecdfbb RW |
4876 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4877 | fi # test -n "$CONFIG_FILES" | |
b585a9fa | 4878 | |
81ecdfbb RW |
4879 | # Set up the scripts for CONFIG_HEADERS section. |
4880 | # No need to generate them if there are no CONFIG_HEADERS. | |
4881 | # This happens for instance with `./config.status Makefile'. | |
4882 | if test -n "$CONFIG_HEADERS"; then | |
4883 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
4884 | BEGIN { | |
4885 | _ACEOF | |
4886 | ||
4887 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
4888 | # here-document in config.status, that substitutes the proper values into | |
4889 | # config.h.in to produce config.h. | |
4890 | ||
4891 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
4892 | # handling of long lines. | |
4893 | ac_delim='%!_!# ' | |
4894 | for ac_last_try in false false :; do | |
4895 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
4896 | if test -z "$ac_t"; then | |
4897 | break | |
4898 | elif $ac_last_try; then | |
4899 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
4900 | else | |
4901 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
4902 | fi | |
4903 | done | |
b585a9fa | 4904 | |
81ecdfbb RW |
4905 | # For the awk script, D is an array of macro values keyed by name, |
4906 | # likewise P contains macro parameters if any. Preserve backslash | |
4907 | # newline sequences. | |
4908 | ||
4909 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
4910 | sed -n ' | |
4911 | s/.\{148\}/&'"$ac_delim"'/g | |
4912 | t rset | |
4913 | :rset | |
4914 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
4915 | t def | |
4916 | d | |
4917 | :def | |
4918 | s/\\$// | |
4919 | t bsnl | |
4920 | s/["\\]/\\&/g | |
4921 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
4922 | D["\1"]=" \3"/p | |
4923 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
4924 | d | |
4925 | :bsnl | |
4926 | s/["\\]/\\&/g | |
4927 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
4928 | D["\1"]=" \3\\\\\\n"\\/p | |
4929 | t cont | |
4930 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
4931 | t cont | |
4932 | d | |
4933 | :cont | |
4934 | n | |
4935 | s/.\{148\}/&'"$ac_delim"'/g | |
4936 | t clear | |
4937 | :clear | |
4938 | s/\\$// | |
4939 | t bsnlc | |
4940 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
4941 | d | |
4942 | :bsnlc | |
4943 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
4944 | b cont | |
4945 | ' <confdefs.h | sed ' | |
4946 | s/'"$ac_delim"'/"\\\ | |
4947 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
4948 | ||
4949 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4950 | for (key in D) D_is_set[key] = 1 | |
4951 | FS = "\a" | |
4952 | } | |
4953 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
4954 | line = \$ 0 | |
4955 | split(line, arg, " ") | |
4956 | if (arg[1] == "#") { | |
4957 | defundef = arg[2] | |
4958 | mac1 = arg[3] | |
4959 | } else { | |
4960 | defundef = substr(arg[1], 2) | |
4961 | mac1 = arg[2] | |
4962 | } | |
4963 | split(mac1, mac2, "(") #) | |
4964 | macro = mac2[1] | |
4965 | prefix = substr(line, 1, index(line, defundef) - 1) | |
4966 | if (D_is_set[macro]) { | |
4967 | # Preserve the white space surrounding the "#". | |
4968 | print prefix "define", macro P[macro] D[macro] | |
4969 | next | |
4970 | } else { | |
4971 | # Replace #undef with comments. This is necessary, for example, | |
4972 | # in the case of _POSIX_SOURCE, which is predefined and required | |
4973 | # on some systems where configure will not decide to define it. | |
4974 | if (defundef == "undef") { | |
4975 | print "/*", prefix defundef, macro, "*/" | |
4976 | next | |
4977 | } | |
4978 | } | |
4979 | } | |
4980 | { print } | |
4981 | _ACAWK | |
b585a9fa | 4982 | _ACEOF |
81ecdfbb RW |
4983 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4984 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
4985 | fi # test -n "$CONFIG_HEADERS" | |
b585a9fa | 4986 | |
81ecdfbb RW |
4987 | |
4988 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | |
4989 | shift | |
4990 | for ac_tag | |
4991 | do | |
4992 | case $ac_tag in | |
4993 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
4994 | esac | |
4995 | case $ac_mode$ac_tag in | |
4996 | :[FHL]*:*);; | |
4997 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
4998 | :[FH]-) ac_tag=-:-;; | |
4999 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
5000 | esac | |
5001 | ac_save_IFS=$IFS | |
5002 | IFS=: | |
5003 | set x $ac_tag | |
5004 | IFS=$ac_save_IFS | |
5005 | shift | |
5006 | ac_file=$1 | |
5007 | shift | |
5008 | ||
5009 | case $ac_mode in | |
5010 | :L) ac_source=$1;; | |
5011 | :[FH]) | |
5012 | ac_file_inputs= | |
5013 | for ac_f | |
5014 | do | |
5015 | case $ac_f in | |
5016 | -) ac_f="$tmp/stdin";; | |
5017 | *) # Look for the file first in the build tree, then in the source tree | |
5018 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
5019 | # because $ac_f cannot contain `:'. | |
5020 | test -f "$ac_f" || | |
5021 | case $ac_f in | |
5022 | [\\/$]*) false;; | |
5023 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
5024 | esac || | |
5025 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
5026 | esac | |
5027 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
5028 | as_fn_append ac_file_inputs " '$ac_f'" | |
5029 | done | |
5030 | ||
5031 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
5032 | # use $as_me), people would be surprised to read: | |
5033 | # /* config.h. Generated by config.status. */ | |
5034 | configure_input='Generated from '` | |
5035 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
5036 | `' by configure.' | |
5037 | if test x"$ac_file" != x-; then | |
5038 | configure_input="$ac_file. $configure_input" | |
5039 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
5040 | $as_echo "$as_me: creating $ac_file" >&6;} | |
b585a9fa | 5041 | fi |
81ecdfbb RW |
5042 | # Neutralize special characters interpreted by sed in replacement strings. |
5043 | case $configure_input in #( | |
5044 | *\&* | *\|* | *\\* ) | |
5045 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
5046 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
5047 | *) ac_sed_conf_input=$configure_input;; | |
5048 | esac | |
b585a9fa | 5049 | |
81ecdfbb RW |
5050 | case $ac_tag in |
5051 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
5052 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
5053 | esac | |
5054 | ;; | |
b585a9fa EZ |
5055 | esac |
5056 | ||
81ecdfbb | 5057 | ac_dir=`$as_dirname -- "$ac_file" || |
b585a9fa EZ |
5058 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5059 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
5060 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
5061 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
5062 | $as_echo X"$ac_file" | | |
5063 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
5064 | s//\1/ | |
5065 | q | |
5066 | } | |
5067 | /^X\(\/\/\)[^/].*/{ | |
5068 | s//\1/ | |
5069 | q | |
5070 | } | |
5071 | /^X\(\/\/\)$/{ | |
5072 | s//\1/ | |
5073 | q | |
5074 | } | |
5075 | /^X\(\/\).*/{ | |
5076 | s//\1/ | |
5077 | q | |
5078 | } | |
5079 | s/.*/./; q'` | |
5080 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b585a9fa EZ |
5081 | ac_builddir=. |
5082 | ||
81ecdfbb RW |
5083 | case "$ac_dir" in |
5084 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
5085 | *) | |
5086 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
5087 | # A ".." for each directory in $ac_dir_suffix. | |
5088 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
5089 | case $ac_top_builddir_sub in | |
5090 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
5091 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
5092 | esac ;; | |
5093 | esac | |
5094 | ac_abs_top_builddir=$ac_pwd | |
5095 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
5096 | # for backward compatibility: | |
5097 | ac_top_builddir=$ac_top_build_prefix | |
b585a9fa EZ |
5098 | |
5099 | case $srcdir in | |
81ecdfbb | 5100 | .) # We are building in place. |
b585a9fa | 5101 | ac_srcdir=. |
81ecdfbb RW |
5102 | ac_top_srcdir=$ac_top_builddir_sub |
5103 | ac_abs_top_srcdir=$ac_pwd ;; | |
5104 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b585a9fa | 5105 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
5106 | ac_top_srcdir=$srcdir |
5107 | ac_abs_top_srcdir=$srcdir ;; | |
5108 | *) # Relative name. | |
5109 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
5110 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
5111 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b585a9fa | 5112 | esac |
81ecdfbb | 5113 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b585a9fa | 5114 | |
b585a9fa | 5115 | |
81ecdfbb RW |
5116 | case $ac_mode in |
5117 | :F) | |
5118 | # | |
5119 | # CONFIG_FILE | |
5120 | # | |
b585a9fa | 5121 | |
81ecdfbb | 5122 | _ACEOF |
b585a9fa | 5123 | |
81ecdfbb RW |
5124 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5125 | # If the template does not know about datarootdir, expand it. | |
5126 | # FIXME: This hack should be removed a few years after 2.60. | |
5127 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
5128 | ac_sed_dataroot=' | |
5129 | /datarootdir/ { | |
5130 | p | |
5131 | q | |
5132 | } | |
5133 | /@datadir@/p | |
5134 | /@docdir@/p | |
5135 | /@infodir@/p | |
5136 | /@localedir@/p | |
5137 | /@mandir@/p' | |
5138 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
5139 | *datarootdir*) ac_datarootdir_seen=yes;; | |
5140 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
5141 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
5142 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
5143 | _ACEOF | |
5144 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5145 | ac_datarootdir_hack=' | |
5146 | s&@datadir@&$datadir&g | |
5147 | s&@docdir@&$docdir&g | |
5148 | s&@infodir@&$infodir&g | |
5149 | s&@localedir@&$localedir&g | |
5150 | s&@mandir@&$mandir&g | |
5151 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
5152 | esac | |
b585a9fa | 5153 | _ACEOF |
81ecdfbb RW |
5154 | |
5155 | # Neutralize VPATH when `$srcdir' = `.'. | |
5156 | # Shell code in configure.ac might set extrasub. | |
5157 | # FIXME: do we really want to maintain this feature? | |
5158 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5159 | ac_sed_extra="$ac_vpsub | |
b585a9fa EZ |
5160 | $extrasub |
5161 | _ACEOF | |
81ecdfbb | 5162 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b585a9fa EZ |
5163 | :t |
5164 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
5165 | s|@configure_input@|$ac_sed_conf_input|;t t |
5166 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
5167 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
5168 | s&@srcdir@&$ac_srcdir&;t t | |
5169 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
5170 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
5171 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
5172 | s&@builddir@&$ac_builddir&;t t | |
5173 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
5174 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
5175 | $ac_datarootdir_hack | |
5176 | " | |
5177 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
5178 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
5179 | ||
5180 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
5181 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
5182 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
5183 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
5184 | which seems to be undefined. Please make sure it is defined." >&5 | |
5185 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
5186 | which seems to be undefined. Please make sure it is defined." >&2;} | |
5187 | ||
5188 | rm -f "$tmp/stdin" | |
5189 | case $ac_file in | |
5190 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
5191 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
5192 | esac \ | |
5193 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
5194 | ;; | |
5195 | :H) | |
5196 | # | |
5197 | # CONFIG_HEADER | |
5198 | # | |
b585a9fa | 5199 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
5200 | { |
5201 | $as_echo "/* $configure_input */" \ | |
5202 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
5203 | } >"$tmp/config.h" \ | |
5204 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
5205 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
5207 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
5208 | else | |
5209 | rm -f "$ac_file" | |
5210 | mv "$tmp/config.h" "$ac_file" \ | |
5211 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
5212 | fi | |
b585a9fa | 5213 | else |
81ecdfbb RW |
5214 | $as_echo "/* $configure_input */" \ |
5215 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
5216 | || as_fn_error "could not create -" "$LINENO" 5 | |
b585a9fa | 5217 | fi |
81ecdfbb | 5218 | ;; |
b585a9fa | 5219 | |
b585a9fa | 5220 | |
b585a9fa EZ |
5221 | esac |
5222 | ||
81ecdfbb | 5223 | done # for ac_tag |
b585a9fa | 5224 | |
b585a9fa | 5225 | |
81ecdfbb | 5226 | as_fn_exit 0 |
b585a9fa | 5227 | _ACEOF |
b585a9fa EZ |
5228 | ac_clean_files=$ac_clean_files_save |
5229 | ||
81ecdfbb RW |
5230 | test $ac_write_fail = 0 || |
5231 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
5232 | ||
b585a9fa EZ |
5233 | |
5234 | # configure is writing to config.log, and then calls config.status. | |
5235 | # config.status does its own redirection, appending to config.log. | |
5236 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
5237 | # by configure, so config.status won't be able to write to it; its | |
5238 | # output is simply discarded. So we exec the FD to /dev/null, | |
5239 | # effectively closing config.log, so it can be properly (re)opened and | |
5240 | # appended to by config.status. When coming back to configure, we | |
5241 | # need to make the FD available again. | |
5242 | if test "$no_create" != yes; then | |
5243 | ac_cs_success=: | |
5244 | ac_config_status_args= | |
5245 | test "$silent" = yes && | |
5246 | ac_config_status_args="$ac_config_status_args --quiet" | |
5247 | exec 5>/dev/null | |
5248 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
5249 | exec 5>>config.log | |
5250 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
5251 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
5252 | $ac_cs_success || as_fn_exit $? |
5253 | fi | |
5254 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
5255 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
5256 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
b585a9fa EZ |
5257 | fi |
5258 |