1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.63. |
---|
4 | # |
---|
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
---|
7 | # This configure script is free software; the Free Software Foundation |
---|
8 | # gives unlimited permission to copy, distribute and modify it. |
---|
9 | ## --------------------- ## |
---|
10 | ## M4sh Initialization. ## |
---|
11 | ## --------------------- ## |
---|
12 | |
---|
13 | # Be more Bourne compatible |
---|
14 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
16 | emulate sh |
---|
17 | NULLCMD=: |
---|
18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
19 | # is contrary to our usage. Disable this feature. |
---|
20 | alias -g '${1+"$@"}'='"$@"' |
---|
21 | setopt NO_GLOB_SUBST |
---|
22 | else |
---|
23 | case `(set -o) 2>/dev/null` in |
---|
24 | *posix*) set -o posix ;; |
---|
25 | esac |
---|
26 | |
---|
27 | fi |
---|
28 | |
---|
29 | |
---|
30 | |
---|
31 | |
---|
32 | # PATH needs CR |
---|
33 | # Avoid depending upon Character Ranges. |
---|
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
37 | as_cr_digits='0123456789' |
---|
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
39 | |
---|
40 | as_nl=' |
---|
41 | ' |
---|
42 | export as_nl |
---|
43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
48 | as_echo='printf %s\n' |
---|
49 | as_echo_n='printf %s' |
---|
50 | else |
---|
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
53 | as_echo_n='/usr/ucb/echo -n' |
---|
54 | else |
---|
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
56 | as_echo_n_body='eval |
---|
57 | arg=$1; |
---|
58 | case $arg in |
---|
59 | *"$as_nl"*) |
---|
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
62 | esac; |
---|
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
64 | ' |
---|
65 | export as_echo_n_body |
---|
66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
67 | fi |
---|
68 | export as_echo_body |
---|
69 | as_echo='sh -c $as_echo_body as_echo' |
---|
70 | fi |
---|
71 | |
---|
72 | # The user is always right. |
---|
73 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
74 | PATH_SEPARATOR=: |
---|
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
77 | PATH_SEPARATOR=';' |
---|
78 | } |
---|
79 | fi |
---|
80 | |
---|
81 | # Support unset when possible. |
---|
82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
83 | as_unset=unset |
---|
84 | else |
---|
85 | as_unset=false |
---|
86 | fi |
---|
87 | |
---|
88 | |
---|
89 | # IFS |
---|
90 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
91 | # there to prevent editors from complaining about space-tab. |
---|
92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
93 | # splitting by setting IFS to empty value.) |
---|
94 | IFS=" "" $as_nl" |
---|
95 | |
---|
96 | # Find who we are. Look in the path if we contain no directory separator. |
---|
97 | case $0 in |
---|
98 | *[\\/]* ) as_myself=$0 ;; |
---|
99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
100 | for as_dir in $PATH |
---|
101 | do |
---|
102 | IFS=$as_save_IFS |
---|
103 | test -z "$as_dir" && as_dir=. |
---|
104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
105 | done |
---|
106 | IFS=$as_save_IFS |
---|
107 | |
---|
108 | ;; |
---|
109 | esac |
---|
110 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
111 | # in which case we are not to be found in the path. |
---|
112 | if test "x$as_myself" = x; then |
---|
113 | as_myself=$0 |
---|
114 | fi |
---|
115 | if test ! -f "$as_myself"; then |
---|
116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
117 | { (exit 1); exit 1; } |
---|
118 | fi |
---|
119 | |
---|
120 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
121 | for as_var in ENV MAIL MAILPATH |
---|
122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
123 | done |
---|
124 | PS1='$ ' |
---|
125 | PS2='> ' |
---|
126 | PS4='+ ' |
---|
127 | |
---|
128 | # NLS nuisances. |
---|
129 | LC_ALL=C |
---|
130 | export LC_ALL |
---|
131 | LANGUAGE=C |
---|
132 | export LANGUAGE |
---|
133 | |
---|
134 | # Required to use basename. |
---|
135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
137 | as_expr=expr |
---|
138 | else |
---|
139 | as_expr=false |
---|
140 | fi |
---|
141 | |
---|
142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
143 | as_basename=basename |
---|
144 | else |
---|
145 | as_basename=false |
---|
146 | fi |
---|
147 | |
---|
148 | |
---|
149 | # Name of the executable. |
---|
150 | as_me=`$as_basename -- "$0" || |
---|
151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
152 | X"$0" : 'X\(//\)$' \| \ |
---|
153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
154 | $as_echo X/"$0" | |
---|
155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
156 | s//\1/ |
---|
157 | q |
---|
158 | } |
---|
159 | /^X\/\(\/\/\)$/{ |
---|
160 | s//\1/ |
---|
161 | q |
---|
162 | } |
---|
163 | /^X\/\(\/\).*/{ |
---|
164 | s//\1/ |
---|
165 | q |
---|
166 | } |
---|
167 | s/.*/./; q'` |
---|
168 | |
---|
169 | # CDPATH. |
---|
170 | $as_unset CDPATH |
---|
171 | |
---|
172 | |
---|
173 | if test "x$CONFIG_SHELL" = x; then |
---|
174 | if (eval ":") 2>/dev/null; then |
---|
175 | as_have_required=yes |
---|
176 | else |
---|
177 | as_have_required=no |
---|
178 | fi |
---|
179 | |
---|
180 | if test $as_have_required = yes && (eval ": |
---|
181 | (as_func_return () { |
---|
182 | (exit \$1) |
---|
183 | } |
---|
184 | as_func_success () { |
---|
185 | as_func_return 0 |
---|
186 | } |
---|
187 | as_func_failure () { |
---|
188 | as_func_return 1 |
---|
189 | } |
---|
190 | as_func_ret_success () { |
---|
191 | return 0 |
---|
192 | } |
---|
193 | as_func_ret_failure () { |
---|
194 | return 1 |
---|
195 | } |
---|
196 | |
---|
197 | exitcode=0 |
---|
198 | if as_func_success; then |
---|
199 | : |
---|
200 | else |
---|
201 | exitcode=1 |
---|
202 | echo as_func_success failed. |
---|
203 | fi |
---|
204 | |
---|
205 | if as_func_failure; then |
---|
206 | exitcode=1 |
---|
207 | echo as_func_failure succeeded. |
---|
208 | fi |
---|
209 | |
---|
210 | if as_func_ret_success; then |
---|
211 | : |
---|
212 | else |
---|
213 | exitcode=1 |
---|
214 | echo as_func_ret_success failed. |
---|
215 | fi |
---|
216 | |
---|
217 | if as_func_ret_failure; then |
---|
218 | exitcode=1 |
---|
219 | echo as_func_ret_failure succeeded. |
---|
220 | fi |
---|
221 | |
---|
222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
---|
223 | : |
---|
224 | else |
---|
225 | exitcode=1 |
---|
226 | echo positional parameters were not saved. |
---|
227 | fi |
---|
228 | |
---|
229 | test \$exitcode = 0) || { (exit 1); exit 1; } |
---|
230 | |
---|
231 | ( |
---|
232 | as_lineno_1=\$LINENO |
---|
233 | as_lineno_2=\$LINENO |
---|
234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
---|
235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
---|
236 | ") 2> /dev/null; then |
---|
237 | : |
---|
238 | else |
---|
239 | as_candidate_shells= |
---|
240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
242 | do |
---|
243 | IFS=$as_save_IFS |
---|
244 | test -z "$as_dir" && as_dir=. |
---|
245 | case $as_dir in |
---|
246 | /*) |
---|
247 | for as_base in sh bash ksh sh5; do |
---|
248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
---|
249 | done;; |
---|
250 | esac |
---|
251 | done |
---|
252 | IFS=$as_save_IFS |
---|
253 | |
---|
254 | |
---|
255 | for as_shell in $as_candidate_shells $SHELL; do |
---|
256 | # Try only shells that exist, to save several forks. |
---|
257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
258 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
---|
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
260 | emulate sh |
---|
261 | NULLCMD=: |
---|
262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
263 | # is contrary to our usage. Disable this feature. |
---|
264 | alias -g '${1+"$@"}'='"$@"' |
---|
265 | setopt NO_GLOB_SUBST |
---|
266 | else |
---|
267 | case `(set -o) 2>/dev/null` in |
---|
268 | *posix*) set -o posix ;; |
---|
269 | esac |
---|
270 | |
---|
271 | fi |
---|
272 | |
---|
273 | |
---|
274 | : |
---|
275 | _ASEOF |
---|
276 | }; then |
---|
277 | CONFIG_SHELL=$as_shell |
---|
278 | as_have_required=yes |
---|
279 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
---|
280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
281 | emulate sh |
---|
282 | NULLCMD=: |
---|
283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
284 | # is contrary to our usage. Disable this feature. |
---|
285 | alias -g '${1+"$@"}'='"$@"' |
---|
286 | setopt NO_GLOB_SUBST |
---|
287 | else |
---|
288 | case `(set -o) 2>/dev/null` in |
---|
289 | *posix*) set -o posix ;; |
---|
290 | esac |
---|
291 | |
---|
292 | fi |
---|
293 | |
---|
294 | |
---|
295 | : |
---|
296 | (as_func_return () { |
---|
297 | (exit $1) |
---|
298 | } |
---|
299 | as_func_success () { |
---|
300 | as_func_return 0 |
---|
301 | } |
---|
302 | as_func_failure () { |
---|
303 | as_func_return 1 |
---|
304 | } |
---|
305 | as_func_ret_success () { |
---|
306 | return 0 |
---|
307 | } |
---|
308 | as_func_ret_failure () { |
---|
309 | return 1 |
---|
310 | } |
---|
311 | |
---|
312 | exitcode=0 |
---|
313 | if as_func_success; then |
---|
314 | : |
---|
315 | else |
---|
316 | exitcode=1 |
---|
317 | echo as_func_success failed. |
---|
318 | fi |
---|
319 | |
---|
320 | if as_func_failure; then |
---|
321 | exitcode=1 |
---|
322 | echo as_func_failure succeeded. |
---|
323 | fi |
---|
324 | |
---|
325 | if as_func_ret_success; then |
---|
326 | : |
---|
327 | else |
---|
328 | exitcode=1 |
---|
329 | echo as_func_ret_success failed. |
---|
330 | fi |
---|
331 | |
---|
332 | if as_func_ret_failure; then |
---|
333 | exitcode=1 |
---|
334 | echo as_func_ret_failure succeeded. |
---|
335 | fi |
---|
336 | |
---|
337 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
---|
338 | : |
---|
339 | else |
---|
340 | exitcode=1 |
---|
341 | echo positional parameters were not saved. |
---|
342 | fi |
---|
343 | |
---|
344 | test $exitcode = 0) || { (exit 1); exit 1; } |
---|
345 | |
---|
346 | ( |
---|
347 | as_lineno_1=$LINENO |
---|
348 | as_lineno_2=$LINENO |
---|
349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
---|
351 | |
---|
352 | _ASEOF |
---|
353 | }; then |
---|
354 | break |
---|
355 | fi |
---|
356 | |
---|
357 | fi |
---|
358 | |
---|
359 | done |
---|
360 | |
---|
361 | if test "x$CONFIG_SHELL" != x; then |
---|
362 | for as_var in BASH_ENV ENV |
---|
363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
364 | done |
---|
365 | export CONFIG_SHELL |
---|
366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
---|
367 | fi |
---|
368 | |
---|
369 | |
---|
370 | if test $as_have_required = no; then |
---|
371 | echo This script requires a shell more modern than all the |
---|
372 | echo shells that I found on your system. Please install a |
---|
373 | echo modern shell, or manually run the script under such a |
---|
374 | echo shell if you do have one. |
---|
375 | { (exit 1); exit 1; } |
---|
376 | fi |
---|
377 | |
---|
378 | |
---|
379 | fi |
---|
380 | |
---|
381 | fi |
---|
382 | |
---|
383 | |
---|
384 | |
---|
385 | (eval "as_func_return () { |
---|
386 | (exit \$1) |
---|
387 | } |
---|
388 | as_func_success () { |
---|
389 | as_func_return 0 |
---|
390 | } |
---|
391 | as_func_failure () { |
---|
392 | as_func_return 1 |
---|
393 | } |
---|
394 | as_func_ret_success () { |
---|
395 | return 0 |
---|
396 | } |
---|
397 | as_func_ret_failure () { |
---|
398 | return 1 |
---|
399 | } |
---|
400 | |
---|
401 | exitcode=0 |
---|
402 | if as_func_success; then |
---|
403 | : |
---|
404 | else |
---|
405 | exitcode=1 |
---|
406 | echo as_func_success failed. |
---|
407 | fi |
---|
408 | |
---|
409 | if as_func_failure; then |
---|
410 | exitcode=1 |
---|
411 | echo as_func_failure succeeded. |
---|
412 | fi |
---|
413 | |
---|
414 | if as_func_ret_success; then |
---|
415 | : |
---|
416 | else |
---|
417 | exitcode=1 |
---|
418 | echo as_func_ret_success failed. |
---|
419 | fi |
---|
420 | |
---|
421 | if as_func_ret_failure; then |
---|
422 | exitcode=1 |
---|
423 | echo as_func_ret_failure succeeded. |
---|
424 | fi |
---|
425 | |
---|
426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
---|
427 | : |
---|
428 | else |
---|
429 | exitcode=1 |
---|
430 | echo positional parameters were not saved. |
---|
431 | fi |
---|
432 | |
---|
433 | test \$exitcode = 0") || { |
---|
434 | echo No shell found that supports shell functions. |
---|
435 | echo Please tell bug-autoconf@gnu.org about your system, |
---|
436 | echo including any error possibly output before this message. |
---|
437 | echo This can help us improve future autoconf versions. |
---|
438 | echo Configuration will now proceed without shell functions. |
---|
439 | } |
---|
440 | |
---|
441 | |
---|
442 | |
---|
443 | as_lineno_1=$LINENO |
---|
444 | as_lineno_2=$LINENO |
---|
445 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
---|
447 | |
---|
448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
449 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
450 | # line-number line after each line using $LINENO; the second 'sed' |
---|
451 | # does the real work. The second script uses 'N' to pair each |
---|
452 | # line-number line with the line containing $LINENO, and appends |
---|
453 | # trailing '-' during substitution so that $LINENO is not a special |
---|
454 | # case at line end. |
---|
455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
---|
457 | # E. McMahon (1931-1989) for sed's syntax. :-) |
---|
458 | sed -n ' |
---|
459 | p |
---|
460 | /[$]LINENO/= |
---|
461 | ' <$as_myself | |
---|
462 | sed ' |
---|
463 | s/[$]LINENO.*/&-/ |
---|
464 | t lineno |
---|
465 | b |
---|
466 | :lineno |
---|
467 | N |
---|
468 | :loop |
---|
469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
470 | t loop |
---|
471 | s/-\n.*// |
---|
472 | ' >$as_me.lineno && |
---|
473 | chmod +x "$as_me.lineno" || |
---|
474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
475 | { (exit 1); exit 1; }; } |
---|
476 | |
---|
477 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
478 | # (the dirname of $[0] is not the place where we might find the |
---|
479 | # original and so on. Autoconf is especially sensitive to this). |
---|
480 | . "./$as_me.lineno" |
---|
481 | # Exit status is that of the last command. |
---|
482 | exit |
---|
483 | } |
---|
484 | |
---|
485 | |
---|
486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
487 | as_dirname=dirname |
---|
488 | else |
---|
489 | as_dirname=false |
---|
490 | fi |
---|
491 | |
---|
492 | ECHO_C= ECHO_N= ECHO_T= |
---|
493 | case `echo -n x` in |
---|
494 | -n*) |
---|
495 | case `echo 'x\c'` in |
---|
496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
497 | *) ECHO_C='\c';; |
---|
498 | esac;; |
---|
499 | *) |
---|
500 | ECHO_N='-n';; |
---|
501 | esac |
---|
502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
504 | as_expr=expr |
---|
505 | else |
---|
506 | as_expr=false |
---|
507 | fi |
---|
508 | |
---|
509 | rm -f conf$$ conf$$.exe conf$$.file |
---|
510 | if test -d conf$$.dir; then |
---|
511 | rm -f conf$$.dir/conf$$.file |
---|
512 | else |
---|
513 | rm -f conf$$.dir |
---|
514 | mkdir conf$$.dir 2>/dev/null |
---|
515 | fi |
---|
516 | if (echo >conf$$.file) 2>/dev/null; then |
---|
517 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
518 | as_ln_s='ln -s' |
---|
519 | # ... but there are two gotchas: |
---|
520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
522 | # In both cases, we have to default to `cp -p'. |
---|
523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
524 | as_ln_s='cp -p' |
---|
525 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
526 | as_ln_s=ln |
---|
527 | else |
---|
528 | as_ln_s='cp -p' |
---|
529 | fi |
---|
530 | else |
---|
531 | as_ln_s='cp -p' |
---|
532 | fi |
---|
533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
534 | rmdir conf$$.dir 2>/dev/null |
---|
535 | |
---|
536 | if mkdir -p . 2>/dev/null; then |
---|
537 | as_mkdir_p=: |
---|
538 | else |
---|
539 | test -d ./-p && rmdir ./-p |
---|
540 | as_mkdir_p=false |
---|
541 | fi |
---|
542 | |
---|
543 | if test -x / >/dev/null 2>&1; then |
---|
544 | as_test_x='test -x' |
---|
545 | else |
---|
546 | if ls -dL / >/dev/null 2>&1; then |
---|
547 | as_ls_L_option=L |
---|
548 | else |
---|
549 | as_ls_L_option= |
---|
550 | fi |
---|
551 | as_test_x=' |
---|
552 | eval sh -c '\'' |
---|
553 | if test -d "$1"; then |
---|
554 | test -d "$1/."; |
---|
555 | else |
---|
556 | case $1 in |
---|
557 | -*)set "./$1";; |
---|
558 | esac; |
---|
559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
---|
560 | ???[sx]*):;;*)false;;esac;fi |
---|
561 | '\'' sh |
---|
562 | ' |
---|
563 | fi |
---|
564 | as_executable_p=$as_test_x |
---|
565 | |
---|
566 | # Sed expression to map a string onto a valid CPP name. |
---|
567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
568 | |
---|
569 | # Sed expression to map a string onto a valid variable name. |
---|
570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
571 | |
---|
572 | |
---|
573 | |
---|
574 | exec 7<&0 </dev/null 6>&1 |
---|
575 | |
---|
576 | # Name of the host. |
---|
577 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
578 | # so uname gets run too. |
---|
579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
580 | |
---|
581 | # |
---|
582 | # Initializations. |
---|
583 | # |
---|
584 | ac_default_prefix=/usr/local |
---|
585 | ac_clean_files= |
---|
586 | ac_config_libobj_dir=. |
---|
587 | LIBOBJS= |
---|
588 | cross_compiling=no |
---|
589 | subdirs= |
---|
590 | MFLAGS= |
---|
591 | MAKEFLAGS= |
---|
592 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
593 | |
---|
594 | # Identity of this package. |
---|
595 | PACKAGE_NAME= |
---|
596 | PACKAGE_TARNAME= |
---|
597 | PACKAGE_VERSION= |
---|
598 | PACKAGE_STRING= |
---|
599 | PACKAGE_BUGREPORT= |
---|
600 | |
---|
601 | ac_unique_file="src/array/array.c" |
---|
602 | # Factoring default headers for most tests. |
---|
603 | ac_includes_default="\ |
---|
604 | #include <stdio.h> |
---|
605 | #ifdef HAVE_SYS_TYPES_H |
---|
606 | # include <sys/types.h> |
---|
607 | #endif |
---|
608 | #ifdef HAVE_SYS_STAT_H |
---|
609 | # include <sys/stat.h> |
---|
610 | #endif |
---|
611 | #ifdef STDC_HEADERS |
---|
612 | # include <stdlib.h> |
---|
613 | # include <stddef.h> |
---|
614 | #else |
---|
615 | # ifdef HAVE_STDLIB_H |
---|
616 | # include <stdlib.h> |
---|
617 | # endif |
---|
618 | #endif |
---|
619 | #ifdef HAVE_STRING_H |
---|
620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
621 | # include <memory.h> |
---|
622 | # endif |
---|
623 | # include <string.h> |
---|
624 | #endif |
---|
625 | #ifdef HAVE_STRINGS_H |
---|
626 | # include <strings.h> |
---|
627 | #endif |
---|
628 | #ifdef HAVE_INTTYPES_H |
---|
629 | # include <inttypes.h> |
---|
630 | #endif |
---|
631 | #ifdef HAVE_STDINT_H |
---|
632 | # include <stdint.h> |
---|
633 | #endif |
---|
634 | #ifdef HAVE_UNISTD_H |
---|
635 | # include <unistd.h> |
---|
636 | #endif" |
---|
637 | |
---|
638 | ac_subst_vars='LTLIBOBJS |
---|
639 | LIBOBJS |
---|
640 | EGREP |
---|
641 | GREP |
---|
642 | CPP |
---|
643 | PLINKER |
---|
644 | LINKER |
---|
645 | INSTALL_DATA |
---|
646 | INSTALL_SCRIPT |
---|
647 | INSTALL_PROGRAM |
---|
648 | OBJEXT |
---|
649 | EXEEXT |
---|
650 | ac_ct_CC |
---|
651 | CPPFLAGS |
---|
652 | LDFLAGS |
---|
653 | CFLAGS |
---|
654 | CC |
---|
655 | target_os |
---|
656 | target_vendor |
---|
657 | target_cpu |
---|
658 | target |
---|
659 | host_os |
---|
660 | host_vendor |
---|
661 | host_cpu |
---|
662 | host |
---|
663 | build_os |
---|
664 | build_vendor |
---|
665 | build_cpu |
---|
666 | build |
---|
667 | RANLIB |
---|
668 | AR |
---|
669 | local_srcdir |
---|
670 | target_alias |
---|
671 | host_alias |
---|
672 | build_alias |
---|
673 | LIBS |
---|
674 | ECHO_T |
---|
675 | ECHO_N |
---|
676 | ECHO_C |
---|
677 | DEFS |
---|
678 | mandir |
---|
679 | localedir |
---|
680 | libdir |
---|
681 | psdir |
---|
682 | pdfdir |
---|
683 | dvidir |
---|
684 | htmldir |
---|
685 | infodir |
---|
686 | docdir |
---|
687 | oldincludedir |
---|
688 | includedir |
---|
689 | localstatedir |
---|
690 | sharedstatedir |
---|
691 | sysconfdir |
---|
692 | datadir |
---|
693 | datarootdir |
---|
694 | libexecdir |
---|
695 | sbindir |
---|
696 | bindir |
---|
697 | program_transform_name |
---|
698 | prefix |
---|
699 | exec_prefix |
---|
700 | PACKAGE_BUGREPORT |
---|
701 | PACKAGE_STRING |
---|
702 | PACKAGE_VERSION |
---|
703 | PACKAGE_TARNAME |
---|
704 | PACKAGE_NAME |
---|
705 | PATH_SEPARATOR |
---|
706 | SHELL' |
---|
707 | ac_subst_files='' |
---|
708 | ac_user_opts=' |
---|
709 | enable_option_checking |
---|
710 | enable_times_resolution |
---|
711 | with_local_srcdir |
---|
712 | with_datasize |
---|
713 | enable_gcc |
---|
714 | enable_64 |
---|
715 | with_comp_mode |
---|
716 | ' |
---|
717 | ac_precious_vars='build_alias |
---|
718 | host_alias |
---|
719 | target_alias |
---|
720 | CC |
---|
721 | CFLAGS |
---|
722 | LDFLAGS |
---|
723 | LIBS |
---|
724 | CPPFLAGS |
---|
725 | CPP' |
---|
726 | |
---|
727 | |
---|
728 | # Initialize some variables set by options. |
---|
729 | ac_init_help= |
---|
730 | ac_init_version=false |
---|
731 | ac_unrecognized_opts= |
---|
732 | ac_unrecognized_sep= |
---|
733 | # The variables have the same names as the options, with |
---|
734 | # dashes changed to underlines. |
---|
735 | cache_file=/dev/null |
---|
736 | exec_prefix=NONE |
---|
737 | no_create= |
---|
738 | no_recursion= |
---|
739 | prefix=NONE |
---|
740 | program_prefix=NONE |
---|
741 | program_suffix=NONE |
---|
742 | program_transform_name=s,x,x, |
---|
743 | silent= |
---|
744 | site= |
---|
745 | srcdir= |
---|
746 | verbose= |
---|
747 | x_includes=NONE |
---|
748 | x_libraries=NONE |
---|
749 | |
---|
750 | # Installation directory options. |
---|
751 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
752 | # and all the variables that are supposed to be based on exec_prefix |
---|
753 | # by default will actually change. |
---|
754 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
755 | # (The list follows the same order as the GNU Coding Standards.) |
---|
756 | bindir='${exec_prefix}/bin' |
---|
757 | sbindir='${exec_prefix}/sbin' |
---|
758 | libexecdir='${exec_prefix}/libexec' |
---|
759 | datarootdir='${prefix}/share' |
---|
760 | datadir='${datarootdir}' |
---|
761 | sysconfdir='${prefix}/etc' |
---|
762 | sharedstatedir='${prefix}/com' |
---|
763 | localstatedir='${prefix}/var' |
---|
764 | includedir='${prefix}/include' |
---|
765 | oldincludedir='/usr/include' |
---|
766 | docdir='${datarootdir}/doc/${PACKAGE}' |
---|
767 | infodir='${datarootdir}/info' |
---|
768 | htmldir='${docdir}' |
---|
769 | dvidir='${docdir}' |
---|
770 | pdfdir='${docdir}' |
---|
771 | psdir='${docdir}' |
---|
772 | libdir='${exec_prefix}/lib' |
---|
773 | localedir='${datarootdir}/locale' |
---|
774 | mandir='${datarootdir}/man' |
---|
775 | |
---|
776 | ac_prev= |
---|
777 | ac_dashdash= |
---|
778 | for ac_option |
---|
779 | do |
---|
780 | # If the previous option needs an argument, assign it. |
---|
781 | if test -n "$ac_prev"; then |
---|
782 | eval $ac_prev=\$ac_option |
---|
783 | ac_prev= |
---|
784 | continue |
---|
785 | fi |
---|
786 | |
---|
787 | case $ac_option in |
---|
788 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
789 | *) ac_optarg=yes ;; |
---|
790 | esac |
---|
791 | |
---|
792 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
793 | |
---|
794 | case $ac_dashdash$ac_option in |
---|
795 | --) |
---|
796 | ac_dashdash=yes ;; |
---|
797 | |
---|
798 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
799 | ac_prev=bindir ;; |
---|
800 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
801 | bindir=$ac_optarg ;; |
---|
802 | |
---|
803 | -build | --build | --buil | --bui | --bu) |
---|
804 | ac_prev=build_alias ;; |
---|
805 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
806 | build_alias=$ac_optarg ;; |
---|
807 | |
---|
808 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
809 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
810 | ac_prev=cache_file ;; |
---|
811 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
812 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
813 | cache_file=$ac_optarg ;; |
---|
814 | |
---|
815 | --config-cache | -C) |
---|
816 | cache_file=config.cache ;; |
---|
817 | |
---|
818 | -datadir | --datadir | --datadi | --datad) |
---|
819 | ac_prev=datadir ;; |
---|
820 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
821 | datadir=$ac_optarg ;; |
---|
822 | |
---|
823 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
824 | | --dataroo | --dataro | --datar) |
---|
825 | ac_prev=datarootdir ;; |
---|
826 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
827 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
828 | datarootdir=$ac_optarg ;; |
---|
829 | |
---|
830 | -disable-* | --disable-*) |
---|
831 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
832 | # Reject names that are not valid shell variable names. |
---|
833 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
834 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
---|
835 | { (exit 1); exit 1; }; } |
---|
836 | ac_useropt_orig=$ac_useropt |
---|
837 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
838 | case $ac_user_opts in |
---|
839 | *" |
---|
840 | "enable_$ac_useropt" |
---|
841 | "*) ;; |
---|
842 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
843 | ac_unrecognized_sep=', ';; |
---|
844 | esac |
---|
845 | eval enable_$ac_useropt=no ;; |
---|
846 | |
---|
847 | -docdir | --docdir | --docdi | --doc | --do) |
---|
848 | ac_prev=docdir ;; |
---|
849 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
850 | docdir=$ac_optarg ;; |
---|
851 | |
---|
852 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
853 | ac_prev=dvidir ;; |
---|
854 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
855 | dvidir=$ac_optarg ;; |
---|
856 | |
---|
857 | -enable-* | --enable-*) |
---|
858 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
859 | # Reject names that are not valid shell variable names. |
---|
860 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
861 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
---|
862 | { (exit 1); exit 1; }; } |
---|
863 | ac_useropt_orig=$ac_useropt |
---|
864 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
865 | case $ac_user_opts in |
---|
866 | *" |
---|
867 | "enable_$ac_useropt" |
---|
868 | "*) ;; |
---|
869 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
870 | ac_unrecognized_sep=', ';; |
---|
871 | esac |
---|
872 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
873 | |
---|
874 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
875 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
876 | | --exec | --exe | --ex) |
---|
877 | ac_prev=exec_prefix ;; |
---|
878 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
879 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
880 | | --exec=* | --exe=* | --ex=*) |
---|
881 | exec_prefix=$ac_optarg ;; |
---|
882 | |
---|
883 | -gas | --gas | --ga | --g) |
---|
884 | # Obsolete; use --with-gas. |
---|
885 | with_gas=yes ;; |
---|
886 | |
---|
887 | -help | --help | --hel | --he | -h) |
---|
888 | ac_init_help=long ;; |
---|
889 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
890 | ac_init_help=recursive ;; |
---|
891 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
892 | ac_init_help=short ;; |
---|
893 | |
---|
894 | -host | --host | --hos | --ho) |
---|
895 | ac_prev=host_alias ;; |
---|
896 | -host=* | --host=* | --hos=* | --ho=*) |
---|
897 | host_alias=$ac_optarg ;; |
---|
898 | |
---|
899 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
900 | ac_prev=htmldir ;; |
---|
901 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
902 | | --ht=*) |
---|
903 | htmldir=$ac_optarg ;; |
---|
904 | |
---|
905 | -includedir | --includedir | --includedi | --included | --include \ |
---|
906 | | --includ | --inclu | --incl | --inc) |
---|
907 | ac_prev=includedir ;; |
---|
908 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
909 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
910 | includedir=$ac_optarg ;; |
---|
911 | |
---|
912 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
913 | ac_prev=infodir ;; |
---|
914 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
915 | infodir=$ac_optarg ;; |
---|
916 | |
---|
917 | -libdir | --libdir | --libdi | --libd) |
---|
918 | ac_prev=libdir ;; |
---|
919 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
920 | libdir=$ac_optarg ;; |
---|
921 | |
---|
922 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
923 | | --libexe | --libex | --libe) |
---|
924 | ac_prev=libexecdir ;; |
---|
925 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
926 | | --libexe=* | --libex=* | --libe=*) |
---|
927 | libexecdir=$ac_optarg ;; |
---|
928 | |
---|
929 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
930 | ac_prev=localedir ;; |
---|
931 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
932 | localedir=$ac_optarg ;; |
---|
933 | |
---|
934 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
935 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
936 | ac_prev=localstatedir ;; |
---|
937 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
938 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
939 | localstatedir=$ac_optarg ;; |
---|
940 | |
---|
941 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
942 | ac_prev=mandir ;; |
---|
943 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
944 | mandir=$ac_optarg ;; |
---|
945 | |
---|
946 | -nfp | --nfp | --nf) |
---|
947 | # Obsolete; use --without-fp. |
---|
948 | with_fp=no ;; |
---|
949 | |
---|
950 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
951 | | --no-cr | --no-c | -n) |
---|
952 | no_create=yes ;; |
---|
953 | |
---|
954 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
955 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
956 | no_recursion=yes ;; |
---|
957 | |
---|
958 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
959 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
960 | | --oldin | --oldi | --old | --ol | --o) |
---|
961 | ac_prev=oldincludedir ;; |
---|
962 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
963 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
964 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
965 | oldincludedir=$ac_optarg ;; |
---|
966 | |
---|
967 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
968 | ac_prev=prefix ;; |
---|
969 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
970 | prefix=$ac_optarg ;; |
---|
971 | |
---|
972 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
973 | | --program-pre | --program-pr | --program-p) |
---|
974 | ac_prev=program_prefix ;; |
---|
975 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
976 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
977 | program_prefix=$ac_optarg ;; |
---|
978 | |
---|
979 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
980 | | --program-suf | --program-su | --program-s) |
---|
981 | ac_prev=program_suffix ;; |
---|
982 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
983 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
984 | program_suffix=$ac_optarg ;; |
---|
985 | |
---|
986 | -program-transform-name | --program-transform-name \ |
---|
987 | | --program-transform-nam | --program-transform-na \ |
---|
988 | | --program-transform-n | --program-transform- \ |
---|
989 | | --program-transform | --program-transfor \ |
---|
990 | | --program-transfo | --program-transf \ |
---|
991 | | --program-trans | --program-tran \ |
---|
992 | | --progr-tra | --program-tr | --program-t) |
---|
993 | ac_prev=program_transform_name ;; |
---|
994 | -program-transform-name=* | --program-transform-name=* \ |
---|
995 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
996 | | --program-transform-n=* | --program-transform-=* \ |
---|
997 | | --program-transform=* | --program-transfor=* \ |
---|
998 | | --program-transfo=* | --program-transf=* \ |
---|
999 | | --program-trans=* | --program-tran=* \ |
---|
1000 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1001 | program_transform_name=$ac_optarg ;; |
---|
1002 | |
---|
1003 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1004 | ac_prev=pdfdir ;; |
---|
1005 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1006 | pdfdir=$ac_optarg ;; |
---|
1007 | |
---|
1008 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1009 | ac_prev=psdir ;; |
---|
1010 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1011 | psdir=$ac_optarg ;; |
---|
1012 | |
---|
1013 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1014 | | -silent | --silent | --silen | --sile | --sil) |
---|
1015 | silent=yes ;; |
---|
1016 | |
---|
1017 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1018 | ac_prev=sbindir ;; |
---|
1019 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1020 | | --sbi=* | --sb=*) |
---|
1021 | sbindir=$ac_optarg ;; |
---|
1022 | |
---|
1023 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1024 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1025 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1026 | | --sha | --sh) |
---|
1027 | ac_prev=sharedstatedir ;; |
---|
1028 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1029 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1030 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1031 | | --sha=* | --sh=*) |
---|
1032 | sharedstatedir=$ac_optarg ;; |
---|
1033 | |
---|
1034 | -site | --site | --sit) |
---|
1035 | ac_prev=site ;; |
---|
1036 | -site=* | --site=* | --sit=*) |
---|
1037 | site=$ac_optarg ;; |
---|
1038 | |
---|
1039 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1040 | ac_prev=srcdir ;; |
---|
1041 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1042 | srcdir=$ac_optarg ;; |
---|
1043 | |
---|
1044 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1045 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1046 | ac_prev=sysconfdir ;; |
---|
1047 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1048 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1049 | sysconfdir=$ac_optarg ;; |
---|
1050 | |
---|
1051 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1052 | ac_prev=target_alias ;; |
---|
1053 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1054 | target_alias=$ac_optarg ;; |
---|
1055 | |
---|
1056 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1057 | verbose=yes ;; |
---|
1058 | |
---|
1059 | -version | --version | --versio | --versi | --vers | -V) |
---|
1060 | ac_init_version=: ;; |
---|
1061 | |
---|
1062 | -with-* | --with-*) |
---|
1063 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1064 | # Reject names that are not valid shell variable names. |
---|
1065 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1066 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
---|
1067 | { (exit 1); exit 1; }; } |
---|
1068 | ac_useropt_orig=$ac_useropt |
---|
1069 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1070 | case $ac_user_opts in |
---|
1071 | *" |
---|
1072 | "with_$ac_useropt" |
---|
1073 | "*) ;; |
---|
1074 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1075 | ac_unrecognized_sep=', ';; |
---|
1076 | esac |
---|
1077 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1078 | |
---|
1079 | -without-* | --without-*) |
---|
1080 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1081 | # Reject names that are not valid shell variable names. |
---|
1082 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1083 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
---|
1084 | { (exit 1); exit 1; }; } |
---|
1085 | ac_useropt_orig=$ac_useropt |
---|
1086 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1087 | case $ac_user_opts in |
---|
1088 | *" |
---|
1089 | "with_$ac_useropt" |
---|
1090 | "*) ;; |
---|
1091 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1092 | ac_unrecognized_sep=', ';; |
---|
1093 | esac |
---|
1094 | eval with_$ac_useropt=no ;; |
---|
1095 | |
---|
1096 | --x) |
---|
1097 | # Obsolete; use --with-x. |
---|
1098 | with_x=yes ;; |
---|
1099 | |
---|
1100 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1101 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1102 | ac_prev=x_includes ;; |
---|
1103 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1104 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1105 | x_includes=$ac_optarg ;; |
---|
1106 | |
---|
1107 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1108 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1109 | ac_prev=x_libraries ;; |
---|
1110 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1111 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1112 | x_libraries=$ac_optarg ;; |
---|
1113 | |
---|
1114 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
---|
1115 | Try \`$0 --help' for more information." >&2 |
---|
1116 | { (exit 1); exit 1; }; } |
---|
1117 | ;; |
---|
1118 | |
---|
1119 | *=*) |
---|
1120 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1121 | # Reject names that are not valid shell variable names. |
---|
1122 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
1123 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
1124 | { (exit 1); exit 1; }; } |
---|
1125 | eval $ac_envvar=\$ac_optarg |
---|
1126 | export $ac_envvar ;; |
---|
1127 | |
---|
1128 | *) |
---|
1129 | # FIXME: should be removed in autoconf 3.0. |
---|
1130 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1131 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1132 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1133 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
1134 | ;; |
---|
1135 | |
---|
1136 | esac |
---|
1137 | done |
---|
1138 | |
---|
1139 | if test -n "$ac_prev"; then |
---|
1140 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1141 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
1142 | { (exit 1); exit 1; }; } |
---|
1143 | fi |
---|
1144 | |
---|
1145 | if test -n "$ac_unrecognized_opts"; then |
---|
1146 | case $enable_option_checking in |
---|
1147 | no) ;; |
---|
1148 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 |
---|
1149 | { (exit 1); exit 1; }; } ;; |
---|
1150 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1151 | esac |
---|
1152 | fi |
---|
1153 | |
---|
1154 | # Check all directory arguments for consistency. |
---|
1155 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1156 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1157 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1158 | libdir localedir mandir |
---|
1159 | do |
---|
1160 | eval ac_val=\$$ac_var |
---|
1161 | # Remove trailing slashes. |
---|
1162 | case $ac_val in |
---|
1163 | */ ) |
---|
1164 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1165 | eval $ac_var=\$ac_val;; |
---|
1166 | esac |
---|
1167 | # Be sure to have absolute directory names. |
---|
1168 | case $ac_val in |
---|
1169 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1170 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1171 | esac |
---|
1172 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
1173 | { (exit 1); exit 1; }; } |
---|
1174 | done |
---|
1175 | |
---|
1176 | # There might be people who depend on the old broken behavior: `$host' |
---|
1177 | # used to hold the argument of --host etc. |
---|
1178 | # FIXME: To remove some day. |
---|
1179 | build=$build_alias |
---|
1180 | host=$host_alias |
---|
1181 | target=$target_alias |
---|
1182 | |
---|
1183 | # FIXME: To remove some day. |
---|
1184 | if test "x$host_alias" != x; then |
---|
1185 | if test "x$build_alias" = x; then |
---|
1186 | cross_compiling=maybe |
---|
1187 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
1188 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
1189 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1190 | cross_compiling=yes |
---|
1191 | fi |
---|
1192 | fi |
---|
1193 | |
---|
1194 | ac_tool_prefix= |
---|
1195 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1196 | |
---|
1197 | test "$silent" = yes && exec 6>/dev/null |
---|
1198 | |
---|
1199 | |
---|
1200 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1201 | ac_ls_di=`ls -di .` && |
---|
1202 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1203 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
---|
1204 | { (exit 1); exit 1; }; } |
---|
1205 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1206 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
---|
1207 | { (exit 1); exit 1; }; } |
---|
1208 | |
---|
1209 | |
---|
1210 | # Find the source files, if location was not specified. |
---|
1211 | if test -z "$srcdir"; then |
---|
1212 | ac_srcdir_defaulted=yes |
---|
1213 | # Try the directory containing this script, then the parent directory. |
---|
1214 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1215 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1216 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1217 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1218 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1219 | $as_echo X"$as_myself" | |
---|
1220 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1221 | s//\1/ |
---|
1222 | q |
---|
1223 | } |
---|
1224 | /^X\(\/\/\)[^/].*/{ |
---|
1225 | s//\1/ |
---|
1226 | q |
---|
1227 | } |
---|
1228 | /^X\(\/\/\)$/{ |
---|
1229 | s//\1/ |
---|
1230 | q |
---|
1231 | } |
---|
1232 | /^X\(\/\).*/{ |
---|
1233 | s//\1/ |
---|
1234 | q |
---|
1235 | } |
---|
1236 | s/.*/./; q'` |
---|
1237 | srcdir=$ac_confdir |
---|
1238 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1239 | srcdir=.. |
---|
1240 | fi |
---|
1241 | else |
---|
1242 | ac_srcdir_defaulted=no |
---|
1243 | fi |
---|
1244 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1245 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1246 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
1247 | { (exit 1); exit 1; }; } |
---|
1248 | fi |
---|
1249 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1250 | ac_abs_confdir=`( |
---|
1251 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
---|
1252 | { (exit 1); exit 1; }; } |
---|
1253 | pwd)` |
---|
1254 | # When building in place, set srcdir=. |
---|
1255 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1256 | srcdir=. |
---|
1257 | fi |
---|
1258 | # Remove unnecessary trailing slashes from srcdir. |
---|
1259 | # Double slashes in file names in object file debugging info |
---|
1260 | # mess up M-x gdb in Emacs. |
---|
1261 | case $srcdir in |
---|
1262 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1263 | esac |
---|
1264 | for ac_var in $ac_precious_vars; do |
---|
1265 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1266 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1267 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1268 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1269 | done |
---|
1270 | |
---|
1271 | # |
---|
1272 | # Report the --help message. |
---|
1273 | # |
---|
1274 | if test "$ac_init_help" = "long"; then |
---|
1275 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1276 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1277 | cat <<_ACEOF |
---|
1278 | \`configure' configures this package to adapt to many kinds of systems. |
---|
1279 | |
---|
1280 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1281 | |
---|
1282 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1283 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1284 | |
---|
1285 | Defaults for the options are specified in brackets. |
---|
1286 | |
---|
1287 | Configuration: |
---|
1288 | -h, --help display this help and exit |
---|
1289 | --help=short display options specific to this package |
---|
1290 | --help=recursive display the short help of all the included packages |
---|
1291 | -V, --version display version information and exit |
---|
1292 | -q, --quiet, --silent do not print \`checking...' messages |
---|
1293 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1294 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1295 | -n, --no-create do not create output files |
---|
1296 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1297 | |
---|
1298 | Installation directories: |
---|
1299 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1300 | [$ac_default_prefix] |
---|
1301 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1302 | [PREFIX] |
---|
1303 | |
---|
1304 | By default, \`make install' will install all the files in |
---|
1305 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1306 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1307 | for instance \`--prefix=\$HOME'. |
---|
1308 | |
---|
1309 | For better control, use the options below. |
---|
1310 | |
---|
1311 | Fine tuning of the installation directories: |
---|
1312 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1313 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1314 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1315 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1316 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1317 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1318 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1319 | --includedir=DIR C header files [PREFIX/include] |
---|
1320 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1321 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1322 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1323 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1324 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1325 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1326 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
---|
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 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
1339 | _ACEOF |
---|
1340 | fi |
---|
1341 | |
---|
1342 | if test -n "$ac_init_help"; then |
---|
1343 | |
---|
1344 | cat <<\_ACEOF |
---|
1345 | |
---|
1346 | Optional Features: |
---|
1347 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1348 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1349 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1350 | --enable-times-resolution=<hertz> |
---|
1351 | Set the resolution of the times() function (only |
---|
1352 | necessary for non-POSIX systems). |
---|
1353 | --enable-gcc Allow use of gcc if available |
---|
1354 | --enable-64 Use 64-bit pointers on 64-bit Alpha machines |
---|
1355 | |
---|
1356 | Optional Packages: |
---|
1357 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1358 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1359 | --with-local-srcdir=<srcdir> Specify the root directory to search for |
---|
1360 | source for packages (the PKGS list). |
---|
1361 | Expects to find, e.g., <srcdir>/array/array.c |
---|
1362 | --with-datasize=<size> (Default: 67108864.) Specify maximum datasize in |
---|
1363 | bytes for systems without working getrlimit. |
---|
1364 | The application may use this value to size some |
---|
1365 | data structures, but may still try to exceed it. |
---|
1366 | --with-comp-mode=<mode> Specify a special compilation mode: |
---|
1367 | optimize (the default): Produce optimized |
---|
1368 | code, with symbol table information |
---|
1369 | if supported on the platform/compiler, |
---|
1370 | and without asserts. |
---|
1371 | debug: Produce unoptimized code with symbol table |
---|
1372 | information and asserts enabled |
---|
1373 | purify: Unoptimized code linked with purify |
---|
1374 | quantify: Optimized code without asserts |
---|
1375 | linked with quantify |
---|
1376 | |
---|
1377 | Some influential environment variables: |
---|
1378 | CC C compiler command |
---|
1379 | CFLAGS C compiler flags |
---|
1380 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1381 | nonstandard directory <lib dir> |
---|
1382 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1383 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
---|
1384 | you have headers in a nonstandard directory <include dir> |
---|
1385 | CPP C preprocessor |
---|
1386 | |
---|
1387 | Use these variables to override the choices made by `configure' or to help |
---|
1388 | it to find libraries and programs with nonstandard names/locations. |
---|
1389 | |
---|
1390 | _ACEOF |
---|
1391 | ac_status=$? |
---|
1392 | fi |
---|
1393 | |
---|
1394 | if test "$ac_init_help" = "recursive"; then |
---|
1395 | # If there are subdirs, report their specific --help. |
---|
1396 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1397 | test -d "$ac_dir" || |
---|
1398 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1399 | continue |
---|
1400 | ac_builddir=. |
---|
1401 | |
---|
1402 | case "$ac_dir" in |
---|
1403 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1404 | *) |
---|
1405 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1406 | # A ".." for each directory in $ac_dir_suffix. |
---|
1407 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1408 | case $ac_top_builddir_sub in |
---|
1409 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1410 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1411 | esac ;; |
---|
1412 | esac |
---|
1413 | ac_abs_top_builddir=$ac_pwd |
---|
1414 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1415 | # for backward compatibility: |
---|
1416 | ac_top_builddir=$ac_top_build_prefix |
---|
1417 | |
---|
1418 | case $srcdir in |
---|
1419 | .) # We are building in place. |
---|
1420 | ac_srcdir=. |
---|
1421 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1422 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1423 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1424 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1425 | ac_top_srcdir=$srcdir |
---|
1426 | ac_abs_top_srcdir=$srcdir ;; |
---|
1427 | *) # Relative name. |
---|
1428 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1429 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1430 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1431 | esac |
---|
1432 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1433 | |
---|
1434 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1435 | # Check for guested configure. |
---|
1436 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1437 | echo && |
---|
1438 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1439 | elif test -f "$ac_srcdir/configure"; then |
---|
1440 | echo && |
---|
1441 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1442 | else |
---|
1443 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1444 | fi || ac_status=$? |
---|
1445 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1446 | done |
---|
1447 | fi |
---|
1448 | |
---|
1449 | test -n "$ac_init_help" && exit $ac_status |
---|
1450 | if $ac_init_version; then |
---|
1451 | cat <<\_ACEOF |
---|
1452 | configure |
---|
1453 | generated by GNU Autoconf 2.63 |
---|
1454 | |
---|
1455 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
1456 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
---|
1457 | This configure script is free software; the Free Software Foundation |
---|
1458 | gives unlimited permission to copy, distribute and modify it. |
---|
1459 | _ACEOF |
---|
1460 | exit |
---|
1461 | fi |
---|
1462 | cat >config.log <<_ACEOF |
---|
1463 | This file contains any messages produced by compilers while |
---|
1464 | running configure, to aid debugging if configure makes a mistake. |
---|
1465 | |
---|
1466 | It was created by $as_me, which was |
---|
1467 | generated by GNU Autoconf 2.63. Invocation command line was |
---|
1468 | |
---|
1469 | $ $0 $@ |
---|
1470 | |
---|
1471 | _ACEOF |
---|
1472 | exec 5>>config.log |
---|
1473 | { |
---|
1474 | cat <<_ASUNAME |
---|
1475 | ## --------- ## |
---|
1476 | ## Platform. ## |
---|
1477 | ## --------- ## |
---|
1478 | |
---|
1479 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1480 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1481 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1482 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1483 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1484 | |
---|
1485 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1486 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1487 | |
---|
1488 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1489 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1490 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1491 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
1492 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1493 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1494 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1495 | |
---|
1496 | _ASUNAME |
---|
1497 | |
---|
1498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1499 | for as_dir in $PATH |
---|
1500 | do |
---|
1501 | IFS=$as_save_IFS |
---|
1502 | test -z "$as_dir" && as_dir=. |
---|
1503 | $as_echo "PATH: $as_dir" |
---|
1504 | done |
---|
1505 | IFS=$as_save_IFS |
---|
1506 | |
---|
1507 | } >&5 |
---|
1508 | |
---|
1509 | cat >&5 <<_ACEOF |
---|
1510 | |
---|
1511 | |
---|
1512 | ## ----------- ## |
---|
1513 | ## Core tests. ## |
---|
1514 | ## ----------- ## |
---|
1515 | |
---|
1516 | _ACEOF |
---|
1517 | |
---|
1518 | |
---|
1519 | # Keep a trace of the command line. |
---|
1520 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1521 | # Strip out --silent because we don't want to record it for future runs. |
---|
1522 | # Also quote any args containing shell meta-characters. |
---|
1523 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1524 | ac_configure_args= |
---|
1525 | ac_configure_args0= |
---|
1526 | ac_configure_args1= |
---|
1527 | ac_must_keep_next=false |
---|
1528 | for ac_pass in 1 2 |
---|
1529 | do |
---|
1530 | for ac_arg |
---|
1531 | do |
---|
1532 | case $ac_arg in |
---|
1533 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1534 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1535 | | -silent | --silent | --silen | --sile | --sil) |
---|
1536 | continue ;; |
---|
1537 | *\'*) |
---|
1538 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1539 | esac |
---|
1540 | case $ac_pass in |
---|
1541 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1542 | 2) |
---|
1543 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1544 | if test $ac_must_keep_next = true; then |
---|
1545 | ac_must_keep_next=false # Got value, back to normal. |
---|
1546 | else |
---|
1547 | case $ac_arg in |
---|
1548 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1549 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1550 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1551 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1552 | case "$ac_configure_args0 " in |
---|
1553 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1554 | esac |
---|
1555 | ;; |
---|
1556 | -* ) ac_must_keep_next=true ;; |
---|
1557 | esac |
---|
1558 | fi |
---|
1559 | ac_configure_args="$ac_configure_args '$ac_arg'" |
---|
1560 | ;; |
---|
1561 | esac |
---|
1562 | done |
---|
1563 | done |
---|
1564 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1565 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1566 | |
---|
1567 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1568 | # config.log. We remove comments because anyway the quotes in there |
---|
1569 | # would cause problems or look ugly. |
---|
1570 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
1571 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
1572 | trap 'exit_status=$? |
---|
1573 | # Save into config.log some information that might help in debugging. |
---|
1574 | { |
---|
1575 | echo |
---|
1576 | |
---|
1577 | cat <<\_ASBOX |
---|
1578 | ## ---------------- ## |
---|
1579 | ## Cache variables. ## |
---|
1580 | ## ---------------- ## |
---|
1581 | _ASBOX |
---|
1582 | echo |
---|
1583 | # The following way of writing the cache mishandles newlines in values, |
---|
1584 | ( |
---|
1585 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
1586 | eval ac_val=\$$ac_var |
---|
1587 | case $ac_val in #( |
---|
1588 | *${as_nl}*) |
---|
1589 | case $ac_var in #( |
---|
1590 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
1591 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
1592 | esac |
---|
1593 | case $ac_var in #( |
---|
1594 | _ | IFS | as_nl) ;; #( |
---|
1595 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
1596 | *) $as_unset $ac_var ;; |
---|
1597 | esac ;; |
---|
1598 | esac |
---|
1599 | done |
---|
1600 | (set) 2>&1 | |
---|
1601 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
1602 | *${as_nl}ac_space=\ *) |
---|
1603 | sed -n \ |
---|
1604 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
1605 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
1606 | ;; #( |
---|
1607 | *) |
---|
1608 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
1609 | ;; |
---|
1610 | esac | |
---|
1611 | sort |
---|
1612 | ) |
---|
1613 | echo |
---|
1614 | |
---|
1615 | cat <<\_ASBOX |
---|
1616 | ## ----------------- ## |
---|
1617 | ## Output variables. ## |
---|
1618 | ## ----------------- ## |
---|
1619 | _ASBOX |
---|
1620 | echo |
---|
1621 | for ac_var in $ac_subst_vars |
---|
1622 | do |
---|
1623 | eval ac_val=\$$ac_var |
---|
1624 | case $ac_val in |
---|
1625 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1626 | esac |
---|
1627 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
1628 | done | sort |
---|
1629 | echo |
---|
1630 | |
---|
1631 | if test -n "$ac_subst_files"; then |
---|
1632 | cat <<\_ASBOX |
---|
1633 | ## ------------------- ## |
---|
1634 | ## File substitutions. ## |
---|
1635 | ## ------------------- ## |
---|
1636 | _ASBOX |
---|
1637 | echo |
---|
1638 | for ac_var in $ac_subst_files |
---|
1639 | do |
---|
1640 | eval ac_val=\$$ac_var |
---|
1641 | case $ac_val in |
---|
1642 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1643 | esac |
---|
1644 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
1645 | done | sort |
---|
1646 | echo |
---|
1647 | fi |
---|
1648 | |
---|
1649 | if test -s confdefs.h; then |
---|
1650 | cat <<\_ASBOX |
---|
1651 | ## ----------- ## |
---|
1652 | ## confdefs.h. ## |
---|
1653 | ## ----------- ## |
---|
1654 | _ASBOX |
---|
1655 | echo |
---|
1656 | cat confdefs.h |
---|
1657 | echo |
---|
1658 | fi |
---|
1659 | test "$ac_signal" != 0 && |
---|
1660 | $as_echo "$as_me: caught signal $ac_signal" |
---|
1661 | $as_echo "$as_me: exit $exit_status" |
---|
1662 | } >&5 |
---|
1663 | rm -f core *.core core.conftest.* && |
---|
1664 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
1665 | exit $exit_status |
---|
1666 | ' 0 |
---|
1667 | for ac_signal in 1 2 13 15; do |
---|
1668 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1669 | done |
---|
1670 | ac_signal=0 |
---|
1671 | |
---|
1672 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1673 | rm -f -r conftest* confdefs.h |
---|
1674 | |
---|
1675 | # Predefined preprocessor variables. |
---|
1676 | |
---|
1677 | cat >>confdefs.h <<_ACEOF |
---|
1678 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1679 | _ACEOF |
---|
1680 | |
---|
1681 | |
---|
1682 | cat >>confdefs.h <<_ACEOF |
---|
1683 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1684 | _ACEOF |
---|
1685 | |
---|
1686 | |
---|
1687 | cat >>confdefs.h <<_ACEOF |
---|
1688 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1689 | _ACEOF |
---|
1690 | |
---|
1691 | |
---|
1692 | cat >>confdefs.h <<_ACEOF |
---|
1693 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1694 | _ACEOF |
---|
1695 | |
---|
1696 | |
---|
1697 | cat >>confdefs.h <<_ACEOF |
---|
1698 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1699 | _ACEOF |
---|
1700 | |
---|
1701 | |
---|
1702 | # Let the site file select an alternate cache file if it wants to. |
---|
1703 | # Prefer an explicitly selected file to automatically selected ones. |
---|
1704 | ac_site_file1=NONE |
---|
1705 | ac_site_file2=NONE |
---|
1706 | if test -n "$CONFIG_SITE"; then |
---|
1707 | ac_site_file1=$CONFIG_SITE |
---|
1708 | elif test "x$prefix" != xNONE; then |
---|
1709 | ac_site_file1=$prefix/share/config.site |
---|
1710 | ac_site_file2=$prefix/etc/config.site |
---|
1711 | else |
---|
1712 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
1713 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
1714 | fi |
---|
1715 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
1716 | do |
---|
1717 | test "x$ac_site_file" = xNONE && continue |
---|
1718 | if test -r "$ac_site_file"; then |
---|
1719 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1720 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1721 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1722 | . "$ac_site_file" |
---|
1723 | fi |
---|
1724 | done |
---|
1725 | |
---|
1726 | if test -r "$cache_file"; then |
---|
1727 | # Some versions of bash will fail to source /dev/null (special |
---|
1728 | # files actually), so we avoid doing that. |
---|
1729 | if test -f "$cache_file"; then |
---|
1730 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1731 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
1732 | case $cache_file in |
---|
1733 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
1734 | *) . "./$cache_file";; |
---|
1735 | esac |
---|
1736 | fi |
---|
1737 | else |
---|
1738 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1739 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
1740 | >$cache_file |
---|
1741 | fi |
---|
1742 | |
---|
1743 | # Check that the precious variables saved in the cache have kept the same |
---|
1744 | # value. |
---|
1745 | ac_cache_corrupted=false |
---|
1746 | for ac_var in $ac_precious_vars; do |
---|
1747 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1748 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1749 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
1750 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
1751 | case $ac_old_set,$ac_new_set in |
---|
1752 | set,) |
---|
1753 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1754 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1755 | ac_cache_corrupted=: ;; |
---|
1756 | ,set) |
---|
1757 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1758 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1759 | ac_cache_corrupted=: ;; |
---|
1760 | ,);; |
---|
1761 | *) |
---|
1762 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1763 | # differences in whitespace do not lead to failure. |
---|
1764 | ac_old_val_w=`echo x $ac_old_val` |
---|
1765 | ac_new_val_w=`echo x $ac_new_val` |
---|
1766 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
1767 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1768 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1769 | ac_cache_corrupted=: |
---|
1770 | else |
---|
1771 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
1772 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
1773 | eval $ac_var=\$ac_old_val |
---|
1774 | fi |
---|
1775 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
---|
1776 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
1777 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
---|
1778 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
1779 | fi;; |
---|
1780 | esac |
---|
1781 | # Pass precious variables to config.status. |
---|
1782 | if test "$ac_new_set" = set; then |
---|
1783 | case $ac_new_val in |
---|
1784 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1785 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1786 | esac |
---|
1787 | case " $ac_configure_args " in |
---|
1788 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1789 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1790 | esac |
---|
1791 | fi |
---|
1792 | done |
---|
1793 | if $ac_cache_corrupted; then |
---|
1794 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
1795 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
1796 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1797 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1798 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1799 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1800 | { (exit 1); exit 1; }; } |
---|
1801 | fi |
---|
1802 | |
---|
1803 | |
---|
1804 | |
---|
1805 | |
---|
1806 | |
---|
1807 | |
---|
1808 | |
---|
1809 | |
---|
1810 | |
---|
1811 | |
---|
1812 | |
---|
1813 | |
---|
1814 | |
---|
1815 | |
---|
1816 | |
---|
1817 | |
---|
1818 | |
---|
1819 | ac_ext=c |
---|
1820 | ac_cpp='$CPP $CPPFLAGS' |
---|
1821 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1822 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1823 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1824 | |
---|
1825 | |
---|
1826 | |
---|
1827 | # Look for install.sh, config.guess, and config.sub in the "helpers" dir |
---|
1828 | ac_aux_dir= |
---|
1829 | for ac_dir in helpers "$srcdir"/helpers; do |
---|
1830 | if test -f "$ac_dir/install-sh"; then |
---|
1831 | ac_aux_dir=$ac_dir |
---|
1832 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1833 | break |
---|
1834 | elif test -f "$ac_dir/install.sh"; then |
---|
1835 | ac_aux_dir=$ac_dir |
---|
1836 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1837 | break |
---|
1838 | elif test -f "$ac_dir/shtool"; then |
---|
1839 | ac_aux_dir=$ac_dir |
---|
1840 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1841 | break |
---|
1842 | fi |
---|
1843 | done |
---|
1844 | if test -z "$ac_aux_dir"; then |
---|
1845 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in helpers \"$srcdir\"/helpers" >&5 |
---|
1846 | $as_echo "$as_me: error: cannot find install-sh or install.sh in helpers \"$srcdir\"/helpers" >&2;} |
---|
1847 | { (exit 1); exit 1; }; } |
---|
1848 | fi |
---|
1849 | |
---|
1850 | # These three variables are undocumented and unsupported, |
---|
1851 | # and are intended to be withdrawn in a future Autoconf release. |
---|
1852 | # They can cause serious problems if a builder's source tree is in a directory |
---|
1853 | # whose full name contains unusual characters. |
---|
1854 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
1855 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
1856 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
1857 | |
---|
1858 | |
---|
1859 | |
---|
1860 | # Check whether --enable-times-resolution was given. |
---|
1861 | if test "${enable_times_resolution+set}" = set; then |
---|
1862 | enableval=$enable_times_resolution; cat >>confdefs.h <<_ACEOF |
---|
1863 | #define CLOCK_RESOLUTION $enableval |
---|
1864 | _ACEOF |
---|
1865 | |
---|
1866 | else |
---|
1867 | cat >>confdefs.h <<_ACEOF |
---|
1868 | #define CLOCK_RESOLUTION 60 |
---|
1869 | _ACEOF |
---|
1870 | |
---|
1871 | fi |
---|
1872 | |
---|
1873 | |
---|
1874 | #---------------------------------------------------------------------- |
---|
1875 | # Set local_srcdir |
---|
1876 | #---------------------------------------------------------------------- |
---|
1877 | # Give the configurer a chance to set a different location for the GLU |
---|
1878 | # source. When specified, "srcdir" points to "master" source, and |
---|
1879 | # "local_srcdir" points to the source under local development. |
---|
1880 | |
---|
1881 | |
---|
1882 | |
---|
1883 | # Check whether --with-local-srcdir was given. |
---|
1884 | if test "${with_local_srcdir+set}" = set; then |
---|
1885 | withval=$with_local_srcdir; local_srcdir=$withval |
---|
1886 | else |
---|
1887 | local_srcdir=$srcdir |
---|
1888 | fi |
---|
1889 | |
---|
1890 | |
---|
1891 | |
---|
1892 | # Check whether --with-datasize was given. |
---|
1893 | if test "${with_datasize+set}" = set; then |
---|
1894 | withval=$with_datasize; datasize=$withval |
---|
1895 | else |
---|
1896 | datasize=67108864 |
---|
1897 | fi |
---|
1898 | |
---|
1899 | cat >>confdefs.h <<_ACEOF |
---|
1900 | #define RLIMIT_DATA_DEFAULT $datasize |
---|
1901 | _ACEOF |
---|
1902 | |
---|
1903 | |
---|
1904 | #---------------------------------------------------------------------- |
---|
1905 | # Checks for programs we need |
---|
1906 | #---------------------------------------------------------------------- |
---|
1907 | |
---|
1908 | # Extract the first word of "ar", so it can be a program name with args. |
---|
1909 | set dummy ar; ac_word=$2 |
---|
1910 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1911 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
1912 | if test "${ac_cv_path_AR+set}" = set; then |
---|
1913 | $as_echo_n "(cached) " >&6 |
---|
1914 | else |
---|
1915 | case $AR in |
---|
1916 | [\\/]* | ?:[\\/]*) |
---|
1917 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
---|
1918 | ;; |
---|
1919 | *) |
---|
1920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1921 | for as_dir in $PATH |
---|
1922 | do |
---|
1923 | IFS=$as_save_IFS |
---|
1924 | test -z "$as_dir" && as_dir=. |
---|
1925 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
1927 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
---|
1928 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1929 | break 2 |
---|
1930 | fi |
---|
1931 | done |
---|
1932 | done |
---|
1933 | IFS=$as_save_IFS |
---|
1934 | |
---|
1935 | test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar" |
---|
1936 | ;; |
---|
1937 | esac |
---|
1938 | fi |
---|
1939 | AR=$ac_cv_path_AR |
---|
1940 | if test -n "$AR"; then |
---|
1941 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 |
---|
1942 | $as_echo "$AR" >&6; } |
---|
1943 | else |
---|
1944 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
1945 | $as_echo "no" >&6; } |
---|
1946 | fi |
---|
1947 | |
---|
1948 | |
---|
1949 | if test -n "$ac_tool_prefix"; then |
---|
1950 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
1951 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
1952 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1953 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
1954 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
1955 | $as_echo_n "(cached) " >&6 |
---|
1956 | else |
---|
1957 | if test -n "$RANLIB"; then |
---|
1958 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
1959 | else |
---|
1960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1961 | for as_dir in $PATH |
---|
1962 | do |
---|
1963 | IFS=$as_save_IFS |
---|
1964 | test -z "$as_dir" && as_dir=. |
---|
1965 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1966 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
1967 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
1968 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1969 | break 2 |
---|
1970 | fi |
---|
1971 | done |
---|
1972 | done |
---|
1973 | IFS=$as_save_IFS |
---|
1974 | |
---|
1975 | fi |
---|
1976 | fi |
---|
1977 | RANLIB=$ac_cv_prog_RANLIB |
---|
1978 | if test -n "$RANLIB"; then |
---|
1979 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
1980 | $as_echo "$RANLIB" >&6; } |
---|
1981 | else |
---|
1982 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
1983 | $as_echo "no" >&6; } |
---|
1984 | fi |
---|
1985 | |
---|
1986 | |
---|
1987 | fi |
---|
1988 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
1989 | ac_ct_RANLIB=$RANLIB |
---|
1990 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
1991 | set dummy ranlib; 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_RANLIB+set}" = set; then |
---|
1995 | $as_echo_n "(cached) " >&6 |
---|
1996 | else |
---|
1997 | if test -n "$ac_ct_RANLIB"; then |
---|
1998 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib" |
---|
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_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
2018 | if test -n "$ac_ct_RANLIB"; then |
---|
2019 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
2020 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
2021 | else |
---|
2022 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
2023 | $as_echo "no" >&6; } |
---|
2024 | fi |
---|
2025 | |
---|
2026 | if test "x$ac_ct_RANLIB" = x; then |
---|
2027 | RANLIB=":" |
---|
2028 | else |
---|
2029 | case $cross_compiling:$ac_tool_warned in |
---|
2030 | yes:) |
---|
2031 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2032 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2033 | ac_tool_warned=yes ;; |
---|
2034 | esac |
---|
2035 | RANLIB=$ac_ct_RANLIB |
---|
2036 | fi |
---|
2037 | else |
---|
2038 | RANLIB="$ac_cv_prog_RANLIB" |
---|
2039 | fi |
---|
2040 | |
---|
2041 | |
---|
2042 | # Make sure we can run config.sub. |
---|
2043 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
---|
2044 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
---|
2045 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
---|
2046 | { (exit 1); exit 1; }; } |
---|
2047 | |
---|
2048 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
---|
2049 | $as_echo_n "checking build system type... " >&6; } |
---|
2050 | if test "${ac_cv_build+set}" = set; then |
---|
2051 | $as_echo_n "(cached) " >&6 |
---|
2052 | else |
---|
2053 | ac_build_alias=$build_alias |
---|
2054 | test "x$ac_build_alias" = x && |
---|
2055 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
---|
2056 | test "x$ac_build_alias" = x && |
---|
2057 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
2058 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
2059 | { (exit 1); exit 1; }; } |
---|
2060 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
---|
2061 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
---|
2062 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
---|
2063 | { (exit 1); exit 1; }; } |
---|
2064 | |
---|
2065 | fi |
---|
2066 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
2067 | $as_echo "$ac_cv_build" >&6; } |
---|
2068 | case $ac_cv_build in |
---|
2069 | *-*-*) ;; |
---|
2070 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
---|
2071 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} |
---|
2072 | { (exit 1); exit 1; }; };; |
---|
2073 | esac |
---|
2074 | build=$ac_cv_build |
---|
2075 | ac_save_IFS=$IFS; IFS='-' |
---|
2076 | set x $ac_cv_build |
---|
2077 | shift |
---|
2078 | build_cpu=$1 |
---|
2079 | build_vendor=$2 |
---|
2080 | shift; shift |
---|
2081 | # Remember, the first character of IFS is used to create $*, |
---|
2082 | # except with old shells: |
---|
2083 | build_os=$* |
---|
2084 | IFS=$ac_save_IFS |
---|
2085 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
---|
2086 | |
---|
2087 | |
---|
2088 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
---|
2089 | $as_echo_n "checking host system type... " >&6; } |
---|
2090 | if test "${ac_cv_host+set}" = set; then |
---|
2091 | $as_echo_n "(cached) " >&6 |
---|
2092 | else |
---|
2093 | if test "x$host_alias" = x; then |
---|
2094 | ac_cv_host=$ac_cv_build |
---|
2095 | else |
---|
2096 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
---|
2097 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
---|
2098 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
---|
2099 | { (exit 1); exit 1; }; } |
---|
2100 | fi |
---|
2101 | |
---|
2102 | fi |
---|
2103 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
2104 | $as_echo "$ac_cv_host" >&6; } |
---|
2105 | case $ac_cv_host in |
---|
2106 | *-*-*) ;; |
---|
2107 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
---|
2108 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} |
---|
2109 | { (exit 1); exit 1; }; };; |
---|
2110 | esac |
---|
2111 | host=$ac_cv_host |
---|
2112 | ac_save_IFS=$IFS; IFS='-' |
---|
2113 | set x $ac_cv_host |
---|
2114 | shift |
---|
2115 | host_cpu=$1 |
---|
2116 | host_vendor=$2 |
---|
2117 | shift; shift |
---|
2118 | # Remember, the first character of IFS is used to create $*, |
---|
2119 | # except with old shells: |
---|
2120 | host_os=$* |
---|
2121 | IFS=$ac_save_IFS |
---|
2122 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
---|
2123 | |
---|
2124 | |
---|
2125 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
---|
2126 | $as_echo_n "checking target system type... " >&6; } |
---|
2127 | if test "${ac_cv_target+set}" = set; then |
---|
2128 | $as_echo_n "(cached) " >&6 |
---|
2129 | else |
---|
2130 | if test "x$target_alias" = x; then |
---|
2131 | ac_cv_target=$ac_cv_host |
---|
2132 | else |
---|
2133 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
---|
2134 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
---|
2135 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
---|
2136 | { (exit 1); exit 1; }; } |
---|
2137 | fi |
---|
2138 | |
---|
2139 | fi |
---|
2140 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
2141 | $as_echo "$ac_cv_target" >&6; } |
---|
2142 | case $ac_cv_target in |
---|
2143 | *-*-*) ;; |
---|
2144 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
---|
2145 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} |
---|
2146 | { (exit 1); exit 1; }; };; |
---|
2147 | esac |
---|
2148 | target=$ac_cv_target |
---|
2149 | ac_save_IFS=$IFS; IFS='-' |
---|
2150 | set x $ac_cv_target |
---|
2151 | shift |
---|
2152 | target_cpu=$1 |
---|
2153 | target_vendor=$2 |
---|
2154 | shift; shift |
---|
2155 | # Remember, the first character of IFS is used to create $*, |
---|
2156 | # except with old shells: |
---|
2157 | target_os=$* |
---|
2158 | IFS=$ac_save_IFS |
---|
2159 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
---|
2160 | |
---|
2161 | |
---|
2162 | # The aliases save the names the user supplied, while $host etc. |
---|
2163 | # will get canonicalized. |
---|
2164 | test -n "$target_alias" && |
---|
2165 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
2166 | NONENONEs,x,x, && |
---|
2167 | program_prefix=${target_alias}- |
---|
2168 | |
---|
2169 | |
---|
2170 | # Determine the name of the C compiler we're going to use |
---|
2171 | |
---|
2172 | # Check whether --enable-gcc was given. |
---|
2173 | if test "${enable_gcc+set}" = set; then |
---|
2174 | enableval=$enable_gcc; gcc_ok=$enableval |
---|
2175 | else |
---|
2176 | gcc_ok=no |
---|
2177 | fi |
---|
2178 | |
---|
2179 | |
---|
2180 | # We cannot set CC=g++ directly because many configuration test programs |
---|
2181 | # do not compile with g++. Hence, when the user specifies --enable-gcc=g++, |
---|
2182 | # we set CC=gcc during configuration, and then CC=g++ at the end. |
---|
2183 | # The same applies to icpc and icc. |
---|
2184 | if test "$gcc_ok" != no; then |
---|
2185 | case "$gcc_ok" in |
---|
2186 | yes | g++) |
---|
2187 | CC=gcc ;; |
---|
2188 | icpc) |
---|
2189 | CC=icc ;; |
---|
2190 | *) |
---|
2191 | CC=$gcc_ok |
---|
2192 | esac |
---|
2193 | else |
---|
2194 | if test -z "$CC" ; then |
---|
2195 | # Balakrishna Kumthekar <kumtheka@colorado.edu> |
---|
2196 | # As we do not support cc on RS6000, Cygwin and SunOS. |
---|
2197 | case "$target" in |
---|
2198 | rs6000-ibm-aix* | *-pc-cygwin32 | sparc-sun-sunos*) |
---|
2199 | CC=gcc ;; |
---|
2200 | *) |
---|
2201 | CC=cc ;; |
---|
2202 | esac |
---|
2203 | fi |
---|
2204 | fi |
---|
2205 | ac_ext=c |
---|
2206 | ac_cpp='$CPP $CPPFLAGS' |
---|
2207 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2208 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2209 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2210 | if test -n "$ac_tool_prefix"; then |
---|
2211 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2212 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2213 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2214 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2215 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2216 | $as_echo_n "(cached) " >&6 |
---|
2217 | else |
---|
2218 | if test -n "$CC"; then |
---|
2219 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2220 | else |
---|
2221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2222 | for as_dir in $PATH |
---|
2223 | do |
---|
2224 | IFS=$as_save_IFS |
---|
2225 | test -z "$as_dir" && as_dir=. |
---|
2226 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2227 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2228 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2229 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2230 | break 2 |
---|
2231 | fi |
---|
2232 | done |
---|
2233 | done |
---|
2234 | IFS=$as_save_IFS |
---|
2235 | |
---|
2236 | fi |
---|
2237 | fi |
---|
2238 | CC=$ac_cv_prog_CC |
---|
2239 | if test -n "$CC"; then |
---|
2240 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2241 | $as_echo "$CC" >&6; } |
---|
2242 | else |
---|
2243 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
2244 | $as_echo "no" >&6; } |
---|
2245 | fi |
---|
2246 | |
---|
2247 | |
---|
2248 | fi |
---|
2249 | if test -z "$ac_cv_prog_CC"; then |
---|
2250 | ac_ct_CC=$CC |
---|
2251 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2252 | set dummy gcc; ac_word=$2 |
---|
2253 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2254 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2255 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2256 | $as_echo_n "(cached) " >&6 |
---|
2257 | else |
---|
2258 | if test -n "$ac_ct_CC"; then |
---|
2259 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2260 | else |
---|
2261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2262 | for as_dir in $PATH |
---|
2263 | do |
---|
2264 | IFS=$as_save_IFS |
---|
2265 | test -z "$as_dir" && as_dir=. |
---|
2266 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2267 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2268 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2269 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2270 | break 2 |
---|
2271 | fi |
---|
2272 | done |
---|
2273 | done |
---|
2274 | IFS=$as_save_IFS |
---|
2275 | |
---|
2276 | fi |
---|
2277 | fi |
---|
2278 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2279 | if test -n "$ac_ct_CC"; then |
---|
2280 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2281 | $as_echo "$ac_ct_CC" >&6; } |
---|
2282 | else |
---|
2283 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
2284 | $as_echo "no" >&6; } |
---|
2285 | fi |
---|
2286 | |
---|
2287 | if test "x$ac_ct_CC" = x; then |
---|
2288 | CC="" |
---|
2289 | else |
---|
2290 | case $cross_compiling:$ac_tool_warned in |
---|
2291 | yes:) |
---|
2292 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2293 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2294 | ac_tool_warned=yes ;; |
---|
2295 | esac |
---|
2296 | CC=$ac_ct_CC |
---|
2297 | fi |
---|
2298 | else |
---|
2299 | CC="$ac_cv_prog_CC" |
---|
2300 | fi |
---|
2301 | |
---|
2302 | if test -z "$CC"; then |
---|
2303 | if test -n "$ac_tool_prefix"; then |
---|
2304 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2305 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2306 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2307 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2308 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2309 | $as_echo_n "(cached) " >&6 |
---|
2310 | else |
---|
2311 | if test -n "$CC"; then |
---|
2312 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2313 | else |
---|
2314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2315 | for as_dir in $PATH |
---|
2316 | do |
---|
2317 | IFS=$as_save_IFS |
---|
2318 | test -z "$as_dir" && as_dir=. |
---|
2319 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2320 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2321 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2322 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2323 | break 2 |
---|
2324 | fi |
---|
2325 | done |
---|
2326 | done |
---|
2327 | IFS=$as_save_IFS |
---|
2328 | |
---|
2329 | fi |
---|
2330 | fi |
---|
2331 | CC=$ac_cv_prog_CC |
---|
2332 | if test -n "$CC"; then |
---|
2333 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2334 | $as_echo "$CC" >&6; } |
---|
2335 | else |
---|
2336 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
2337 | $as_echo "no" >&6; } |
---|
2338 | fi |
---|
2339 | |
---|
2340 | |
---|
2341 | fi |
---|
2342 | fi |
---|
2343 | if test -z "$CC"; then |
---|
2344 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2345 | set dummy cc; ac_word=$2 |
---|
2346 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2347 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2348 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2349 | $as_echo_n "(cached) " >&6 |
---|
2350 | else |
---|
2351 | if test -n "$CC"; then |
---|
2352 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2353 | else |
---|
2354 | ac_prog_rejected=no |
---|
2355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2356 | for as_dir in $PATH |
---|
2357 | do |
---|
2358 | IFS=$as_save_IFS |
---|
2359 | test -z "$as_dir" && as_dir=. |
---|
2360 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2361 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2362 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2363 | ac_prog_rejected=yes |
---|
2364 | continue |
---|
2365 | fi |
---|
2366 | ac_cv_prog_CC="cc" |
---|
2367 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2368 | break 2 |
---|
2369 | fi |
---|
2370 | done |
---|
2371 | done |
---|
2372 | IFS=$as_save_IFS |
---|
2373 | |
---|
2374 | if test $ac_prog_rejected = yes; then |
---|
2375 | # We found a bogon in the path, so make sure we never use it. |
---|
2376 | set dummy $ac_cv_prog_CC |
---|
2377 | shift |
---|
2378 | if test $# != 0; then |
---|
2379 | # We chose a different compiler from the bogus one. |
---|
2380 | # However, it has the same basename, so the bogon will be chosen |
---|
2381 | # first if we set CC to just the basename; use the full file name. |
---|
2382 | shift |
---|
2383 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2384 | fi |
---|
2385 | fi |
---|
2386 | fi |
---|
2387 | fi |
---|
2388 | CC=$ac_cv_prog_CC |
---|
2389 | if test -n "$CC"; then |
---|
2390 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2391 | $as_echo "$CC" >&6; } |
---|
2392 | else |
---|
2393 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
2394 | $as_echo "no" >&6; } |
---|
2395 | fi |
---|
2396 | |
---|
2397 | |
---|
2398 | fi |
---|
2399 | if test -z "$CC"; then |
---|
2400 | if test -n "$ac_tool_prefix"; then |
---|
2401 | for ac_prog in cl.exe |
---|
2402 | do |
---|
2403 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2404 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2405 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2406 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2407 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2408 | $as_echo_n "(cached) " >&6 |
---|
2409 | else |
---|
2410 | if test -n "$CC"; then |
---|
2411 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2412 | else |
---|
2413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2414 | for as_dir in $PATH |
---|
2415 | do |
---|
2416 | IFS=$as_save_IFS |
---|
2417 | test -z "$as_dir" && as_dir=. |
---|
2418 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2419 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2420 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2421 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2422 | break 2 |
---|
2423 | fi |
---|
2424 | done |
---|
2425 | done |
---|
2426 | IFS=$as_save_IFS |
---|
2427 | |
---|
2428 | fi |
---|
2429 | fi |
---|
2430 | CC=$ac_cv_prog_CC |
---|
2431 | if test -n "$CC"; then |
---|
2432 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2433 | $as_echo "$CC" >&6; } |
---|
2434 | else |
---|
2435 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
2436 | $as_echo "no" >&6; } |
---|
2437 | fi |
---|
2438 | |
---|
2439 | |
---|
2440 | test -n "$CC" && break |
---|
2441 | done |
---|
2442 | fi |
---|
2443 | if test -z "$CC"; then |
---|
2444 | ac_ct_CC=$CC |
---|
2445 | for ac_prog in cl.exe |
---|
2446 | do |
---|
2447 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2448 | set dummy $ac_prog; ac_word=$2 |
---|
2449 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2450 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2451 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2452 | $as_echo_n "(cached) " >&6 |
---|
2453 | else |
---|
2454 | if test -n "$ac_ct_CC"; then |
---|
2455 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2456 | else |
---|
2457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2458 | for as_dir in $PATH |
---|
2459 | do |
---|
2460 | IFS=$as_save_IFS |
---|
2461 | test -z "$as_dir" && as_dir=. |
---|
2462 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2463 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2464 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2465 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2466 | break 2 |
---|
2467 | fi |
---|
2468 | done |
---|
2469 | done |
---|
2470 | IFS=$as_save_IFS |
---|
2471 | |
---|
2472 | fi |
---|
2473 | fi |
---|
2474 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2475 | if test -n "$ac_ct_CC"; then |
---|
2476 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2477 | $as_echo "$ac_ct_CC" >&6; } |
---|
2478 | else |
---|
2479 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
2480 | $as_echo "no" >&6; } |
---|
2481 | fi |
---|
2482 | |
---|
2483 | |
---|
2484 | test -n "$ac_ct_CC" && break |
---|
2485 | done |
---|
2486 | |
---|
2487 | if test "x$ac_ct_CC" = x; then |
---|
2488 | CC="" |
---|
2489 | else |
---|
2490 | case $cross_compiling:$ac_tool_warned in |
---|
2491 | yes:) |
---|
2492 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2493 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2494 | ac_tool_warned=yes ;; |
---|
2495 | esac |
---|
2496 | CC=$ac_ct_CC |
---|
2497 | fi |
---|
2498 | fi |
---|
2499 | |
---|
2500 | fi |
---|
2501 | |
---|
2502 | |
---|
2503 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
2504 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2505 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2506 | See \`config.log' for more details." >&5 |
---|
2507 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2508 | See \`config.log' for more details." >&2;} |
---|
2509 | { (exit 1); exit 1; }; }; } |
---|
2510 | |
---|
2511 | # Provide some information about the compiler. |
---|
2512 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
---|
2513 | set X $ac_compile |
---|
2514 | ac_compiler=$2 |
---|
2515 | { (ac_try="$ac_compiler --version >&5" |
---|
2516 | case "(($ac_try" in |
---|
2517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2518 | *) ac_try_echo=$ac_try;; |
---|
2519 | esac |
---|
2520 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
2521 | $as_echo "$ac_try_echo") >&5 |
---|
2522 | (eval "$ac_compiler --version >&5") 2>&5 |
---|
2523 | ac_status=$? |
---|
2524 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2525 | (exit $ac_status); } |
---|
2526 | { (ac_try="$ac_compiler -v >&5" |
---|
2527 | case "(($ac_try" in |
---|
2528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2529 | *) ac_try_echo=$ac_try;; |
---|
2530 | esac |
---|
2531 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
2532 | $as_echo "$ac_try_echo") >&5 |
---|
2533 | (eval "$ac_compiler -v >&5") 2>&5 |
---|
2534 | ac_status=$? |
---|
2535 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2536 | (exit $ac_status); } |
---|
2537 | { (ac_try="$ac_compiler -V >&5" |
---|
2538 | case "(($ac_try" in |
---|
2539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2540 | *) ac_try_echo=$ac_try;; |
---|
2541 | esac |
---|
2542 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
2543 | $as_echo "$ac_try_echo") >&5 |
---|
2544 | (eval "$ac_compiler -V >&5") 2>&5 |
---|
2545 | ac_status=$? |
---|
2546 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2547 | (exit $ac_status); } |
---|
2548 | |
---|
2549 | cat >conftest.$ac_ext <<_ACEOF |
---|
2550 | /* confdefs.h. */ |
---|
2551 | _ACEOF |
---|
2552 | cat confdefs.h >>conftest.$ac_ext |
---|
2553 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2554 | /* end confdefs.h. */ |
---|
2555 | |
---|
2556 | int |
---|
2557 | main () |
---|
2558 | { |
---|
2559 | |
---|
2560 | ; |
---|
2561 | return 0; |
---|
2562 | } |
---|
2563 | _ACEOF |
---|
2564 | ac_clean_files_save=$ac_clean_files |
---|
2565 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
2566 | # Try to create an executable without -o first, disregard a.out. |
---|
2567 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2568 | # of exeext. |
---|
2569 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
2570 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
---|
2571 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2572 | |
---|
2573 | # The possible output files: |
---|
2574 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
2575 | |
---|
2576 | ac_rmfiles= |
---|
2577 | for ac_file in $ac_files |
---|
2578 | do |
---|
2579 | case $ac_file in |
---|
2580 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
2581 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
2582 | esac |
---|
2583 | done |
---|
2584 | rm -f $ac_rmfiles |
---|
2585 | |
---|
2586 | if { (ac_try="$ac_link_default" |
---|
2587 | case "(($ac_try" in |
---|
2588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2589 | *) ac_try_echo=$ac_try;; |
---|
2590 | esac |
---|
2591 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
2592 | $as_echo "$ac_try_echo") >&5 |
---|
2593 | (eval "$ac_link_default") 2>&5 |
---|
2594 | ac_status=$? |
---|
2595 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2596 | (exit $ac_status); }; then |
---|
2597 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
2598 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
2599 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
2600 | # so that the user can short-circuit this test for compilers unknown to |
---|
2601 | # Autoconf. |
---|
2602 | for ac_file in $ac_files '' |
---|
2603 | do |
---|
2604 | test -f "$ac_file" || continue |
---|
2605 | case $ac_file in |
---|
2606 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
2607 | ;; |
---|
2608 | [ab].out ) |
---|
2609 | # We found the default executable, but exeext='' is most |
---|
2610 | # certainly right. |
---|
2611 | break;; |
---|
2612 | *.* ) |
---|
2613 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
2614 | then :; else |
---|
2615 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2616 | fi |
---|
2617 | # We set ac_cv_exeext here because the later test for it is not |
---|
2618 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
2619 | # argument, so we may need to know it at that point already. |
---|
2620 | # Even if this section looks crufty: it has the advantage of |
---|
2621 | # actually working. |
---|
2622 | break;; |
---|
2623 | * ) |
---|
2624 | break;; |
---|
2625 | esac |
---|
2626 | done |
---|
2627 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
2628 | |
---|
2629 | else |
---|
2630 | ac_file='' |
---|
2631 | fi |
---|
2632 | |
---|
2633 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2634 | $as_echo "$ac_file" >&6; } |
---|
2635 | if test -z "$ac_file"; then |
---|
2636 | $as_echo "$as_me: failed program was:" >&5 |
---|
2637 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2638 | |
---|
2639 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
2640 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2641 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
2642 | See \`config.log' for more details." >&5 |
---|
2643 | $as_echo "$as_me: error: C compiler cannot create executables |
---|
2644 | See \`config.log' for more details." >&2;} |
---|
2645 | { (exit 77); exit 77; }; }; } |
---|
2646 | fi |
---|
2647 | |
---|
2648 | ac_exeext=$ac_cv_exeext |
---|
2649 | |
---|
2650 | # Check that the compiler produces executables we can run. If not, either |
---|
2651 | # the compiler is broken, or we cross compile. |
---|
2652 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
2653 | $as_echo_n "checking whether the C compiler works... " >&6; } |
---|
2654 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2655 | # If not cross compiling, check that we can run a simple program. |
---|
2656 | if test "$cross_compiling" != yes; then |
---|
2657 | if { ac_try='./$ac_file' |
---|
2658 | { (case "(($ac_try" in |
---|
2659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2660 | *) ac_try_echo=$ac_try;; |
---|
2661 | esac |
---|
2662 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
2663 | $as_echo "$ac_try_echo") >&5 |
---|
2664 | (eval "$ac_try") 2>&5 |
---|
2665 | ac_status=$? |
---|
2666 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2667 | (exit $ac_status); }; }; then |
---|
2668 | cross_compiling=no |
---|
2669 | else |
---|
2670 | if test "$cross_compiling" = maybe; then |
---|
2671 | cross_compiling=yes |
---|
2672 | else |
---|
2673 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
2674 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2675 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
2676 | If you meant to cross compile, use \`--host'. |
---|
2677 | See \`config.log' for more details." >&5 |
---|
2678 | $as_echo "$as_me: error: cannot run C compiled programs. |
---|
2679 | If you meant to cross compile, use \`--host'. |
---|
2680 | See \`config.log' for more details." >&2;} |
---|
2681 | { (exit 1); exit 1; }; }; } |
---|
2682 | fi |
---|
2683 | fi |
---|
2684 | fi |
---|
2685 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
---|
2686 | $as_echo "yes" >&6; } |
---|
2687 | |
---|
2688 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
2689 | ac_clean_files=$ac_clean_files_save |
---|
2690 | # Check that the compiler produces executables we can run. If not, either |
---|
2691 | # the compiler is broken, or we cross compile. |
---|
2692 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2693 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
2694 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2695 | $as_echo "$cross_compiling" >&6; } |
---|
2696 | |
---|
2697 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2698 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
2699 | if { (ac_try="$ac_link" |
---|
2700 | case "(($ac_try" in |
---|
2701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2702 | *) ac_try_echo=$ac_try;; |
---|
2703 | esac |
---|
2704 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
2705 | $as_echo "$ac_try_echo") >&5 |
---|
2706 | (eval "$ac_link") 2>&5 |
---|
2707 | ac_status=$? |
---|
2708 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2709 | (exit $ac_status); }; then |
---|
2710 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2711 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2712 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2713 | # `rm'. |
---|
2714 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2715 | test -f "$ac_file" || continue |
---|
2716 | case $ac_file in |
---|
2717 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
2718 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2719 | break;; |
---|
2720 | * ) break;; |
---|
2721 | esac |
---|
2722 | done |
---|
2723 | else |
---|
2724 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
2725 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2726 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2727 | See \`config.log' for more details." >&5 |
---|
2728 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2729 | See \`config.log' for more details." >&2;} |
---|
2730 | { (exit 1); exit 1; }; }; } |
---|
2731 | fi |
---|
2732 | |
---|
2733 | rm -f conftest$ac_cv_exeext |
---|
2734 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2735 | $as_echo "$ac_cv_exeext" >&6; } |
---|
2736 | |
---|
2737 | rm -f conftest.$ac_ext |
---|
2738 | EXEEXT=$ac_cv_exeext |
---|
2739 | ac_exeext=$EXEEXT |
---|
2740 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2741 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
2742 | if test "${ac_cv_objext+set}" = set; then |
---|
2743 | $as_echo_n "(cached) " >&6 |
---|
2744 | else |
---|
2745 | cat >conftest.$ac_ext <<_ACEOF |
---|
2746 | /* confdefs.h. */ |
---|
2747 | _ACEOF |
---|
2748 | cat confdefs.h >>conftest.$ac_ext |
---|
2749 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2750 | /* end confdefs.h. */ |
---|
2751 | |
---|
2752 | int |
---|
2753 | main () |
---|
2754 | { |
---|
2755 | |
---|
2756 | ; |
---|
2757 | return 0; |
---|
2758 | } |
---|
2759 | _ACEOF |
---|
2760 | rm -f conftest.o conftest.obj |
---|
2761 | if { (ac_try="$ac_compile" |
---|
2762 | case "(($ac_try" in |
---|
2763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2764 | *) ac_try_echo=$ac_try;; |
---|
2765 | esac |
---|
2766 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
2767 | $as_echo "$ac_try_echo") >&5 |
---|
2768 | (eval "$ac_compile") 2>&5 |
---|
2769 | ac_status=$? |
---|
2770 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2771 | (exit $ac_status); }; then |
---|
2772 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
2773 | test -f "$ac_file" || continue; |
---|
2774 | case $ac_file in |
---|
2775 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
2776 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2777 | break;; |
---|
2778 | esac |
---|
2779 | done |
---|
2780 | else |
---|
2781 | $as_echo "$as_me: failed program was:" >&5 |
---|
2782 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2783 | |
---|
2784 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
2785 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2786 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2787 | See \`config.log' for more details." >&5 |
---|
2788 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2789 | See \`config.log' for more details." >&2;} |
---|
2790 | { (exit 1); exit 1; }; }; } |
---|
2791 | fi |
---|
2792 | |
---|
2793 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2794 | fi |
---|
2795 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2796 | $as_echo "$ac_cv_objext" >&6; } |
---|
2797 | OBJEXT=$ac_cv_objext |
---|
2798 | ac_objext=$OBJEXT |
---|
2799 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2800 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
2801 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2802 | $as_echo_n "(cached) " >&6 |
---|
2803 | else |
---|
2804 | cat >conftest.$ac_ext <<_ACEOF |
---|
2805 | /* confdefs.h. */ |
---|
2806 | _ACEOF |
---|
2807 | cat confdefs.h >>conftest.$ac_ext |
---|
2808 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2809 | /* end confdefs.h. */ |
---|
2810 | |
---|
2811 | int |
---|
2812 | main () |
---|
2813 | { |
---|
2814 | #ifndef __GNUC__ |
---|
2815 | choke me |
---|
2816 | #endif |
---|
2817 | |
---|
2818 | ; |
---|
2819 | return 0; |
---|
2820 | } |
---|
2821 | _ACEOF |
---|
2822 | rm -f conftest.$ac_objext |
---|
2823 | if { (ac_try="$ac_compile" |
---|
2824 | case "(($ac_try" in |
---|
2825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2826 | *) ac_try_echo=$ac_try;; |
---|
2827 | esac |
---|
2828 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
2829 | $as_echo "$ac_try_echo") >&5 |
---|
2830 | (eval "$ac_compile") 2>conftest.er1 |
---|
2831 | ac_status=$? |
---|
2832 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2833 | rm -f conftest.er1 |
---|
2834 | cat conftest.err >&5 |
---|
2835 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2836 | (exit $ac_status); } && { |
---|
2837 | test -z "$ac_c_werror_flag" || |
---|
2838 | test ! -s conftest.err |
---|
2839 | } && test -s conftest.$ac_objext; then |
---|
2840 | ac_compiler_gnu=yes |
---|
2841 | else |
---|
2842 | $as_echo "$as_me: failed program was:" >&5 |
---|
2843 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2844 | |
---|
2845 | ac_compiler_gnu=no |
---|
2846 | fi |
---|
2847 | |
---|
2848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2849 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2850 | |
---|
2851 | fi |
---|
2852 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2853 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
2854 | if test $ac_compiler_gnu = yes; then |
---|
2855 | GCC=yes |
---|
2856 | else |
---|
2857 | GCC= |
---|
2858 | fi |
---|
2859 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2860 | ac_save_CFLAGS=$CFLAGS |
---|
2861 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2862 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
2863 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2864 | $as_echo_n "(cached) " >&6 |
---|
2865 | else |
---|
2866 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
2867 | ac_c_werror_flag=yes |
---|
2868 | ac_cv_prog_cc_g=no |
---|
2869 | CFLAGS="-g" |
---|
2870 | cat >conftest.$ac_ext <<_ACEOF |
---|
2871 | /* confdefs.h. */ |
---|
2872 | _ACEOF |
---|
2873 | cat confdefs.h >>conftest.$ac_ext |
---|
2874 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2875 | /* end confdefs.h. */ |
---|
2876 | |
---|
2877 | int |
---|
2878 | main () |
---|
2879 | { |
---|
2880 | |
---|
2881 | ; |
---|
2882 | return 0; |
---|
2883 | } |
---|
2884 | _ACEOF |
---|
2885 | rm -f conftest.$ac_objext |
---|
2886 | if { (ac_try="$ac_compile" |
---|
2887 | case "(($ac_try" in |
---|
2888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2889 | *) ac_try_echo=$ac_try;; |
---|
2890 | esac |
---|
2891 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
2892 | $as_echo "$ac_try_echo") >&5 |
---|
2893 | (eval "$ac_compile") 2>conftest.er1 |
---|
2894 | ac_status=$? |
---|
2895 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2896 | rm -f conftest.er1 |
---|
2897 | cat conftest.err >&5 |
---|
2898 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2899 | (exit $ac_status); } && { |
---|
2900 | test -z "$ac_c_werror_flag" || |
---|
2901 | test ! -s conftest.err |
---|
2902 | } && test -s conftest.$ac_objext; then |
---|
2903 | ac_cv_prog_cc_g=yes |
---|
2904 | else |
---|
2905 | $as_echo "$as_me: failed program was:" >&5 |
---|
2906 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2907 | |
---|
2908 | CFLAGS="" |
---|
2909 | cat >conftest.$ac_ext <<_ACEOF |
---|
2910 | /* confdefs.h. */ |
---|
2911 | _ACEOF |
---|
2912 | cat confdefs.h >>conftest.$ac_ext |
---|
2913 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2914 | /* end confdefs.h. */ |
---|
2915 | |
---|
2916 | int |
---|
2917 | main () |
---|
2918 | { |
---|
2919 | |
---|
2920 | ; |
---|
2921 | return 0; |
---|
2922 | } |
---|
2923 | _ACEOF |
---|
2924 | rm -f conftest.$ac_objext |
---|
2925 | if { (ac_try="$ac_compile" |
---|
2926 | case "(($ac_try" in |
---|
2927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2928 | *) ac_try_echo=$ac_try;; |
---|
2929 | esac |
---|
2930 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
2931 | $as_echo "$ac_try_echo") >&5 |
---|
2932 | (eval "$ac_compile") 2>conftest.er1 |
---|
2933 | ac_status=$? |
---|
2934 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2935 | rm -f conftest.er1 |
---|
2936 | cat conftest.err >&5 |
---|
2937 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2938 | (exit $ac_status); } && { |
---|
2939 | test -z "$ac_c_werror_flag" || |
---|
2940 | test ! -s conftest.err |
---|
2941 | } && test -s conftest.$ac_objext; then |
---|
2942 | : |
---|
2943 | else |
---|
2944 | $as_echo "$as_me: failed program was:" >&5 |
---|
2945 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2946 | |
---|
2947 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
2948 | CFLAGS="-g" |
---|
2949 | cat >conftest.$ac_ext <<_ACEOF |
---|
2950 | /* confdefs.h. */ |
---|
2951 | _ACEOF |
---|
2952 | cat confdefs.h >>conftest.$ac_ext |
---|
2953 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2954 | /* end confdefs.h. */ |
---|
2955 | |
---|
2956 | int |
---|
2957 | main () |
---|
2958 | { |
---|
2959 | |
---|
2960 | ; |
---|
2961 | return 0; |
---|
2962 | } |
---|
2963 | _ACEOF |
---|
2964 | rm -f conftest.$ac_objext |
---|
2965 | if { (ac_try="$ac_compile" |
---|
2966 | case "(($ac_try" in |
---|
2967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2968 | *) ac_try_echo=$ac_try;; |
---|
2969 | esac |
---|
2970 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
2971 | $as_echo "$ac_try_echo") >&5 |
---|
2972 | (eval "$ac_compile") 2>conftest.er1 |
---|
2973 | ac_status=$? |
---|
2974 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2975 | rm -f conftest.er1 |
---|
2976 | cat conftest.err >&5 |
---|
2977 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2978 | (exit $ac_status); } && { |
---|
2979 | test -z "$ac_c_werror_flag" || |
---|
2980 | test ! -s conftest.err |
---|
2981 | } && test -s conftest.$ac_objext; then |
---|
2982 | ac_cv_prog_cc_g=yes |
---|
2983 | else |
---|
2984 | $as_echo "$as_me: failed program was:" >&5 |
---|
2985 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2986 | |
---|
2987 | |
---|
2988 | fi |
---|
2989 | |
---|
2990 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2991 | fi |
---|
2992 | |
---|
2993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2994 | fi |
---|
2995 | |
---|
2996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2997 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
2998 | fi |
---|
2999 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
3000 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
3001 | if test "$ac_test_CFLAGS" = set; then |
---|
3002 | CFLAGS=$ac_save_CFLAGS |
---|
3003 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3004 | if test "$GCC" = yes; then |
---|
3005 | CFLAGS="-g -O2" |
---|
3006 | else |
---|
3007 | CFLAGS="-g" |
---|
3008 | fi |
---|
3009 | else |
---|
3010 | if test "$GCC" = yes; then |
---|
3011 | CFLAGS="-O2" |
---|
3012 | else |
---|
3013 | CFLAGS= |
---|
3014 | fi |
---|
3015 | fi |
---|
3016 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
---|
3017 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
3018 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
---|
3019 | $as_echo_n "(cached) " >&6 |
---|
3020 | else |
---|
3021 | ac_cv_prog_cc_c89=no |
---|
3022 | ac_save_CC=$CC |
---|
3023 | cat >conftest.$ac_ext <<_ACEOF |
---|
3024 | /* confdefs.h. */ |
---|
3025 | _ACEOF |
---|
3026 | cat confdefs.h >>conftest.$ac_ext |
---|
3027 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3028 | /* end confdefs.h. */ |
---|
3029 | #include <stdarg.h> |
---|
3030 | #include <stdio.h> |
---|
3031 | #include <sys/types.h> |
---|
3032 | #include <sys/stat.h> |
---|
3033 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3034 | struct buf { int x; }; |
---|
3035 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3036 | static char *e (p, i) |
---|
3037 | char **p; |
---|
3038 | int i; |
---|
3039 | { |
---|
3040 | return p[i]; |
---|
3041 | } |
---|
3042 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3043 | { |
---|
3044 | char *s; |
---|
3045 | va_list v; |
---|
3046 | va_start (v,p); |
---|
3047 | s = g (p, va_arg (v,int)); |
---|
3048 | va_end (v); |
---|
3049 | return s; |
---|
3050 | } |
---|
3051 | |
---|
3052 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3053 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3054 | These don't provoke an error unfortunately, instead are silently treated |
---|
3055 | as 'x'. The following induces an error, until -std is added to get |
---|
3056 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3057 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3058 | that's true only with -std. */ |
---|
3059 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3060 | |
---|
3061 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
3062 | inside strings and character constants. */ |
---|
3063 | #define FOO(x) 'x' |
---|
3064 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
3065 | |
---|
3066 | int test (int i, double x); |
---|
3067 | struct s1 {int (*f) (int a);}; |
---|
3068 | struct s2 {int (*f) (double a);}; |
---|
3069 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3070 | int argc; |
---|
3071 | char **argv; |
---|
3072 | int |
---|
3073 | main () |
---|
3074 | { |
---|
3075 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3076 | ; |
---|
3077 | return 0; |
---|
3078 | } |
---|
3079 | _ACEOF |
---|
3080 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
3081 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3082 | do |
---|
3083 | CC="$ac_save_CC $ac_arg" |
---|
3084 | rm -f conftest.$ac_objext |
---|
3085 | if { (ac_try="$ac_compile" |
---|
3086 | case "(($ac_try" in |
---|
3087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3088 | *) ac_try_echo=$ac_try;; |
---|
3089 | esac |
---|
3090 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3091 | $as_echo "$ac_try_echo") >&5 |
---|
3092 | (eval "$ac_compile") 2>conftest.er1 |
---|
3093 | ac_status=$? |
---|
3094 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3095 | rm -f conftest.er1 |
---|
3096 | cat conftest.err >&5 |
---|
3097 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3098 | (exit $ac_status); } && { |
---|
3099 | test -z "$ac_c_werror_flag" || |
---|
3100 | test ! -s conftest.err |
---|
3101 | } && test -s conftest.$ac_objext; then |
---|
3102 | ac_cv_prog_cc_c89=$ac_arg |
---|
3103 | else |
---|
3104 | $as_echo "$as_me: failed program was:" >&5 |
---|
3105 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3106 | |
---|
3107 | |
---|
3108 | fi |
---|
3109 | |
---|
3110 | rm -f core conftest.err conftest.$ac_objext |
---|
3111 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
3112 | done |
---|
3113 | rm -f conftest.$ac_ext |
---|
3114 | CC=$ac_save_CC |
---|
3115 | |
---|
3116 | fi |
---|
3117 | # AC_CACHE_VAL |
---|
3118 | case "x$ac_cv_prog_cc_c89" in |
---|
3119 | x) |
---|
3120 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3121 | $as_echo "none needed" >&6; } ;; |
---|
3122 | xno) |
---|
3123 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
---|
3124 | $as_echo "unsupported" >&6; } ;; |
---|
3125 | *) |
---|
3126 | CC="$CC $ac_cv_prog_cc_c89" |
---|
3127 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
---|
3128 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
3129 | esac |
---|
3130 | |
---|
3131 | |
---|
3132 | ac_ext=c |
---|
3133 | ac_cpp='$CPP $CPPFLAGS' |
---|
3134 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3135 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3136 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3137 | |
---|
3138 | |
---|
3139 | # Icc fools AC_PROG_CC into believing it is gcc because it defines __GNUC__. |
---|
3140 | # To avoid this confusion we add the following test. |
---|
3141 | if test "$CC" = icc; then |
---|
3142 | GCC= |
---|
3143 | fi |
---|
3144 | |
---|
3145 | # Check whether --enable-64 was given. |
---|
3146 | if test "${enable_64+set}" = set; then |
---|
3147 | enableval=$enable_64; use_sixty_four=$enableval |
---|
3148 | else |
---|
3149 | use_sixty_four=no |
---|
3150 | fi |
---|
3151 | |
---|
3152 | |
---|
3153 | # Gcc does not support 32-bit pointers on the Alphas. |
---|
3154 | if test "$gcc_ok" != no; then |
---|
3155 | use_sixty_four=yes |
---|
3156 | fi |
---|
3157 | |
---|
3158 | |
---|
3159 | # Balakrisha Kumthekar <kumtheka@colorado.edu>: making a special case |
---|
3160 | # for ultrix install, since it's annoying about setting groupids. |
---|
3161 | case "$target" in |
---|
3162 | mips-dec-ultrix*) |
---|
3163 | INSTALL="helpers/install-sh -c" |
---|
3164 | INSTALL_PROGRAM="\${INSTALL}" |
---|
3165 | INSTALL_DATA="\${INSTALL} -m 644";; |
---|
3166 | |
---|
3167 | *) |
---|
3168 | # Find a good install program. We prefer a C program (faster), |
---|
3169 | # so one script is as good as another. But avoid the broken or |
---|
3170 | # incompatible versions: |
---|
3171 | # SysV /etc/install, /usr/sbin/install |
---|
3172 | # SunOS /usr/etc/install |
---|
3173 | # IRIX /sbin/install |
---|
3174 | # AIX /bin/install |
---|
3175 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
3176 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
3177 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
3178 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
3179 | # OS/2's system install, which has a completely different semantic |
---|
3180 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
3181 | # Reject install programs that cannot install multiple files. |
---|
3182 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
3183 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
3184 | if test -z "$INSTALL"; then |
---|
3185 | if test "${ac_cv_path_install+set}" = set; then |
---|
3186 | $as_echo_n "(cached) " >&6 |
---|
3187 | else |
---|
3188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3189 | for as_dir in $PATH |
---|
3190 | do |
---|
3191 | IFS=$as_save_IFS |
---|
3192 | test -z "$as_dir" && as_dir=. |
---|
3193 | # Account for people who put trailing slashes in PATH elements. |
---|
3194 | case $as_dir/ in |
---|
3195 | ./ | .// | /cC/* | \ |
---|
3196 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
3197 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
3198 | /usr/ucb/* ) ;; |
---|
3199 | *) |
---|
3200 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
3201 | # Don't use installbsd from OSF since it installs stuff as root |
---|
3202 | # by default. |
---|
3203 | for ac_prog in ginstall scoinst install; do |
---|
3204 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3205 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
---|
3206 | if test $ac_prog = install && |
---|
3207 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
3208 | # AIX install. It has an incompatible calling convention. |
---|
3209 | : |
---|
3210 | elif test $ac_prog = install && |
---|
3211 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
3212 | # program-specific install script used by HP pwplus--don't use. |
---|
3213 | : |
---|
3214 | else |
---|
3215 | rm -rf conftest.one conftest.two conftest.dir |
---|
3216 | echo one > conftest.one |
---|
3217 | echo two > conftest.two |
---|
3218 | mkdir conftest.dir |
---|
3219 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
3220 | test -s conftest.one && test -s conftest.two && |
---|
3221 | test -s conftest.dir/conftest.one && |
---|
3222 | test -s conftest.dir/conftest.two |
---|
3223 | then |
---|
3224 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
3225 | break 3 |
---|
3226 | fi |
---|
3227 | fi |
---|
3228 | fi |
---|
3229 | done |
---|
3230 | done |
---|
3231 | ;; |
---|
3232 | esac |
---|
3233 | |
---|
3234 | done |
---|
3235 | IFS=$as_save_IFS |
---|
3236 | |
---|
3237 | rm -rf conftest.one conftest.two conftest.dir |
---|
3238 | |
---|
3239 | fi |
---|
3240 | if test "${ac_cv_path_install+set}" = set; then |
---|
3241 | INSTALL=$ac_cv_path_install |
---|
3242 | else |
---|
3243 | # As a last resort, use the slow shell script. Don't cache a |
---|
3244 | # value for INSTALL within a source directory, because that will |
---|
3245 | # break other packages using the cache if that directory is |
---|
3246 | # removed, or if the value is a relative name. |
---|
3247 | INSTALL=$ac_install_sh |
---|
3248 | fi |
---|
3249 | fi |
---|
3250 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
3251 | $as_echo "$INSTALL" >&6; } |
---|
3252 | |
---|
3253 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
3254 | # It thinks the first close brace ends the variable substitution. |
---|
3255 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
3256 | |
---|
3257 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
3258 | |
---|
3259 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
3260 | ;; |
---|
3261 | esac |
---|
3262 | |
---|
3263 | # Determine the compiler flags to use |
---|
3264 | |
---|
3265 | DEBUG_CFLAGS="-g" |
---|
3266 | DEBUG_LDFLAGS="" |
---|
3267 | |
---|
3268 | case "$target" in |
---|
3269 | |
---|
3270 | i686-pc-linux-gnu) |
---|
3271 | # Linux with Intel compiler |
---|
3272 | # -ansi: ANSI C conformance |
---|
3273 | # -ip: inter-procedural optimization |
---|
3274 | OPTIMIZE_CFLAGS="-g -O3 -ansi -ip" |
---|
3275 | ;; |
---|
3276 | |
---|
3277 | sparc-sun-solaris* | i386-pc-solaris*) |
---|
3278 | # Sparc and X86 Solaris: |
---|
3279 | # -xO3: Highest safe level of optimization |
---|
3280 | # -native: Optimize for the native processor (if supported) |
---|
3281 | # -dalign: Generate double-word load/store for performance |
---|
3282 | # (only for SPARC) |
---|
3283 | # and other arcane compilation flags. |
---|
3284 | if test "$GCC" = yes; then |
---|
3285 | OPTIMIZE_CFLAGS="-O" |
---|
3286 | else |
---|
3287 | case "$target" in |
---|
3288 | sparc-sun-solaris*) |
---|
3289 | ALIGN=" -dalign" ;; |
---|
3290 | *) |
---|
3291 | ALIGN="" ;; |
---|
3292 | esac |
---|
3293 | { $as_echo "$as_me:$LINENO: checking for -native" >&5 |
---|
3294 | $as_echo_n "checking for -native... " >&6; } |
---|
3295 | CFLAGS="-xO3 -native$ALIGN" |
---|
3296 | |
---|
3297 | if test "${ac_cv_have_native+set}" = set; then |
---|
3298 | $as_echo_n "(cached) " >&6 |
---|
3299 | else |
---|
3300 | if test "$cross_compiling" = yes; then |
---|
3301 | ac_cv_have_native=no |
---|
3302 | else |
---|
3303 | cat >conftest.$ac_ext <<_ACEOF |
---|
3304 | /* confdefs.h. */ |
---|
3305 | _ACEOF |
---|
3306 | cat confdefs.h >>conftest.$ac_ext |
---|
3307 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3308 | /* end confdefs.h. */ |
---|
3309 | |
---|
3310 | main(){exit(0);} |
---|
3311 | |
---|
3312 | _ACEOF |
---|
3313 | rm -f conftest$ac_exeext |
---|
3314 | if { (ac_try="$ac_link" |
---|
3315 | case "(($ac_try" in |
---|
3316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3317 | *) ac_try_echo=$ac_try;; |
---|
3318 | esac |
---|
3319 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3320 | $as_echo "$ac_try_echo") >&5 |
---|
3321 | (eval "$ac_link") 2>&5 |
---|
3322 | ac_status=$? |
---|
3323 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3324 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3325 | { (case "(($ac_try" in |
---|
3326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3327 | *) ac_try_echo=$ac_try;; |
---|
3328 | esac |
---|
3329 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3330 | $as_echo "$ac_try_echo") >&5 |
---|
3331 | (eval "$ac_try") 2>&5 |
---|
3332 | ac_status=$? |
---|
3333 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3334 | (exit $ac_status); }; }; then |
---|
3335 | ac_cv_have_native=yes |
---|
3336 | else |
---|
3337 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
3338 | $as_echo "$as_me: failed program was:" >&5 |
---|
3339 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3340 | |
---|
3341 | ( exit $ac_status ) |
---|
3342 | ac_cv_have_native=no |
---|
3343 | fi |
---|
3344 | rm -rf conftest.dSYM |
---|
3345 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3346 | fi |
---|
3347 | |
---|
3348 | |
---|
3349 | fi |
---|
3350 | |
---|
3351 | if test $ac_cv_have_native = yes ; then |
---|
3352 | { $as_echo "$as_me:$LINENO: result: working" >&5 |
---|
3353 | $as_echo "working" >&6; } |
---|
3354 | OPTIMIZE_CFLAGS="-xO3 -native$ALIGN" |
---|
3355 | else |
---|
3356 | { $as_echo "$as_me:$LINENO: result: broken" >&5 |
---|
3357 | $as_echo "broken" >&6; } |
---|
3358 | { $as_echo "$as_me:$LINENO: checking for fallback optimization flags" >&5 |
---|
3359 | $as_echo_n "checking for fallback optimization flags... " >&6; } |
---|
3360 | CFLAGS="-xO3 -fns -fsimple=2$ALIGN -ftrap=%none -xlibmil" |
---|
3361 | if test "${ac_cv_have_fallback+set}" = set; then |
---|
3362 | $as_echo_n "(cached) " >&6 |
---|
3363 | else |
---|
3364 | if test "$cross_compiling" = yes; then |
---|
3365 | ac_cv_have_fallback=no |
---|
3366 | else |
---|
3367 | cat >conftest.$ac_ext <<_ACEOF |
---|
3368 | /* confdefs.h. */ |
---|
3369 | _ACEOF |
---|
3370 | cat confdefs.h >>conftest.$ac_ext |
---|
3371 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3372 | /* end confdefs.h. */ |
---|
3373 | |
---|
3374 | main(){exit(0);} |
---|
3375 | |
---|
3376 | _ACEOF |
---|
3377 | rm -f conftest$ac_exeext |
---|
3378 | if { (ac_try="$ac_link" |
---|
3379 | case "(($ac_try" in |
---|
3380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3381 | *) ac_try_echo=$ac_try;; |
---|
3382 | esac |
---|
3383 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3384 | $as_echo "$ac_try_echo") >&5 |
---|
3385 | (eval "$ac_link") 2>&5 |
---|
3386 | ac_status=$? |
---|
3387 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3388 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
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_try") 2>&5 |
---|
3396 | ac_status=$? |
---|
3397 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3398 | (exit $ac_status); }; }; then |
---|
3399 | ac_cv_have_fallback=yes |
---|
3400 | else |
---|
3401 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
3402 | $as_echo "$as_me: failed program was:" >&5 |
---|
3403 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3404 | |
---|
3405 | ( exit $ac_status ) |
---|
3406 | ac_cv_have_fallback=no |
---|
3407 | fi |
---|
3408 | rm -rf conftest.dSYM |
---|
3409 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3410 | fi |
---|
3411 | |
---|
3412 | |
---|
3413 | fi |
---|
3414 | |
---|
3415 | if test $ac_cv_have_fallback = yes ; then |
---|
3416 | { $as_echo "$as_me:$LINENO: result: working" >&5 |
---|
3417 | $as_echo "working" >&6; } |
---|
3418 | OPTIMIZE_CFLAGS="-xO3 -fns -fsimple=2$ALIGN -ftrap=%none -xlibmil" |
---|
3419 | else |
---|
3420 | { $as_echo "$as_me:$LINENO: result: broken" >&5 |
---|
3421 | $as_echo "broken" >&6; } |
---|
3422 | OPTIMIZE_CFLAGS="-O" |
---|
3423 | fi |
---|
3424 | fi |
---|
3425 | fi |
---|
3426 | ;; |
---|
3427 | |
---|
3428 | mips-dec-ultrix*) |
---|
3429 | # MIPS-based DECstations running Ultrix: |
---|
3430 | # -std1: Produce non-ANSI code warnings, and define __STDC__ |
---|
3431 | # -O: Use the global "ucode" optimizer |
---|
3432 | # -Olimit 5000: Don't optimize routines bigger than 5000 basic blocks |
---|
3433 | OPTIMIZE_CFLAGS="-std1 -O -Olimit 5000" ;; |
---|
3434 | |
---|
3435 | alpha-dec-osf*) |
---|
3436 | # DEC Alpha running OSF: |
---|
3437 | |
---|
3438 | # 64-bit mode: |
---|
3439 | # -g3: Produce symbol table information for optimized code |
---|
3440 | # -O4: Enable every optimization |
---|
3441 | # -std: Enforce the ANSI standard with extensions, define __STDC__ |
---|
3442 | # -ieee_with_no_inexact: Disable (potentially slow) signaling |
---|
3443 | # for inexact floating-point results |
---|
3444 | # -tune host: Tune instructions for the compilation host machine |
---|
3445 | OPTIMIZE_CFLAGS="-g3 -O4 -std -ieee_with_no_inexact -tune host" |
---|
3446 | DEBUG_CFLAGS="-g -std -ieee_with_no_inexact" |
---|
3447 | |
---|
3448 | # -non_shared: Do not use shared libraries |
---|
3449 | # -om: Generate an OMAGIC file for the om optimizer |
---|
3450 | OPTIMIZE_LDFLAGS="-non_shared" |
---|
3451 | |
---|
3452 | if test "$use_sixty_four" = "no"; then |
---|
3453 | # 32-bit mode: |
---|
3454 | # -xtaso: Make the compiler respond to #pragma pointer_size directives |
---|
3455 | OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -xtaso" |
---|
3456 | DEBUG_CFLAGS="$DEBUG_CFLAGS -xtaso" |
---|
3457 | |
---|
3458 | # -taso: Load the executable into the lower 31-bit address space |
---|
3459 | OPTIMIZE_LDFLAGS="$OPTIMIZE_LDFLAGS -om -taso" |
---|
3460 | DEBUG_LDFLAGS="$DEBUG_LDFLAGS -taso" |
---|
3461 | |
---|
3462 | cat >>confdefs.h <<\_ACEOF |
---|
3463 | #define SIZEOF_VOID_P 4 |
---|
3464 | _ACEOF |
---|
3465 | |
---|
3466 | ac_sizeof_voidp=4 |
---|
3467 | fi |
---|
3468 | ;; |
---|
3469 | |
---|
3470 | hppa*-*-hpux*) |
---|
3471 | # HP running HPUX |
---|
3472 | # -Aa: Behave as an ANSI compiler |
---|
3473 | # -D_HPUX_SOURCE: Include "HP-specific" symbols in the header |
---|
3474 | # files (e.g., this means sys/resource.h has struct rusage) |
---|
3475 | OPTIMIZE_CFLAGS="-O -Aa -D_HPUX_SOURCE" |
---|
3476 | DEBUG_CFLAGS="-g -Aa -D_HPUX_SOURCE" ;; |
---|
3477 | |
---|
3478 | *) |
---|
3479 | # Other systems: |
---|
3480 | OPTIMIZE_CFLAGS="-O" ;; |
---|
3481 | |
---|
3482 | esac |
---|
3483 | |
---|
3484 | if test "$GCC" = yes; then |
---|
3485 | case "$target" in |
---|
3486 | i686-pc-linux-gnu | i386-pc-solaris* | i386-pc-cygwin32 | i386-*-freebsd*) |
---|
3487 | { $as_echo "$as_me:$LINENO: checking for -mcpu and -malign compiler options" >&5 |
---|
3488 | $as_echo_n "checking for -mcpu and -malign compiler options... " >&6; } |
---|
3489 | CFLAGS="-g -O6 -mcpu=pentiumpro -malign-double" |
---|
3490 | cat >conftest.$ac_ext <<_ACEOF |
---|
3491 | /* confdefs.h. */ |
---|
3492 | _ACEOF |
---|
3493 | cat confdefs.h >>conftest.$ac_ext |
---|
3494 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3495 | /* end confdefs.h. */ |
---|
3496 | |
---|
3497 | int |
---|
3498 | main () |
---|
3499 | { |
---|
3500 | |
---|
3501 | ; |
---|
3502 | return 0; |
---|
3503 | } |
---|
3504 | _ACEOF |
---|
3505 | rm -f conftest.$ac_objext |
---|
3506 | if { (ac_try="$ac_compile" |
---|
3507 | case "(($ac_try" in |
---|
3508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3509 | *) ac_try_echo=$ac_try;; |
---|
3510 | esac |
---|
3511 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3512 | $as_echo "$ac_try_echo") >&5 |
---|
3513 | (eval "$ac_compile") 2>conftest.er1 |
---|
3514 | ac_status=$? |
---|
3515 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3516 | rm -f conftest.er1 |
---|
3517 | cat conftest.err >&5 |
---|
3518 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3519 | (exit $ac_status); } && { |
---|
3520 | test -z "$ac_c_werror_flag" || |
---|
3521 | test ! -s conftest.err |
---|
3522 | } && test -s conftest.$ac_objext; then |
---|
3523 | ac_have_mcpu=yes |
---|
3524 | else |
---|
3525 | $as_echo "$as_me: failed program was:" >&5 |
---|
3526 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3527 | |
---|
3528 | ac_have_mcpu=no |
---|
3529 | fi |
---|
3530 | |
---|
3531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3532 | if test "$ac_have_mcpu" = yes; then |
---|
3533 | { $as_echo "$as_me:$LINENO: result: working" >&5 |
---|
3534 | $as_echo "working" >&6; } |
---|
3535 | OPTIMIZE_CFLAGS="-g -O6 -mcpu=pentiumpro -malign-double" |
---|
3536 | else |
---|
3537 | { $as_echo "$as_me:$LINENO: result: broken" >&5 |
---|
3538 | $as_echo "broken" >&6; } |
---|
3539 | OPTIMIZE_CFLAGS="-g -O3" |
---|
3540 | fi |
---|
3541 | ;; |
---|
3542 | sparc-sun-solaris*) |
---|
3543 | { $as_echo "$as_me:$LINENO: checking for -mtune compiler option" >&5 |
---|
3544 | $as_echo_n "checking for -mtune compiler option... " >&6; } |
---|
3545 | CFLAGS="-g -O6 -mtune=ultrasparc" |
---|
3546 | cat >conftest.$ac_ext <<_ACEOF |
---|
3547 | /* confdefs.h. */ |
---|
3548 | _ACEOF |
---|
3549 | cat confdefs.h >>conftest.$ac_ext |
---|
3550 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3551 | /* end confdefs.h. */ |
---|
3552 | |
---|
3553 | int |
---|
3554 | main () |
---|
3555 | { |
---|
3556 | |
---|
3557 | ; |
---|
3558 | return 0; |
---|
3559 | } |
---|
3560 | _ACEOF |
---|
3561 | rm -f conftest.$ac_objext |
---|
3562 | if { (ac_try="$ac_compile" |
---|
3563 | case "(($ac_try" in |
---|
3564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3565 | *) ac_try_echo=$ac_try;; |
---|
3566 | esac |
---|
3567 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3568 | $as_echo "$ac_try_echo") >&5 |
---|
3569 | (eval "$ac_compile") 2>conftest.er1 |
---|
3570 | ac_status=$? |
---|
3571 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3572 | rm -f conftest.er1 |
---|
3573 | cat conftest.err >&5 |
---|
3574 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3575 | (exit $ac_status); } && { |
---|
3576 | test -z "$ac_c_werror_flag" || |
---|
3577 | test ! -s conftest.err |
---|
3578 | } && test -s conftest.$ac_objext; then |
---|
3579 | ac_have_mtune=yes |
---|
3580 | else |
---|
3581 | $as_echo "$as_me: failed program was:" >&5 |
---|
3582 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3583 | |
---|
3584 | ac_have_mtune=no |
---|
3585 | fi |
---|
3586 | |
---|
3587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3588 | if test "$ac_have_mtune" = yes; then |
---|
3589 | { $as_echo "$as_me:$LINENO: result: working" >&5 |
---|
3590 | $as_echo "working" >&6; } |
---|
3591 | OPTIMIZE_CFLAGS="-g -O6 -mtune=ultrasparc" |
---|
3592 | else |
---|
3593 | { $as_echo "$as_me:$LINENO: result: not working" >&5 |
---|
3594 | $as_echo "not working" >&6; } |
---|
3595 | OPTIMIZE_CFLAGS="-g -O3" |
---|
3596 | fi |
---|
3597 | ;; |
---|
3598 | *) |
---|
3599 | OPTIMIZE_CFLAGS="-g -O3" |
---|
3600 | ;; |
---|
3601 | esac |
---|
3602 | OPTIMIZE_LDFLAGS="" |
---|
3603 | DEBUG_CFLAGS="-g" |
---|
3604 | DEBUG_LDFLAGS="" |
---|
3605 | fi |
---|
3606 | |
---|
3607 | |
---|
3608 | # Check whether --with-comp-mode was given. |
---|
3609 | if test "${with_comp_mode+set}" = set; then |
---|
3610 | withval=$with_comp_mode; comp_mode=$withval |
---|
3611 | else |
---|
3612 | comp_mode=optimize |
---|
3613 | fi |
---|
3614 | |
---|
3615 | |
---|
3616 | |
---|
3617 | |
---|
3618 | LINKER="$CC" |
---|
3619 | |
---|
3620 | case "$comp_mode" in |
---|
3621 | debug) |
---|
3622 | CFLAGS="$DEBUG_CFLAGS" |
---|
3623 | LDFLAGS="$DEBUG_LDFLAGS" ;; |
---|
3624 | purify) |
---|
3625 | CFLAGS="$DEBUG_CFLAGS" |
---|
3626 | LDFLAGS="$DEBUG_LDFLAGS" |
---|
3627 | cat >>confdefs.h <<\_ACEOF |
---|
3628 | #define PURIFY 1 |
---|
3629 | _ACEOF |
---|
3630 | |
---|
3631 | LINKER="purify -cache-dir=/tmp $CC" |
---|
3632 | PLINKER="purify -log-file=./purify.log -cachedir=/tmp $CC" ;; |
---|
3633 | quantify) |
---|
3634 | CFLAGS="$OPTIMIZE_CFLAGS" |
---|
3635 | LDFLAGS="$OPTIMIZE_LDFLAGS" |
---|
3636 | cat >>confdefs.h <<\_ACEOF |
---|
3637 | #define QUANTIFY 1 |
---|
3638 | _ACEOF |
---|
3639 | |
---|
3640 | cat >>confdefs.h <<\_ACEOF |
---|
3641 | #define NDEBUG 1 |
---|
3642 | _ACEOF |
---|
3643 | |
---|
3644 | LINKER="quantify $CC" ;; |
---|
3645 | optimize | *) |
---|
3646 | CFLAGS="$OPTIMIZE_CFLAGS" |
---|
3647 | LDFLAGS="$OPTIMIZE_LDFLAGS" |
---|
3648 | cat >>confdefs.h <<\_ACEOF |
---|
3649 | #define NDEBUG 1 |
---|
3650 | _ACEOF |
---|
3651 | ;; |
---|
3652 | esac |
---|
3653 | |
---|
3654 | #---------------------------------------------------------------------- |
---|
3655 | # Checks for libraries |
---|
3656 | #---------------------------------------------------------------------- |
---|
3657 | |
---|
3658 | # Define STDC_HEADERS if the system has ANSI C header files |
---|
3659 | ac_ext=c |
---|
3660 | ac_cpp='$CPP $CPPFLAGS' |
---|
3661 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3662 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3663 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3664 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
3665 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
3666 | # On Suns, sometimes $CPP names a directory. |
---|
3667 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3668 | CPP= |
---|
3669 | fi |
---|
3670 | if test -z "$CPP"; then |
---|
3671 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3672 | $as_echo_n "(cached) " >&6 |
---|
3673 | else |
---|
3674 | # Double quotes because CPP needs to be expanded |
---|
3675 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3676 | do |
---|
3677 | ac_preproc_ok=false |
---|
3678 | for ac_c_preproc_warn_flag in '' yes |
---|
3679 | do |
---|
3680 | # Use a header file that comes with gcc, so configuring glibc |
---|
3681 | # with a fresh cross-compiler works. |
---|
3682 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3683 | # <limits.h> exists even on freestanding compilers. |
---|
3684 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3685 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3686 | cat >conftest.$ac_ext <<_ACEOF |
---|
3687 | /* confdefs.h. */ |
---|
3688 | _ACEOF |
---|
3689 | cat confdefs.h >>conftest.$ac_ext |
---|
3690 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3691 | /* end confdefs.h. */ |
---|
3692 | #ifdef __STDC__ |
---|
3693 | # include <limits.h> |
---|
3694 | #else |
---|
3695 | # include <assert.h> |
---|
3696 | #endif |
---|
3697 | Syntax error |
---|
3698 | _ACEOF |
---|
3699 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
3700 | case "(($ac_try" in |
---|
3701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3702 | *) ac_try_echo=$ac_try;; |
---|
3703 | esac |
---|
3704 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3705 | $as_echo "$ac_try_echo") >&5 |
---|
3706 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
3707 | ac_status=$? |
---|
3708 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3709 | rm -f conftest.er1 |
---|
3710 | cat conftest.err >&5 |
---|
3711 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3712 | (exit $ac_status); } >/dev/null && { |
---|
3713 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
3714 | test ! -s conftest.err |
---|
3715 | }; then |
---|
3716 | : |
---|
3717 | else |
---|
3718 | $as_echo "$as_me: failed program was:" >&5 |
---|
3719 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3720 | |
---|
3721 | # Broken: fails on valid input. |
---|
3722 | continue |
---|
3723 | fi |
---|
3724 | |
---|
3725 | rm -f conftest.err conftest.$ac_ext |
---|
3726 | |
---|
3727 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
3728 | # can be detected and how. |
---|
3729 | cat >conftest.$ac_ext <<_ACEOF |
---|
3730 | /* confdefs.h. */ |
---|
3731 | _ACEOF |
---|
3732 | cat confdefs.h >>conftest.$ac_ext |
---|
3733 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3734 | /* end confdefs.h. */ |
---|
3735 | #include <ac_nonexistent.h> |
---|
3736 | _ACEOF |
---|
3737 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
3738 | case "(($ac_try" in |
---|
3739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3740 | *) ac_try_echo=$ac_try;; |
---|
3741 | esac |
---|
3742 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3743 | $as_echo "$ac_try_echo") >&5 |
---|
3744 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
3745 | ac_status=$? |
---|
3746 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3747 | rm -f conftest.er1 |
---|
3748 | cat conftest.err >&5 |
---|
3749 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3750 | (exit $ac_status); } >/dev/null && { |
---|
3751 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
3752 | test ! -s conftest.err |
---|
3753 | }; then |
---|
3754 | # Broken: success on invalid input. |
---|
3755 | continue |
---|
3756 | else |
---|
3757 | $as_echo "$as_me: failed program was:" >&5 |
---|
3758 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3759 | |
---|
3760 | # Passes both tests. |
---|
3761 | ac_preproc_ok=: |
---|
3762 | break |
---|
3763 | fi |
---|
3764 | |
---|
3765 | rm -f conftest.err conftest.$ac_ext |
---|
3766 | |
---|
3767 | done |
---|
3768 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3769 | rm -f conftest.err conftest.$ac_ext |
---|
3770 | if $ac_preproc_ok; then |
---|
3771 | break |
---|
3772 | fi |
---|
3773 | |
---|
3774 | done |
---|
3775 | ac_cv_prog_CPP=$CPP |
---|
3776 | |
---|
3777 | fi |
---|
3778 | CPP=$ac_cv_prog_CPP |
---|
3779 | else |
---|
3780 | ac_cv_prog_CPP=$CPP |
---|
3781 | fi |
---|
3782 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
3783 | $as_echo "$CPP" >&6; } |
---|
3784 | ac_preproc_ok=false |
---|
3785 | for ac_c_preproc_warn_flag in '' yes |
---|
3786 | do |
---|
3787 | # Use a header file that comes with gcc, so configuring glibc |
---|
3788 | # with a fresh cross-compiler works. |
---|
3789 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3790 | # <limits.h> exists even on freestanding compilers. |
---|
3791 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3792 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3793 | cat >conftest.$ac_ext <<_ACEOF |
---|
3794 | /* confdefs.h. */ |
---|
3795 | _ACEOF |
---|
3796 | cat confdefs.h >>conftest.$ac_ext |
---|
3797 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3798 | /* end confdefs.h. */ |
---|
3799 | #ifdef __STDC__ |
---|
3800 | # include <limits.h> |
---|
3801 | #else |
---|
3802 | # include <assert.h> |
---|
3803 | #endif |
---|
3804 | Syntax error |
---|
3805 | _ACEOF |
---|
3806 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
3807 | case "(($ac_try" in |
---|
3808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3809 | *) ac_try_echo=$ac_try;; |
---|
3810 | esac |
---|
3811 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3812 | $as_echo "$ac_try_echo") >&5 |
---|
3813 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
3814 | ac_status=$? |
---|
3815 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3816 | rm -f conftest.er1 |
---|
3817 | cat conftest.err >&5 |
---|
3818 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3819 | (exit $ac_status); } >/dev/null && { |
---|
3820 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
3821 | test ! -s conftest.err |
---|
3822 | }; then |
---|
3823 | : |
---|
3824 | else |
---|
3825 | $as_echo "$as_me: failed program was:" >&5 |
---|
3826 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3827 | |
---|
3828 | # Broken: fails on valid input. |
---|
3829 | continue |
---|
3830 | fi |
---|
3831 | |
---|
3832 | rm -f conftest.err conftest.$ac_ext |
---|
3833 | |
---|
3834 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
3835 | # can be detected and how. |
---|
3836 | cat >conftest.$ac_ext <<_ACEOF |
---|
3837 | /* confdefs.h. */ |
---|
3838 | _ACEOF |
---|
3839 | cat confdefs.h >>conftest.$ac_ext |
---|
3840 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3841 | /* end confdefs.h. */ |
---|
3842 | #include <ac_nonexistent.h> |
---|
3843 | _ACEOF |
---|
3844 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
3845 | case "(($ac_try" in |
---|
3846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3847 | *) ac_try_echo=$ac_try;; |
---|
3848 | esac |
---|
3849 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3850 | $as_echo "$ac_try_echo") >&5 |
---|
3851 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
3852 | ac_status=$? |
---|
3853 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3854 | rm -f conftest.er1 |
---|
3855 | cat conftest.err >&5 |
---|
3856 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3857 | (exit $ac_status); } >/dev/null && { |
---|
3858 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
3859 | test ! -s conftest.err |
---|
3860 | }; then |
---|
3861 | # Broken: success on invalid input. |
---|
3862 | continue |
---|
3863 | else |
---|
3864 | $as_echo "$as_me: failed program was:" >&5 |
---|
3865 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3866 | |
---|
3867 | # Passes both tests. |
---|
3868 | ac_preproc_ok=: |
---|
3869 | break |
---|
3870 | fi |
---|
3871 | |
---|
3872 | rm -f conftest.err conftest.$ac_ext |
---|
3873 | |
---|
3874 | done |
---|
3875 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3876 | rm -f conftest.err conftest.$ac_ext |
---|
3877 | if $ac_preproc_ok; then |
---|
3878 | : |
---|
3879 | else |
---|
3880 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
3881 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3882 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
3883 | See \`config.log' for more details." >&5 |
---|
3884 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
3885 | See \`config.log' for more details." >&2;} |
---|
3886 | { (exit 1); exit 1; }; }; } |
---|
3887 | fi |
---|
3888 | |
---|
3889 | ac_ext=c |
---|
3890 | ac_cpp='$CPP $CPPFLAGS' |
---|
3891 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3892 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3893 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3894 | |
---|
3895 | |
---|
3896 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
---|
3897 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
3898 | if test "${ac_cv_path_GREP+set}" = set; then |
---|
3899 | $as_echo_n "(cached) " >&6 |
---|
3900 | else |
---|
3901 | if test -z "$GREP"; then |
---|
3902 | ac_path_GREP_found=false |
---|
3903 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
3904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3905 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
3906 | do |
---|
3907 | IFS=$as_save_IFS |
---|
3908 | test -z "$as_dir" && as_dir=. |
---|
3909 | for ac_prog in grep ggrep; do |
---|
3910 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3911 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
3912 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
3913 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
3914 | # Check for GNU $ac_path_GREP |
---|
3915 | case `"$ac_path_GREP" --version 2>&1` in |
---|
3916 | *GNU*) |
---|
3917 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
3918 | *) |
---|
3919 | ac_count=0 |
---|
3920 | $as_echo_n 0123456789 >"conftest.in" |
---|
3921 | while : |
---|
3922 | do |
---|
3923 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
3924 | mv "conftest.tmp" "conftest.in" |
---|
3925 | cp "conftest.in" "conftest.nl" |
---|
3926 | $as_echo 'GREP' >> "conftest.nl" |
---|
3927 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
3928 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
3929 | ac_count=`expr $ac_count + 1` |
---|
3930 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
3931 | # Best one so far, save it but keep looking for a better one |
---|
3932 | ac_cv_path_GREP="$ac_path_GREP" |
---|
3933 | ac_path_GREP_max=$ac_count |
---|
3934 | fi |
---|
3935 | # 10*(2^10) chars as input seems more than enough |
---|
3936 | test $ac_count -gt 10 && break |
---|
3937 | done |
---|
3938 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
3939 | esac |
---|
3940 | |
---|
3941 | $ac_path_GREP_found && break 3 |
---|
3942 | done |
---|
3943 | done |
---|
3944 | done |
---|
3945 | IFS=$as_save_IFS |
---|
3946 | if test -z "$ac_cv_path_GREP"; then |
---|
3947 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
---|
3948 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
---|
3949 | { (exit 1); exit 1; }; } |
---|
3950 | fi |
---|
3951 | else |
---|
3952 | ac_cv_path_GREP=$GREP |
---|
3953 | fi |
---|
3954 | |
---|
3955 | fi |
---|
3956 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
---|
3957 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
3958 | GREP="$ac_cv_path_GREP" |
---|
3959 | |
---|
3960 | |
---|
3961 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3962 | $as_echo_n "checking for egrep... " >&6; } |
---|
3963 | if test "${ac_cv_path_EGREP+set}" = set; then |
---|
3964 | $as_echo_n "(cached) " >&6 |
---|
3965 | else |
---|
3966 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
3967 | then ac_cv_path_EGREP="$GREP -E" |
---|
3968 | else |
---|
3969 | if test -z "$EGREP"; then |
---|
3970 | ac_path_EGREP_found=false |
---|
3971 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
3972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3973 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
3974 | do |
---|
3975 | IFS=$as_save_IFS |
---|
3976 | test -z "$as_dir" && as_dir=. |
---|
3977 | for ac_prog in egrep; do |
---|
3978 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3979 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
3980 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
3981 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
3982 | # Check for GNU $ac_path_EGREP |
---|
3983 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
3984 | *GNU*) |
---|
3985 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
3986 | *) |
---|
3987 | ac_count=0 |
---|
3988 | $as_echo_n 0123456789 >"conftest.in" |
---|
3989 | while : |
---|
3990 | do |
---|
3991 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
3992 | mv "conftest.tmp" "conftest.in" |
---|
3993 | cp "conftest.in" "conftest.nl" |
---|
3994 | $as_echo 'EGREP' >> "conftest.nl" |
---|
3995 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
3996 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
3997 | ac_count=`expr $ac_count + 1` |
---|
3998 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
3999 | # Best one so far, save it but keep looking for a better one |
---|
4000 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
4001 | ac_path_EGREP_max=$ac_count |
---|
4002 | fi |
---|
4003 | # 10*(2^10) chars as input seems more than enough |
---|
4004 | test $ac_count -gt 10 && break |
---|
4005 | done |
---|
4006 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4007 | esac |
---|
4008 | |
---|
4009 | $ac_path_EGREP_found && break 3 |
---|
4010 | done |
---|
4011 | done |
---|
4012 | done |
---|
4013 | IFS=$as_save_IFS |
---|
4014 | if test -z "$ac_cv_path_EGREP"; then |
---|
4015 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
---|
4016 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
---|
4017 | { (exit 1); exit 1; }; } |
---|
4018 | fi |
---|
4019 | else |
---|
4020 | ac_cv_path_EGREP=$EGREP |
---|
4021 | fi |
---|
4022 | |
---|
4023 | fi |
---|
4024 | fi |
---|
4025 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
---|
4026 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
4027 | EGREP="$ac_cv_path_EGREP" |
---|
4028 | |
---|
4029 | |
---|
4030 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
4031 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
4032 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
4033 | $as_echo_n "(cached) " >&6 |
---|
4034 | else |
---|
4035 | cat >conftest.$ac_ext <<_ACEOF |
---|
4036 | /* confdefs.h. */ |
---|
4037 | _ACEOF |
---|
4038 | cat confdefs.h >>conftest.$ac_ext |
---|
4039 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4040 | /* end confdefs.h. */ |
---|
4041 | #include <stdlib.h> |
---|
4042 | #include <stdarg.h> |
---|
4043 | #include <string.h> |
---|
4044 | #include <float.h> |
---|
4045 | |
---|
4046 | int |
---|
4047 | main () |
---|
4048 | { |
---|
4049 | |
---|
4050 | ; |
---|
4051 | return 0; |
---|
4052 | } |
---|
4053 | _ACEOF |
---|
4054 | rm -f conftest.$ac_objext |
---|
4055 | if { (ac_try="$ac_compile" |
---|
4056 | case "(($ac_try" in |
---|
4057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4058 | *) ac_try_echo=$ac_try;; |
---|
4059 | esac |
---|
4060 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4061 | $as_echo "$ac_try_echo") >&5 |
---|
4062 | (eval "$ac_compile") 2>conftest.er1 |
---|
4063 | ac_status=$? |
---|
4064 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4065 | rm -f conftest.er1 |
---|
4066 | cat conftest.err >&5 |
---|
4067 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4068 | (exit $ac_status); } && { |
---|
4069 | test -z "$ac_c_werror_flag" || |
---|
4070 | test ! -s conftest.err |
---|
4071 | } && test -s conftest.$ac_objext; then |
---|
4072 | ac_cv_header_stdc=yes |
---|
4073 | else |
---|
4074 | $as_echo "$as_me: failed program was:" >&5 |
---|
4075 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4076 | |
---|
4077 | ac_cv_header_stdc=no |
---|
4078 | fi |
---|
4079 | |
---|
4080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4081 | |
---|
4082 | if test $ac_cv_header_stdc = yes; then |
---|
4083 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
4084 | cat >conftest.$ac_ext <<_ACEOF |
---|
4085 | /* confdefs.h. */ |
---|
4086 | _ACEOF |
---|
4087 | cat confdefs.h >>conftest.$ac_ext |
---|
4088 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4089 | /* end confdefs.h. */ |
---|
4090 | #include <string.h> |
---|
4091 | |
---|
4092 | _ACEOF |
---|
4093 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4094 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
4095 | : |
---|
4096 | else |
---|
4097 | ac_cv_header_stdc=no |
---|
4098 | fi |
---|
4099 | rm -f conftest* |
---|
4100 | |
---|
4101 | fi |
---|
4102 | |
---|
4103 | if test $ac_cv_header_stdc = yes; then |
---|
4104 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
4105 | cat >conftest.$ac_ext <<_ACEOF |
---|
4106 | /* confdefs.h. */ |
---|
4107 | _ACEOF |
---|
4108 | cat confdefs.h >>conftest.$ac_ext |
---|
4109 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4110 | /* end confdefs.h. */ |
---|
4111 | #include <stdlib.h> |
---|
4112 | |
---|
4113 | _ACEOF |
---|
4114 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4115 | $EGREP "free" >/dev/null 2>&1; then |
---|
4116 | : |
---|
4117 | else |
---|
4118 | ac_cv_header_stdc=no |
---|
4119 | fi |
---|
4120 | rm -f conftest* |
---|
4121 | |
---|
4122 | fi |
---|
4123 | |
---|
4124 | if test $ac_cv_header_stdc = yes; then |
---|
4125 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
4126 | if test "$cross_compiling" = yes; then |
---|
4127 | : |
---|
4128 | else |
---|
4129 | cat >conftest.$ac_ext <<_ACEOF |
---|
4130 | /* confdefs.h. */ |
---|
4131 | _ACEOF |
---|
4132 | cat confdefs.h >>conftest.$ac_ext |
---|
4133 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4134 | /* end confdefs.h. */ |
---|
4135 | #include <ctype.h> |
---|
4136 | #include <stdlib.h> |
---|
4137 | #if ((' ' & 0x0FF) == 0x020) |
---|
4138 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
4139 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
4140 | #else |
---|
4141 | # define ISLOWER(c) \ |
---|
4142 | (('a' <= (c) && (c) <= 'i') \ |
---|
4143 | || ('j' <= (c) && (c) <= 'r') \ |
---|
4144 | || ('s' <= (c) && (c) <= 'z')) |
---|
4145 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
4146 | #endif |
---|
4147 | |
---|
4148 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
4149 | int |
---|
4150 | main () |
---|
4151 | { |
---|
4152 | int i; |
---|
4153 | for (i = 0; i < 256; i++) |
---|
4154 | if (XOR (islower (i), ISLOWER (i)) |
---|
4155 | || toupper (i) != TOUPPER (i)) |
---|
4156 | return 2; |
---|
4157 | return 0; |
---|
4158 | } |
---|
4159 | _ACEOF |
---|
4160 | rm -f conftest$ac_exeext |
---|
4161 | if { (ac_try="$ac_link" |
---|
4162 | case "(($ac_try" in |
---|
4163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4164 | *) ac_try_echo=$ac_try;; |
---|
4165 | esac |
---|
4166 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4167 | $as_echo "$ac_try_echo") >&5 |
---|
4168 | (eval "$ac_link") 2>&5 |
---|
4169 | ac_status=$? |
---|
4170 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4171 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
4172 | { (case "(($ac_try" in |
---|
4173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4174 | *) ac_try_echo=$ac_try;; |
---|
4175 | esac |
---|
4176 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4177 | $as_echo "$ac_try_echo") >&5 |
---|
4178 | (eval "$ac_try") 2>&5 |
---|
4179 | ac_status=$? |
---|
4180 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4181 | (exit $ac_status); }; }; then |
---|
4182 | : |
---|
4183 | else |
---|
4184 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
4185 | $as_echo "$as_me: failed program was:" >&5 |
---|
4186 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4187 | |
---|
4188 | ( exit $ac_status ) |
---|
4189 | ac_cv_header_stdc=no |
---|
4190 | fi |
---|
4191 | rm -rf conftest.dSYM |
---|
4192 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
4193 | fi |
---|
4194 | |
---|
4195 | |
---|
4196 | fi |
---|
4197 | fi |
---|
4198 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
4199 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
4200 | if test $ac_cv_header_stdc = yes; then |
---|
4201 | |
---|
4202 | cat >>confdefs.h <<\_ACEOF |
---|
4203 | #define STDC_HEADERS 1 |
---|
4204 | _ACEOF |
---|
4205 | |
---|
4206 | fi |
---|
4207 | |
---|
4208 | |
---|
4209 | # Define HAVE_SYS_WAIT_H if sys/wait.h exists and is POSIX-compliant |
---|
4210 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
---|
4211 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } |
---|
4212 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
---|
4213 | $as_echo_n "(cached) " >&6 |
---|
4214 | else |
---|
4215 | cat >conftest.$ac_ext <<_ACEOF |
---|
4216 | /* confdefs.h. */ |
---|
4217 | _ACEOF |
---|
4218 | cat confdefs.h >>conftest.$ac_ext |
---|
4219 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4220 | /* end confdefs.h. */ |
---|
4221 | #include <sys/types.h> |
---|
4222 | #include <sys/wait.h> |
---|
4223 | #ifndef WEXITSTATUS |
---|
4224 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
---|
4225 | #endif |
---|
4226 | #ifndef WIFEXITED |
---|
4227 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
---|
4228 | #endif |
---|
4229 | |
---|
4230 | int |
---|
4231 | main () |
---|
4232 | { |
---|
4233 | int s; |
---|
4234 | wait (&s); |
---|
4235 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
---|
4236 | ; |
---|
4237 | return 0; |
---|
4238 | } |
---|
4239 | _ACEOF |
---|
4240 | rm -f conftest.$ac_objext |
---|
4241 | if { (ac_try="$ac_compile" |
---|
4242 | case "(($ac_try" in |
---|
4243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4244 | *) ac_try_echo=$ac_try;; |
---|
4245 | esac |
---|
4246 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4247 | $as_echo "$ac_try_echo") >&5 |
---|
4248 | (eval "$ac_compile") 2>conftest.er1 |
---|
4249 | ac_status=$? |
---|
4250 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4251 | rm -f conftest.er1 |
---|
4252 | cat conftest.err >&5 |
---|
4253 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4254 | (exit $ac_status); } && { |
---|
4255 | test -z "$ac_c_werror_flag" || |
---|
4256 | test ! -s conftest.err |
---|
4257 | } && test -s conftest.$ac_objext; then |
---|
4258 | ac_cv_header_sys_wait_h=yes |
---|
4259 | else |
---|
4260 | $as_echo "$as_me: failed program was:" >&5 |
---|
4261 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4262 | |
---|
4263 | ac_cv_header_sys_wait_h=no |
---|
4264 | fi |
---|
4265 | |
---|
4266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4267 | fi |
---|
4268 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
---|
4269 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } |
---|
4270 | if test $ac_cv_header_sys_wait_h = yes; then |
---|
4271 | |
---|
4272 | cat >>confdefs.h <<\_ACEOF |
---|
4273 | #define HAVE_SYS_WAIT_H 1 |
---|
4274 | _ACEOF |
---|
4275 | |
---|
4276 | fi |
---|
4277 | |
---|
4278 | |
---|
4279 | # Check for these system header files |
---|
4280 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4281 | |
---|
4282 | |
---|
4283 | |
---|
4284 | |
---|
4285 | |
---|
4286 | |
---|
4287 | |
---|
4288 | |
---|
4289 | |
---|
4290 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4291 | inttypes.h stdint.h unistd.h |
---|
4292 | do |
---|
4293 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4294 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4295 | $as_echo_n "checking for $ac_header... " >&6; } |
---|
4296 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
4297 | $as_echo_n "(cached) " >&6 |
---|
4298 | else |
---|
4299 | cat >conftest.$ac_ext <<_ACEOF |
---|
4300 | /* confdefs.h. */ |
---|
4301 | _ACEOF |
---|
4302 | cat confdefs.h >>conftest.$ac_ext |
---|
4303 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4304 | /* end confdefs.h. */ |
---|
4305 | $ac_includes_default |
---|
4306 | |
---|
4307 | #include <$ac_header> |
---|
4308 | _ACEOF |
---|
4309 | rm -f conftest.$ac_objext |
---|
4310 | if { (ac_try="$ac_compile" |
---|
4311 | case "(($ac_try" in |
---|
4312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4313 | *) ac_try_echo=$ac_try;; |
---|
4314 | esac |
---|
4315 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4316 | $as_echo "$ac_try_echo") >&5 |
---|
4317 | (eval "$ac_compile") 2>conftest.er1 |
---|
4318 | ac_status=$? |
---|
4319 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4320 | rm -f conftest.er1 |
---|
4321 | cat conftest.err >&5 |
---|
4322 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4323 | (exit $ac_status); } && { |
---|
4324 | test -z "$ac_c_werror_flag" || |
---|
4325 | test ! -s conftest.err |
---|
4326 | } && test -s conftest.$ac_objext; then |
---|
4327 | eval "$as_ac_Header=yes" |
---|
4328 | else |
---|
4329 | $as_echo "$as_me: failed program was:" >&5 |
---|
4330 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4331 | |
---|
4332 | eval "$as_ac_Header=no" |
---|
4333 | fi |
---|
4334 | |
---|
4335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4336 | fi |
---|
4337 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
---|
4338 | $as_echo "$as_val"'` |
---|
4339 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
4340 | $as_echo "$ac_res" >&6; } |
---|
4341 | as_val=`eval 'as_val=${'$as_ac_Header'} |
---|
4342 | $as_echo "$as_val"'` |
---|
4343 | if test "x$as_val" = x""yes; then |
---|
4344 | cat >>confdefs.h <<_ACEOF |
---|
4345 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4346 | _ACEOF |
---|
4347 | |
---|
4348 | fi |
---|
4349 | |
---|
4350 | done |
---|
4351 | |
---|
4352 | |
---|
4353 | |
---|
4354 | |
---|
4355 | |
---|
4356 | |
---|
4357 | |
---|
4358 | |
---|
4359 | |
---|
4360 | |
---|
4361 | |
---|
4362 | |
---|
4363 | |
---|
4364 | for ac_header in sys/file.h sys/stat.h unistd.h errno.h assert.h sys/wait.h pwd.h sys/types.h sys/times.h sys/time.h sys/resource.h |
---|
4365 | do |
---|
4366 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4367 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
4368 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4369 | $as_echo_n "checking for $ac_header... " >&6; } |
---|
4370 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
4371 | $as_echo_n "(cached) " >&6 |
---|
4372 | fi |
---|
4373 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
---|
4374 | $as_echo "$as_val"'` |
---|
4375 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
4376 | $as_echo "$ac_res" >&6; } |
---|
4377 | else |
---|
4378 | # Is the header compilable? |
---|
4379 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4380 | $as_echo_n "checking $ac_header usability... " >&6; } |
---|
4381 | cat >conftest.$ac_ext <<_ACEOF |
---|
4382 | /* confdefs.h. */ |
---|
4383 | _ACEOF |
---|
4384 | cat confdefs.h >>conftest.$ac_ext |
---|
4385 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4386 | /* end confdefs.h. */ |
---|
4387 | $ac_includes_default |
---|
4388 | #include <$ac_header> |
---|
4389 | _ACEOF |
---|
4390 | rm -f conftest.$ac_objext |
---|
4391 | if { (ac_try="$ac_compile" |
---|
4392 | case "(($ac_try" in |
---|
4393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4394 | *) ac_try_echo=$ac_try;; |
---|
4395 | esac |
---|
4396 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4397 | $as_echo "$ac_try_echo") >&5 |
---|
4398 | (eval "$ac_compile") 2>conftest.er1 |
---|
4399 | ac_status=$? |
---|
4400 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4401 | rm -f conftest.er1 |
---|
4402 | cat conftest.err >&5 |
---|
4403 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4404 | (exit $ac_status); } && { |
---|
4405 | test -z "$ac_c_werror_flag" || |
---|
4406 | test ! -s conftest.err |
---|
4407 | } && test -s conftest.$ac_objext; then |
---|
4408 | ac_header_compiler=yes |
---|
4409 | else |
---|
4410 | $as_echo "$as_me: failed program was:" >&5 |
---|
4411 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4412 | |
---|
4413 | ac_header_compiler=no |
---|
4414 | fi |
---|
4415 | |
---|
4416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4417 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4418 | $as_echo "$ac_header_compiler" >&6; } |
---|
4419 | |
---|
4420 | # Is the header present? |
---|
4421 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4422 | $as_echo_n "checking $ac_header presence... " >&6; } |
---|
4423 | cat >conftest.$ac_ext <<_ACEOF |
---|
4424 | /* confdefs.h. */ |
---|
4425 | _ACEOF |
---|
4426 | cat confdefs.h >>conftest.$ac_ext |
---|
4427 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4428 | /* end confdefs.h. */ |
---|
4429 | #include <$ac_header> |
---|
4430 | _ACEOF |
---|
4431 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
4432 | case "(($ac_try" in |
---|
4433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4434 | *) ac_try_echo=$ac_try;; |
---|
4435 | esac |
---|
4436 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4437 | $as_echo "$ac_try_echo") >&5 |
---|
4438 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
4439 | ac_status=$? |
---|
4440 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4441 | rm -f conftest.er1 |
---|
4442 | cat conftest.err >&5 |
---|
4443 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4444 | (exit $ac_status); } >/dev/null && { |
---|
4445 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
4446 | test ! -s conftest.err |
---|
4447 | }; then |
---|
4448 | ac_header_preproc=yes |
---|
4449 | else |
---|
4450 | $as_echo "$as_me: failed program was:" >&5 |
---|
4451 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4452 | |
---|
4453 | ac_header_preproc=no |
---|
4454 | fi |
---|
4455 | |
---|
4456 | rm -f conftest.err conftest.$ac_ext |
---|
4457 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4458 | $as_echo "$ac_header_preproc" >&6; } |
---|
4459 | |
---|
4460 | # So? What about this header? |
---|
4461 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4462 | yes:no: ) |
---|
4463 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4464 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4465 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4466 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4467 | ac_header_preproc=yes |
---|
4468 | ;; |
---|
4469 | no:yes:* ) |
---|
4470 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4471 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4472 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4473 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4474 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4475 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4476 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4477 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4478 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4479 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4480 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4481 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4482 | |
---|
4483 | ;; |
---|
4484 | esac |
---|
4485 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4486 | $as_echo_n "checking for $ac_header... " >&6; } |
---|
4487 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
4488 | $as_echo_n "(cached) " >&6 |
---|
4489 | else |
---|
4490 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4491 | fi |
---|
4492 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
---|
4493 | $as_echo "$as_val"'` |
---|
4494 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
4495 | $as_echo "$ac_res" >&6; } |
---|
4496 | |
---|
4497 | fi |
---|
4498 | as_val=`eval 'as_val=${'$as_ac_Header'} |
---|
4499 | $as_echo "$as_val"'` |
---|
4500 | if test "x$as_val" = x""yes; then |
---|
4501 | cat >>confdefs.h <<_ACEOF |
---|
4502 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4503 | _ACEOF |
---|
4504 | |
---|
4505 | fi |
---|
4506 | |
---|
4507 | done |
---|
4508 | |
---|
4509 | |
---|
4510 | # Check how the compiler handles functions with variable argument lists |
---|
4511 | # |
---|
4512 | # If there's a <stdarg.h>, this is probably an ANSI compiler and the "..." |
---|
4513 | # notation will probably work. If not, there may be another version |
---|
4514 | # called <varargs.h>, that uses an argument of the type "va_alist" |
---|
4515 | # (see, e.g., Ultrix, Digital Unix) |
---|
4516 | |
---|
4517 | |
---|
4518 | for ac_header in stdarg.h varargs.h |
---|
4519 | do |
---|
4520 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4521 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
4522 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4523 | $as_echo_n "checking for $ac_header... " >&6; } |
---|
4524 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
4525 | $as_echo_n "(cached) " >&6 |
---|
4526 | fi |
---|
4527 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
---|
4528 | $as_echo "$as_val"'` |
---|
4529 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
4530 | $as_echo "$ac_res" >&6; } |
---|
4531 | else |
---|
4532 | # Is the header compilable? |
---|
4533 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4534 | $as_echo_n "checking $ac_header usability... " >&6; } |
---|
4535 | cat >conftest.$ac_ext <<_ACEOF |
---|
4536 | /* confdefs.h. */ |
---|
4537 | _ACEOF |
---|
4538 | cat confdefs.h >>conftest.$ac_ext |
---|
4539 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4540 | /* end confdefs.h. */ |
---|
4541 | $ac_includes_default |
---|
4542 | #include <$ac_header> |
---|
4543 | _ACEOF |
---|
4544 | rm -f conftest.$ac_objext |
---|
4545 | if { (ac_try="$ac_compile" |
---|
4546 | case "(($ac_try" in |
---|
4547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4548 | *) ac_try_echo=$ac_try;; |
---|
4549 | esac |
---|
4550 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4551 | $as_echo "$ac_try_echo") >&5 |
---|
4552 | (eval "$ac_compile") 2>conftest.er1 |
---|
4553 | ac_status=$? |
---|
4554 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4555 | rm -f conftest.er1 |
---|
4556 | cat conftest.err >&5 |
---|
4557 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4558 | (exit $ac_status); } && { |
---|
4559 | test -z "$ac_c_werror_flag" || |
---|
4560 | test ! -s conftest.err |
---|
4561 | } && test -s conftest.$ac_objext; then |
---|
4562 | ac_header_compiler=yes |
---|
4563 | else |
---|
4564 | $as_echo "$as_me: failed program was:" >&5 |
---|
4565 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4566 | |
---|
4567 | ac_header_compiler=no |
---|
4568 | fi |
---|
4569 | |
---|
4570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4571 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4572 | $as_echo "$ac_header_compiler" >&6; } |
---|
4573 | |
---|
4574 | # Is the header present? |
---|
4575 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4576 | $as_echo_n "checking $ac_header presence... " >&6; } |
---|
4577 | cat >conftest.$ac_ext <<_ACEOF |
---|
4578 | /* confdefs.h. */ |
---|
4579 | _ACEOF |
---|
4580 | cat confdefs.h >>conftest.$ac_ext |
---|
4581 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4582 | /* end confdefs.h. */ |
---|
4583 | #include <$ac_header> |
---|
4584 | _ACEOF |
---|
4585 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
4586 | case "(($ac_try" in |
---|
4587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4588 | *) ac_try_echo=$ac_try;; |
---|
4589 | esac |
---|
4590 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4591 | $as_echo "$ac_try_echo") >&5 |
---|
4592 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
4593 | ac_status=$? |
---|
4594 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4595 | rm -f conftest.er1 |
---|
4596 | cat conftest.err >&5 |
---|
4597 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4598 | (exit $ac_status); } >/dev/null && { |
---|
4599 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
4600 | test ! -s conftest.err |
---|
4601 | }; then |
---|
4602 | ac_header_preproc=yes |
---|
4603 | else |
---|
4604 | $as_echo "$as_me: failed program was:" >&5 |
---|
4605 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4606 | |
---|
4607 | ac_header_preproc=no |
---|
4608 | fi |
---|
4609 | |
---|
4610 | rm -f conftest.err conftest.$ac_ext |
---|
4611 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4612 | $as_echo "$ac_header_preproc" >&6; } |
---|
4613 | |
---|
4614 | # So? What about this header? |
---|
4615 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4616 | yes:no: ) |
---|
4617 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4618 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4619 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4620 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4621 | ac_header_preproc=yes |
---|
4622 | ;; |
---|
4623 | no:yes:* ) |
---|
4624 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4625 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4626 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4627 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4628 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4629 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4630 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4631 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4632 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4633 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4634 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4635 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4636 | |
---|
4637 | ;; |
---|
4638 | esac |
---|
4639 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4640 | $as_echo_n "checking for $ac_header... " >&6; } |
---|
4641 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
4642 | $as_echo_n "(cached) " >&6 |
---|
4643 | else |
---|
4644 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4645 | fi |
---|
4646 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
---|
4647 | $as_echo "$as_val"'` |
---|
4648 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
4649 | $as_echo "$ac_res" >&6; } |
---|
4650 | |
---|
4651 | fi |
---|
4652 | as_val=`eval 'as_val=${'$as_ac_Header'} |
---|
4653 | $as_echo "$as_val"'` |
---|
4654 | if test "x$as_val" = x""yes; then |
---|
4655 | cat >>confdefs.h <<_ACEOF |
---|
4656 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4657 | _ACEOF |
---|
4658 | |
---|
4659 | fi |
---|
4660 | |
---|
4661 | done |
---|
4662 | |
---|
4663 | |
---|
4664 | #---------------------------------------------------------------------- |
---|
4665 | # Checks for typedefs, structures, and compiler characteristics. |
---|
4666 | #---------------------------------------------------------------------- |
---|
4667 | |
---|
4668 | # Check to see if the compiler understands "const" |
---|
4669 | # #define it empty otherwise |
---|
4670 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
---|
4671 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
---|
4672 | if test "${ac_cv_c_const+set}" = set; then |
---|
4673 | $as_echo_n "(cached) " >&6 |
---|
4674 | else |
---|
4675 | cat >conftest.$ac_ext <<_ACEOF |
---|
4676 | /* confdefs.h. */ |
---|
4677 | _ACEOF |
---|
4678 | cat confdefs.h >>conftest.$ac_ext |
---|
4679 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4680 | /* end confdefs.h. */ |
---|
4681 | |
---|
4682 | int |
---|
4683 | main () |
---|
4684 | { |
---|
4685 | /* FIXME: Include the comments suggested by Paul. */ |
---|
4686 | #ifndef __cplusplus |
---|
4687 | /* Ultrix mips cc rejects this. */ |
---|
4688 | typedef int charset[2]; |
---|
4689 | const charset cs; |
---|
4690 | /* SunOS 4.1.1 cc rejects this. */ |
---|
4691 | char const *const *pcpcc; |
---|
4692 | char **ppc; |
---|
4693 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
4694 | struct point {int x, y;}; |
---|
4695 | static struct point const zero = {0,0}; |
---|
4696 | /* AIX XL C 1.02.0.0 rejects this. |
---|
4697 | It does not let you subtract one const X* pointer from another in |
---|
4698 | an arm of an if-expression whose if-part is not a constant |
---|
4699 | expression */ |
---|
4700 | const char *g = "string"; |
---|
4701 | pcpcc = &g + (g ? g-g : 0); |
---|
4702 | /* HPUX 7.0 cc rejects these. */ |
---|
4703 | ++pcpcc; |
---|
4704 | ppc = (char**) pcpcc; |
---|
4705 | pcpcc = (char const *const *) ppc; |
---|
4706 | { /* SCO 3.2v4 cc rejects this. */ |
---|
4707 | char *t; |
---|
4708 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
4709 | |
---|
4710 | *t++ = 0; |
---|
4711 | if (s) return 0; |
---|
4712 | } |
---|
4713 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
4714 | int x[] = {25, 17}; |
---|
4715 | const int *foo = &x[0]; |
---|
4716 | ++foo; |
---|
4717 | } |
---|
4718 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
4719 | typedef const int *iptr; |
---|
4720 | iptr p = 0; |
---|
4721 | ++p; |
---|
4722 | } |
---|
4723 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
4724 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
4725 | struct s { int j; const int *ap[3]; }; |
---|
4726 | struct s *b; b->j = 5; |
---|
4727 | } |
---|
4728 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
4729 | const int foo = 10; |
---|
4730 | if (!foo) return 0; |
---|
4731 | } |
---|
4732 | return !cs[0] && !zero.x; |
---|
4733 | #endif |
---|
4734 | |
---|
4735 | ; |
---|
4736 | return 0; |
---|
4737 | } |
---|
4738 | _ACEOF |
---|
4739 | rm -f conftest.$ac_objext |
---|
4740 | if { (ac_try="$ac_compile" |
---|
4741 | case "(($ac_try" in |
---|
4742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4743 | *) ac_try_echo=$ac_try;; |
---|
4744 | esac |
---|
4745 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4746 | $as_echo "$ac_try_echo") >&5 |
---|
4747 | (eval "$ac_compile") 2>conftest.er1 |
---|
4748 | ac_status=$? |
---|
4749 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4750 | rm -f conftest.er1 |
---|
4751 | cat conftest.err >&5 |
---|
4752 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4753 | (exit $ac_status); } && { |
---|
4754 | test -z "$ac_c_werror_flag" || |
---|
4755 | test ! -s conftest.err |
---|
4756 | } && test -s conftest.$ac_objext; then |
---|
4757 | ac_cv_c_const=yes |
---|
4758 | else |
---|
4759 | $as_echo "$as_me: failed program was:" >&5 |
---|
4760 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4761 | |
---|
4762 | ac_cv_c_const=no |
---|
4763 | fi |
---|
4764 | |
---|
4765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4766 | fi |
---|
4767 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
---|
4768 | $as_echo "$ac_cv_c_const" >&6; } |
---|
4769 | if test $ac_cv_c_const = no; then |
---|
4770 | |
---|
4771 | cat >>confdefs.h <<\_ACEOF |
---|
4772 | #define const /**/ |
---|
4773 | _ACEOF |
---|
4774 | |
---|
4775 | fi |
---|
4776 | |
---|
4777 | |
---|
4778 | # Check the size of pointers, longs and ints |
---|
4779 | |
---|
4780 | if test -z "$ac_sizeof_voidp"; then |
---|
4781 | # The cast to long int works around a bug in the HP C Compiler |
---|
4782 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
4783 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
4784 | # This bug is HP SR number 8606223364. |
---|
4785 | { $as_echo "$as_me:$LINENO: checking size of void *" >&5 |
---|
4786 | $as_echo_n "checking size of void *... " >&6; } |
---|
4787 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
---|
4788 | $as_echo_n "(cached) " >&6 |
---|
4789 | else |
---|
4790 | if test "$cross_compiling" = yes; then |
---|
4791 | # Depending upon the size, compute the lo and hi bounds. |
---|
4792 | cat >conftest.$ac_ext <<_ACEOF |
---|
4793 | /* confdefs.h. */ |
---|
4794 | _ACEOF |
---|
4795 | cat confdefs.h >>conftest.$ac_ext |
---|
4796 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4797 | /* end confdefs.h. */ |
---|
4798 | $ac_includes_default |
---|
4799 | int |
---|
4800 | main () |
---|
4801 | { |
---|
4802 | static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)]; |
---|
4803 | test_array [0] = 0 |
---|
4804 | |
---|
4805 | ; |
---|
4806 | return 0; |
---|
4807 | } |
---|
4808 | _ACEOF |
---|
4809 | rm -f conftest.$ac_objext |
---|
4810 | if { (ac_try="$ac_compile" |
---|
4811 | case "(($ac_try" in |
---|
4812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4813 | *) ac_try_echo=$ac_try;; |
---|
4814 | esac |
---|
4815 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4816 | $as_echo "$ac_try_echo") >&5 |
---|
4817 | (eval "$ac_compile") 2>conftest.er1 |
---|
4818 | ac_status=$? |
---|
4819 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4820 | rm -f conftest.er1 |
---|
4821 | cat conftest.err >&5 |
---|
4822 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4823 | (exit $ac_status); } && { |
---|
4824 | test -z "$ac_c_werror_flag" || |
---|
4825 | test ! -s conftest.err |
---|
4826 | } && test -s conftest.$ac_objext; then |
---|
4827 | ac_lo=0 ac_mid=0 |
---|
4828 | while :; do |
---|
4829 | cat >conftest.$ac_ext <<_ACEOF |
---|
4830 | /* confdefs.h. */ |
---|
4831 | _ACEOF |
---|
4832 | cat confdefs.h >>conftest.$ac_ext |
---|
4833 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4834 | /* end confdefs.h. */ |
---|
4835 | $ac_includes_default |
---|
4836 | int |
---|
4837 | main () |
---|
4838 | { |
---|
4839 | static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)]; |
---|
4840 | test_array [0] = 0 |
---|
4841 | |
---|
4842 | ; |
---|
4843 | return 0; |
---|
4844 | } |
---|
4845 | _ACEOF |
---|
4846 | rm -f conftest.$ac_objext |
---|
4847 | if { (ac_try="$ac_compile" |
---|
4848 | case "(($ac_try" in |
---|
4849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4850 | *) ac_try_echo=$ac_try;; |
---|
4851 | esac |
---|
4852 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4853 | $as_echo "$ac_try_echo") >&5 |
---|
4854 | (eval "$ac_compile") 2>conftest.er1 |
---|
4855 | ac_status=$? |
---|
4856 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4857 | rm -f conftest.er1 |
---|
4858 | cat conftest.err >&5 |
---|
4859 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4860 | (exit $ac_status); } && { |
---|
4861 | test -z "$ac_c_werror_flag" || |
---|
4862 | test ! -s conftest.err |
---|
4863 | } && test -s conftest.$ac_objext; then |
---|
4864 | ac_hi=$ac_mid; break |
---|
4865 | else |
---|
4866 | $as_echo "$as_me: failed program was:" >&5 |
---|
4867 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4868 | |
---|
4869 | ac_lo=`expr $ac_mid + 1` |
---|
4870 | if test $ac_lo -le $ac_mid; then |
---|
4871 | ac_lo= ac_hi= |
---|
4872 | break |
---|
4873 | fi |
---|
4874 | ac_mid=`expr 2 '*' $ac_mid + 1` |
---|
4875 | fi |
---|
4876 | |
---|
4877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4878 | done |
---|
4879 | else |
---|
4880 | $as_echo "$as_me: failed program was:" >&5 |
---|
4881 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4882 | |
---|
4883 | cat >conftest.$ac_ext <<_ACEOF |
---|
4884 | /* confdefs.h. */ |
---|
4885 | _ACEOF |
---|
4886 | cat confdefs.h >>conftest.$ac_ext |
---|
4887 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4888 | /* end confdefs.h. */ |
---|
4889 | $ac_includes_default |
---|
4890 | int |
---|
4891 | main () |
---|
4892 | { |
---|
4893 | static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)]; |
---|
4894 | test_array [0] = 0 |
---|
4895 | |
---|
4896 | ; |
---|
4897 | return 0; |
---|
4898 | } |
---|
4899 | _ACEOF |
---|
4900 | rm -f conftest.$ac_objext |
---|
4901 | if { (ac_try="$ac_compile" |
---|
4902 | case "(($ac_try" in |
---|
4903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4904 | *) ac_try_echo=$ac_try;; |
---|
4905 | esac |
---|
4906 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4907 | $as_echo "$ac_try_echo") >&5 |
---|
4908 | (eval "$ac_compile") 2>conftest.er1 |
---|
4909 | ac_status=$? |
---|
4910 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4911 | rm -f conftest.er1 |
---|
4912 | cat conftest.err >&5 |
---|
4913 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4914 | (exit $ac_status); } && { |
---|
4915 | test -z "$ac_c_werror_flag" || |
---|
4916 | test ! -s conftest.err |
---|
4917 | } && test -s conftest.$ac_objext; then |
---|
4918 | ac_hi=-1 ac_mid=-1 |
---|
4919 | while :; do |
---|
4920 | cat >conftest.$ac_ext <<_ACEOF |
---|
4921 | /* confdefs.h. */ |
---|
4922 | _ACEOF |
---|
4923 | cat confdefs.h >>conftest.$ac_ext |
---|
4924 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4925 | /* end confdefs.h. */ |
---|
4926 | $ac_includes_default |
---|
4927 | int |
---|
4928 | main () |
---|
4929 | { |
---|
4930 | static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)]; |
---|
4931 | test_array [0] = 0 |
---|
4932 | |
---|
4933 | ; |
---|
4934 | return 0; |
---|
4935 | } |
---|
4936 | _ACEOF |
---|
4937 | rm -f conftest.$ac_objext |
---|
4938 | if { (ac_try="$ac_compile" |
---|
4939 | case "(($ac_try" in |
---|
4940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4941 | *) ac_try_echo=$ac_try;; |
---|
4942 | esac |
---|
4943 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4944 | $as_echo "$ac_try_echo") >&5 |
---|
4945 | (eval "$ac_compile") 2>conftest.er1 |
---|
4946 | ac_status=$? |
---|
4947 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4948 | rm -f conftest.er1 |
---|
4949 | cat conftest.err >&5 |
---|
4950 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4951 | (exit $ac_status); } && { |
---|
4952 | test -z "$ac_c_werror_flag" || |
---|
4953 | test ! -s conftest.err |
---|
4954 | } && test -s conftest.$ac_objext; then |
---|
4955 | ac_lo=$ac_mid; break |
---|
4956 | else |
---|
4957 | $as_echo "$as_me: failed program was:" >&5 |
---|
4958 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4959 | |
---|
4960 | ac_hi=`expr '(' $ac_mid ')' - 1` |
---|
4961 | if test $ac_mid -le $ac_hi; then |
---|
4962 | ac_lo= ac_hi= |
---|
4963 | break |
---|
4964 | fi |
---|
4965 | ac_mid=`expr 2 '*' $ac_mid` |
---|
4966 | fi |
---|
4967 | |
---|
4968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4969 | done |
---|
4970 | else |
---|
4971 | $as_echo "$as_me: failed program was:" >&5 |
---|
4972 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4973 | |
---|
4974 | ac_lo= ac_hi= |
---|
4975 | fi |
---|
4976 | |
---|
4977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4978 | fi |
---|
4979 | |
---|
4980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4981 | # Binary search between lo and hi bounds. |
---|
4982 | while test "x$ac_lo" != "x$ac_hi"; do |
---|
4983 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
---|
4984 | cat >conftest.$ac_ext <<_ACEOF |
---|
4985 | /* confdefs.h. */ |
---|
4986 | _ACEOF |
---|
4987 | cat confdefs.h >>conftest.$ac_ext |
---|
4988 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4989 | /* end confdefs.h. */ |
---|
4990 | $ac_includes_default |
---|
4991 | int |
---|
4992 | main () |
---|
4993 | { |
---|
4994 | static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)]; |
---|
4995 | test_array [0] = 0 |
---|
4996 | |
---|
4997 | ; |
---|
4998 | return 0; |
---|
4999 | } |
---|
5000 | _ACEOF |
---|
5001 | rm -f conftest.$ac_objext |
---|
5002 | if { (ac_try="$ac_compile" |
---|
5003 | case "(($ac_try" in |
---|
5004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5005 | *) ac_try_echo=$ac_try;; |
---|
5006 | esac |
---|
5007 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5008 | $as_echo "$ac_try_echo") >&5 |
---|
5009 | (eval "$ac_compile") 2>conftest.er1 |
---|
5010 | ac_status=$? |
---|
5011 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5012 | rm -f conftest.er1 |
---|
5013 | cat conftest.err >&5 |
---|
5014 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5015 | (exit $ac_status); } && { |
---|
5016 | test -z "$ac_c_werror_flag" || |
---|
5017 | test ! -s conftest.err |
---|
5018 | } && test -s conftest.$ac_objext; then |
---|
5019 | ac_hi=$ac_mid |
---|
5020 | else |
---|
5021 | $as_echo "$as_me: failed program was:" >&5 |
---|
5022 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5023 | |
---|
5024 | ac_lo=`expr '(' $ac_mid ')' + 1` |
---|
5025 | fi |
---|
5026 | |
---|
5027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5028 | done |
---|
5029 | case $ac_lo in |
---|
5030 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
---|
5031 | '') if test "$ac_cv_type_void_p" = yes; then |
---|
5032 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
5033 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
5034 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
---|
5035 | See \`config.log' for more details." >&5 |
---|
5036 | $as_echo "$as_me: error: cannot compute sizeof (void *) |
---|
5037 | See \`config.log' for more details." >&2;} |
---|
5038 | { (exit 77); exit 77; }; }; } |
---|
5039 | else |
---|
5040 | ac_cv_sizeof_void_p=0 |
---|
5041 | fi ;; |
---|
5042 | esac |
---|
5043 | else |
---|
5044 | cat >conftest.$ac_ext <<_ACEOF |
---|
5045 | /* confdefs.h. */ |
---|
5046 | _ACEOF |
---|
5047 | cat confdefs.h >>conftest.$ac_ext |
---|
5048 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5049 | /* end confdefs.h. */ |
---|
5050 | $ac_includes_default |
---|
5051 | static long int longval () { return (long int) (sizeof (void *)); } |
---|
5052 | static unsigned long int ulongval () { return (long int) (sizeof (void *)); } |
---|
5053 | #include <stdio.h> |
---|
5054 | #include <stdlib.h> |
---|
5055 | int |
---|
5056 | main () |
---|
5057 | { |
---|
5058 | |
---|
5059 | FILE *f = fopen ("conftest.val", "w"); |
---|
5060 | if (! f) |
---|
5061 | return 1; |
---|
5062 | if (((long int) (sizeof (void *))) < 0) |
---|
5063 | { |
---|
5064 | long int i = longval (); |
---|
5065 | if (i != ((long int) (sizeof (void *)))) |
---|
5066 | return 1; |
---|
5067 | fprintf (f, "%ld", i); |
---|
5068 | } |
---|
5069 | else |
---|
5070 | { |
---|
5071 | unsigned long int i = ulongval (); |
---|
5072 | if (i != ((long int) (sizeof (void *)))) |
---|
5073 | return 1; |
---|
5074 | fprintf (f, "%lu", i); |
---|
5075 | } |
---|
5076 | /* Do not output a trailing newline, as this causes \r\n confusion |
---|
5077 | on some platforms. */ |
---|
5078 | return ferror (f) || fclose (f) != 0; |
---|
5079 | |
---|
5080 | ; |
---|
5081 | return 0; |
---|
5082 | } |
---|
5083 | _ACEOF |
---|
5084 | rm -f conftest$ac_exeext |
---|
5085 | if { (ac_try="$ac_link" |
---|
5086 | case "(($ac_try" in |
---|
5087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5088 | *) ac_try_echo=$ac_try;; |
---|
5089 | esac |
---|
5090 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5091 | $as_echo "$ac_try_echo") >&5 |
---|
5092 | (eval "$ac_link") 2>&5 |
---|
5093 | ac_status=$? |
---|
5094 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5095 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5096 | { (case "(($ac_try" in |
---|
5097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5098 | *) ac_try_echo=$ac_try;; |
---|
5099 | esac |
---|
5100 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5101 | $as_echo "$ac_try_echo") >&5 |
---|
5102 | (eval "$ac_try") 2>&5 |
---|
5103 | ac_status=$? |
---|
5104 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5105 | (exit $ac_status); }; }; then |
---|
5106 | ac_cv_sizeof_void_p=`cat conftest.val` |
---|
5107 | else |
---|
5108 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
5109 | $as_echo "$as_me: failed program was:" >&5 |
---|
5110 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5111 | |
---|
5112 | ( exit $ac_status ) |
---|
5113 | if test "$ac_cv_type_void_p" = yes; then |
---|
5114 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
5115 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
5116 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
---|
5117 | See \`config.log' for more details." >&5 |
---|
5118 | $as_echo "$as_me: error: cannot compute sizeof (void *) |
---|
5119 | See \`config.log' for more details." >&2;} |
---|
5120 | { (exit 77); exit 77; }; }; } |
---|
5121 | else |
---|
5122 | ac_cv_sizeof_void_p=0 |
---|
5123 | fi |
---|
5124 | fi |
---|
5125 | rm -rf conftest.dSYM |
---|
5126 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5127 | fi |
---|
5128 | rm -f conftest.val |
---|
5129 | fi |
---|
5130 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
---|
5131 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
---|
5132 | |
---|
5133 | |
---|
5134 | |
---|
5135 | cat >>confdefs.h <<_ACEOF |
---|
5136 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
---|
5137 | _ACEOF |
---|
5138 | |
---|
5139 | |
---|
5140 | fi |
---|
5141 | # The cast to long int works around a bug in the HP C Compiler |
---|
5142 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
5143 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
5144 | # This bug is HP SR number 8606223364. |
---|
5145 | { $as_echo "$as_me:$LINENO: checking size of int" >&5 |
---|
5146 | $as_echo_n "checking size of int... " >&6; } |
---|
5147 | if test "${ac_cv_sizeof_int+set}" = set; then |
---|
5148 | $as_echo_n "(cached) " >&6 |
---|
5149 | else |
---|
5150 | if test "$cross_compiling" = yes; then |
---|
5151 | # Depending upon the size, compute the lo and hi bounds. |
---|
5152 | cat >conftest.$ac_ext <<_ACEOF |
---|
5153 | /* confdefs.h. */ |
---|
5154 | _ACEOF |
---|
5155 | cat confdefs.h >>conftest.$ac_ext |
---|
5156 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5157 | /* end confdefs.h. */ |
---|
5158 | $ac_includes_default |
---|
5159 | int |
---|
5160 | main () |
---|
5161 | { |
---|
5162 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)]; |
---|
5163 | test_array [0] = 0 |
---|
5164 | |
---|
5165 | ; |
---|
5166 | return 0; |
---|
5167 | } |
---|
5168 | _ACEOF |
---|
5169 | rm -f conftest.$ac_objext |
---|
5170 | if { (ac_try="$ac_compile" |
---|
5171 | case "(($ac_try" in |
---|
5172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5173 | *) ac_try_echo=$ac_try;; |
---|
5174 | esac |
---|
5175 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5176 | $as_echo "$ac_try_echo") >&5 |
---|
5177 | (eval "$ac_compile") 2>conftest.er1 |
---|
5178 | ac_status=$? |
---|
5179 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5180 | rm -f conftest.er1 |
---|
5181 | cat conftest.err >&5 |
---|
5182 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5183 | (exit $ac_status); } && { |
---|
5184 | test -z "$ac_c_werror_flag" || |
---|
5185 | test ! -s conftest.err |
---|
5186 | } && test -s conftest.$ac_objext; then |
---|
5187 | ac_lo=0 ac_mid=0 |
---|
5188 | while :; do |
---|
5189 | cat >conftest.$ac_ext <<_ACEOF |
---|
5190 | /* confdefs.h. */ |
---|
5191 | _ACEOF |
---|
5192 | cat confdefs.h >>conftest.$ac_ext |
---|
5193 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5194 | /* end confdefs.h. */ |
---|
5195 | $ac_includes_default |
---|
5196 | int |
---|
5197 | main () |
---|
5198 | { |
---|
5199 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; |
---|
5200 | test_array [0] = 0 |
---|
5201 | |
---|
5202 | ; |
---|
5203 | return 0; |
---|
5204 | } |
---|
5205 | _ACEOF |
---|
5206 | rm -f conftest.$ac_objext |
---|
5207 | if { (ac_try="$ac_compile" |
---|
5208 | case "(($ac_try" in |
---|
5209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5210 | *) ac_try_echo=$ac_try;; |
---|
5211 | esac |
---|
5212 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5213 | $as_echo "$ac_try_echo") >&5 |
---|
5214 | (eval "$ac_compile") 2>conftest.er1 |
---|
5215 | ac_status=$? |
---|
5216 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5217 | rm -f conftest.er1 |
---|
5218 | cat conftest.err >&5 |
---|
5219 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5220 | (exit $ac_status); } && { |
---|
5221 | test -z "$ac_c_werror_flag" || |
---|
5222 | test ! -s conftest.err |
---|
5223 | } && test -s conftest.$ac_objext; then |
---|
5224 | ac_hi=$ac_mid; break |
---|
5225 | else |
---|
5226 | $as_echo "$as_me: failed program was:" >&5 |
---|
5227 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5228 | |
---|
5229 | ac_lo=`expr $ac_mid + 1` |
---|
5230 | if test $ac_lo -le $ac_mid; then |
---|
5231 | ac_lo= ac_hi= |
---|
5232 | break |
---|
5233 | fi |
---|
5234 | ac_mid=`expr 2 '*' $ac_mid + 1` |
---|
5235 | fi |
---|
5236 | |
---|
5237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5238 | done |
---|
5239 | else |
---|
5240 | $as_echo "$as_me: failed program was:" >&5 |
---|
5241 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5242 | |
---|
5243 | cat >conftest.$ac_ext <<_ACEOF |
---|
5244 | /* confdefs.h. */ |
---|
5245 | _ACEOF |
---|
5246 | cat confdefs.h >>conftest.$ac_ext |
---|
5247 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5248 | /* end confdefs.h. */ |
---|
5249 | $ac_includes_default |
---|
5250 | int |
---|
5251 | main () |
---|
5252 | { |
---|
5253 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)]; |
---|
5254 | test_array [0] = 0 |
---|
5255 | |
---|
5256 | ; |
---|
5257 | return 0; |
---|
5258 | } |
---|
5259 | _ACEOF |
---|
5260 | rm -f conftest.$ac_objext |
---|
5261 | if { (ac_try="$ac_compile" |
---|
5262 | case "(($ac_try" in |
---|
5263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5264 | *) ac_try_echo=$ac_try;; |
---|
5265 | esac |
---|
5266 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5267 | $as_echo "$ac_try_echo") >&5 |
---|
5268 | (eval "$ac_compile") 2>conftest.er1 |
---|
5269 | ac_status=$? |
---|
5270 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5271 | rm -f conftest.er1 |
---|
5272 | cat conftest.err >&5 |
---|
5273 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5274 | (exit $ac_status); } && { |
---|
5275 | test -z "$ac_c_werror_flag" || |
---|
5276 | test ! -s conftest.err |
---|
5277 | } && test -s conftest.$ac_objext; then |
---|
5278 | ac_hi=-1 ac_mid=-1 |
---|
5279 | while :; do |
---|
5280 | cat >conftest.$ac_ext <<_ACEOF |
---|
5281 | /* confdefs.h. */ |
---|
5282 | _ACEOF |
---|
5283 | cat confdefs.h >>conftest.$ac_ext |
---|
5284 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5285 | /* end confdefs.h. */ |
---|
5286 | $ac_includes_default |
---|
5287 | int |
---|
5288 | main () |
---|
5289 | { |
---|
5290 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)]; |
---|
5291 | test_array [0] = 0 |
---|
5292 | |
---|
5293 | ; |
---|
5294 | return 0; |
---|
5295 | } |
---|
5296 | _ACEOF |
---|
5297 | rm -f conftest.$ac_objext |
---|
5298 | if { (ac_try="$ac_compile" |
---|
5299 | case "(($ac_try" in |
---|
5300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5301 | *) ac_try_echo=$ac_try;; |
---|
5302 | esac |
---|
5303 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5304 | $as_echo "$ac_try_echo") >&5 |
---|
5305 | (eval "$ac_compile") 2>conftest.er1 |
---|
5306 | ac_status=$? |
---|
5307 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5308 | rm -f conftest.er1 |
---|
5309 | cat conftest.err >&5 |
---|
5310 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5311 | (exit $ac_status); } && { |
---|
5312 | test -z "$ac_c_werror_flag" || |
---|
5313 | test ! -s conftest.err |
---|
5314 | } && test -s conftest.$ac_objext; then |
---|
5315 | ac_lo=$ac_mid; break |
---|
5316 | else |
---|
5317 | $as_echo "$as_me: failed program was:" >&5 |
---|
5318 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5319 | |
---|
5320 | ac_hi=`expr '(' $ac_mid ')' - 1` |
---|
5321 | if test $ac_mid -le $ac_hi; then |
---|
5322 | ac_lo= ac_hi= |
---|
5323 | break |
---|
5324 | fi |
---|
5325 | ac_mid=`expr 2 '*' $ac_mid` |
---|
5326 | fi |
---|
5327 | |
---|
5328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5329 | done |
---|
5330 | else |
---|
5331 | $as_echo "$as_me: failed program was:" >&5 |
---|
5332 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5333 | |
---|
5334 | ac_lo= ac_hi= |
---|
5335 | fi |
---|
5336 | |
---|
5337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5338 | fi |
---|
5339 | |
---|
5340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5341 | # Binary search between lo and hi bounds. |
---|
5342 | while test "x$ac_lo" != "x$ac_hi"; do |
---|
5343 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
---|
5344 | cat >conftest.$ac_ext <<_ACEOF |
---|
5345 | /* confdefs.h. */ |
---|
5346 | _ACEOF |
---|
5347 | cat confdefs.h >>conftest.$ac_ext |
---|
5348 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5349 | /* end confdefs.h. */ |
---|
5350 | $ac_includes_default |
---|
5351 | int |
---|
5352 | main () |
---|
5353 | { |
---|
5354 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; |
---|
5355 | test_array [0] = 0 |
---|
5356 | |
---|
5357 | ; |
---|
5358 | return 0; |
---|
5359 | } |
---|
5360 | _ACEOF |
---|
5361 | rm -f conftest.$ac_objext |
---|
5362 | if { (ac_try="$ac_compile" |
---|
5363 | case "(($ac_try" in |
---|
5364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5365 | *) ac_try_echo=$ac_try;; |
---|
5366 | esac |
---|
5367 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5368 | $as_echo "$ac_try_echo") >&5 |
---|
5369 | (eval "$ac_compile") 2>conftest.er1 |
---|
5370 | ac_status=$? |
---|
5371 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5372 | rm -f conftest.er1 |
---|
5373 | cat conftest.err >&5 |
---|
5374 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5375 | (exit $ac_status); } && { |
---|
5376 | test -z "$ac_c_werror_flag" || |
---|
5377 | test ! -s conftest.err |
---|
5378 | } && test -s conftest.$ac_objext; then |
---|
5379 | ac_hi=$ac_mid |
---|
5380 | else |
---|
5381 | $as_echo "$as_me: failed program was:" >&5 |
---|
5382 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5383 | |
---|
5384 | ac_lo=`expr '(' $ac_mid ')' + 1` |
---|
5385 | fi |
---|
5386 | |
---|
5387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5388 | done |
---|
5389 | case $ac_lo in |
---|
5390 | ?*) ac_cv_sizeof_int=$ac_lo;; |
---|
5391 | '') if test "$ac_cv_type_int" = yes; then |
---|
5392 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
5393 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
5394 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
---|
5395 | See \`config.log' for more details." >&5 |
---|
5396 | $as_echo "$as_me: error: cannot compute sizeof (int) |
---|
5397 | See \`config.log' for more details." >&2;} |
---|
5398 | { (exit 77); exit 77; }; }; } |
---|
5399 | else |
---|
5400 | ac_cv_sizeof_int=0 |
---|
5401 | fi ;; |
---|
5402 | esac |
---|
5403 | else |
---|
5404 | cat >conftest.$ac_ext <<_ACEOF |
---|
5405 | /* confdefs.h. */ |
---|
5406 | _ACEOF |
---|
5407 | cat confdefs.h >>conftest.$ac_ext |
---|
5408 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5409 | /* end confdefs.h. */ |
---|
5410 | $ac_includes_default |
---|
5411 | static long int longval () { return (long int) (sizeof (int)); } |
---|
5412 | static unsigned long int ulongval () { return (long int) (sizeof (int)); } |
---|
5413 | #include <stdio.h> |
---|
5414 | #include <stdlib.h> |
---|
5415 | int |
---|
5416 | main () |
---|
5417 | { |
---|
5418 | |
---|
5419 | FILE *f = fopen ("conftest.val", "w"); |
---|
5420 | if (! f) |
---|
5421 | return 1; |
---|
5422 | if (((long int) (sizeof (int))) < 0) |
---|
5423 | { |
---|
5424 | long int i = longval (); |
---|
5425 | if (i != ((long int) (sizeof (int)))) |
---|
5426 | return 1; |
---|
5427 | fprintf (f, "%ld", i); |
---|
5428 | } |
---|
5429 | else |
---|
5430 | { |
---|
5431 | unsigned long int i = ulongval (); |
---|
5432 | if (i != ((long int) (sizeof (int)))) |
---|
5433 | return 1; |
---|
5434 | fprintf (f, "%lu", i); |
---|
5435 | } |
---|
5436 | /* Do not output a trailing newline, as this causes \r\n confusion |
---|
5437 | on some platforms. */ |
---|
5438 | return ferror (f) || fclose (f) != 0; |
---|
5439 | |
---|
5440 | ; |
---|
5441 | return 0; |
---|
5442 | } |
---|
5443 | _ACEOF |
---|
5444 | rm -f conftest$ac_exeext |
---|
5445 | if { (ac_try="$ac_link" |
---|
5446 | case "(($ac_try" in |
---|
5447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5448 | *) ac_try_echo=$ac_try;; |
---|
5449 | esac |
---|
5450 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5451 | $as_echo "$ac_try_echo") >&5 |
---|
5452 | (eval "$ac_link") 2>&5 |
---|
5453 | ac_status=$? |
---|
5454 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5455 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5456 | { (case "(($ac_try" in |
---|
5457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5458 | *) ac_try_echo=$ac_try;; |
---|
5459 | esac |
---|
5460 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5461 | $as_echo "$ac_try_echo") >&5 |
---|
5462 | (eval "$ac_try") 2>&5 |
---|
5463 | ac_status=$? |
---|
5464 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5465 | (exit $ac_status); }; }; then |
---|
5466 | ac_cv_sizeof_int=`cat conftest.val` |
---|
5467 | else |
---|
5468 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
5469 | $as_echo "$as_me: failed program was:" >&5 |
---|
5470 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5471 | |
---|
5472 | ( exit $ac_status ) |
---|
5473 | if test "$ac_cv_type_int" = yes; then |
---|
5474 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
5475 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
5476 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
---|
5477 | See \`config.log' for more details." >&5 |
---|
5478 | $as_echo "$as_me: error: cannot compute sizeof (int) |
---|
5479 | See \`config.log' for more details." >&2;} |
---|
5480 | { (exit 77); exit 77; }; }; } |
---|
5481 | else |
---|
5482 | ac_cv_sizeof_int=0 |
---|
5483 | fi |
---|
5484 | fi |
---|
5485 | rm -rf conftest.dSYM |
---|
5486 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5487 | fi |
---|
5488 | rm -f conftest.val |
---|
5489 | fi |
---|
5490 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
---|
5491 | $as_echo "$ac_cv_sizeof_int" >&6; } |
---|
5492 | |
---|
5493 | |
---|
5494 | |
---|
5495 | cat >>confdefs.h <<_ACEOF |
---|
5496 | #define SIZEOF_INT $ac_cv_sizeof_int |
---|
5497 | _ACEOF |
---|
5498 | |
---|
5499 | |
---|
5500 | # The cast to long int works around a bug in the HP C Compiler |
---|
5501 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
5502 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
5503 | # This bug is HP SR number 8606223364. |
---|
5504 | { $as_echo "$as_me:$LINENO: checking size of long" >&5 |
---|
5505 | $as_echo_n "checking size of long... " >&6; } |
---|
5506 | if test "${ac_cv_sizeof_long+set}" = set; then |
---|
5507 | $as_echo_n "(cached) " >&6 |
---|
5508 | else |
---|
5509 | if test "$cross_compiling" = yes; then |
---|
5510 | # Depending upon the size, compute the lo and hi bounds. |
---|
5511 | cat >conftest.$ac_ext <<_ACEOF |
---|
5512 | /* confdefs.h. */ |
---|
5513 | _ACEOF |
---|
5514 | cat confdefs.h >>conftest.$ac_ext |
---|
5515 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5516 | /* end confdefs.h. */ |
---|
5517 | $ac_includes_default |
---|
5518 | int |
---|
5519 | main () |
---|
5520 | { |
---|
5521 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)]; |
---|
5522 | test_array [0] = 0 |
---|
5523 | |
---|
5524 | ; |
---|
5525 | return 0; |
---|
5526 | } |
---|
5527 | _ACEOF |
---|
5528 | rm -f conftest.$ac_objext |
---|
5529 | if { (ac_try="$ac_compile" |
---|
5530 | case "(($ac_try" in |
---|
5531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5532 | *) ac_try_echo=$ac_try;; |
---|
5533 | esac |
---|
5534 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5535 | $as_echo "$ac_try_echo") >&5 |
---|
5536 | (eval "$ac_compile") 2>conftest.er1 |
---|
5537 | ac_status=$? |
---|
5538 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5539 | rm -f conftest.er1 |
---|
5540 | cat conftest.err >&5 |
---|
5541 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5542 | (exit $ac_status); } && { |
---|
5543 | test -z "$ac_c_werror_flag" || |
---|
5544 | test ! -s conftest.err |
---|
5545 | } && test -s conftest.$ac_objext; then |
---|
5546 | ac_lo=0 ac_mid=0 |
---|
5547 | while :; do |
---|
5548 | cat >conftest.$ac_ext <<_ACEOF |
---|
5549 | /* confdefs.h. */ |
---|
5550 | _ACEOF |
---|
5551 | cat confdefs.h >>conftest.$ac_ext |
---|
5552 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5553 | /* end confdefs.h. */ |
---|
5554 | $ac_includes_default |
---|
5555 | int |
---|
5556 | main () |
---|
5557 | { |
---|
5558 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; |
---|
5559 | test_array [0] = 0 |
---|
5560 | |
---|
5561 | ; |
---|
5562 | return 0; |
---|
5563 | } |
---|
5564 | _ACEOF |
---|
5565 | rm -f conftest.$ac_objext |
---|
5566 | if { (ac_try="$ac_compile" |
---|
5567 | case "(($ac_try" in |
---|
5568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5569 | *) ac_try_echo=$ac_try;; |
---|
5570 | esac |
---|
5571 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5572 | $as_echo "$ac_try_echo") >&5 |
---|
5573 | (eval "$ac_compile") 2>conftest.er1 |
---|
5574 | ac_status=$? |
---|
5575 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5576 | rm -f conftest.er1 |
---|
5577 | cat conftest.err >&5 |
---|
5578 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5579 | (exit $ac_status); } && { |
---|
5580 | test -z "$ac_c_werror_flag" || |
---|
5581 | test ! -s conftest.err |
---|
5582 | } && test -s conftest.$ac_objext; then |
---|
5583 | ac_hi=$ac_mid; break |
---|
5584 | else |
---|
5585 | $as_echo "$as_me: failed program was:" >&5 |
---|
5586 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5587 | |
---|
5588 | ac_lo=`expr $ac_mid + 1` |
---|
5589 | if test $ac_lo -le $ac_mid; then |
---|
5590 | ac_lo= ac_hi= |
---|
5591 | break |
---|
5592 | fi |
---|
5593 | ac_mid=`expr 2 '*' $ac_mid + 1` |
---|
5594 | fi |
---|
5595 | |
---|
5596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5597 | done |
---|
5598 | else |
---|
5599 | $as_echo "$as_me: failed program was:" >&5 |
---|
5600 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5601 | |
---|
5602 | cat >conftest.$ac_ext <<_ACEOF |
---|
5603 | /* confdefs.h. */ |
---|
5604 | _ACEOF |
---|
5605 | cat confdefs.h >>conftest.$ac_ext |
---|
5606 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5607 | /* end confdefs.h. */ |
---|
5608 | $ac_includes_default |
---|
5609 | int |
---|
5610 | main () |
---|
5611 | { |
---|
5612 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)]; |
---|
5613 | test_array [0] = 0 |
---|
5614 | |
---|
5615 | ; |
---|
5616 | return 0; |
---|
5617 | } |
---|
5618 | _ACEOF |
---|
5619 | rm -f conftest.$ac_objext |
---|
5620 | if { (ac_try="$ac_compile" |
---|
5621 | case "(($ac_try" in |
---|
5622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5623 | *) ac_try_echo=$ac_try;; |
---|
5624 | esac |
---|
5625 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5626 | $as_echo "$ac_try_echo") >&5 |
---|
5627 | (eval "$ac_compile") 2>conftest.er1 |
---|
5628 | ac_status=$? |
---|
5629 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5630 | rm -f conftest.er1 |
---|
5631 | cat conftest.err >&5 |
---|
5632 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5633 | (exit $ac_status); } && { |
---|
5634 | test -z "$ac_c_werror_flag" || |
---|
5635 | test ! -s conftest.err |
---|
5636 | } && test -s conftest.$ac_objext; then |
---|
5637 | ac_hi=-1 ac_mid=-1 |
---|
5638 | while :; do |
---|
5639 | cat >conftest.$ac_ext <<_ACEOF |
---|
5640 | /* confdefs.h. */ |
---|
5641 | _ACEOF |
---|
5642 | cat confdefs.h >>conftest.$ac_ext |
---|
5643 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5644 | /* end confdefs.h. */ |
---|
5645 | $ac_includes_default |
---|
5646 | int |
---|
5647 | main () |
---|
5648 | { |
---|
5649 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)]; |
---|
5650 | test_array [0] = 0 |
---|
5651 | |
---|
5652 | ; |
---|
5653 | return 0; |
---|
5654 | } |
---|
5655 | _ACEOF |
---|
5656 | rm -f conftest.$ac_objext |
---|
5657 | if { (ac_try="$ac_compile" |
---|
5658 | case "(($ac_try" in |
---|
5659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5660 | *) ac_try_echo=$ac_try;; |
---|
5661 | esac |
---|
5662 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5663 | $as_echo "$ac_try_echo") >&5 |
---|
5664 | (eval "$ac_compile") 2>conftest.er1 |
---|
5665 | ac_status=$? |
---|
5666 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5667 | rm -f conftest.er1 |
---|
5668 | cat conftest.err >&5 |
---|
5669 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5670 | (exit $ac_status); } && { |
---|
5671 | test -z "$ac_c_werror_flag" || |
---|
5672 | test ! -s conftest.err |
---|
5673 | } && test -s conftest.$ac_objext; then |
---|
5674 | ac_lo=$ac_mid; break |
---|
5675 | else |
---|
5676 | $as_echo "$as_me: failed program was:" >&5 |
---|
5677 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5678 | |
---|
5679 | ac_hi=`expr '(' $ac_mid ')' - 1` |
---|
5680 | if test $ac_mid -le $ac_hi; then |
---|
5681 | ac_lo= ac_hi= |
---|
5682 | break |
---|
5683 | fi |
---|
5684 | ac_mid=`expr 2 '*' $ac_mid` |
---|
5685 | fi |
---|
5686 | |
---|
5687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5688 | done |
---|
5689 | else |
---|
5690 | $as_echo "$as_me: failed program was:" >&5 |
---|
5691 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5692 | |
---|
5693 | ac_lo= ac_hi= |
---|
5694 | fi |
---|
5695 | |
---|
5696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5697 | fi |
---|
5698 | |
---|
5699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5700 | # Binary search between lo and hi bounds. |
---|
5701 | while test "x$ac_lo" != "x$ac_hi"; do |
---|
5702 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
---|
5703 | cat >conftest.$ac_ext <<_ACEOF |
---|
5704 | /* confdefs.h. */ |
---|
5705 | _ACEOF |
---|
5706 | cat confdefs.h >>conftest.$ac_ext |
---|
5707 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5708 | /* end confdefs.h. */ |
---|
5709 | $ac_includes_default |
---|
5710 | int |
---|
5711 | main () |
---|
5712 | { |
---|
5713 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; |
---|
5714 | test_array [0] = 0 |
---|
5715 | |
---|
5716 | ; |
---|
5717 | return 0; |
---|
5718 | } |
---|
5719 | _ACEOF |
---|
5720 | rm -f conftest.$ac_objext |
---|
5721 | if { (ac_try="$ac_compile" |
---|
5722 | case "(($ac_try" in |
---|
5723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5724 | *) ac_try_echo=$ac_try;; |
---|
5725 | esac |
---|
5726 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5727 | $as_echo "$ac_try_echo") >&5 |
---|
5728 | (eval "$ac_compile") 2>conftest.er1 |
---|
5729 | ac_status=$? |
---|
5730 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5731 | rm -f conftest.er1 |
---|
5732 | cat conftest.err >&5 |
---|
5733 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5734 | (exit $ac_status); } && { |
---|
5735 | test -z "$ac_c_werror_flag" || |
---|
5736 | test ! -s conftest.err |
---|
5737 | } && test -s conftest.$ac_objext; then |
---|
5738 | ac_hi=$ac_mid |
---|
5739 | else |
---|
5740 | $as_echo "$as_me: failed program was:" >&5 |
---|
5741 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5742 | |
---|
5743 | ac_lo=`expr '(' $ac_mid ')' + 1` |
---|
5744 | fi |
---|
5745 | |
---|
5746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5747 | done |
---|
5748 | case $ac_lo in |
---|
5749 | ?*) ac_cv_sizeof_long=$ac_lo;; |
---|
5750 | '') if test "$ac_cv_type_long" = yes; then |
---|
5751 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
5752 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
5753 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
---|
5754 | See \`config.log' for more details." >&5 |
---|
5755 | $as_echo "$as_me: error: cannot compute sizeof (long) |
---|
5756 | See \`config.log' for more details." >&2;} |
---|
5757 | { (exit 77); exit 77; }; }; } |
---|
5758 | else |
---|
5759 | ac_cv_sizeof_long=0 |
---|
5760 | fi ;; |
---|
5761 | esac |
---|
5762 | else |
---|
5763 | cat >conftest.$ac_ext <<_ACEOF |
---|
5764 | /* confdefs.h. */ |
---|
5765 | _ACEOF |
---|
5766 | cat confdefs.h >>conftest.$ac_ext |
---|
5767 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5768 | /* end confdefs.h. */ |
---|
5769 | $ac_includes_default |
---|
5770 | static long int longval () { return (long int) (sizeof (long)); } |
---|
5771 | static unsigned long int ulongval () { return (long int) (sizeof (long)); } |
---|
5772 | #include <stdio.h> |
---|
5773 | #include <stdlib.h> |
---|
5774 | int |
---|
5775 | main () |
---|
5776 | { |
---|
5777 | |
---|
5778 | FILE *f = fopen ("conftest.val", "w"); |
---|
5779 | if (! f) |
---|
5780 | return 1; |
---|
5781 | if (((long int) (sizeof (long))) < 0) |
---|
5782 | { |
---|
5783 | long int i = longval (); |
---|
5784 | if (i != ((long int) (sizeof (long)))) |
---|
5785 | return 1; |
---|
5786 | fprintf (f, "%ld", i); |
---|
5787 | } |
---|
5788 | else |
---|
5789 | { |
---|
5790 | unsigned long int i = ulongval (); |
---|
5791 | if (i != ((long int) (sizeof (long)))) |
---|
5792 | return 1; |
---|
5793 | fprintf (f, "%lu", i); |
---|
5794 | } |
---|
5795 | /* Do not output a trailing newline, as this causes \r\n confusion |
---|
5796 | on some platforms. */ |
---|
5797 | return ferror (f) || fclose (f) != 0; |
---|
5798 | |
---|
5799 | ; |
---|
5800 | return 0; |
---|
5801 | } |
---|
5802 | _ACEOF |
---|
5803 | rm -f conftest$ac_exeext |
---|
5804 | if { (ac_try="$ac_link" |
---|
5805 | case "(($ac_try" in |
---|
5806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5807 | *) ac_try_echo=$ac_try;; |
---|
5808 | esac |
---|
5809 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5810 | $as_echo "$ac_try_echo") >&5 |
---|
5811 | (eval "$ac_link") 2>&5 |
---|
5812 | ac_status=$? |
---|
5813 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5814 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5815 | { (case "(($ac_try" in |
---|
5816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5817 | *) ac_try_echo=$ac_try;; |
---|
5818 | esac |
---|
5819 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5820 | $as_echo "$ac_try_echo") >&5 |
---|
5821 | (eval "$ac_try") 2>&5 |
---|
5822 | ac_status=$? |
---|
5823 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5824 | (exit $ac_status); }; }; then |
---|
5825 | ac_cv_sizeof_long=`cat conftest.val` |
---|
5826 | else |
---|
5827 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
5828 | $as_echo "$as_me: failed program was:" >&5 |
---|
5829 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5830 | |
---|
5831 | ( exit $ac_status ) |
---|
5832 | if test "$ac_cv_type_long" = yes; then |
---|
5833 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
5834 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
5835 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
---|
5836 | See \`config.log' for more details." >&5 |
---|
5837 | $as_echo "$as_me: error: cannot compute sizeof (long) |
---|
5838 | See \`config.log' for more details." >&2;} |
---|
5839 | { (exit 77); exit 77; }; }; } |
---|
5840 | else |
---|
5841 | ac_cv_sizeof_long=0 |
---|
5842 | fi |
---|
5843 | fi |
---|
5844 | rm -rf conftest.dSYM |
---|
5845 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5846 | fi |
---|
5847 | rm -f conftest.val |
---|
5848 | fi |
---|
5849 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
---|
5850 | $as_echo "$ac_cv_sizeof_long" >&6; } |
---|
5851 | |
---|
5852 | |
---|
5853 | |
---|
5854 | cat >>confdefs.h <<_ACEOF |
---|
5855 | #define SIZEOF_LONG $ac_cv_sizeof_long |
---|
5856 | _ACEOF |
---|
5857 | |
---|
5858 | |
---|
5859 | |
---|
5860 | # Check for a working implementation of IEEE 754 floating point |
---|
5861 | # Specifically, check for correct treatment of +Infinity |
---|
5862 | { $as_echo "$as_me:$LINENO: checking for +Infinity (IEEE 754 floating point)" >&5 |
---|
5863 | $as_echo_n "checking for +Infinity (IEEE 754 floating point)... " >&6; } |
---|
5864 | if test "${ac_cv_have_ieee_754+set}" = set; then |
---|
5865 | $as_echo_n "(cached) " >&6 |
---|
5866 | else |
---|
5867 | if test "$cross_compiling" = yes; then |
---|
5868 | ac_cv_have_ieee_754=no |
---|
5869 | else |
---|
5870 | cat >conftest.$ac_ext <<_ACEOF |
---|
5871 | /* confdefs.h. */ |
---|
5872 | _ACEOF |
---|
5873 | cat confdefs.h >>conftest.$ac_ext |
---|
5874 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5875 | /* end confdefs.h. */ |
---|
5876 | |
---|
5877 | #include <math.h> |
---|
5878 | main() |
---|
5879 | { |
---|
5880 | if (HUGE_VAL != HUGE_VAL * 3 || HUGE_VAL != HUGE_VAL / 3) exit(1); |
---|
5881 | exit(0); |
---|
5882 | } |
---|
5883 | |
---|
5884 | _ACEOF |
---|
5885 | rm -f conftest$ac_exeext |
---|
5886 | if { (ac_try="$ac_link" |
---|
5887 | case "(($ac_try" in |
---|
5888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5889 | *) ac_try_echo=$ac_try;; |
---|
5890 | esac |
---|
5891 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5892 | $as_echo "$ac_try_echo") >&5 |
---|
5893 | (eval "$ac_link") 2>&5 |
---|
5894 | ac_status=$? |
---|
5895 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5896 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5897 | { (case "(($ac_try" in |
---|
5898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5899 | *) ac_try_echo=$ac_try;; |
---|
5900 | esac |
---|
5901 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5902 | $as_echo "$ac_try_echo") >&5 |
---|
5903 | (eval "$ac_try") 2>&5 |
---|
5904 | ac_status=$? |
---|
5905 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5906 | (exit $ac_status); }; }; then |
---|
5907 | ac_cv_have_ieee_754=yes |
---|
5908 | else |
---|
5909 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
5910 | $as_echo "$as_me: failed program was:" >&5 |
---|
5911 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5912 | |
---|
5913 | ( exit $ac_status ) |
---|
5914 | ac_cv_have_ieee_754=no |
---|
5915 | fi |
---|
5916 | rm -rf conftest.dSYM |
---|
5917 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5918 | fi |
---|
5919 | |
---|
5920 | |
---|
5921 | fi |
---|
5922 | |
---|
5923 | if test $ac_cv_have_ieee_754 = yes ; then |
---|
5924 | { $as_echo "$as_me:$LINENO: result: working" >&5 |
---|
5925 | $as_echo "working" >&6; } |
---|
5926 | cat >>confdefs.h <<\_ACEOF |
---|
5927 | #define HAVE_IEEE_754 1 |
---|
5928 | _ACEOF |
---|
5929 | |
---|
5930 | else |
---|
5931 | { $as_echo "$as_me:$LINENO: result: broken" >&5 |
---|
5932 | $as_echo "broken" >&6; } |
---|
5933 | fi |
---|
5934 | |
---|
5935 | # Check the size of the virtual memory page |
---|
5936 | # |
---|
5937 | # The Cal BDD package uses this |
---|
5938 | # |
---|
5939 | # This compiles and runs a small program that gets the pagesize from |
---|
5940 | # the "getpagesize()" UNIX system function. |
---|
5941 | |
---|
5942 | { $as_echo "$as_me:$LINENO: checking the size of the virtual memory system's page" >&5 |
---|
5943 | $as_echo_n "checking the size of the virtual memory system's page... " >&6; } |
---|
5944 | if test "${ac_cv_sys_pagesize+set}" = set; then |
---|
5945 | $as_echo_n "(cached) " >&6 |
---|
5946 | else |
---|
5947 | if test "$cross_compiling" = yes; then |
---|
5948 | ac_cv_sys_pagesize=unknown |
---|
5949 | else |
---|
5950 | cat >conftest.$ac_ext <<_ACEOF |
---|
5951 | /* confdefs.h. */ |
---|
5952 | _ACEOF |
---|
5953 | cat confdefs.h >>conftest.$ac_ext |
---|
5954 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5955 | /* end confdefs.h. */ |
---|
5956 | |
---|
5957 | |
---|
5958 | #include <stdio.h> |
---|
5959 | #ifdef HAVE_UNISTD_H |
---|
5960 | # include <unistd.h> |
---|
5961 | #endif |
---|
5962 | |
---|
5963 | main() { |
---|
5964 | FILE * f = fopen( "conftestval", "w" ); |
---|
5965 | if ( f == NULL ) exit(1); |
---|
5966 | fprintf( f, "%d\n", (int) getpagesize() ); |
---|
5967 | exit(0); |
---|
5968 | } |
---|
5969 | |
---|
5970 | _ACEOF |
---|
5971 | rm -f conftest$ac_exeext |
---|
5972 | if { (ac_try="$ac_link" |
---|
5973 | case "(($ac_try" in |
---|
5974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5975 | *) ac_try_echo=$ac_try;; |
---|
5976 | esac |
---|
5977 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5978 | $as_echo "$ac_try_echo") >&5 |
---|
5979 | (eval "$ac_link") 2>&5 |
---|
5980 | ac_status=$? |
---|
5981 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5982 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5983 | { (case "(($ac_try" in |
---|
5984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5985 | *) ac_try_echo=$ac_try;; |
---|
5986 | esac |
---|
5987 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5988 | $as_echo "$ac_try_echo") >&5 |
---|
5989 | (eval "$ac_try") 2>&5 |
---|
5990 | ac_status=$? |
---|
5991 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5992 | (exit $ac_status); }; }; then |
---|
5993 | ac_cv_sys_pagesize=`cat conftestval` |
---|
5994 | else |
---|
5995 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
5996 | $as_echo "$as_me: failed program was:" >&5 |
---|
5997 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5998 | |
---|
5999 | ( exit $ac_status ) |
---|
6000 | ac_cv_sys_pagesize=unknown |
---|
6001 | fi |
---|
6002 | rm -rf conftest.dSYM |
---|
6003 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6004 | fi |
---|
6005 | |
---|
6006 | |
---|
6007 | fi |
---|
6008 | |
---|
6009 | case "$ac_cv_sys_pagesize" in |
---|
6010 | 512) |
---|
6011 | { $as_echo "$as_me:$LINENO: result: 512" >&5 |
---|
6012 | $as_echo "512" >&6; } |
---|
6013 | PAGE_SIZE=512 |
---|
6014 | LG_PAGE_SIZE=9 ;; |
---|
6015 | 1024) |
---|
6016 | { $as_echo "$as_me:$LINENO: result: 1K" >&5 |
---|
6017 | $as_echo "1K" >&6; } |
---|
6018 | PAGE_SIZE=1024 |
---|
6019 | LG_PAGE_SIZE=10 ;; |
---|
6020 | 2048) |
---|
6021 | { $as_echo "$as_me:$LINENO: result: 2K" >&5 |
---|
6022 | $as_echo "2K" >&6; } |
---|
6023 | PAGE_SIZE=2048 |
---|
6024 | LG_PAGE_SIZE=11 ;; |
---|
6025 | 4096) |
---|
6026 | { $as_echo "$as_me:$LINENO: result: 4K" >&5 |
---|
6027 | $as_echo "4K" >&6; } |
---|
6028 | PAGE_SIZE=4096 |
---|
6029 | LG_PAGE_SIZE=12 ;; |
---|
6030 | 8192) |
---|
6031 | { $as_echo "$as_me:$LINENO: result: 8K" >&5 |
---|
6032 | $as_echo "8K" >&6; } |
---|
6033 | PAGE_SIZE=8192 |
---|
6034 | LG_PAGE_SIZE=13 ;; |
---|
6035 | 16384) |
---|
6036 | { $as_echo "$as_me:$LINENO: result: 16K" >&5 |
---|
6037 | $as_echo "16K" >&6; } |
---|
6038 | PAGE_SIZE=16384 |
---|
6039 | LG_PAGE_SIZE=14 ;; |
---|
6040 | 32768) |
---|
6041 | { $as_echo "$as_me:$LINENO: result: 32K" >&5 |
---|
6042 | $as_echo "32K" >&6; } |
---|
6043 | PAGE_SIZE=32768 |
---|
6044 | LG_PAGE_SIZE=15 ;; |
---|
6045 | 65536) |
---|
6046 | { $as_echo "$as_me:$LINENO: result: 64K" >&5 |
---|
6047 | $as_echo "64K" >&6; } |
---|
6048 | PAGE_SIZE=65536 |
---|
6049 | LG_PAGE_SIZE=16 ;; |
---|
6050 | unknown) |
---|
6051 | { $as_echo "$as_me:$LINENO: result: could not determine -- assuming 4K" >&5 |
---|
6052 | $as_echo "could not determine -- assuming 4K" >&6; } |
---|
6053 | PAGE_SIZE=4096 |
---|
6054 | LG_PAGE_SIZE=12 ;; |
---|
6055 | *) |
---|
6056 | { $as_echo "$as_me:$LINENO: result: Invalid page size $ac_cv_sys_pagesize -- assuming 4K" >&5 |
---|
6057 | $as_echo "Invalid page size $ac_cv_sys_pagesize -- assuming 4K" >&6; } |
---|
6058 | PAGE_SIZE=4096 |
---|
6059 | LG_PAGE_SIZE=12 ;; |
---|
6060 | esac |
---|
6061 | cat >>confdefs.h <<_ACEOF |
---|
6062 | #define PAGE_SIZE $PAGE_SIZE |
---|
6063 | _ACEOF |
---|
6064 | |
---|
6065 | cat >>confdefs.h <<_ACEOF |
---|
6066 | #define LG_PAGE_SIZE $LG_PAGE_SIZE |
---|
6067 | _ACEOF |
---|
6068 | |
---|
6069 | |
---|
6070 | # Check the endianness |
---|
6071 | # |
---|
6072 | # This compiles and runs a small program that gets endian type. |
---|
6073 | |
---|
6074 | { $as_echo "$as_me:$LINENO: checking endian type" >&5 |
---|
6075 | $as_echo_n "checking endian type... " >&6; } |
---|
6076 | if test "${ac_cv_sys_endian+set}" = set; then |
---|
6077 | $as_echo_n "(cached) " >&6 |
---|
6078 | else |
---|
6079 | if test "$cross_compiling" = yes; then |
---|
6080 | ac_cv_sys_endian=unknown |
---|
6081 | else |
---|
6082 | cat >conftest.$ac_ext <<_ACEOF |
---|
6083 | /* confdefs.h. */ |
---|
6084 | _ACEOF |
---|
6085 | cat confdefs.h >>conftest.$ac_ext |
---|
6086 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6087 | /* end confdefs.h. */ |
---|
6088 | |
---|
6089 | |
---|
6090 | #include <stdio.h> |
---|
6091 | #ifdef HAVE_UNISTD_H |
---|
6092 | # include <unistd.h> |
---|
6093 | #endif |
---|
6094 | |
---|
6095 | typedef struct EpDoubleStruct { |
---|
6096 | union { |
---|
6097 | double value; |
---|
6098 | struct IeeeDoubleStruct { /* LITTLE_ENDIAN */ |
---|
6099 | unsigned int mantissa1: 32; |
---|
6100 | unsigned int mantissa0: 20; |
---|
6101 | unsigned int exponent: 11; |
---|
6102 | unsigned int sign: 1; |
---|
6103 | } bits; |
---|
6104 | } type; |
---|
6105 | int exponent; |
---|
6106 | } EpDouble; |
---|
6107 | |
---|
6108 | main() |
---|
6109 | { |
---|
6110 | EpDouble epd; |
---|
6111 | FILE *f = fopen("conftestval", "w" ); |
---|
6112 | |
---|
6113 | if (!f) exit(1); |
---|
6114 | epd.type.value = -1.0; |
---|
6115 | if (epd.type.bits.sign == 1 && epd.type.bits.exponent == 1023 && |
---|
6116 | epd.type.bits.mantissa0 == 0 && epd.type.bits.mantissa1 == 0) |
---|
6117 | fprintf(f, "0\n"); |
---|
6118 | else |
---|
6119 | fprintf(f, "1\n"); |
---|
6120 | fclose(f); |
---|
6121 | exit(0); |
---|
6122 | } |
---|
6123 | |
---|
6124 | _ACEOF |
---|
6125 | rm -f conftest$ac_exeext |
---|
6126 | if { (ac_try="$ac_link" |
---|
6127 | case "(($ac_try" in |
---|
6128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6129 | *) ac_try_echo=$ac_try;; |
---|
6130 | esac |
---|
6131 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6132 | $as_echo "$ac_try_echo") >&5 |
---|
6133 | (eval "$ac_link") 2>&5 |
---|
6134 | ac_status=$? |
---|
6135 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6136 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6137 | { (case "(($ac_try" in |
---|
6138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6139 | *) ac_try_echo=$ac_try;; |
---|
6140 | esac |
---|
6141 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6142 | $as_echo "$ac_try_echo") >&5 |
---|
6143 | (eval "$ac_try") 2>&5 |
---|
6144 | ac_status=$? |
---|
6145 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6146 | (exit $ac_status); }; }; then |
---|
6147 | ac_cv_sys_endian=`cat conftestval` |
---|
6148 | else |
---|
6149 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
6150 | $as_echo "$as_me: failed program was:" >&5 |
---|
6151 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6152 | |
---|
6153 | ( exit $ac_status ) |
---|
6154 | ac_cv_sys_endian=unknown |
---|
6155 | fi |
---|
6156 | rm -rf conftest.dSYM |
---|
6157 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6158 | fi |
---|
6159 | |
---|
6160 | |
---|
6161 | fi |
---|
6162 | |
---|
6163 | case "$ac_cv_sys_endian" in |
---|
6164 | 0) |
---|
6165 | { $as_echo "$as_me:$LINENO: result: LITTLE_ENDIAN" >&5 |
---|
6166 | $as_echo "LITTLE_ENDIAN" >&6; } |
---|
6167 | cat >>confdefs.h <<_ACEOF |
---|
6168 | #define EPD_LITTLE_ENDIAN 1 |
---|
6169 | _ACEOF |
---|
6170 | ;; |
---|
6171 | 1) |
---|
6172 | { $as_echo "$as_me:$LINENO: result: BIG_ENDIAN" >&5 |
---|
6173 | $as_echo "BIG_ENDIAN" >&6; } |
---|
6174 | cat >>confdefs.h <<_ACEOF |
---|
6175 | #define EPD_BIG_ENDIAN 1 |
---|
6176 | _ACEOF |
---|
6177 | ;; |
---|
6178 | *) |
---|
6179 | { $as_echo "$as_me:$LINENO: result: Invalid endian size $ac_cv_sys_endian -- assuming LITTLE_ENDIAN" >&5 |
---|
6180 | $as_echo "Invalid endian size $ac_cv_sys_endian -- assuming LITTLE_ENDIAN" >&6; } |
---|
6181 | cat >>confdefs.h <<_ACEOF |
---|
6182 | #define EPD_LITTLE_ENDIAN 1 |
---|
6183 | _ACEOF |
---|
6184 | ;; |
---|
6185 | esac |
---|
6186 | |
---|
6187 | #---------------------------------------------------------------------- |
---|
6188 | # Checks for library functions. |
---|
6189 | #---------------------------------------------------------------------- |
---|
6190 | |
---|
6191 | # Add memcmp.o to LIBOBJS if the memcmp() function is unavailable or broken |
---|
6192 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
---|
6193 | $as_echo_n "checking for working memcmp... " >&6; } |
---|
6194 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
---|
6195 | $as_echo_n "(cached) " >&6 |
---|
6196 | else |
---|
6197 | if test "$cross_compiling" = yes; then |
---|
6198 | ac_cv_func_memcmp_working=no |
---|
6199 | else |
---|
6200 | cat >conftest.$ac_ext <<_ACEOF |
---|
6201 | /* confdefs.h. */ |
---|
6202 | _ACEOF |
---|
6203 | cat confdefs.h >>conftest.$ac_ext |
---|
6204 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6205 | /* end confdefs.h. */ |
---|
6206 | $ac_includes_default |
---|
6207 | int |
---|
6208 | main () |
---|
6209 | { |
---|
6210 | |
---|
6211 | /* Some versions of memcmp are not 8-bit clean. */ |
---|
6212 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
---|
6213 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
---|
6214 | return 1; |
---|
6215 | |
---|
6216 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
---|
6217 | or more and with at least one buffer not starting on a 4-byte boundary. |
---|
6218 | William Lewis provided this test program. */ |
---|
6219 | { |
---|
6220 | char foo[21]; |
---|
6221 | char bar[21]; |
---|
6222 | int i; |
---|
6223 | for (i = 0; i < 4; i++) |
---|
6224 | { |
---|
6225 | char *a = foo + i; |
---|
6226 | char *b = bar + i; |
---|
6227 | strcpy (a, "--------01111111"); |
---|
6228 | strcpy (b, "--------10000000"); |
---|
6229 | if (memcmp (a, b, 16) >= 0) |
---|
6230 | return 1; |
---|
6231 | } |
---|
6232 | return 0; |
---|
6233 | } |
---|
6234 | |
---|
6235 | ; |
---|
6236 | return 0; |
---|
6237 | } |
---|
6238 | _ACEOF |
---|
6239 | rm -f conftest$ac_exeext |
---|
6240 | if { (ac_try="$ac_link" |
---|
6241 | case "(($ac_try" in |
---|
6242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6243 | *) ac_try_echo=$ac_try;; |
---|
6244 | esac |
---|
6245 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6246 | $as_echo "$ac_try_echo") >&5 |
---|
6247 | (eval "$ac_link") 2>&5 |
---|
6248 | ac_status=$? |
---|
6249 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6250 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6251 | { (case "(($ac_try" in |
---|
6252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6253 | *) ac_try_echo=$ac_try;; |
---|
6254 | esac |
---|
6255 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6256 | $as_echo "$ac_try_echo") >&5 |
---|
6257 | (eval "$ac_try") 2>&5 |
---|
6258 | ac_status=$? |
---|
6259 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6260 | (exit $ac_status); }; }; then |
---|
6261 | ac_cv_func_memcmp_working=yes |
---|
6262 | else |
---|
6263 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
6264 | $as_echo "$as_me: failed program was:" >&5 |
---|
6265 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6266 | |
---|
6267 | ( exit $ac_status ) |
---|
6268 | ac_cv_func_memcmp_working=no |
---|
6269 | fi |
---|
6270 | rm -rf conftest.dSYM |
---|
6271 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6272 | fi |
---|
6273 | |
---|
6274 | |
---|
6275 | fi |
---|
6276 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
---|
6277 | $as_echo "$ac_cv_func_memcmp_working" >&6; } |
---|
6278 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
---|
6279 | *" memcmp.$ac_objext "* ) ;; |
---|
6280 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
---|
6281 | ;; |
---|
6282 | esac |
---|
6283 | |
---|
6284 | |
---|
6285 | |
---|
6286 | # Define RETSIGTYPE to be void or int depending on the expected return type of |
---|
6287 | # a signal handler |
---|
6288 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
---|
6289 | $as_echo_n "checking return type of signal handlers... " >&6; } |
---|
6290 | if test "${ac_cv_type_signal+set}" = set; then |
---|
6291 | $as_echo_n "(cached) " >&6 |
---|
6292 | else |
---|
6293 | cat >conftest.$ac_ext <<_ACEOF |
---|
6294 | /* confdefs.h. */ |
---|
6295 | _ACEOF |
---|
6296 | cat confdefs.h >>conftest.$ac_ext |
---|
6297 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6298 | /* end confdefs.h. */ |
---|
6299 | #include <sys/types.h> |
---|
6300 | #include <signal.h> |
---|
6301 | |
---|
6302 | int |
---|
6303 | main () |
---|
6304 | { |
---|
6305 | return *(signal (0, 0)) (0) == 1; |
---|
6306 | ; |
---|
6307 | return 0; |
---|
6308 | } |
---|
6309 | _ACEOF |
---|
6310 | rm -f conftest.$ac_objext |
---|
6311 | if { (ac_try="$ac_compile" |
---|
6312 | case "(($ac_try" in |
---|
6313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6314 | *) ac_try_echo=$ac_try;; |
---|
6315 | esac |
---|
6316 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6317 | $as_echo "$ac_try_echo") >&5 |
---|
6318 | (eval "$ac_compile") 2>conftest.er1 |
---|
6319 | ac_status=$? |
---|
6320 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6321 | rm -f conftest.er1 |
---|
6322 | cat conftest.err >&5 |
---|
6323 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6324 | (exit $ac_status); } && { |
---|
6325 | test -z "$ac_c_werror_flag" || |
---|
6326 | test ! -s conftest.err |
---|
6327 | } && test -s conftest.$ac_objext; then |
---|
6328 | ac_cv_type_signal=int |
---|
6329 | else |
---|
6330 | $as_echo "$as_me: failed program was:" >&5 |
---|
6331 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6332 | |
---|
6333 | ac_cv_type_signal=void |
---|
6334 | fi |
---|
6335 | |
---|
6336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6337 | fi |
---|
6338 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
---|
6339 | $as_echo "$ac_cv_type_signal" >&6; } |
---|
6340 | |
---|
6341 | cat >>confdefs.h <<_ACEOF |
---|
6342 | #define RETSIGTYPE $ac_cv_type_signal |
---|
6343 | _ACEOF |
---|
6344 | |
---|
6345 | |
---|
6346 | |
---|
6347 | # Define HAVE_STRCOLL if the strcoll function exists and works |
---|
6348 | { $as_echo "$as_me:$LINENO: checking for working strcoll" >&5 |
---|
6349 | $as_echo_n "checking for working strcoll... " >&6; } |
---|
6350 | if test "${ac_cv_func_strcoll_works+set}" = set; then |
---|
6351 | $as_echo_n "(cached) " >&6 |
---|
6352 | else |
---|
6353 | if test "$cross_compiling" = yes; then |
---|
6354 | ac_cv_func_strcoll_works=no |
---|
6355 | else |
---|
6356 | cat >conftest.$ac_ext <<_ACEOF |
---|
6357 | /* confdefs.h. */ |
---|
6358 | _ACEOF |
---|
6359 | cat confdefs.h >>conftest.$ac_ext |
---|
6360 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6361 | /* end confdefs.h. */ |
---|
6362 | $ac_includes_default |
---|
6363 | int |
---|
6364 | main () |
---|
6365 | { |
---|
6366 | return (strcoll ("abc", "def") >= 0 || |
---|
6367 | strcoll ("ABC", "DEF") >= 0 || |
---|
6368 | strcoll ("123", "456") >= 0) |
---|
6369 | ; |
---|
6370 | return 0; |
---|
6371 | } |
---|
6372 | _ACEOF |
---|
6373 | rm -f conftest$ac_exeext |
---|
6374 | if { (ac_try="$ac_link" |
---|
6375 | case "(($ac_try" in |
---|
6376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6377 | *) ac_try_echo=$ac_try;; |
---|
6378 | esac |
---|
6379 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6380 | $as_echo "$ac_try_echo") >&5 |
---|
6381 | (eval "$ac_link") 2>&5 |
---|
6382 | ac_status=$? |
---|
6383 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6384 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6385 | { (case "(($ac_try" in |
---|
6386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6387 | *) ac_try_echo=$ac_try;; |
---|
6388 | esac |
---|
6389 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6390 | $as_echo "$ac_try_echo") >&5 |
---|
6391 | (eval "$ac_try") 2>&5 |
---|
6392 | ac_status=$? |
---|
6393 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6394 | (exit $ac_status); }; }; then |
---|
6395 | ac_cv_func_strcoll_works=yes |
---|
6396 | else |
---|
6397 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
6398 | $as_echo "$as_me: failed program was:" >&5 |
---|
6399 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6400 | |
---|
6401 | ( exit $ac_status ) |
---|
6402 | ac_cv_func_strcoll_works=no |
---|
6403 | fi |
---|
6404 | rm -rf conftest.dSYM |
---|
6405 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6406 | fi |
---|
6407 | |
---|
6408 | |
---|
6409 | fi |
---|
6410 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 |
---|
6411 | $as_echo "$ac_cv_func_strcoll_works" >&6; } |
---|
6412 | if test $ac_cv_func_strcoll_works = yes; then |
---|
6413 | |
---|
6414 | cat >>confdefs.h <<\_ACEOF |
---|
6415 | #define HAVE_STRCOLL 1 |
---|
6416 | _ACEOF |
---|
6417 | |
---|
6418 | fi |
---|
6419 | |
---|
6420 | |
---|
6421 | # Define HAVE_VFORK_H if vfork.h is present, otherwise define "vfork" to be |
---|
6422 | # "fork" |
---|
6423 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 |
---|
6424 | $as_echo_n "checking for pid_t... " >&6; } |
---|
6425 | if test "${ac_cv_type_pid_t+set}" = set; then |
---|
6426 | $as_echo_n "(cached) " >&6 |
---|
6427 | else |
---|
6428 | ac_cv_type_pid_t=no |
---|
6429 | cat >conftest.$ac_ext <<_ACEOF |
---|
6430 | /* confdefs.h. */ |
---|
6431 | _ACEOF |
---|
6432 | cat confdefs.h >>conftest.$ac_ext |
---|
6433 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6434 | /* end confdefs.h. */ |
---|
6435 | $ac_includes_default |
---|
6436 | int |
---|
6437 | main () |
---|
6438 | { |
---|
6439 | if (sizeof (pid_t)) |
---|
6440 | return 0; |
---|
6441 | ; |
---|
6442 | return 0; |
---|
6443 | } |
---|
6444 | _ACEOF |
---|
6445 | rm -f conftest.$ac_objext |
---|
6446 | if { (ac_try="$ac_compile" |
---|
6447 | case "(($ac_try" in |
---|
6448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6449 | *) ac_try_echo=$ac_try;; |
---|
6450 | esac |
---|
6451 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6452 | $as_echo "$ac_try_echo") >&5 |
---|
6453 | (eval "$ac_compile") 2>conftest.er1 |
---|
6454 | ac_status=$? |
---|
6455 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6456 | rm -f conftest.er1 |
---|
6457 | cat conftest.err >&5 |
---|
6458 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6459 | (exit $ac_status); } && { |
---|
6460 | test -z "$ac_c_werror_flag" || |
---|
6461 | test ! -s conftest.err |
---|
6462 | } && test -s conftest.$ac_objext; then |
---|
6463 | cat >conftest.$ac_ext <<_ACEOF |
---|
6464 | /* confdefs.h. */ |
---|
6465 | _ACEOF |
---|
6466 | cat confdefs.h >>conftest.$ac_ext |
---|
6467 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6468 | /* end confdefs.h. */ |
---|
6469 | $ac_includes_default |
---|
6470 | int |
---|
6471 | main () |
---|
6472 | { |
---|
6473 | if (sizeof ((pid_t))) |
---|
6474 | return 0; |
---|
6475 | ; |
---|
6476 | return 0; |
---|
6477 | } |
---|
6478 | _ACEOF |
---|
6479 | rm -f conftest.$ac_objext |
---|
6480 | if { (ac_try="$ac_compile" |
---|
6481 | case "(($ac_try" in |
---|
6482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6483 | *) ac_try_echo=$ac_try;; |
---|
6484 | esac |
---|
6485 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6486 | $as_echo "$ac_try_echo") >&5 |
---|
6487 | (eval "$ac_compile") 2>conftest.er1 |
---|
6488 | ac_status=$? |
---|
6489 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6490 | rm -f conftest.er1 |
---|
6491 | cat conftest.err >&5 |
---|
6492 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6493 | (exit $ac_status); } && { |
---|
6494 | test -z "$ac_c_werror_flag" || |
---|
6495 | test ! -s conftest.err |
---|
6496 | } && test -s conftest.$ac_objext; then |
---|
6497 | : |
---|
6498 | else |
---|
6499 | $as_echo "$as_me: failed program was:" >&5 |
---|
6500 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6501 | |
---|
6502 | ac_cv_type_pid_t=yes |
---|
6503 | fi |
---|
6504 | |
---|
6505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6506 | else |
---|
6507 | $as_echo "$as_me: failed program was:" >&5 |
---|
6508 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6509 | |
---|
6510 | |
---|
6511 | fi |
---|
6512 | |
---|
6513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6514 | fi |
---|
6515 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
---|
6516 | $as_echo "$ac_cv_type_pid_t" >&6; } |
---|
6517 | if test "x$ac_cv_type_pid_t" = x""yes; then |
---|
6518 | : |
---|
6519 | else |
---|
6520 | |
---|
6521 | cat >>confdefs.h <<_ACEOF |
---|
6522 | #define pid_t int |
---|
6523 | _ACEOF |
---|
6524 | |
---|
6525 | fi |
---|
6526 | |
---|
6527 | |
---|
6528 | for ac_header in vfork.h |
---|
6529 | do |
---|
6530 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6531 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
6532 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6533 | $as_echo_n "checking for $ac_header... " >&6; } |
---|
6534 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
6535 | $as_echo_n "(cached) " >&6 |
---|
6536 | fi |
---|
6537 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
---|
6538 | $as_echo "$as_val"'` |
---|
6539 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
6540 | $as_echo "$ac_res" >&6; } |
---|
6541 | else |
---|
6542 | # Is the header compilable? |
---|
6543 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6544 | $as_echo_n "checking $ac_header usability... " >&6; } |
---|
6545 | cat >conftest.$ac_ext <<_ACEOF |
---|
6546 | /* confdefs.h. */ |
---|
6547 | _ACEOF |
---|
6548 | cat confdefs.h >>conftest.$ac_ext |
---|
6549 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6550 | /* end confdefs.h. */ |
---|
6551 | $ac_includes_default |
---|
6552 | #include <$ac_header> |
---|
6553 | _ACEOF |
---|
6554 | rm -f conftest.$ac_objext |
---|
6555 | if { (ac_try="$ac_compile" |
---|
6556 | case "(($ac_try" in |
---|
6557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6558 | *) ac_try_echo=$ac_try;; |
---|
6559 | esac |
---|
6560 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6561 | $as_echo "$ac_try_echo") >&5 |
---|
6562 | (eval "$ac_compile") 2>conftest.er1 |
---|
6563 | ac_status=$? |
---|
6564 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6565 | rm -f conftest.er1 |
---|
6566 | cat conftest.err >&5 |
---|
6567 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6568 | (exit $ac_status); } && { |
---|
6569 | test -z "$ac_c_werror_flag" || |
---|
6570 | test ! -s conftest.err |
---|
6571 | } && test -s conftest.$ac_objext; then |
---|
6572 | ac_header_compiler=yes |
---|
6573 | else |
---|
6574 | $as_echo "$as_me: failed program was:" >&5 |
---|
6575 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6576 | |
---|
6577 | ac_header_compiler=no |
---|
6578 | fi |
---|
6579 | |
---|
6580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6581 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6582 | $as_echo "$ac_header_compiler" >&6; } |
---|
6583 | |
---|
6584 | # Is the header present? |
---|
6585 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6586 | $as_echo_n "checking $ac_header presence... " >&6; } |
---|
6587 | cat >conftest.$ac_ext <<_ACEOF |
---|
6588 | /* confdefs.h. */ |
---|
6589 | _ACEOF |
---|
6590 | cat confdefs.h >>conftest.$ac_ext |
---|
6591 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6592 | /* end confdefs.h. */ |
---|
6593 | #include <$ac_header> |
---|
6594 | _ACEOF |
---|
6595 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
6596 | case "(($ac_try" in |
---|
6597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6598 | *) ac_try_echo=$ac_try;; |
---|
6599 | esac |
---|
6600 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6601 | $as_echo "$ac_try_echo") >&5 |
---|
6602 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
6603 | ac_status=$? |
---|
6604 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6605 | rm -f conftest.er1 |
---|
6606 | cat conftest.err >&5 |
---|
6607 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6608 | (exit $ac_status); } >/dev/null && { |
---|
6609 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
6610 | test ! -s conftest.err |
---|
6611 | }; then |
---|
6612 | ac_header_preproc=yes |
---|
6613 | else |
---|
6614 | $as_echo "$as_me: failed program was:" >&5 |
---|
6615 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6616 | |
---|
6617 | ac_header_preproc=no |
---|
6618 | fi |
---|
6619 | |
---|
6620 | rm -f conftest.err conftest.$ac_ext |
---|
6621 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6622 | $as_echo "$ac_header_preproc" >&6; } |
---|
6623 | |
---|
6624 | # So? What about this header? |
---|
6625 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6626 | yes:no: ) |
---|
6627 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6628 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6629 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6630 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6631 | ac_header_preproc=yes |
---|
6632 | ;; |
---|
6633 | no:yes:* ) |
---|
6634 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6635 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6636 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6637 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6638 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6639 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6640 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6641 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6642 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6643 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6644 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6645 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6646 | |
---|
6647 | ;; |
---|
6648 | esac |
---|
6649 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6650 | $as_echo_n "checking for $ac_header... " >&6; } |
---|
6651 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
6652 | $as_echo_n "(cached) " >&6 |
---|
6653 | else |
---|
6654 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6655 | fi |
---|
6656 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
---|
6657 | $as_echo "$as_val"'` |
---|
6658 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
6659 | $as_echo "$ac_res" >&6; } |
---|
6660 | |
---|
6661 | fi |
---|
6662 | as_val=`eval 'as_val=${'$as_ac_Header'} |
---|
6663 | $as_echo "$as_val"'` |
---|
6664 | if test "x$as_val" = x""yes; then |
---|
6665 | cat >>confdefs.h <<_ACEOF |
---|
6666 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6667 | _ACEOF |
---|
6668 | |
---|
6669 | fi |
---|
6670 | |
---|
6671 | done |
---|
6672 | |
---|
6673 | |
---|
6674 | |
---|
6675 | for ac_func in fork vfork |
---|
6676 | do |
---|
6677 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
6678 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
6679 | $as_echo_n "checking for $ac_func... " >&6; } |
---|
6680 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
6681 | $as_echo_n "(cached) " >&6 |
---|
6682 | else |
---|
6683 | cat >conftest.$ac_ext <<_ACEOF |
---|
6684 | /* confdefs.h. */ |
---|
6685 | _ACEOF |
---|
6686 | cat confdefs.h >>conftest.$ac_ext |
---|
6687 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6688 | /* end confdefs.h. */ |
---|
6689 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
6690 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
6691 | #define $ac_func innocuous_$ac_func |
---|
6692 | |
---|
6693 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6694 | which can conflict with char $ac_func (); below. |
---|
6695 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6696 | <limits.h> exists even on freestanding compilers. */ |
---|
6697 | |
---|
6698 | #ifdef __STDC__ |
---|
6699 | # include <limits.h> |
---|
6700 | #else |
---|
6701 | # include <assert.h> |
---|
6702 | #endif |
---|
6703 | |
---|
6704 | #undef $ac_func |
---|
6705 | |
---|
6706 | /* Override any GCC internal prototype to avoid an error. |
---|
6707 | Use char because int might match the return type of a GCC |
---|
6708 | builtin and then its argument prototype would still apply. */ |
---|
6709 | #ifdef __cplusplus |
---|
6710 | extern "C" |
---|
6711 | #endif |
---|
6712 | char $ac_func (); |
---|
6713 | /* The GNU C library defines this for functions which it implements |
---|
6714 | to always fail with ENOSYS. Some functions are actually named |
---|
6715 | something starting with __ and the normal name is an alias. */ |
---|
6716 | #if defined __stub_$ac_func || defined __stub___$ac_func |
---|
6717 | choke me |
---|
6718 | #endif |
---|
6719 | |
---|
6720 | int |
---|
6721 | main () |
---|
6722 | { |
---|
6723 | return $ac_func (); |
---|
6724 | ; |
---|
6725 | return 0; |
---|
6726 | } |
---|
6727 | _ACEOF |
---|
6728 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6729 | if { (ac_try="$ac_link" |
---|
6730 | case "(($ac_try" in |
---|
6731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6732 | *) ac_try_echo=$ac_try;; |
---|
6733 | esac |
---|
6734 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6735 | $as_echo "$ac_try_echo") >&5 |
---|
6736 | (eval "$ac_link") 2>conftest.er1 |
---|
6737 | ac_status=$? |
---|
6738 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6739 | rm -f conftest.er1 |
---|
6740 | cat conftest.err >&5 |
---|
6741 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6742 | (exit $ac_status); } && { |
---|
6743 | test -z "$ac_c_werror_flag" || |
---|
6744 | test ! -s conftest.err |
---|
6745 | } && test -s conftest$ac_exeext && { |
---|
6746 | test "$cross_compiling" = yes || |
---|
6747 | $as_test_x conftest$ac_exeext |
---|
6748 | }; then |
---|
6749 | eval "$as_ac_var=yes" |
---|
6750 | else |
---|
6751 | $as_echo "$as_me: failed program was:" >&5 |
---|
6752 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6753 | |
---|
6754 | eval "$as_ac_var=no" |
---|
6755 | fi |
---|
6756 | |
---|
6757 | rm -rf conftest.dSYM |
---|
6758 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
6759 | conftest$ac_exeext conftest.$ac_ext |
---|
6760 | fi |
---|
6761 | ac_res=`eval 'as_val=${'$as_ac_var'} |
---|
6762 | $as_echo "$as_val"'` |
---|
6763 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
6764 | $as_echo "$ac_res" >&6; } |
---|
6765 | as_val=`eval 'as_val=${'$as_ac_var'} |
---|
6766 | $as_echo "$as_val"'` |
---|
6767 | if test "x$as_val" = x""yes; then |
---|
6768 | cat >>confdefs.h <<_ACEOF |
---|
6769 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
6770 | _ACEOF |
---|
6771 | |
---|
6772 | fi |
---|
6773 | done |
---|
6774 | |
---|
6775 | if test "x$ac_cv_func_fork" = xyes; then |
---|
6776 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
---|
6777 | $as_echo_n "checking for working fork... " >&6; } |
---|
6778 | if test "${ac_cv_func_fork_works+set}" = set; then |
---|
6779 | $as_echo_n "(cached) " >&6 |
---|
6780 | else |
---|
6781 | if test "$cross_compiling" = yes; then |
---|
6782 | ac_cv_func_fork_works=cross |
---|
6783 | else |
---|
6784 | cat >conftest.$ac_ext <<_ACEOF |
---|
6785 | /* confdefs.h. */ |
---|
6786 | _ACEOF |
---|
6787 | cat confdefs.h >>conftest.$ac_ext |
---|
6788 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6789 | /* end confdefs.h. */ |
---|
6790 | $ac_includes_default |
---|
6791 | int |
---|
6792 | main () |
---|
6793 | { |
---|
6794 | |
---|
6795 | /* By Ruediger Kuhlmann. */ |
---|
6796 | return fork () < 0; |
---|
6797 | |
---|
6798 | ; |
---|
6799 | return 0; |
---|
6800 | } |
---|
6801 | _ACEOF |
---|
6802 | rm -f conftest$ac_exeext |
---|
6803 | if { (ac_try="$ac_link" |
---|
6804 | case "(($ac_try" in |
---|
6805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6806 | *) ac_try_echo=$ac_try;; |
---|
6807 | esac |
---|
6808 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6809 | $as_echo "$ac_try_echo") >&5 |
---|
6810 | (eval "$ac_link") 2>&5 |
---|
6811 | ac_status=$? |
---|
6812 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6813 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6814 | { (case "(($ac_try" in |
---|
6815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6816 | *) ac_try_echo=$ac_try;; |
---|
6817 | esac |
---|
6818 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6819 | $as_echo "$ac_try_echo") >&5 |
---|
6820 | (eval "$ac_try") 2>&5 |
---|
6821 | ac_status=$? |
---|
6822 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6823 | (exit $ac_status); }; }; then |
---|
6824 | ac_cv_func_fork_works=yes |
---|
6825 | else |
---|
6826 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
6827 | $as_echo "$as_me: failed program was:" >&5 |
---|
6828 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6829 | |
---|
6830 | ( exit $ac_status ) |
---|
6831 | ac_cv_func_fork_works=no |
---|
6832 | fi |
---|
6833 | rm -rf conftest.dSYM |
---|
6834 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6835 | fi |
---|
6836 | |
---|
6837 | |
---|
6838 | fi |
---|
6839 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
---|
6840 | $as_echo "$ac_cv_func_fork_works" >&6; } |
---|
6841 | |
---|
6842 | else |
---|
6843 | ac_cv_func_fork_works=$ac_cv_func_fork |
---|
6844 | fi |
---|
6845 | if test "x$ac_cv_func_fork_works" = xcross; then |
---|
6846 | case $host in |
---|
6847 | *-*-amigaos* | *-*-msdosdjgpp*) |
---|
6848 | # Override, as these systems have only a dummy fork() stub |
---|
6849 | ac_cv_func_fork_works=no |
---|
6850 | ;; |
---|
6851 | *) |
---|
6852 | ac_cv_func_fork_works=yes |
---|
6853 | ;; |
---|
6854 | esac |
---|
6855 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
---|
6856 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
---|
6857 | fi |
---|
6858 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
---|
6859 | if test "x$ac_cv_func_vfork" = xyes; then |
---|
6860 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
---|
6861 | $as_echo_n "checking for working vfork... " >&6; } |
---|
6862 | if test "${ac_cv_func_vfork_works+set}" = set; then |
---|
6863 | $as_echo_n "(cached) " >&6 |
---|
6864 | else |
---|
6865 | if test "$cross_compiling" = yes; then |
---|
6866 | ac_cv_func_vfork_works=cross |
---|
6867 | else |
---|
6868 | cat >conftest.$ac_ext <<_ACEOF |
---|
6869 | /* confdefs.h. */ |
---|
6870 | _ACEOF |
---|
6871 | cat confdefs.h >>conftest.$ac_ext |
---|
6872 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6873 | /* end confdefs.h. */ |
---|
6874 | /* Thanks to Paul Eggert for this test. */ |
---|
6875 | $ac_includes_default |
---|
6876 | #include <sys/wait.h> |
---|
6877 | #ifdef HAVE_VFORK_H |
---|
6878 | # include <vfork.h> |
---|
6879 | #endif |
---|
6880 | /* On some sparc systems, changes by the child to local and incoming |
---|
6881 | argument registers are propagated back to the parent. The compiler |
---|
6882 | is told about this with #include <vfork.h>, but some compilers |
---|
6883 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
---|
6884 | static variable whose address is put into a register that is |
---|
6885 | clobbered by the vfork. */ |
---|
6886 | static void |
---|
6887 | #ifdef __cplusplus |
---|
6888 | sparc_address_test (int arg) |
---|
6889 | # else |
---|
6890 | sparc_address_test (arg) int arg; |
---|
6891 | #endif |
---|
6892 | { |
---|
6893 | static pid_t child; |
---|
6894 | if (!child) { |
---|
6895 | child = vfork (); |
---|
6896 | if (child < 0) { |
---|
6897 | perror ("vfork"); |
---|
6898 | _exit(2); |
---|
6899 | } |
---|
6900 | if (!child) { |
---|
6901 | arg = getpid(); |
---|
6902 | write(-1, "", 0); |
---|
6903 | _exit (arg); |
---|
6904 | } |
---|
6905 | } |
---|
6906 | } |
---|
6907 | |
---|
6908 | int |
---|
6909 | main () |
---|
6910 | { |
---|
6911 | pid_t parent = getpid (); |
---|
6912 | pid_t child; |
---|
6913 | |
---|
6914 | sparc_address_test (0); |
---|
6915 | |
---|
6916 | child = vfork (); |
---|
6917 | |
---|
6918 | if (child == 0) { |
---|
6919 | /* Here is another test for sparc vfork register problems. This |
---|
6920 | test uses lots of local variables, at least as many local |
---|
6921 | variables as main has allocated so far including compiler |
---|
6922 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
---|
6923 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
---|
6924 | reuse the register of parent for one of the local variables, |
---|
6925 | since it will think that parent can't possibly be used any more |
---|
6926 | in this routine. Assigning to the local variable will thus |
---|
6927 | munge parent in the parent process. */ |
---|
6928 | pid_t |
---|
6929 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
---|
6930 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
---|
6931 | /* Convince the compiler that p..p7 are live; otherwise, it might |
---|
6932 | use the same hardware register for all 8 local variables. */ |
---|
6933 | if (p != p1 || p != p2 || p != p3 || p != p4 |
---|
6934 | || p != p5 || p != p6 || p != p7) |
---|
6935 | _exit(1); |
---|
6936 | |
---|
6937 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
---|
6938 | from child file descriptors. If the child closes a descriptor |
---|
6939 | before it execs or exits, this munges the parent's descriptor |
---|
6940 | as well. Test for this by closing stdout in the child. */ |
---|
6941 | _exit(close(fileno(stdout)) != 0); |
---|
6942 | } else { |
---|
6943 | int status; |
---|
6944 | struct stat st; |
---|
6945 | |
---|
6946 | while (wait(&status) != child) |
---|
6947 | ; |
---|
6948 | return ( |
---|
6949 | /* Was there some problem with vforking? */ |
---|
6950 | child < 0 |
---|
6951 | |
---|
6952 | /* Did the child fail? (This shouldn't happen.) */ |
---|
6953 | || status |
---|
6954 | |
---|
6955 | /* Did the vfork/compiler bug occur? */ |
---|
6956 | || parent != getpid() |
---|
6957 | |
---|
6958 | /* Did the file descriptor bug occur? */ |
---|
6959 | || fstat(fileno(stdout), &st) != 0 |
---|
6960 | ); |
---|
6961 | } |
---|
6962 | } |
---|
6963 | _ACEOF |
---|
6964 | rm -f conftest$ac_exeext |
---|
6965 | if { (ac_try="$ac_link" |
---|
6966 | case "(($ac_try" in |
---|
6967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6968 | *) ac_try_echo=$ac_try;; |
---|
6969 | esac |
---|
6970 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6971 | $as_echo "$ac_try_echo") >&5 |
---|
6972 | (eval "$ac_link") 2>&5 |
---|
6973 | ac_status=$? |
---|
6974 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6975 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6976 | { (case "(($ac_try" in |
---|
6977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6978 | *) ac_try_echo=$ac_try;; |
---|
6979 | esac |
---|
6980 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6981 | $as_echo "$ac_try_echo") >&5 |
---|
6982 | (eval "$ac_try") 2>&5 |
---|
6983 | ac_status=$? |
---|
6984 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6985 | (exit $ac_status); }; }; then |
---|
6986 | ac_cv_func_vfork_works=yes |
---|
6987 | else |
---|
6988 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
6989 | $as_echo "$as_me: failed program was:" >&5 |
---|
6990 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6991 | |
---|
6992 | ( exit $ac_status ) |
---|
6993 | ac_cv_func_vfork_works=no |
---|
6994 | fi |
---|
6995 | rm -rf conftest.dSYM |
---|
6996 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6997 | fi |
---|
6998 | |
---|
6999 | |
---|
7000 | fi |
---|
7001 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
---|
7002 | $as_echo "$ac_cv_func_vfork_works" >&6; } |
---|
7003 | |
---|
7004 | fi; |
---|
7005 | if test "x$ac_cv_func_fork_works" = xcross; then |
---|
7006 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
---|
7007 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
---|
7008 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
---|
7009 | fi |
---|
7010 | |
---|
7011 | if test "x$ac_cv_func_vfork_works" = xyes; then |
---|
7012 | |
---|
7013 | cat >>confdefs.h <<\_ACEOF |
---|
7014 | #define HAVE_WORKING_VFORK 1 |
---|
7015 | _ACEOF |
---|
7016 | |
---|
7017 | else |
---|
7018 | |
---|
7019 | cat >>confdefs.h <<\_ACEOF |
---|
7020 | #define vfork fork |
---|
7021 | _ACEOF |
---|
7022 | |
---|
7023 | fi |
---|
7024 | if test "x$ac_cv_func_fork_works" = xyes; then |
---|
7025 | |
---|
7026 | cat >>confdefs.h <<\_ACEOF |
---|
7027 | #define HAVE_WORKING_FORK 1 |
---|
7028 | _ACEOF |
---|
7029 | |
---|
7030 | fi |
---|
7031 | |
---|
7032 | |
---|
7033 | # Look for these functions and define HAVE_... for each if present |
---|
7034 | |
---|
7035 | |
---|
7036 | |
---|
7037 | |
---|
7038 | |
---|
7039 | |
---|
7040 | |
---|
7041 | |
---|
7042 | |
---|
7043 | |
---|
7044 | |
---|
7045 | for ac_func in sysconf gethostname strcspn strerror strspn strstr getenv strchr getrlimit getrusage valloc |
---|
7046 | do |
---|
7047 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
7048 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
7049 | $as_echo_n "checking for $ac_func... " >&6; } |
---|
7050 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
7051 | $as_echo_n "(cached) " >&6 |
---|
7052 | else |
---|
7053 | cat >conftest.$ac_ext <<_ACEOF |
---|
7054 | /* confdefs.h. */ |
---|
7055 | _ACEOF |
---|
7056 | cat confdefs.h >>conftest.$ac_ext |
---|
7057 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7058 | /* end confdefs.h. */ |
---|
7059 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
7060 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
7061 | #define $ac_func innocuous_$ac_func |
---|
7062 | |
---|
7063 | /* System header to define __stub macros and hopefully few prototypes, |
---|
7064 | which can conflict with char $ac_func (); below. |
---|
7065 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
7066 | <limits.h> exists even on freestanding compilers. */ |
---|
7067 | |
---|
7068 | #ifdef __STDC__ |
---|
7069 | # include <limits.h> |
---|
7070 | #else |
---|
7071 | # include <assert.h> |
---|
7072 | #endif |
---|
7073 | |
---|
7074 | #undef $ac_func |
---|
7075 | |
---|
7076 | /* Override any GCC internal prototype to avoid an error. |
---|
7077 | Use char because int might match the return type of a GCC |
---|
7078 | builtin and then its argument prototype would still apply. */ |
---|
7079 | #ifdef __cplusplus |
---|
7080 | extern "C" |
---|
7081 | #endif |
---|
7082 | char $ac_func (); |
---|
7083 | /* The GNU C library defines this for functions which it implements |
---|
7084 | to always fail with ENOSYS. Some functions are actually named |
---|
7085 | something starting with __ and the normal name is an alias. */ |
---|
7086 | #if defined __stub_$ac_func || defined __stub___$ac_func |
---|
7087 | choke me |
---|
7088 | #endif |
---|
7089 | |
---|
7090 | int |
---|
7091 | main () |
---|
7092 | { |
---|
7093 | return $ac_func (); |
---|
7094 | ; |
---|
7095 | return 0; |
---|
7096 | } |
---|
7097 | _ACEOF |
---|
7098 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7099 | if { (ac_try="$ac_link" |
---|
7100 | case "(($ac_try" in |
---|
7101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7102 | *) ac_try_echo=$ac_try;; |
---|
7103 | esac |
---|
7104 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
7105 | $as_echo "$ac_try_echo") >&5 |
---|
7106 | (eval "$ac_link") 2>conftest.er1 |
---|
7107 | ac_status=$? |
---|
7108 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7109 | rm -f conftest.er1 |
---|
7110 | cat conftest.err >&5 |
---|
7111 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7112 | (exit $ac_status); } && { |
---|
7113 | test -z "$ac_c_werror_flag" || |
---|
7114 | test ! -s conftest.err |
---|
7115 | } && test -s conftest$ac_exeext && { |
---|
7116 | test "$cross_compiling" = yes || |
---|
7117 | $as_test_x conftest$ac_exeext |
---|
7118 | }; then |
---|
7119 | eval "$as_ac_var=yes" |
---|
7120 | else |
---|
7121 | $as_echo "$as_me: failed program was:" >&5 |
---|
7122 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7123 | |
---|
7124 | eval "$as_ac_var=no" |
---|
7125 | fi |
---|
7126 | |
---|
7127 | rm -rf conftest.dSYM |
---|
7128 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
7129 | conftest$ac_exeext conftest.$ac_ext |
---|
7130 | fi |
---|
7131 | ac_res=`eval 'as_val=${'$as_ac_var'} |
---|
7132 | $as_echo "$as_val"'` |
---|
7133 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
7134 | $as_echo "$ac_res" >&6; } |
---|
7135 | as_val=`eval 'as_val=${'$as_ac_var'} |
---|
7136 | $as_echo "$as_val"'` |
---|
7137 | if test "x$as_val" = x""yes; then |
---|
7138 | cat >>confdefs.h <<_ACEOF |
---|
7139 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
7140 | _ACEOF |
---|
7141 | |
---|
7142 | fi |
---|
7143 | done |
---|
7144 | |
---|
7145 | |
---|
7146 | #---------------------------------------------------------------------- |
---|
7147 | # Create the Makefile from Makefile.in |
---|
7148 | #---------------------------------------------------------------------- |
---|
7149 | if test "$gcc_ok" = "g++"; then |
---|
7150 | CC=$gcc_ok |
---|
7151 | fi |
---|
7152 | ac_config_files="$ac_config_files Makefile" |
---|
7153 | |
---|
7154 | cat >confcache <<\_ACEOF |
---|
7155 | # This file is a shell script that caches the results of configure |
---|
7156 | # tests run on this system so they can be shared between configure |
---|
7157 | # scripts and configure runs, see configure's option --config-cache. |
---|
7158 | # It is not useful on other systems. If it contains results you don't |
---|
7159 | # want to keep, you may remove or edit it. |
---|
7160 | # |
---|
7161 | # config.status only pays attention to the cache file if you give it |
---|
7162 | # the --recheck option to rerun configure. |
---|
7163 | # |
---|
7164 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
7165 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
7166 | # following values. |
---|
7167 | |
---|
7168 | _ACEOF |
---|
7169 | |
---|
7170 | # The following way of writing the cache mishandles newlines in values, |
---|
7171 | # but we know of no workaround that is simple, portable, and efficient. |
---|
7172 | # So, we kill variables containing newlines. |
---|
7173 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
7174 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
7175 | ( |
---|
7176 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
7177 | eval ac_val=\$$ac_var |
---|
7178 | case $ac_val in #( |
---|
7179 | *${as_nl}*) |
---|
7180 | case $ac_var in #( |
---|
7181 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
7182 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
7183 | esac |
---|
7184 | case $ac_var in #( |
---|
7185 | _ | IFS | as_nl) ;; #( |
---|
7186 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
7187 | *) $as_unset $ac_var ;; |
---|
7188 | esac ;; |
---|
7189 | esac |
---|
7190 | done |
---|
7191 | |
---|
7192 | (set) 2>&1 | |
---|
7193 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
7194 | *${as_nl}ac_space=\ *) |
---|
7195 | # `set' does not quote correctly, so add quotes (double-quote |
---|
7196 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
7197 | sed -n \ |
---|
7198 | "s/'/'\\\\''/g; |
---|
7199 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
7200 | ;; #( |
---|
7201 | *) |
---|
7202 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
7203 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
7204 | ;; |
---|
7205 | esac | |
---|
7206 | sort |
---|
7207 | ) | |
---|
7208 | sed ' |
---|
7209 | /^ac_cv_env_/b end |
---|
7210 | t clear |
---|
7211 | :clear |
---|
7212 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
7213 | t end |
---|
7214 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
7215 | :end' >>confcache |
---|
7216 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
7217 | if test -w "$cache_file"; then |
---|
7218 | test "x$cache_file" != "x/dev/null" && |
---|
7219 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
---|
7220 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
7221 | cat confcache >$cache_file |
---|
7222 | else |
---|
7223 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
---|
7224 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
7225 | fi |
---|
7226 | fi |
---|
7227 | rm -f confcache |
---|
7228 | |
---|
7229 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
7230 | # Let make expand exec_prefix. |
---|
7231 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
7232 | |
---|
7233 | # Transform confdefs.h into DEFS. |
---|
7234 | # Protect against shell expansion while executing Makefile rules. |
---|
7235 | # Protect against Makefile macro expansion. |
---|
7236 | # |
---|
7237 | # If the first sed substitution is executed (which looks for macros that |
---|
7238 | # take arguments), then branch to the quote section. Otherwise, |
---|
7239 | # look for a macro that doesn't take arguments. |
---|
7240 | ac_script=' |
---|
7241 | :mline |
---|
7242 | /\\$/{ |
---|
7243 | N |
---|
7244 | s,\\\n,, |
---|
7245 | b mline |
---|
7246 | } |
---|
7247 | t clear |
---|
7248 | :clear |
---|
7249 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
---|
7250 | t quote |
---|
7251 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
---|
7252 | t quote |
---|
7253 | b any |
---|
7254 | :quote |
---|
7255 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
---|
7256 | s/\[/\\&/g |
---|
7257 | s/\]/\\&/g |
---|
7258 | s/\$/$$/g |
---|
7259 | H |
---|
7260 | :any |
---|
7261 | ${ |
---|
7262 | g |
---|
7263 | s/^\n// |
---|
7264 | s/\n/ /g |
---|
7265 | p |
---|
7266 | } |
---|
7267 | ' |
---|
7268 | DEFS=`sed -n "$ac_script" confdefs.h` |
---|
7269 | |
---|
7270 | |
---|
7271 | ac_libobjs= |
---|
7272 | ac_ltlibobjs= |
---|
7273 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
7274 | # 1. Remove the extension, and $U if already installed. |
---|
7275 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
7276 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
7277 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
7278 | # will be set to the directory where LIBOBJS objects are built. |
---|
7279 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
7280 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
7281 | done |
---|
7282 | LIBOBJS=$ac_libobjs |
---|
7283 | |
---|
7284 | LTLIBOBJS=$ac_ltlibobjs |
---|
7285 | |
---|
7286 | |
---|
7287 | |
---|
7288 | : ${CONFIG_STATUS=./config.status} |
---|
7289 | ac_write_fail=0 |
---|
7290 | ac_clean_files_save=$ac_clean_files |
---|
7291 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
7292 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
7293 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
7294 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7295 | #! $SHELL |
---|
7296 | # Generated by $as_me. |
---|
7297 | # Run this file to recreate the current configuration. |
---|
7298 | # Compiler output produced by configure, useful for debugging |
---|
7299 | # configure, is in config.log if it exists. |
---|
7300 | |
---|
7301 | debug=false |
---|
7302 | ac_cs_recheck=false |
---|
7303 | ac_cs_silent=false |
---|
7304 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
7305 | _ACEOF |
---|
7306 | |
---|
7307 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7308 | ## --------------------- ## |
---|
7309 | ## M4sh Initialization. ## |
---|
7310 | ## --------------------- ## |
---|
7311 | |
---|
7312 | # Be more Bourne compatible |
---|
7313 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
7314 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
7315 | emulate sh |
---|
7316 | NULLCMD=: |
---|
7317 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
7318 | # is contrary to our usage. Disable this feature. |
---|
7319 | alias -g '${1+"$@"}'='"$@"' |
---|
7320 | setopt NO_GLOB_SUBST |
---|
7321 | else |
---|
7322 | case `(set -o) 2>/dev/null` in |
---|
7323 | *posix*) set -o posix ;; |
---|
7324 | esac |
---|
7325 | |
---|
7326 | fi |
---|
7327 | |
---|
7328 | |
---|
7329 | |
---|
7330 | |
---|
7331 | # PATH needs CR |
---|
7332 | # Avoid depending upon Character Ranges. |
---|
7333 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
7334 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
7335 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
7336 | as_cr_digits='0123456789' |
---|
7337 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
7338 | |
---|
7339 | as_nl=' |
---|
7340 | ' |
---|
7341 | export as_nl |
---|
7342 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
7343 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
7344 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
7345 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
7346 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
7347 | as_echo='printf %s\n' |
---|
7348 | as_echo_n='printf %s' |
---|
7349 | else |
---|
7350 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
7351 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
7352 | as_echo_n='/usr/ucb/echo -n' |
---|
7353 | else |
---|
7354 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
7355 | as_echo_n_body='eval |
---|
7356 | arg=$1; |
---|
7357 | case $arg in |
---|
7358 | *"$as_nl"*) |
---|
7359 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
7360 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
7361 | esac; |
---|
7362 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
7363 | ' |
---|
7364 | export as_echo_n_body |
---|
7365 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
7366 | fi |
---|
7367 | export as_echo_body |
---|
7368 | as_echo='sh -c $as_echo_body as_echo' |
---|
7369 | fi |
---|
7370 | |
---|
7371 | # The user is always right. |
---|
7372 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
7373 | PATH_SEPARATOR=: |
---|
7374 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
7375 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
7376 | PATH_SEPARATOR=';' |
---|
7377 | } |
---|
7378 | fi |
---|
7379 | |
---|
7380 | # Support unset when possible. |
---|
7381 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
7382 | as_unset=unset |
---|
7383 | else |
---|
7384 | as_unset=false |
---|
7385 | fi |
---|
7386 | |
---|
7387 | |
---|
7388 | # IFS |
---|
7389 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
7390 | # there to prevent editors from complaining about space-tab. |
---|
7391 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
7392 | # splitting by setting IFS to empty value.) |
---|
7393 | IFS=" "" $as_nl" |
---|
7394 | |
---|
7395 | # Find who we are. Look in the path if we contain no directory separator. |
---|
7396 | case $0 in |
---|
7397 | *[\\/]* ) as_myself=$0 ;; |
---|
7398 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7399 | for as_dir in $PATH |
---|
7400 | do |
---|
7401 | IFS=$as_save_IFS |
---|
7402 | test -z "$as_dir" && as_dir=. |
---|
7403 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
7404 | done |
---|
7405 | IFS=$as_save_IFS |
---|
7406 | |
---|
7407 | ;; |
---|
7408 | esac |
---|
7409 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
7410 | # in which case we are not to be found in the path. |
---|
7411 | if test "x$as_myself" = x; then |
---|
7412 | as_myself=$0 |
---|
7413 | fi |
---|
7414 | if test ! -f "$as_myself"; then |
---|
7415 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
7416 | { (exit 1); exit 1; } |
---|
7417 | fi |
---|
7418 | |
---|
7419 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
7420 | for as_var in ENV MAIL MAILPATH |
---|
7421 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
7422 | done |
---|
7423 | PS1='$ ' |
---|
7424 | PS2='> ' |
---|
7425 | PS4='+ ' |
---|
7426 | |
---|
7427 | # NLS nuisances. |
---|
7428 | LC_ALL=C |
---|
7429 | export LC_ALL |
---|
7430 | LANGUAGE=C |
---|
7431 | export LANGUAGE |
---|
7432 | |
---|
7433 | # Required to use basename. |
---|
7434 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
7435 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
7436 | as_expr=expr |
---|
7437 | else |
---|
7438 | as_expr=false |
---|
7439 | fi |
---|
7440 | |
---|
7441 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
7442 | as_basename=basename |
---|
7443 | else |
---|
7444 | as_basename=false |
---|
7445 | fi |
---|
7446 | |
---|
7447 | |
---|
7448 | # Name of the executable. |
---|
7449 | as_me=`$as_basename -- "$0" || |
---|
7450 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
7451 | X"$0" : 'X\(//\)$' \| \ |
---|
7452 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
7453 | $as_echo X/"$0" | |
---|
7454 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
7455 | s//\1/ |
---|
7456 | q |
---|
7457 | } |
---|
7458 | /^X\/\(\/\/\)$/{ |
---|
7459 | s//\1/ |
---|
7460 | q |
---|
7461 | } |
---|
7462 | /^X\/\(\/\).*/{ |
---|
7463 | s//\1/ |
---|
7464 | q |
---|
7465 | } |
---|
7466 | s/.*/./; q'` |
---|
7467 | |
---|
7468 | # CDPATH. |
---|
7469 | $as_unset CDPATH |
---|
7470 | |
---|
7471 | |
---|
7472 | |
---|
7473 | as_lineno_1=$LINENO |
---|
7474 | as_lineno_2=$LINENO |
---|
7475 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
7476 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
---|
7477 | |
---|
7478 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
7479 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
7480 | # line-number line after each line using $LINENO; the second 'sed' |
---|
7481 | # does the real work. The second script uses 'N' to pair each |
---|
7482 | # line-number line with the line containing $LINENO, and appends |
---|
7483 | # trailing '-' during substitution so that $LINENO is not a special |
---|
7484 | # case at line end. |
---|
7485 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
7486 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
---|
7487 | # E. McMahon (1931-1989) for sed's syntax. :-) |
---|
7488 | sed -n ' |
---|
7489 | p |
---|
7490 | /[$]LINENO/= |
---|
7491 | ' <$as_myself | |
---|
7492 | sed ' |
---|
7493 | s/[$]LINENO.*/&-/ |
---|
7494 | t lineno |
---|
7495 | b |
---|
7496 | :lineno |
---|
7497 | N |
---|
7498 | :loop |
---|
7499 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
7500 | t loop |
---|
7501 | s/-\n.*// |
---|
7502 | ' >$as_me.lineno && |
---|
7503 | chmod +x "$as_me.lineno" || |
---|
7504 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
7505 | { (exit 1); exit 1; }; } |
---|
7506 | |
---|
7507 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
7508 | # (the dirname of $[0] is not the place where we might find the |
---|
7509 | # original and so on. Autoconf is especially sensitive to this). |
---|
7510 | . "./$as_me.lineno" |
---|
7511 | # Exit status is that of the last command. |
---|
7512 | exit |
---|
7513 | } |
---|
7514 | |
---|
7515 | |
---|
7516 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
7517 | as_dirname=dirname |
---|
7518 | else |
---|
7519 | as_dirname=false |
---|
7520 | fi |
---|
7521 | |
---|
7522 | ECHO_C= ECHO_N= ECHO_T= |
---|
7523 | case `echo -n x` in |
---|
7524 | -n*) |
---|
7525 | case `echo 'x\c'` in |
---|
7526 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
7527 | *) ECHO_C='\c';; |
---|
7528 | esac;; |
---|
7529 | *) |
---|
7530 | ECHO_N='-n';; |
---|
7531 | esac |
---|
7532 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
7533 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
7534 | as_expr=expr |
---|
7535 | else |
---|
7536 | as_expr=false |
---|
7537 | fi |
---|
7538 | |
---|
7539 | rm -f conf$$ conf$$.exe conf$$.file |
---|
7540 | if test -d conf$$.dir; then |
---|
7541 | rm -f conf$$.dir/conf$$.file |
---|
7542 | else |
---|
7543 | rm -f conf$$.dir |
---|
7544 | mkdir conf$$.dir 2>/dev/null |
---|
7545 | fi |
---|
7546 | if (echo >conf$$.file) 2>/dev/null; then |
---|
7547 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
7548 | as_ln_s='ln -s' |
---|
7549 | # ... but there are two gotchas: |
---|
7550 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
7551 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
7552 | # In both cases, we have to default to `cp -p'. |
---|
7553 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
7554 | as_ln_s='cp -p' |
---|
7555 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
7556 | as_ln_s=ln |
---|
7557 | else |
---|
7558 | as_ln_s='cp -p' |
---|
7559 | fi |
---|
7560 | else |
---|
7561 | as_ln_s='cp -p' |
---|
7562 | fi |
---|
7563 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
7564 | rmdir conf$$.dir 2>/dev/null |
---|
7565 | |
---|
7566 | if mkdir -p . 2>/dev/null; then |
---|
7567 | as_mkdir_p=: |
---|
7568 | else |
---|
7569 | test -d ./-p && rmdir ./-p |
---|
7570 | as_mkdir_p=false |
---|
7571 | fi |
---|
7572 | |
---|
7573 | if test -x / >/dev/null 2>&1; then |
---|
7574 | as_test_x='test -x' |
---|
7575 | else |
---|
7576 | if ls -dL / >/dev/null 2>&1; then |
---|
7577 | as_ls_L_option=L |
---|
7578 | else |
---|
7579 | as_ls_L_option= |
---|
7580 | fi |
---|
7581 | as_test_x=' |
---|
7582 | eval sh -c '\'' |
---|
7583 | if test -d "$1"; then |
---|
7584 | test -d "$1/."; |
---|
7585 | else |
---|
7586 | case $1 in |
---|
7587 | -*)set "./$1";; |
---|
7588 | esac; |
---|
7589 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
---|
7590 | ???[sx]*):;;*)false;;esac;fi |
---|
7591 | '\'' sh |
---|
7592 | ' |
---|
7593 | fi |
---|
7594 | as_executable_p=$as_test_x |
---|
7595 | |
---|
7596 | # Sed expression to map a string onto a valid CPP name. |
---|
7597 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
7598 | |
---|
7599 | # Sed expression to map a string onto a valid variable name. |
---|
7600 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
7601 | |
---|
7602 | |
---|
7603 | exec 6>&1 |
---|
7604 | |
---|
7605 | # Save the log message, to keep $[0] and so on meaningful, and to |
---|
7606 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
7607 | # values after options handling. |
---|
7608 | ac_log=" |
---|
7609 | This file was extended by $as_me, which was |
---|
7610 | generated by GNU Autoconf 2.63. Invocation command line was |
---|
7611 | |
---|
7612 | CONFIG_FILES = $CONFIG_FILES |
---|
7613 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
7614 | CONFIG_LINKS = $CONFIG_LINKS |
---|
7615 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
7616 | $ $0 $@ |
---|
7617 | |
---|
7618 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
7619 | " |
---|
7620 | |
---|
7621 | _ACEOF |
---|
7622 | |
---|
7623 | case $ac_config_files in *" |
---|
7624 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
7625 | esac |
---|
7626 | |
---|
7627 | |
---|
7628 | |
---|
7629 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7630 | # Files that config.status was made for. |
---|
7631 | config_files="`echo $ac_config_files`" |
---|
7632 | |
---|
7633 | _ACEOF |
---|
7634 | |
---|
7635 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7636 | ac_cs_usage="\ |
---|
7637 | \`$as_me' instantiates files from templates according to the |
---|
7638 | current configuration. |
---|
7639 | |
---|
7640 | Usage: $0 [OPTION]... [FILE]... |
---|
7641 | |
---|
7642 | -h, --help print this help, then exit |
---|
7643 | -V, --version print version number and configuration settings, then exit |
---|
7644 | -q, --quiet, --silent |
---|
7645 | do not print progress messages |
---|
7646 | -d, --debug don't remove temporary files |
---|
7647 | --recheck update $as_me by reconfiguring in the same conditions |
---|
7648 | --file=FILE[:TEMPLATE] |
---|
7649 | instantiate the configuration file FILE |
---|
7650 | |
---|
7651 | Configuration files: |
---|
7652 | $config_files |
---|
7653 | |
---|
7654 | Report bugs to <bug-autoconf@gnu.org>." |
---|
7655 | |
---|
7656 | _ACEOF |
---|
7657 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7658 | ac_cs_version="\\ |
---|
7659 | config.status |
---|
7660 | configured by $0, generated by GNU Autoconf 2.63, |
---|
7661 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
---|
7662 | |
---|
7663 | Copyright (C) 2008 Free Software Foundation, Inc. |
---|
7664 | This config.status script is free software; the Free Software Foundation |
---|
7665 | gives unlimited permission to copy, distribute and modify it." |
---|
7666 | |
---|
7667 | ac_pwd='$ac_pwd' |
---|
7668 | srcdir='$srcdir' |
---|
7669 | INSTALL='$INSTALL' |
---|
7670 | test -n "\$AWK" || AWK=awk |
---|
7671 | _ACEOF |
---|
7672 | |
---|
7673 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7674 | # The default lists apply if the user does not specify any file. |
---|
7675 | ac_need_defaults=: |
---|
7676 | while test $# != 0 |
---|
7677 | do |
---|
7678 | case $1 in |
---|
7679 | --*=*) |
---|
7680 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
7681 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
7682 | ac_shift=: |
---|
7683 | ;; |
---|
7684 | *) |
---|
7685 | ac_option=$1 |
---|
7686 | ac_optarg=$2 |
---|
7687 | ac_shift=shift |
---|
7688 | ;; |
---|
7689 | esac |
---|
7690 | |
---|
7691 | case $ac_option in |
---|
7692 | # Handling of the options. |
---|
7693 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
7694 | ac_cs_recheck=: ;; |
---|
7695 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
7696 | $as_echo "$ac_cs_version"; exit ;; |
---|
7697 | --debug | --debu | --deb | --de | --d | -d ) |
---|
7698 | debug=: ;; |
---|
7699 | --file | --fil | --fi | --f ) |
---|
7700 | $ac_shift |
---|
7701 | case $ac_optarg in |
---|
7702 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
7703 | esac |
---|
7704 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
---|
7705 | ac_need_defaults=false;; |
---|
7706 | --he | --h | --help | --hel | -h ) |
---|
7707 | $as_echo "$ac_cs_usage"; exit ;; |
---|
7708 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
7709 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
7710 | ac_cs_silent=: ;; |
---|
7711 | |
---|
7712 | # This is an error. |
---|
7713 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
---|
7714 | Try \`$0 --help' for more information." >&2 |
---|
7715 | { (exit 1); exit 1; }; } ;; |
---|
7716 | |
---|
7717 | *) ac_config_targets="$ac_config_targets $1" |
---|
7718 | ac_need_defaults=false ;; |
---|
7719 | |
---|
7720 | esac |
---|
7721 | shift |
---|
7722 | done |
---|
7723 | |
---|
7724 | ac_configure_extra_args= |
---|
7725 | |
---|
7726 | if $ac_cs_silent; then |
---|
7727 | exec 6>/dev/null |
---|
7728 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
7729 | fi |
---|
7730 | |
---|
7731 | _ACEOF |
---|
7732 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7733 | if \$ac_cs_recheck; then |
---|
7734 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
7735 | shift |
---|
7736 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
7737 | CONFIG_SHELL='$SHELL' |
---|
7738 | export CONFIG_SHELL |
---|
7739 | exec "\$@" |
---|
7740 | fi |
---|
7741 | |
---|
7742 | _ACEOF |
---|
7743 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7744 | exec 5>>config.log |
---|
7745 | { |
---|
7746 | echo |
---|
7747 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
7748 | ## Running $as_me. ## |
---|
7749 | _ASBOX |
---|
7750 | $as_echo "$ac_log" |
---|
7751 | } >&5 |
---|
7752 | |
---|
7753 | _ACEOF |
---|
7754 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7755 | _ACEOF |
---|
7756 | |
---|
7757 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7758 | |
---|
7759 | # Handling of arguments. |
---|
7760 | for ac_config_target in $ac_config_targets |
---|
7761 | do |
---|
7762 | case $ac_config_target in |
---|
7763 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
7764 | |
---|
7765 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
7766 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
7767 | { (exit 1); exit 1; }; };; |
---|
7768 | esac |
---|
7769 | done |
---|
7770 | |
---|
7771 | |
---|
7772 | # If the user did not use the arguments to specify the items to instantiate, |
---|
7773 | # then the envvar interface is used. Set only those that are not. |
---|
7774 | # We use the long form for the default assignment because of an extremely |
---|
7775 | # bizarre bug on SunOS 4.1.3. |
---|
7776 | if $ac_need_defaults; then |
---|
7777 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
7778 | fi |
---|
7779 | |
---|
7780 | # Have a temporary directory for convenience. Make it in the build tree |
---|
7781 | # simply because there is no reason against having it here, and in addition, |
---|
7782 | # creating and moving files from /tmp can sometimes cause problems. |
---|
7783 | # Hook for its removal unless debugging. |
---|
7784 | # Note that there is a small window in which the directory will not be cleaned: |
---|
7785 | # after its creation but before its name has been assigned to `$tmp'. |
---|
7786 | $debug || |
---|
7787 | { |
---|
7788 | tmp= |
---|
7789 | trap 'exit_status=$? |
---|
7790 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
---|
7791 | ' 0 |
---|
7792 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
7793 | } |
---|
7794 | # Create a (secure) tmp directory for tmp files. |
---|
7795 | |
---|
7796 | { |
---|
7797 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
7798 | test -n "$tmp" && test -d "$tmp" |
---|
7799 | } || |
---|
7800 | { |
---|
7801 | tmp=./conf$$-$RANDOM |
---|
7802 | (umask 077 && mkdir "$tmp") |
---|
7803 | } || |
---|
7804 | { |
---|
7805 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
---|
7806 | { (exit 1); exit 1; } |
---|
7807 | } |
---|
7808 | |
---|
7809 | # Set up the scripts for CONFIG_FILES section. |
---|
7810 | # No need to generate them if there are no CONFIG_FILES. |
---|
7811 | # This happens for instance with `./config.status config.h'. |
---|
7812 | if test -n "$CONFIG_FILES"; then |
---|
7813 | |
---|
7814 | |
---|
7815 | ac_cr=' |
---|
7816 | ' |
---|
7817 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
7818 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
7819 | ac_cs_awk_cr='\\r' |
---|
7820 | else |
---|
7821 | ac_cs_awk_cr=$ac_cr |
---|
7822 | fi |
---|
7823 | |
---|
7824 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
---|
7825 | _ACEOF |
---|
7826 | |
---|
7827 | |
---|
7828 | { |
---|
7829 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
7830 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
7831 | echo "_ACEOF" |
---|
7832 | } >conf$$subs.sh || |
---|
7833 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
---|
7834 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
---|
7835 | { (exit 1); exit 1; }; } |
---|
7836 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
---|
7837 | ac_delim='%!_!# ' |
---|
7838 | for ac_last_try in false false false false false :; do |
---|
7839 | . ./conf$$subs.sh || |
---|
7840 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
---|
7841 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
---|
7842 | { (exit 1); exit 1; }; } |
---|
7843 | |
---|
7844 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
7845 | if test $ac_delim_n = $ac_delim_num; then |
---|
7846 | break |
---|
7847 | elif $ac_last_try; then |
---|
7848 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
---|
7849 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
---|
7850 | { (exit 1); exit 1; }; } |
---|
7851 | else |
---|
7852 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
7853 | fi |
---|
7854 | done |
---|
7855 | rm -f conf$$subs.sh |
---|
7856 | |
---|
7857 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7858 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
---|
7859 | _ACEOF |
---|
7860 | sed -n ' |
---|
7861 | h |
---|
7862 | s/^/S["/; s/!.*/"]=/ |
---|
7863 | p |
---|
7864 | g |
---|
7865 | s/^[^!]*!// |
---|
7866 | :repl |
---|
7867 | t repl |
---|
7868 | s/'"$ac_delim"'$// |
---|
7869 | t delim |
---|
7870 | :nl |
---|
7871 | h |
---|
7872 | s/\(.\{148\}\).*/\1/ |
---|
7873 | t more1 |
---|
7874 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
7875 | p |
---|
7876 | n |
---|
7877 | b repl |
---|
7878 | :more1 |
---|
7879 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
7880 | p |
---|
7881 | g |
---|
7882 | s/.\{148\}// |
---|
7883 | t nl |
---|
7884 | :delim |
---|
7885 | h |
---|
7886 | s/\(.\{148\}\).*/\1/ |
---|
7887 | t more2 |
---|
7888 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
7889 | p |
---|
7890 | b |
---|
7891 | :more2 |
---|
7892 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
7893 | p |
---|
7894 | g |
---|
7895 | s/.\{148\}// |
---|
7896 | t delim |
---|
7897 | ' <conf$$subs.awk | sed ' |
---|
7898 | /^[^""]/{ |
---|
7899 | N |
---|
7900 | s/\n// |
---|
7901 | } |
---|
7902 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
7903 | rm -f conf$$subs.awk |
---|
7904 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7905 | _ACAWK |
---|
7906 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
---|
7907 | for (key in S) S_is_set[key] = 1 |
---|
7908 | FS = "" |
---|
7909 | |
---|
7910 | } |
---|
7911 | { |
---|
7912 | line = $ 0 |
---|
7913 | nfields = split(line, field, "@") |
---|
7914 | substed = 0 |
---|
7915 | len = length(field[1]) |
---|
7916 | for (i = 2; i < nfields; i++) { |
---|
7917 | key = field[i] |
---|
7918 | keylen = length(key) |
---|
7919 | if (S_is_set[key]) { |
---|
7920 | value = S[key] |
---|
7921 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
7922 | len += length(value) + length(field[++i]) |
---|
7923 | substed = 1 |
---|
7924 | } else |
---|
7925 | len += 1 + keylen |
---|
7926 | } |
---|
7927 | |
---|
7928 | print line |
---|
7929 | } |
---|
7930 | |
---|
7931 | _ACAWK |
---|
7932 | _ACEOF |
---|
7933 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7934 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
7935 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
7936 | else |
---|
7937 | cat |
---|
7938 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
---|
7939 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
---|
7940 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} |
---|
7941 | { (exit 1); exit 1; }; } |
---|
7942 | _ACEOF |
---|
7943 | |
---|
7944 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
7945 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
7946 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
7947 | # (actually we leave an empty line to preserve line numbers). |
---|
7948 | if test "x$srcdir" = x.; then |
---|
7949 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
7950 | s/:*\$(srcdir):*/:/ |
---|
7951 | s/:*\${srcdir}:*/:/ |
---|
7952 | s/:*@srcdir@:*/:/ |
---|
7953 | s/^\([^=]*=[ ]*\):*/\1/ |
---|
7954 | s/:*$// |
---|
7955 | s/^[^=]*=[ ]*$// |
---|
7956 | }' |
---|
7957 | fi |
---|
7958 | |
---|
7959 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7960 | fi # test -n "$CONFIG_FILES" |
---|
7961 | |
---|
7962 | |
---|
7963 | eval set X " :F $CONFIG_FILES " |
---|
7964 | shift |
---|
7965 | for ac_tag |
---|
7966 | do |
---|
7967 | case $ac_tag in |
---|
7968 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
7969 | esac |
---|
7970 | case $ac_mode$ac_tag in |
---|
7971 | :[FHL]*:*);; |
---|
7972 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
---|
7973 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} |
---|
7974 | { (exit 1); exit 1; }; };; |
---|
7975 | :[FH]-) ac_tag=-:-;; |
---|
7976 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
7977 | esac |
---|
7978 | ac_save_IFS=$IFS |
---|
7979 | IFS=: |
---|
7980 | set x $ac_tag |
---|
7981 | IFS=$ac_save_IFS |
---|
7982 | shift |
---|
7983 | ac_file=$1 |
---|
7984 | shift |
---|
7985 | |
---|
7986 | case $ac_mode in |
---|
7987 | :L) ac_source=$1;; |
---|
7988 | :[FH]) |
---|
7989 | ac_file_inputs= |
---|
7990 | for ac_f |
---|
7991 | do |
---|
7992 | case $ac_f in |
---|
7993 | -) ac_f="$tmp/stdin";; |
---|
7994 | *) # Look for the file first in the build tree, then in the source tree |
---|
7995 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
7996 | # because $ac_f cannot contain `:'. |
---|
7997 | test -f "$ac_f" || |
---|
7998 | case $ac_f in |
---|
7999 | [\\/$]*) false;; |
---|
8000 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
8001 | esac || |
---|
8002 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
---|
8003 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
---|
8004 | { (exit 1); exit 1; }; };; |
---|
8005 | esac |
---|
8006 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
8007 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
---|
8008 | done |
---|
8009 | |
---|
8010 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
8011 | # use $as_me), people would be surprised to read: |
---|
8012 | # /* config.h. Generated by config.status. */ |
---|
8013 | configure_input='Generated from '` |
---|
8014 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
8015 | `' by configure.' |
---|
8016 | if test x"$ac_file" != x-; then |
---|
8017 | configure_input="$ac_file. $configure_input" |
---|
8018 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
8019 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
8020 | fi |
---|
8021 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
8022 | case $configure_input in #( |
---|
8023 | *\&* | *\|* | *\\* ) |
---|
8024 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
8025 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
8026 | *) ac_sed_conf_input=$configure_input;; |
---|
8027 | esac |
---|
8028 | |
---|
8029 | case $ac_tag in |
---|
8030 | *:-:* | *:-) cat >"$tmp/stdin" \ |
---|
8031 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
---|
8032 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
---|
8033 | { (exit 1); exit 1; }; } ;; |
---|
8034 | esac |
---|
8035 | ;; |
---|
8036 | esac |
---|
8037 | |
---|
8038 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
8039 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8040 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
8041 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
8042 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
8043 | $as_echo X"$ac_file" | |
---|
8044 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
8045 | s//\1/ |
---|
8046 | q |
---|
8047 | } |
---|
8048 | /^X\(\/\/\)[^/].*/{ |
---|
8049 | s//\1/ |
---|
8050 | q |
---|
8051 | } |
---|
8052 | /^X\(\/\/\)$/{ |
---|
8053 | s//\1/ |
---|
8054 | q |
---|
8055 | } |
---|
8056 | /^X\(\/\).*/{ |
---|
8057 | s//\1/ |
---|
8058 | q |
---|
8059 | } |
---|
8060 | s/.*/./; q'` |
---|
8061 | { as_dir="$ac_dir" |
---|
8062 | case $as_dir in #( |
---|
8063 | -*) as_dir=./$as_dir;; |
---|
8064 | esac |
---|
8065 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
---|
8066 | as_dirs= |
---|
8067 | while :; do |
---|
8068 | case $as_dir in #( |
---|
8069 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
8070 | *) as_qdir=$as_dir;; |
---|
8071 | esac |
---|
8072 | as_dirs="'$as_qdir' $as_dirs" |
---|
8073 | as_dir=`$as_dirname -- "$as_dir" || |
---|
8074 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8075 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
8076 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
8077 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
8078 | $as_echo X"$as_dir" | |
---|
8079 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
8080 | s//\1/ |
---|
8081 | q |
---|
8082 | } |
---|
8083 | /^X\(\/\/\)[^/].*/{ |
---|
8084 | s//\1/ |
---|
8085 | q |
---|
8086 | } |
---|
8087 | /^X\(\/\/\)$/{ |
---|
8088 | s//\1/ |
---|
8089 | q |
---|
8090 | } |
---|
8091 | /^X\(\/\).*/{ |
---|
8092 | s//\1/ |
---|
8093 | q |
---|
8094 | } |
---|
8095 | s/.*/./; q'` |
---|
8096 | test -d "$as_dir" && break |
---|
8097 | done |
---|
8098 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
8099 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
---|
8100 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
---|
8101 | { (exit 1); exit 1; }; }; } |
---|
8102 | ac_builddir=. |
---|
8103 | |
---|
8104 | case "$ac_dir" in |
---|
8105 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
8106 | *) |
---|
8107 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
8108 | # A ".." for each directory in $ac_dir_suffix. |
---|
8109 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
8110 | case $ac_top_builddir_sub in |
---|
8111 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
8112 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
8113 | esac ;; |
---|
8114 | esac |
---|
8115 | ac_abs_top_builddir=$ac_pwd |
---|
8116 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
8117 | # for backward compatibility: |
---|
8118 | ac_top_builddir=$ac_top_build_prefix |
---|
8119 | |
---|
8120 | case $srcdir in |
---|
8121 | .) # We are building in place. |
---|
8122 | ac_srcdir=. |
---|
8123 | ac_top_srcdir=$ac_top_builddir_sub |
---|
8124 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
8125 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
8126 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
8127 | ac_top_srcdir=$srcdir |
---|
8128 | ac_abs_top_srcdir=$srcdir ;; |
---|
8129 | *) # Relative name. |
---|
8130 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
8131 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
8132 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
8133 | esac |
---|
8134 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
8135 | |
---|
8136 | |
---|
8137 | case $ac_mode in |
---|
8138 | :F) |
---|
8139 | # |
---|
8140 | # CONFIG_FILE |
---|
8141 | # |
---|
8142 | |
---|
8143 | case $INSTALL in |
---|
8144 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
8145 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
8146 | esac |
---|
8147 | _ACEOF |
---|
8148 | |
---|
8149 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8150 | # If the template does not know about datarootdir, expand it. |
---|
8151 | # FIXME: This hack should be removed a few years after 2.60. |
---|
8152 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
8153 | |
---|
8154 | ac_sed_dataroot=' |
---|
8155 | /datarootdir/ { |
---|
8156 | p |
---|
8157 | q |
---|
8158 | } |
---|
8159 | /@datadir@/p |
---|
8160 | /@docdir@/p |
---|
8161 | /@infodir@/p |
---|
8162 | /@localedir@/p |
---|
8163 | /@mandir@/p |
---|
8164 | ' |
---|
8165 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
8166 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
8167 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
8168 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
8169 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
8170 | _ACEOF |
---|
8171 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8172 | ac_datarootdir_hack=' |
---|
8173 | s&@datadir@&$datadir&g |
---|
8174 | s&@docdir@&$docdir&g |
---|
8175 | s&@infodir@&$infodir&g |
---|
8176 | s&@localedir@&$localedir&g |
---|
8177 | s&@mandir@&$mandir&g |
---|
8178 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
8179 | esac |
---|
8180 | _ACEOF |
---|
8181 | |
---|
8182 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
8183 | # Shell code in configure.ac might set extrasub. |
---|
8184 | # FIXME: do we really want to maintain this feature? |
---|
8185 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8186 | ac_sed_extra="$ac_vpsub |
---|
8187 | $extrasub |
---|
8188 | _ACEOF |
---|
8189 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8190 | :t |
---|
8191 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
8192 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
8193 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
8194 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
8195 | s&@srcdir@&$ac_srcdir&;t t |
---|
8196 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
8197 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
8198 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
8199 | s&@builddir@&$ac_builddir&;t t |
---|
8200 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
8201 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
8202 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
8203 | $ac_datarootdir_hack |
---|
8204 | " |
---|
8205 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
---|
8206 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
---|
8207 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
---|
8208 | { (exit 1); exit 1; }; } |
---|
8209 | |
---|
8210 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
8211 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
---|
8212 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
---|
8213 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
8214 | which seems to be undefined. Please make sure it is defined." >&5 |
---|
8215 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
8216 | which seems to be undefined. Please make sure it is defined." >&2;} |
---|
8217 | |
---|
8218 | rm -f "$tmp/stdin" |
---|
8219 | case $ac_file in |
---|
8220 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
---|
8221 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
---|
8222 | esac \ |
---|
8223 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
---|
8224 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
---|
8225 | { (exit 1); exit 1; }; } |
---|
8226 | ;; |
---|
8227 | |
---|
8228 | |
---|
8229 | |
---|
8230 | esac |
---|
8231 | |
---|
8232 | done # for ac_tag |
---|
8233 | |
---|
8234 | |
---|
8235 | { (exit 0); exit 0; } |
---|
8236 | _ACEOF |
---|
8237 | chmod +x $CONFIG_STATUS |
---|
8238 | ac_clean_files=$ac_clean_files_save |
---|
8239 | |
---|
8240 | test $ac_write_fail = 0 || |
---|
8241 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
---|
8242 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
---|
8243 | { (exit 1); exit 1; }; } |
---|
8244 | |
---|
8245 | |
---|
8246 | # configure is writing to config.log, and then calls config.status. |
---|
8247 | # config.status does its own redirection, appending to config.log. |
---|
8248 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
8249 | # by configure, so config.status won't be able to write to it; its |
---|
8250 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
8251 | # effectively closing config.log, so it can be properly (re)opened and |
---|
8252 | # appended to by config.status. When coming back to configure, we |
---|
8253 | # need to make the FD available again. |
---|
8254 | if test "$no_create" != yes; then |
---|
8255 | ac_cs_success=: |
---|
8256 | ac_config_status_args= |
---|
8257 | test "$silent" = yes && |
---|
8258 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
8259 | exec 5>/dev/null |
---|
8260 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
8261 | exec 5>>config.log |
---|
8262 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
8263 | # would make configure fail if this is the last instruction. |
---|
8264 | $ac_cs_success || { (exit 1); exit 1; } |
---|
8265 | fi |
---|
8266 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
8267 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
8268 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
8269 | fi |
---|
8270 | |
---|
8271 | |
---|