Commit | Line | Data |
---|---|---|
c28c63d8 JB |
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="Makefile.in" | |
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 | cgen_breaks | |
641 | cgen | |
642 | cgendir | |
643 | CGEN_MAINT | |
644 | REPORT_BUGS_TEXI | |
645 | REPORT_BUGS_TO | |
646 | PKGVERSION | |
647 | sim_profile | |
648 | sim_trace | |
649 | sim_stdio | |
650 | sim_debug | |
651 | sim_cflags | |
652 | sim_bswap | |
653 | MAINT | |
654 | EGREP | |
655 | GREP | |
656 | CPP | |
657 | CATOBJEXT | |
658 | GENCAT | |
659 | INSTOBJEXT | |
660 | DATADIRNAME | |
661 | CATALOGS | |
662 | POSUB | |
663 | GMSGFMT | |
664 | XGETTEXT | |
665 | INCINTL | |
666 | LIBINTL_DEP | |
667 | LIBINTL | |
668 | USE_NLS | |
669 | RANLIB | |
670 | AR | |
671 | HDEFINES | |
672 | CC_FOR_BUILD | |
673 | INSTALL_DATA | |
674 | INSTALL_SCRIPT | |
675 | INSTALL_PROGRAM | |
676 | OBJEXT | |
677 | EXEEXT | |
678 | ac_ct_CC | |
679 | CPPFLAGS | |
680 | LDFLAGS | |
681 | CFLAGS | |
682 | CC | |
683 | target_os | |
684 | target_vendor | |
685 | target_cpu | |
686 | target | |
687 | host_os | |
688 | host_vendor | |
689 | host_cpu | |
690 | host | |
691 | build_os | |
692 | build_vendor | |
693 | build_cpu | |
694 | build | |
695 | WERROR_CFLAGS | |
696 | WARN_CFLAGS | |
697 | sim_xor_endian | |
698 | sim_stdcall | |
699 | sim_smp | |
700 | sim_reserved_bits | |
701 | sim_regparm | |
702 | sim_packages | |
703 | sim_inline | |
704 | sim_hw | |
705 | sim_hw_objs | |
706 | sim_hw_cflags | |
707 | sim_default_model | |
708 | sim_scache | |
709 | sim_float | |
710 | sim_hostendian | |
711 | sim_endian | |
712 | sim_bitsize | |
713 | sim_assert | |
714 | sim_alignment | |
715 | sim_environment | |
716 | target_alias | |
717 | host_alias | |
718 | build_alias | |
719 | LIBS | |
720 | ECHO_T | |
721 | ECHO_N | |
722 | ECHO_C | |
723 | DEFS | |
724 | mandir | |
725 | localedir | |
726 | libdir | |
727 | psdir | |
728 | pdfdir | |
729 | dvidir | |
730 | htmldir | |
731 | infodir | |
732 | docdir | |
733 | oldincludedir | |
734 | includedir | |
735 | localstatedir | |
736 | sharedstatedir | |
737 | sysconfdir | |
738 | datadir | |
739 | datarootdir | |
740 | libexecdir | |
741 | sbindir | |
742 | bindir | |
743 | program_transform_name | |
744 | prefix | |
745 | exec_prefix | |
746 | PACKAGE_BUGREPORT | |
747 | PACKAGE_STRING | |
748 | PACKAGE_VERSION | |
749 | PACKAGE_TARNAME | |
750 | PACKAGE_NAME | |
751 | PATH_SEPARATOR | |
752 | SHELL' | |
753 | ac_subst_files='' | |
754 | ac_user_opts=' | |
755 | enable_option_checking | |
756 | enable_maintainer_mode | |
757 | enable_sim_bswap | |
758 | enable_sim_cflags | |
759 | enable_sim_debug | |
760 | enable_sim_stdio | |
761 | enable_sim_trace | |
762 | enable_sim_profile | |
763 | with_pkgversion | |
764 | with_bugurl | |
765 | enable_sim_endian | |
766 | enable_sim_alignment | |
767 | enable_sim_hostendian | |
768 | enable_sim_scache | |
769 | enable_sim_default_model | |
770 | enable_sim_environment | |
771 | enable_cgen_maint | |
772 | enable_sim_hardware | |
773 | ' | |
774 | ac_precious_vars='build_alias | |
775 | host_alias | |
776 | target_alias | |
777 | CC | |
778 | CFLAGS | |
779 | LDFLAGS | |
780 | LIBS | |
781 | CPPFLAGS | |
782 | CPP' | |
783 | ||
784 | ||
785 | # Initialize some variables set by options. | |
786 | ac_init_help= | |
787 | ac_init_version=false | |
788 | ac_unrecognized_opts= | |
789 | ac_unrecognized_sep= | |
790 | # The variables have the same names as the options, with | |
791 | # dashes changed to underlines. | |
792 | cache_file=/dev/null | |
793 | exec_prefix=NONE | |
794 | no_create= | |
795 | no_recursion= | |
796 | prefix=NONE | |
797 | program_prefix=NONE | |
798 | program_suffix=NONE | |
799 | program_transform_name=s,x,x, | |
800 | silent= | |
801 | site= | |
802 | srcdir= | |
803 | verbose= | |
804 | x_includes=NONE | |
805 | x_libraries=NONE | |
806 | ||
807 | # Installation directory options. | |
808 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
809 | # and all the variables that are supposed to be based on exec_prefix | |
810 | # by default will actually change. | |
811 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
812 | # (The list follows the same order as the GNU Coding Standards.) | |
813 | bindir='${exec_prefix}/bin' | |
814 | sbindir='${exec_prefix}/sbin' | |
815 | libexecdir='${exec_prefix}/libexec' | |
816 | datarootdir='${prefix}/share' | |
817 | datadir='${datarootdir}' | |
818 | sysconfdir='${prefix}/etc' | |
819 | sharedstatedir='${prefix}/com' | |
820 | localstatedir='${prefix}/var' | |
821 | includedir='${prefix}/include' | |
822 | oldincludedir='/usr/include' | |
823 | docdir='${datarootdir}/doc/${PACKAGE}' | |
824 | infodir='${datarootdir}/info' | |
825 | htmldir='${docdir}' | |
826 | dvidir='${docdir}' | |
827 | pdfdir='${docdir}' | |
828 | psdir='${docdir}' | |
829 | libdir='${exec_prefix}/lib' | |
830 | localedir='${datarootdir}/locale' | |
831 | mandir='${datarootdir}/man' | |
832 | ||
833 | ac_prev= | |
834 | ac_dashdash= | |
835 | for ac_option | |
836 | do | |
837 | # If the previous option needs an argument, assign it. | |
838 | if test -n "$ac_prev"; then | |
839 | eval $ac_prev=\$ac_option | |
840 | ac_prev= | |
841 | continue | |
842 | fi | |
843 | ||
844 | case $ac_option in | |
845 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
846 | *) ac_optarg=yes ;; | |
847 | esac | |
848 | ||
849 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
850 | ||
851 | case $ac_dashdash$ac_option in | |
852 | --) | |
853 | ac_dashdash=yes ;; | |
854 | ||
855 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
856 | ac_prev=bindir ;; | |
857 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
858 | bindir=$ac_optarg ;; | |
859 | ||
860 | -build | --build | --buil | --bui | --bu) | |
861 | ac_prev=build_alias ;; | |
862 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
863 | build_alias=$ac_optarg ;; | |
864 | ||
865 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
866 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
867 | ac_prev=cache_file ;; | |
868 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
869 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
870 | cache_file=$ac_optarg ;; | |
871 | ||
872 | --config-cache | -C) | |
873 | cache_file=config.cache ;; | |
874 | ||
875 | -datadir | --datadir | --datadi | --datad) | |
876 | ac_prev=datadir ;; | |
877 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
878 | datadir=$ac_optarg ;; | |
879 | ||
880 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
881 | | --dataroo | --dataro | --datar) | |
882 | ac_prev=datarootdir ;; | |
883 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
884 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
885 | datarootdir=$ac_optarg ;; | |
886 | ||
887 | -disable-* | --disable-*) | |
888 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
889 | # Reject names that are not valid shell variable names. | |
890 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
891 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
892 | { (exit 1); exit 1; }; } | |
893 | ac_useropt_orig=$ac_useropt | |
894 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
895 | case $ac_user_opts in | |
896 | *" | |
897 | "enable_$ac_useropt" | |
898 | "*) ;; | |
899 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
900 | ac_unrecognized_sep=', ';; | |
901 | esac | |
902 | eval enable_$ac_useropt=no ;; | |
903 | ||
904 | -docdir | --docdir | --docdi | --doc | --do) | |
905 | ac_prev=docdir ;; | |
906 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
907 | docdir=$ac_optarg ;; | |
908 | ||
909 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
910 | ac_prev=dvidir ;; | |
911 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
912 | dvidir=$ac_optarg ;; | |
913 | ||
914 | -enable-* | --enable-*) | |
915 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
916 | # Reject names that are not valid shell variable names. | |
917 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
918 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
919 | { (exit 1); exit 1; }; } | |
920 | ac_useropt_orig=$ac_useropt | |
921 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
922 | case $ac_user_opts in | |
923 | *" | |
924 | "enable_$ac_useropt" | |
925 | "*) ;; | |
926 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
927 | ac_unrecognized_sep=', ';; | |
928 | esac | |
929 | eval enable_$ac_useropt=\$ac_optarg ;; | |
930 | ||
931 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
932 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
933 | | --exec | --exe | --ex) | |
934 | ac_prev=exec_prefix ;; | |
935 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
936 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
937 | | --exec=* | --exe=* | --ex=*) | |
938 | exec_prefix=$ac_optarg ;; | |
939 | ||
940 | -gas | --gas | --ga | --g) | |
941 | # Obsolete; use --with-gas. | |
942 | with_gas=yes ;; | |
943 | ||
944 | -help | --help | --hel | --he | -h) | |
945 | ac_init_help=long ;; | |
946 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
947 | ac_init_help=recursive ;; | |
948 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
949 | ac_init_help=short ;; | |
950 | ||
951 | -host | --host | --hos | --ho) | |
952 | ac_prev=host_alias ;; | |
953 | -host=* | --host=* | --hos=* | --ho=*) | |
954 | host_alias=$ac_optarg ;; | |
955 | ||
956 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
957 | ac_prev=htmldir ;; | |
958 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
959 | | --ht=*) | |
960 | htmldir=$ac_optarg ;; | |
961 | ||
962 | -includedir | --includedir | --includedi | --included | --include \ | |
963 | | --includ | --inclu | --incl | --inc) | |
964 | ac_prev=includedir ;; | |
965 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
966 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
967 | includedir=$ac_optarg ;; | |
968 | ||
969 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
970 | ac_prev=infodir ;; | |
971 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
972 | infodir=$ac_optarg ;; | |
973 | ||
974 | -libdir | --libdir | --libdi | --libd) | |
975 | ac_prev=libdir ;; | |
976 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
977 | libdir=$ac_optarg ;; | |
978 | ||
979 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
980 | | --libexe | --libex | --libe) | |
981 | ac_prev=libexecdir ;; | |
982 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
983 | | --libexe=* | --libex=* | --libe=*) | |
984 | libexecdir=$ac_optarg ;; | |
985 | ||
986 | -localedir | --localedir | --localedi | --localed | --locale) | |
987 | ac_prev=localedir ;; | |
988 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
989 | localedir=$ac_optarg ;; | |
990 | ||
991 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
992 | | --localstate | --localstat | --localsta | --localst | --locals) | |
993 | ac_prev=localstatedir ;; | |
994 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
995 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
996 | localstatedir=$ac_optarg ;; | |
997 | ||
998 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
999 | ac_prev=mandir ;; | |
1000 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1001 | mandir=$ac_optarg ;; | |
1002 | ||
1003 | -nfp | --nfp | --nf) | |
1004 | # Obsolete; use --without-fp. | |
1005 | with_fp=no ;; | |
1006 | ||
1007 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1008 | | --no-cr | --no-c | -n) | |
1009 | no_create=yes ;; | |
1010 | ||
1011 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1012 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1013 | no_recursion=yes ;; | |
1014 | ||
1015 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1016 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1017 | | --oldin | --oldi | --old | --ol | --o) | |
1018 | ac_prev=oldincludedir ;; | |
1019 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1020 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1021 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1022 | oldincludedir=$ac_optarg ;; | |
1023 | ||
1024 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1025 | ac_prev=prefix ;; | |
1026 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1027 | prefix=$ac_optarg ;; | |
1028 | ||
1029 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1030 | | --program-pre | --program-pr | --program-p) | |
1031 | ac_prev=program_prefix ;; | |
1032 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1033 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1034 | program_prefix=$ac_optarg ;; | |
1035 | ||
1036 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1037 | | --program-suf | --program-su | --program-s) | |
1038 | ac_prev=program_suffix ;; | |
1039 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1040 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1041 | program_suffix=$ac_optarg ;; | |
1042 | ||
1043 | -program-transform-name | --program-transform-name \ | |
1044 | | --program-transform-nam | --program-transform-na \ | |
1045 | | --program-transform-n | --program-transform- \ | |
1046 | | --program-transform | --program-transfor \ | |
1047 | | --program-transfo | --program-transf \ | |
1048 | | --program-trans | --program-tran \ | |
1049 | | --progr-tra | --program-tr | --program-t) | |
1050 | ac_prev=program_transform_name ;; | |
1051 | -program-transform-name=* | --program-transform-name=* \ | |
1052 | | --program-transform-nam=* | --program-transform-na=* \ | |
1053 | | --program-transform-n=* | --program-transform-=* \ | |
1054 | | --program-transform=* | --program-transfor=* \ | |
1055 | | --program-transfo=* | --program-transf=* \ | |
1056 | | --program-trans=* | --program-tran=* \ | |
1057 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1058 | program_transform_name=$ac_optarg ;; | |
1059 | ||
1060 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1061 | ac_prev=pdfdir ;; | |
1062 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1063 | pdfdir=$ac_optarg ;; | |
1064 | ||
1065 | -psdir | --psdir | --psdi | --psd | --ps) | |
1066 | ac_prev=psdir ;; | |
1067 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1068 | psdir=$ac_optarg ;; | |
1069 | ||
1070 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1071 | | -silent | --silent | --silen | --sile | --sil) | |
1072 | silent=yes ;; | |
1073 | ||
1074 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1075 | ac_prev=sbindir ;; | |
1076 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1077 | | --sbi=* | --sb=*) | |
1078 | sbindir=$ac_optarg ;; | |
1079 | ||
1080 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1081 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1082 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1083 | | --sha | --sh) | |
1084 | ac_prev=sharedstatedir ;; | |
1085 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1086 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1087 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1088 | | --sha=* | --sh=*) | |
1089 | sharedstatedir=$ac_optarg ;; | |
1090 | ||
1091 | -site | --site | --sit) | |
1092 | ac_prev=site ;; | |
1093 | -site=* | --site=* | --sit=*) | |
1094 | site=$ac_optarg ;; | |
1095 | ||
1096 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1097 | ac_prev=srcdir ;; | |
1098 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1099 | srcdir=$ac_optarg ;; | |
1100 | ||
1101 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1102 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1103 | ac_prev=sysconfdir ;; | |
1104 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1105 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1106 | sysconfdir=$ac_optarg ;; | |
1107 | ||
1108 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1109 | ac_prev=target_alias ;; | |
1110 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1111 | target_alias=$ac_optarg ;; | |
1112 | ||
1113 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1114 | verbose=yes ;; | |
1115 | ||
1116 | -version | --version | --versio | --versi | --vers | -V) | |
1117 | ac_init_version=: ;; | |
1118 | ||
1119 | -with-* | --with-*) | |
1120 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1121 | # Reject names that are not valid shell variable names. | |
1122 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1123 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
1124 | { (exit 1); exit 1; }; } | |
1125 | ac_useropt_orig=$ac_useropt | |
1126 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1127 | case $ac_user_opts in | |
1128 | *" | |
1129 | "with_$ac_useropt" | |
1130 | "*) ;; | |
1131 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1132 | ac_unrecognized_sep=', ';; | |
1133 | esac | |
1134 | eval with_$ac_useropt=\$ac_optarg ;; | |
1135 | ||
1136 | -without-* | --without-*) | |
1137 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1138 | # Reject names that are not valid shell variable names. | |
1139 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1140 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
1141 | { (exit 1); exit 1; }; } | |
1142 | ac_useropt_orig=$ac_useropt | |
1143 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1144 | case $ac_user_opts in | |
1145 | *" | |
1146 | "with_$ac_useropt" | |
1147 | "*) ;; | |
1148 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1149 | ac_unrecognized_sep=', ';; | |
1150 | esac | |
1151 | eval with_$ac_useropt=no ;; | |
1152 | ||
1153 | --x) | |
1154 | # Obsolete; use --with-x. | |
1155 | with_x=yes ;; | |
1156 | ||
1157 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1158 | | --x-incl | --x-inc | --x-in | --x-i) | |
1159 | ac_prev=x_includes ;; | |
1160 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1161 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1162 | x_includes=$ac_optarg ;; | |
1163 | ||
1164 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1165 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1166 | ac_prev=x_libraries ;; | |
1167 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1168 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1169 | x_libraries=$ac_optarg ;; | |
1170 | ||
1171 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option | |
1172 | Try \`$0 --help' for more information." >&2 | |
1173 | { (exit 1); exit 1; }; } | |
1174 | ;; | |
1175 | ||
1176 | *=*) | |
1177 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1178 | # Reject names that are not valid shell variable names. | |
1179 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1180 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1181 | { (exit 1); exit 1; }; } | |
1182 | eval $ac_envvar=\$ac_optarg | |
1183 | export $ac_envvar ;; | |
1184 | ||
1185 | *) | |
1186 | # FIXME: should be removed in autoconf 3.0. | |
1187 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1188 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1189 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1190 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1191 | ;; | |
1192 | ||
1193 | esac | |
1194 | done | |
1195 | ||
1196 | if test -n "$ac_prev"; then | |
1197 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1198 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 | |
1199 | { (exit 1); exit 1; }; } | |
1200 | fi | |
1201 | ||
1202 | if test -n "$ac_unrecognized_opts"; then | |
1203 | case $enable_option_checking in | |
1204 | no) ;; | |
1205 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1206 | { (exit 1); exit 1; }; } ;; | |
1207 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1208 | esac | |
1209 | fi | |
1210 | ||
1211 | # Check all directory arguments for consistency. | |
1212 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1213 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1214 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1215 | libdir localedir mandir | |
1216 | do | |
1217 | eval ac_val=\$$ac_var | |
1218 | # Remove trailing slashes. | |
1219 | case $ac_val in | |
1220 | */ ) | |
1221 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1222 | eval $ac_var=\$ac_val;; | |
1223 | esac | |
1224 | # Be sure to have absolute directory names. | |
1225 | case $ac_val in | |
1226 | [\\/$]* | ?:[\\/]* ) continue;; | |
1227 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1228 | esac | |
1229 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1230 | { (exit 1); exit 1; }; } | |
1231 | done | |
1232 | ||
1233 | # There might be people who depend on the old broken behavior: `$host' | |
1234 | # used to hold the argument of --host etc. | |
1235 | # FIXME: To remove some day. | |
1236 | build=$build_alias | |
1237 | host=$host_alias | |
1238 | target=$target_alias | |
1239 | ||
1240 | # FIXME: To remove some day. | |
1241 | if test "x$host_alias" != x; then | |
1242 | if test "x$build_alias" = x; then | |
1243 | cross_compiling=maybe | |
1244 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1245 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1246 | elif test "x$build_alias" != "x$host_alias"; then | |
1247 | cross_compiling=yes | |
1248 | fi | |
1249 | fi | |
1250 | ||
1251 | ac_tool_prefix= | |
1252 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1253 | ||
1254 | test "$silent" = yes && exec 6>/dev/null | |
1255 | ||
1256 | ||
1257 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1258 | ac_ls_di=`ls -di .` && | |
1259 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1260 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 | |
1261 | { (exit 1); exit 1; }; } | |
1262 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1263 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1264 | { (exit 1); exit 1; }; } | |
1265 | ||
1266 | ||
1267 | # Find the source files, if location was not specified. | |
1268 | if test -z "$srcdir"; then | |
1269 | ac_srcdir_defaulted=yes | |
1270 | # Try the directory containing this script, then the parent directory. | |
1271 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1272 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1273 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1274 | X"$as_myself" : 'X\(//\)$' \| \ | |
1275 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1276 | $as_echo X"$as_myself" | | |
1277 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1278 | s//\1/ | |
1279 | q | |
1280 | } | |
1281 | /^X\(\/\/\)[^/].*/{ | |
1282 | s//\1/ | |
1283 | q | |
1284 | } | |
1285 | /^X\(\/\/\)$/{ | |
1286 | s//\1/ | |
1287 | q | |
1288 | } | |
1289 | /^X\(\/\).*/{ | |
1290 | s//\1/ | |
1291 | q | |
1292 | } | |
1293 | s/.*/./; q'` | |
1294 | srcdir=$ac_confdir | |
1295 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1296 | srcdir=.. | |
1297 | fi | |
1298 | else | |
1299 | ac_srcdir_defaulted=no | |
1300 | fi | |
1301 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1302 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1303 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1304 | { (exit 1); exit 1; }; } | |
1305 | fi | |
1306 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1307 | ac_abs_confdir=`( | |
1308 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 | |
1309 | { (exit 1); exit 1; }; } | |
1310 | pwd)` | |
1311 | # When building in place, set srcdir=. | |
1312 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1313 | srcdir=. | |
1314 | fi | |
1315 | # Remove unnecessary trailing slashes from srcdir. | |
1316 | # Double slashes in file names in object file debugging info | |
1317 | # mess up M-x gdb in Emacs. | |
1318 | case $srcdir in | |
1319 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1320 | esac | |
1321 | for ac_var in $ac_precious_vars; do | |
1322 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1323 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1324 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1325 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1326 | done | |
1327 | ||
1328 | # | |
1329 | # Report the --help message. | |
1330 | # | |
1331 | if test "$ac_init_help" = "long"; then | |
1332 | # Omit some internal or obsolete options to make the list less imposing. | |
1333 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1334 | cat <<_ACEOF | |
1335 | \`configure' configures this package to adapt to many kinds of systems. | |
1336 | ||
1337 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1338 | ||
1339 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1340 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1341 | ||
1342 | Defaults for the options are specified in brackets. | |
1343 | ||
1344 | Configuration: | |
1345 | -h, --help display this help and exit | |
1346 | --help=short display options specific to this package | |
1347 | --help=recursive display the short help of all the included packages | |
1348 | -V, --version display version information and exit | |
1349 | -q, --quiet, --silent do not print \`checking...' messages | |
1350 | --cache-file=FILE cache test results in FILE [disabled] | |
1351 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1352 | -n, --no-create do not create output files | |
1353 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1354 | ||
1355 | Installation directories: | |
1356 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1357 | [$ac_default_prefix] | |
1358 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1359 | [PREFIX] | |
1360 | ||
1361 | By default, \`make install' will install all the files in | |
1362 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1363 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1364 | for instance \`--prefix=\$HOME'. | |
1365 | ||
1366 | For better control, use the options below. | |
1367 | ||
1368 | Fine tuning of the installation directories: | |
1369 | --bindir=DIR user executables [EPREFIX/bin] | |
1370 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1371 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1372 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1373 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1374 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1375 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1376 | --includedir=DIR C header files [PREFIX/include] | |
1377 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1378 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1379 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1380 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1381 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1382 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1383 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1384 | --htmldir=DIR html documentation [DOCDIR] | |
1385 | --dvidir=DIR dvi documentation [DOCDIR] | |
1386 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1387 | --psdir=DIR ps documentation [DOCDIR] | |
1388 | _ACEOF | |
1389 | ||
1390 | cat <<\_ACEOF | |
1391 | ||
1392 | Program names: | |
1393 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1394 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1395 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1396 | ||
1397 | System types: | |
1398 | --build=BUILD configure for building on BUILD [guessed] | |
1399 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1400 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1401 | _ACEOF | |
1402 | fi | |
1403 | ||
1404 | if test -n "$ac_init_help"; then | |
1405 | ||
1406 | cat <<\_ACEOF | |
1407 | ||
1408 | Optional Features: | |
1409 | --disable-option-checking ignore unrecognized --enable/--with options | |
1410 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1411 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1412 | --enable-maintainer-mode Enable developer functionality. | |
1413 | --enable-sim-bswap Use Host specific BSWAP instruction. | |
1414 | --enable-sim-cflags=opts Extra CFLAGS for use in building simulator | |
1415 | --enable-sim-debug=opts Enable debugging flags | |
1416 | --enable-sim-stdio Specify whether to use stdio for console input/output. | |
1417 | --enable-sim-trace=opts Enable tracing flags | |
1418 | --enable-sim-profile=opts Enable profiling flags | |
1419 | --enable-sim-endian=endian Specify target byte endian orientation. | |
1420 | --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses. | |
1421 | --enable-sim-hostendian=end Specify host byte endian orientation. | |
1422 | --enable-sim-scache=size Specify simulator execution cache size. | |
1423 | --enable-sim-default-model=model Specify default model to simulate. | |
1424 | --enable-sim-environment=environment Specify mixed, user, virtual or operating environment. | |
1425 | --enable-cgen-maint=DIR build cgen generated files | |
1426 | --enable-sim-hardware=LIST Specify the hardware to be included in the build. | |
1427 | ||
1428 | Optional Packages: | |
1429 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1430 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1431 | --with-pkgversion=PKG Use PKG in the version string in place of "GDB" | |
1432 | --with-bugurl=URL Direct users to URL to report a bug | |
1433 | ||
1434 | Some influential environment variables: | |
1435 | CC C compiler command | |
1436 | CFLAGS C compiler flags | |
1437 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1438 | nonstandard directory <lib dir> | |
1439 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1440 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1441 | you have headers in a nonstandard directory <include dir> | |
1442 | CPP C preprocessor | |
1443 | ||
1444 | Use these variables to override the choices made by `configure' or to help | |
1445 | it to find libraries and programs with nonstandard names/locations. | |
1446 | ||
1447 | _ACEOF | |
1448 | ac_status=$? | |
1449 | fi | |
1450 | ||
1451 | if test "$ac_init_help" = "recursive"; then | |
1452 | # If there are subdirs, report their specific --help. | |
1453 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1454 | test -d "$ac_dir" || | |
1455 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1456 | continue | |
1457 | ac_builddir=. | |
1458 | ||
1459 | case "$ac_dir" in | |
1460 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1461 | *) | |
1462 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1463 | # A ".." for each directory in $ac_dir_suffix. | |
1464 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1465 | case $ac_top_builddir_sub in | |
1466 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1467 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1468 | esac ;; | |
1469 | esac | |
1470 | ac_abs_top_builddir=$ac_pwd | |
1471 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1472 | # for backward compatibility: | |
1473 | ac_top_builddir=$ac_top_build_prefix | |
1474 | ||
1475 | case $srcdir in | |
1476 | .) # We are building in place. | |
1477 | ac_srcdir=. | |
1478 | ac_top_srcdir=$ac_top_builddir_sub | |
1479 | ac_abs_top_srcdir=$ac_pwd ;; | |
1480 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1481 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1482 | ac_top_srcdir=$srcdir | |
1483 | ac_abs_top_srcdir=$srcdir ;; | |
1484 | *) # Relative name. | |
1485 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1486 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1487 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1488 | esac | |
1489 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1490 | ||
1491 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1492 | # Check for guested configure. | |
1493 | if test -f "$ac_srcdir/configure.gnu"; then | |
1494 | echo && | |
1495 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1496 | elif test -f "$ac_srcdir/configure"; then | |
1497 | echo && | |
1498 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1499 | else | |
1500 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1501 | fi || ac_status=$? | |
1502 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1503 | done | |
1504 | fi | |
1505 | ||
1506 | test -n "$ac_init_help" && exit $ac_status | |
1507 | if $ac_init_version; then | |
1508 | cat <<\_ACEOF | |
1509 | configure | |
1510 | generated by GNU Autoconf 2.63 | |
1511 | ||
1512 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
1513 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
1514 | This configure script is free software; the Free Software Foundation | |
1515 | gives unlimited permission to copy, distribute and modify it. | |
1516 | _ACEOF | |
1517 | exit | |
1518 | fi | |
1519 | cat >config.log <<_ACEOF | |
1520 | This file contains any messages produced by compilers while | |
1521 | running configure, to aid debugging if configure makes a mistake. | |
1522 | ||
1523 | It was created by $as_me, which was | |
1524 | generated by GNU Autoconf 2.63. Invocation command line was | |
1525 | ||
1526 | $ $0 $@ | |
1527 | ||
1528 | _ACEOF | |
1529 | exec 5>>config.log | |
1530 | { | |
1531 | cat <<_ASUNAME | |
1532 | ## --------- ## | |
1533 | ## Platform. ## | |
1534 | ## --------- ## | |
1535 | ||
1536 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1537 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1538 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1539 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1540 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1541 | ||
1542 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1543 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1544 | ||
1545 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1546 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1547 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1548 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1549 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1550 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1551 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1552 | ||
1553 | _ASUNAME | |
1554 | ||
1555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1556 | for as_dir in $PATH | |
1557 | do | |
1558 | IFS=$as_save_IFS | |
1559 | test -z "$as_dir" && as_dir=. | |
1560 | $as_echo "PATH: $as_dir" | |
1561 | done | |
1562 | IFS=$as_save_IFS | |
1563 | ||
1564 | } >&5 | |
1565 | ||
1566 | cat >&5 <<_ACEOF | |
1567 | ||
1568 | ||
1569 | ## ----------- ## | |
1570 | ## Core tests. ## | |
1571 | ## ----------- ## | |
1572 | ||
1573 | _ACEOF | |
1574 | ||
1575 | ||
1576 | # Keep a trace of the command line. | |
1577 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1578 | # Strip out --silent because we don't want to record it for future runs. | |
1579 | # Also quote any args containing shell meta-characters. | |
1580 | # Make two passes to allow for proper duplicate-argument suppression. | |
1581 | ac_configure_args= | |
1582 | ac_configure_args0= | |
1583 | ac_configure_args1= | |
1584 | ac_must_keep_next=false | |
1585 | for ac_pass in 1 2 | |
1586 | do | |
1587 | for ac_arg | |
1588 | do | |
1589 | case $ac_arg in | |
1590 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1591 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1592 | | -silent | --silent | --silen | --sile | --sil) | |
1593 | continue ;; | |
1594 | *\'*) | |
1595 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1596 | esac | |
1597 | case $ac_pass in | |
1598 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1599 | 2) | |
1600 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1601 | if test $ac_must_keep_next = true; then | |
1602 | ac_must_keep_next=false # Got value, back to normal. | |
1603 | else | |
1604 | case $ac_arg in | |
1605 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1606 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1607 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1608 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1609 | case "$ac_configure_args0 " in | |
1610 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1611 | esac | |
1612 | ;; | |
1613 | -* ) ac_must_keep_next=true ;; | |
1614 | esac | |
1615 | fi | |
1616 | ac_configure_args="$ac_configure_args '$ac_arg'" | |
1617 | ;; | |
1618 | esac | |
1619 | done | |
1620 | done | |
1621 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1622 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1623 | ||
1624 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1625 | # config.log. We remove comments because anyway the quotes in there | |
1626 | # would cause problems or look ugly. | |
1627 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1628 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1629 | trap 'exit_status=$? | |
1630 | # Save into config.log some information that might help in debugging. | |
1631 | { | |
1632 | echo | |
1633 | ||
1634 | cat <<\_ASBOX | |
1635 | ## ---------------- ## | |
1636 | ## Cache variables. ## | |
1637 | ## ---------------- ## | |
1638 | _ASBOX | |
1639 | echo | |
1640 | # The following way of writing the cache mishandles newlines in values, | |
1641 | ( | |
1642 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1643 | eval ac_val=\$$ac_var | |
1644 | case $ac_val in #( | |
1645 | *${as_nl}*) | |
1646 | case $ac_var in #( | |
1647 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
1648 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1649 | esac | |
1650 | case $ac_var in #( | |
1651 | _ | IFS | as_nl) ;; #( | |
1652 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1653 | *) $as_unset $ac_var ;; | |
1654 | esac ;; | |
1655 | esac | |
1656 | done | |
1657 | (set) 2>&1 | | |
1658 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1659 | *${as_nl}ac_space=\ *) | |
1660 | sed -n \ | |
1661 | "s/'\''/'\''\\\\'\'''\''/g; | |
1662 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1663 | ;; #( | |
1664 | *) | |
1665 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1666 | ;; | |
1667 | esac | | |
1668 | sort | |
1669 | ) | |
1670 | echo | |
1671 | ||
1672 | cat <<\_ASBOX | |
1673 | ## ----------------- ## | |
1674 | ## Output variables. ## | |
1675 | ## ----------------- ## | |
1676 | _ASBOX | |
1677 | echo | |
1678 | for ac_var in $ac_subst_vars | |
1679 | do | |
1680 | eval ac_val=\$$ac_var | |
1681 | case $ac_val in | |
1682 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1683 | esac | |
1684 | $as_echo "$ac_var='\''$ac_val'\''" | |
1685 | done | sort | |
1686 | echo | |
1687 | ||
1688 | if test -n "$ac_subst_files"; then | |
1689 | cat <<\_ASBOX | |
1690 | ## ------------------- ## | |
1691 | ## File substitutions. ## | |
1692 | ## ------------------- ## | |
1693 | _ASBOX | |
1694 | echo | |
1695 | for ac_var in $ac_subst_files | |
1696 | do | |
1697 | eval ac_val=\$$ac_var | |
1698 | case $ac_val in | |
1699 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1700 | esac | |
1701 | $as_echo "$ac_var='\''$ac_val'\''" | |
1702 | done | sort | |
1703 | echo | |
1704 | fi | |
1705 | ||
1706 | if test -s confdefs.h; then | |
1707 | cat <<\_ASBOX | |
1708 | ## ----------- ## | |
1709 | ## confdefs.h. ## | |
1710 | ## ----------- ## | |
1711 | _ASBOX | |
1712 | echo | |
1713 | cat confdefs.h | |
1714 | echo | |
1715 | fi | |
1716 | test "$ac_signal" != 0 && | |
1717 | $as_echo "$as_me: caught signal $ac_signal" | |
1718 | $as_echo "$as_me: exit $exit_status" | |
1719 | } >&5 | |
1720 | rm -f core *.core core.conftest.* && | |
1721 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1722 | exit $exit_status | |
1723 | ' 0 | |
1724 | for ac_signal in 1 2 13 15; do | |
1725 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1726 | done | |
1727 | ac_signal=0 | |
1728 | ||
1729 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1730 | rm -f -r conftest* confdefs.h | |
1731 | ||
1732 | # Predefined preprocessor variables. | |
1733 | ||
1734 | cat >>confdefs.h <<_ACEOF | |
1735 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1736 | _ACEOF | |
1737 | ||
1738 | ||
1739 | cat >>confdefs.h <<_ACEOF | |
1740 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1741 | _ACEOF | |
1742 | ||
1743 | ||
1744 | cat >>confdefs.h <<_ACEOF | |
1745 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1746 | _ACEOF | |
1747 | ||
1748 | ||
1749 | cat >>confdefs.h <<_ACEOF | |
1750 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1751 | _ACEOF | |
1752 | ||
1753 | ||
1754 | cat >>confdefs.h <<_ACEOF | |
1755 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1756 | _ACEOF | |
1757 | ||
1758 | ||
1759 | # Let the site file select an alternate cache file if it wants to. | |
1760 | # Prefer an explicitly selected file to automatically selected ones. | |
1761 | ac_site_file1=NONE | |
1762 | ac_site_file2=NONE | |
1763 | if test -n "$CONFIG_SITE"; then | |
1764 | ac_site_file1=$CONFIG_SITE | |
1765 | elif test "x$prefix" != xNONE; then | |
1766 | ac_site_file1=$prefix/share/config.site | |
1767 | ac_site_file2=$prefix/etc/config.site | |
1768 | else | |
1769 | ac_site_file1=$ac_default_prefix/share/config.site | |
1770 | ac_site_file2=$ac_default_prefix/etc/config.site | |
1771 | fi | |
1772 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
1773 | do | |
1774 | test "x$ac_site_file" = xNONE && continue | |
1775 | if test -r "$ac_site_file"; then | |
1776 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1777 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1778 | sed 's/^/| /' "$ac_site_file" >&5 | |
1779 | . "$ac_site_file" | |
1780 | fi | |
1781 | done | |
1782 | ||
1783 | if test -r "$cache_file"; then | |
1784 | # Some versions of bash will fail to source /dev/null (special | |
1785 | # files actually), so we avoid doing that. | |
1786 | if test -f "$cache_file"; then | |
1787 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1788 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1789 | case $cache_file in | |
1790 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1791 | *) . "./$cache_file";; | |
1792 | esac | |
1793 | fi | |
1794 | else | |
1795 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1796 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1797 | >$cache_file | |
1798 | fi | |
1799 | ||
1800 | # Check that the precious variables saved in the cache have kept the same | |
1801 | # value. | |
1802 | ac_cache_corrupted=false | |
1803 | for ac_var in $ac_precious_vars; do | |
1804 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1805 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1806 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
1807 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1808 | case $ac_old_set,$ac_new_set in | |
1809 | set,) | |
1810 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1811 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1812 | ac_cache_corrupted=: ;; | |
1813 | ,set) | |
1814 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1815 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1816 | ac_cache_corrupted=: ;; | |
1817 | ,);; | |
1818 | *) | |
1819 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1820 | # differences in whitespace do not lead to failure. | |
1821 | ac_old_val_w=`echo x $ac_old_val` | |
1822 | ac_new_val_w=`echo x $ac_new_val` | |
1823 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1824 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1825 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1826 | ac_cache_corrupted=: | |
1827 | else | |
1828 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1829 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1830 | eval $ac_var=\$ac_old_val | |
1831 | fi | |
1832 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1833 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1834 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1835 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1836 | fi;; | |
1837 | esac | |
1838 | # Pass precious variables to config.status. | |
1839 | if test "$ac_new_set" = set; then | |
1840 | case $ac_new_val in | |
1841 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1842 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1843 | esac | |
1844 | case " $ac_configure_args " in | |
1845 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1846 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1847 | esac | |
1848 | fi | |
1849 | done | |
1850 | if $ac_cache_corrupted; then | |
1851 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
1852 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1853 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1854 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1855 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1856 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1857 | { (exit 1); exit 1; }; } | |
1858 | fi | |
1859 | ||
1860 | ||
1861 | ||
1862 | ||
1863 | ||
1864 | ||
1865 | ||
1866 | ||
1867 | ||
1868 | ||
1869 | ||
1870 | ||
1871 | ||
1872 | ||
1873 | ||
1874 | ||
1875 | ||
1876 | ac_ext=c | |
1877 | ac_cpp='$CPP $CPPFLAGS' | |
1878 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1879 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1880 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1881 | ||
1882 | ||
1883 | ac_config_headers="$ac_config_headers config.h:config.in" | |
1884 | ||
1885 | ||
1886 | # This file contains common code used by all simulators. | |
1887 | # | |
1888 | # SIM_AC_COMMON invokes AC macros used by all simulators and by the common | |
1889 | # directory. It is intended to be invoked before any target specific stuff. | |
1890 | # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile. | |
1891 | # It is intended to be invoked last. | |
1892 | # | |
1893 | # The simulator's configure.in should look like: | |
1894 | # | |
1895 | # dnl Process this file with autoconf to produce a configure script. | |
1896 | # sinclude(../common/aclocal.m4) | |
1897 | # AC_PREREQ(2.5)dnl | |
1898 | # AC_INIT(Makefile.in) | |
1899 | # | |
1900 | # SIM_AC_COMMON | |
1901 | # | |
1902 | # ... target specific stuff ... | |
1903 | # | |
1904 | # SIM_AC_OUTPUT | |
1905 | ||
1906 | ||
1907 | ||
1908 | ||
1909 | ||
1910 | ||
1911 | ||
1912 | ||
1913 | ||
1914 | ||
1915 | ||
1916 | ||
1917 | ||
1918 | ||
1919 | ||
1920 | ||
1921 | ||
1922 | ||
1923 | ||
1924 | ||
1925 | ||
1926 | ||
1927 | ||
1928 | ||
1929 | ||
1930 | ||
1931 | ||
1932 | ||
1933 | ||
1934 | ||
1935 | ||
1936 | ||
1937 | ||
1938 | ||
1939 | ||
1940 | ||
1941 | ||
1942 | ||
1943 | ||
1944 | ||
1945 | ||
1946 | ||
1947 | ||
1948 | ||
1949 | ||
1950 | ||
1951 | ||
1952 | ||
1953 | sim_inline="-DDEFAULT_INLINE=0" | |
1954 | ||
1955 | ||
1956 | ||
1957 | ||
1958 | ||
1959 | ||
1960 | ||
1961 | ||
1962 | ||
1963 | ||
1964 | ||
1965 | ||
1966 | ||
1967 | ||
1968 | ||
1969 | ||
1970 | ||
1971 | ||
1972 | ||
1973 | ||
1974 | ||
1975 | ||
1976 | ||
1977 | ||
1978 | ||
1979 | ||
1980 | ||
1981 | ||
1982 | ||
1983 | ||
1984 | ||
1985 | ||
1986 | ||
1987 | ||
1988 | ||
1989 | ||
1990 | # intl sister-directory configuration rules. | |
1991 | # | |
1992 | ||
1993 | # The idea behind this macro is that there's no need to repeat all the | |
1994 | # autoconf probes done by the intl directory - it's already done them | |
1995 | # for us. In fact, there's no need even to look at the cache for the | |
1996 | # answers. All we need to do is nab a few pieces of information. | |
1997 | # The intl directory is set up to make this easy, by generating a | |
1998 | # small file which can be sourced as a shell script; then we produce | |
1999 | # the necessary substitutions and definitions for this directory. | |
2000 | ||
2001 | ||
2002 | ||
2003 | # Autoconf M4 include file defining utility macros for complex Canadian | |
2004 | # cross builds. | |
2005 | ||
2006 | ||
2007 | ||
2008 | ||
2009 | ||
2010 | ||
2011 | ||
2012 | ||
2013 | ||
2014 | #### | |
2015 | # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM | |
2016 | # or AC_INIT. | |
2017 | # These demand that AC_CANONICAL_SYSTEM be called beforehand. | |
2018 | ||
2019 | #### | |
2020 | # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path]) | |
2021 | # Like plain AC_CHECK_TOOLS, but require prefix if build!=host. | |
2022 | ||
2023 | ||
2024 | #### | |
2025 | # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path]) | |
2026 | # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target. | |
2027 | ||
2028 | ||
2029 | ||
2030 | # Backported from Autoconf 2.5x; can go away when and if | |
2031 | # we switch. Put the OS path separator in $PATH_SEPARATOR. | |
2032 | ||
2033 | ||
2034 | ||
2035 | ||
2036 | # ACX_HAVE_GCC_FOR_TARGET | |
2037 | # Check if the variable GCC_FOR_TARGET really points to a GCC binary. | |
2038 | ||
2039 | ||
2040 | # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG) | |
2041 | # Searching for installed target binutils. We need to take extra care, | |
2042 | # else we may find the wrong assembler, linker, etc., and lose. | |
2043 | # | |
2044 | # First try --with-build-time-tools, if specified. | |
2045 | # | |
2046 | # For build != host, we ask the installed GCC for the name of the tool it | |
2047 | # uses, and accept it if it is an absolute path. This is because the | |
2048 | # only good choice for a compiler is the same GCC version that is being | |
2049 | # installed (or we couldn't make target libraries), and we assume that | |
2050 | # on the host system we'll have not only the same GCC version, but also | |
2051 | # the same binutils version. | |
2052 | # | |
2053 | # For build == host, search the same directories that the installed | |
2054 | # compiler will search. We used to do this for the assembler, linker, | |
2055 | # and nm only; for simplicity of configuration, however, we extend this | |
2056 | # criterion to tools (such as ar and ranlib) that are never invoked by | |
2057 | # the compiler, to avoid mismatches. | |
2058 | # | |
2059 | # Also note we have to check MD_EXEC_PREFIX before checking the user's path | |
2060 | # if build == target. This makes the most sense only when bootstrapping, | |
2061 | # but we also do so when build != host. In this case, we hope that the | |
2062 | # build and host systems will have similar contents of MD_EXEC_PREFIX. | |
2063 | # | |
2064 | # If we do not find a suitable binary, then try the user's path. | |
2065 | ||
2066 | ||
2067 | ### | |
2068 | # AC_PROG_CPP_WERROR | |
2069 | # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which | |
2070 | # triggers warnings from the preprocessor. Will be in autoconf 2.58. | |
2071 | # For now, using this also overrides header checks to use only the | |
2072 | # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a | |
2073 | # bit harder from here). | |
2074 | # Eventually autoconf will default to checking headers with the compiler | |
2075 | # instead, and we'll have to do this differently. | |
2076 | ||
2077 | # AC_PROG_CPP_WERROR | |
2078 | ||
2079 | # Test for GNAT. | |
2080 | # We require the gnatbind program, and a compiler driver that | |
2081 | # understands Ada. We use the user's CC setting, already found, | |
2082 | # and possibly add $1 to the command-line parameters. | |
2083 | # | |
2084 | # Sets the shell variable have_gnat to yes or no as appropriate, and | |
2085 | # substitutes GNATBIND and GNATMAKE. | |
2086 | ||
2087 | ||
2088 | ||
2089 | ||
2090 | ||
2091 | ||
2092 | ||
2093 | ||
2094 | ||
2095 | ||
2096 | ||
2097 | ||
2098 | ||
2099 | ||
2100 | ||
2101 | ||
2102 | ||
2103 | ||
2104 | ||
2105 | ||
2106 | ||
2107 | ||
2108 | ||
2109 | ||
2110 | ||
2111 | # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around | |
2112 | # it by inlining the macro's contents. | |
2113 | # This file contains common code used by all simulators. | |
2114 | # | |
2115 | # common.m4 invokes AC macros used by all simulators and by the common | |
2116 | # directory. It is intended to be included before any target specific | |
2117 | # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate | |
2118 | # the Makefile. It is intended to be invoked last. | |
2119 | # | |
2120 | # The simulator's configure.in should look like: | |
2121 | # | |
2122 | # dnl Process this file with autoconf to produce a configure script. | |
2123 | # AC_PREREQ(2.5)dnl | |
2124 | # AC_INIT(Makefile.in) | |
2125 | # AC_CONFIG_HEADER(config.h:config.in) | |
2126 | # | |
2127 | # sinclude(../common/aclocal.m4) | |
2128 | # sinclude(../common/common.m4) | |
2129 | # | |
2130 | # ... target specific stuff ... | |
2131 | ||
2132 | ac_aux_dir= | |
2133 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2134 | if test -f "$ac_dir/install-sh"; then | |
2135 | ac_aux_dir=$ac_dir | |
2136 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2137 | break | |
2138 | elif test -f "$ac_dir/install.sh"; then | |
2139 | ac_aux_dir=$ac_dir | |
2140 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2141 | break | |
2142 | elif test -f "$ac_dir/shtool"; then | |
2143 | ac_aux_dir=$ac_dir | |
2144 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2145 | break | |
2146 | fi | |
2147 | done | |
2148 | if test -z "$ac_aux_dir"; then | |
2149 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | |
2150 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
2151 | { (exit 1); exit 1; }; } | |
2152 | fi | |
2153 | ||
2154 | # These three variables are undocumented and unsupported, | |
2155 | # and are intended to be withdrawn in a future Autoconf release. | |
2156 | # They can cause serious problems if a builder's source tree is in a directory | |
2157 | # whose full name contains unusual characters. | |
2158 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2159 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2160 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2161 | ||
2162 | ||
2163 | # Make sure we can run config.sub. | |
2164 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2165 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
2166 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
2167 | { (exit 1); exit 1; }; } | |
2168 | ||
2169 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 | |
2170 | $as_echo_n "checking build system type... " >&6; } | |
2171 | if test "${ac_cv_build+set}" = set; then | |
2172 | $as_echo_n "(cached) " >&6 | |
2173 | else | |
2174 | ac_build_alias=$build_alias | |
2175 | test "x$ac_build_alias" = x && | |
2176 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2177 | test "x$ac_build_alias" = x && | |
2178 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
2179 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2180 | { (exit 1); exit 1; }; } | |
2181 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2182 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
2183 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
2184 | { (exit 1); exit 1; }; } | |
2185 | ||
2186 | fi | |
2187 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
2188 | $as_echo "$ac_cv_build" >&6; } | |
2189 | case $ac_cv_build in | |
2190 | *-*-*) ;; | |
2191 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
2192 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
2193 | { (exit 1); exit 1; }; };; | |
2194 | esac | |
2195 | build=$ac_cv_build | |
2196 | ac_save_IFS=$IFS; IFS='-' | |
2197 | set x $ac_cv_build | |
2198 | shift | |
2199 | build_cpu=$1 | |
2200 | build_vendor=$2 | |
2201 | shift; shift | |
2202 | # Remember, the first character of IFS is used to create $*, | |
2203 | # except with old shells: | |
2204 | build_os=$* | |
2205 | IFS=$ac_save_IFS | |
2206 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2207 | ||
2208 | ||
2209 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 | |
2210 | $as_echo_n "checking host system type... " >&6; } | |
2211 | if test "${ac_cv_host+set}" = set; then | |
2212 | $as_echo_n "(cached) " >&6 | |
2213 | else | |
2214 | if test "x$host_alias" = x; then | |
2215 | ac_cv_host=$ac_cv_build | |
2216 | else | |
2217 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2218 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
2219 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
2220 | { (exit 1); exit 1; }; } | |
2221 | fi | |
2222 | ||
2223 | fi | |
2224 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
2225 | $as_echo "$ac_cv_host" >&6; } | |
2226 | case $ac_cv_host in | |
2227 | *-*-*) ;; | |
2228 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
2229 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
2230 | { (exit 1); exit 1; }; };; | |
2231 | esac | |
2232 | host=$ac_cv_host | |
2233 | ac_save_IFS=$IFS; IFS='-' | |
2234 | set x $ac_cv_host | |
2235 | shift | |
2236 | host_cpu=$1 | |
2237 | host_vendor=$2 | |
2238 | shift; shift | |
2239 | # Remember, the first character of IFS is used to create $*, | |
2240 | # except with old shells: | |
2241 | host_os=$* | |
2242 | IFS=$ac_save_IFS | |
2243 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2244 | ||
2245 | ||
2246 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 | |
2247 | $as_echo_n "checking target system type... " >&6; } | |
2248 | if test "${ac_cv_target+set}" = set; then | |
2249 | $as_echo_n "(cached) " >&6 | |
2250 | else | |
2251 | if test "x$target_alias" = x; then | |
2252 | ac_cv_target=$ac_cv_host | |
2253 | else | |
2254 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2255 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 | |
2256 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
2257 | { (exit 1); exit 1; }; } | |
2258 | fi | |
2259 | ||
2260 | fi | |
2261 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
2262 | $as_echo "$ac_cv_target" >&6; } | |
2263 | case $ac_cv_target in | |
2264 | *-*-*) ;; | |
2265 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 | |
2266 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
2267 | { (exit 1); exit 1; }; };; | |
2268 | esac | |
2269 | target=$ac_cv_target | |
2270 | ac_save_IFS=$IFS; IFS='-' | |
2271 | set x $ac_cv_target | |
2272 | shift | |
2273 | target_cpu=$1 | |
2274 | target_vendor=$2 | |
2275 | shift; shift | |
2276 | # Remember, the first character of IFS is used to create $*, | |
2277 | # except with old shells: | |
2278 | target_os=$* | |
2279 | IFS=$ac_save_IFS | |
2280 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2281 | ||
2282 | ||
2283 | # The aliases save the names the user supplied, while $host etc. | |
2284 | # will get canonicalized. | |
2285 | test -n "$target_alias" && | |
2286 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2287 | NONENONEs,x,x, && | |
2288 | program_prefix=${target_alias}- | |
2289 | test "$program_prefix" != NONE && | |
2290 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2291 | # Use a double $ so make ignores it. | |
2292 | test "$program_suffix" != NONE && | |
2293 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2294 | # Double any \ or $. | |
2295 | # By default was `s,x,x', remove it if useless. | |
2296 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2297 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2298 | ||
2299 | ac_ext=c | |
2300 | ac_cpp='$CPP $CPPFLAGS' | |
2301 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2302 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2303 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2304 | if test -n "$ac_tool_prefix"; then | |
2305 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2306 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2307 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2308 | $as_echo_n "checking for $ac_word... " >&6; } | |
2309 | if test "${ac_cv_prog_CC+set}" = set; then | |
2310 | $as_echo_n "(cached) " >&6 | |
2311 | else | |
2312 | if test -n "$CC"; then | |
2313 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2314 | else | |
2315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2316 | for as_dir in $PATH | |
2317 | do | |
2318 | IFS=$as_save_IFS | |
2319 | test -z "$as_dir" && as_dir=. | |
2320 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2321 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2322 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2323 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2324 | break 2 | |
2325 | fi | |
2326 | done | |
2327 | done | |
2328 | IFS=$as_save_IFS | |
2329 | ||
2330 | fi | |
2331 | fi | |
2332 | CC=$ac_cv_prog_CC | |
2333 | if test -n "$CC"; then | |
2334 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2335 | $as_echo "$CC" >&6; } | |
2336 | else | |
2337 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2338 | $as_echo "no" >&6; } | |
2339 | fi | |
2340 | ||
2341 | ||
2342 | fi | |
2343 | if test -z "$ac_cv_prog_CC"; then | |
2344 | ac_ct_CC=$CC | |
2345 | # Extract the first word of "gcc", so it can be a program name with args. | |
2346 | set dummy gcc; ac_word=$2 | |
2347 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2348 | $as_echo_n "checking for $ac_word... " >&6; } | |
2349 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2350 | $as_echo_n "(cached) " >&6 | |
2351 | else | |
2352 | if test -n "$ac_ct_CC"; then | |
2353 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2354 | else | |
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 | ac_cv_prog_ac_ct_CC="gcc" | |
2363 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2364 | break 2 | |
2365 | fi | |
2366 | done | |
2367 | done | |
2368 | IFS=$as_save_IFS | |
2369 | ||
2370 | fi | |
2371 | fi | |
2372 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2373 | if test -n "$ac_ct_CC"; then | |
2374 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2375 | $as_echo "$ac_ct_CC" >&6; } | |
2376 | else | |
2377 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2378 | $as_echo "no" >&6; } | |
2379 | fi | |
2380 | ||
2381 | if test "x$ac_ct_CC" = x; then | |
2382 | CC="" | |
2383 | else | |
2384 | case $cross_compiling:$ac_tool_warned in | |
2385 | yes:) | |
2386 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2387 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2388 | ac_tool_warned=yes ;; | |
2389 | esac | |
2390 | CC=$ac_ct_CC | |
2391 | fi | |
2392 | else | |
2393 | CC="$ac_cv_prog_CC" | |
2394 | fi | |
2395 | ||
2396 | if test -z "$CC"; then | |
2397 | if test -n "$ac_tool_prefix"; then | |
2398 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2399 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2400 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2401 | $as_echo_n "checking for $ac_word... " >&6; } | |
2402 | if test "${ac_cv_prog_CC+set}" = set; then | |
2403 | $as_echo_n "(cached) " >&6 | |
2404 | else | |
2405 | if test -n "$CC"; then | |
2406 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2407 | else | |
2408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2409 | for as_dir in $PATH | |
2410 | do | |
2411 | IFS=$as_save_IFS | |
2412 | test -z "$as_dir" && as_dir=. | |
2413 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2414 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2415 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2416 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2417 | break 2 | |
2418 | fi | |
2419 | done | |
2420 | done | |
2421 | IFS=$as_save_IFS | |
2422 | ||
2423 | fi | |
2424 | fi | |
2425 | CC=$ac_cv_prog_CC | |
2426 | if test -n "$CC"; then | |
2427 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2428 | $as_echo "$CC" >&6; } | |
2429 | else | |
2430 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2431 | $as_echo "no" >&6; } | |
2432 | fi | |
2433 | ||
2434 | ||
2435 | fi | |
2436 | fi | |
2437 | if test -z "$CC"; then | |
2438 | # Extract the first word of "cc", so it can be a program name with args. | |
2439 | set dummy cc; ac_word=$2 | |
2440 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2441 | $as_echo_n "checking for $ac_word... " >&6; } | |
2442 | if test "${ac_cv_prog_CC+set}" = set; then | |
2443 | $as_echo_n "(cached) " >&6 | |
2444 | else | |
2445 | if test -n "$CC"; then | |
2446 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2447 | else | |
2448 | ac_prog_rejected=no | |
2449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2450 | for as_dir in $PATH | |
2451 | do | |
2452 | IFS=$as_save_IFS | |
2453 | test -z "$as_dir" && as_dir=. | |
2454 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2455 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2456 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2457 | ac_prog_rejected=yes | |
2458 | continue | |
2459 | fi | |
2460 | ac_cv_prog_CC="cc" | |
2461 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2462 | break 2 | |
2463 | fi | |
2464 | done | |
2465 | done | |
2466 | IFS=$as_save_IFS | |
2467 | ||
2468 | if test $ac_prog_rejected = yes; then | |
2469 | # We found a bogon in the path, so make sure we never use it. | |
2470 | set dummy $ac_cv_prog_CC | |
2471 | shift | |
2472 | if test $# != 0; then | |
2473 | # We chose a different compiler from the bogus one. | |
2474 | # However, it has the same basename, so the bogon will be chosen | |
2475 | # first if we set CC to just the basename; use the full file name. | |
2476 | shift | |
2477 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2478 | fi | |
2479 | fi | |
2480 | fi | |
2481 | fi | |
2482 | CC=$ac_cv_prog_CC | |
2483 | if test -n "$CC"; then | |
2484 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2485 | $as_echo "$CC" >&6; } | |
2486 | else | |
2487 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2488 | $as_echo "no" >&6; } | |
2489 | fi | |
2490 | ||
2491 | ||
2492 | fi | |
2493 | if test -z "$CC"; then | |
2494 | if test -n "$ac_tool_prefix"; then | |
2495 | for ac_prog in cl.exe | |
2496 | do | |
2497 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2498 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2499 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2500 | $as_echo_n "checking for $ac_word... " >&6; } | |
2501 | if test "${ac_cv_prog_CC+set}" = set; then | |
2502 | $as_echo_n "(cached) " >&6 | |
2503 | else | |
2504 | if test -n "$CC"; then | |
2505 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2506 | else | |
2507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2508 | for as_dir in $PATH | |
2509 | do | |
2510 | IFS=$as_save_IFS | |
2511 | test -z "$as_dir" && as_dir=. | |
2512 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2513 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2514 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2515 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2516 | break 2 | |
2517 | fi | |
2518 | done | |
2519 | done | |
2520 | IFS=$as_save_IFS | |
2521 | ||
2522 | fi | |
2523 | fi | |
2524 | CC=$ac_cv_prog_CC | |
2525 | if test -n "$CC"; then | |
2526 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2527 | $as_echo "$CC" >&6; } | |
2528 | else | |
2529 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2530 | $as_echo "no" >&6; } | |
2531 | fi | |
2532 | ||
2533 | ||
2534 | test -n "$CC" && break | |
2535 | done | |
2536 | fi | |
2537 | if test -z "$CC"; then | |
2538 | ac_ct_CC=$CC | |
2539 | for ac_prog in cl.exe | |
2540 | do | |
2541 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2542 | set dummy $ac_prog; ac_word=$2 | |
2543 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2544 | $as_echo_n "checking for $ac_word... " >&6; } | |
2545 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2546 | $as_echo_n "(cached) " >&6 | |
2547 | else | |
2548 | if test -n "$ac_ct_CC"; then | |
2549 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2550 | else | |
2551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2552 | for as_dir in $PATH | |
2553 | do | |
2554 | IFS=$as_save_IFS | |
2555 | test -z "$as_dir" && as_dir=. | |
2556 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2557 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2558 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2559 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2560 | break 2 | |
2561 | fi | |
2562 | done | |
2563 | done | |
2564 | IFS=$as_save_IFS | |
2565 | ||
2566 | fi | |
2567 | fi | |
2568 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2569 | if test -n "$ac_ct_CC"; then | |
2570 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2571 | $as_echo "$ac_ct_CC" >&6; } | |
2572 | else | |
2573 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2574 | $as_echo "no" >&6; } | |
2575 | fi | |
2576 | ||
2577 | ||
2578 | test -n "$ac_ct_CC" && break | |
2579 | done | |
2580 | ||
2581 | if test "x$ac_ct_CC" = x; then | |
2582 | CC="" | |
2583 | else | |
2584 | case $cross_compiling:$ac_tool_warned in | |
2585 | yes:) | |
2586 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2587 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2588 | ac_tool_warned=yes ;; | |
2589 | esac | |
2590 | CC=$ac_ct_CC | |
2591 | fi | |
2592 | fi | |
2593 | ||
2594 | fi | |
2595 | ||
2596 | ||
2597 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2598 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2599 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2600 | See \`config.log' for more details." >&5 | |
2601 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2602 | See \`config.log' for more details." >&2;} | |
2603 | { (exit 1); exit 1; }; }; } | |
2604 | ||
2605 | # Provide some information about the compiler. | |
2606 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
2607 | set X $ac_compile | |
2608 | ac_compiler=$2 | |
2609 | { (ac_try="$ac_compiler --version >&5" | |
2610 | case "(($ac_try" in | |
2611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2612 | *) ac_try_echo=$ac_try;; | |
2613 | esac | |
2614 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2615 | $as_echo "$ac_try_echo") >&5 | |
2616 | (eval "$ac_compiler --version >&5") 2>&5 | |
2617 | ac_status=$? | |
2618 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2619 | (exit $ac_status); } | |
2620 | { (ac_try="$ac_compiler -v >&5" | |
2621 | case "(($ac_try" in | |
2622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2623 | *) ac_try_echo=$ac_try;; | |
2624 | esac | |
2625 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2626 | $as_echo "$ac_try_echo") >&5 | |
2627 | (eval "$ac_compiler -v >&5") 2>&5 | |
2628 | ac_status=$? | |
2629 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2630 | (exit $ac_status); } | |
2631 | { (ac_try="$ac_compiler -V >&5" | |
2632 | case "(($ac_try" in | |
2633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2634 | *) ac_try_echo=$ac_try;; | |
2635 | esac | |
2636 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2637 | $as_echo "$ac_try_echo") >&5 | |
2638 | (eval "$ac_compiler -V >&5") 2>&5 | |
2639 | ac_status=$? | |
2640 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2641 | (exit $ac_status); } | |
2642 | ||
2643 | cat >conftest.$ac_ext <<_ACEOF | |
2644 | /* confdefs.h. */ | |
2645 | _ACEOF | |
2646 | cat confdefs.h >>conftest.$ac_ext | |
2647 | cat >>conftest.$ac_ext <<_ACEOF | |
2648 | /* end confdefs.h. */ | |
2649 | ||
2650 | int | |
2651 | main () | |
2652 | { | |
2653 | ||
2654 | ; | |
2655 | return 0; | |
2656 | } | |
2657 | _ACEOF | |
2658 | ac_clean_files_save=$ac_clean_files | |
2659 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
2660 | # Try to create an executable without -o first, disregard a.out. | |
2661 | # It will help us diagnose broken compilers, and finding out an intuition | |
2662 | # of exeext. | |
2663 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2664 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2665 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2666 | ||
2667 | # The possible output files: | |
2668 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2669 | ||
2670 | ac_rmfiles= | |
2671 | for ac_file in $ac_files | |
2672 | do | |
2673 | case $ac_file in | |
2674 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2675 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2676 | esac | |
2677 | done | |
2678 | rm -f $ac_rmfiles | |
2679 | ||
2680 | if { (ac_try="$ac_link_default" | |
2681 | case "(($ac_try" in | |
2682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2683 | *) ac_try_echo=$ac_try;; | |
2684 | esac | |
2685 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2686 | $as_echo "$ac_try_echo") >&5 | |
2687 | (eval "$ac_link_default") 2>&5 | |
2688 | ac_status=$? | |
2689 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2690 | (exit $ac_status); }; then | |
2691 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2692 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2693 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2694 | # so that the user can short-circuit this test for compilers unknown to | |
2695 | # Autoconf. | |
2696 | for ac_file in $ac_files '' | |
2697 | do | |
2698 | test -f "$ac_file" || continue | |
2699 | case $ac_file in | |
2700 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2701 | ;; | |
2702 | [ab].out ) | |
2703 | # We found the default executable, but exeext='' is most | |
2704 | # certainly right. | |
2705 | break;; | |
2706 | *.* ) | |
2707 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2708 | then :; else | |
2709 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2710 | fi | |
2711 | # We set ac_cv_exeext here because the later test for it is not | |
2712 | # safe: cross compilers may not add the suffix if given an `-o' | |
2713 | # argument, so we may need to know it at that point already. | |
2714 | # Even if this section looks crufty: it has the advantage of | |
2715 | # actually working. | |
2716 | break;; | |
2717 | * ) | |
2718 | break;; | |
2719 | esac | |
2720 | done | |
2721 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2722 | ||
2723 | else | |
2724 | ac_file='' | |
2725 | fi | |
2726 | ||
2727 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2728 | $as_echo "$ac_file" >&6; } | |
2729 | if test -z "$ac_file"; then | |
2730 | $as_echo "$as_me: failed program was:" >&5 | |
2731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2732 | ||
2733 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2734 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2735 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2736 | See \`config.log' for more details." >&5 | |
2737 | $as_echo "$as_me: error: C compiler cannot create executables | |
2738 | See \`config.log' for more details." >&2;} | |
2739 | { (exit 77); exit 77; }; }; } | |
2740 | fi | |
2741 | ||
2742 | ac_exeext=$ac_cv_exeext | |
2743 | ||
2744 | # Check that the compiler produces executables we can run. If not, either | |
2745 | # the compiler is broken, or we cross compile. | |
2746 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2747 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2748 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2749 | # If not cross compiling, check that we can run a simple program. | |
2750 | if test "$cross_compiling" != yes; then | |
2751 | if { ac_try='./$ac_file' | |
2752 | { (case "(($ac_try" in | |
2753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2754 | *) ac_try_echo=$ac_try;; | |
2755 | esac | |
2756 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2757 | $as_echo "$ac_try_echo") >&5 | |
2758 | (eval "$ac_try") 2>&5 | |
2759 | ac_status=$? | |
2760 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2761 | (exit $ac_status); }; }; then | |
2762 | cross_compiling=no | |
2763 | else | |
2764 | if test "$cross_compiling" = maybe; then | |
2765 | cross_compiling=yes | |
2766 | else | |
2767 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2768 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2769 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2770 | If you meant to cross compile, use \`--host'. | |
2771 | See \`config.log' for more details." >&5 | |
2772 | $as_echo "$as_me: error: cannot run C compiled programs. | |
2773 | If you meant to cross compile, use \`--host'. | |
2774 | See \`config.log' for more details." >&2;} | |
2775 | { (exit 1); exit 1; }; }; } | |
2776 | fi | |
2777 | fi | |
2778 | fi | |
2779 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
2780 | $as_echo "yes" >&6; } | |
2781 | ||
2782 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
2783 | ac_clean_files=$ac_clean_files_save | |
2784 | # Check that the compiler produces executables we can run. If not, either | |
2785 | # the compiler is broken, or we cross compile. | |
2786 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2787 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2788 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2789 | $as_echo "$cross_compiling" >&6; } | |
2790 | ||
2791 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2792 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2793 | if { (ac_try="$ac_link" | |
2794 | case "(($ac_try" in | |
2795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2796 | *) ac_try_echo=$ac_try;; | |
2797 | esac | |
2798 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2799 | $as_echo "$ac_try_echo") >&5 | |
2800 | (eval "$ac_link") 2>&5 | |
2801 | ac_status=$? | |
2802 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2803 | (exit $ac_status); }; then | |
2804 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2805 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2806 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2807 | # `rm'. | |
2808 | for ac_file in conftest.exe conftest conftest.*; do | |
2809 | test -f "$ac_file" || continue | |
2810 | case $ac_file in | |
2811 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2812 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2813 | break;; | |
2814 | * ) break;; | |
2815 | esac | |
2816 | done | |
2817 | else | |
2818 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2819 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2820 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2821 | See \`config.log' for more details." >&5 | |
2822 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2823 | See \`config.log' for more details." >&2;} | |
2824 | { (exit 1); exit 1; }; }; } | |
2825 | fi | |
2826 | ||
2827 | rm -f conftest$ac_cv_exeext | |
2828 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2829 | $as_echo "$ac_cv_exeext" >&6; } | |
2830 | ||
2831 | rm -f conftest.$ac_ext | |
2832 | EXEEXT=$ac_cv_exeext | |
2833 | ac_exeext=$EXEEXT | |
2834 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2835 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2836 | if test "${ac_cv_objext+set}" = set; then | |
2837 | $as_echo_n "(cached) " >&6 | |
2838 | else | |
2839 | cat >conftest.$ac_ext <<_ACEOF | |
2840 | /* confdefs.h. */ | |
2841 | _ACEOF | |
2842 | cat confdefs.h >>conftest.$ac_ext | |
2843 | cat >>conftest.$ac_ext <<_ACEOF | |
2844 | /* end confdefs.h. */ | |
2845 | ||
2846 | int | |
2847 | main () | |
2848 | { | |
2849 | ||
2850 | ; | |
2851 | return 0; | |
2852 | } | |
2853 | _ACEOF | |
2854 | rm -f conftest.o conftest.obj | |
2855 | if { (ac_try="$ac_compile" | |
2856 | case "(($ac_try" in | |
2857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2858 | *) ac_try_echo=$ac_try;; | |
2859 | esac | |
2860 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2861 | $as_echo "$ac_try_echo") >&5 | |
2862 | (eval "$ac_compile") 2>&5 | |
2863 | ac_status=$? | |
2864 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2865 | (exit $ac_status); }; then | |
2866 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2867 | test -f "$ac_file" || continue; | |
2868 | case $ac_file in | |
2869 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2870 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2871 | break;; | |
2872 | esac | |
2873 | done | |
2874 | else | |
2875 | $as_echo "$as_me: failed program was:" >&5 | |
2876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2877 | ||
2878 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2879 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2880 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2881 | See \`config.log' for more details." >&5 | |
2882 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2883 | See \`config.log' for more details." >&2;} | |
2884 | { (exit 1); exit 1; }; }; } | |
2885 | fi | |
2886 | ||
2887 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2888 | fi | |
2889 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2890 | $as_echo "$ac_cv_objext" >&6; } | |
2891 | OBJEXT=$ac_cv_objext | |
2892 | ac_objext=$OBJEXT | |
2893 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2894 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2895 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2896 | $as_echo_n "(cached) " >&6 | |
2897 | else | |
2898 | cat >conftest.$ac_ext <<_ACEOF | |
2899 | /* confdefs.h. */ | |
2900 | _ACEOF | |
2901 | cat confdefs.h >>conftest.$ac_ext | |
2902 | cat >>conftest.$ac_ext <<_ACEOF | |
2903 | /* end confdefs.h. */ | |
2904 | ||
2905 | int | |
2906 | main () | |
2907 | { | |
2908 | #ifndef __GNUC__ | |
2909 | choke me | |
2910 | #endif | |
2911 | ||
2912 | ; | |
2913 | return 0; | |
2914 | } | |
2915 | _ACEOF | |
2916 | rm -f conftest.$ac_objext | |
2917 | if { (ac_try="$ac_compile" | |
2918 | case "(($ac_try" in | |
2919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2920 | *) ac_try_echo=$ac_try;; | |
2921 | esac | |
2922 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2923 | $as_echo "$ac_try_echo") >&5 | |
2924 | (eval "$ac_compile") 2>conftest.er1 | |
2925 | ac_status=$? | |
2926 | grep -v '^ *+' conftest.er1 >conftest.err | |
2927 | rm -f conftest.er1 | |
2928 | cat conftest.err >&5 | |
2929 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2930 | (exit $ac_status); } && { | |
2931 | test -z "$ac_c_werror_flag" || | |
2932 | test ! -s conftest.err | |
2933 | } && test -s conftest.$ac_objext; then | |
2934 | ac_compiler_gnu=yes | |
2935 | else | |
2936 | $as_echo "$as_me: failed program was:" >&5 | |
2937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2938 | ||
2939 | ac_compiler_gnu=no | |
2940 | fi | |
2941 | ||
2942 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2943 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2944 | ||
2945 | fi | |
2946 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2947 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2948 | if test $ac_compiler_gnu = yes; then | |
2949 | GCC=yes | |
2950 | else | |
2951 | GCC= | |
2952 | fi | |
2953 | ac_test_CFLAGS=${CFLAGS+set} | |
2954 | ac_save_CFLAGS=$CFLAGS | |
2955 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2956 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2957 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2958 | $as_echo_n "(cached) " >&6 | |
2959 | else | |
2960 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2961 | ac_c_werror_flag=yes | |
2962 | ac_cv_prog_cc_g=no | |
2963 | CFLAGS="-g" | |
2964 | cat >conftest.$ac_ext <<_ACEOF | |
2965 | /* confdefs.h. */ | |
2966 | _ACEOF | |
2967 | cat confdefs.h >>conftest.$ac_ext | |
2968 | cat >>conftest.$ac_ext <<_ACEOF | |
2969 | /* end confdefs.h. */ | |
2970 | ||
2971 | int | |
2972 | main () | |
2973 | { | |
2974 | ||
2975 | ; | |
2976 | return 0; | |
2977 | } | |
2978 | _ACEOF | |
2979 | rm -f conftest.$ac_objext | |
2980 | if { (ac_try="$ac_compile" | |
2981 | case "(($ac_try" in | |
2982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2983 | *) ac_try_echo=$ac_try;; | |
2984 | esac | |
2985 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2986 | $as_echo "$ac_try_echo") >&5 | |
2987 | (eval "$ac_compile") 2>conftest.er1 | |
2988 | ac_status=$? | |
2989 | grep -v '^ *+' conftest.er1 >conftest.err | |
2990 | rm -f conftest.er1 | |
2991 | cat conftest.err >&5 | |
2992 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2993 | (exit $ac_status); } && { | |
2994 | test -z "$ac_c_werror_flag" || | |
2995 | test ! -s conftest.err | |
2996 | } && test -s conftest.$ac_objext; then | |
2997 | ac_cv_prog_cc_g=yes | |
2998 | else | |
2999 | $as_echo "$as_me: failed program was:" >&5 | |
3000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3001 | ||
3002 | CFLAGS="" | |
3003 | cat >conftest.$ac_ext <<_ACEOF | |
3004 | /* confdefs.h. */ | |
3005 | _ACEOF | |
3006 | cat confdefs.h >>conftest.$ac_ext | |
3007 | cat >>conftest.$ac_ext <<_ACEOF | |
3008 | /* end confdefs.h. */ | |
3009 | ||
3010 | int | |
3011 | main () | |
3012 | { | |
3013 | ||
3014 | ; | |
3015 | return 0; | |
3016 | } | |
3017 | _ACEOF | |
3018 | rm -f conftest.$ac_objext | |
3019 | if { (ac_try="$ac_compile" | |
3020 | case "(($ac_try" in | |
3021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3022 | *) ac_try_echo=$ac_try;; | |
3023 | esac | |
3024 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3025 | $as_echo "$ac_try_echo") >&5 | |
3026 | (eval "$ac_compile") 2>conftest.er1 | |
3027 | ac_status=$? | |
3028 | grep -v '^ *+' conftest.er1 >conftest.err | |
3029 | rm -f conftest.er1 | |
3030 | cat conftest.err >&5 | |
3031 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3032 | (exit $ac_status); } && { | |
3033 | test -z "$ac_c_werror_flag" || | |
3034 | test ! -s conftest.err | |
3035 | } && test -s conftest.$ac_objext; then | |
3036 | : | |
3037 | else | |
3038 | $as_echo "$as_me: failed program was:" >&5 | |
3039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3040 | ||
3041 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3042 | CFLAGS="-g" | |
3043 | cat >conftest.$ac_ext <<_ACEOF | |
3044 | /* confdefs.h. */ | |
3045 | _ACEOF | |
3046 | cat confdefs.h >>conftest.$ac_ext | |
3047 | cat >>conftest.$ac_ext <<_ACEOF | |
3048 | /* end confdefs.h. */ | |
3049 | ||
3050 | int | |
3051 | main () | |
3052 | { | |
3053 | ||
3054 | ; | |
3055 | return 0; | |
3056 | } | |
3057 | _ACEOF | |
3058 | rm -f conftest.$ac_objext | |
3059 | if { (ac_try="$ac_compile" | |
3060 | case "(($ac_try" in | |
3061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3062 | *) ac_try_echo=$ac_try;; | |
3063 | esac | |
3064 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3065 | $as_echo "$ac_try_echo") >&5 | |
3066 | (eval "$ac_compile") 2>conftest.er1 | |
3067 | ac_status=$? | |
3068 | grep -v '^ *+' conftest.er1 >conftest.err | |
3069 | rm -f conftest.er1 | |
3070 | cat conftest.err >&5 | |
3071 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3072 | (exit $ac_status); } && { | |
3073 | test -z "$ac_c_werror_flag" || | |
3074 | test ! -s conftest.err | |
3075 | } && test -s conftest.$ac_objext; then | |
3076 | ac_cv_prog_cc_g=yes | |
3077 | else | |
3078 | $as_echo "$as_me: failed program was:" >&5 | |
3079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3080 | ||
3081 | ||
3082 | fi | |
3083 | ||
3084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3085 | fi | |
3086 | ||
3087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3088 | fi | |
3089 | ||
3090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3091 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3092 | fi | |
3093 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3094 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3095 | if test "$ac_test_CFLAGS" = set; then | |
3096 | CFLAGS=$ac_save_CFLAGS | |
3097 | elif test $ac_cv_prog_cc_g = yes; then | |
3098 | if test "$GCC" = yes; then | |
3099 | CFLAGS="-g -O2" | |
3100 | else | |
3101 | CFLAGS="-g" | |
3102 | fi | |
3103 | else | |
3104 | if test "$GCC" = yes; then | |
3105 | CFLAGS="-O2" | |
3106 | else | |
3107 | CFLAGS= | |
3108 | fi | |
3109 | fi | |
3110 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
3111 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3112 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
3113 | $as_echo_n "(cached) " >&6 | |
3114 | else | |
3115 | ac_cv_prog_cc_c89=no | |
3116 | ac_save_CC=$CC | |
3117 | cat >conftest.$ac_ext <<_ACEOF | |
3118 | /* confdefs.h. */ | |
3119 | _ACEOF | |
3120 | cat confdefs.h >>conftest.$ac_ext | |
3121 | cat >>conftest.$ac_ext <<_ACEOF | |
3122 | /* end confdefs.h. */ | |
3123 | #include <stdarg.h> | |
3124 | #include <stdio.h> | |
3125 | #include <sys/types.h> | |
3126 | #include <sys/stat.h> | |
3127 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3128 | struct buf { int x; }; | |
3129 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3130 | static char *e (p, i) | |
3131 | char **p; | |
3132 | int i; | |
3133 | { | |
3134 | return p[i]; | |
3135 | } | |
3136 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3137 | { | |
3138 | char *s; | |
3139 | va_list v; | |
3140 | va_start (v,p); | |
3141 | s = g (p, va_arg (v,int)); | |
3142 | va_end (v); | |
3143 | return s; | |
3144 | } | |
3145 | ||
3146 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3147 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3148 | These don't provoke an error unfortunately, instead are silently treated | |
3149 | as 'x'. The following induces an error, until -std is added to get | |
3150 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3151 | array size at least. It's necessary to write '\x00'==0 to get something | |
3152 | that's true only with -std. */ | |
3153 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3154 | ||
3155 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3156 | inside strings and character constants. */ | |
3157 | #define FOO(x) 'x' | |
3158 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3159 | ||
3160 | int test (int i, double x); | |
3161 | struct s1 {int (*f) (int a);}; | |
3162 | struct s2 {int (*f) (double a);}; | |
3163 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3164 | int argc; | |
3165 | char **argv; | |
3166 | int | |
3167 | main () | |
3168 | { | |
3169 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3170 | ; | |
3171 | return 0; | |
3172 | } | |
3173 | _ACEOF | |
3174 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3175 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3176 | do | |
3177 | CC="$ac_save_CC $ac_arg" | |
3178 | rm -f conftest.$ac_objext | |
3179 | if { (ac_try="$ac_compile" | |
3180 | case "(($ac_try" in | |
3181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3182 | *) ac_try_echo=$ac_try;; | |
3183 | esac | |
3184 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3185 | $as_echo "$ac_try_echo") >&5 | |
3186 | (eval "$ac_compile") 2>conftest.er1 | |
3187 | ac_status=$? | |
3188 | grep -v '^ *+' conftest.er1 >conftest.err | |
3189 | rm -f conftest.er1 | |
3190 | cat conftest.err >&5 | |
3191 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3192 | (exit $ac_status); } && { | |
3193 | test -z "$ac_c_werror_flag" || | |
3194 | test ! -s conftest.err | |
3195 | } && test -s conftest.$ac_objext; then | |
3196 | ac_cv_prog_cc_c89=$ac_arg | |
3197 | else | |
3198 | $as_echo "$as_me: failed program was:" >&5 | |
3199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3200 | ||
3201 | ||
3202 | fi | |
3203 | ||
3204 | rm -f core conftest.err conftest.$ac_objext | |
3205 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3206 | done | |
3207 | rm -f conftest.$ac_ext | |
3208 | CC=$ac_save_CC | |
3209 | ||
3210 | fi | |
3211 | # AC_CACHE_VAL | |
3212 | case "x$ac_cv_prog_cc_c89" in | |
3213 | x) | |
3214 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 | |
3215 | $as_echo "none needed" >&6; } ;; | |
3216 | xno) | |
3217 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 | |
3218 | $as_echo "unsupported" >&6; } ;; | |
3219 | *) | |
3220 | CC="$CC $ac_cv_prog_cc_c89" | |
3221 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3222 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3223 | esac | |
3224 | ||
3225 | ||
3226 | ac_ext=c | |
3227 | ac_cpp='$CPP $CPPFLAGS' | |
3228 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3229 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3230 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3231 | ||
3232 | # Find a good install program. We prefer a C program (faster), | |
3233 | # so one script is as good as another. But avoid the broken or | |
3234 | # incompatible versions: | |
3235 | # SysV /etc/install, /usr/sbin/install | |
3236 | # SunOS /usr/etc/install | |
3237 | # IRIX /sbin/install | |
3238 | # AIX /bin/install | |
3239 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3240 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3241 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3242 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3243 | # OS/2's system install, which has a completely different semantic | |
3244 | # ./install, which can be erroneously created by make from ./install.sh. | |
3245 | # Reject install programs that cannot install multiple files. | |
3246 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3247 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
3248 | if test -z "$INSTALL"; then | |
3249 | if test "${ac_cv_path_install+set}" = set; then | |
3250 | $as_echo_n "(cached) " >&6 | |
3251 | else | |
3252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3253 | for as_dir in $PATH | |
3254 | do | |
3255 | IFS=$as_save_IFS | |
3256 | test -z "$as_dir" && as_dir=. | |
3257 | # Account for people who put trailing slashes in PATH elements. | |
3258 | case $as_dir/ in | |
3259 | ./ | .// | /cC/* | \ | |
3260 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3261 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3262 | /usr/ucb/* ) ;; | |
3263 | *) | |
3264 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3265 | # Don't use installbsd from OSF since it installs stuff as root | |
3266 | # by default. | |
3267 | for ac_prog in ginstall scoinst install; do | |
3268 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3269 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3270 | if test $ac_prog = install && | |
3271 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3272 | # AIX install. It has an incompatible calling convention. | |
3273 | : | |
3274 | elif test $ac_prog = install && | |
3275 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3276 | # program-specific install script used by HP pwplus--don't use. | |
3277 | : | |
3278 | else | |
3279 | rm -rf conftest.one conftest.two conftest.dir | |
3280 | echo one > conftest.one | |
3281 | echo two > conftest.two | |
3282 | mkdir conftest.dir | |
3283 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3284 | test -s conftest.one && test -s conftest.two && | |
3285 | test -s conftest.dir/conftest.one && | |
3286 | test -s conftest.dir/conftest.two | |
3287 | then | |
3288 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3289 | break 3 | |
3290 | fi | |
3291 | fi | |
3292 | fi | |
3293 | done | |
3294 | done | |
3295 | ;; | |
3296 | esac | |
3297 | ||
3298 | done | |
3299 | IFS=$as_save_IFS | |
3300 | ||
3301 | rm -rf conftest.one conftest.two conftest.dir | |
3302 | ||
3303 | fi | |
3304 | if test "${ac_cv_path_install+set}" = set; then | |
3305 | INSTALL=$ac_cv_path_install | |
3306 | else | |
3307 | # As a last resort, use the slow shell script. Don't cache a | |
3308 | # value for INSTALL within a source directory, because that will | |
3309 | # break other packages using the cache if that directory is | |
3310 | # removed, or if the value is a relative name. | |
3311 | INSTALL=$ac_install_sh | |
3312 | fi | |
3313 | fi | |
3314 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
3315 | $as_echo "$INSTALL" >&6; } | |
3316 | ||
3317 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3318 | # It thinks the first close brace ends the variable substitution. | |
3319 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3320 | ||
3321 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3322 | ||
3323 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3324 | ||
3325 | ||
3326 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
3327 | if test "x$cross_compiling" = "xno"; then | |
3328 | CC_FOR_BUILD='$(CC)' | |
3329 | else | |
3330 | CC_FOR_BUILD=gcc | |
3331 | fi | |
3332 | ||
3333 | ||
3334 | ||
3335 | ||
3336 | AR=${AR-ar} | |
3337 | ||
3338 | if test -n "$ac_tool_prefix"; then | |
3339 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3340 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3341 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3342 | $as_echo_n "checking for $ac_word... " >&6; } | |
3343 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3344 | $as_echo_n "(cached) " >&6 | |
3345 | else | |
3346 | if test -n "$RANLIB"; then | |
3347 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3348 | else | |
3349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3350 | for as_dir in $PATH | |
3351 | do | |
3352 | IFS=$as_save_IFS | |
3353 | test -z "$as_dir" && as_dir=. | |
3354 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3355 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3356 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3357 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3358 | break 2 | |
3359 | fi | |
3360 | done | |
3361 | done | |
3362 | IFS=$as_save_IFS | |
3363 | ||
3364 | fi | |
3365 | fi | |
3366 | RANLIB=$ac_cv_prog_RANLIB | |
3367 | if test -n "$RANLIB"; then | |
3368 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3369 | $as_echo "$RANLIB" >&6; } | |
3370 | else | |
3371 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
3372 | $as_echo "no" >&6; } | |
3373 | fi | |
3374 | ||
3375 | ||
3376 | fi | |
3377 | if test -z "$ac_cv_prog_RANLIB"; then | |
3378 | ac_ct_RANLIB=$RANLIB | |
3379 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3380 | set dummy ranlib; ac_word=$2 | |
3381 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3382 | $as_echo_n "checking for $ac_word... " >&6; } | |
3383 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3384 | $as_echo_n "(cached) " >&6 | |
3385 | else | |
3386 | if test -n "$ac_ct_RANLIB"; then | |
3387 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3388 | else | |
3389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3390 | for as_dir in $PATH | |
3391 | do | |
3392 | IFS=$as_save_IFS | |
3393 | test -z "$as_dir" && as_dir=. | |
3394 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3395 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3396 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3397 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3398 | break 2 | |
3399 | fi | |
3400 | done | |
3401 | done | |
3402 | IFS=$as_save_IFS | |
3403 | ||
3404 | fi | |
3405 | fi | |
3406 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3407 | if test -n "$ac_ct_RANLIB"; then | |
3408 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3409 | $as_echo "$ac_ct_RANLIB" >&6; } | |
3410 | else | |
3411 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
3412 | $as_echo "no" >&6; } | |
3413 | fi | |
3414 | ||
3415 | if test "x$ac_ct_RANLIB" = x; then | |
3416 | RANLIB=":" | |
3417 | else | |
3418 | case $cross_compiling:$ac_tool_warned in | |
3419 | yes:) | |
3420 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3421 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3422 | ac_tool_warned=yes ;; | |
3423 | esac | |
3424 | RANLIB=$ac_ct_RANLIB | |
3425 | fi | |
3426 | else | |
3427 | RANLIB="$ac_cv_prog_RANLIB" | |
3428 | fi | |
3429 | ||
3430 | ||
3431 | ALL_LINGUAS= | |
3432 | # If we haven't got the data from the intl directory, | |
3433 | # assume NLS is disabled. | |
3434 | USE_NLS=no | |
3435 | LIBINTL= | |
3436 | LIBINTL_DEP= | |
3437 | INCINTL= | |
3438 | XGETTEXT= | |
3439 | GMSGFMT= | |
3440 | POSUB= | |
3441 | ||
3442 | if test -f ../../intl/config.intl; then | |
3443 | . ../../intl/config.intl | |
3444 | fi | |
3445 | { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
3446 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
3447 | if test x"$USE_NLS" != xyes; then | |
3448 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
3449 | $as_echo "no" >&6; } | |
3450 | else | |
3451 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
3452 | $as_echo "yes" >&6; } | |
3453 | ||
3454 | cat >>confdefs.h <<\_ACEOF | |
3455 | #define ENABLE_NLS 1 | |
3456 | _ACEOF | |
3457 | ||
3458 | ||
3459 | { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
3460 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
3461 | # Look for .po and .gmo files in the source directory. | |
3462 | CATALOGS= | |
3463 | XLINGUAS= | |
3464 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
3465 | # If there aren't any .gmo files the shell will give us the | |
3466 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
3467 | # weeded out. | |
3468 | case "$cat" in *\**) | |
3469 | continue;; | |
3470 | esac | |
3471 | # The quadruple backslash is collapsed to a double backslash | |
3472 | # by the backticks, then collapsed again by the double quotes, | |
3473 | # leaving us with one backslash in the sed expression (right | |
3474 | # before the dot that mustn't act as a wildcard). | |
3475 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
3476 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
3477 | # The user is allowed to set LINGUAS to a list of languages to | |
3478 | # install catalogs for. If it's empty that means "all of them." | |
3479 | if test "x$LINGUAS" = x; then | |
3480 | CATALOGS="$CATALOGS $cat" | |
3481 | XLINGUAS="$XLINGUAS $lang" | |
3482 | else | |
3483 | case "$LINGUAS" in *$lang*) | |
3484 | CATALOGS="$CATALOGS $cat" | |
3485 | XLINGUAS="$XLINGUAS $lang" | |
3486 | ;; | |
3487 | esac | |
3488 | fi | |
3489 | done | |
3490 | LINGUAS="$XLINGUAS" | |
3491 | { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
3492 | $as_echo "$LINGUAS" >&6; } | |
3493 | ||
3494 | ||
3495 | DATADIRNAME=share | |
3496 | ||
3497 | INSTOBJEXT=.mo | |
3498 | ||
3499 | GENCAT=gencat | |
3500 | ||
3501 | CATOBJEXT=.gmo | |
3502 | ||
3503 | fi | |
3504 | ||
3505 | # Check for common headers. | |
3506 | # FIXME: Seems to me this can cause problems for i386-windows hosts. | |
3507 | # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*. | |
3508 | ||
3509 | ac_ext=c | |
3510 | ac_cpp='$CPP $CPPFLAGS' | |
3511 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3512 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3513 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3514 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3515 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3516 | # On Suns, sometimes $CPP names a directory. | |
3517 | if test -n "$CPP" && test -d "$CPP"; then | |
3518 | CPP= | |
3519 | fi | |
3520 | if test -z "$CPP"; then | |
3521 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3522 | $as_echo_n "(cached) " >&6 | |
3523 | else | |
3524 | # Double quotes because CPP needs to be expanded | |
3525 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3526 | do | |
3527 | ac_preproc_ok=false | |
3528 | for ac_c_preproc_warn_flag in '' yes | |
3529 | do | |
3530 | # Use a header file that comes with gcc, so configuring glibc | |
3531 | # with a fresh cross-compiler works. | |
3532 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3533 | # <limits.h> exists even on freestanding compilers. | |
3534 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3535 | # not just through cpp. "Syntax error" is here to catch this case. | |
3536 | cat >conftest.$ac_ext <<_ACEOF | |
3537 | /* confdefs.h. */ | |
3538 | _ACEOF | |
3539 | cat confdefs.h >>conftest.$ac_ext | |
3540 | cat >>conftest.$ac_ext <<_ACEOF | |
3541 | /* end confdefs.h. */ | |
3542 | #ifdef __STDC__ | |
3543 | # include <limits.h> | |
3544 | #else | |
3545 | # include <assert.h> | |
3546 | #endif | |
3547 | Syntax error | |
3548 | _ACEOF | |
3549 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3550 | case "(($ac_try" in | |
3551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3552 | *) ac_try_echo=$ac_try;; | |
3553 | esac | |
3554 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3555 | $as_echo "$ac_try_echo") >&5 | |
3556 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3557 | ac_status=$? | |
3558 | grep -v '^ *+' conftest.er1 >conftest.err | |
3559 | rm -f conftest.er1 | |
3560 | cat conftest.err >&5 | |
3561 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3562 | (exit $ac_status); } >/dev/null && { | |
3563 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3564 | test ! -s conftest.err | |
3565 | }; then | |
3566 | : | |
3567 | else | |
3568 | $as_echo "$as_me: failed program was:" >&5 | |
3569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3570 | ||
3571 | # Broken: fails on valid input. | |
3572 | continue | |
3573 | fi | |
3574 | ||
3575 | rm -f conftest.err conftest.$ac_ext | |
3576 | ||
3577 | # OK, works on sane cases. Now check whether nonexistent headers | |
3578 | # can be detected and how. | |
3579 | cat >conftest.$ac_ext <<_ACEOF | |
3580 | /* confdefs.h. */ | |
3581 | _ACEOF | |
3582 | cat confdefs.h >>conftest.$ac_ext | |
3583 | cat >>conftest.$ac_ext <<_ACEOF | |
3584 | /* end confdefs.h. */ | |
3585 | #include <ac_nonexistent.h> | |
3586 | _ACEOF | |
3587 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3588 | case "(($ac_try" in | |
3589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3590 | *) ac_try_echo=$ac_try;; | |
3591 | esac | |
3592 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3593 | $as_echo "$ac_try_echo") >&5 | |
3594 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3595 | ac_status=$? | |
3596 | grep -v '^ *+' conftest.er1 >conftest.err | |
3597 | rm -f conftest.er1 | |
3598 | cat conftest.err >&5 | |
3599 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3600 | (exit $ac_status); } >/dev/null && { | |
3601 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3602 | test ! -s conftest.err | |
3603 | }; then | |
3604 | # Broken: success on invalid input. | |
3605 | continue | |
3606 | else | |
3607 | $as_echo "$as_me: failed program was:" >&5 | |
3608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3609 | ||
3610 | # Passes both tests. | |
3611 | ac_preproc_ok=: | |
3612 | break | |
3613 | fi | |
3614 | ||
3615 | rm -f conftest.err conftest.$ac_ext | |
3616 | ||
3617 | done | |
3618 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3619 | rm -f conftest.err conftest.$ac_ext | |
3620 | if $ac_preproc_ok; then | |
3621 | break | |
3622 | fi | |
3623 | ||
3624 | done | |
3625 | ac_cv_prog_CPP=$CPP | |
3626 | ||
3627 | fi | |
3628 | CPP=$ac_cv_prog_CPP | |
3629 | else | |
3630 | ac_cv_prog_CPP=$CPP | |
3631 | fi | |
3632 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 | |
3633 | $as_echo "$CPP" >&6; } | |
3634 | ac_preproc_ok=false | |
3635 | for ac_c_preproc_warn_flag in '' yes | |
3636 | do | |
3637 | # Use a header file that comes with gcc, so configuring glibc | |
3638 | # with a fresh cross-compiler works. | |
3639 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3640 | # <limits.h> exists even on freestanding compilers. | |
3641 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3642 | # not just through cpp. "Syntax error" is here to catch this case. | |
3643 | cat >conftest.$ac_ext <<_ACEOF | |
3644 | /* confdefs.h. */ | |
3645 | _ACEOF | |
3646 | cat confdefs.h >>conftest.$ac_ext | |
3647 | cat >>conftest.$ac_ext <<_ACEOF | |
3648 | /* end confdefs.h. */ | |
3649 | #ifdef __STDC__ | |
3650 | # include <limits.h> | |
3651 | #else | |
3652 | # include <assert.h> | |
3653 | #endif | |
3654 | Syntax error | |
3655 | _ACEOF | |
3656 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3657 | case "(($ac_try" in | |
3658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3659 | *) ac_try_echo=$ac_try;; | |
3660 | esac | |
3661 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3662 | $as_echo "$ac_try_echo") >&5 | |
3663 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3664 | ac_status=$? | |
3665 | grep -v '^ *+' conftest.er1 >conftest.err | |
3666 | rm -f conftest.er1 | |
3667 | cat conftest.err >&5 | |
3668 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3669 | (exit $ac_status); } >/dev/null && { | |
3670 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3671 | test ! -s conftest.err | |
3672 | }; then | |
3673 | : | |
3674 | else | |
3675 | $as_echo "$as_me: failed program was:" >&5 | |
3676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3677 | ||
3678 | # Broken: fails on valid input. | |
3679 | continue | |
3680 | fi | |
3681 | ||
3682 | rm -f conftest.err conftest.$ac_ext | |
3683 | ||
3684 | # OK, works on sane cases. Now check whether nonexistent headers | |
3685 | # can be detected and how. | |
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 | #include <ac_nonexistent.h> | |
3693 | _ACEOF | |
3694 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3695 | case "(($ac_try" in | |
3696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3697 | *) ac_try_echo=$ac_try;; | |
3698 | esac | |
3699 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3700 | $as_echo "$ac_try_echo") >&5 | |
3701 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3702 | ac_status=$? | |
3703 | grep -v '^ *+' conftest.er1 >conftest.err | |
3704 | rm -f conftest.er1 | |
3705 | cat conftest.err >&5 | |
3706 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3707 | (exit $ac_status); } >/dev/null && { | |
3708 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3709 | test ! -s conftest.err | |
3710 | }; then | |
3711 | # Broken: success on invalid input. | |
3712 | continue | |
3713 | else | |
3714 | $as_echo "$as_me: failed program was:" >&5 | |
3715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3716 | ||
3717 | # Passes both tests. | |
3718 | ac_preproc_ok=: | |
3719 | break | |
3720 | fi | |
3721 | ||
3722 | rm -f conftest.err conftest.$ac_ext | |
3723 | ||
3724 | done | |
3725 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3726 | rm -f conftest.err conftest.$ac_ext | |
3727 | if $ac_preproc_ok; then | |
3728 | : | |
3729 | else | |
3730 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
3731 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3732 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3733 | See \`config.log' for more details." >&5 | |
3734 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3735 | See \`config.log' for more details." >&2;} | |
3736 | { (exit 1); exit 1; }; }; } | |
3737 | fi | |
3738 | ||
3739 | ac_ext=c | |
3740 | ac_cpp='$CPP $CPPFLAGS' | |
3741 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3742 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3743 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3744 | ||
3745 | ||
3746 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
3747 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3748 | if test "${ac_cv_path_GREP+set}" = set; then | |
3749 | $as_echo_n "(cached) " >&6 | |
3750 | else | |
3751 | if test -z "$GREP"; then | |
3752 | ac_path_GREP_found=false | |
3753 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3755 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3756 | do | |
3757 | IFS=$as_save_IFS | |
3758 | test -z "$as_dir" && as_dir=. | |
3759 | for ac_prog in grep ggrep; do | |
3760 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3761 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3762 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3763 | # Check for GNU ac_path_GREP and select it if it is found. | |
3764 | # Check for GNU $ac_path_GREP | |
3765 | case `"$ac_path_GREP" --version 2>&1` in | |
3766 | *GNU*) | |
3767 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3768 | *) | |
3769 | ac_count=0 | |
3770 | $as_echo_n 0123456789 >"conftest.in" | |
3771 | while : | |
3772 | do | |
3773 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3774 | mv "conftest.tmp" "conftest.in" | |
3775 | cp "conftest.in" "conftest.nl" | |
3776 | $as_echo 'GREP' >> "conftest.nl" | |
3777 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3778 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3779 | ac_count=`expr $ac_count + 1` | |
3780 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3781 | # Best one so far, save it but keep looking for a better one | |
3782 | ac_cv_path_GREP="$ac_path_GREP" | |
3783 | ac_path_GREP_max=$ac_count | |
3784 | fi | |
3785 | # 10*(2^10) chars as input seems more than enough | |
3786 | test $ac_count -gt 10 && break | |
3787 | done | |
3788 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3789 | esac | |
3790 | ||
3791 | $ac_path_GREP_found && break 3 | |
3792 | done | |
3793 | done | |
3794 | done | |
3795 | IFS=$as_save_IFS | |
3796 | if test -z "$ac_cv_path_GREP"; then | |
3797 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3798 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3799 | { (exit 1); exit 1; }; } | |
3800 | fi | |
3801 | else | |
3802 | ac_cv_path_GREP=$GREP | |
3803 | fi | |
3804 | ||
3805 | fi | |
3806 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3807 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3808 | GREP="$ac_cv_path_GREP" | |
3809 | ||
3810 | ||
3811 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 | |
3812 | $as_echo_n "checking for egrep... " >&6; } | |
3813 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3814 | $as_echo_n "(cached) " >&6 | |
3815 | else | |
3816 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3817 | then ac_cv_path_EGREP="$GREP -E" | |
3818 | else | |
3819 | if test -z "$EGREP"; then | |
3820 | ac_path_EGREP_found=false | |
3821 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3823 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3824 | do | |
3825 | IFS=$as_save_IFS | |
3826 | test -z "$as_dir" && as_dir=. | |
3827 | for ac_prog in egrep; do | |
3828 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3829 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3830 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3831 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3832 | # Check for GNU $ac_path_EGREP | |
3833 | case `"$ac_path_EGREP" --version 2>&1` in | |
3834 | *GNU*) | |
3835 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3836 | *) | |
3837 | ac_count=0 | |
3838 | $as_echo_n 0123456789 >"conftest.in" | |
3839 | while : | |
3840 | do | |
3841 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3842 | mv "conftest.tmp" "conftest.in" | |
3843 | cp "conftest.in" "conftest.nl" | |
3844 | $as_echo 'EGREP' >> "conftest.nl" | |
3845 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3846 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3847 | ac_count=`expr $ac_count + 1` | |
3848 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3849 | # Best one so far, save it but keep looking for a better one | |
3850 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3851 | ac_path_EGREP_max=$ac_count | |
3852 | fi | |
3853 | # 10*(2^10) chars as input seems more than enough | |
3854 | test $ac_count -gt 10 && break | |
3855 | done | |
3856 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3857 | esac | |
3858 | ||
3859 | $ac_path_EGREP_found && break 3 | |
3860 | done | |
3861 | done | |
3862 | done | |
3863 | IFS=$as_save_IFS | |
3864 | if test -z "$ac_cv_path_EGREP"; then | |
3865 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3866 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3867 | { (exit 1); exit 1; }; } | |
3868 | fi | |
3869 | else | |
3870 | ac_cv_path_EGREP=$EGREP | |
3871 | fi | |
3872 | ||
3873 | fi | |
3874 | fi | |
3875 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
3876 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3877 | EGREP="$ac_cv_path_EGREP" | |
3878 | ||
3879 | ||
3880 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3881 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3882 | if test "${ac_cv_header_stdc+set}" = set; then | |
3883 | $as_echo_n "(cached) " >&6 | |
3884 | else | |
3885 | cat >conftest.$ac_ext <<_ACEOF | |
3886 | /* confdefs.h. */ | |
3887 | _ACEOF | |
3888 | cat confdefs.h >>conftest.$ac_ext | |
3889 | cat >>conftest.$ac_ext <<_ACEOF | |
3890 | /* end confdefs.h. */ | |
3891 | #include <stdlib.h> | |
3892 | #include <stdarg.h> | |
3893 | #include <string.h> | |
3894 | #include <float.h> | |
3895 | ||
3896 | int | |
3897 | main () | |
3898 | { | |
3899 | ||
3900 | ; | |
3901 | return 0; | |
3902 | } | |
3903 | _ACEOF | |
3904 | rm -f conftest.$ac_objext | |
3905 | if { (ac_try="$ac_compile" | |
3906 | case "(($ac_try" in | |
3907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3908 | *) ac_try_echo=$ac_try;; | |
3909 | esac | |
3910 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3911 | $as_echo "$ac_try_echo") >&5 | |
3912 | (eval "$ac_compile") 2>conftest.er1 | |
3913 | ac_status=$? | |
3914 | grep -v '^ *+' conftest.er1 >conftest.err | |
3915 | rm -f conftest.er1 | |
3916 | cat conftest.err >&5 | |
3917 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3918 | (exit $ac_status); } && { | |
3919 | test -z "$ac_c_werror_flag" || | |
3920 | test ! -s conftest.err | |
3921 | } && test -s conftest.$ac_objext; then | |
3922 | ac_cv_header_stdc=yes | |
3923 | else | |
3924 | $as_echo "$as_me: failed program was:" >&5 | |
3925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3926 | ||
3927 | ac_cv_header_stdc=no | |
3928 | fi | |
3929 | ||
3930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3931 | ||
3932 | if test $ac_cv_header_stdc = yes; then | |
3933 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3934 | cat >conftest.$ac_ext <<_ACEOF | |
3935 | /* confdefs.h. */ | |
3936 | _ACEOF | |
3937 | cat confdefs.h >>conftest.$ac_ext | |
3938 | cat >>conftest.$ac_ext <<_ACEOF | |
3939 | /* end confdefs.h. */ | |
3940 | #include <string.h> | |
3941 | ||
3942 | _ACEOF | |
3943 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3944 | $EGREP "memchr" >/dev/null 2>&1; then | |
3945 | : | |
3946 | else | |
3947 | ac_cv_header_stdc=no | |
3948 | fi | |
3949 | rm -f conftest* | |
3950 | ||
3951 | fi | |
3952 | ||
3953 | if test $ac_cv_header_stdc = yes; then | |
3954 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3955 | cat >conftest.$ac_ext <<_ACEOF | |
3956 | /* confdefs.h. */ | |
3957 | _ACEOF | |
3958 | cat confdefs.h >>conftest.$ac_ext | |
3959 | cat >>conftest.$ac_ext <<_ACEOF | |
3960 | /* end confdefs.h. */ | |
3961 | #include <stdlib.h> | |
3962 | ||
3963 | _ACEOF | |
3964 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3965 | $EGREP "free" >/dev/null 2>&1; then | |
3966 | : | |
3967 | else | |
3968 | ac_cv_header_stdc=no | |
3969 | fi | |
3970 | rm -f conftest* | |
3971 | ||
3972 | fi | |
3973 | ||
3974 | if test $ac_cv_header_stdc = yes; then | |
3975 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3976 | if test "$cross_compiling" = yes; then | |
3977 | : | |
3978 | else | |
3979 | cat >conftest.$ac_ext <<_ACEOF | |
3980 | /* confdefs.h. */ | |
3981 | _ACEOF | |
3982 | cat confdefs.h >>conftest.$ac_ext | |
3983 | cat >>conftest.$ac_ext <<_ACEOF | |
3984 | /* end confdefs.h. */ | |
3985 | #include <ctype.h> | |
3986 | #include <stdlib.h> | |
3987 | #if ((' ' & 0x0FF) == 0x020) | |
3988 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3989 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3990 | #else | |
3991 | # define ISLOWER(c) \ | |
3992 | (('a' <= (c) && (c) <= 'i') \ | |
3993 | || ('j' <= (c) && (c) <= 'r') \ | |
3994 | || ('s' <= (c) && (c) <= 'z')) | |
3995 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3996 | #endif | |
3997 | ||
3998 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3999 | int | |
4000 | main () | |
4001 | { | |
4002 | int i; | |
4003 | for (i = 0; i < 256; i++) | |
4004 | if (XOR (islower (i), ISLOWER (i)) | |
4005 | || toupper (i) != TOUPPER (i)) | |
4006 | return 2; | |
4007 | return 0; | |
4008 | } | |
4009 | _ACEOF | |
4010 | rm -f conftest$ac_exeext | |
4011 | if { (ac_try="$ac_link" | |
4012 | case "(($ac_try" in | |
4013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4014 | *) ac_try_echo=$ac_try;; | |
4015 | esac | |
4016 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4017 | $as_echo "$ac_try_echo") >&5 | |
4018 | (eval "$ac_link") 2>&5 | |
4019 | ac_status=$? | |
4020 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4021 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4022 | { (case "(($ac_try" in | |
4023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4024 | *) ac_try_echo=$ac_try;; | |
4025 | esac | |
4026 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4027 | $as_echo "$ac_try_echo") >&5 | |
4028 | (eval "$ac_try") 2>&5 | |
4029 | ac_status=$? | |
4030 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4031 | (exit $ac_status); }; }; then | |
4032 | : | |
4033 | else | |
4034 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
4035 | $as_echo "$as_me: failed program was:" >&5 | |
4036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4037 | ||
4038 | ( exit $ac_status ) | |
4039 | ac_cv_header_stdc=no | |
4040 | fi | |
4041 | rm -rf conftest.dSYM | |
4042 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4043 | fi | |
4044 | ||
4045 | ||
4046 | fi | |
4047 | fi | |
4048 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4049 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4050 | if test $ac_cv_header_stdc = yes; then | |
4051 | ||
4052 | cat >>confdefs.h <<\_ACEOF | |
4053 | #define STDC_HEADERS 1 | |
4054 | _ACEOF | |
4055 | ||
4056 | fi | |
4057 | ||
4058 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4059 | ||
4060 | ||
4061 | ||
4062 | ||
4063 | ||
4064 | ||
4065 | ||
4066 | ||
4067 | ||
4068 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4069 | inttypes.h stdint.h unistd.h | |
4070 | do | |
4071 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4072 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4073 | $as_echo_n "checking for $ac_header... " >&6; } | |
4074 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4075 | $as_echo_n "(cached) " >&6 | |
4076 | else | |
4077 | cat >conftest.$ac_ext <<_ACEOF | |
4078 | /* confdefs.h. */ | |
4079 | _ACEOF | |
4080 | cat confdefs.h >>conftest.$ac_ext | |
4081 | cat >>conftest.$ac_ext <<_ACEOF | |
4082 | /* end confdefs.h. */ | |
4083 | $ac_includes_default | |
4084 | ||
4085 | #include <$ac_header> | |
4086 | _ACEOF | |
4087 | rm -f conftest.$ac_objext | |
4088 | if { (ac_try="$ac_compile" | |
4089 | case "(($ac_try" in | |
4090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4091 | *) ac_try_echo=$ac_try;; | |
4092 | esac | |
4093 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4094 | $as_echo "$ac_try_echo") >&5 | |
4095 | (eval "$ac_compile") 2>conftest.er1 | |
4096 | ac_status=$? | |
4097 | grep -v '^ *+' conftest.er1 >conftest.err | |
4098 | rm -f conftest.er1 | |
4099 | cat conftest.err >&5 | |
4100 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4101 | (exit $ac_status); } && { | |
4102 | test -z "$ac_c_werror_flag" || | |
4103 | test ! -s conftest.err | |
4104 | } && test -s conftest.$ac_objext; then | |
4105 | eval "$as_ac_Header=yes" | |
4106 | else | |
4107 | $as_echo "$as_me: failed program was:" >&5 | |
4108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4109 | ||
4110 | eval "$as_ac_Header=no" | |
4111 | fi | |
4112 | ||
4113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4114 | fi | |
4115 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
4116 | $as_echo "$as_val"'` | |
4117 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4118 | $as_echo "$ac_res" >&6; } | |
4119 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4120 | $as_echo "$as_val"'` | |
4121 | if test "x$as_val" = x""yes; then | |
4122 | cat >>confdefs.h <<_ACEOF | |
4123 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4124 | _ACEOF | |
4125 | ||
4126 | fi | |
4127 | ||
4128 | done | |
4129 | ||
4130 | ||
4131 | ||
4132 | ||
4133 | ||
4134 | ||
4135 | ||
4136 | for ac_header in stdlib.h string.h strings.h unistd.h time.h | |
4137 | do | |
4138 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4139 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4140 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4141 | $as_echo_n "checking for $ac_header... " >&6; } | |
4142 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4143 | $as_echo_n "(cached) " >&6 | |
4144 | fi | |
4145 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
4146 | $as_echo "$as_val"'` | |
4147 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4148 | $as_echo "$ac_res" >&6; } | |
4149 | else | |
4150 | # Is the header compilable? | |
4151 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4152 | $as_echo_n "checking $ac_header usability... " >&6; } | |
4153 | cat >conftest.$ac_ext <<_ACEOF | |
4154 | /* confdefs.h. */ | |
4155 | _ACEOF | |
4156 | cat confdefs.h >>conftest.$ac_ext | |
4157 | cat >>conftest.$ac_ext <<_ACEOF | |
4158 | /* end confdefs.h. */ | |
4159 | $ac_includes_default | |
4160 | #include <$ac_header> | |
4161 | _ACEOF | |
4162 | rm -f conftest.$ac_objext | |
4163 | if { (ac_try="$ac_compile" | |
4164 | case "(($ac_try" in | |
4165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4166 | *) ac_try_echo=$ac_try;; | |
4167 | esac | |
4168 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4169 | $as_echo "$ac_try_echo") >&5 | |
4170 | (eval "$ac_compile") 2>conftest.er1 | |
4171 | ac_status=$? | |
4172 | grep -v '^ *+' conftest.er1 >conftest.err | |
4173 | rm -f conftest.er1 | |
4174 | cat conftest.err >&5 | |
4175 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4176 | (exit $ac_status); } && { | |
4177 | test -z "$ac_c_werror_flag" || | |
4178 | test ! -s conftest.err | |
4179 | } && test -s conftest.$ac_objext; then | |
4180 | ac_header_compiler=yes | |
4181 | else | |
4182 | $as_echo "$as_me: failed program was:" >&5 | |
4183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4184 | ||
4185 | ac_header_compiler=no | |
4186 | fi | |
4187 | ||
4188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4189 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4190 | $as_echo "$ac_header_compiler" >&6; } | |
4191 | ||
4192 | # Is the header present? | |
4193 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4194 | $as_echo_n "checking $ac_header presence... " >&6; } | |
4195 | cat >conftest.$ac_ext <<_ACEOF | |
4196 | /* confdefs.h. */ | |
4197 | _ACEOF | |
4198 | cat confdefs.h >>conftest.$ac_ext | |
4199 | cat >>conftest.$ac_ext <<_ACEOF | |
4200 | /* end confdefs.h. */ | |
4201 | #include <$ac_header> | |
4202 | _ACEOF | |
4203 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4204 | case "(($ac_try" in | |
4205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4206 | *) ac_try_echo=$ac_try;; | |
4207 | esac | |
4208 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4209 | $as_echo "$ac_try_echo") >&5 | |
4210 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4211 | ac_status=$? | |
4212 | grep -v '^ *+' conftest.er1 >conftest.err | |
4213 | rm -f conftest.er1 | |
4214 | cat conftest.err >&5 | |
4215 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4216 | (exit $ac_status); } >/dev/null && { | |
4217 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4218 | test ! -s conftest.err | |
4219 | }; then | |
4220 | ac_header_preproc=yes | |
4221 | else | |
4222 | $as_echo "$as_me: failed program was:" >&5 | |
4223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4224 | ||
4225 | ac_header_preproc=no | |
4226 | fi | |
4227 | ||
4228 | rm -f conftest.err conftest.$ac_ext | |
4229 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4230 | $as_echo "$ac_header_preproc" >&6; } | |
4231 | ||
4232 | # So? What about this header? | |
4233 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4234 | yes:no: ) | |
4235 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4236 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4237 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4238 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4239 | ac_header_preproc=yes | |
4240 | ;; | |
4241 | no:yes:* ) | |
4242 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4243 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4244 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4245 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4246 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4247 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4248 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4249 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4250 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4251 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4252 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4253 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4254 | ||
4255 | ;; | |
4256 | esac | |
4257 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4258 | $as_echo_n "checking for $ac_header... " >&6; } | |
4259 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4260 | $as_echo_n "(cached) " >&6 | |
4261 | else | |
4262 | eval "$as_ac_Header=\$ac_header_preproc" | |
4263 | fi | |
4264 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
4265 | $as_echo "$as_val"'` | |
4266 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4267 | $as_echo "$ac_res" >&6; } | |
4268 | ||
4269 | fi | |
4270 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4271 | $as_echo "$as_val"'` | |
4272 | if test "x$as_val" = x""yes; then | |
4273 | cat >>confdefs.h <<_ACEOF | |
4274 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4275 | _ACEOF | |
4276 | ||
4277 | fi | |
4278 | ||
4279 | done | |
4280 | ||
4281 | ||
4282 | ||
4283 | for ac_header in sys/time.h sys/resource.h | |
4284 | do | |
4285 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4286 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4287 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4288 | $as_echo_n "checking for $ac_header... " >&6; } | |
4289 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4290 | $as_echo_n "(cached) " >&6 | |
4291 | fi | |
4292 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
4293 | $as_echo "$as_val"'` | |
4294 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4295 | $as_echo "$ac_res" >&6; } | |
4296 | else | |
4297 | # Is the header compilable? | |
4298 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4299 | $as_echo_n "checking $ac_header usability... " >&6; } | |
4300 | cat >conftest.$ac_ext <<_ACEOF | |
4301 | /* confdefs.h. */ | |
4302 | _ACEOF | |
4303 | cat confdefs.h >>conftest.$ac_ext | |
4304 | cat >>conftest.$ac_ext <<_ACEOF | |
4305 | /* end confdefs.h. */ | |
4306 | $ac_includes_default | |
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 | ac_header_compiler=yes | |
4328 | else | |
4329 | $as_echo "$as_me: failed program was:" >&5 | |
4330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4331 | ||
4332 | ac_header_compiler=no | |
4333 | fi | |
4334 | ||
4335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4336 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4337 | $as_echo "$ac_header_compiler" >&6; } | |
4338 | ||
4339 | # Is the header present? | |
4340 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4341 | $as_echo_n "checking $ac_header presence... " >&6; } | |
4342 | cat >conftest.$ac_ext <<_ACEOF | |
4343 | /* confdefs.h. */ | |
4344 | _ACEOF | |
4345 | cat confdefs.h >>conftest.$ac_ext | |
4346 | cat >>conftest.$ac_ext <<_ACEOF | |
4347 | /* end confdefs.h. */ | |
4348 | #include <$ac_header> | |
4349 | _ACEOF | |
4350 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4351 | case "(($ac_try" in | |
4352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4353 | *) ac_try_echo=$ac_try;; | |
4354 | esac | |
4355 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4356 | $as_echo "$ac_try_echo") >&5 | |
4357 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4358 | ac_status=$? | |
4359 | grep -v '^ *+' conftest.er1 >conftest.err | |
4360 | rm -f conftest.er1 | |
4361 | cat conftest.err >&5 | |
4362 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4363 | (exit $ac_status); } >/dev/null && { | |
4364 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4365 | test ! -s conftest.err | |
4366 | }; then | |
4367 | ac_header_preproc=yes | |
4368 | else | |
4369 | $as_echo "$as_me: failed program was:" >&5 | |
4370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4371 | ||
4372 | ac_header_preproc=no | |
4373 | fi | |
4374 | ||
4375 | rm -f conftest.err conftest.$ac_ext | |
4376 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4377 | $as_echo "$ac_header_preproc" >&6; } | |
4378 | ||
4379 | # So? What about this header? | |
4380 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4381 | yes:no: ) | |
4382 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4383 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4384 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4385 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4386 | ac_header_preproc=yes | |
4387 | ;; | |
4388 | no:yes:* ) | |
4389 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4390 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4391 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4392 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4393 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4394 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4395 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4396 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4397 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4398 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4399 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4400 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4401 | ||
4402 | ;; | |
4403 | esac | |
4404 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4405 | $as_echo_n "checking for $ac_header... " >&6; } | |
4406 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4407 | $as_echo_n "(cached) " >&6 | |
4408 | else | |
4409 | eval "$as_ac_Header=\$ac_header_preproc" | |
4410 | fi | |
4411 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
4412 | $as_echo "$as_val"'` | |
4413 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4414 | $as_echo "$ac_res" >&6; } | |
4415 | ||
4416 | fi | |
4417 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4418 | $as_echo "$as_val"'` | |
4419 | if test "x$as_val" = x""yes; then | |
4420 | cat >>confdefs.h <<_ACEOF | |
4421 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4422 | _ACEOF | |
4423 | ||
4424 | fi | |
4425 | ||
4426 | done | |
4427 | ||
4428 | ||
4429 | ||
4430 | for ac_header in fcntl.h fpu_control.h | |
4431 | do | |
4432 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4433 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4434 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4435 | $as_echo_n "checking for $ac_header... " >&6; } | |
4436 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4437 | $as_echo_n "(cached) " >&6 | |
4438 | fi | |
4439 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
4440 | $as_echo "$as_val"'` | |
4441 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4442 | $as_echo "$ac_res" >&6; } | |
4443 | else | |
4444 | # Is the header compilable? | |
4445 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4446 | $as_echo_n "checking $ac_header usability... " >&6; } | |
4447 | cat >conftest.$ac_ext <<_ACEOF | |
4448 | /* confdefs.h. */ | |
4449 | _ACEOF | |
4450 | cat confdefs.h >>conftest.$ac_ext | |
4451 | cat >>conftest.$ac_ext <<_ACEOF | |
4452 | /* end confdefs.h. */ | |
4453 | $ac_includes_default | |
4454 | #include <$ac_header> | |
4455 | _ACEOF | |
4456 | rm -f conftest.$ac_objext | |
4457 | if { (ac_try="$ac_compile" | |
4458 | case "(($ac_try" in | |
4459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4460 | *) ac_try_echo=$ac_try;; | |
4461 | esac | |
4462 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4463 | $as_echo "$ac_try_echo") >&5 | |
4464 | (eval "$ac_compile") 2>conftest.er1 | |
4465 | ac_status=$? | |
4466 | grep -v '^ *+' conftest.er1 >conftest.err | |
4467 | rm -f conftest.er1 | |
4468 | cat conftest.err >&5 | |
4469 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4470 | (exit $ac_status); } && { | |
4471 | test -z "$ac_c_werror_flag" || | |
4472 | test ! -s conftest.err | |
4473 | } && test -s conftest.$ac_objext; then | |
4474 | ac_header_compiler=yes | |
4475 | else | |
4476 | $as_echo "$as_me: failed program was:" >&5 | |
4477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4478 | ||
4479 | ac_header_compiler=no | |
4480 | fi | |
4481 | ||
4482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4483 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4484 | $as_echo "$ac_header_compiler" >&6; } | |
4485 | ||
4486 | # Is the header present? | |
4487 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4488 | $as_echo_n "checking $ac_header presence... " >&6; } | |
4489 | cat >conftest.$ac_ext <<_ACEOF | |
4490 | /* confdefs.h. */ | |
4491 | _ACEOF | |
4492 | cat confdefs.h >>conftest.$ac_ext | |
4493 | cat >>conftest.$ac_ext <<_ACEOF | |
4494 | /* end confdefs.h. */ | |
4495 | #include <$ac_header> | |
4496 | _ACEOF | |
4497 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4498 | case "(($ac_try" in | |
4499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4500 | *) ac_try_echo=$ac_try;; | |
4501 | esac | |
4502 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4503 | $as_echo "$ac_try_echo") >&5 | |
4504 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4505 | ac_status=$? | |
4506 | grep -v '^ *+' conftest.er1 >conftest.err | |
4507 | rm -f conftest.er1 | |
4508 | cat conftest.err >&5 | |
4509 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4510 | (exit $ac_status); } >/dev/null && { | |
4511 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4512 | test ! -s conftest.err | |
4513 | }; then | |
4514 | ac_header_preproc=yes | |
4515 | else | |
4516 | $as_echo "$as_me: failed program was:" >&5 | |
4517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4518 | ||
4519 | ac_header_preproc=no | |
4520 | fi | |
4521 | ||
4522 | rm -f conftest.err conftest.$ac_ext | |
4523 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4524 | $as_echo "$ac_header_preproc" >&6; } | |
4525 | ||
4526 | # So? What about this header? | |
4527 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4528 | yes:no: ) | |
4529 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4530 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4531 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4532 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4533 | ac_header_preproc=yes | |
4534 | ;; | |
4535 | no:yes:* ) | |
4536 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4537 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4538 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4539 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4540 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4541 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4542 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4543 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4544 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4545 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4546 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4547 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4548 | ||
4549 | ;; | |
4550 | esac | |
4551 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4552 | $as_echo_n "checking for $ac_header... " >&6; } | |
4553 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4554 | $as_echo_n "(cached) " >&6 | |
4555 | else | |
4556 | eval "$as_ac_Header=\$ac_header_preproc" | |
4557 | fi | |
4558 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
4559 | $as_echo "$as_val"'` | |
4560 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4561 | $as_echo "$ac_res" >&6; } | |
4562 | ||
4563 | fi | |
4564 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4565 | $as_echo "$as_val"'` | |
4566 | if test "x$as_val" = x""yes; then | |
4567 | cat >>confdefs.h <<_ACEOF | |
4568 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4569 | _ACEOF | |
4570 | ||
4571 | fi | |
4572 | ||
4573 | done | |
4574 | ||
4575 | ||
4576 | ||
4577 | ||
4578 | for ac_header in dlfcn.h errno.h sys/stat.h | |
4579 | do | |
4580 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4581 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4582 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4583 | $as_echo_n "checking for $ac_header... " >&6; } | |
4584 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4585 | $as_echo_n "(cached) " >&6 | |
4586 | fi | |
4587 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
4588 | $as_echo "$as_val"'` | |
4589 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4590 | $as_echo "$ac_res" >&6; } | |
4591 | else | |
4592 | # Is the header compilable? | |
4593 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4594 | $as_echo_n "checking $ac_header usability... " >&6; } | |
4595 | cat >conftest.$ac_ext <<_ACEOF | |
4596 | /* confdefs.h. */ | |
4597 | _ACEOF | |
4598 | cat confdefs.h >>conftest.$ac_ext | |
4599 | cat >>conftest.$ac_ext <<_ACEOF | |
4600 | /* end confdefs.h. */ | |
4601 | $ac_includes_default | |
4602 | #include <$ac_header> | |
4603 | _ACEOF | |
4604 | rm -f conftest.$ac_objext | |
4605 | if { (ac_try="$ac_compile" | |
4606 | case "(($ac_try" in | |
4607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4608 | *) ac_try_echo=$ac_try;; | |
4609 | esac | |
4610 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4611 | $as_echo "$ac_try_echo") >&5 | |
4612 | (eval "$ac_compile") 2>conftest.er1 | |
4613 | ac_status=$? | |
4614 | grep -v '^ *+' conftest.er1 >conftest.err | |
4615 | rm -f conftest.er1 | |
4616 | cat conftest.err >&5 | |
4617 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4618 | (exit $ac_status); } && { | |
4619 | test -z "$ac_c_werror_flag" || | |
4620 | test ! -s conftest.err | |
4621 | } && test -s conftest.$ac_objext; then | |
4622 | ac_header_compiler=yes | |
4623 | else | |
4624 | $as_echo "$as_me: failed program was:" >&5 | |
4625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4626 | ||
4627 | ac_header_compiler=no | |
4628 | fi | |
4629 | ||
4630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4631 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4632 | $as_echo "$ac_header_compiler" >&6; } | |
4633 | ||
4634 | # Is the header present? | |
4635 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4636 | $as_echo_n "checking $ac_header presence... " >&6; } | |
4637 | cat >conftest.$ac_ext <<_ACEOF | |
4638 | /* confdefs.h. */ | |
4639 | _ACEOF | |
4640 | cat confdefs.h >>conftest.$ac_ext | |
4641 | cat >>conftest.$ac_ext <<_ACEOF | |
4642 | /* end confdefs.h. */ | |
4643 | #include <$ac_header> | |
4644 | _ACEOF | |
4645 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4646 | case "(($ac_try" in | |
4647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4648 | *) ac_try_echo=$ac_try;; | |
4649 | esac | |
4650 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4651 | $as_echo "$ac_try_echo") >&5 | |
4652 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4653 | ac_status=$? | |
4654 | grep -v '^ *+' conftest.er1 >conftest.err | |
4655 | rm -f conftest.er1 | |
4656 | cat conftest.err >&5 | |
4657 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4658 | (exit $ac_status); } >/dev/null && { | |
4659 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4660 | test ! -s conftest.err | |
4661 | }; then | |
4662 | ac_header_preproc=yes | |
4663 | else | |
4664 | $as_echo "$as_me: failed program was:" >&5 | |
4665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4666 | ||
4667 | ac_header_preproc=no | |
4668 | fi | |
4669 | ||
4670 | rm -f conftest.err conftest.$ac_ext | |
4671 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4672 | $as_echo "$ac_header_preproc" >&6; } | |
4673 | ||
4674 | # So? What about this header? | |
4675 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4676 | yes:no: ) | |
4677 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4678 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4679 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4680 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4681 | ac_header_preproc=yes | |
4682 | ;; | |
4683 | no:yes:* ) | |
4684 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4685 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4686 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4687 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4688 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4689 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4690 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4691 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4692 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4693 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4694 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4695 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4696 | ||
4697 | ;; | |
4698 | esac | |
4699 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4700 | $as_echo_n "checking for $ac_header... " >&6; } | |
4701 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4702 | $as_echo_n "(cached) " >&6 | |
4703 | else | |
4704 | eval "$as_ac_Header=\$ac_header_preproc" | |
4705 | fi | |
4706 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
4707 | $as_echo "$as_val"'` | |
4708 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4709 | $as_echo "$ac_res" >&6; } | |
4710 | ||
4711 | fi | |
4712 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4713 | $as_echo "$as_val"'` | |
4714 | if test "x$as_val" = x""yes; then | |
4715 | cat >>confdefs.h <<_ACEOF | |
4716 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4717 | _ACEOF | |
4718 | ||
4719 | fi | |
4720 | ||
4721 | done | |
4722 | ||
4723 | ||
4724 | ||
4725 | ||
4726 | ||
4727 | for ac_func in getrusage time sigaction __setfpucw | |
4728 | do | |
4729 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4730 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4731 | $as_echo_n "checking for $ac_func... " >&6; } | |
4732 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
4733 | $as_echo_n "(cached) " >&6 | |
4734 | else | |
4735 | cat >conftest.$ac_ext <<_ACEOF | |
4736 | /* confdefs.h. */ | |
4737 | _ACEOF | |
4738 | cat confdefs.h >>conftest.$ac_ext | |
4739 | cat >>conftest.$ac_ext <<_ACEOF | |
4740 | /* end confdefs.h. */ | |
4741 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4742 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4743 | #define $ac_func innocuous_$ac_func | |
4744 | ||
4745 | /* System header to define __stub macros and hopefully few prototypes, | |
4746 | which can conflict with char $ac_func (); below. | |
4747 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4748 | <limits.h> exists even on freestanding compilers. */ | |
4749 | ||
4750 | #ifdef __STDC__ | |
4751 | # include <limits.h> | |
4752 | #else | |
4753 | # include <assert.h> | |
4754 | #endif | |
4755 | ||
4756 | #undef $ac_func | |
4757 | ||
4758 | /* Override any GCC internal prototype to avoid an error. | |
4759 | Use char because int might match the return type of a GCC | |
4760 | builtin and then its argument prototype would still apply. */ | |
4761 | #ifdef __cplusplus | |
4762 | extern "C" | |
4763 | #endif | |
4764 | char $ac_func (); | |
4765 | /* The GNU C library defines this for functions which it implements | |
4766 | to always fail with ENOSYS. Some functions are actually named | |
4767 | something starting with __ and the normal name is an alias. */ | |
4768 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
4769 | choke me | |
4770 | #endif | |
4771 | ||
4772 | int | |
4773 | main () | |
4774 | { | |
4775 | return $ac_func (); | |
4776 | ; | |
4777 | return 0; | |
4778 | } | |
4779 | _ACEOF | |
4780 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4781 | if { (ac_try="$ac_link" | |
4782 | case "(($ac_try" in | |
4783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4784 | *) ac_try_echo=$ac_try;; | |
4785 | esac | |
4786 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4787 | $as_echo "$ac_try_echo") >&5 | |
4788 | (eval "$ac_link") 2>conftest.er1 | |
4789 | ac_status=$? | |
4790 | grep -v '^ *+' conftest.er1 >conftest.err | |
4791 | rm -f conftest.er1 | |
4792 | cat conftest.err >&5 | |
4793 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4794 | (exit $ac_status); } && { | |
4795 | test -z "$ac_c_werror_flag" || | |
4796 | test ! -s conftest.err | |
4797 | } && test -s conftest$ac_exeext && { | |
4798 | test "$cross_compiling" = yes || | |
4799 | $as_test_x conftest$ac_exeext | |
4800 | }; then | |
4801 | eval "$as_ac_var=yes" | |
4802 | else | |
4803 | $as_echo "$as_me: failed program was:" >&5 | |
4804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4805 | ||
4806 | eval "$as_ac_var=no" | |
4807 | fi | |
4808 | ||
4809 | rm -rf conftest.dSYM | |
4810 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4811 | conftest$ac_exeext conftest.$ac_ext | |
4812 | fi | |
4813 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
4814 | $as_echo "$as_val"'` | |
4815 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4816 | $as_echo "$ac_res" >&6; } | |
4817 | as_val=`eval 'as_val=${'$as_ac_var'} | |
4818 | $as_echo "$as_val"'` | |
4819 | if test "x$as_val" = x""yes; then | |
4820 | cat >>confdefs.h <<_ACEOF | |
4821 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4822 | _ACEOF | |
4823 | ||
4824 | fi | |
4825 | done | |
4826 | ||
4827 | ||
4828 | # Check for socket libraries | |
4829 | ||
4830 | { $as_echo "$as_me:$LINENO: checking for bind in -lsocket" >&5 | |
4831 | $as_echo_n "checking for bind in -lsocket... " >&6; } | |
4832 | if test "${ac_cv_lib_socket_bind+set}" = set; then | |
4833 | $as_echo_n "(cached) " >&6 | |
4834 | else | |
4835 | ac_check_lib_save_LIBS=$LIBS | |
4836 | LIBS="-lsocket $LIBS" | |
4837 | cat >conftest.$ac_ext <<_ACEOF | |
4838 | /* confdefs.h. */ | |
4839 | _ACEOF | |
4840 | cat confdefs.h >>conftest.$ac_ext | |
4841 | cat >>conftest.$ac_ext <<_ACEOF | |
4842 | /* end confdefs.h. */ | |
4843 | ||
4844 | /* Override any GCC internal prototype to avoid an error. | |
4845 | Use char because int might match the return type of a GCC | |
4846 | builtin and then its argument prototype would still apply. */ | |
4847 | #ifdef __cplusplus | |
4848 | extern "C" | |
4849 | #endif | |
4850 | char bind (); | |
4851 | int | |
4852 | main () | |
4853 | { | |
4854 | return bind (); | |
4855 | ; | |
4856 | return 0; | |
4857 | } | |
4858 | _ACEOF | |
4859 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4860 | if { (ac_try="$ac_link" | |
4861 | case "(($ac_try" in | |
4862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4863 | *) ac_try_echo=$ac_try;; | |
4864 | esac | |
4865 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4866 | $as_echo "$ac_try_echo") >&5 | |
4867 | (eval "$ac_link") 2>conftest.er1 | |
4868 | ac_status=$? | |
4869 | grep -v '^ *+' conftest.er1 >conftest.err | |
4870 | rm -f conftest.er1 | |
4871 | cat conftest.err >&5 | |
4872 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4873 | (exit $ac_status); } && { | |
4874 | test -z "$ac_c_werror_flag" || | |
4875 | test ! -s conftest.err | |
4876 | } && test -s conftest$ac_exeext && { | |
4877 | test "$cross_compiling" = yes || | |
4878 | $as_test_x conftest$ac_exeext | |
4879 | }; then | |
4880 | ac_cv_lib_socket_bind=yes | |
4881 | else | |
4882 | $as_echo "$as_me: failed program was:" >&5 | |
4883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4884 | ||
4885 | ac_cv_lib_socket_bind=no | |
4886 | fi | |
4887 | ||
4888 | rm -rf conftest.dSYM | |
4889 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4890 | conftest$ac_exeext conftest.$ac_ext | |
4891 | LIBS=$ac_check_lib_save_LIBS | |
4892 | fi | |
4893 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5 | |
4894 | $as_echo "$ac_cv_lib_socket_bind" >&6; } | |
4895 | if test "x$ac_cv_lib_socket_bind" = x""yes; then | |
4896 | cat >>confdefs.h <<_ACEOF | |
4897 | #define HAVE_LIBSOCKET 1 | |
4898 | _ACEOF | |
4899 | ||
4900 | LIBS="-lsocket $LIBS" | |
4901 | ||
4902 | fi | |
4903 | ||
4904 | ||
4905 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
4906 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | |
4907 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
4908 | $as_echo_n "(cached) " >&6 | |
4909 | else | |
4910 | ac_check_lib_save_LIBS=$LIBS | |
4911 | LIBS="-lnsl $LIBS" | |
4912 | cat >conftest.$ac_ext <<_ACEOF | |
4913 | /* confdefs.h. */ | |
4914 | _ACEOF | |
4915 | cat confdefs.h >>conftest.$ac_ext | |
4916 | cat >>conftest.$ac_ext <<_ACEOF | |
4917 | /* end confdefs.h. */ | |
4918 | ||
4919 | /* Override any GCC internal prototype to avoid an error. | |
4920 | Use char because int might match the return type of a GCC | |
4921 | builtin and then its argument prototype would still apply. */ | |
4922 | #ifdef __cplusplus | |
4923 | extern "C" | |
4924 | #endif | |
4925 | char gethostbyname (); | |
4926 | int | |
4927 | main () | |
4928 | { | |
4929 | return gethostbyname (); | |
4930 | ; | |
4931 | return 0; | |
4932 | } | |
4933 | _ACEOF | |
4934 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4935 | if { (ac_try="$ac_link" | |
4936 | case "(($ac_try" in | |
4937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4938 | *) ac_try_echo=$ac_try;; | |
4939 | esac | |
4940 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4941 | $as_echo "$ac_try_echo") >&5 | |
4942 | (eval "$ac_link") 2>conftest.er1 | |
4943 | ac_status=$? | |
4944 | grep -v '^ *+' conftest.er1 >conftest.err | |
4945 | rm -f conftest.er1 | |
4946 | cat conftest.err >&5 | |
4947 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4948 | (exit $ac_status); } && { | |
4949 | test -z "$ac_c_werror_flag" || | |
4950 | test ! -s conftest.err | |
4951 | } && test -s conftest$ac_exeext && { | |
4952 | test "$cross_compiling" = yes || | |
4953 | $as_test_x conftest$ac_exeext | |
4954 | }; then | |
4955 | ac_cv_lib_nsl_gethostbyname=yes | |
4956 | else | |
4957 | $as_echo "$as_me: failed program was:" >&5 | |
4958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4959 | ||
4960 | ac_cv_lib_nsl_gethostbyname=no | |
4961 | fi | |
4962 | ||
4963 | rm -rf conftest.dSYM | |
4964 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4965 | conftest$ac_exeext conftest.$ac_ext | |
4966 | LIBS=$ac_check_lib_save_LIBS | |
4967 | fi | |
4968 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
4969 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | |
4970 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then | |
4971 | cat >>confdefs.h <<_ACEOF | |
4972 | #define HAVE_LIBNSL 1 | |
4973 | _ACEOF | |
4974 | ||
4975 | LIBS="-lnsl $LIBS" | |
4976 | ||
4977 | fi | |
4978 | ||
4979 | ||
4980 | # BFD conditionally uses zlib, so we must link it in if libbfd does, by | |
4981 | # using the same condition. | |
4982 | { $as_echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5 | |
4983 | $as_echo_n "checking for library containing zlibVersion... " >&6; } | |
4984 | if test "${ac_cv_search_zlibVersion+set}" = set; then | |
4985 | $as_echo_n "(cached) " >&6 | |
4986 | else | |
4987 | ac_func_search_save_LIBS=$LIBS | |
4988 | cat >conftest.$ac_ext <<_ACEOF | |
4989 | /* confdefs.h. */ | |
4990 | _ACEOF | |
4991 | cat confdefs.h >>conftest.$ac_ext | |
4992 | cat >>conftest.$ac_ext <<_ACEOF | |
4993 | /* end confdefs.h. */ | |
4994 | ||
4995 | /* Override any GCC internal prototype to avoid an error. | |
4996 | Use char because int might match the return type of a GCC | |
4997 | builtin and then its argument prototype would still apply. */ | |
4998 | #ifdef __cplusplus | |
4999 | extern "C" | |
5000 | #endif | |
5001 | char zlibVersion (); | |
5002 | int | |
5003 | main () | |
5004 | { | |
5005 | return zlibVersion (); | |
5006 | ; | |
5007 | return 0; | |
5008 | } | |
5009 | _ACEOF | |
5010 | for ac_lib in '' z; do | |
5011 | if test -z "$ac_lib"; then | |
5012 | ac_res="none required" | |
5013 | else | |
5014 | ac_res=-l$ac_lib | |
5015 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5016 | fi | |
5017 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5018 | if { (ac_try="$ac_link" | |
5019 | case "(($ac_try" in | |
5020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5021 | *) ac_try_echo=$ac_try;; | |
5022 | esac | |
5023 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5024 | $as_echo "$ac_try_echo") >&5 | |
5025 | (eval "$ac_link") 2>conftest.er1 | |
5026 | ac_status=$? | |
5027 | grep -v '^ *+' conftest.er1 >conftest.err | |
5028 | rm -f conftest.er1 | |
5029 | cat conftest.err >&5 | |
5030 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5031 | (exit $ac_status); } && { | |
5032 | test -z "$ac_c_werror_flag" || | |
5033 | test ! -s conftest.err | |
5034 | } && test -s conftest$ac_exeext && { | |
5035 | test "$cross_compiling" = yes || | |
5036 | $as_test_x conftest$ac_exeext | |
5037 | }; then | |
5038 | ac_cv_search_zlibVersion=$ac_res | |
5039 | else | |
5040 | $as_echo "$as_me: failed program was:" >&5 | |
5041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5042 | ||
5043 | ||
5044 | fi | |
5045 | ||
5046 | rm -rf conftest.dSYM | |
5047 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5048 | conftest$ac_exeext | |
5049 | if test "${ac_cv_search_zlibVersion+set}" = set; then | |
5050 | break | |
5051 | fi | |
5052 | done | |
5053 | if test "${ac_cv_search_zlibVersion+set}" = set; then | |
5054 | : | |
5055 | else | |
5056 | ac_cv_search_zlibVersion=no | |
5057 | fi | |
5058 | rm conftest.$ac_ext | |
5059 | LIBS=$ac_func_search_save_LIBS | |
5060 | fi | |
5061 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5 | |
5062 | $as_echo "$ac_cv_search_zlibVersion" >&6; } | |
5063 | ac_res=$ac_cv_search_zlibVersion | |
5064 | if test "$ac_res" != no; then | |
5065 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5066 | ||
5067 | for ac_header in zlib.h | |
5068 | do | |
5069 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5070 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5071 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5072 | $as_echo_n "checking for $ac_header... " >&6; } | |
5073 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5074 | $as_echo_n "(cached) " >&6 | |
5075 | fi | |
5076 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5077 | $as_echo "$as_val"'` | |
5078 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5079 | $as_echo "$ac_res" >&6; } | |
5080 | else | |
5081 | # Is the header compilable? | |
5082 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5083 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5084 | cat >conftest.$ac_ext <<_ACEOF | |
5085 | /* confdefs.h. */ | |
5086 | _ACEOF | |
5087 | cat confdefs.h >>conftest.$ac_ext | |
5088 | cat >>conftest.$ac_ext <<_ACEOF | |
5089 | /* end confdefs.h. */ | |
5090 | $ac_includes_default | |
5091 | #include <$ac_header> | |
5092 | _ACEOF | |
5093 | rm -f conftest.$ac_objext | |
5094 | if { (ac_try="$ac_compile" | |
5095 | case "(($ac_try" in | |
5096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5097 | *) ac_try_echo=$ac_try;; | |
5098 | esac | |
5099 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5100 | $as_echo "$ac_try_echo") >&5 | |
5101 | (eval "$ac_compile") 2>conftest.er1 | |
5102 | ac_status=$? | |
5103 | grep -v '^ *+' conftest.er1 >conftest.err | |
5104 | rm -f conftest.er1 | |
5105 | cat conftest.err >&5 | |
5106 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5107 | (exit $ac_status); } && { | |
5108 | test -z "$ac_c_werror_flag" || | |
5109 | test ! -s conftest.err | |
5110 | } && test -s conftest.$ac_objext; then | |
5111 | ac_header_compiler=yes | |
5112 | else | |
5113 | $as_echo "$as_me: failed program was:" >&5 | |
5114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5115 | ||
5116 | ac_header_compiler=no | |
5117 | fi | |
5118 | ||
5119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5120 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5121 | $as_echo "$ac_header_compiler" >&6; } | |
5122 | ||
5123 | # Is the header present? | |
5124 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5125 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5126 | cat >conftest.$ac_ext <<_ACEOF | |
5127 | /* confdefs.h. */ | |
5128 | _ACEOF | |
5129 | cat confdefs.h >>conftest.$ac_ext | |
5130 | cat >>conftest.$ac_ext <<_ACEOF | |
5131 | /* end confdefs.h. */ | |
5132 | #include <$ac_header> | |
5133 | _ACEOF | |
5134 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5135 | case "(($ac_try" in | |
5136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5137 | *) ac_try_echo=$ac_try;; | |
5138 | esac | |
5139 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5140 | $as_echo "$ac_try_echo") >&5 | |
5141 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5142 | ac_status=$? | |
5143 | grep -v '^ *+' conftest.er1 >conftest.err | |
5144 | rm -f conftest.er1 | |
5145 | cat conftest.err >&5 | |
5146 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5147 | (exit $ac_status); } >/dev/null && { | |
5148 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5149 | test ! -s conftest.err | |
5150 | }; then | |
5151 | ac_header_preproc=yes | |
5152 | else | |
5153 | $as_echo "$as_me: failed program was:" >&5 | |
5154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5155 | ||
5156 | ac_header_preproc=no | |
5157 | fi | |
5158 | ||
5159 | rm -f conftest.err conftest.$ac_ext | |
5160 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5161 | $as_echo "$ac_header_preproc" >&6; } | |
5162 | ||
5163 | # So? What about this header? | |
5164 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5165 | yes:no: ) | |
5166 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5167 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5168 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5169 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5170 | ac_header_preproc=yes | |
5171 | ;; | |
5172 | no:yes:* ) | |
5173 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5174 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5175 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5176 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5177 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5178 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5179 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5180 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5181 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5182 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5183 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5184 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5185 | ||
5186 | ;; | |
5187 | esac | |
5188 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5189 | $as_echo_n "checking for $ac_header... " >&6; } | |
5190 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5191 | $as_echo_n "(cached) " >&6 | |
5192 | else | |
5193 | eval "$as_ac_Header=\$ac_header_preproc" | |
5194 | fi | |
5195 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5196 | $as_echo "$as_val"'` | |
5197 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5198 | $as_echo "$ac_res" >&6; } | |
5199 | ||
5200 | fi | |
5201 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5202 | $as_echo "$as_val"'` | |
5203 | if test "x$as_val" = x""yes; then | |
5204 | cat >>confdefs.h <<_ACEOF | |
5205 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5206 | _ACEOF | |
5207 | ||
5208 | fi | |
5209 | ||
5210 | done | |
5211 | ||
5212 | fi | |
5213 | ||
5214 | ||
5215 | . ${srcdir}/../../bfd/configure.host | |
5216 | ||
5217 | ||
5218 | ||
5219 | USE_MAINTAINER_MODE=no | |
5220 | # Check whether --enable-maintainer-mode was given. | |
5221 | if test "${enable_maintainer_mode+set}" = set; then | |
5222 | enableval=$enable_maintainer_mode; case "${enableval}" in | |
5223 | yes) MAINT="" USE_MAINTAINER_MODE=yes ;; | |
5224 | no) MAINT="#" ;; | |
5225 | *) { { $as_echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5 | |
5226 | $as_echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;} | |
5227 | { (exit 1); exit 1; }; }; MAINT="#" ;; | |
5228 | esac | |
5229 | if test x"$silent" != x"yes" && test x"$MAINT" = x""; then | |
5230 | echo "Setting maintainer mode" 6>&1 | |
5231 | fi | |
5232 | else | |
5233 | MAINT="#" | |
5234 | fi | |
5235 | ||
5236 | ||
5237 | ||
5238 | # Check whether --enable-sim-bswap was given. | |
5239 | if test "${enable_sim_bswap+set}" = set; then | |
5240 | enableval=$enable_sim_bswap; case "${enableval}" in | |
5241 | yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";; | |
5242 | no) sim_bswap="-DWITH_BSWAP=0";; | |
5243 | *) { { $as_echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5 | |
5244 | $as_echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;} | |
5245 | { (exit 1); exit 1; }; }; sim_bswap="";; | |
5246 | esac | |
5247 | if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then | |
5248 | echo "Setting bswap flags = $sim_bswap" 6>&1 | |
5249 | fi | |
5250 | else | |
5251 | sim_bswap="" | |
5252 | fi | |
5253 | ||
5254 | ||
5255 | ||
5256 | # Check whether --enable-sim-cflags was given. | |
5257 | if test "${enable_sim_cflags+set}" = set; then | |
5258 | enableval=$enable_sim_cflags; case "${enableval}" in | |
5259 | yes) sim_cflags="-O2 -fomit-frame-pointer";; | |
5260 | trace) { { $as_echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5 | |
5261 | $as_echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;} | |
5262 | { (exit 1); exit 1; }; }; sim_cflags="";; | |
5263 | no) sim_cflags="";; | |
5264 | *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
5265 | esac | |
5266 | if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then | |
5267 | echo "Setting sim cflags = $sim_cflags" 6>&1 | |
5268 | fi | |
5269 | else | |
5270 | sim_cflags="" | |
5271 | fi | |
5272 | ||
5273 | ||
5274 | ||
5275 | # Check whether --enable-sim-debug was given. | |
5276 | if test "${enable_sim_debug+set}" = set; then | |
5277 | enableval=$enable_sim_debug; case "${enableval}" in | |
5278 | yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";; | |
5279 | no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";; | |
5280 | *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";; | |
5281 | esac | |
5282 | if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then | |
5283 | echo "Setting sim debug = $sim_debug" 6>&1 | |
5284 | fi | |
5285 | else | |
5286 | sim_debug="" | |
5287 | fi | |
5288 | ||
5289 | ||
5290 | ||
5291 | # Check whether --enable-sim-stdio was given. | |
5292 | if test "${enable_sim_stdio+set}" = set; then | |
5293 | enableval=$enable_sim_stdio; case "${enableval}" in | |
5294 | yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";; | |
5295 | no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";; | |
5296 | *) { { $as_echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5 | |
5297 | $as_echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;} | |
5298 | { (exit 1); exit 1; }; }; sim_stdio="";; | |
5299 | esac | |
5300 | if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then | |
5301 | echo "Setting stdio flags = $sim_stdio" 6>&1 | |
5302 | fi | |
5303 | else | |
5304 | sim_stdio="" | |
5305 | fi | |
5306 | ||
5307 | ||
5308 | ||
5309 | # Check whether --enable-sim-trace was given. | |
5310 | if test "${enable_sim_trace+set}" = set; then | |
5311 | enableval=$enable_sim_trace; case "${enableval}" in | |
5312 | yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";; | |
5313 | no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";; | |
5314 | [-0-9]*) | |
5315 | sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";; | |
5316 | [a-z]*) | |
5317 | sim_trace="" | |
5318 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
5319 | if test x"$sim_trace" = x; then | |
5320 | sim_trace="-DWITH_TRACE='(TRACE_$x" | |
5321 | else | |
5322 | sim_trace="${sim_trace}|TRACE_$x" | |
5323 | fi | |
5324 | done | |
5325 | sim_trace="$sim_trace)'" ;; | |
5326 | esac | |
5327 | if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then | |
5328 | echo "Setting sim trace = $sim_trace" 6>&1 | |
5329 | fi | |
5330 | else | |
5331 | sim_trace="" | |
5332 | fi | |
5333 | ||
5334 | ||
5335 | ||
5336 | # Check whether --enable-sim-profile was given. | |
5337 | if test "${enable_sim_profile+set}" = set; then | |
5338 | enableval=$enable_sim_profile; case "${enableval}" in | |
5339 | yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";; | |
5340 | no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";; | |
5341 | [-0-9]*) | |
5342 | sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";; | |
5343 | [a-z]*) | |
5344 | sim_profile="" | |
5345 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
5346 | if test x"$sim_profile" = x; then | |
5347 | sim_profile="-DWITH_PROFILE='(PROFILE_$x" | |
5348 | else | |
5349 | sim_profile="${sim_profile}|PROFILE_$x" | |
5350 | fi | |
5351 | done | |
5352 | sim_profile="$sim_profile)'" ;; | |
5353 | esac | |
5354 | if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then | |
5355 | echo "Setting sim profile = $sim_profile" 6>&1 | |
5356 | fi | |
5357 | else | |
5358 | sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1" | |
5359 | fi | |
5360 | ||
5361 | ||
5362 | ||
5363 | ||
5364 | # Check whether --with-pkgversion was given. | |
5365 | if test "${with_pkgversion+set}" = set; then | |
5366 | withval=$with_pkgversion; case "$withval" in | |
5367 | yes) { { $as_echo "$as_me:$LINENO: error: package version not specified" >&5 | |
5368 | $as_echo "$as_me: error: package version not specified" >&2;} | |
5369 | { (exit 1); exit 1; }; } ;; | |
5370 | no) PKGVERSION= ;; | |
5371 | *) PKGVERSION="($withval) " ;; | |
5372 | esac | |
5373 | else | |
5374 | PKGVERSION="(GDB) " | |
5375 | ||
5376 | fi | |
5377 | ||
5378 | ||
5379 | ||
5380 | ||
5381 | ||
5382 | # Check whether --with-bugurl was given. | |
5383 | if test "${with_bugurl+set}" = set; then | |
5384 | withval=$with_bugurl; case "$withval" in | |
5385 | yes) { { $as_echo "$as_me:$LINENO: error: bug URL not specified" >&5 | |
5386 | $as_echo "$as_me: error: bug URL not specified" >&2;} | |
5387 | { (exit 1); exit 1; }; } ;; | |
5388 | no) BUGURL= | |
5389 | ;; | |
5390 | *) BUGURL="$withval" | |
5391 | ;; | |
5392 | esac | |
5393 | else | |
5394 | BUGURL="http://www.gnu.org/software/gdb/bugs/" | |
5395 | ||
5396 | fi | |
5397 | ||
5398 | case ${BUGURL} in | |
5399 | "") | |
5400 | REPORT_BUGS_TO= | |
5401 | REPORT_BUGS_TEXI= | |
5402 | ;; | |
5403 | *) | |
5404 | REPORT_BUGS_TO="<$BUGURL>" | |
5405 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
5406 | ;; | |
5407 | esac; | |
5408 | ||
5409 | ||
5410 | ||
5411 | ||
5412 | cat >>confdefs.h <<_ACEOF | |
5413 | #define PKGVERSION "$PKGVERSION" | |
5414 | _ACEOF | |
5415 | ||
5416 | ||
5417 | cat >>confdefs.h <<_ACEOF | |
5418 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | |
5419 | _ACEOF | |
5420 | ||
5421 | ||
5422 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
5423 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5424 | if test "${ac_cv_type_signal+set}" = set; then | |
5425 | $as_echo_n "(cached) " >&6 | |
5426 | else | |
5427 | cat >conftest.$ac_ext <<_ACEOF | |
5428 | /* confdefs.h. */ | |
5429 | _ACEOF | |
5430 | cat confdefs.h >>conftest.$ac_ext | |
5431 | cat >>conftest.$ac_ext <<_ACEOF | |
5432 | /* end confdefs.h. */ | |
5433 | #include <sys/types.h> | |
5434 | #include <signal.h> | |
5435 | ||
5436 | int | |
5437 | main () | |
5438 | { | |
5439 | return *(signal (0, 0)) (0) == 1; | |
5440 | ; | |
5441 | return 0; | |
5442 | } | |
5443 | _ACEOF | |
5444 | rm -f conftest.$ac_objext | |
5445 | if { (ac_try="$ac_compile" | |
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_compile") 2>conftest.er1 | |
5453 | ac_status=$? | |
5454 | grep -v '^ *+' conftest.er1 >conftest.err | |
5455 | rm -f conftest.er1 | |
5456 | cat conftest.err >&5 | |
5457 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5458 | (exit $ac_status); } && { | |
5459 | test -z "$ac_c_werror_flag" || | |
5460 | test ! -s conftest.err | |
5461 | } && test -s conftest.$ac_objext; then | |
5462 | ac_cv_type_signal=int | |
5463 | else | |
5464 | $as_echo "$as_me: failed program was:" >&5 | |
5465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5466 | ||
5467 | ac_cv_type_signal=void | |
5468 | fi | |
5469 | ||
5470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5471 | fi | |
5472 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | |
5473 | $as_echo "$ac_cv_type_signal" >&6; } | |
5474 | ||
5475 | cat >>confdefs.h <<_ACEOF | |
5476 | #define RETSIGTYPE $ac_cv_type_signal | |
5477 | _ACEOF | |
5478 | ||
5479 | ||
5480 | ||
5481 | ||
5482 | ||
5483 | sim_link_files= | |
5484 | sim_link_links= | |
5485 | ||
5486 | sim_link_links=tconfig.h | |
5487 | if test -f ${srcdir}/tconfig.in | |
5488 | then | |
5489 | sim_link_files=tconfig.in | |
5490 | else | |
5491 | sim_link_files=../common/tconfig.in | |
5492 | fi | |
5493 | ||
5494 | # targ-vals.def points to the libc macro description file. | |
5495 | case "${target}" in | |
5496 | *-*-*) TARG_VALS_DEF=../common/nltvals.def ;; | |
5497 | esac | |
5498 | sim_link_files="${sim_link_files} ${TARG_VALS_DEF}" | |
5499 | sim_link_links="${sim_link_links} targ-vals.def" | |
5500 | ||
5501 | ||
5502 | ||
5503 | wire_endian="BIG_ENDIAN" | |
5504 | default_endian="" | |
5505 | # Check whether --enable-sim-endian was given. | |
5506 | if test "${enable_sim_endian+set}" = set; then | |
5507 | enableval=$enable_sim_endian; case "${enableval}" in | |
5508 | b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";; | |
5509 | l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";; | |
5510 | yes) if test x"$wire_endian" != x; then | |
5511 | sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}" | |
5512 | else | |
5513 | if test x"$default_endian" != x; then | |
5514 | sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}" | |
5515 | else | |
5516 | echo "No hard-wired endian for target $target" 1>&6 | |
5517 | sim_endian="-DWITH_TARGET_BYTE_ORDER=0" | |
5518 | fi | |
5519 | fi;; | |
5520 | no) if test x"$default_endian" != x; then | |
5521 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}" | |
5522 | else | |
5523 | if test x"$wire_endian" != x; then | |
5524 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}" | |
5525 | else | |
5526 | echo "No default endian for target $target" 1>&6 | |
5527 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0" | |
5528 | fi | |
5529 | fi;; | |
5530 | *) { { $as_echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5 | |
5531 | $as_echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;} | |
5532 | { (exit 1); exit 1; }; }; sim_endian="";; | |
5533 | esac | |
5534 | if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then | |
5535 | echo "Setting endian flags = $sim_endian" 6>&1 | |
5536 | fi | |
5537 | else | |
5538 | if test x"$default_endian" != x; then | |
5539 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}" | |
5540 | else | |
5541 | if test x"$wire_endian" != x; then | |
5542 | sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}" | |
5543 | else | |
5544 | sim_endian= | |
5545 | fi | |
5546 | fi | |
5547 | fi | |
5548 | ||
5549 | wire_alignment="STRICT_ALIGNMENT" | |
5550 | default_alignment="STRICT_ALIGNMENT" | |
5551 | ||
5552 | # Check whether --enable-sim-alignment was given. | |
5553 | if test "${enable_sim_alignment+set}" = set; then | |
5554 | enableval=$enable_sim_alignment; case "${enableval}" in | |
5555 | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";; | |
5556 | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";; | |
5557 | forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";; | |
5558 | yes) if test x"$wire_alignment" != x; then | |
5559 | sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}" | |
5560 | else | |
5561 | if test x"$default_alignment" != x; then | |
5562 | sim_alignment="-DWITH_ALIGNMENT=${default_alignment}" | |
5563 | else | |
5564 | echo "No hard-wired alignment for target $target" 1>&6 | |
5565 | sim_alignment="-DWITH_ALIGNMENT=0" | |
5566 | fi | |
5567 | fi;; | |
5568 | no) if test x"$default_alignment" != x; then | |
5569 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}" | |
5570 | else | |
5571 | if test x"$wire_alignment" != x; then | |
5572 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}" | |
5573 | else | |
5574 | echo "No default alignment for target $target" 1>&6 | |
5575 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0" | |
5576 | fi | |
5577 | fi;; | |
5578 | *) { { $as_echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5 | |
5579 | $as_echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;} | |
5580 | { (exit 1); exit 1; }; }; sim_alignment="";; | |
5581 | esac | |
5582 | if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then | |
5583 | echo "Setting alignment flags = $sim_alignment" 6>&1 | |
5584 | fi | |
5585 | else | |
5586 | if test x"$default_alignment" != x; then | |
5587 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}" | |
5588 | else | |
5589 | if test x"$wire_alignment" != x; then | |
5590 | sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}" | |
5591 | else | |
5592 | sim_alignment= | |
5593 | fi | |
5594 | fi | |
5595 | fi | |
5596 | ||
5597 | ||
5598 | # Check whether --enable-sim-hostendian was given. | |
5599 | if test "${enable_sim_hostendian+set}" = set; then | |
5600 | enableval=$enable_sim_hostendian; case "${enableval}" in | |
5601 | no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";; | |
5602 | b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";; | |
5603 | l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";; | |
5604 | *) { { $as_echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5 | |
5605 | $as_echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;} | |
5606 | { (exit 1); exit 1; }; }; sim_hostendian="";; | |
5607 | esac | |
5608 | if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then | |
5609 | echo "Setting hostendian flags = $sim_hostendian" 6>&1 | |
5610 | fi | |
5611 | else | |
5612 | ||
5613 | if test "x$cross_compiling" = "xno"; then | |
5614 | ||
5615 | { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
5616 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
5617 | if test "${ac_cv_c_bigendian+set}" = set; then | |
5618 | $as_echo_n "(cached) " >&6 | |
5619 | else | |
5620 | ac_cv_c_bigendian=unknown | |
5621 | # See if we're dealing with a universal compiler. | |
5622 | cat >conftest.$ac_ext <<_ACEOF | |
5623 | /* confdefs.h. */ | |
5624 | _ACEOF | |
5625 | cat confdefs.h >>conftest.$ac_ext | |
5626 | cat >>conftest.$ac_ext <<_ACEOF | |
5627 | /* end confdefs.h. */ | |
5628 | #ifndef __APPLE_CC__ | |
5629 | not a universal capable compiler | |
5630 | #endif | |
5631 | typedef int dummy; | |
5632 | ||
5633 | _ACEOF | |
5634 | rm -f conftest.$ac_objext | |
5635 | if { (ac_try="$ac_compile" | |
5636 | case "(($ac_try" in | |
5637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5638 | *) ac_try_echo=$ac_try;; | |
5639 | esac | |
5640 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5641 | $as_echo "$ac_try_echo") >&5 | |
5642 | (eval "$ac_compile") 2>conftest.er1 | |
5643 | ac_status=$? | |
5644 | grep -v '^ *+' conftest.er1 >conftest.err | |
5645 | rm -f conftest.er1 | |
5646 | cat conftest.err >&5 | |
5647 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5648 | (exit $ac_status); } && { | |
5649 | test -z "$ac_c_werror_flag" || | |
5650 | test ! -s conftest.err | |
5651 | } && test -s conftest.$ac_objext; then | |
5652 | ||
5653 | # Check for potential -arch flags. It is not universal unless | |
5654 | # there are some -arch flags. Note that *ppc* also matches | |
5655 | # ppc64. This check is also rather less than ideal. | |
5656 | case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #( | |
5657 | *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;; | |
5658 | esac | |
5659 | else | |
5660 | $as_echo "$as_me: failed program was:" >&5 | |
5661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5662 | ||
5663 | ||
5664 | fi | |
5665 | ||
5666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5667 | if test $ac_cv_c_bigendian = unknown; then | |
5668 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5669 | cat >conftest.$ac_ext <<_ACEOF | |
5670 | /* confdefs.h. */ | |
5671 | _ACEOF | |
5672 | cat confdefs.h >>conftest.$ac_ext | |
5673 | cat >>conftest.$ac_ext <<_ACEOF | |
5674 | /* end confdefs.h. */ | |
5675 | #include <sys/types.h> | |
5676 | #include <sys/param.h> | |
5677 | ||
5678 | int | |
5679 | main () | |
5680 | { | |
5681 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
5682 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
5683 | && LITTLE_ENDIAN) | |
5684 | bogus endian macros | |
5685 | #endif | |
5686 | ||
5687 | ; | |
5688 | return 0; | |
5689 | } | |
5690 | _ACEOF | |
5691 | rm -f conftest.$ac_objext | |
5692 | if { (ac_try="$ac_compile" | |
5693 | case "(($ac_try" in | |
5694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5695 | *) ac_try_echo=$ac_try;; | |
5696 | esac | |
5697 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5698 | $as_echo "$ac_try_echo") >&5 | |
5699 | (eval "$ac_compile") 2>conftest.er1 | |
5700 | ac_status=$? | |
5701 | grep -v '^ *+' conftest.er1 >conftest.err | |
5702 | rm -f conftest.er1 | |
5703 | cat conftest.err >&5 | |
5704 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5705 | (exit $ac_status); } && { | |
5706 | test -z "$ac_c_werror_flag" || | |
5707 | test ! -s conftest.err | |
5708 | } && test -s conftest.$ac_objext; then | |
5709 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
5710 | cat >conftest.$ac_ext <<_ACEOF | |
5711 | /* confdefs.h. */ | |
5712 | _ACEOF | |
5713 | cat confdefs.h >>conftest.$ac_ext | |
5714 | cat >>conftest.$ac_ext <<_ACEOF | |
5715 | /* end confdefs.h. */ | |
5716 | #include <sys/types.h> | |
5717 | #include <sys/param.h> | |
5718 | ||
5719 | int | |
5720 | main () | |
5721 | { | |
5722 | #if BYTE_ORDER != BIG_ENDIAN | |
5723 | not big endian | |
5724 | #endif | |
5725 | ||
5726 | ; | |
5727 | return 0; | |
5728 | } | |
5729 | _ACEOF | |
5730 | rm -f conftest.$ac_objext | |
5731 | if { (ac_try="$ac_compile" | |
5732 | case "(($ac_try" in | |
5733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5734 | *) ac_try_echo=$ac_try;; | |
5735 | esac | |
5736 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5737 | $as_echo "$ac_try_echo") >&5 | |
5738 | (eval "$ac_compile") 2>conftest.er1 | |
5739 | ac_status=$? | |
5740 | grep -v '^ *+' conftest.er1 >conftest.err | |
5741 | rm -f conftest.er1 | |
5742 | cat conftest.err >&5 | |
5743 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5744 | (exit $ac_status); } && { | |
5745 | test -z "$ac_c_werror_flag" || | |
5746 | test ! -s conftest.err | |
5747 | } && test -s conftest.$ac_objext; then | |
5748 | ac_cv_c_bigendian=yes | |
5749 | else | |
5750 | $as_echo "$as_me: failed program was:" >&5 | |
5751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5752 | ||
5753 | ac_cv_c_bigendian=no | |
5754 | fi | |
5755 | ||
5756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5757 | else | |
5758 | $as_echo "$as_me: failed program was:" >&5 | |
5759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5760 | ||
5761 | ||
5762 | fi | |
5763 | ||
5764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5765 | fi | |
5766 | if test $ac_cv_c_bigendian = unknown; then | |
5767 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
5768 | cat >conftest.$ac_ext <<_ACEOF | |
5769 | /* confdefs.h. */ | |
5770 | _ACEOF | |
5771 | cat confdefs.h >>conftest.$ac_ext | |
5772 | cat >>conftest.$ac_ext <<_ACEOF | |
5773 | /* end confdefs.h. */ | |
5774 | #include <limits.h> | |
5775 | ||
5776 | int | |
5777 | main () | |
5778 | { | |
5779 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
5780 | bogus endian macros | |
5781 | #endif | |
5782 | ||
5783 | ; | |
5784 | return 0; | |
5785 | } | |
5786 | _ACEOF | |
5787 | rm -f conftest.$ac_objext | |
5788 | if { (ac_try="$ac_compile" | |
5789 | case "(($ac_try" in | |
5790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5791 | *) ac_try_echo=$ac_try;; | |
5792 | esac | |
5793 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5794 | $as_echo "$ac_try_echo") >&5 | |
5795 | (eval "$ac_compile") 2>conftest.er1 | |
5796 | ac_status=$? | |
5797 | grep -v '^ *+' conftest.er1 >conftest.err | |
5798 | rm -f conftest.er1 | |
5799 | cat conftest.err >&5 | |
5800 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5801 | (exit $ac_status); } && { | |
5802 | test -z "$ac_c_werror_flag" || | |
5803 | test ! -s conftest.err | |
5804 | } && test -s conftest.$ac_objext; then | |
5805 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
5806 | cat >conftest.$ac_ext <<_ACEOF | |
5807 | /* confdefs.h. */ | |
5808 | _ACEOF | |
5809 | cat confdefs.h >>conftest.$ac_ext | |
5810 | cat >>conftest.$ac_ext <<_ACEOF | |
5811 | /* end confdefs.h. */ | |
5812 | #include <limits.h> | |
5813 | ||
5814 | int | |
5815 | main () | |
5816 | { | |
5817 | #ifndef _BIG_ENDIAN | |
5818 | not big endian | |
5819 | #endif | |
5820 | ||
5821 | ; | |
5822 | return 0; | |
5823 | } | |
5824 | _ACEOF | |
5825 | rm -f conftest.$ac_objext | |
5826 | if { (ac_try="$ac_compile" | |
5827 | case "(($ac_try" in | |
5828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5829 | *) ac_try_echo=$ac_try;; | |
5830 | esac | |
5831 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5832 | $as_echo "$ac_try_echo") >&5 | |
5833 | (eval "$ac_compile") 2>conftest.er1 | |
5834 | ac_status=$? | |
5835 | grep -v '^ *+' conftest.er1 >conftest.err | |
5836 | rm -f conftest.er1 | |
5837 | cat conftest.err >&5 | |
5838 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5839 | (exit $ac_status); } && { | |
5840 | test -z "$ac_c_werror_flag" || | |
5841 | test ! -s conftest.err | |
5842 | } && test -s conftest.$ac_objext; then | |
5843 | ac_cv_c_bigendian=yes | |
5844 | else | |
5845 | $as_echo "$as_me: failed program was:" >&5 | |
5846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5847 | ||
5848 | ac_cv_c_bigendian=no | |
5849 | fi | |
5850 | ||
5851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5852 | else | |
5853 | $as_echo "$as_me: failed program was:" >&5 | |
5854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5855 | ||
5856 | ||
5857 | fi | |
5858 | ||
5859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5860 | fi | |
5861 | if test $ac_cv_c_bigendian = unknown; then | |
5862 | # Compile a test program. | |
5863 | if test "$cross_compiling" = yes; then | |
5864 | # Try to guess by grepping values from an object file. | |
5865 | cat >conftest.$ac_ext <<_ACEOF | |
5866 | /* confdefs.h. */ | |
5867 | _ACEOF | |
5868 | cat confdefs.h >>conftest.$ac_ext | |
5869 | cat >>conftest.$ac_ext <<_ACEOF | |
5870 | /* end confdefs.h. */ | |
5871 | short int ascii_mm[] = | |
5872 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5873 | short int ascii_ii[] = | |
5874 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5875 | int use_ascii (int i) { | |
5876 | return ascii_mm[i] + ascii_ii[i]; | |
5877 | } | |
5878 | short int ebcdic_ii[] = | |
5879 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5880 | short int ebcdic_mm[] = | |
5881 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5882 | int use_ebcdic (int i) { | |
5883 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
5884 | } | |
5885 | extern int foo; | |
5886 | ||
5887 | int | |
5888 | main () | |
5889 | { | |
5890 | return use_ascii (foo) == use_ebcdic (foo); | |
5891 | ; | |
5892 | return 0; | |
5893 | } | |
5894 | _ACEOF | |
5895 | rm -f conftest.$ac_objext | |
5896 | if { (ac_try="$ac_compile" | |
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_compile") 2>conftest.er1 | |
5904 | ac_status=$? | |
5905 | grep -v '^ *+' conftest.er1 >conftest.err | |
5906 | rm -f conftest.er1 | |
5907 | cat conftest.err >&5 | |
5908 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5909 | (exit $ac_status); } && { | |
5910 | test -z "$ac_c_werror_flag" || | |
5911 | test ! -s conftest.err | |
5912 | } && test -s conftest.$ac_objext; then | |
5913 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
5914 | ac_cv_c_bigendian=yes | |
5915 | fi | |
5916 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5917 | if test "$ac_cv_c_bigendian" = unknown; then | |
5918 | ac_cv_c_bigendian=no | |
5919 | else | |
5920 | # finding both strings is unlikely to happen, but who knows? | |
5921 | ac_cv_c_bigendian=unknown | |
5922 | fi | |
5923 | fi | |
5924 | else | |
5925 | $as_echo "$as_me: failed program was:" >&5 | |
5926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5927 | ||
5928 | ||
5929 | fi | |
5930 | ||
5931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5932 | else | |
5933 | cat >conftest.$ac_ext <<_ACEOF | |
5934 | /* confdefs.h. */ | |
5935 | _ACEOF | |
5936 | cat confdefs.h >>conftest.$ac_ext | |
5937 | cat >>conftest.$ac_ext <<_ACEOF | |
5938 | /* end confdefs.h. */ | |
5939 | $ac_includes_default | |
5940 | int | |
5941 | main () | |
5942 | { | |
5943 | ||
5944 | /* Are we little or big endian? From Harbison&Steele. */ | |
5945 | union | |
5946 | { | |
5947 | long int l; | |
5948 | char c[sizeof (long int)]; | |
5949 | } u; | |
5950 | u.l = 1; | |
5951 | return u.c[sizeof (long int) - 1] == 1; | |
5952 | ||
5953 | ; | |
5954 | return 0; | |
5955 | } | |
5956 | _ACEOF | |
5957 | rm -f conftest$ac_exeext | |
5958 | if { (ac_try="$ac_link" | |
5959 | case "(($ac_try" in | |
5960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5961 | *) ac_try_echo=$ac_try;; | |
5962 | esac | |
5963 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5964 | $as_echo "$ac_try_echo") >&5 | |
5965 | (eval "$ac_link") 2>&5 | |
5966 | ac_status=$? | |
5967 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5968 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5969 | { (case "(($ac_try" in | |
5970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5971 | *) ac_try_echo=$ac_try;; | |
5972 | esac | |
5973 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5974 | $as_echo "$ac_try_echo") >&5 | |
5975 | (eval "$ac_try") 2>&5 | |
5976 | ac_status=$? | |
5977 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5978 | (exit $ac_status); }; }; then | |
5979 | ac_cv_c_bigendian=no | |
5980 | else | |
5981 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
5982 | $as_echo "$as_me: failed program was:" >&5 | |
5983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5984 | ||
5985 | ( exit $ac_status ) | |
5986 | ac_cv_c_bigendian=yes | |
5987 | fi | |
5988 | rm -rf conftest.dSYM | |
5989 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5990 | fi | |
5991 | ||
5992 | ||
5993 | fi | |
5994 | fi | |
5995 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
5996 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
5997 | case $ac_cv_c_bigendian in #( | |
5998 | yes) | |
5999 | cat >>confdefs.h <<\_ACEOF | |
6000 | #define WORDS_BIGENDIAN 1 | |
6001 | _ACEOF | |
6002 | ;; #( | |
6003 | no) | |
6004 | ;; #( | |
6005 | universal) | |
6006 | ||
6007 | cat >>confdefs.h <<\_ACEOF | |
6008 | #define AC_APPLE_UNIVERSAL_BUILD 1 | |
6009 | _ACEOF | |
6010 | ||
6011 | ;; #( | |
6012 | *) | |
6013 | { { $as_echo "$as_me:$LINENO: error: unknown endianness | |
6014 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
6015 | $as_echo "$as_me: error: unknown endianness | |
6016 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
6017 | { (exit 1); exit 1; }; } ;; | |
6018 | esac | |
6019 | ||
6020 | if test $ac_cv_c_bigendian = yes; then | |
6021 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN" | |
6022 | else | |
6023 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN" | |
6024 | fi | |
6025 | else | |
6026 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=0" | |
6027 | fi | |
6028 | fi | |
6029 | ||
6030 | ||
6031 | default_sim_scache="16384" | |
6032 | # Check whether --enable-sim-scache was given. | |
6033 | if test "${enable_sim_scache+set}" = set; then | |
6034 | enableval=$enable_sim_scache; case "${enableval}" in | |
6035 | yes) sim_scache="-DWITH_SCACHE=${default_sim_scache}";; | |
6036 | no) sim_scache="-DWITH_SCACHE=0" ;; | |
6037 | [0-9]*) sim_scache="-DWITH_SCACHE=${enableval}";; | |
6038 | *) { { $as_echo "$as_me:$LINENO: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&5 | |
6039 | $as_echo "$as_me: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&2;} | |
6040 | { (exit 1); exit 1; }; }; | |
6041 | sim_scache="";; | |
6042 | esac | |
6043 | if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then | |
6044 | echo "Setting scache size = $sim_scache" 6>&1 | |
6045 | fi | |
6046 | else | |
6047 | sim_scache="-DWITH_SCACHE=${default_sim_scache}" | |
6048 | fi | |
6049 | ||
6050 | ||
6051 | ||
6052 | default_sim_default_model="lm32" | |
6053 | # Check whether --enable-sim-default-model was given. | |
6054 | if test "${enable_sim_default_model+set}" = set; then | |
6055 | enableval=$enable_sim_default_model; case "${enableval}" in | |
6056 | yes|no) { { $as_echo "$as_me:$LINENO: error: \"Missing argument to --enable-sim-default-model\"" >&5 | |
6057 | $as_echo "$as_me: error: \"Missing argument to --enable-sim-default-model\"" >&2;} | |
6058 | { (exit 1); exit 1; }; };; | |
6059 | *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";; | |
6060 | esac | |
6061 | if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then | |
6062 | echo "Setting default model = $sim_default_model" 6>&1 | |
6063 | fi | |
6064 | else | |
6065 | sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'" | |
6066 | fi | |
6067 | ||
6068 | ||
6069 | ||
6070 | # Check whether --enable-sim-environment was given. | |
6071 | if test "${enable_sim_environment+set}" = set; then | |
6072 | enableval=$enable_sim_environment; case "${enableval}" in | |
6073 | all | ALL) sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";; | |
6074 | user | USER) sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";; | |
6075 | virtual | VIRTUAL) sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";; | |
6076 | operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";; | |
6077 | *) { { $as_echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&5 | |
6078 | $as_echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&2;} | |
6079 | { (exit 1); exit 1; }; }; | |
6080 | sim_environment="";; | |
6081 | esac | |
6082 | if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then | |
6083 | echo "Setting sim environment = $sim_environment" 6>&1 | |
6084 | fi | |
6085 | else | |
6086 | sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT" | |
6087 | fi | |
6088 | ||
6089 | ||
6090 | cgen_maint=no | |
6091 | cgen=guile | |
6092 | cgendir='$(srcdir)/../../cgen' | |
6093 | # Check whether --enable-cgen-maint was given. | |
6094 | if test "${enable_cgen_maint+set}" = set; then | |
6095 | enableval=$enable_cgen_maint; case "${enableval}" in | |
6096 | yes) cgen_maint=yes ;; | |
6097 | no) cgen_maint=no ;; | |
6098 | *) | |
6099 | # argument is cgen install directory (not implemented yet). | |
6100 | # Having a `share' directory might be more appropriate for the .scm, | |
6101 | # .cpu, etc. files. | |
6102 | cgendir=${cgen_maint}/lib/cgen | |
6103 | cgen=guile | |
6104 | ;; | |
6105 | esac | |
6106 | fi | |
6107 | if test x${cgen_maint} != xno ; then | |
6108 | CGEN_MAINT='' | |
6109 | else | |
6110 | CGEN_MAINT='#' | |
6111 | fi | |
6112 | ||
6113 | ||
6114 | ||
6115 | ||
6116 | ||
6117 | if test x"yes" = x"yes"; then | |
6118 | sim_hw_p=yes | |
6119 | else | |
6120 | sim_hw_p=no | |
6121 | fi | |
6122 | if test ""; then | |
6123 | hardware="core pal glue" | |
6124 | else | |
6125 | hardware="core pal glue lm32cpu lm32timer lm32uart" | |
6126 | fi | |
6127 | sim_hw_cflags="-DWITH_HW=1" | |
6128 | sim_hw="$hardware" | |
6129 | sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`" | |
6130 | # Check whether --enable-sim-hardware was given. | |
6131 | if test "${enable_sim_hardware+set}" = set; then | |
6132 | enableval=$enable_sim_hardware; | |
6133 | case "${enableval}" in | |
6134 | yes) sim_hw_p=yes;; | |
6135 | no) sim_hw_p=no;; | |
6136 | ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";; | |
6137 | *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";; | |
6138 | *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';; | |
6139 | esac | |
6140 | if test "$sim_hw_p" != yes; then | |
6141 | sim_hw_objs= | |
6142 | sim_hw_cflags="-DWITH_HW=0" | |
6143 | sim_hw= | |
6144 | else | |
6145 | sim_hw_cflags="-DWITH_HW=1" | |
6146 | # remove duplicates | |
6147 | sim_hw="" | |
6148 | sim_hw_objs="\$(SIM_COMMON_HW_OBJS)" | |
6149 | for i in $hardware ; do | |
6150 | case " $sim_hw " in | |
6151 | *" $i "*) ;; | |
6152 | *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";; | |
6153 | esac | |
6154 | done | |
6155 | fi | |
6156 | if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then | |
6157 | echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs" | |
6158 | fi | |
6159 | else | |
6160 | ||
6161 | if test "$sim_hw_p" != yes; then | |
6162 | sim_hw_objs= | |
6163 | sim_hw_cflags="-DWITH_HW=0" | |
6164 | sim_hw= | |
6165 | fi | |
6166 | if test x"$silent" != x"yes"; then | |
6167 | echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs" | |
6168 | fi | |
6169 | fi | |
6170 | ||
6171 | ||
6172 | ||
6173 | ac_sources="$sim_link_files" | |
6174 | ac_dests="$sim_link_links" | |
6175 | while test -n "$ac_sources"; do | |
6176 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
6177 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
6178 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
6179 | done | |
6180 | ac_config_links="$ac_config_links $ac_config_links_1" | |
6181 | ||
6182 | cgen_breaks="" | |
6183 | if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then | |
6184 | cgen_breaks="break cgen_rtx_error"; | |
6185 | fi | |
6186 | ||
6187 | ac_config_files="$ac_config_files Makefile.sim:Makefile.in" | |
6188 | ||
6189 | ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in" | |
6190 | ||
6191 | ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in" | |
6192 | ||
6193 | ac_config_commands="$ac_config_commands Makefile" | |
6194 | ||
6195 | ac_config_commands="$ac_config_commands stamp-h" | |
6196 | ||
6197 | cat >confcache <<\_ACEOF | |
6198 | # This file is a shell script that caches the results of configure | |
6199 | # tests run on this system so they can be shared between configure | |
6200 | # scripts and configure runs, see configure's option --config-cache. | |
6201 | # It is not useful on other systems. If it contains results you don't | |
6202 | # want to keep, you may remove or edit it. | |
6203 | # | |
6204 | # config.status only pays attention to the cache file if you give it | |
6205 | # the --recheck option to rerun configure. | |
6206 | # | |
6207 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
6208 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
6209 | # following values. | |
6210 | ||
6211 | _ACEOF | |
6212 | ||
6213 | # The following way of writing the cache mishandles newlines in values, | |
6214 | # but we know of no workaround that is simple, portable, and efficient. | |
6215 | # So, we kill variables containing newlines. | |
6216 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6217 | # and sets the high bit in the cache file unless we assign to the vars. | |
6218 | ( | |
6219 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
6220 | eval ac_val=\$$ac_var | |
6221 | case $ac_val in #( | |
6222 | *${as_nl}*) | |
6223 | case $ac_var in #( | |
6224 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
6225 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
6226 | esac | |
6227 | case $ac_var in #( | |
6228 | _ | IFS | as_nl) ;; #( | |
6229 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
6230 | *) $as_unset $ac_var ;; | |
6231 | esac ;; | |
6232 | esac | |
6233 | done | |
6234 | ||
6235 | (set) 2>&1 | | |
6236 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
6237 | *${as_nl}ac_space=\ *) | |
6238 | # `set' does not quote correctly, so add quotes (double-quote | |
6239 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
6240 | sed -n \ | |
6241 | "s/'/'\\\\''/g; | |
6242 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
6243 | ;; #( | |
6244 | *) | |
6245 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6246 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
6247 | ;; | |
6248 | esac | | |
6249 | sort | |
6250 | ) | | |
6251 | sed ' | |
6252 | /^ac_cv_env_/b end | |
6253 | t clear | |
6254 | :clear | |
6255 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
6256 | t end | |
6257 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
6258 | :end' >>confcache | |
6259 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
6260 | if test -w "$cache_file"; then | |
6261 | test "x$cache_file" != "x/dev/null" && | |
6262 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
6263 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
6264 | cat confcache >$cache_file | |
6265 | else | |
6266 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
6267 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
6268 | fi | |
6269 | fi | |
6270 | rm -f confcache | |
6271 | ||
6272 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
6273 | # Let make expand exec_prefix. | |
6274 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6275 | ||
6276 | DEFS=-DHAVE_CONFIG_H | |
6277 | ||
6278 | ac_libobjs= | |
6279 | ac_ltlibobjs= | |
6280 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
6281 | # 1. Remove the extension, and $U if already installed. | |
6282 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
6283 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
6284 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
6285 | # will be set to the directory where LIBOBJS objects are built. | |
6286 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
6287 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
6288 | done | |
6289 | LIBOBJS=$ac_libobjs | |
6290 | ||
6291 | LTLIBOBJS=$ac_ltlibobjs | |
6292 | ||
6293 | ||
6294 | ||
6295 | ||
6296 | : ${CONFIG_STATUS=./config.status} | |
6297 | ac_write_fail=0 | |
6298 | ac_clean_files_save=$ac_clean_files | |
6299 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
6300 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
6301 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6302 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6303 | #! $SHELL | |
6304 | # Generated by $as_me. | |
6305 | # Run this file to recreate the current configuration. | |
6306 | # Compiler output produced by configure, useful for debugging | |
6307 | # configure, is in config.log if it exists. | |
6308 | ||
6309 | debug=false | |
6310 | ac_cs_recheck=false | |
6311 | ac_cs_silent=false | |
6312 | SHELL=\${CONFIG_SHELL-$SHELL} | |
6313 | _ACEOF | |
6314 | ||
6315 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6316 | ## --------------------- ## | |
6317 | ## M4sh Initialization. ## | |
6318 | ## --------------------- ## | |
6319 | ||
6320 | # Be more Bourne compatible | |
6321 | DUALCASE=1; export DUALCASE # for MKS sh | |
6322 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
6323 | emulate sh | |
6324 | NULLCMD=: | |
6325 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
6326 | # is contrary to our usage. Disable this feature. | |
6327 | alias -g '${1+"$@"}'='"$@"' | |
6328 | setopt NO_GLOB_SUBST | |
6329 | else | |
6330 | case `(set -o) 2>/dev/null` in | |
6331 | *posix*) set -o posix ;; | |
6332 | esac | |
6333 | ||
6334 | fi | |
6335 | ||
6336 | ||
6337 | ||
6338 | ||
6339 | # PATH needs CR | |
6340 | # Avoid depending upon Character Ranges. | |
6341 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6342 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6343 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6344 | as_cr_digits='0123456789' | |
6345 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6346 | ||
6347 | as_nl=' | |
6348 | ' | |
6349 | export as_nl | |
6350 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
6351 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6352 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
6353 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
6354 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6355 | as_echo='printf %s\n' | |
6356 | as_echo_n='printf %s' | |
6357 | else | |
6358 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
6359 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
6360 | as_echo_n='/usr/ucb/echo -n' | |
6361 | else | |
6362 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
6363 | as_echo_n_body='eval | |
6364 | arg=$1; | |
6365 | case $arg in | |
6366 | *"$as_nl"*) | |
6367 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
6368 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
6369 | esac; | |
6370 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
6371 | ' | |
6372 | export as_echo_n_body | |
6373 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
6374 | fi | |
6375 | export as_echo_body | |
6376 | as_echo='sh -c $as_echo_body as_echo' | |
6377 | fi | |
6378 | ||
6379 | # The user is always right. | |
6380 | if test "${PATH_SEPARATOR+set}" != set; then | |
6381 | PATH_SEPARATOR=: | |
6382 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
6383 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
6384 | PATH_SEPARATOR=';' | |
6385 | } | |
6386 | fi | |
6387 | ||
6388 | # Support unset when possible. | |
6389 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6390 | as_unset=unset | |
6391 | else | |
6392 | as_unset=false | |
6393 | fi | |
6394 | ||
6395 | ||
6396 | # IFS | |
6397 | # We need space, tab and new line, in precisely that order. Quoting is | |
6398 | # there to prevent editors from complaining about space-tab. | |
6399 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
6400 | # splitting by setting IFS to empty value.) | |
6401 | IFS=" "" $as_nl" | |
6402 | ||
6403 | # Find who we are. Look in the path if we contain no directory separator. | |
6404 | case $0 in | |
6405 | *[\\/]* ) as_myself=$0 ;; | |
6406 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6407 | for as_dir in $PATH | |
6408 | do | |
6409 | IFS=$as_save_IFS | |
6410 | test -z "$as_dir" && as_dir=. | |
6411 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6412 | done | |
6413 | IFS=$as_save_IFS | |
6414 | ||
6415 | ;; | |
6416 | esac | |
6417 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6418 | # in which case we are not to be found in the path. | |
6419 | if test "x$as_myself" = x; then | |
6420 | as_myself=$0 | |
6421 | fi | |
6422 | if test ! -f "$as_myself"; then | |
6423 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
6424 | { (exit 1); exit 1; } | |
6425 | fi | |
6426 | ||
6427 | # Work around bugs in pre-3.0 UWIN ksh. | |
6428 | for as_var in ENV MAIL MAILPATH | |
6429 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
6430 | done | |
6431 | PS1='$ ' | |
6432 | PS2='> ' | |
6433 | PS4='+ ' | |
6434 | ||
6435 | # NLS nuisances. | |
6436 | LC_ALL=C | |
6437 | export LC_ALL | |
6438 | LANGUAGE=C | |
6439 | export LANGUAGE | |
6440 | ||
6441 | # Required to use basename. | |
6442 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
6443 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6444 | as_expr=expr | |
6445 | else | |
6446 | as_expr=false | |
6447 | fi | |
6448 | ||
6449 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
6450 | as_basename=basename | |
6451 | else | |
6452 | as_basename=false | |
6453 | fi | |
6454 | ||
6455 | ||
6456 | # Name of the executable. | |
6457 | as_me=`$as_basename -- "$0" || | |
6458 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
6459 | X"$0" : 'X\(//\)$' \| \ | |
6460 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
6461 | $as_echo X/"$0" | | |
6462 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
6463 | s//\1/ | |
6464 | q | |
6465 | } | |
6466 | /^X\/\(\/\/\)$/{ | |
6467 | s//\1/ | |
6468 | q | |
6469 | } | |
6470 | /^X\/\(\/\).*/{ | |
6471 | s//\1/ | |
6472 | q | |
6473 | } | |
6474 | s/.*/./; q'` | |
6475 | ||
6476 | # CDPATH. | |
6477 | $as_unset CDPATH | |
6478 | ||
6479 | ||
6480 | ||
6481 | as_lineno_1=$LINENO | |
6482 | as_lineno_2=$LINENO | |
6483 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
6484 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
6485 | ||
6486 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
6487 | # uniformly replaced by the line number. The first 'sed' inserts a | |
6488 | # line-number line after each line using $LINENO; the second 'sed' | |
6489 | # does the real work. The second script uses 'N' to pair each | |
6490 | # line-number line with the line containing $LINENO, and appends | |
6491 | # trailing '-' during substitution so that $LINENO is not a special | |
6492 | # case at line end. | |
6493 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
6494 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
6495 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
6496 | sed -n ' | |
6497 | p | |
6498 | /[$]LINENO/= | |
6499 | ' <$as_myself | | |
6500 | sed ' | |
6501 | s/[$]LINENO.*/&-/ | |
6502 | t lineno | |
6503 | b | |
6504 | :lineno | |
6505 | N | |
6506 | :loop | |
6507 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
6508 | t loop | |
6509 | s/-\n.*// | |
6510 | ' >$as_me.lineno && | |
6511 | chmod +x "$as_me.lineno" || | |
6512 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
6513 | { (exit 1); exit 1; }; } | |
6514 | ||
6515 | # Don't try to exec as it changes $[0], causing all sort of problems | |
6516 | # (the dirname of $[0] is not the place where we might find the | |
6517 | # original and so on. Autoconf is especially sensitive to this). | |
6518 | . "./$as_me.lineno" | |
6519 | # Exit status is that of the last command. | |
6520 | exit | |
6521 | } | |
6522 | ||
6523 | ||
6524 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
6525 | as_dirname=dirname | |
6526 | else | |
6527 | as_dirname=false | |
6528 | fi | |
6529 | ||
6530 | ECHO_C= ECHO_N= ECHO_T= | |
6531 | case `echo -n x` in | |
6532 | -n*) | |
6533 | case `echo 'x\c'` in | |
6534 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
6535 | *) ECHO_C='\c';; | |
6536 | esac;; | |
6537 | *) | |
6538 | ECHO_N='-n';; | |
6539 | esac | |
6540 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
6541 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6542 | as_expr=expr | |
6543 | else | |
6544 | as_expr=false | |
6545 | fi | |
6546 | ||
6547 | rm -f conf$$ conf$$.exe conf$$.file | |
6548 | if test -d conf$$.dir; then | |
6549 | rm -f conf$$.dir/conf$$.file | |
6550 | else | |
6551 | rm -f conf$$.dir | |
6552 | mkdir conf$$.dir 2>/dev/null | |
6553 | fi | |
6554 | if (echo >conf$$.file) 2>/dev/null; then | |
6555 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
6556 | as_ln_s='ln -s' | |
6557 | # ... but there are two gotchas: | |
6558 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
6559 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
6560 | # In both cases, we have to default to `cp -p'. | |
6561 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
6562 | as_ln_s='cp -p' | |
6563 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
6564 | as_ln_s=ln | |
6565 | else | |
6566 | as_ln_s='cp -p' | |
6567 | fi | |
6568 | else | |
6569 | as_ln_s='cp -p' | |
6570 | fi | |
6571 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
6572 | rmdir conf$$.dir 2>/dev/null | |
6573 | ||
6574 | if mkdir -p . 2>/dev/null; then | |
6575 | as_mkdir_p=: | |
6576 | else | |
6577 | test -d ./-p && rmdir ./-p | |
6578 | as_mkdir_p=false | |
6579 | fi | |
6580 | ||
6581 | if test -x / >/dev/null 2>&1; then | |
6582 | as_test_x='test -x' | |
6583 | else | |
6584 | if ls -dL / >/dev/null 2>&1; then | |
6585 | as_ls_L_option=L | |
6586 | else | |
6587 | as_ls_L_option= | |
6588 | fi | |
6589 | as_test_x=' | |
6590 | eval sh -c '\'' | |
6591 | if test -d "$1"; then | |
6592 | test -d "$1/."; | |
6593 | else | |
6594 | case $1 in | |
6595 | -*)set "./$1";; | |
6596 | esac; | |
6597 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
6598 | ???[sx]*):;;*)false;;esac;fi | |
6599 | '\'' sh | |
6600 | ' | |
6601 | fi | |
6602 | as_executable_p=$as_test_x | |
6603 | ||
6604 | # Sed expression to map a string onto a valid CPP name. | |
6605 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
6606 | ||
6607 | # Sed expression to map a string onto a valid variable name. | |
6608 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
6609 | ||
6610 | ||
6611 | exec 6>&1 | |
6612 | ||
6613 | # Save the log message, to keep $[0] and so on meaningful, and to | |
6614 | # report actual input values of CONFIG_FILES etc. instead of their | |
6615 | # values after options handling. | |
6616 | ac_log=" | |
6617 | This file was extended by $as_me, which was | |
6618 | generated by GNU Autoconf 2.63. Invocation command line was | |
6619 | ||
6620 | CONFIG_FILES = $CONFIG_FILES | |
6621 | CONFIG_HEADERS = $CONFIG_HEADERS | |
6622 | CONFIG_LINKS = $CONFIG_LINKS | |
6623 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
6624 | $ $0 $@ | |
6625 | ||
6626 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
6627 | " | |
6628 | ||
6629 | _ACEOF | |
6630 | ||
6631 | case $ac_config_files in *" | |
6632 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
6633 | esac | |
6634 | ||
6635 | case $ac_config_headers in *" | |
6636 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
6637 | esac | |
6638 | ||
6639 | ||
6640 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6641 | # Files that config.status was made for. | |
6642 | config_files="$ac_config_files" | |
6643 | config_headers="$ac_config_headers" | |
6644 | config_links="$ac_config_links" | |
6645 | config_commands="$ac_config_commands" | |
6646 | ||
6647 | _ACEOF | |
6648 | ||
6649 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6650 | ac_cs_usage="\ | |
6651 | \`$as_me' instantiates files from templates according to the | |
6652 | current configuration. | |
6653 | ||
6654 | Usage: $0 [OPTION]... [FILE]... | |
6655 | ||
6656 | -h, --help print this help, then exit | |
6657 | -V, --version print version number and configuration settings, then exit | |
6658 | -q, --quiet, --silent | |
6659 | do not print progress messages | |
6660 | -d, --debug don't remove temporary files | |
6661 | --recheck update $as_me by reconfiguring in the same conditions | |
6662 | --file=FILE[:TEMPLATE] | |
6663 | instantiate the configuration file FILE | |
6664 | --header=FILE[:TEMPLATE] | |
6665 | instantiate the configuration header FILE | |
6666 | ||
6667 | Configuration files: | |
6668 | $config_files | |
6669 | ||
6670 | Configuration headers: | |
6671 | $config_headers | |
6672 | ||
6673 | Configuration links: | |
6674 | $config_links | |
6675 | ||
6676 | Configuration commands: | |
6677 | $config_commands | |
6678 | ||
6679 | Report bugs to <bug-autoconf@gnu.org>." | |
6680 | ||
6681 | _ACEOF | |
6682 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6683 | ac_cs_version="\\ | |
6684 | config.status | |
6685 | configured by $0, generated by GNU Autoconf 2.63, | |
6686 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
6687 | ||
6688 | Copyright (C) 2008 Free Software Foundation, Inc. | |
6689 | This config.status script is free software; the Free Software Foundation | |
6690 | gives unlimited permission to copy, distribute and modify it." | |
6691 | ||
6692 | ac_pwd='$ac_pwd' | |
6693 | srcdir='$srcdir' | |
6694 | INSTALL='$INSTALL' | |
6695 | test -n "\$AWK" || AWK=awk | |
6696 | _ACEOF | |
6697 | ||
6698 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6699 | # The default lists apply if the user does not specify any file. | |
6700 | ac_need_defaults=: | |
6701 | while test $# != 0 | |
6702 | do | |
6703 | case $1 in | |
6704 | --*=*) | |
6705 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
6706 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
6707 | ac_shift=: | |
6708 | ;; | |
6709 | *) | |
6710 | ac_option=$1 | |
6711 | ac_optarg=$2 | |
6712 | ac_shift=shift | |
6713 | ;; | |
6714 | esac | |
6715 | ||
6716 | case $ac_option in | |
6717 | # Handling of the options. | |
6718 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
6719 | ac_cs_recheck=: ;; | |
6720 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
6721 | $as_echo "$ac_cs_version"; exit ;; | |
6722 | --debug | --debu | --deb | --de | --d | -d ) | |
6723 | debug=: ;; | |
6724 | --file | --fil | --fi | --f ) | |
6725 | $ac_shift | |
6726 | case $ac_optarg in | |
6727 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6728 | esac | |
6729 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
6730 | ac_need_defaults=false;; | |
6731 | --header | --heade | --head | --hea ) | |
6732 | $ac_shift | |
6733 | case $ac_optarg in | |
6734 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6735 | esac | |
6736 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
6737 | ac_need_defaults=false;; | |
6738 | --he | --h) | |
6739 | # Conflict between --help and --header | |
6740 | { $as_echo "$as_me: error: ambiguous option: $1 | |
6741 | Try \`$0 --help' for more information." >&2 | |
6742 | { (exit 1); exit 1; }; };; | |
6743 | --help | --hel | -h ) | |
6744 | $as_echo "$ac_cs_usage"; exit ;; | |
6745 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
6746 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
6747 | ac_cs_silent=: ;; | |
6748 | ||
6749 | # This is an error. | |
6750 | -*) { $as_echo "$as_me: error: unrecognized option: $1 | |
6751 | Try \`$0 --help' for more information." >&2 | |
6752 | { (exit 1); exit 1; }; } ;; | |
6753 | ||
6754 | *) ac_config_targets="$ac_config_targets $1" | |
6755 | ac_need_defaults=false ;; | |
6756 | ||
6757 | esac | |
6758 | shift | |
6759 | done | |
6760 | ||
6761 | ac_configure_extra_args= | |
6762 | ||
6763 | if $ac_cs_silent; then | |
6764 | exec 6>/dev/null | |
6765 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
6766 | fi | |
6767 | ||
6768 | _ACEOF | |
6769 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6770 | if \$ac_cs_recheck; then | |
6771 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
6772 | shift | |
6773 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
6774 | CONFIG_SHELL='$SHELL' | |
6775 | export CONFIG_SHELL | |
6776 | exec "\$@" | |
6777 | fi | |
6778 | ||
6779 | _ACEOF | |
6780 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6781 | exec 5>>config.log | |
6782 | { | |
6783 | echo | |
6784 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
6785 | ## Running $as_me. ## | |
6786 | _ASBOX | |
6787 | $as_echo "$ac_log" | |
6788 | } >&5 | |
6789 | ||
6790 | _ACEOF | |
6791 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6792 | _ACEOF | |
6793 | ||
6794 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6795 | ||
6796 | # Handling of arguments. | |
6797 | for ac_config_target in $ac_config_targets | |
6798 | do | |
6799 | case $ac_config_target in | |
6800 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
6801 | "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; | |
6802 | "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;; | |
6803 | "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;; | |
6804 | ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;; | |
6805 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; | |
6806 | "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;; | |
6807 | ||
6808 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
6809 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
6810 | { (exit 1); exit 1; }; };; | |
6811 | esac | |
6812 | done | |
6813 | ||
6814 | ||
6815 | # If the user did not use the arguments to specify the items to instantiate, | |
6816 | # then the envvar interface is used. Set only those that are not. | |
6817 | # We use the long form for the default assignment because of an extremely | |
6818 | # bizarre bug on SunOS 4.1.3. | |
6819 | if $ac_need_defaults; then | |
6820 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
6821 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
6822 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
6823 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
6824 | fi | |
6825 | ||
6826 | # Have a temporary directory for convenience. Make it in the build tree | |
6827 | # simply because there is no reason against having it here, and in addition, | |
6828 | # creating and moving files from /tmp can sometimes cause problems. | |
6829 | # Hook for its removal unless debugging. | |
6830 | # Note that there is a small window in which the directory will not be cleaned: | |
6831 | # after its creation but before its name has been assigned to `$tmp'. | |
6832 | $debug || | |
6833 | { | |
6834 | tmp= | |
6835 | trap 'exit_status=$? | |
6836 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
6837 | ' 0 | |
6838 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
6839 | } | |
6840 | # Create a (secure) tmp directory for tmp files. | |
6841 | ||
6842 | { | |
6843 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
6844 | test -n "$tmp" && test -d "$tmp" | |
6845 | } || | |
6846 | { | |
6847 | tmp=./conf$$-$RANDOM | |
6848 | (umask 077 && mkdir "$tmp") | |
6849 | } || | |
6850 | { | |
6851 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 | |
6852 | { (exit 1); exit 1; } | |
6853 | } | |
6854 | ||
6855 | # Set up the scripts for CONFIG_FILES section. | |
6856 | # No need to generate them if there are no CONFIG_FILES. | |
6857 | # This happens for instance with `./config.status config.h'. | |
6858 | if test -n "$CONFIG_FILES"; then | |
6859 | ||
6860 | ||
6861 | ac_cr='\r' | |
6862 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
6863 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
6864 | ac_cs_awk_cr='\r' | |
6865 | else | |
6866 | ac_cs_awk_cr=$ac_cr | |
6867 | fi | |
6868 | ||
6869 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
6870 | _ACEOF | |
6871 | ||
6872 | ||
6873 | { | |
6874 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
6875 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
6876 | echo "_ACEOF" | |
6877 | } >conf$$subs.sh || | |
6878 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
6879 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
6880 | { (exit 1); exit 1; }; } | |
6881 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
6882 | ac_delim='%!_!# ' | |
6883 | for ac_last_try in false false false false false :; do | |
6884 | . ./conf$$subs.sh || | |
6885 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
6886 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
6887 | { (exit 1); exit 1; }; } | |
6888 | ||
6889 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
6890 | if test $ac_delim_n = $ac_delim_num; then | |
6891 | break | |
6892 | elif $ac_last_try; then | |
6893 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
6894 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
6895 | { (exit 1); exit 1; }; } | |
6896 | else | |
6897 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
6898 | fi | |
6899 | done | |
6900 | rm -f conf$$subs.sh | |
6901 | ||
6902 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6903 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
6904 | _ACEOF | |
6905 | sed -n ' | |
6906 | h | |
6907 | s/^/S["/; s/!.*/"]=/ | |
6908 | p | |
6909 | g | |
6910 | s/^[^!]*!// | |
6911 | :repl | |
6912 | t repl | |
6913 | s/'"$ac_delim"'$// | |
6914 | t delim | |
6915 | :nl | |
6916 | h | |
6917 | s/\(.\{148\}\).*/\1/ | |
6918 | t more1 | |
6919 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
6920 | p | |
6921 | n | |
6922 | b repl | |
6923 | :more1 | |
6924 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
6925 | p | |
6926 | g | |
6927 | s/.\{148\}// | |
6928 | t nl | |
6929 | :delim | |
6930 | h | |
6931 | s/\(.\{148\}\).*/\1/ | |
6932 | t more2 | |
6933 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
6934 | p | |
6935 | b | |
6936 | :more2 | |
6937 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
6938 | p | |
6939 | g | |
6940 | s/.\{148\}// | |
6941 | t delim | |
6942 | ' <conf$$subs.awk | sed ' | |
6943 | /^[^""]/{ | |
6944 | N | |
6945 | s/\n// | |
6946 | } | |
6947 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
6948 | rm -f conf$$subs.awk | |
6949 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6950 | _ACAWK | |
6951 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
6952 | for (key in S) S_is_set[key] = 1 | |
6953 | FS = "\a" | |
6954 | ||
6955 | } | |
6956 | { | |
6957 | line = $ 0 | |
6958 | nfields = split(line, field, "@") | |
6959 | substed = 0 | |
6960 | len = length(field[1]) | |
6961 | for (i = 2; i < nfields; i++) { | |
6962 | key = field[i] | |
6963 | keylen = length(key) | |
6964 | if (S_is_set[key]) { | |
6965 | value = S[key] | |
6966 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
6967 | len += length(value) + length(field[++i]) | |
6968 | substed = 1 | |
6969 | } else | |
6970 | len += 1 + keylen | |
6971 | } | |
6972 | ||
6973 | print line | |
6974 | } | |
6975 | ||
6976 | _ACAWK | |
6977 | _ACEOF | |
6978 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6979 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
6980 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
6981 | else | |
6982 | cat | |
6983 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
6984 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
6985 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
6986 | { (exit 1); exit 1; }; } | |
6987 | _ACEOF | |
6988 | ||
6989 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
6990 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
6991 | # trailing colons and then remove the whole line if VPATH becomes empty | |
6992 | # (actually we leave an empty line to preserve line numbers). | |
6993 | if test "x$srcdir" = x.; then | |
6994 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
6995 | s/:*\$(srcdir):*/:/ | |
6996 | s/:*\${srcdir}:*/:/ | |
6997 | s/:*@srcdir@:*/:/ | |
6998 | s/^\([^=]*=[ ]*\):*/\1/ | |
6999 | s/:*$// | |
7000 | s/^[^=]*=[ ]*$// | |
7001 | }' | |
7002 | fi | |
7003 | ||
7004 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7005 | fi # test -n "$CONFIG_FILES" | |
7006 | ||
7007 | # Set up the scripts for CONFIG_HEADERS section. | |
7008 | # No need to generate them if there are no CONFIG_HEADERS. | |
7009 | # This happens for instance with `./config.status Makefile'. | |
7010 | if test -n "$CONFIG_HEADERS"; then | |
7011 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
7012 | BEGIN { | |
7013 | _ACEOF | |
7014 | ||
7015 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
7016 | # here-document in config.status, that substitutes the proper values into | |
7017 | # config.h.in to produce config.h. | |
7018 | ||
7019 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
7020 | # handling of long lines. | |
7021 | ac_delim='%!_!# ' | |
7022 | for ac_last_try in false false :; do | |
7023 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
7024 | if test -z "$ac_t"; then | |
7025 | break | |
7026 | elif $ac_last_try; then | |
7027 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
7028 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
7029 | { (exit 1); exit 1; }; } | |
7030 | else | |
7031 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
7032 | fi | |
7033 | done | |
7034 | ||
7035 | # For the awk script, D is an array of macro values keyed by name, | |
7036 | # likewise P contains macro parameters if any. Preserve backslash | |
7037 | # newline sequences. | |
7038 | ||
7039 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
7040 | sed -n ' | |
7041 | s/.\{148\}/&'"$ac_delim"'/g | |
7042 | t rset | |
7043 | :rset | |
7044 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
7045 | t def | |
7046 | d | |
7047 | :def | |
7048 | s/\\$// | |
7049 | t bsnl | |
7050 | s/["\\]/\\&/g | |
7051 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7052 | D["\1"]=" \3"/p | |
7053 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
7054 | d | |
7055 | :bsnl | |
7056 | s/["\\]/\\&/g | |
7057 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7058 | D["\1"]=" \3\\\\\\n"\\/p | |
7059 | t cont | |
7060 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
7061 | t cont | |
7062 | d | |
7063 | :cont | |
7064 | n | |
7065 | s/.\{148\}/&'"$ac_delim"'/g | |
7066 | t clear | |
7067 | :clear | |
7068 | s/\\$// | |
7069 | t bsnlc | |
7070 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
7071 | d | |
7072 | :bsnlc | |
7073 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
7074 | b cont | |
7075 | ' <confdefs.h | sed ' | |
7076 | s/'"$ac_delim"'/"\\\ | |
7077 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
7078 | ||
7079 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7080 | for (key in D) D_is_set[key] = 1 | |
7081 | FS = "\a" | |
7082 | } | |
7083 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
7084 | line = \$ 0 | |
7085 | split(line, arg, " ") | |
7086 | if (arg[1] == "#") { | |
7087 | defundef = arg[2] | |
7088 | mac1 = arg[3] | |
7089 | } else { | |
7090 | defundef = substr(arg[1], 2) | |
7091 | mac1 = arg[2] | |
7092 | } | |
7093 | split(mac1, mac2, "(") #) | |
7094 | macro = mac2[1] | |
7095 | prefix = substr(line, 1, index(line, defundef) - 1) | |
7096 | if (D_is_set[macro]) { | |
7097 | # Preserve the white space surrounding the "#". | |
7098 | print prefix "define", macro P[macro] D[macro] | |
7099 | next | |
7100 | } else { | |
7101 | # Replace #undef with comments. This is necessary, for example, | |
7102 | # in the case of _POSIX_SOURCE, which is predefined and required | |
7103 | # on some systems where configure will not decide to define it. | |
7104 | if (defundef == "undef") { | |
7105 | print "/*", prefix defundef, macro, "*/" | |
7106 | next | |
7107 | } | |
7108 | } | |
7109 | } | |
7110 | { print } | |
7111 | _ACAWK | |
7112 | _ACEOF | |
7113 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7114 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
7115 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
7116 | { (exit 1); exit 1; }; } | |
7117 | fi # test -n "$CONFIG_HEADERS" | |
7118 | ||
7119 | ||
7120 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" | |
7121 | shift | |
7122 | for ac_tag | |
7123 | do | |
7124 | case $ac_tag in | |
7125 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
7126 | esac | |
7127 | case $ac_mode$ac_tag in | |
7128 | :[FHL]*:*);; | |
7129 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 | |
7130 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7131 | { (exit 1); exit 1; }; };; | |
7132 | :[FH]-) ac_tag=-:-;; | |
7133 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
7134 | esac | |
7135 | ac_save_IFS=$IFS | |
7136 | IFS=: | |
7137 | set x $ac_tag | |
7138 | IFS=$ac_save_IFS | |
7139 | shift | |
7140 | ac_file=$1 | |
7141 | shift | |
7142 | ||
7143 | case $ac_mode in | |
7144 | :L) ac_source=$1;; | |
7145 | :[FH]) | |
7146 | ac_file_inputs= | |
7147 | for ac_f | |
7148 | do | |
7149 | case $ac_f in | |
7150 | -) ac_f="$tmp/stdin";; | |
7151 | *) # Look for the file first in the build tree, then in the source tree | |
7152 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
7153 | # because $ac_f cannot contain `:'. | |
7154 | test -f "$ac_f" || | |
7155 | case $ac_f in | |
7156 | [\\/$]*) false;; | |
7157 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
7158 | esac || | |
7159 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
7160 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7161 | { (exit 1); exit 1; }; };; | |
7162 | esac | |
7163 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
7164 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7165 | done | |
7166 | ||
7167 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7168 | # use $as_me), people would be surprised to read: | |
7169 | # /* config.h. Generated by config.status. */ | |
7170 | configure_input='Generated from '` | |
7171 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
7172 | `' by configure.' | |
7173 | if test x"$ac_file" != x-; then | |
7174 | configure_input="$ac_file. $configure_input" | |
7175 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 | |
7176 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7177 | fi | |
7178 | # Neutralize special characters interpreted by sed in replacement strings. | |
7179 | case $configure_input in #( | |
7180 | *\&* | *\|* | *\\* ) | |
7181 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
7182 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
7183 | *) ac_sed_conf_input=$configure_input;; | |
7184 | esac | |
7185 | ||
7186 | case $ac_tag in | |
7187 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
7188 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
7189 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
7190 | { (exit 1); exit 1; }; } ;; | |
7191 | esac | |
7192 | ;; | |
7193 | esac | |
7194 | ||
7195 | ac_dir=`$as_dirname -- "$ac_file" || | |
7196 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7197 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7198 | X"$ac_file" : 'X\(//\)$' \| \ | |
7199 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
7200 | $as_echo X"$ac_file" | | |
7201 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7202 | s//\1/ | |
7203 | q | |
7204 | } | |
7205 | /^X\(\/\/\)[^/].*/{ | |
7206 | s//\1/ | |
7207 | q | |
7208 | } | |
7209 | /^X\(\/\/\)$/{ | |
7210 | s//\1/ | |
7211 | q | |
7212 | } | |
7213 | /^X\(\/\).*/{ | |
7214 | s//\1/ | |
7215 | q | |
7216 | } | |
7217 | s/.*/./; q'` | |
7218 | { as_dir="$ac_dir" | |
7219 | case $as_dir in #( | |
7220 | -*) as_dir=./$as_dir;; | |
7221 | esac | |
7222 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
7223 | as_dirs= | |
7224 | while :; do | |
7225 | case $as_dir in #( | |
7226 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
7227 | *) as_qdir=$as_dir;; | |
7228 | esac | |
7229 | as_dirs="'$as_qdir' $as_dirs" | |
7230 | as_dir=`$as_dirname -- "$as_dir" || | |
7231 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7232 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7233 | X"$as_dir" : 'X\(//\)$' \| \ | |
7234 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
7235 | $as_echo X"$as_dir" | | |
7236 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7237 | s//\1/ | |
7238 | q | |
7239 | } | |
7240 | /^X\(\/\/\)[^/].*/{ | |
7241 | s//\1/ | |
7242 | q | |
7243 | } | |
7244 | /^X\(\/\/\)$/{ | |
7245 | s//\1/ | |
7246 | q | |
7247 | } | |
7248 | /^X\(\/\).*/{ | |
7249 | s//\1/ | |
7250 | q | |
7251 | } | |
7252 | s/.*/./; q'` | |
7253 | test -d "$as_dir" && break | |
7254 | done | |
7255 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
7256 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
7257 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
7258 | { (exit 1); exit 1; }; }; } | |
7259 | ac_builddir=. | |
7260 | ||
7261 | case "$ac_dir" in | |
7262 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7263 | *) | |
7264 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
7265 | # A ".." for each directory in $ac_dir_suffix. | |
7266 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
7267 | case $ac_top_builddir_sub in | |
7268 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7269 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
7270 | esac ;; | |
7271 | esac | |
7272 | ac_abs_top_builddir=$ac_pwd | |
7273 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
7274 | # for backward compatibility: | |
7275 | ac_top_builddir=$ac_top_build_prefix | |
7276 | ||
7277 | case $srcdir in | |
7278 | .) # We are building in place. | |
7279 | ac_srcdir=. | |
7280 | ac_top_srcdir=$ac_top_builddir_sub | |
7281 | ac_abs_top_srcdir=$ac_pwd ;; | |
7282 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
7283 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7284 | ac_top_srcdir=$srcdir | |
7285 | ac_abs_top_srcdir=$srcdir ;; | |
7286 | *) # Relative name. | |
7287 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
7288 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
7289 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
7290 | esac | |
7291 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
7292 | ||
7293 | ||
7294 | case $ac_mode in | |
7295 | :F) | |
7296 | # | |
7297 | # CONFIG_FILE | |
7298 | # | |
7299 | ||
7300 | case $INSTALL in | |
7301 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7302 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
7303 | esac | |
7304 | _ACEOF | |
7305 | ||
7306 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7307 | # If the template does not know about datarootdir, expand it. | |
7308 | # FIXME: This hack should be removed a few years after 2.60. | |
7309 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7310 | ||
7311 | ac_sed_dataroot=' | |
7312 | /datarootdir/ { | |
7313 | p | |
7314 | q | |
7315 | } | |
7316 | /@datadir@/p | |
7317 | /@docdir@/p | |
7318 | /@infodir@/p | |
7319 | /@localedir@/p | |
7320 | /@mandir@/p | |
7321 | ' | |
7322 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7323 | *datarootdir*) ac_datarootdir_seen=yes;; | |
7324 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7325 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
7326 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
7327 | _ACEOF | |
7328 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7329 | ac_datarootdir_hack=' | |
7330 | s&@datadir@&$datadir&g | |
7331 | s&@docdir@&$docdir&g | |
7332 | s&@infodir@&$infodir&g | |
7333 | s&@localedir@&$localedir&g | |
7334 | s&@mandir@&$mandir&g | |
7335 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
7336 | esac | |
7337 | _ACEOF | |
7338 | ||
7339 | # Neutralize VPATH when `$srcdir' = `.'. | |
7340 | # Shell code in configure.ac might set extrasub. | |
7341 | # FIXME: do we really want to maintain this feature? | |
7342 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7343 | ac_sed_extra="$ac_vpsub | |
7344 | $extrasub | |
7345 | _ACEOF | |
7346 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7347 | :t | |
7348 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7349 | s|@configure_input@|$ac_sed_conf_input|;t t | |
7350 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
7351 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
7352 | s&@srcdir@&$ac_srcdir&;t t | |
7353 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
7354 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
7355 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
7356 | s&@builddir@&$ac_builddir&;t t | |
7357 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
7358 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
7359 | s&@INSTALL@&$ac_INSTALL&;t t | |
7360 | $ac_datarootdir_hack | |
7361 | " | |
7362 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
7363 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
7364 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
7365 | { (exit 1); exit 1; }; } | |
7366 | ||
7367 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
7368 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
7369 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
7370 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
7371 | which seems to be undefined. Please make sure it is defined." >&5 | |
7372 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
7373 | which seems to be undefined. Please make sure it is defined." >&2;} | |
7374 | ||
7375 | rm -f "$tmp/stdin" | |
7376 | case $ac_file in | |
7377 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
7378 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
7379 | esac \ | |
7380 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
7381 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
7382 | { (exit 1); exit 1; }; } | |
7383 | ;; | |
7384 | :H) | |
7385 | # | |
7386 | # CONFIG_HEADER | |
7387 | # | |
7388 | if test x"$ac_file" != x-; then | |
7389 | { | |
7390 | $as_echo "/* $configure_input */" \ | |
7391 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
7392 | } >"$tmp/config.h" \ | |
7393 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
7394 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
7395 | { (exit 1); exit 1; }; } | |
7396 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
7397 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
7398 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
7399 | else | |
7400 | rm -f "$ac_file" | |
7401 | mv "$tmp/config.h" "$ac_file" \ | |
7402 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
7403 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
7404 | { (exit 1); exit 1; }; } | |
7405 | fi | |
7406 | else | |
7407 | $as_echo "/* $configure_input */" \ | |
7408 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
7409 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
7410 | $as_echo "$as_me: error: could not create -" >&2;} | |
7411 | { (exit 1); exit 1; }; } | |
7412 | fi | |
7413 | ;; | |
7414 | :L) | |
7415 | # | |
7416 | # CONFIG_LINK | |
7417 | # | |
7418 | ||
7419 | if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then | |
7420 | : | |
7421 | else | |
7422 | # Prefer the file from the source tree if names are identical. | |
7423 | if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then | |
7424 | ac_source=$srcdir/$ac_source | |
7425 | fi | |
7426 | ||
7427 | { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5 | |
7428 | $as_echo "$as_me: linking $ac_source to $ac_file" >&6;} | |
7429 | ||
7430 | if test ! -r "$ac_source"; then | |
7431 | { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5 | |
7432 | $as_echo "$as_me: error: $ac_source: file not found" >&2;} | |
7433 | { (exit 1); exit 1; }; } | |
7434 | fi | |
7435 | rm -f "$ac_file" | |
7436 | ||
7437 | # Try a relative symlink, then a hard link, then a copy. | |
7438 | case $srcdir in | |
7439 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; | |
7440 | *) ac_rel_source=$ac_top_build_prefix$ac_source ;; | |
7441 | esac | |
7442 | ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || | |
7443 | ln "$ac_source" "$ac_file" 2>/dev/null || | |
7444 | cp -p "$ac_source" "$ac_file" || | |
7445 | { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5 | |
7446 | $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;} | |
7447 | { (exit 1); exit 1; }; } | |
7448 | fi | |
7449 | ;; | |
7450 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 | |
7451 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
7452 | ;; | |
7453 | esac | |
7454 | ||
7455 | ||
7456 | case $ac_file$ac_mode in | |
7457 | "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..." | |
7458 | rm -f Makesim1.tmp Makesim2.tmp Makefile | |
7459 | sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp | |
7460 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp | |
7461 | sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \ | |
7462 | -e '/^## COMMON_POST_/ r Makesim2.tmp' \ | |
7463 | <Makefile.sim >Makefile | |
7464 | rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp | |
7465 | ;; | |
7466 | "stamp-h":C) echo > stamp-h ;; | |
7467 | ||
7468 | esac | |
7469 | done # for ac_tag | |
7470 | ||
7471 | ||
7472 | { (exit 0); exit 0; } | |
7473 | _ACEOF | |
7474 | chmod +x $CONFIG_STATUS | |
7475 | ac_clean_files=$ac_clean_files_save | |
7476 | ||
7477 | test $ac_write_fail = 0 || | |
7478 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
7479 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
7480 | { (exit 1); exit 1; }; } | |
7481 | ||
7482 | ||
7483 | # configure is writing to config.log, and then calls config.status. | |
7484 | # config.status does its own redirection, appending to config.log. | |
7485 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7486 | # by configure, so config.status won't be able to write to it; its | |
7487 | # output is simply discarded. So we exec the FD to /dev/null, | |
7488 | # effectively closing config.log, so it can be properly (re)opened and | |
7489 | # appended to by config.status. When coming back to configure, we | |
7490 | # need to make the FD available again. | |
7491 | if test "$no_create" != yes; then | |
7492 | ac_cs_success=: | |
7493 | ac_config_status_args= | |
7494 | test "$silent" = yes && | |
7495 | ac_config_status_args="$ac_config_status_args --quiet" | |
7496 | exec 5>/dev/null | |
7497 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
7498 | exec 5>>config.log | |
7499 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7500 | # would make configure fail if this is the last instruction. | |
7501 | $ac_cs_success || { (exit 1); exit 1; } | |
7502 | fi | |
7503 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
7504 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
7505 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
7506 | fi | |
7507 | ||
7508 |