]>
Commit | Line | Data |
---|---|---|
a136b23d | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
cd9a469c | 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. | |
a136b23d | 8 | # |
a136b23d | 9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
cd9a469c | 11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
a136b23d | 14 | |
cd9a469c | 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 : | |
a136b23d | 18 | emulate sh |
19 | NULLCMD=: | |
cd9a469c | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
a136b23d | 21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 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 | |
a136b23d | 31 | fi |
a136b23d | 32 | |
cd9a469c | 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' | |
a136b23d | 50 | else |
cd9a469c | 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 | } | |
a136b23d | 79 | fi |
80 | ||
81 | ||
cd9a469c | 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 | |
a136b23d | 121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
cd9a469c | 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 | if (eval "$as_required") 2>/dev/null; then : | |
173 | as_have_required=yes | |
174 | else | |
175 | as_have_required=no | |
176 | fi | |
177 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
178 | ||
179 | else | |
180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
181 | as_found=false | |
182 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
a136b23d | 183 | do |
cd9a469c | 184 | IFS=$as_save_IFS |
185 | test -z "$as_dir" && as_dir=. | |
186 | as_found=: | |
187 | case $as_dir in #( | |
188 | /*) | |
189 | for as_base in sh bash ksh sh5; do | |
190 | # Try only shells that exist, to save several forks. | |
191 | as_shell=$as_dir/$as_base | |
192 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
193 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
194 | CONFIG_SHELL=$as_shell as_have_required=yes | |
195 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
196 | break 2 | |
197 | fi | |
198 | fi | |
199 | done;; | |
200 | esac | |
201 | as_found=false | |
202 | done | |
203 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
204 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
205 | CONFIG_SHELL=$SHELL as_have_required=yes | |
206 | fi; } | |
207 | IFS=$as_save_IFS | |
208 | ||
209 | ||
210 | if test "x$CONFIG_SHELL" != x; then : | |
211 | # We cannot yet assume a decent shell, so we have to provide a | |
212 | # neutralization value for shells without unset; and this also | |
213 | # works around shells that cannot unset nonexistent variables. | |
214 | BASH_ENV=/dev/null | |
215 | ENV=/dev/null | |
216 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
217 | export CONFIG_SHELL | |
218 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
219 | fi | |
220 | ||
221 | if test x$as_have_required = xno; then : | |
222 | $as_echo "$0: This script requires a shell more modern than all" | |
223 | $as_echo "$0: the shells that I found on your system." | |
224 | if test x${ZSH_VERSION+set} = xset ; then | |
225 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
226 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
a136b23d | 227 | else |
cd9a469c | 228 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
229 | $0: including any error possibly output before this | |
230 | $0: message. Then install a modern shell, or manually run | |
231 | $0: the script under such a shell if you do have one." | |
a136b23d | 232 | fi |
cd9a469c | 233 | exit 1 |
234 | fi | |
235 | fi | |
236 | fi | |
237 | SHELL=${CONFIG_SHELL-/bin/sh} | |
238 | export SHELL | |
239 | # Unset more variables known to interfere with behavior of common tools. | |
240 | CLICOLOR_FORCE= GREP_OPTIONS= | |
241 | unset CLICOLOR_FORCE GREP_OPTIONS | |
242 | ||
243 | ## --------------------- ## | |
244 | ## M4sh Shell Functions. ## | |
245 | ## --------------------- ## | |
246 | # as_fn_unset VAR | |
247 | # --------------- | |
248 | # Portably unset VAR. | |
249 | as_fn_unset () | |
250 | { | |
251 | { eval $1=; unset $1;} | |
252 | } | |
253 | as_unset=as_fn_unset | |
254 | ||
255 | # as_fn_set_status STATUS | |
256 | # ----------------------- | |
257 | # Set $? to STATUS, without forking. | |
258 | as_fn_set_status () | |
259 | { | |
260 | return $1 | |
261 | } # as_fn_set_status | |
262 | ||
263 | # as_fn_exit STATUS | |
264 | # ----------------- | |
265 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
266 | as_fn_exit () | |
267 | { | |
268 | set +e | |
269 | as_fn_set_status $1 | |
270 | exit $1 | |
271 | } # as_fn_exit | |
272 | ||
273 | # as_fn_mkdir_p | |
274 | # ------------- | |
275 | # Create "$as_dir" as a directory, including parents if necessary. | |
276 | as_fn_mkdir_p () | |
277 | { | |
278 | ||
279 | case $as_dir in #( | |
280 | -*) as_dir=./$as_dir;; | |
281 | esac | |
282 | test -d "$as_dir" || eval $as_mkdir_p || { | |
283 | as_dirs= | |
284 | while :; do | |
285 | case $as_dir in #( | |
286 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
287 | *) as_qdir=$as_dir;; | |
288 | esac | |
289 | as_dirs="'$as_qdir' $as_dirs" | |
290 | as_dir=`$as_dirname -- "$as_dir" || | |
291 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
292 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
293 | X"$as_dir" : 'X\(//\)$' \| \ | |
294 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
295 | $as_echo X"$as_dir" | | |
296 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
297 | s//\1/ | |
298 | q | |
299 | } | |
300 | /^X\(\/\/\)[^/].*/{ | |
301 | s//\1/ | |
302 | q | |
303 | } | |
304 | /^X\(\/\/\)$/{ | |
305 | s//\1/ | |
306 | q | |
307 | } | |
308 | /^X\(\/\).*/{ | |
309 | s//\1/ | |
310 | q | |
311 | } | |
312 | s/.*/./; q'` | |
313 | test -d "$as_dir" && break | |
314 | done | |
315 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
316 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
317 | ||
318 | ||
319 | } # as_fn_mkdir_p | |
320 | # as_fn_append VAR VALUE | |
321 | # ---------------------- | |
322 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
323 | # advantage of any shell optimizations that allow amortized linear growth over | |
324 | # repeated appends, instead of the typical quadratic growth present in naive | |
325 | # implementations. | |
326 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
327 | eval 'as_fn_append () | |
328 | { | |
329 | eval $1+=\$2 | |
330 | }' | |
331 | else | |
332 | as_fn_append () | |
333 | { | |
334 | eval $1=\$$1\$2 | |
335 | } | |
336 | fi # as_fn_append | |
337 | ||
338 | # as_fn_arith ARG... | |
339 | # ------------------ | |
340 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
341 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
342 | # must be portable across $(()) and expr. | |
343 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
344 | eval 'as_fn_arith () | |
345 | { | |
346 | as_val=$(( $* )) | |
347 | }' | |
348 | else | |
349 | as_fn_arith () | |
350 | { | |
351 | as_val=`expr "$@" || test $? -eq 1` | |
352 | } | |
353 | fi # as_fn_arith | |
354 | ||
355 | ||
356 | # as_fn_error ERROR [LINENO LOG_FD] | |
357 | # --------------------------------- | |
358 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
359 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
360 | # script with status $?, using 1 if that was 0. | |
361 | as_fn_error () | |
362 | { | |
363 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
364 | if test "$3"; then | |
365 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
366 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
367 | fi | |
368 | $as_echo "$as_me: error: $1" >&2 | |
369 | as_fn_exit $as_status | |
370 | } # as_fn_error | |
a136b23d | 371 | |
cd9a469c | 372 | if expr a : '\(a\)' >/dev/null 2>&1 && |
373 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
a136b23d | 374 | as_expr=expr |
375 | else | |
376 | as_expr=false | |
377 | fi | |
378 | ||
cd9a469c | 379 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
a136b23d | 380 | as_basename=basename |
381 | else | |
382 | as_basename=false | |
383 | fi | |
384 | ||
cd9a469c | 385 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
386 | as_dirname=dirname | |
387 | else | |
388 | as_dirname=false | |
389 | fi | |
a136b23d | 390 | |
cd9a469c | 391 | as_me=`$as_basename -- "$0" || |
a136b23d | 392 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
393 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 394 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
395 | $as_echo X/"$0" | | |
396 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
397 | s//\1/ | |
398 | q | |
399 | } | |
400 | /^X\/\(\/\/\)$/{ | |
401 | s//\1/ | |
402 | q | |
403 | } | |
404 | /^X\/\(\/\).*/{ | |
405 | s//\1/ | |
406 | q | |
407 | } | |
408 | s/.*/./; q'` | |
a136b23d | 409 | |
a136b23d | 410 | # Avoid depending upon Character Ranges. |
411 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
412 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
413 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
414 | as_cr_digits='0123456789' | |
415 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
416 | ||
a136b23d | 417 | |
cd9a469c | 418 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
419 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
420 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
421 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
422 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
423 | sed -n ' | |
424 | p | |
425 | /[$]LINENO/= | |
426 | ' <$as_myself | | |
a136b23d | 427 | sed ' |
cd9a469c | 428 | s/[$]LINENO.*/&-/ |
429 | t lineno | |
430 | b | |
431 | :lineno | |
a136b23d | 432 | N |
cd9a469c | 433 | :loop |
434 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
a136b23d | 435 | t loop |
cd9a469c | 436 | s/-\n.*// |
a136b23d | 437 | ' >$as_me.lineno && |
cd9a469c | 438 | chmod +x "$as_me.lineno" || |
439 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
a136b23d | 440 | |
441 | # Don't try to exec as it changes $[0], causing all sort of problems | |
442 | # (the dirname of $[0] is not the place where we might find the | |
cd9a469c | 443 | # original and so on. Autoconf is especially sensitive to this). |
444 | . "./$as_me.lineno" | |
a136b23d | 445 | # Exit status is that of the last command. |
446 | exit | |
447 | } | |
448 | ||
cd9a469c | 449 | ECHO_C= ECHO_N= ECHO_T= |
450 | case `echo -n x` in #((((( | |
451 | -n*) | |
452 | case `echo 'xy\c'` in | |
453 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
454 | xy) ECHO_C='\c';; | |
455 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
456 | ECHO_T=' ';; | |
457 | esac;; | |
458 | *) | |
459 | ECHO_N='-n';; | |
a136b23d | 460 | esac |
461 | ||
cd9a469c | 462 | rm -f conf$$ conf$$.exe conf$$.file |
463 | if test -d conf$$.dir; then | |
464 | rm -f conf$$.dir/conf$$.file | |
a136b23d | 465 | else |
cd9a469c | 466 | rm -f conf$$.dir |
467 | mkdir conf$$.dir 2>/dev/null | |
a136b23d | 468 | fi |
cd9a469c | 469 | if (echo >conf$$.file) 2>/dev/null; then |
470 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
a136b23d | 471 | as_ln_s='ln -s' |
cd9a469c | 472 | # ... but there are two gotchas: |
473 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
474 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
475 | # In both cases, we have to default to `cp -p'. | |
476 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
477 | as_ln_s='cp -p' | |
478 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
479 | as_ln_s=ln | |
480 | else | |
481 | as_ln_s='cp -p' | |
a136b23d | 482 | fi |
a136b23d | 483 | else |
484 | as_ln_s='cp -p' | |
485 | fi | |
cd9a469c | 486 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
487 | rmdir conf$$.dir 2>/dev/null | |
a136b23d | 488 | |
489 | if mkdir -p . 2>/dev/null; then | |
cd9a469c | 490 | as_mkdir_p='mkdir -p "$as_dir"' |
a136b23d | 491 | else |
492 | test -d ./-p && rmdir ./-p | |
493 | as_mkdir_p=false | |
494 | fi | |
495 | ||
cd9a469c | 496 | if test -x / >/dev/null 2>&1; then |
497 | as_test_x='test -x' | |
498 | else | |
499 | if ls -dL / >/dev/null 2>&1; then | |
500 | as_ls_L_option=L | |
501 | else | |
502 | as_ls_L_option= | |
503 | fi | |
504 | as_test_x=' | |
505 | eval sh -c '\'' | |
506 | if test -d "$1"; then | |
507 | test -d "$1/."; | |
508 | else | |
509 | case $1 in #( | |
510 | -*)set "./$1";; | |
511 | esac; | |
512 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
513 | ???[sx]*):;;*)false;;esac;fi | |
514 | '\'' sh | |
515 | ' | |
516 | fi | |
517 | as_executable_p=$as_test_x | |
a136b23d | 518 | |
519 | # Sed expression to map a string onto a valid CPP name. | |
520 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
521 | ||
522 | # Sed expression to map a string onto a valid variable name. | |
523 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
524 | ||
525 | ||
cd9a469c | 526 | exec 7<&0 </dev/null 6>&1 |
a136b23d | 527 | |
528 | # Name of the host. | |
529 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
530 | # so uname gets run too. | |
531 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
532 | ||
a136b23d | 533 | # |
534 | # Initializations. | |
535 | # | |
536 | ac_default_prefix=/usr/local | |
cd9a469c | 537 | ac_clean_files= |
a136b23d | 538 | ac_config_libobj_dir=. |
cd9a469c | 539 | LIBOBJS= |
a136b23d | 540 | cross_compiling=no |
541 | subdirs= | |
542 | MFLAGS= | |
543 | MAKEFLAGS= | |
a136b23d | 544 | |
545 | # Identity of this package. | |
546 | PACKAGE_NAME= | |
547 | PACKAGE_TARNAME= | |
548 | PACKAGE_VERSION= | |
549 | PACKAGE_STRING= | |
550 | PACKAGE_BUGREPORT= | |
cd9a469c | 551 | PACKAGE_URL= |
a136b23d | 552 | |
553 | ac_unique_file="Makefile.in" | |
cd9a469c | 554 | ac_subst_vars='LTLIBOBJS |
555 | LIBOBJS | |
556 | warn_cflags | |
557 | OBJEXT | |
558 | EXEEXT | |
559 | ac_ct_CC | |
560 | CPPFLAGS | |
561 | LDFLAGS | |
562 | CFLAGS | |
563 | CC | |
564 | ADA_CFLAGS | |
565 | EXTRA_GNATTOOLS | |
566 | TOOLS_TARGET_PAIRS | |
567 | default_gnattools_target | |
568 | LN_S | |
569 | target_noncanonical | |
570 | target_os | |
571 | target_vendor | |
572 | target_cpu | |
573 | target | |
574 | host_os | |
575 | host_vendor | |
576 | host_cpu | |
577 | host | |
578 | build_os | |
579 | build_vendor | |
580 | build_cpu | |
581 | build | |
582 | INSTALL_DATA | |
583 | INSTALL_SCRIPT | |
584 | INSTALL_PROGRAM | |
585 | MAINT | |
586 | target_alias | |
587 | host_alias | |
588 | build_alias | |
589 | LIBS | |
590 | ECHO_T | |
591 | ECHO_N | |
592 | ECHO_C | |
593 | DEFS | |
594 | mandir | |
595 | localedir | |
596 | libdir | |
597 | psdir | |
598 | pdfdir | |
599 | dvidir | |
600 | htmldir | |
601 | infodir | |
602 | docdir | |
603 | oldincludedir | |
604 | includedir | |
605 | localstatedir | |
606 | sharedstatedir | |
607 | sysconfdir | |
608 | datadir | |
609 | datarootdir | |
610 | libexecdir | |
611 | sbindir | |
612 | bindir | |
613 | program_transform_name | |
614 | prefix | |
615 | exec_prefix | |
616 | PACKAGE_URL | |
617 | PACKAGE_BUGREPORT | |
618 | PACKAGE_STRING | |
619 | PACKAGE_VERSION | |
620 | PACKAGE_TARNAME | |
621 | PACKAGE_NAME | |
622 | PATH_SEPARATOR | |
623 | SHELL' | |
a136b23d | 624 | ac_subst_files='' |
cd9a469c | 625 | ac_user_opts=' |
626 | enable_option_checking | |
627 | enable_maintainer_mode | |
628 | ' | |
629 | ac_precious_vars='build_alias | |
630 | host_alias | |
631 | target_alias | |
632 | CC | |
633 | CFLAGS | |
634 | LDFLAGS | |
635 | LIBS | |
636 | CPPFLAGS' | |
637 | ||
a136b23d | 638 | |
639 | # Initialize some variables set by options. | |
640 | ac_init_help= | |
641 | ac_init_version=false | |
cd9a469c | 642 | ac_unrecognized_opts= |
643 | ac_unrecognized_sep= | |
a136b23d | 644 | # The variables have the same names as the options, with |
645 | # dashes changed to underlines. | |
646 | cache_file=/dev/null | |
647 | exec_prefix=NONE | |
648 | no_create= | |
649 | no_recursion= | |
650 | prefix=NONE | |
651 | program_prefix=NONE | |
652 | program_suffix=NONE | |
653 | program_transform_name=s,x,x, | |
654 | silent= | |
655 | site= | |
656 | srcdir= | |
657 | verbose= | |
658 | x_includes=NONE | |
659 | x_libraries=NONE | |
660 | ||
661 | # Installation directory options. | |
662 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
663 | # and all the variables that are supposed to be based on exec_prefix | |
664 | # by default will actually change. | |
665 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
cd9a469c | 666 | # (The list follows the same order as the GNU Coding Standards.) |
a136b23d | 667 | bindir='${exec_prefix}/bin' |
668 | sbindir='${exec_prefix}/sbin' | |
669 | libexecdir='${exec_prefix}/libexec' | |
cd9a469c | 670 | datarootdir='${prefix}/share' |
671 | datadir='${datarootdir}' | |
a136b23d | 672 | sysconfdir='${prefix}/etc' |
673 | sharedstatedir='${prefix}/com' | |
674 | localstatedir='${prefix}/var' | |
a136b23d | 675 | includedir='${prefix}/include' |
676 | oldincludedir='/usr/include' | |
cd9a469c | 677 | docdir='${datarootdir}/doc/${PACKAGE}' |
678 | infodir='${datarootdir}/info' | |
679 | htmldir='${docdir}' | |
680 | dvidir='${docdir}' | |
681 | pdfdir='${docdir}' | |
682 | psdir='${docdir}' | |
683 | libdir='${exec_prefix}/lib' | |
684 | localedir='${datarootdir}/locale' | |
685 | mandir='${datarootdir}/man' | |
a136b23d | 686 | |
687 | ac_prev= | |
cd9a469c | 688 | ac_dashdash= |
a136b23d | 689 | for ac_option |
690 | do | |
691 | # If the previous option needs an argument, assign it. | |
692 | if test -n "$ac_prev"; then | |
cd9a469c | 693 | eval $ac_prev=\$ac_option |
a136b23d | 694 | ac_prev= |
695 | continue | |
696 | fi | |
697 | ||
cd9a469c | 698 | case $ac_option in |
699 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
700 | *) ac_optarg=yes ;; | |
701 | esac | |
a136b23d | 702 | |
703 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
704 | ||
cd9a469c | 705 | case $ac_dashdash$ac_option in |
706 | --) | |
707 | ac_dashdash=yes ;; | |
a136b23d | 708 | |
709 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
710 | ac_prev=bindir ;; | |
711 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
712 | bindir=$ac_optarg ;; | |
713 | ||
714 | -build | --build | --buil | --bui | --bu) | |
715 | ac_prev=build_alias ;; | |
716 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
717 | build_alias=$ac_optarg ;; | |
718 | ||
719 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
720 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
721 | ac_prev=cache_file ;; | |
722 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
723 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
724 | cache_file=$ac_optarg ;; | |
725 | ||
726 | --config-cache | -C) | |
727 | cache_file=config.cache ;; | |
728 | ||
cd9a469c | 729 | -datadir | --datadir | --datadi | --datad) |
a136b23d | 730 | ac_prev=datadir ;; |
cd9a469c | 731 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
a136b23d | 732 | datadir=$ac_optarg ;; |
733 | ||
cd9a469c | 734 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
735 | | --dataroo | --dataro | --datar) | |
736 | ac_prev=datarootdir ;; | |
737 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
738 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
739 | datarootdir=$ac_optarg ;; | |
740 | ||
a136b23d | 741 | -disable-* | --disable-*) |
cd9a469c | 742 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a136b23d | 743 | # Reject names that are not valid shell variable names. |
cd9a469c | 744 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
745 | as_fn_error "invalid feature name: $ac_useropt" | |
746 | ac_useropt_orig=$ac_useropt | |
747 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
748 | case $ac_user_opts in | |
749 | *" | |
750 | "enable_$ac_useropt" | |
751 | "*) ;; | |
752 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
753 | ac_unrecognized_sep=', ';; | |
754 | esac | |
755 | eval enable_$ac_useropt=no ;; | |
756 | ||
757 | -docdir | --docdir | --docdi | --doc | --do) | |
758 | ac_prev=docdir ;; | |
759 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
760 | docdir=$ac_optarg ;; | |
761 | ||
762 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
763 | ac_prev=dvidir ;; | |
764 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
765 | dvidir=$ac_optarg ;; | |
a136b23d | 766 | |
767 | -enable-* | --enable-*) | |
cd9a469c | 768 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a136b23d | 769 | # Reject names that are not valid shell variable names. |
cd9a469c | 770 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
771 | as_fn_error "invalid feature name: $ac_useropt" | |
772 | ac_useropt_orig=$ac_useropt | |
773 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
774 | case $ac_user_opts in | |
775 | *" | |
776 | "enable_$ac_useropt" | |
777 | "*) ;; | |
778 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
779 | ac_unrecognized_sep=', ';; | |
a136b23d | 780 | esac |
cd9a469c | 781 | eval enable_$ac_useropt=\$ac_optarg ;; |
a136b23d | 782 | |
783 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
784 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
785 | | --exec | --exe | --ex) | |
786 | ac_prev=exec_prefix ;; | |
787 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
788 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
789 | | --exec=* | --exe=* | --ex=*) | |
790 | exec_prefix=$ac_optarg ;; | |
791 | ||
792 | -gas | --gas | --ga | --g) | |
793 | # Obsolete; use --with-gas. | |
794 | with_gas=yes ;; | |
795 | ||
796 | -help | --help | --hel | --he | -h) | |
797 | ac_init_help=long ;; | |
798 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
799 | ac_init_help=recursive ;; | |
800 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
801 | ac_init_help=short ;; | |
802 | ||
803 | -host | --host | --hos | --ho) | |
804 | ac_prev=host_alias ;; | |
805 | -host=* | --host=* | --hos=* | --ho=*) | |
806 | host_alias=$ac_optarg ;; | |
807 | ||
cd9a469c | 808 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
809 | ac_prev=htmldir ;; | |
810 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
811 | | --ht=*) | |
812 | htmldir=$ac_optarg ;; | |
813 | ||
a136b23d | 814 | -includedir | --includedir | --includedi | --included | --include \ |
815 | | --includ | --inclu | --incl | --inc) | |
816 | ac_prev=includedir ;; | |
817 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
818 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
819 | includedir=$ac_optarg ;; | |
820 | ||
821 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
822 | ac_prev=infodir ;; | |
823 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
824 | infodir=$ac_optarg ;; | |
825 | ||
826 | -libdir | --libdir | --libdi | --libd) | |
827 | ac_prev=libdir ;; | |
828 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
829 | libdir=$ac_optarg ;; | |
830 | ||
831 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
832 | | --libexe | --libex | --libe) | |
833 | ac_prev=libexecdir ;; | |
834 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
835 | | --libexe=* | --libex=* | --libe=*) | |
836 | libexecdir=$ac_optarg ;; | |
837 | ||
cd9a469c | 838 | -localedir | --localedir | --localedi | --localed | --locale) |
839 | ac_prev=localedir ;; | |
840 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
841 | localedir=$ac_optarg ;; | |
842 | ||
a136b23d | 843 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
cd9a469c | 844 | | --localstate | --localstat | --localsta | --localst | --locals) |
a136b23d | 845 | ac_prev=localstatedir ;; |
846 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
cd9a469c | 847 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
a136b23d | 848 | localstatedir=$ac_optarg ;; |
849 | ||
850 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
851 | ac_prev=mandir ;; | |
852 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
853 | mandir=$ac_optarg ;; | |
854 | ||
855 | -nfp | --nfp | --nf) | |
856 | # Obsolete; use --without-fp. | |
857 | with_fp=no ;; | |
858 | ||
859 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
860 | | --no-cr | --no-c | -n) | |
861 | no_create=yes ;; | |
862 | ||
863 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
864 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
865 | no_recursion=yes ;; | |
866 | ||
867 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
868 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
869 | | --oldin | --oldi | --old | --ol | --o) | |
870 | ac_prev=oldincludedir ;; | |
871 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
872 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
873 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
874 | oldincludedir=$ac_optarg ;; | |
875 | ||
876 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
877 | ac_prev=prefix ;; | |
878 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
879 | prefix=$ac_optarg ;; | |
880 | ||
881 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
882 | | --program-pre | --program-pr | --program-p) | |
883 | ac_prev=program_prefix ;; | |
884 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
885 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
886 | program_prefix=$ac_optarg ;; | |
887 | ||
888 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
889 | | --program-suf | --program-su | --program-s) | |
890 | ac_prev=program_suffix ;; | |
891 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
892 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
893 | program_suffix=$ac_optarg ;; | |
894 | ||
895 | -program-transform-name | --program-transform-name \ | |
896 | | --program-transform-nam | --program-transform-na \ | |
897 | | --program-transform-n | --program-transform- \ | |
898 | | --program-transform | --program-transfor \ | |
899 | | --program-transfo | --program-transf \ | |
900 | | --program-trans | --program-tran \ | |
901 | | --progr-tra | --program-tr | --program-t) | |
902 | ac_prev=program_transform_name ;; | |
903 | -program-transform-name=* | --program-transform-name=* \ | |
904 | | --program-transform-nam=* | --program-transform-na=* \ | |
905 | | --program-transform-n=* | --program-transform-=* \ | |
906 | | --program-transform=* | --program-transfor=* \ | |
907 | | --program-transfo=* | --program-transf=* \ | |
908 | | --program-trans=* | --program-tran=* \ | |
909 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
910 | program_transform_name=$ac_optarg ;; | |
911 | ||
cd9a469c | 912 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
913 | ac_prev=pdfdir ;; | |
914 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
915 | pdfdir=$ac_optarg ;; | |
916 | ||
917 | -psdir | --psdir | --psdi | --psd | --ps) | |
918 | ac_prev=psdir ;; | |
919 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
920 | psdir=$ac_optarg ;; | |
921 | ||
a136b23d | 922 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
923 | | -silent | --silent | --silen | --sile | --sil) | |
924 | silent=yes ;; | |
925 | ||
926 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
927 | ac_prev=sbindir ;; | |
928 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
929 | | --sbi=* | --sb=*) | |
930 | sbindir=$ac_optarg ;; | |
931 | ||
932 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
933 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
934 | | --sharedst | --shareds | --shared | --share | --shar \ | |
935 | | --sha | --sh) | |
936 | ac_prev=sharedstatedir ;; | |
937 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
938 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
939 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
940 | | --sha=* | --sh=*) | |
941 | sharedstatedir=$ac_optarg ;; | |
942 | ||
943 | -site | --site | --sit) | |
944 | ac_prev=site ;; | |
945 | -site=* | --site=* | --sit=*) | |
946 | site=$ac_optarg ;; | |
947 | ||
948 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
949 | ac_prev=srcdir ;; | |
950 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
951 | srcdir=$ac_optarg ;; | |
952 | ||
953 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
954 | | --syscon | --sysco | --sysc | --sys | --sy) | |
955 | ac_prev=sysconfdir ;; | |
956 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
957 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
958 | sysconfdir=$ac_optarg ;; | |
959 | ||
960 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
961 | ac_prev=target_alias ;; | |
962 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
963 | target_alias=$ac_optarg ;; | |
964 | ||
965 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
966 | verbose=yes ;; | |
967 | ||
968 | -version | --version | --versio | --versi | --vers | -V) | |
969 | ac_init_version=: ;; | |
970 | ||
971 | -with-* | --with-*) | |
cd9a469c | 972 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a136b23d | 973 | # Reject names that are not valid shell variable names. |
cd9a469c | 974 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
975 | as_fn_error "invalid package name: $ac_useropt" | |
976 | ac_useropt_orig=$ac_useropt | |
977 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
978 | case $ac_user_opts in | |
979 | *" | |
980 | "with_$ac_useropt" | |
981 | "*) ;; | |
982 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
983 | ac_unrecognized_sep=', ';; | |
a136b23d | 984 | esac |
cd9a469c | 985 | eval with_$ac_useropt=\$ac_optarg ;; |
a136b23d | 986 | |
987 | -without-* | --without-*) | |
cd9a469c | 988 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a136b23d | 989 | # Reject names that are not valid shell variable names. |
cd9a469c | 990 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
991 | as_fn_error "invalid package name: $ac_useropt" | |
992 | ac_useropt_orig=$ac_useropt | |
993 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
994 | case $ac_user_opts in | |
995 | *" | |
996 | "with_$ac_useropt" | |
997 | "*) ;; | |
998 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
999 | ac_unrecognized_sep=', ';; | |
1000 | esac | |
1001 | eval with_$ac_useropt=no ;; | |
a136b23d | 1002 | |
1003 | --x) | |
1004 | # Obsolete; use --with-x. | |
1005 | with_x=yes ;; | |
1006 | ||
1007 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1008 | | --x-incl | --x-inc | --x-in | --x-i) | |
1009 | ac_prev=x_includes ;; | |
1010 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1011 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1012 | x_includes=$ac_optarg ;; | |
1013 | ||
1014 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1015 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1016 | ac_prev=x_libraries ;; | |
1017 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1018 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1019 | x_libraries=$ac_optarg ;; | |
1020 | ||
cd9a469c | 1021 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1022 | Try \`$0 --help' for more information." | |
a136b23d | 1023 | ;; |
1024 | ||
1025 | *=*) | |
1026 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1027 | # Reject names that are not valid shell variable names. | |
cd9a469c | 1028 | case $ac_envvar in #( |
1029 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1030 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1031 | esac | |
1032 | eval $ac_envvar=\$ac_optarg | |
a136b23d | 1033 | export $ac_envvar ;; |
1034 | ||
1035 | *) | |
1036 | # FIXME: should be removed in autoconf 3.0. | |
cd9a469c | 1037 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
a136b23d | 1038 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
cd9a469c | 1039 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
a136b23d | 1040 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1041 | ;; | |
1042 | ||
1043 | esac | |
1044 | done | |
1045 | ||
1046 | if test -n "$ac_prev"; then | |
1047 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
cd9a469c | 1048 | as_fn_error "missing argument to $ac_option" |
a136b23d | 1049 | fi |
1050 | ||
cd9a469c | 1051 | if test -n "$ac_unrecognized_opts"; then |
1052 | case $enable_option_checking in | |
1053 | no) ;; | |
1054 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1055 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
a136b23d | 1056 | esac |
cd9a469c | 1057 | fi |
a136b23d | 1058 | |
cd9a469c | 1059 | # Check all directory arguments for consistency. |
1060 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1061 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1062 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1063 | libdir localedir mandir | |
a136b23d | 1064 | do |
cd9a469c | 1065 | eval ac_val=\$$ac_var |
1066 | # Remove trailing slashes. | |
1067 | case $ac_val in | |
1068 | */ ) | |
1069 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1070 | eval $ac_var=\$ac_val;; | |
1071 | esac | |
1072 | # Be sure to have absolute directory names. | |
a136b23d | 1073 | case $ac_val in |
cd9a469c | 1074 | [\\/$]* | ?:[\\/]* ) continue;; |
1075 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a136b23d | 1076 | esac |
cd9a469c | 1077 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
a136b23d | 1078 | done |
1079 | ||
1080 | # There might be people who depend on the old broken behavior: `$host' | |
1081 | # used to hold the argument of --host etc. | |
1082 | # FIXME: To remove some day. | |
1083 | build=$build_alias | |
1084 | host=$host_alias | |
1085 | target=$target_alias | |
1086 | ||
1087 | # FIXME: To remove some day. | |
1088 | if test "x$host_alias" != x; then | |
1089 | if test "x$build_alias" = x; then | |
1090 | cross_compiling=maybe | |
cd9a469c | 1091 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
a136b23d | 1092 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1093 | elif test "x$build_alias" != "x$host_alias"; then | |
1094 | cross_compiling=yes | |
1095 | fi | |
1096 | fi | |
1097 | ||
1098 | ac_tool_prefix= | |
1099 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1100 | ||
1101 | test "$silent" = yes && exec 6>/dev/null | |
1102 | ||
1103 | ||
cd9a469c | 1104 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1105 | ac_ls_di=`ls -di .` && | |
1106 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1107 | as_fn_error "working directory cannot be determined" | |
1108 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1109 | as_fn_error "pwd does not report name of working directory" | |
1110 | ||
1111 | ||
a136b23d | 1112 | # Find the source files, if location was not specified. |
1113 | if test -z "$srcdir"; then | |
1114 | ac_srcdir_defaulted=yes | |
cd9a469c | 1115 | # Try the directory containing this script, then the parent directory. |
1116 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1117 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1118 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1119 | X"$as_myself" : 'X\(//\)$' \| \ | |
1120 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1121 | $as_echo X"$as_myself" | | |
1122 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1123 | s//\1/ | |
1124 | q | |
1125 | } | |
1126 | /^X\(\/\/\)[^/].*/{ | |
1127 | s//\1/ | |
1128 | q | |
1129 | } | |
1130 | /^X\(\/\/\)$/{ | |
1131 | s//\1/ | |
1132 | q | |
1133 | } | |
1134 | /^X\(\/\).*/{ | |
1135 | s//\1/ | |
1136 | q | |
1137 | } | |
1138 | s/.*/./; q'` | |
a136b23d | 1139 | srcdir=$ac_confdir |
cd9a469c | 1140 | if test ! -r "$srcdir/$ac_unique_file"; then |
a136b23d | 1141 | srcdir=.. |
1142 | fi | |
1143 | else | |
1144 | ac_srcdir_defaulted=no | |
1145 | fi | |
cd9a469c | 1146 | if test ! -r "$srcdir/$ac_unique_file"; then |
1147 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1148 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1149 | fi | |
1150 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1151 | ac_abs_confdir=`( | |
1152 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1153 | pwd)` | |
1154 | # When building in place, set srcdir=. | |
1155 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1156 | srcdir=. | |
1157 | fi | |
1158 | # Remove unnecessary trailing slashes from srcdir. | |
1159 | # Double slashes in file names in object file debugging info | |
1160 | # mess up M-x gdb in Emacs. | |
1161 | case $srcdir in | |
1162 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1163 | esac | |
1164 | for ac_var in $ac_precious_vars; do | |
1165 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1166 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1167 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1168 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1169 | done | |
a136b23d | 1170 | |
1171 | # | |
1172 | # Report the --help message. | |
1173 | # | |
1174 | if test "$ac_init_help" = "long"; then | |
1175 | # Omit some internal or obsolete options to make the list less imposing. | |
1176 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1177 | cat <<_ACEOF | |
1178 | \`configure' configures this package to adapt to many kinds of systems. | |
1179 | ||
1180 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1181 | ||
1182 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1183 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1184 | ||
1185 | Defaults for the options are specified in brackets. | |
1186 | ||
1187 | Configuration: | |
1188 | -h, --help display this help and exit | |
1189 | --help=short display options specific to this package | |
1190 | --help=recursive display the short help of all the included packages | |
1191 | -V, --version display version information and exit | |
1192 | -q, --quiet, --silent do not print \`checking...' messages | |
1193 | --cache-file=FILE cache test results in FILE [disabled] | |
1194 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1195 | -n, --no-create do not create output files | |
1196 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1197 | ||
a136b23d | 1198 | Installation directories: |
1199 | --prefix=PREFIX install architecture-independent files in PREFIX | |
cd9a469c | 1200 | [$ac_default_prefix] |
a136b23d | 1201 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
cd9a469c | 1202 | [PREFIX] |
a136b23d | 1203 | |
1204 | By default, \`make install' will install all the files in | |
1205 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1206 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1207 | for instance \`--prefix=\$HOME'. | |
1208 | ||
1209 | For better control, use the options below. | |
1210 | ||
1211 | Fine tuning of the installation directories: | |
cd9a469c | 1212 | --bindir=DIR user executables [EPREFIX/bin] |
1213 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1214 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1215 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1216 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1217 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1218 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1219 | --includedir=DIR C header files [PREFIX/include] | |
1220 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1221 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1222 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1223 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1224 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1225 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1226 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1227 | --htmldir=DIR html documentation [DOCDIR] | |
1228 | --dvidir=DIR dvi documentation [DOCDIR] | |
1229 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1230 | --psdir=DIR ps documentation [DOCDIR] | |
a136b23d | 1231 | _ACEOF |
1232 | ||
1233 | cat <<\_ACEOF | |
1234 | ||
1235 | System types: | |
1236 | --build=BUILD configure for building on BUILD [guessed] | |
1237 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1238 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1239 | _ACEOF | |
1240 | fi | |
1241 | ||
1242 | if test -n "$ac_init_help"; then | |
1243 | ||
1244 | cat <<\_ACEOF | |
1245 | ||
1246 | Optional Features: | |
cd9a469c | 1247 | --disable-option-checking ignore unrecognized --enable/--with options |
a136b23d | 1248 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1249 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1250 | --enable-maintainer-mode | |
1251 | enable make rules and dependencies not useful (and | |
1252 | sometimes confusing) to the casual installer | |
1253 | ||
9a8d280d | 1254 | Some influential environment variables: |
1255 | CC C compiler command | |
1256 | CFLAGS C compiler flags | |
1257 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1258 | nonstandard directory <lib dir> | |
cd9a469c | 1259 | LIBS libraries to pass to the linker, e.g. -l<library> |
1260 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1261 | you have headers in a nonstandard directory <include dir> | |
9a8d280d | 1262 | |
1263 | Use these variables to override the choices made by `configure' or to help | |
1264 | it to find libraries and programs with nonstandard names/locations. | |
1265 | ||
cd9a469c | 1266 | Report bugs to the package provider. |
a136b23d | 1267 | _ACEOF |
cd9a469c | 1268 | ac_status=$? |
a136b23d | 1269 | fi |
1270 | ||
1271 | if test "$ac_init_help" = "recursive"; then | |
1272 | # If there are subdirs, report their specific --help. | |
a136b23d | 1273 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
cd9a469c | 1274 | test -d "$ac_dir" || |
1275 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1276 | continue | |
a136b23d | 1277 | ac_builddir=. |
1278 | ||
cd9a469c | 1279 | case "$ac_dir" in |
1280 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1281 | *) | |
1282 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1283 | # A ".." for each directory in $ac_dir_suffix. | |
1284 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1285 | case $ac_top_builddir_sub in | |
1286 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1287 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1288 | esac ;; | |
1289 | esac | |
1290 | ac_abs_top_builddir=$ac_pwd | |
1291 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1292 | # for backward compatibility: | |
1293 | ac_top_builddir=$ac_top_build_prefix | |
a136b23d | 1294 | |
1295 | case $srcdir in | |
cd9a469c | 1296 | .) # We are building in place. |
a136b23d | 1297 | ac_srcdir=. |
cd9a469c | 1298 | ac_top_srcdir=$ac_top_builddir_sub |
1299 | ac_abs_top_srcdir=$ac_pwd ;; | |
1300 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
a136b23d | 1301 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 1302 | ac_top_srcdir=$srcdir |
1303 | ac_abs_top_srcdir=$srcdir ;; | |
1304 | *) # Relative name. | |
1305 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1306 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1307 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
a136b23d | 1308 | esac |
cd9a469c | 1309 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1310 | ||
1311 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1312 | # Check for guested configure. | |
1313 | if test -f "$ac_srcdir/configure.gnu"; then | |
1314 | echo && | |
1315 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1316 | elif test -f "$ac_srcdir/configure"; then | |
1317 | echo && | |
1318 | $SHELL "$ac_srcdir/configure" --help=recursive | |
a136b23d | 1319 | else |
cd9a469c | 1320 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1321 | fi || ac_status=$? | |
1322 | cd "$ac_pwd" || { ac_status=$?; break; } | |
a136b23d | 1323 | done |
1324 | fi | |
1325 | ||
cd9a469c | 1326 | test -n "$ac_init_help" && exit $ac_status |
a136b23d | 1327 | if $ac_init_version; then |
1328 | cat <<\_ACEOF | |
cd9a469c | 1329 | configure |
1330 | generated by GNU Autoconf 2.64 | |
a136b23d | 1331 | |
cd9a469c | 1332 | Copyright (C) 2009 Free Software Foundation, Inc. |
a136b23d | 1333 | This configure script is free software; the Free Software Foundation |
1334 | gives unlimited permission to copy, distribute and modify it. | |
1335 | _ACEOF | |
cd9a469c | 1336 | exit |
a136b23d | 1337 | fi |
cd9a469c | 1338 | |
1339 | ## ------------------------ ## | |
1340 | ## Autoconf initialization. ## | |
1341 | ## ------------------------ ## | |
1342 | ||
1343 | # ac_fn_c_try_compile LINENO | |
1344 | # -------------------------- | |
1345 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1346 | ac_fn_c_try_compile () | |
1347 | { | |
1348 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1349 | rm -f conftest.$ac_objext | |
1350 | if { { ac_try="$ac_compile" | |
1351 | case "(($ac_try" in | |
1352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1353 | *) ac_try_echo=$ac_try;; | |
1354 | esac | |
1355 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1356 | $as_echo "$ac_try_echo"; } >&5 | |
1357 | (eval "$ac_compile") 2>conftest.err | |
1358 | ac_status=$? | |
1359 | if test -s conftest.err; then | |
1360 | grep -v '^ *+' conftest.err >conftest.er1 | |
1361 | cat conftest.er1 >&5 | |
1362 | mv -f conftest.er1 conftest.err | |
1363 | fi | |
1364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1365 | test $ac_status = 0; } && { | |
1366 | test -z "$ac_c_werror_flag" || | |
1367 | test ! -s conftest.err | |
1368 | } && test -s conftest.$ac_objext; then : | |
1369 | ac_retval=0 | |
1370 | else | |
1371 | $as_echo "$as_me: failed program was:" >&5 | |
1372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1373 | ||
1374 | ac_retval=1 | |
1375 | fi | |
1376 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1377 | return $ac_retval | |
1378 | ||
1379 | } # ac_fn_c_try_compile | |
1380 | cat >config.log <<_ACEOF | |
a136b23d | 1381 | This file contains any messages produced by compilers while |
1382 | running configure, to aid debugging if configure makes a mistake. | |
1383 | ||
1384 | It was created by $as_me, which was | |
cd9a469c | 1385 | generated by GNU Autoconf 2.64. Invocation command line was |
a136b23d | 1386 | |
1387 | $ $0 $@ | |
1388 | ||
1389 | _ACEOF | |
cd9a469c | 1390 | exec 5>>config.log |
a136b23d | 1391 | { |
1392 | cat <<_ASUNAME | |
1393 | ## --------- ## | |
1394 | ## Platform. ## | |
1395 | ## --------- ## | |
1396 | ||
1397 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1398 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1399 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1400 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1401 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1402 | ||
1403 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1404 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1405 | ||
1406 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1407 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1408 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
cd9a469c | 1409 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
a136b23d | 1410 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1411 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1412 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1413 | ||
1414 | _ASUNAME | |
1415 | ||
1416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1417 | for as_dir in $PATH | |
1418 | do | |
1419 | IFS=$as_save_IFS | |
1420 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 1421 | $as_echo "PATH: $as_dir" |
1422 | done | |
1423 | IFS=$as_save_IFS | |
a136b23d | 1424 | |
1425 | } >&5 | |
1426 | ||
1427 | cat >&5 <<_ACEOF | |
1428 | ||
1429 | ||
1430 | ## ----------- ## | |
1431 | ## Core tests. ## | |
1432 | ## ----------- ## | |
1433 | ||
1434 | _ACEOF | |
1435 | ||
1436 | ||
1437 | # Keep a trace of the command line. | |
1438 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1439 | # Strip out --silent because we don't want to record it for future runs. | |
1440 | # Also quote any args containing shell meta-characters. | |
1441 | # Make two passes to allow for proper duplicate-argument suppression. | |
1442 | ac_configure_args= | |
1443 | ac_configure_args0= | |
1444 | ac_configure_args1= | |
a136b23d | 1445 | ac_must_keep_next=false |
1446 | for ac_pass in 1 2 | |
1447 | do | |
1448 | for ac_arg | |
1449 | do | |
1450 | case $ac_arg in | |
1451 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1452 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1453 | | -silent | --silent | --silen | --sile | --sil) | |
1454 | continue ;; | |
cd9a469c | 1455 | *\'*) |
1456 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
a136b23d | 1457 | esac |
1458 | case $ac_pass in | |
cd9a469c | 1459 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
a136b23d | 1460 | 2) |
cd9a469c | 1461 | as_fn_append ac_configure_args1 " '$ac_arg'" |
a136b23d | 1462 | if test $ac_must_keep_next = true; then |
1463 | ac_must_keep_next=false # Got value, back to normal. | |
1464 | else | |
1465 | case $ac_arg in | |
1466 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1467 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1468 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1469 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1470 | case "$ac_configure_args0 " in | |
1471 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1472 | esac | |
1473 | ;; | |
1474 | -* ) ac_must_keep_next=true ;; | |
1475 | esac | |
1476 | fi | |
cd9a469c | 1477 | as_fn_append ac_configure_args " '$ac_arg'" |
a136b23d | 1478 | ;; |
1479 | esac | |
1480 | done | |
1481 | done | |
cd9a469c | 1482 | { ac_configure_args0=; unset ac_configure_args0;} |
1483 | { ac_configure_args1=; unset ac_configure_args1;} | |
a136b23d | 1484 | |
1485 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1486 | # config.log. We remove comments because anyway the quotes in there | |
1487 | # would cause problems or look ugly. | |
cd9a469c | 1488 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1489 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
a136b23d | 1490 | trap 'exit_status=$? |
1491 | # Save into config.log some information that might help in debugging. | |
1492 | { | |
1493 | echo | |
1494 | ||
1495 | cat <<\_ASBOX | |
1496 | ## ---------------- ## | |
1497 | ## Cache variables. ## | |
1498 | ## ---------------- ## | |
1499 | _ASBOX | |
1500 | echo | |
1501 | # The following way of writing the cache mishandles newlines in values, | |
cd9a469c | 1502 | ( |
1503 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1504 | eval ac_val=\$$ac_var | |
1505 | case $ac_val in #( | |
1506 | *${as_nl}*) | |
1507 | case $ac_var in #( | |
1508 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1509 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1510 | esac | |
1511 | case $ac_var in #( | |
1512 | _ | IFS | as_nl) ;; #( | |
1513 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1514 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1515 | esac ;; | |
1516 | esac | |
1517 | done | |
a136b23d | 1518 | (set) 2>&1 | |
cd9a469c | 1519 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1520 | *${as_nl}ac_space=\ *) | |
a136b23d | 1521 | sed -n \ |
cd9a469c | 1522 | "s/'\''/'\''\\\\'\'''\''/g; |
1523 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1524 | ;; #( | |
a136b23d | 1525 | *) |
cd9a469c | 1526 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
a136b23d | 1527 | ;; |
cd9a469c | 1528 | esac | |
1529 | sort | |
1530 | ) | |
a136b23d | 1531 | echo |
1532 | ||
1533 | cat <<\_ASBOX | |
1534 | ## ----------------- ## | |
1535 | ## Output variables. ## | |
1536 | ## ----------------- ## | |
1537 | _ASBOX | |
1538 | echo | |
1539 | for ac_var in $ac_subst_vars | |
1540 | do | |
cd9a469c | 1541 | eval ac_val=\$$ac_var |
1542 | case $ac_val in | |
1543 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1544 | esac | |
1545 | $as_echo "$ac_var='\''$ac_val'\''" | |
a136b23d | 1546 | done | sort |
1547 | echo | |
1548 | ||
1549 | if test -n "$ac_subst_files"; then | |
1550 | cat <<\_ASBOX | |
cd9a469c | 1551 | ## ------------------- ## |
1552 | ## File substitutions. ## | |
1553 | ## ------------------- ## | |
a136b23d | 1554 | _ASBOX |
1555 | echo | |
1556 | for ac_var in $ac_subst_files | |
1557 | do | |
cd9a469c | 1558 | eval ac_val=\$$ac_var |
1559 | case $ac_val in | |
1560 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1561 | esac | |
1562 | $as_echo "$ac_var='\''$ac_val'\''" | |
a136b23d | 1563 | done | sort |
1564 | echo | |
1565 | fi | |
1566 | ||
1567 | if test -s confdefs.h; then | |
1568 | cat <<\_ASBOX | |
1569 | ## ----------- ## | |
1570 | ## confdefs.h. ## | |
1571 | ## ----------- ## | |
1572 | _ASBOX | |
1573 | echo | |
cd9a469c | 1574 | cat confdefs.h |
a136b23d | 1575 | echo |
1576 | fi | |
1577 | test "$ac_signal" != 0 && | |
cd9a469c | 1578 | $as_echo "$as_me: caught signal $ac_signal" |
1579 | $as_echo "$as_me: exit $exit_status" | |
a136b23d | 1580 | } >&5 |
cd9a469c | 1581 | rm -f core *.core core.conftest.* && |
1582 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
a136b23d | 1583 | exit $exit_status |
cd9a469c | 1584 | ' 0 |
a136b23d | 1585 | for ac_signal in 1 2 13 15; do |
cd9a469c | 1586 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
a136b23d | 1587 | done |
1588 | ac_signal=0 | |
1589 | ||
1590 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
cd9a469c | 1591 | rm -f -r conftest* confdefs.h |
1592 | ||
1593 | $as_echo "/* confdefs.h */" > confdefs.h | |
a136b23d | 1594 | |
1595 | # Predefined preprocessor variables. | |
1596 | ||
1597 | cat >>confdefs.h <<_ACEOF | |
1598 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1599 | _ACEOF | |
1600 | ||
a136b23d | 1601 | cat >>confdefs.h <<_ACEOF |
1602 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1603 | _ACEOF | |
1604 | ||
a136b23d | 1605 | cat >>confdefs.h <<_ACEOF |
1606 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1607 | _ACEOF | |
1608 | ||
a136b23d | 1609 | cat >>confdefs.h <<_ACEOF |
1610 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1611 | _ACEOF | |
1612 | ||
a136b23d | 1613 | cat >>confdefs.h <<_ACEOF |
1614 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1615 | _ACEOF | |
1616 | ||
cd9a469c | 1617 | cat >>confdefs.h <<_ACEOF |
1618 | #define PACKAGE_URL "$PACKAGE_URL" | |
1619 | _ACEOF | |
1620 | ||
a136b23d | 1621 | |
1622 | # Let the site file select an alternate cache file if it wants to. | |
cd9a469c | 1623 | # Prefer an explicitly selected file to automatically selected ones. |
1624 | ac_site_file1=NONE | |
1625 | ac_site_file2=NONE | |
1626 | if test -n "$CONFIG_SITE"; then | |
1627 | ac_site_file1=$CONFIG_SITE | |
1628 | elif test "x$prefix" != xNONE; then | |
1629 | ac_site_file1=$prefix/share/config.site | |
1630 | ac_site_file2=$prefix/etc/config.site | |
1631 | else | |
1632 | ac_site_file1=$ac_default_prefix/share/config.site | |
1633 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a136b23d | 1634 | fi |
cd9a469c | 1635 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
1636 | do | |
1637 | test "x$ac_site_file" = xNONE && continue | |
a136b23d | 1638 | if test -r "$ac_site_file"; then |
cd9a469c | 1639 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
1640 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
a136b23d | 1641 | sed 's/^/| /' "$ac_site_file" >&5 |
1642 | . "$ac_site_file" | |
1643 | fi | |
1644 | done | |
1645 | ||
1646 | if test -r "$cache_file"; then | |
1647 | # Some versions of bash will fail to source /dev/null (special | |
1648 | # files actually), so we avoid doing that. | |
1649 | if test -f "$cache_file"; then | |
cd9a469c | 1650 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
1651 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
a136b23d | 1652 | case $cache_file in |
cd9a469c | 1653 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1654 | *) . "./$cache_file";; | |
a136b23d | 1655 | esac |
1656 | fi | |
1657 | else | |
cd9a469c | 1658 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
1659 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
a136b23d | 1660 | >$cache_file |
1661 | fi | |
1662 | ||
1663 | # Check that the precious variables saved in the cache have kept the same | |
1664 | # value. | |
1665 | ac_cache_corrupted=false | |
cd9a469c | 1666 | for ac_var in $ac_precious_vars; do |
a136b23d | 1667 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1668 | eval ac_new_set=\$ac_env_${ac_var}_set | |
cd9a469c | 1669 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1670 | eval ac_new_val=\$ac_env_${ac_var}_value | |
a136b23d | 1671 | case $ac_old_set,$ac_new_set in |
1672 | set,) | |
cd9a469c | 1673 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1674 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
a136b23d | 1675 | ac_cache_corrupted=: ;; |
1676 | ,set) | |
cd9a469c | 1677 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
1678 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
a136b23d | 1679 | ac_cache_corrupted=: ;; |
1680 | ,);; | |
1681 | *) | |
1682 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
cd9a469c | 1683 | # differences in whitespace do not lead to failure. |
1684 | ac_old_val_w=`echo x $ac_old_val` | |
1685 | ac_new_val_w=`echo x $ac_new_val` | |
1686 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1687 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
1688 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1689 | ac_cache_corrupted=: | |
1690 | else | |
1691 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1692 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1693 | eval $ac_var=\$ac_old_val | |
1694 | fi | |
1695 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
1696 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1697 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
1698 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
a136b23d | 1699 | fi;; |
1700 | esac | |
1701 | # Pass precious variables to config.status. | |
1702 | if test "$ac_new_set" = set; then | |
1703 | case $ac_new_val in | |
cd9a469c | 1704 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
a136b23d | 1705 | *) ac_arg=$ac_var=$ac_new_val ;; |
1706 | esac | |
1707 | case " $ac_configure_args " in | |
1708 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
cd9a469c | 1709 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
a136b23d | 1710 | esac |
1711 | fi | |
1712 | done | |
1713 | if $ac_cache_corrupted; then | |
cd9a469c | 1714 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
1715 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1716 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
1717 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1718 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
a136b23d | 1719 | fi |
cd9a469c | 1720 | ## -------------------- ## |
1721 | ## Main body of script. ## | |
1722 | ## -------------------- ## | |
a136b23d | 1723 | |
1724 | ac_ext=c | |
1725 | ac_cpp='$CPP $CPPFLAGS' | |
1726 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1727 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1728 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1729 | ||
1730 | ||
1731 | ||
1732 | ||
1733 | ||
a136b23d | 1734 | |
1735 | ||
1736 | ||
1737 | ||
1738 | # Command-line options. | |
1739 | # Very limited version of AC_MAINTAINER_MODE. | |
cd9a469c | 1740 | # Check whether --enable-maintainer-mode was given. |
1741 | if test "${enable_maintainer_mode+set}" = set; then : | |
1742 | enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in | |
a136b23d | 1743 | yes) MAINT='' ;; |
1744 | no) MAINT='#' ;; | |
cd9a469c | 1745 | *) as_fn_error "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;; |
a136b23d | 1746 | esac |
1747 | maintainer_mode=${enableval} | |
1748 | else | |
1749 | MAINT='#' | |
cd9a469c | 1750 | fi |
1751 | ||
a136b23d | 1752 | |
1753 | # Start of actual configure tests | |
1754 | ||
1755 | ac_aux_dir= | |
cd9a469c | 1756 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1757 | for ac_t in install-sh install.sh shtool; do | |
1758 | if test -f "$ac_dir/$ac_t"; then | |
1759 | ac_aux_dir=$ac_dir | |
1760 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
1761 | break 2 | |
1762 | fi | |
1763 | done | |
a136b23d | 1764 | done |
1765 | if test -z "$ac_aux_dir"; then | |
cd9a469c | 1766 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a136b23d | 1767 | fi |
cd9a469c | 1768 | |
1769 | # These three variables are undocumented and unsupported, | |
1770 | # and are intended to be withdrawn in a future Autoconf release. | |
1771 | # They can cause serious problems if a builder's source tree is in a directory | |
1772 | # whose full name contains unusual characters. | |
1773 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1774 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1775 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1776 | ||
a136b23d | 1777 | |
1778 | # Find a good install program. We prefer a C program (faster), | |
1779 | # so one script is as good as another. But avoid the broken or | |
1780 | # incompatible versions: | |
1781 | # SysV /etc/install, /usr/sbin/install | |
1782 | # SunOS /usr/etc/install | |
1783 | # IRIX /sbin/install | |
1784 | # AIX /bin/install | |
1785 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1786 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1787 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1788 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1789 | # OS/2's system install, which has a completely different semantic | |
1790 | # ./install, which can be erroneously created by make from ./install.sh. | |
cd9a469c | 1791 | # Reject install programs that cannot install multiple files. |
1792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
1793 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
a136b23d | 1794 | if test -z "$INSTALL"; then |
cd9a469c | 1795 | if test "${ac_cv_path_install+set}" = set; then : |
1796 | $as_echo_n "(cached) " >&6 | |
a136b23d | 1797 | else |
1798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1799 | for as_dir in $PATH | |
1800 | do | |
1801 | IFS=$as_save_IFS | |
1802 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 1803 | # Account for people who put trailing slashes in PATH elements. |
1804 | case $as_dir/ in #(( | |
1805 | ./ | .// | /[cC]/* | \ | |
a136b23d | 1806 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
cd9a469c | 1807 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
a136b23d | 1808 | /usr/ucb/* ) ;; |
1809 | *) | |
1810 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1811 | # Don't use installbsd from OSF since it installs stuff as root | |
1812 | # by default. | |
1813 | for ac_prog in ginstall scoinst install; do | |
1814 | for ac_exec_ext in '' $ac_executable_extensions; do | |
cd9a469c | 1815 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
a136b23d | 1816 | if test $ac_prog = install && |
1817 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1818 | # AIX install. It has an incompatible calling convention. | |
1819 | : | |
1820 | elif test $ac_prog = install && | |
1821 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1822 | # program-specific install script used by HP pwplus--don't use. | |
1823 | : | |
1824 | else | |
cd9a469c | 1825 | rm -rf conftest.one conftest.two conftest.dir |
1826 | echo one > conftest.one | |
1827 | echo two > conftest.two | |
1828 | mkdir conftest.dir | |
1829 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
1830 | test -s conftest.one && test -s conftest.two && | |
1831 | test -s conftest.dir/conftest.one && | |
1832 | test -s conftest.dir/conftest.two | |
1833 | then | |
1834 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1835 | break 3 | |
1836 | fi | |
a136b23d | 1837 | fi |
1838 | fi | |
1839 | done | |
1840 | done | |
1841 | ;; | |
1842 | esac | |
a136b23d | 1843 | |
cd9a469c | 1844 | done |
1845 | IFS=$as_save_IFS | |
1846 | ||
1847 | rm -rf conftest.one conftest.two conftest.dir | |
a136b23d | 1848 | |
1849 | fi | |
1850 | if test "${ac_cv_path_install+set}" = set; then | |
1851 | INSTALL=$ac_cv_path_install | |
1852 | else | |
cd9a469c | 1853 | # As a last resort, use the slow shell script. Don't cache a |
1854 | # value for INSTALL within a source directory, because that will | |
a136b23d | 1855 | # break other packages using the cache if that directory is |
cd9a469c | 1856 | # removed, or if the value is a relative name. |
a136b23d | 1857 | INSTALL=$ac_install_sh |
1858 | fi | |
1859 | fi | |
cd9a469c | 1860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
1861 | $as_echo "$INSTALL" >&6; } | |
a136b23d | 1862 | |
1863 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1864 | # It thinks the first close brace ends the variable substitution. | |
1865 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1866 | ||
1867 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1868 | ||
1869 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1870 | ||
1871 | ||
1872 | # Make sure we can run config.sub. | |
cd9a469c | 1873 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
1874 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
a136b23d | 1875 | |
cd9a469c | 1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
1877 | $as_echo_n "checking build system type... " >&6; } | |
1878 | if test "${ac_cv_build+set}" = set; then : | |
1879 | $as_echo_n "(cached) " >&6 | |
a136b23d | 1880 | else |
cd9a469c | 1881 | ac_build_alias=$build_alias |
1882 | test "x$ac_build_alias" = x && | |
1883 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1884 | test "x$ac_build_alias" = x && | |
1885 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
1886 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
1887 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
1888 | ||
1889 | fi | |
1890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
1891 | $as_echo "$ac_cv_build" >&6; } | |
1892 | case $ac_cv_build in | |
1893 | *-*-*) ;; | |
1894 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
1895 | esac | |
1896 | build=$ac_cv_build | |
1897 | ac_save_IFS=$IFS; IFS='-' | |
1898 | set x $ac_cv_build | |
1899 | shift | |
1900 | build_cpu=$1 | |
1901 | build_vendor=$2 | |
1902 | shift; shift | |
1903 | # Remember, the first character of IFS is used to create $*, | |
1904 | # except with old shells: | |
1905 | build_os=$* | |
1906 | IFS=$ac_save_IFS | |
1907 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
1908 | ||
1909 | ||
1910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
1911 | $as_echo_n "checking host system type... " >&6; } | |
1912 | if test "${ac_cv_host+set}" = set; then : | |
1913 | $as_echo_n "(cached) " >&6 | |
1914 | else | |
1915 | if test "x$host_alias" = x; then | |
1916 | ac_cv_host=$ac_cv_build | |
1917 | else | |
1918 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
1919 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
1920 | fi | |
a136b23d | 1921 | |
1922 | fi | |
cd9a469c | 1923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
1924 | $as_echo "$ac_cv_host" >&6; } | |
1925 | case $ac_cv_host in | |
1926 | *-*-*) ;; | |
1927 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
1928 | esac | |
a136b23d | 1929 | host=$ac_cv_host |
cd9a469c | 1930 | ac_save_IFS=$IFS; IFS='-' |
1931 | set x $ac_cv_host | |
1932 | shift | |
1933 | host_cpu=$1 | |
1934 | host_vendor=$2 | |
1935 | shift; shift | |
1936 | # Remember, the first character of IFS is used to create $*, | |
1937 | # except with old shells: | |
1938 | host_os=$* | |
1939 | IFS=$ac_save_IFS | |
1940 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
1941 | ||
1942 | ||
1943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
1944 | $as_echo_n "checking target system type... " >&6; } | |
1945 | if test "${ac_cv_target+set}" = set; then : | |
1946 | $as_echo_n "(cached) " >&6 | |
a136b23d | 1947 | else |
cd9a469c | 1948 | if test "x$target_alias" = x; then |
1949 | ac_cv_target=$ac_cv_host | |
1950 | else | |
1951 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
1952 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
1953 | fi | |
a136b23d | 1954 | |
1955 | fi | |
cd9a469c | 1956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
1957 | $as_echo "$ac_cv_target" >&6; } | |
1958 | case $ac_cv_target in | |
1959 | *-*-*) ;; | |
1960 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
1961 | esac | |
a136b23d | 1962 | target=$ac_cv_target |
cd9a469c | 1963 | ac_save_IFS=$IFS; IFS='-' |
1964 | set x $ac_cv_target | |
1965 | shift | |
1966 | target_cpu=$1 | |
1967 | target_vendor=$2 | |
1968 | shift; shift | |
1969 | # Remember, the first character of IFS is used to create $*, | |
1970 | # except with old shells: | |
1971 | target_os=$* | |
1972 | IFS=$ac_save_IFS | |
1973 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
a136b23d | 1974 | |
1975 | ||
1976 | # The aliases save the names the user supplied, while $host etc. | |
1977 | # will get canonicalized. | |
1978 | test -n "$target_alias" && | |
1979 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1980 | NONENONEs,x,x, && | |
1981 | program_prefix=${target_alias}- | |
a136b23d | 1982 | |
1983 | case ${build_alias} in | |
1984 | "") build_noncanonical=${build} ;; | |
1985 | *) build_noncanonical=${build_alias} ;; | |
1986 | esac | |
1987 | ||
1988 | case ${host_alias} in | |
1989 | "") host_noncanonical=${build_noncanonical} ;; | |
1990 | *) host_noncanonical=${host_alias} ;; | |
1991 | esac | |
1992 | ||
1993 | case ${target_alias} in | |
1994 | "") target_noncanonical=${host_noncanonical} ;; | |
1995 | *) target_noncanonical=${target_alias} ;; | |
1996 | esac | |
1997 | ||
1998 | ||
1999 | ||
2000 | ||
2001 | # Need to pass this down for now :-P | |
cd9a469c | 2002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2003 | $as_echo_n "checking whether ln -s works... " >&6; } | |
a136b23d | 2004 | LN_S=$as_ln_s |
2005 | if test "$LN_S" = "ln -s"; then | |
cd9a469c | 2006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2007 | $as_echo "yes" >&6; } | |
a136b23d | 2008 | else |
cd9a469c | 2009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2010 | $as_echo "no, using $LN_S" >&6; } | |
a136b23d | 2011 | fi |
2012 | ||
2013 | ||
a136b23d | 2014 | # Determine what to build for 'gnattools' |
2015 | if test $build = $target ; then | |
2016 | # Note that build=target is almost certainly the wrong test; FIXME | |
2017 | default_gnattools_target="gnattools-native" | |
2018 | else | |
2019 | default_gnattools_target="gnattools-cross" | |
2020 | fi | |
2021 | ||
2022 | ||
2023 | # Target-specific stuff (defaults) | |
2024 | TOOLS_TARGET_PAIRS= | |
2025 | ||
2026 | EXTRA_GNATTOOLS= | |
2027 | ||
2028 | ||
2029 | # Per-target case statement | |
2030 | # ------------------------- | |
2031 | case "${target}" in | |
2032 | alpha*-dec-vx*) # Unlike all other Vxworks | |
2033 | ;; | |
2034 | m68k*-wrs-vx* \ | |
2035 | | powerpc*-wrs-vxworks \ | |
2036 | | sparc*-wrs-vx* \ | |
2037 | | *86-wrs-vxworks \ | |
a136b23d | 2038 | | mips*-wrs-vx*) |
e92dcf50 | 2039 | TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb" |
a136b23d | 2040 | ;; |
2041 | sparc-sun-solaris*) | |
e92dcf50 | 2042 | TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb" |
a136b23d | 2043 | ;; |
14f27bc6 | 2044 | *86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
e92dcf50 | 2045 | TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb" |
a136b23d | 2046 | ;; |
2047 | *86-*-linux* \ | |
1b924cb3 | 2048 | | powerpc*-*-linux* \ |
2049 | | *ia64-*-linux* \ | |
2050 | | alpha*-*-linux* \ | |
2051 | | sparc*-*-linux* \ | |
2052 | | hppa*-*-linux* \ | |
2053 | | *x86_64-*-linux*) | |
a136b23d | 2054 | TOOLS_TARGET_PAIRS="\ |
e92dcf50 | 2055 | mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \ |
1b924cb3 | 2056 | indepsw.adb<indepsw-gnu.adb" |
a136b23d | 2057 | ;; |
1b924cb3 | 2058 | s390*-*-linux*) |
e92dcf50 | 2059 | TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb" |
a136b23d | 2060 | ;; |
2061 | *86-*-freebsd*) | |
2062 | TOOLS_TARGET_PAIRS="\ | |
e92dcf50 | 2063 | mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \ |
1b924cb3 | 2064 | indepsw.adb<indepsw-gnu.adb" |
a136b23d | 2065 | ;; |
a136b23d | 2066 | hppa*-hp-hpux10*) # Unlike hpux11 |
2067 | ;; | |
2068 | hppa*-hp-hpux11*) | |
e92dcf50 | 2069 | TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-hpux.adb" |
a136b23d | 2070 | ;; |
2071 | *-ibm-aix*) | |
2072 | TOOLS_TARGET_PAIRS="\ | |
e92dcf50 | 2073 | mlib-tgt-specific.adb<mlib-tgt-specific-aix.adb \ |
a136b23d | 2074 | indepsw.adb<indepsw-aix.adb" |
2075 | ;; | |
a136b23d | 2076 | alpha*-dec-vms* | alpha*-dec-openvms* | alpha*-dec-vms* \ |
2077 | | alpha*-hp-vms* | alpha*-hp-openvms* | alpha*-hp-vms*) | |
2078 | TOOLS_TARGET_PAIRS="\ | |
e92dcf50 | 2079 | mlib-tgt-specific.adb<mlib-tgt-specific-vms-alpha.adb \ |
1b924cb3 | 2080 | symbols.adb<symbols-vms.adb \ |
2081 | symbols-processing.adb<symbols-processing-vms-alpha.adb" | |
a136b23d | 2082 | |
2083 | EXTRA_GNATTOOLS='../../gnatlbr$(exeext) ../../gnatsym$(exeext)' | |
2084 | ;; | |
2085 | ia64*-dec-vms* | ia64*-dec-openvms* | ia64*-dec-vms* \ | |
2086 | | ia64*-hp-vms* | ia64*-hp-openvms* | ia64*-hp-vms*) | |
2087 | TOOLS_TARGET_PAIRS="\ | |
e92dcf50 | 2088 | mlib-tgt-specific.adb<mlib-tgt-specific-vms-ia64.adb \ |
1b924cb3 | 2089 | symbols.adb<symbols-vms.adb \ |
2090 | symbols-processing.adb<symbols-processing-vms-ia64.adb" | |
a136b23d | 2091 | |
2092 | EXTRA_GNATTOOLS='../../gnatlbr$(exeext) ../../gnatsym$(exeext)' | |
2093 | ;; | |
2094 | *-*-cygwin32* | *-*-mingw32* | *-*-pe) | |
2095 | TOOLS_TARGET_PAIRS="\ | |
e92dcf50 | 2096 | mlib-tgt-specific.adb<mlib-tgt-specific-mingw.adb \ |
a136b23d | 2097 | indepsw.adb<indepsw-mingw.adb" |
2098 | EXTRA_GNATTOOLS='../../gnatdll$(exeext)' | |
2099 | ;; | |
fa7b4975 | 2100 | *-*-darwin*) |
e92dcf50 | 2101 | TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-darwin.adb" |
a136b23d | 2102 | ;; |
2103 | *-*-lynxos) | |
1b924cb3 | 2104 | TOOLS_TARGET_PAIRS="\ |
e92dcf50 | 2105 | mlib-tgt-specific.adb<mlib-tgt-specific-lynxos.adb \ |
1b924cb3 | 2106 | indepsw.adb<indepsw-gnu.adb" |
a136b23d | 2107 | ;; |
2108 | esac | |
2109 | ||
3bed0958 | 2110 | # From user or toplevel makefile. |
2111 | ||
2112 | ||
9a8d280d | 2113 | ac_ext=c |
2114 | ac_cpp='$CPP $CPPFLAGS' | |
2115 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2116 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2117 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2118 | if test -n "$ac_tool_prefix"; then | |
2119 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2120 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
cd9a469c | 2121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2122 | $as_echo_n "checking for $ac_word... " >&6; } | |
2123 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2124 | $as_echo_n "(cached) " >&6 | |
9a8d280d | 2125 | else |
2126 | if test -n "$CC"; then | |
2127 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2128 | else | |
2129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2130 | for as_dir in $PATH | |
2131 | do | |
2132 | IFS=$as_save_IFS | |
2133 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 2134 | for ac_exec_ext in '' $ac_executable_extensions; do |
2135 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a8d280d | 2136 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
cd9a469c | 2137 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a8d280d | 2138 | break 2 |
2139 | fi | |
2140 | done | |
cd9a469c | 2141 | done |
2142 | IFS=$as_save_IFS | |
9a8d280d | 2143 | |
2144 | fi | |
2145 | fi | |
2146 | CC=$ac_cv_prog_CC | |
2147 | if test -n "$CC"; then | |
cd9a469c | 2148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2149 | $as_echo "$CC" >&6; } | |
9a8d280d | 2150 | else |
cd9a469c | 2151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2152 | $as_echo "no" >&6; } | |
9a8d280d | 2153 | fi |
2154 | ||
cd9a469c | 2155 | |
9a8d280d | 2156 | fi |
2157 | if test -z "$ac_cv_prog_CC"; then | |
2158 | ac_ct_CC=$CC | |
2159 | # Extract the first word of "gcc", so it can be a program name with args. | |
2160 | set dummy gcc; ac_word=$2 | |
cd9a469c | 2161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2162 | $as_echo_n "checking for $ac_word... " >&6; } | |
2163 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2164 | $as_echo_n "(cached) " >&6 | |
9a8d280d | 2165 | else |
2166 | if test -n "$ac_ct_CC"; then | |
2167 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2168 | else | |
2169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2170 | for as_dir in $PATH | |
2171 | do | |
2172 | IFS=$as_save_IFS | |
2173 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 2174 | for ac_exec_ext in '' $ac_executable_extensions; do |
2175 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a8d280d | 2176 | ac_cv_prog_ac_ct_CC="gcc" |
cd9a469c | 2177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a8d280d | 2178 | break 2 |
2179 | fi | |
2180 | done | |
cd9a469c | 2181 | done |
2182 | IFS=$as_save_IFS | |
9a8d280d | 2183 | |
2184 | fi | |
2185 | fi | |
2186 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2187 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 2188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2189 | $as_echo "$ac_ct_CC" >&6; } | |
9a8d280d | 2190 | else |
cd9a469c | 2191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2192 | $as_echo "no" >&6; } | |
9a8d280d | 2193 | fi |
2194 | ||
cd9a469c | 2195 | if test "x$ac_ct_CC" = x; then |
2196 | CC="" | |
2197 | else | |
2198 | case $cross_compiling:$ac_tool_warned in | |
2199 | yes:) | |
2200 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2201 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2202 | ac_tool_warned=yes ;; | |
2203 | esac | |
2204 | CC=$ac_ct_CC | |
2205 | fi | |
9a8d280d | 2206 | else |
2207 | CC="$ac_cv_prog_CC" | |
2208 | fi | |
2209 | ||
2210 | if test -z "$CC"; then | |
cd9a469c | 2211 | if test -n "$ac_tool_prefix"; then |
2212 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
9a8d280d | 2213 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
cd9a469c | 2214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2215 | $as_echo_n "checking for $ac_word... " >&6; } | |
2216 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2217 | $as_echo_n "(cached) " >&6 | |
9a8d280d | 2218 | else |
2219 | if test -n "$CC"; then | |
2220 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2221 | else | |
2222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2223 | for as_dir in $PATH | |
2224 | do | |
2225 | IFS=$as_save_IFS | |
2226 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 2227 | for ac_exec_ext in '' $ac_executable_extensions; do |
2228 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a8d280d | 2229 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
cd9a469c | 2230 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a8d280d | 2231 | break 2 |
2232 | fi | |
2233 | done | |
cd9a469c | 2234 | done |
2235 | IFS=$as_save_IFS | |
9a8d280d | 2236 | |
2237 | fi | |
2238 | fi | |
2239 | CC=$ac_cv_prog_CC | |
2240 | if test -n "$CC"; then | |
cd9a469c | 2241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2242 | $as_echo "$CC" >&6; } | |
9a8d280d | 2243 | else |
cd9a469c | 2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2245 | $as_echo "no" >&6; } | |
9a8d280d | 2246 | fi |
2247 | ||
9a8d280d | 2248 | |
cd9a469c | 2249 | fi |
9a8d280d | 2250 | fi |
2251 | if test -z "$CC"; then | |
2252 | # Extract the first word of "cc", so it can be a program name with args. | |
2253 | set dummy cc; ac_word=$2 | |
cd9a469c | 2254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2255 | $as_echo_n "checking for $ac_word... " >&6; } | |
2256 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2257 | $as_echo_n "(cached) " >&6 | |
9a8d280d | 2258 | else |
2259 | if test -n "$CC"; then | |
2260 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2261 | else | |
2262 | ac_prog_rejected=no | |
2263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2264 | for as_dir in $PATH | |
2265 | do | |
2266 | IFS=$as_save_IFS | |
2267 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 2268 | for ac_exec_ext in '' $ac_executable_extensions; do |
2269 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a8d280d | 2270 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2271 | ac_prog_rejected=yes | |
2272 | continue | |
2273 | fi | |
2274 | ac_cv_prog_CC="cc" | |
cd9a469c | 2275 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a8d280d | 2276 | break 2 |
2277 | fi | |
2278 | done | |
cd9a469c | 2279 | done |
2280 | IFS=$as_save_IFS | |
9a8d280d | 2281 | |
2282 | if test $ac_prog_rejected = yes; then | |
2283 | # We found a bogon in the path, so make sure we never use it. | |
2284 | set dummy $ac_cv_prog_CC | |
2285 | shift | |
2286 | if test $# != 0; then | |
2287 | # We chose a different compiler from the bogus one. | |
2288 | # However, it has the same basename, so the bogon will be chosen | |
2289 | # first if we set CC to just the basename; use the full file name. | |
2290 | shift | |
2291 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2292 | fi | |
2293 | fi | |
2294 | fi | |
2295 | fi | |
2296 | CC=$ac_cv_prog_CC | |
2297 | if test -n "$CC"; then | |
cd9a469c | 2298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2299 | $as_echo "$CC" >&6; } | |
9a8d280d | 2300 | else |
cd9a469c | 2301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2302 | $as_echo "no" >&6; } | |
9a8d280d | 2303 | fi |
2304 | ||
cd9a469c | 2305 | |
9a8d280d | 2306 | fi |
2307 | if test -z "$CC"; then | |
2308 | if test -n "$ac_tool_prefix"; then | |
cd9a469c | 2309 | for ac_prog in cl.exe |
9a8d280d | 2310 | do |
2311 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2312 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 2313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2314 | $as_echo_n "checking for $ac_word... " >&6; } | |
2315 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2316 | $as_echo_n "(cached) " >&6 | |
9a8d280d | 2317 | else |
2318 | if test -n "$CC"; then | |
2319 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2320 | else | |
2321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2322 | for as_dir in $PATH | |
2323 | do | |
2324 | IFS=$as_save_IFS | |
2325 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 2326 | for ac_exec_ext in '' $ac_executable_extensions; do |
2327 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a8d280d | 2328 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
cd9a469c | 2329 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a8d280d | 2330 | break 2 |
2331 | fi | |
2332 | done | |
cd9a469c | 2333 | done |
2334 | IFS=$as_save_IFS | |
9a8d280d | 2335 | |
2336 | fi | |
2337 | fi | |
2338 | CC=$ac_cv_prog_CC | |
2339 | if test -n "$CC"; then | |
cd9a469c | 2340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2341 | $as_echo "$CC" >&6; } | |
9a8d280d | 2342 | else |
cd9a469c | 2343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2344 | $as_echo "no" >&6; } | |
9a8d280d | 2345 | fi |
2346 | ||
cd9a469c | 2347 | |
9a8d280d | 2348 | test -n "$CC" && break |
2349 | done | |
2350 | fi | |
2351 | if test -z "$CC"; then | |
2352 | ac_ct_CC=$CC | |
cd9a469c | 2353 | for ac_prog in cl.exe |
9a8d280d | 2354 | do |
2355 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2356 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 2357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2358 | $as_echo_n "checking for $ac_word... " >&6; } | |
2359 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2360 | $as_echo_n "(cached) " >&6 | |
9a8d280d | 2361 | else |
2362 | if test -n "$ac_ct_CC"; then | |
2363 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2364 | else | |
2365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2366 | for as_dir in $PATH | |
2367 | do | |
2368 | IFS=$as_save_IFS | |
2369 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 2370 | for ac_exec_ext in '' $ac_executable_extensions; do |
2371 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a8d280d | 2372 | ac_cv_prog_ac_ct_CC="$ac_prog" |
cd9a469c | 2373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a8d280d | 2374 | break 2 |
2375 | fi | |
2376 | done | |
cd9a469c | 2377 | done |
2378 | IFS=$as_save_IFS | |
9a8d280d | 2379 | |
2380 | fi | |
2381 | fi | |
2382 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2383 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 2384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2385 | $as_echo "$ac_ct_CC" >&6; } | |
9a8d280d | 2386 | else |
cd9a469c | 2387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2388 | $as_echo "no" >&6; } | |
9a8d280d | 2389 | fi |
2390 | ||
cd9a469c | 2391 | |
9a8d280d | 2392 | test -n "$ac_ct_CC" && break |
2393 | done | |
2394 | ||
cd9a469c | 2395 | if test "x$ac_ct_CC" = x; then |
2396 | CC="" | |
2397 | else | |
2398 | case $cross_compiling:$ac_tool_warned in | |
2399 | yes:) | |
2400 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2401 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2402 | ac_tool_warned=yes ;; | |
2403 | esac | |
2404 | CC=$ac_ct_CC | |
2405 | fi | |
9a8d280d | 2406 | fi |
2407 | ||
2408 | fi | |
2409 | ||
2410 | ||
cd9a469c | 2411 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2412 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2413 | as_fn_error "no acceptable C compiler found in \$PATH | |
2414 | See \`config.log' for more details." "$LINENO" 5; } | |
9a8d280d | 2415 | |
2416 | # Provide some information about the compiler. | |
cd9a469c | 2417 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2418 | set X $ac_compile | |
2419 | ac_compiler=$2 | |
2420 | for ac_option in --version -v -V -qversion; do | |
2421 | { { ac_try="$ac_compiler $ac_option >&5" | |
2422 | case "(($ac_try" in | |
2423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2424 | *) ac_try_echo=$ac_try;; | |
2425 | esac | |
2426 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2427 | $as_echo "$ac_try_echo"; } >&5 | |
2428 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
9a8d280d | 2429 | ac_status=$? |
cd9a469c | 2430 | if test -s conftest.err; then |
2431 | sed '10a\ | |
2432 | ... rest of stderr output deleted ... | |
2433 | 10q' conftest.err >conftest.er1 | |
2434 | cat conftest.er1 >&5 | |
2435 | rm -f conftest.er1 conftest.err | |
2436 | fi | |
2437 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2438 | test $ac_status = 0; } | |
2439 | done | |
9a8d280d | 2440 | |
cd9a469c | 2441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a8d280d | 2442 | /* end confdefs.h. */ |
2443 | ||
2444 | int | |
2445 | main () | |
2446 | { | |
2447 | ||
2448 | ; | |
2449 | return 0; | |
2450 | } | |
2451 | _ACEOF | |
2452 | ac_clean_files_save=$ac_clean_files | |
cd9a469c | 2453 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
9a8d280d | 2454 | # Try to create an executable without -o first, disregard a.out. |
2455 | # It will help us diagnose broken compilers, and finding out an intuition | |
2456 | # of exeext. | |
cd9a469c | 2457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2458 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2459 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2460 | ||
2461 | # The possible output files: | |
2462 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2463 | ||
2464 | ac_rmfiles= | |
2465 | for ac_file in $ac_files | |
2466 | do | |
2467 | case $ac_file in | |
2468 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2469 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2470 | esac | |
2471 | done | |
2472 | rm -f $ac_rmfiles | |
2473 | ||
2474 | if { { ac_try="$ac_link_default" | |
2475 | case "(($ac_try" in | |
2476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2477 | *) ac_try_echo=$ac_try;; | |
2478 | esac | |
2479 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2480 | $as_echo "$ac_try_echo"; } >&5 | |
2481 | (eval "$ac_link_default") 2>&5 | |
9a8d280d | 2482 | ac_status=$? |
cd9a469c | 2483 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2484 | test $ac_status = 0; }; then : | |
2485 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2486 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2487 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2488 | # so that the user can short-circuit this test for compilers unknown to | |
2489 | # Autoconf. | |
2490 | for ac_file in $ac_files '' | |
9a8d280d | 2491 | do |
2492 | test -f "$ac_file" || continue | |
2493 | case $ac_file in | |
cd9a469c | 2494 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
9a8d280d | 2495 | ;; |
2496 | [ab].out ) | |
2497 | # We found the default executable, but exeext='' is most | |
2498 | # certainly right. | |
2499 | break;; | |
2500 | *.* ) | |
cd9a469c | 2501 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2502 | then :; else | |
2503 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2504 | fi | |
2505 | # We set ac_cv_exeext here because the later test for it is not | |
2506 | # safe: cross compilers may not add the suffix if given an `-o' | |
2507 | # argument, so we may need to know it at that point already. | |
2508 | # Even if this section looks crufty: it has the advantage of | |
2509 | # actually working. | |
9a8d280d | 2510 | break;; |
2511 | * ) | |
2512 | break;; | |
2513 | esac | |
2514 | done | |
cd9a469c | 2515 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2516 | ||
9a8d280d | 2517 | else |
cd9a469c | 2518 | ac_file='' |
2519 | fi | |
2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2521 | $as_echo "$ac_file" >&6; } | |
2522 | if test -z "$ac_file"; then : | |
2523 | $as_echo "$as_me: failed program was:" >&5 | |
9a8d280d | 2524 | sed 's/^/| /' conftest.$ac_ext >&5 |
2525 | ||
cd9a469c | 2526 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2527 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2528 | { as_fn_set_status 77 | |
2529 | as_fn_error "C compiler cannot create executables | |
2530 | See \`config.log' for more details." "$LINENO" 5; }; } | |
9a8d280d | 2531 | fi |
9a8d280d | 2532 | ac_exeext=$ac_cv_exeext |
9a8d280d | 2533 | |
cd9a469c | 2534 | # Check that the compiler produces executables we can run. If not, either |
9a8d280d | 2535 | # the compiler is broken, or we cross compile. |
cd9a469c | 2536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2537 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
9a8d280d | 2538 | # If not cross compiling, check that we can run a simple program. |
2539 | if test "$cross_compiling" != yes; then | |
2540 | if { ac_try='./$ac_file' | |
cd9a469c | 2541 | { { case "(($ac_try" in |
2542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2543 | *) ac_try_echo=$ac_try;; | |
2544 | esac | |
2545 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2546 | $as_echo "$ac_try_echo"; } >&5 | |
2547 | (eval "$ac_try") 2>&5 | |
9a8d280d | 2548 | ac_status=$? |
cd9a469c | 2549 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2550 | test $ac_status = 0; }; }; then | |
9a8d280d | 2551 | cross_compiling=no |
2552 | else | |
2553 | if test "$cross_compiling" = maybe; then | |
2554 | cross_compiling=yes | |
2555 | else | |
cd9a469c | 2556 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2557 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2558 | as_fn_error "cannot run C compiled programs. | |
9a8d280d | 2559 | If you meant to cross compile, use \`--host'. |
cd9a469c | 2560 | See \`config.log' for more details." "$LINENO" 5; } |
9a8d280d | 2561 | fi |
2562 | fi | |
2563 | fi | |
cd9a469c | 2564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2565 | $as_echo "yes" >&6; } | |
9a8d280d | 2566 | |
cd9a469c | 2567 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
9a8d280d | 2568 | ac_clean_files=$ac_clean_files_save |
cd9a469c | 2569 | # Check that the compiler produces executables we can run. If not, either |
9a8d280d | 2570 | # the compiler is broken, or we cross compile. |
cd9a469c | 2571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
2572 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2574 | $as_echo "$cross_compiling" >&6; } | |
2575 | ||
2576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2577 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2578 | if { { ac_try="$ac_link" | |
2579 | case "(($ac_try" in | |
2580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2581 | *) ac_try_echo=$ac_try;; | |
2582 | esac | |
2583 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2584 | $as_echo "$ac_try_echo"; } >&5 | |
2585 | (eval "$ac_link") 2>&5 | |
9a8d280d | 2586 | ac_status=$? |
cd9a469c | 2587 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2588 | test $ac_status = 0; }; then : | |
9a8d280d | 2589 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2590 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2591 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2592 | # `rm'. | |
2593 | for ac_file in conftest.exe conftest conftest.*; do | |
2594 | test -f "$ac_file" || continue | |
2595 | case $ac_file in | |
cd9a469c | 2596 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
9a8d280d | 2597 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
9a8d280d | 2598 | break;; |
2599 | * ) break;; | |
2600 | esac | |
2601 | done | |
2602 | else | |
cd9a469c | 2603 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2604 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2605 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
2606 | See \`config.log' for more details." "$LINENO" 5; } | |
9a8d280d | 2607 | fi |
9a8d280d | 2608 | rm -f conftest$ac_cv_exeext |
cd9a469c | 2609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2610 | $as_echo "$ac_cv_exeext" >&6; } | |
9a8d280d | 2611 | |
2612 | rm -f conftest.$ac_ext | |
2613 | EXEEXT=$ac_cv_exeext | |
2614 | ac_exeext=$EXEEXT | |
cd9a469c | 2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2616 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2617 | if test "${ac_cv_objext+set}" = set; then : | |
2618 | $as_echo_n "(cached) " >&6 | |
9a8d280d | 2619 | else |
cd9a469c | 2620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a8d280d | 2621 | /* end confdefs.h. */ |
2622 | ||
2623 | int | |
2624 | main () | |
2625 | { | |
2626 | ||
2627 | ; | |
2628 | return 0; | |
2629 | } | |
2630 | _ACEOF | |
2631 | rm -f conftest.o conftest.obj | |
cd9a469c | 2632 | if { { ac_try="$ac_compile" |
2633 | case "(($ac_try" in | |
2634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2635 | *) ac_try_echo=$ac_try;; | |
2636 | esac | |
2637 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2638 | $as_echo "$ac_try_echo"; } >&5 | |
2639 | (eval "$ac_compile") 2>&5 | |
9a8d280d | 2640 | ac_status=$? |
cd9a469c | 2641 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2642 | test $ac_status = 0; }; then : | |
2643 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2644 | test -f "$ac_file" || continue; | |
9a8d280d | 2645 | case $ac_file in |
cd9a469c | 2646 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
9a8d280d | 2647 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2648 | break;; | |
2649 | esac | |
2650 | done | |
2651 | else | |
cd9a469c | 2652 | $as_echo "$as_me: failed program was:" >&5 |
9a8d280d | 2653 | sed 's/^/| /' conftest.$ac_ext >&5 |
2654 | ||
cd9a469c | 2655 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2656 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2657 | as_fn_error "cannot compute suffix of object files: cannot compile | |
2658 | See \`config.log' for more details." "$LINENO" 5; } | |
9a8d280d | 2659 | fi |
9a8d280d | 2660 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2661 | fi | |
cd9a469c | 2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2663 | $as_echo "$ac_cv_objext" >&6; } | |
9a8d280d | 2664 | OBJEXT=$ac_cv_objext |
2665 | ac_objext=$OBJEXT | |
cd9a469c | 2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
2667 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2668 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
2669 | $as_echo_n "(cached) " >&6 | |
9a8d280d | 2670 | else |
cd9a469c | 2671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a8d280d | 2672 | /* end confdefs.h. */ |
2673 | ||
2674 | int | |
2675 | main () | |
2676 | { | |
2677 | #ifndef __GNUC__ | |
2678 | choke me | |
2679 | #endif | |
2680 | ||
2681 | ; | |
2682 | return 0; | |
2683 | } | |
2684 | _ACEOF | |
cd9a469c | 2685 | if ac_fn_c_try_compile "$LINENO"; then : |
9a8d280d | 2686 | ac_compiler_gnu=yes |
2687 | else | |
cd9a469c | 2688 | ac_compiler_gnu=no |
9a8d280d | 2689 | fi |
cd9a469c | 2690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9a8d280d | 2691 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2692 | ||
2693 | fi | |
cd9a469c | 2694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
2695 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2696 | if test $ac_compiler_gnu = yes; then | |
2697 | GCC=yes | |
2698 | else | |
2699 | GCC= | |
2700 | fi | |
9a8d280d | 2701 | ac_test_CFLAGS=${CFLAGS+set} |
2702 | ac_save_CFLAGS=$CFLAGS | |
cd9a469c | 2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2704 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2705 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
2706 | $as_echo_n "(cached) " >&6 | |
2707 | else | |
2708 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2709 | ac_c_werror_flag=yes | |
2710 | ac_cv_prog_cc_g=no | |
2711 | CFLAGS="-g" | |
2712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9a8d280d | 2713 | /* end confdefs.h. */ |
2714 | ||
2715 | int | |
2716 | main () | |
2717 | { | |
2718 | ||
2719 | ; | |
2720 | return 0; | |
2721 | } | |
2722 | _ACEOF | |
cd9a469c | 2723 | if ac_fn_c_try_compile "$LINENO"; then : |
9a8d280d | 2724 | ac_cv_prog_cc_g=yes |
2725 | else | |
cd9a469c | 2726 | CFLAGS="" |
2727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2728 | /* end confdefs.h. */ | |
2729 | ||
2730 | int | |
2731 | main () | |
2732 | { | |
2733 | ||
2734 | ; | |
2735 | return 0; | |
2736 | } | |
2737 | _ACEOF | |
2738 | if ac_fn_c_try_compile "$LINENO"; then : | |
2739 | ||
2740 | else | |
2741 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2742 | CFLAGS="-g" | |
2743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2744 | /* end confdefs.h. */ | |
9a8d280d | 2745 | |
cd9a469c | 2746 | int |
2747 | main () | |
2748 | { | |
2749 | ||
2750 | ; | |
2751 | return 0; | |
2752 | } | |
2753 | _ACEOF | |
2754 | if ac_fn_c_try_compile "$LINENO"; then : | |
2755 | ac_cv_prog_cc_g=yes | |
2756 | fi | |
2757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9a8d280d | 2758 | fi |
cd9a469c | 2759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9a8d280d | 2760 | fi |
cd9a469c | 2761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2762 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2763 | fi | |
2764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
2765 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9a8d280d | 2766 | if test "$ac_test_CFLAGS" = set; then |
2767 | CFLAGS=$ac_save_CFLAGS | |
2768 | elif test $ac_cv_prog_cc_g = yes; then | |
2769 | if test "$GCC" = yes; then | |
2770 | CFLAGS="-g -O2" | |
2771 | else | |
2772 | CFLAGS="-g" | |
2773 | fi | |
2774 | else | |
2775 | if test "$GCC" = yes; then | |
2776 | CFLAGS="-O2" | |
2777 | else | |
2778 | CFLAGS= | |
2779 | fi | |
2780 | fi | |
cd9a469c | 2781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
2782 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
2783 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
2784 | $as_echo_n "(cached) " >&6 | |
9a8d280d | 2785 | else |
cd9a469c | 2786 | ac_cv_prog_cc_c89=no |
9a8d280d | 2787 | ac_save_CC=$CC |
cd9a469c | 2788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a8d280d | 2789 | /* end confdefs.h. */ |
2790 | #include <stdarg.h> | |
2791 | #include <stdio.h> | |
2792 | #include <sys/types.h> | |
2793 | #include <sys/stat.h> | |
2794 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2795 | struct buf { int x; }; | |
2796 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2797 | static char *e (p, i) | |
2798 | char **p; | |
2799 | int i; | |
2800 | { | |
2801 | return p[i]; | |
2802 | } | |
2803 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2804 | { | |
2805 | char *s; | |
2806 | va_list v; | |
2807 | va_start (v,p); | |
2808 | s = g (p, va_arg (v,int)); | |
2809 | va_end (v); | |
2810 | return s; | |
2811 | } | |
2812 | ||
2813 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2814 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2815 | These don't provoke an error unfortunately, instead are silently treated | |
cd9a469c | 2816 | as 'x'. The following induces an error, until -std is added to get |
9a8d280d | 2817 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2818 | array size at least. It's necessary to write '\x00'==0 to get something | |
cd9a469c | 2819 | that's true only with -std. */ |
9a8d280d | 2820 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2821 | ||
cd9a469c | 2822 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2823 | inside strings and character constants. */ | |
2824 | #define FOO(x) 'x' | |
2825 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2826 | ||
9a8d280d | 2827 | int test (int i, double x); |
2828 | struct s1 {int (*f) (int a);}; | |
2829 | struct s2 {int (*f) (double a);}; | |
2830 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2831 | int argc; | |
2832 | char **argv; | |
2833 | int | |
2834 | main () | |
2835 | { | |
2836 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2837 | ; | |
2838 | return 0; | |
2839 | } | |
2840 | _ACEOF | |
cd9a469c | 2841 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2842 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
9a8d280d | 2843 | do |
2844 | CC="$ac_save_CC $ac_arg" | |
cd9a469c | 2845 | if ac_fn_c_try_compile "$LINENO"; then : |
2846 | ac_cv_prog_cc_c89=$ac_arg | |
9a8d280d | 2847 | fi |
cd9a469c | 2848 | rm -f core conftest.err conftest.$ac_objext |
2849 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
9a8d280d | 2850 | done |
cd9a469c | 2851 | rm -f conftest.$ac_ext |
9a8d280d | 2852 | CC=$ac_save_CC |
2853 | ||
2854 | fi | |
cd9a469c | 2855 | # AC_CACHE_VAL |
2856 | case "x$ac_cv_prog_cc_c89" in | |
2857 | x) | |
2858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
2859 | $as_echo "none needed" >&6; } ;; | |
2860 | xno) | |
2861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
2862 | $as_echo "unsupported" >&6; } ;; | |
9a8d280d | 2863 | *) |
cd9a469c | 2864 | CC="$CC $ac_cv_prog_cc_c89" |
2865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
2866 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
9a8d280d | 2867 | esac |
cd9a469c | 2868 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
9a8d280d | 2869 | |
9a8d280d | 2870 | fi |
2871 | ||
9a8d280d | 2872 | ac_ext=c |
2873 | ac_cpp='$CPP $CPPFLAGS' | |
2874 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2875 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2876 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2877 | ||
2878 | warn_cflags= | |
2879 | if test "x$GCC" = "xyes"; then | |
2880 | warn_cflags='$(GCC_WARN_CFLAGS)' | |
2881 | fi | |
2882 | ||
2883 | ||
a136b23d | 2884 | # Output: create a Makefile. |
cd9a469c | 2885 | ac_config_files="$ac_config_files Makefile" |
a136b23d | 2886 | |
2887 | ||
2888 | cat >confcache <<\_ACEOF | |
2889 | # This file is a shell script that caches the results of configure | |
2890 | # tests run on this system so they can be shared between configure | |
2891 | # scripts and configure runs, see configure's option --config-cache. | |
2892 | # It is not useful on other systems. If it contains results you don't | |
2893 | # want to keep, you may remove or edit it. | |
2894 | # | |
2895 | # config.status only pays attention to the cache file if you give it | |
2896 | # the --recheck option to rerun configure. | |
2897 | # | |
2898 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
2899 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
2900 | # following values. | |
2901 | ||
2902 | _ACEOF | |
2903 | ||
2904 | # The following way of writing the cache mishandles newlines in values, | |
2905 | # but we know of no workaround that is simple, portable, and efficient. | |
cd9a469c | 2906 | # So, we kill variables containing newlines. |
a136b23d | 2907 | # Ultrix sh set writes to stderr and can't be redirected directly, |
2908 | # and sets the high bit in the cache file unless we assign to the vars. | |
cd9a469c | 2909 | ( |
2910 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
2911 | eval ac_val=\$$ac_var | |
2912 | case $ac_val in #( | |
2913 | *${as_nl}*) | |
2914 | case $ac_var in #( | |
2915 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2916 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2917 | esac | |
2918 | case $ac_var in #( | |
2919 | _ | IFS | as_nl) ;; #( | |
2920 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2921 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2922 | esac ;; | |
2923 | esac | |
2924 | done | |
2925 | ||
a136b23d | 2926 | (set) 2>&1 | |
cd9a469c | 2927 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
2928 | *${as_nl}ac_space=\ *) | |
2929 | # `set' does not quote correctly, so add quotes: double-quote | |
2930 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
a136b23d | 2931 | sed -n \ |
2932 | "s/'/'\\\\''/g; | |
2933 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
cd9a469c | 2934 | ;; #( |
a136b23d | 2935 | *) |
2936 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
cd9a469c | 2937 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
a136b23d | 2938 | ;; |
cd9a469c | 2939 | esac | |
2940 | sort | |
2941 | ) | | |
a136b23d | 2942 | sed ' |
cd9a469c | 2943 | /^ac_cv_env_/b end |
a136b23d | 2944 | t clear |
cd9a469c | 2945 | :clear |
a136b23d | 2946 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
2947 | t end | |
cd9a469c | 2948 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
2949 | :end' >>confcache | |
2950 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
2951 | if test -w "$cache_file"; then | |
2952 | test "x$cache_file" != "x/dev/null" && | |
2953 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
2954 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
a136b23d | 2955 | cat confcache >$cache_file |
2956 | else | |
cd9a469c | 2957 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
2958 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a136b23d | 2959 | fi |
2960 | fi | |
2961 | rm -f confcache | |
2962 | ||
2963 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
2964 | # Let make expand exec_prefix. | |
2965 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
2966 | ||
a136b23d | 2967 | # Transform confdefs.h into DEFS. |
2968 | # Protect against shell expansion while executing Makefile rules. | |
2969 | # Protect against Makefile macro expansion. | |
2970 | # | |
2971 | # If the first sed substitution is executed (which looks for macros that | |
cd9a469c | 2972 | # take arguments), then branch to the quote section. Otherwise, |
a136b23d | 2973 | # look for a macro that doesn't take arguments. |
cd9a469c | 2974 | ac_script=' |
2975 | :mline | |
2976 | /\\$/{ | |
2977 | N | |
2978 | s,\\\n,, | |
2979 | b mline | |
2980 | } | |
a136b23d | 2981 | t clear |
cd9a469c | 2982 | :clear |
2983 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
a136b23d | 2984 | t quote |
cd9a469c | 2985 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
a136b23d | 2986 | t quote |
cd9a469c | 2987 | b any |
2988 | :quote | |
2989 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
2990 | s/\[/\\&/g | |
2991 | s/\]/\\&/g | |
2992 | s/\$/$$/g | |
2993 | H | |
2994 | :any | |
2995 | ${ | |
2996 | g | |
2997 | s/^\n// | |
2998 | s/\n/ /g | |
2999 | p | |
3000 | } | |
3001 | ' | |
3002 | DEFS=`sed -n "$ac_script" confdefs.h` | |
a136b23d | 3003 | |
3004 | ||
3005 | ac_libobjs= | |
3006 | ac_ltlibobjs= | |
3007 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
3008 | # 1. Remove the extension, and $U if already installed. | |
cd9a469c | 3009 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
3010 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
3011 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
3012 | # will be set to the directory where LIBOBJS objects are built. | |
3013 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
3014 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
a136b23d | 3015 | done |
3016 | LIBOBJS=$ac_libobjs | |
3017 | ||
3018 | LTLIBOBJS=$ac_ltlibobjs | |
3019 | ||
3020 | ||
3021 | ||
3022 | : ${CONFIG_STATUS=./config.status} | |
cd9a469c | 3023 | ac_write_fail=0 |
a136b23d | 3024 | ac_clean_files_save=$ac_clean_files |
3025 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
cd9a469c | 3026 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
3027 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
3028 | as_write_fail=0 | |
3029 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
a136b23d | 3030 | #! $SHELL |
3031 | # Generated by $as_me. | |
3032 | # Run this file to recreate the current configuration. | |
3033 | # Compiler output produced by configure, useful for debugging | |
3034 | # configure, is in config.log if it exists. | |
3035 | ||
3036 | debug=false | |
3037 | ac_cs_recheck=false | |
3038 | ac_cs_silent=false | |
a136b23d | 3039 | |
cd9a469c | 3040 | SHELL=\${CONFIG_SHELL-$SHELL} |
3041 | export SHELL | |
3042 | _ASEOF | |
3043 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
3044 | ## -------------------- ## | |
3045 | ## M4sh Initialization. ## | |
3046 | ## -------------------- ## | |
3047 | ||
3048 | # Be more Bourne compatible | |
3049 | DUALCASE=1; export DUALCASE # for MKS sh | |
3050 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
a136b23d | 3051 | emulate sh |
3052 | NULLCMD=: | |
cd9a469c | 3053 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
a136b23d | 3054 | # is contrary to our usage. Disable this feature. |
3055 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 3056 | setopt NO_GLOB_SUBST |
3057 | else | |
3058 | case `(set -o) 2>/dev/null` in #( | |
3059 | *posix*) : | |
3060 | set -o posix ;; #( | |
3061 | *) : | |
3062 | ;; | |
3063 | esac | |
a136b23d | 3064 | fi |
a136b23d | 3065 | |
cd9a469c | 3066 | |
3067 | as_nl=' | |
3068 | ' | |
3069 | export as_nl | |
3070 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
3071 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
3072 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
3073 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
3074 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
3075 | # but without wasting forks for bash or zsh. | |
3076 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
3077 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
3078 | as_echo='print -r --' | |
3079 | as_echo_n='print -rn --' | |
3080 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
3081 | as_echo='printf %s\n' | |
3082 | as_echo_n='printf %s' | |
a136b23d | 3083 | else |
cd9a469c | 3084 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
3085 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
3086 | as_echo_n='/usr/ucb/echo -n' | |
3087 | else | |
3088 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
3089 | as_echo_n_body='eval | |
3090 | arg=$1; | |
3091 | case $arg in #( | |
3092 | *"$as_nl"*) | |
3093 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
3094 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
3095 | esac; | |
3096 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
3097 | ' | |
3098 | export as_echo_n_body | |
3099 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
3100 | fi | |
3101 | export as_echo_body | |
3102 | as_echo='sh -c $as_echo_body as_echo' | |
a136b23d | 3103 | fi |
3104 | ||
cd9a469c | 3105 | # The user is always right. |
3106 | if test "${PATH_SEPARATOR+set}" != set; then | |
3107 | PATH_SEPARATOR=: | |
3108 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
3109 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
3110 | PATH_SEPARATOR=';' | |
3111 | } | |
3112 | fi | |
3113 | ||
3114 | ||
3115 | # IFS | |
3116 | # We need space, tab and new line, in precisely that order. Quoting is | |
3117 | # there to prevent editors from complaining about space-tab. | |
3118 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
3119 | # splitting by setting IFS to empty value.) | |
3120 | IFS=" "" $as_nl" | |
3121 | ||
3122 | # Find who we are. Look in the path if we contain no directory separator. | |
3123 | case $0 in #(( | |
3124 | *[\\/]* ) as_myself=$0 ;; | |
3125 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3126 | for as_dir in $PATH | |
3127 | do | |
3128 | IFS=$as_save_IFS | |
3129 | test -z "$as_dir" && as_dir=. | |
3130 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
3131 | done | |
3132 | IFS=$as_save_IFS | |
a136b23d | 3133 | |
cd9a469c | 3134 | ;; |
3135 | esac | |
3136 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
3137 | # in which case we are not to be found in the path. | |
3138 | if test "x$as_myself" = x; then | |
3139 | as_myself=$0 | |
3140 | fi | |
3141 | if test ! -f "$as_myself"; then | |
3142 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
3143 | exit 1 | |
3144 | fi | |
3145 | ||
3146 | # Unset variables that we do not need and which cause bugs (e.g. in | |
3147 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
3148 | # suppresses any "Segmentation fault" message there. '((' could | |
3149 | # trigger a bug in pdksh 5.2.14. | |
3150 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
3151 | do eval test x\${$as_var+set} = xset \ | |
3152 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
3153 | done | |
a136b23d | 3154 | PS1='$ ' |
3155 | PS2='> ' | |
3156 | PS4='+ ' | |
3157 | ||
3158 | # NLS nuisances. | |
cd9a469c | 3159 | LC_ALL=C |
3160 | export LC_ALL | |
3161 | LANGUAGE=C | |
3162 | export LANGUAGE | |
3163 | ||
3164 | # CDPATH. | |
3165 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
3166 | ||
3167 | ||
3168 | # as_fn_error ERROR [LINENO LOG_FD] | |
3169 | # --------------------------------- | |
3170 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
3171 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
3172 | # script with status $?, using 1 if that was 0. | |
3173 | as_fn_error () | |
3174 | { | |
3175 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
3176 | if test "$3"; then | |
3177 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
3178 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
a136b23d | 3179 | fi |
cd9a469c | 3180 | $as_echo "$as_me: error: $1" >&2 |
3181 | as_fn_exit $as_status | |
3182 | } # as_fn_error | |
3183 | ||
3184 | ||
3185 | # as_fn_set_status STATUS | |
3186 | # ----------------------- | |
3187 | # Set $? to STATUS, without forking. | |
3188 | as_fn_set_status () | |
3189 | { | |
3190 | return $1 | |
3191 | } # as_fn_set_status | |
3192 | ||
3193 | # as_fn_exit STATUS | |
3194 | # ----------------- | |
3195 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
3196 | as_fn_exit () | |
3197 | { | |
3198 | set +e | |
3199 | as_fn_set_status $1 | |
3200 | exit $1 | |
3201 | } # as_fn_exit | |
3202 | ||
3203 | # as_fn_unset VAR | |
3204 | # --------------- | |
3205 | # Portably unset VAR. | |
3206 | as_fn_unset () | |
3207 | { | |
3208 | { eval $1=; unset $1;} | |
3209 | } | |
3210 | as_unset=as_fn_unset | |
3211 | # as_fn_append VAR VALUE | |
3212 | # ---------------------- | |
3213 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
3214 | # advantage of any shell optimizations that allow amortized linear growth over | |
3215 | # repeated appends, instead of the typical quadratic growth present in naive | |
3216 | # implementations. | |
3217 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
3218 | eval 'as_fn_append () | |
3219 | { | |
3220 | eval $1+=\$2 | |
3221 | }' | |
3222 | else | |
3223 | as_fn_append () | |
3224 | { | |
3225 | eval $1=\$$1\$2 | |
3226 | } | |
3227 | fi # as_fn_append | |
3228 | ||
3229 | # as_fn_arith ARG... | |
3230 | # ------------------ | |
3231 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
3232 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
3233 | # must be portable across $(()) and expr. | |
3234 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
3235 | eval 'as_fn_arith () | |
3236 | { | |
3237 | as_val=$(( $* )) | |
3238 | }' | |
3239 | else | |
3240 | as_fn_arith () | |
3241 | { | |
3242 | as_val=`expr "$@" || test $? -eq 1` | |
3243 | } | |
3244 | fi # as_fn_arith | |
a136b23d | 3245 | |
cd9a469c | 3246 | |
3247 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
3248 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
a136b23d | 3249 | as_expr=expr |
3250 | else | |
3251 | as_expr=false | |
3252 | fi | |
3253 | ||
cd9a469c | 3254 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
a136b23d | 3255 | as_basename=basename |
3256 | else | |
3257 | as_basename=false | |
3258 | fi | |
3259 | ||
cd9a469c | 3260 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
3261 | as_dirname=dirname | |
3262 | else | |
3263 | as_dirname=false | |
3264 | fi | |
a136b23d | 3265 | |
cd9a469c | 3266 | as_me=`$as_basename -- "$0" || |
a136b23d | 3267 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
3268 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 3269 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
3270 | $as_echo X/"$0" | | |
3271 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
3272 | s//\1/ | |
3273 | q | |
3274 | } | |
3275 | /^X\/\(\/\/\)$/{ | |
3276 | s//\1/ | |
3277 | q | |
3278 | } | |
3279 | /^X\/\(\/\).*/{ | |
3280 | s//\1/ | |
3281 | q | |
3282 | } | |
3283 | s/.*/./; q'` | |
a136b23d | 3284 | |
a136b23d | 3285 | # Avoid depending upon Character Ranges. |
3286 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
3287 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
3288 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
3289 | as_cr_digits='0123456789' | |
3290 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
3291 | ||
cd9a469c | 3292 | ECHO_C= ECHO_N= ECHO_T= |
3293 | case `echo -n x` in #((((( | |
3294 | -n*) | |
3295 | case `echo 'xy\c'` in | |
3296 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
3297 | xy) ECHO_C='\c';; | |
3298 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
3299 | ECHO_T=' ';; | |
3300 | esac;; | |
3301 | *) | |
3302 | ECHO_N='-n';; | |
a136b23d | 3303 | esac |
3304 | ||
cd9a469c | 3305 | rm -f conf$$ conf$$.exe conf$$.file |
3306 | if test -d conf$$.dir; then | |
3307 | rm -f conf$$.dir/conf$$.file | |
a136b23d | 3308 | else |
cd9a469c | 3309 | rm -f conf$$.dir |
3310 | mkdir conf$$.dir 2>/dev/null | |
a136b23d | 3311 | fi |
cd9a469c | 3312 | if (echo >conf$$.file) 2>/dev/null; then |
3313 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
a136b23d | 3314 | as_ln_s='ln -s' |
cd9a469c | 3315 | # ... but there are two gotchas: |
3316 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
3317 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
3318 | # In both cases, we have to default to `cp -p'. | |
3319 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
3320 | as_ln_s='cp -p' | |
3321 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
3322 | as_ln_s=ln | |
3323 | else | |
3324 | as_ln_s='cp -p' | |
a136b23d | 3325 | fi |
a136b23d | 3326 | else |
3327 | as_ln_s='cp -p' | |
3328 | fi | |
cd9a469c | 3329 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
3330 | rmdir conf$$.dir 2>/dev/null | |
3331 | ||
3332 | ||
3333 | # as_fn_mkdir_p | |
3334 | # ------------- | |
3335 | # Create "$as_dir" as a directory, including parents if necessary. | |
3336 | as_fn_mkdir_p () | |
3337 | { | |
a136b23d | 3338 | |
cd9a469c | 3339 | case $as_dir in #( |
3340 | -*) as_dir=./$as_dir;; | |
3341 | esac | |
3342 | test -d "$as_dir" || eval $as_mkdir_p || { | |
3343 | as_dirs= | |
3344 | while :; do | |
3345 | case $as_dir in #( | |
3346 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
3347 | *) as_qdir=$as_dir;; | |
3348 | esac | |
3349 | as_dirs="'$as_qdir' $as_dirs" | |
3350 | as_dir=`$as_dirname -- "$as_dir" || | |
3351 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3352 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
3353 | X"$as_dir" : 'X\(//\)$' \| \ | |
3354 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
3355 | $as_echo X"$as_dir" | | |
3356 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
3357 | s//\1/ | |
3358 | q | |
3359 | } | |
3360 | /^X\(\/\/\)[^/].*/{ | |
3361 | s//\1/ | |
3362 | q | |
3363 | } | |
3364 | /^X\(\/\/\)$/{ | |
3365 | s//\1/ | |
3366 | q | |
3367 | } | |
3368 | /^X\(\/\).*/{ | |
3369 | s//\1/ | |
3370 | q | |
3371 | } | |
3372 | s/.*/./; q'` | |
3373 | test -d "$as_dir" && break | |
3374 | done | |
3375 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
3376 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
3377 | ||
3378 | ||
3379 | } # as_fn_mkdir_p | |
a136b23d | 3380 | if mkdir -p . 2>/dev/null; then |
cd9a469c | 3381 | as_mkdir_p='mkdir -p "$as_dir"' |
a136b23d | 3382 | else |
3383 | test -d ./-p && rmdir ./-p | |
3384 | as_mkdir_p=false | |
3385 | fi | |
3386 | ||
cd9a469c | 3387 | if test -x / >/dev/null 2>&1; then |
3388 | as_test_x='test -x' | |
3389 | else | |
3390 | if ls -dL / >/dev/null 2>&1; then | |
3391 | as_ls_L_option=L | |
3392 | else | |
3393 | as_ls_L_option= | |
3394 | fi | |
3395 | as_test_x=' | |
3396 | eval sh -c '\'' | |
3397 | if test -d "$1"; then | |
3398 | test -d "$1/."; | |
3399 | else | |
3400 | case $1 in #( | |
3401 | -*)set "./$1";; | |
3402 | esac; | |
3403 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
3404 | ???[sx]*):;;*)false;;esac;fi | |
3405 | '\'' sh | |
3406 | ' | |
3407 | fi | |
3408 | as_executable_p=$as_test_x | |
a136b23d | 3409 | |
3410 | # Sed expression to map a string onto a valid CPP name. | |
3411 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
3412 | ||
3413 | # Sed expression to map a string onto a valid variable name. | |
3414 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
3415 | ||
3416 | ||
a136b23d | 3417 | exec 6>&1 |
cd9a469c | 3418 | ## ----------------------------------- ## |
3419 | ## Main body of $CONFIG_STATUS script. ## | |
3420 | ## ----------------------------------- ## | |
3421 | _ASEOF | |
3422 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
3423 | ||
3424 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3425 | # Save the log message, to keep $0 and so on meaningful, and to | |
a136b23d | 3426 | # report actual input values of CONFIG_FILES etc. instead of their |
cd9a469c | 3427 | # values after options handling. |
3428 | ac_log=" | |
a136b23d | 3429 | This file was extended by $as_me, which was |
cd9a469c | 3430 | generated by GNU Autoconf 2.64. Invocation command line was |
a136b23d | 3431 | |
3432 | CONFIG_FILES = $CONFIG_FILES | |
3433 | CONFIG_HEADERS = $CONFIG_HEADERS | |
3434 | CONFIG_LINKS = $CONFIG_LINKS | |
3435 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
3436 | $ $0 $@ | |
3437 | ||
cd9a469c | 3438 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
3439 | " | |
3440 | ||
a136b23d | 3441 | _ACEOF |
3442 | ||
cd9a469c | 3443 | case $ac_config_files in *" |
3444 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
3445 | esac | |
a136b23d | 3446 | |
a136b23d | 3447 | |
a136b23d | 3448 | |
cd9a469c | 3449 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
3450 | # Files that config.status was made for. | |
3451 | config_files="$ac_config_files" | |
a136b23d | 3452 | |
cd9a469c | 3453 | _ACEOF |
a136b23d | 3454 | |
cd9a469c | 3455 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
a136b23d | 3456 | ac_cs_usage="\ |
cd9a469c | 3457 | \`$as_me' instantiates files and other configuration actions |
3458 | from templates according to the current configuration. Unless the files | |
3459 | and actions are specified as TAGs, all are instantiated by default. | |
a136b23d | 3460 | |
cd9a469c | 3461 | Usage: $0 [OPTION]... [TAG]... |
a136b23d | 3462 | |
3463 | -h, --help print this help, then exit | |
cd9a469c | 3464 | -V, --version print version number and configuration settings, then exit |
3465 | -q, --quiet, --silent | |
3466 | do not print progress messages | |
a136b23d | 3467 | -d, --debug don't remove temporary files |
3468 | --recheck update $as_me by reconfiguring in the same conditions | |
cd9a469c | 3469 | --file=FILE[:TEMPLATE] |
3470 | instantiate the configuration file FILE | |
a136b23d | 3471 | |
3472 | Configuration files: | |
3473 | $config_files | |
3474 | ||
cd9a469c | 3475 | Report bugs to the package provider." |
a136b23d | 3476 | |
cd9a469c | 3477 | _ACEOF |
3478 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
a136b23d | 3479 | ac_cs_version="\\ |
3480 | config.status | |
cd9a469c | 3481 | configured by $0, generated by GNU Autoconf 2.64, |
3482 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
a136b23d | 3483 | |
cd9a469c | 3484 | Copyright (C) 2009 Free Software Foundation, Inc. |
a136b23d | 3485 | This config.status script is free software; the Free Software Foundation |
3486 | gives unlimited permission to copy, distribute and modify it." | |
cd9a469c | 3487 | |
3488 | ac_pwd='$ac_pwd' | |
3489 | srcdir='$srcdir' | |
3490 | INSTALL='$INSTALL' | |
3491 | test -n "\$AWK" || AWK=awk | |
a136b23d | 3492 | _ACEOF |
3493 | ||
cd9a469c | 3494 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3495 | # The default lists apply if the user does not specify any file. | |
a136b23d | 3496 | ac_need_defaults=: |
3497 | while test $# != 0 | |
3498 | do | |
3499 | case $1 in | |
3500 | --*=*) | |
cd9a469c | 3501 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
3502 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
a136b23d | 3503 | ac_shift=: |
3504 | ;; | |
cd9a469c | 3505 | *) |
a136b23d | 3506 | ac_option=$1 |
3507 | ac_optarg=$2 | |
3508 | ac_shift=shift | |
3509 | ;; | |
a136b23d | 3510 | esac |
3511 | ||
3512 | case $ac_option in | |
3513 | # Handling of the options. | |
a136b23d | 3514 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
3515 | ac_cs_recheck=: ;; | |
cd9a469c | 3516 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
3517 | $as_echo "$ac_cs_version"; exit ;; | |
3518 | --debug | --debu | --deb | --de | --d | -d ) | |
a136b23d | 3519 | debug=: ;; |
3520 | --file | --fil | --fi | --f ) | |
3521 | $ac_shift | |
cd9a469c | 3522 | case $ac_optarg in |
3523 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
3524 | esac | |
3525 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
a136b23d | 3526 | ac_need_defaults=false;; |
cd9a469c | 3527 | --he | --h | --help | --hel | -h ) |
3528 | $as_echo "$ac_cs_usage"; exit ;; | |
a136b23d | 3529 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
3530 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
3531 | ac_cs_silent=: ;; | |
3532 | ||
3533 | # This is an error. | |
cd9a469c | 3534 | -*) as_fn_error "unrecognized option: \`$1' |
3535 | Try \`$0 --help' for more information." ;; | |
a136b23d | 3536 | |
cd9a469c | 3537 | *) as_fn_append ac_config_targets " $1" |
3538 | ac_need_defaults=false ;; | |
a136b23d | 3539 | |
3540 | esac | |
3541 | shift | |
3542 | done | |
3543 | ||
3544 | ac_configure_extra_args= | |
3545 | ||
3546 | if $ac_cs_silent; then | |
3547 | exec 6>/dev/null | |
3548 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
3549 | fi | |
3550 | ||
3551 | _ACEOF | |
cd9a469c | 3552 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
a136b23d | 3553 | if \$ac_cs_recheck; then |
cd9a469c | 3554 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
3555 | shift | |
3556 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
3557 | CONFIG_SHELL='$SHELL' | |
3558 | export CONFIG_SHELL | |
3559 | exec "\$@" | |
a136b23d | 3560 | fi |
3561 | ||
3562 | _ACEOF | |
cd9a469c | 3563 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3564 | exec 5>>config.log | |
3565 | { | |
3566 | echo | |
3567 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
3568 | ## Running $as_me. ## | |
3569 | _ASBOX | |
3570 | $as_echo "$ac_log" | |
3571 | } >&5 | |
a136b23d | 3572 | |
cd9a469c | 3573 | _ACEOF |
3574 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3575 | _ACEOF | |
a136b23d | 3576 | |
cd9a469c | 3577 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
a136b23d | 3578 | |
cd9a469c | 3579 | # Handling of arguments. |
a136b23d | 3580 | for ac_config_target in $ac_config_targets |
3581 | do | |
cd9a469c | 3582 | case $ac_config_target in |
3583 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
3584 | ||
3585 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
a136b23d | 3586 | esac |
3587 | done | |
3588 | ||
cd9a469c | 3589 | |
a136b23d | 3590 | # If the user did not use the arguments to specify the items to instantiate, |
3591 | # then the envvar interface is used. Set only those that are not. | |
3592 | # We use the long form for the default assignment because of an extremely | |
3593 | # bizarre bug on SunOS 4.1.3. | |
3594 | if $ac_need_defaults; then | |
3595 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
3596 | fi | |
3597 | ||
3598 | # Have a temporary directory for convenience. Make it in the build tree | |
cd9a469c | 3599 | # simply because there is no reason against having it here, and in addition, |
a136b23d | 3600 | # creating and moving files from /tmp can sometimes cause problems. |
cd9a469c | 3601 | # Hook for its removal unless debugging. |
3602 | # Note that there is a small window in which the directory will not be cleaned: | |
3603 | # after its creation but before its name has been assigned to `$tmp'. | |
a136b23d | 3604 | $debug || |
3605 | { | |
cd9a469c | 3606 | tmp= |
3607 | trap 'exit_status=$? | |
3608 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
3609 | ' 0 | |
3610 | trap 'as_fn_exit 1' 1 2 13 15 | |
a136b23d | 3611 | } |
a136b23d | 3612 | # Create a (secure) tmp directory for tmp files. |
3613 | ||
3614 | { | |
cd9a469c | 3615 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
a136b23d | 3616 | test -n "$tmp" && test -d "$tmp" |
3617 | } || | |
3618 | { | |
cd9a469c | 3619 | tmp=./conf$$-$RANDOM |
3620 | (umask 077 && mkdir "$tmp") | |
3621 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
3622 | ||
3623 | # Set up the scripts for CONFIG_FILES section. | |
3624 | # No need to generate them if there are no CONFIG_FILES. | |
3625 | # This happens for instance with `./config.status config.h'. | |
3626 | if test -n "$CONFIG_FILES"; then | |
3627 | ||
3628 | ||
3629 | ac_cr=`echo X | tr X '\015'` | |
3630 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
3631 | # But we know of no other shell where ac_cr would be empty at this | |
3632 | # point, so we can use a bashism as a fallback. | |
3633 | if test "x$ac_cr" = x; then | |
3634 | eval ac_cr=\$\'\\r\' | |
3635 | fi | |
3636 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
3637 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
3638 | ac_cs_awk_cr='\r' | |
3639 | else | |
3640 | ac_cs_awk_cr=$ac_cr | |
3641 | fi | |
3642 | ||
3643 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
3644 | _ACEOF | |
3645 | ||
3646 | ||
3647 | { | |
3648 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
3649 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
3650 | echo "_ACEOF" | |
3651 | } >conf$$subs.sh || | |
3652 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
3653 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
3654 | ac_delim='%!_!# ' | |
3655 | for ac_last_try in false false false false false :; do | |
3656 | . ./conf$$subs.sh || | |
3657 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
3658 | ||
3659 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
3660 | if test $ac_delim_n = $ac_delim_num; then | |
3661 | break | |
3662 | elif $ac_last_try; then | |
3663 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
3664 | else | |
3665 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
3666 | fi | |
3667 | done | |
3668 | rm -f conf$$subs.sh | |
3669 | ||
3670 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3671 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
3672 | _ACEOF | |
3673 | sed -n ' | |
3674 | h | |
3675 | s/^/S["/; s/!.*/"]=/ | |
3676 | p | |
3677 | g | |
3678 | s/^[^!]*!// | |
3679 | :repl | |
3680 | t repl | |
3681 | s/'"$ac_delim"'$// | |
3682 | t delim | |
3683 | :nl | |
3684 | h | |
3685 | s/\(.\{148\}\).*/\1/ | |
3686 | t more1 | |
3687 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
3688 | p | |
3689 | n | |
3690 | b repl | |
3691 | :more1 | |
3692 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
3693 | p | |
3694 | g | |
3695 | s/.\{148\}// | |
3696 | t nl | |
3697 | :delim | |
3698 | h | |
3699 | s/\(.\{148\}\).*/\1/ | |
3700 | t more2 | |
3701 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
3702 | p | |
3703 | b | |
3704 | :more2 | |
3705 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
3706 | p | |
3707 | g | |
3708 | s/.\{148\}// | |
3709 | t delim | |
3710 | ' <conf$$subs.awk | sed ' | |
3711 | /^[^""]/{ | |
3712 | N | |
3713 | s/\n// | |
3714 | } | |
3715 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
3716 | rm -f conf$$subs.awk | |
3717 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3718 | _ACAWK | |
3719 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
3720 | for (key in S) S_is_set[key] = 1 | |
3721 | FS = "\a" | |
3722 | ||
3723 | } | |
a136b23d | 3724 | { |
cd9a469c | 3725 | line = $ 0 |
3726 | nfields = split(line, field, "@") | |
3727 | substed = 0 | |
3728 | len = length(field[1]) | |
3729 | for (i = 2; i < nfields; i++) { | |
3730 | key = field[i] | |
3731 | keylen = length(key) | |
3732 | if (S_is_set[key]) { | |
3733 | value = S[key] | |
3734 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
3735 | len += length(value) + length(field[++i]) | |
3736 | substed = 1 | |
3737 | } else | |
3738 | len += 1 + keylen | |
3739 | } | |
3740 | ||
3741 | print line | |
a136b23d | 3742 | } |
3743 | ||
cd9a469c | 3744 | _ACAWK |
3745 | _ACEOF | |
3746 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3747 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
3748 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
3749 | else | |
3750 | cat | |
3751 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
3752 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
a136b23d | 3753 | _ACEOF |
3754 | ||
cd9a469c | 3755 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
3756 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
3757 | # trailing colons and then remove the whole line if VPATH becomes empty | |
3758 | # (actually we leave an empty line to preserve line numbers). | |
3759 | if test "x$srcdir" = x.; then | |
3760 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
3761 | s/:*\$(srcdir):*/:/ | |
3762 | s/:*\${srcdir}:*/:/ | |
3763 | s/:*@srcdir@:*/:/ | |
3764 | s/^\([^=]*=[ ]*\):*/\1/ | |
3765 | s/:*$// | |
3766 | s/^[^=]*=[ ]*$// | |
3767 | }' | |
3768 | fi | |
a136b23d | 3769 | |
cd9a469c | 3770 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3771 | fi # test -n "$CONFIG_FILES" | |
a136b23d | 3772 | |
a136b23d | 3773 | |
cd9a469c | 3774 | eval set X " :F $CONFIG_FILES " |
3775 | shift | |
3776 | for ac_tag | |
3777 | do | |
3778 | case $ac_tag in | |
3779 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
3780 | esac | |
3781 | case $ac_mode$ac_tag in | |
3782 | :[FHL]*:*);; | |
3783 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
3784 | :[FH]-) ac_tag=-:-;; | |
3785 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
3786 | esac | |
3787 | ac_save_IFS=$IFS | |
3788 | IFS=: | |
3789 | set x $ac_tag | |
3790 | IFS=$ac_save_IFS | |
3791 | shift | |
3792 | ac_file=$1 | |
3793 | shift | |
a136b23d | 3794 | |
cd9a469c | 3795 | case $ac_mode in |
3796 | :L) ac_source=$1;; | |
3797 | :[FH]) | |
3798 | ac_file_inputs= | |
3799 | for ac_f | |
3800 | do | |
3801 | case $ac_f in | |
3802 | -) ac_f="$tmp/stdin";; | |
3803 | *) # Look for the file first in the build tree, then in the source tree | |
3804 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
3805 | # because $ac_f cannot contain `:'. | |
3806 | test -f "$ac_f" || | |
3807 | case $ac_f in | |
3808 | [\\/$]*) false;; | |
3809 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
3810 | esac || | |
3811 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
3812 | esac | |
3813 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
3814 | as_fn_append ac_file_inputs " '$ac_f'" | |
3815 | done | |
3816 | ||
3817 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
3818 | # use $as_me), people would be surprised to read: | |
3819 | # /* config.h. Generated by config.status. */ | |
3820 | configure_input='Generated from '` | |
3821 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
3822 | `' by configure.' | |
3823 | if test x"$ac_file" != x-; then | |
3824 | configure_input="$ac_file. $configure_input" | |
3825 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
3826 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a136b23d | 3827 | fi |
cd9a469c | 3828 | # Neutralize special characters interpreted by sed in replacement strings. |
3829 | case $configure_input in #( | |
3830 | *\&* | *\|* | *\\* ) | |
3831 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
3832 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
3833 | *) ac_sed_conf_input=$configure_input;; | |
3834 | esac | |
a136b23d | 3835 | |
cd9a469c | 3836 | case $ac_tag in |
3837 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
3838 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
3839 | esac | |
3840 | ;; | |
a136b23d | 3841 | esac |
3842 | ||
cd9a469c | 3843 | ac_dir=`$as_dirname -- "$ac_file" || |
a136b23d | 3844 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
3845 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
3846 | X"$ac_file" : 'X\(//\)$' \| \ | |
cd9a469c | 3847 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
3848 | $as_echo X"$ac_file" | | |
3849 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
3850 | s//\1/ | |
3851 | q | |
3852 | } | |
3853 | /^X\(\/\/\)[^/].*/{ | |
3854 | s//\1/ | |
3855 | q | |
3856 | } | |
3857 | /^X\(\/\/\)$/{ | |
3858 | s//\1/ | |
3859 | q | |
3860 | } | |
3861 | /^X\(\/\).*/{ | |
3862 | s//\1/ | |
3863 | q | |
3864 | } | |
3865 | s/.*/./; q'` | |
3866 | as_dir="$ac_dir"; as_fn_mkdir_p | |
a136b23d | 3867 | ac_builddir=. |
3868 | ||
cd9a469c | 3869 | case "$ac_dir" in |
3870 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
3871 | *) | |
3872 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
3873 | # A ".." for each directory in $ac_dir_suffix. | |
3874 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
3875 | case $ac_top_builddir_sub in | |
3876 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
3877 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
3878 | esac ;; | |
3879 | esac | |
3880 | ac_abs_top_builddir=$ac_pwd | |
3881 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
3882 | # for backward compatibility: | |
3883 | ac_top_builddir=$ac_top_build_prefix | |
a136b23d | 3884 | |
3885 | case $srcdir in | |
cd9a469c | 3886 | .) # We are building in place. |
a136b23d | 3887 | ac_srcdir=. |
cd9a469c | 3888 | ac_top_srcdir=$ac_top_builddir_sub |
3889 | ac_abs_top_srcdir=$ac_pwd ;; | |
3890 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
a136b23d | 3891 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 3892 | ac_top_srcdir=$srcdir |
3893 | ac_abs_top_srcdir=$srcdir ;; | |
3894 | *) # Relative name. | |
3895 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
3896 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
3897 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
a136b23d | 3898 | esac |
cd9a469c | 3899 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a136b23d | 3900 | |
a136b23d | 3901 | |
cd9a469c | 3902 | case $ac_mode in |
3903 | :F) | |
3904 | # | |
3905 | # CONFIG_FILE | |
3906 | # | |
a136b23d | 3907 | |
3908 | case $INSTALL in | |
3909 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
cd9a469c | 3910 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a136b23d | 3911 | esac |
cd9a469c | 3912 | _ACEOF |
a136b23d | 3913 | |
cd9a469c | 3914 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3915 | # If the template does not know about datarootdir, expand it. | |
3916 | # FIXME: This hack should be removed a few years after 2.60. | |
3917 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
3918 | ac_sed_dataroot=' | |
3919 | /datarootdir/ { | |
3920 | p | |
3921 | q | |
3922 | } | |
3923 | /@datadir@/p | |
3924 | /@docdir@/p | |
3925 | /@infodir@/p | |
3926 | /@localedir@/p | |
3927 | /@mandir@/p' | |
3928 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
3929 | *datarootdir*) ac_datarootdir_seen=yes;; | |
3930 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
3931 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
3932 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
a136b23d | 3933 | _ACEOF |
cd9a469c | 3934 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
3935 | ac_datarootdir_hack=' | |
3936 | s&@datadir@&$datadir&g | |
3937 | s&@docdir@&$docdir&g | |
3938 | s&@infodir@&$infodir&g | |
3939 | s&@localedir@&$localedir&g | |
3940 | s&@mandir@&$mandir&g | |
3941 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
3942 | esac | |
3943 | _ACEOF | |
3944 | ||
3945 | # Neutralize VPATH when `$srcdir' = `.'. | |
3946 | # Shell code in configure.ac might set extrasub. | |
3947 | # FIXME: do we really want to maintain this feature? | |
3948 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3949 | ac_sed_extra="$ac_vpsub | |
a136b23d | 3950 | $extrasub |
3951 | _ACEOF | |
cd9a469c | 3952 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
a136b23d | 3953 | :t |
3954 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
cd9a469c | 3955 | s|@configure_input@|$ac_sed_conf_input|;t t |
3956 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
3957 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
3958 | s&@srcdir@&$ac_srcdir&;t t | |
3959 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
3960 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
3961 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
3962 | s&@builddir@&$ac_builddir&;t t | |
3963 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
3964 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
3965 | s&@INSTALL@&$ac_INSTALL&;t t | |
3966 | $ac_datarootdir_hack | |
3967 | " | |
3968 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
3969 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
3970 | ||
3971 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
3972 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
3973 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
3974 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
3975 | which seems to be undefined. Please make sure it is defined." >&5 | |
3976 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
3977 | which seems to be undefined. Please make sure it is defined." >&2;} | |
3978 | ||
3979 | rm -f "$tmp/stdin" | |
3980 | case $ac_file in | |
3981 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
3982 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
3983 | esac \ | |
3984 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
3985 | ;; | |
a136b23d | 3986 | |
a136b23d | 3987 | |
a136b23d | 3988 | |
cd9a469c | 3989 | esac |
3990 | ||
3991 | done # for ac_tag | |
3992 | ||
3993 | ||
3994 | as_fn_exit 0 | |
a136b23d | 3995 | _ACEOF |
a136b23d | 3996 | ac_clean_files=$ac_clean_files_save |
3997 | ||
cd9a469c | 3998 | test $ac_write_fail = 0 || |
3999 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
4000 | ||
a136b23d | 4001 | |
4002 | # configure is writing to config.log, and then calls config.status. | |
4003 | # config.status does its own redirection, appending to config.log. | |
4004 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
4005 | # by configure, so config.status won't be able to write to it; its | |
4006 | # output is simply discarded. So we exec the FD to /dev/null, | |
4007 | # effectively closing config.log, so it can be properly (re)opened and | |
4008 | # appended to by config.status. When coming back to configure, we | |
4009 | # need to make the FD available again. | |
4010 | if test "$no_create" != yes; then | |
4011 | ac_cs_success=: | |
4012 | ac_config_status_args= | |
4013 | test "$silent" = yes && | |
4014 | ac_config_status_args="$ac_config_status_args --quiet" | |
4015 | exec 5>/dev/null | |
4016 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
4017 | exec 5>>config.log | |
4018 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
4019 | # would make configure fail if this is the last instruction. | |
cd9a469c | 4020 | $ac_cs_success || as_fn_exit $? |
4021 | fi | |
4022 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
4023 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
4024 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
a136b23d | 4025 | fi |
4026 |