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